Version 1.13.9.
[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-26 22:52+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:335 ../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 to edit, and C<file> is the full path to the file."
682 msgstr ""
683
684 #. type: =head1
685 #: ../cat/virt-cat.pod:192 ../cat/virt-filesystems.pod:365
686 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
687 #: ../inspector/virt-inspector.pod:349 ../rescue/virt-rescue.pod:262
688 #: ../resize/virt-resize.pod: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:194 ../cat/virt-filesystems.pod:367
696 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
697 #: ../inspector/virt-inspector.pod:351 ../rescue/virt-rescue.pod:264
698 #: ../resize/virt-resize.pod: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:199 ../cat/virt-filesystems.pod:372
710 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
711 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
712 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
713 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
714 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:303
715 #: ../inspector/virt-inspector.pod:372 ../java/examples/guestfs-java.pod:45
716 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
717 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:284
718 #: ../resize/virt-resize.pod:608 ../ruby/examples/guestfs-ruby.pod:36
719 #: ../src/guestfs.pod:3042 ../test-tool/libguestfs-test-tool.pod:87
720 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
721 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
722 #: ../tools/virt-win-reg.pl:746
723 msgid "SEE ALSO"
724 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
725
726 #. type: textblock
727 #: ../cat/virt-cat.pod:201
728 #, fuzzy
729 #| msgid ""
730 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
731 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
732 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
733 msgid ""
734 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
735 "tar-out(1)>, L<http://libguestfs.org/>."
736 msgstr ""
737 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
738 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
739 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
740
741 #. type: =head1
742 #: ../cat/virt-cat.pod:208 ../cat/virt-filesystems.pod:383
743 #: ../cat/virt-ls.pod:502 ../df/virt-df.pod:230 ../edit/virt-edit.pod:363
744 #: ../rescue/virt-rescue.pod:292 ../resize/virt-resize.pod:629
745 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
746 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
747 #: ../tools/virt-win-reg.pl:772
748 msgid "AUTHOR"
749 msgstr "АВТОР"
750
751 #. type: textblock
752 #: ../cat/virt-cat.pod:210 ../cat/virt-filesystems.pod:385
753 #: ../cat/virt-ls.pod:504 ../df/virt-df.pod:232 ../edit/virt-edit.pod:365
754 #: ../inspector/virt-inspector.pod:386 ../rescue/virt-rescue.pod:294
755 #: ../resize/virt-resize.pod:631 ../tools/virt-list-filesystems.pl:210
756 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
757 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
758 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
759 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
760
761 #. type: =head1
762 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:387
763 #: ../cat/virt-ls.pod:506 ../df/virt-df.pod:234 ../edit/virt-edit.pod:367
764 #: ../examples/guestfs-examples.pod:48 ../examples/guestfs-recipes.pod:400
765 #: ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:64
766 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
767 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:318
768 #: ../inspector/virt-inspector.pod:394 ../java/examples/guestfs-java.pod:61
769 #: ../ocaml/examples/guestfs-ocaml.pod:94 ../perl/examples/guestfs-perl.pod:55
770 #: ../python/examples/guestfs-python.pod:57 ../rescue/virt-rescue.pod:296
771 #: ../resize/virt-resize.pod:633 ../ruby/examples/guestfs-ruby.pod:51
772 #: ../src/guestfs.pod:3118 ../test-tool/libguestfs-test-tool.pod:97
773 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
774 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
775 #: ../tools/virt-win-reg.pl:776
776 msgid "COPYRIGHT"
777 msgstr "АВТОРСЬКІ ПРАВА"
778
779 #. type: textblock
780 #: ../cat/virt-cat.pod:214 ../inspector/virt-inspector.pod:396
781 #: ../resize/virt-resize.pod:635
782 #, fuzzy
783 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
784 msgid "Copyright (C) 2010-2011 Red Hat Inc."
785 msgstr "© Red Hat Inc., 2009–2010"
786
787 #. type: textblock
788 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:391
789 #: ../cat/virt-ls.pod:510 ../df/virt-df.pod:238 ../edit/virt-edit.pod:371
790 #: ../fish/guestfish.pod:1269 ../fish/virt-copy-in.pod:69
791 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
792 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:323
793 #: ../inspector/virt-inspector.pod:398 ../rescue/virt-rescue.pod:300
794 #: ../resize/virt-resize.pod:637 ../test-tool/libguestfs-test-tool.pod:102
795 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
796 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
797 #: ../tools/virt-win-reg.pl:780
798 msgid ""
799 "This program is free software; you can redistribute it and/or modify it "
800 "under the terms of the GNU General Public License as published by the Free "
801 "Software Foundation; either version 2 of the License, or (at your option) "
802 "any later version."
803 msgstr ""
804
805 #. type: textblock
806 #: ../cat/virt-cat.pod:221 ../cat/virt-filesystems.pod:396
807 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
808 #: ../fish/guestfish.pod:1274 ../fish/virt-copy-in.pod:74
809 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
810 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:328
811 #: ../inspector/virt-inspector.pod:403 ../rescue/virt-rescue.pod:305
812 #: ../resize/virt-resize.pod:642 ../test-tool/libguestfs-test-tool.pod:107
813 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
814 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
815 #: ../tools/virt-win-reg.pl:785
816 msgid ""
817 "This program is distributed in the hope that it will be useful, but WITHOUT "
818 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
819 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
820 "more details."
821 msgstr ""
822 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
823 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
824 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
825 "дізнатися з GNU General Public License."
826
827 #. type: textblock
828 #: ../cat/virt-cat.pod:226 ../cat/virt-filesystems.pod:401
829 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
830 #: ../fish/guestfish.pod:1279 ../fish/virt-copy-in.pod:79
831 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
832 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:333
833 #: ../inspector/virt-inspector.pod:408 ../rescue/virt-rescue.pod:310
834 #: ../resize/virt-resize.pod:647 ../test-tool/libguestfs-test-tool.pod:112
835 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
836 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
837 #: ../tools/virt-win-reg.pl:790
838 msgid ""
839 "You should have received a copy of the GNU General Public License along with "
840 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
841 "Ave, Cambridge, MA 02139, USA."
842 msgstr ""
843
844 #. type: textblock
845 #: ../cat/virt-filesystems.pod:5
846 msgid ""
847 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
848 "virtual machine or disk image"
849 msgstr ""
850
851 #. type: verbatim
852 #: ../cat/virt-filesystems.pod:9
853 #, fuzzy, no-wrap
854 #| msgid ""
855 #| " virt-list-partitions [--options] domname\n"
856 #| "\n"
857 msgid ""
858 " virt-filesystems [--options] -d domname\n"
859 "\n"
860 msgstr ""
861 " virt-list-partitions [--параметри] назва_домену\n"
862 "\n"
863
864 #. type: verbatim
865 #: ../cat/virt-filesystems.pod:11
866 #, fuzzy, no-wrap
867 #| msgid ""
868 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
869 #| "\n"
870 msgid ""
871 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
872 "\n"
873 msgstr ""
874 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
875 "\n"
876
877 #. type: textblock
878 #: ../cat/virt-filesystems.pod:15
879 msgid ""
880 "This tool allows you to discover filesystems, partitions, logical volumes, "
881 "and their sizes in a disk image or virtual machine.  It is a replacement for "
882 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
883 msgstr ""
884
885 #. type: textblock
886 #: ../cat/virt-filesystems.pod:20
887 msgid ""
888 "One use for this tool is from shell scripts to iterate over all filesystems "
889 "from a disk image:"
890 msgstr ""
891
892 #. type: verbatim
893 #: ../cat/virt-filesystems.pod:23
894 #, no-wrap
895 msgid ""
896 " for fs in $(virt-filesystems -a disk.img); do\n"
897 "   # ...\n"
898 " done\n"
899 "\n"
900 msgstr ""
901
902 #. type: textblock
903 #: ../cat/virt-filesystems.pod:27
904 msgid ""
905 "Another use is to list partitions before using another tool to modify those "
906 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
907 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
908 msgstr ""
909
910 #. type: textblock
911 #: ../cat/virt-filesystems.pod:32
912 msgid ""
913 "Various command line options control what this program displays.  You need "
914 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
915 "guest respectively.  If you just specify that then the program shows "
916 "filesystems found, one per line, like this:"
917 msgstr ""
918
919 #. type: verbatim
920 #: ../cat/virt-filesystems.pod:37
921 #, no-wrap
922 msgid ""
923 " $ virt-filesystems -a disk.img\n"
924 " /dev/sda1\n"
925 " /dev/vg_guest/lv_root\n"
926 "\n"
927 msgstr ""
928
929 #. type: textblock
930 #: ../cat/virt-filesystems.pod:41
931 msgid ""
932 "If you add I<-l> or I<--long> then the output includes extra information:"
933 msgstr ""
934
935 #. type: verbatim
936 #: ../cat/virt-filesystems.pod:44
937 #, no-wrap
938 msgid ""
939 " $ virt-filesystems -a disk.img -l\n"
940 " Name                   Type         VFS   Label  Size\n"
941 " /dev/sda1              filesystem   ext4  boot   524288000\n"
942 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
943 "\n"
944 msgstr ""
945
946 #. type: textblock
947 #: ../cat/virt-filesystems.pod:49
948 msgid ""
949 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
950 "shown as well:"
951 msgstr ""
952
953 #. type: verbatim
954 #: ../cat/virt-filesystems.pod:52
955 #, no-wrap
956 msgid ""
957 " $ virt-filesystems -a disk.img --extra\n"
958 " /dev/sda1\n"
959 " /dev/vg_guest/lv_root\n"
960 " /dev/vg_guest/lv_swap\n"
961 " /dev/vg_guest/lv_data\n"
962 "\n"
963 msgstr ""
964
965 #. type: textblock
966 #: ../cat/virt-filesystems.pod:58
967 msgid ""
968 "If you add I<--partitions> then partitions are shown instead of filesystems:"
969 msgstr ""
970
971 #. type: verbatim
972 #: ../cat/virt-filesystems.pod:60
973 #, no-wrap
974 msgid ""
975 " $ virt-filesystems -a disk.img --partitions\n"
976 " /dev/sda1\n"
977 " /dev/sda2\n"
978 "\n"
979 msgstr ""
980
981 #. type: textblock
982 #: ../cat/virt-filesystems.pod:64
983 msgid ""
984 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
985 "volumes>, I<--block-devices> to list those items."
986 msgstr ""
987
988 #. type: textblock
989 #: ../cat/virt-filesystems.pod:67
990 msgid ""
991 "You can use these options in combination as well (if you want a combination "
992 "including filesystems, you have to add I<--filesystems>).  Notice that some "
993 "items fall into several categories (eg. C</dev/sda1> might be both a "
994 "partition and a filesystem).  These items are listed several times.  To get "
995 "a list which includes absolutely everything that virt-filesystems knows "
996 "about, use the I<--all> option."
997 msgstr ""
998
999 #. type: textblock
1000 #: ../cat/virt-filesystems.pod:74
1001 msgid ""
1002 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1003 "uuid> option to display device and filesystem UUIDs in the long output."
1004 msgstr ""
1005
1006 #. type: textblock
1007 #: ../cat/virt-filesystems.pod:78
1008 msgid ""
1009 "I<--all --long --uuid> is a useful combination to display all possible "
1010 "information about everything."
1011 msgstr ""
1012
1013 #. type: verbatim
1014 #: ../cat/virt-filesystems.pod:81
1015 #, no-wrap
1016 msgid ""
1017 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1018 " Name      Type       VFS  Label           Size Parent   UUID\n"
1019 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1020 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1021 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1022 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1023 " /dev/sda  device     -    -               20G  -        -\n"
1024 "\n"
1025 msgstr ""
1026
1027 #. type: textblock
1028 #: ../cat/virt-filesystems.pod:89
1029 msgid ""
1030 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1031 msgstr ""
1032
1033 #. type: =item
1034 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1035 #, fuzzy
1036 #| msgid "B<--help>"
1037 msgid "B<--all>"
1038 msgstr "B<--help>"
1039
1040 #. type: textblock
1041 #: ../cat/virt-filesystems.pod:112
1042 msgid ""
1043 "Display everything.  This is currently the same as specifying these options: "
1044 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1045 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1046 "added to this list in future)."
1047 msgstr ""
1048
1049 #. type: textblock
1050 #: ../cat/virt-filesystems.pod:117
1051 #, fuzzy
1052 #| msgid "See also L</is-lv>."
1053 msgid "See also I<--long>."
1054 msgstr "Див. також L</is-lv>."
1055
1056 #. type: =item
1057 #: ../cat/virt-filesystems.pod:119
1058 #, fuzzy
1059 #| msgid "B<--live>"
1060 msgid "B<--blkdevs>"
1061 msgstr "B<--live>"
1062
1063 #. type: =item
1064 #: ../cat/virt-filesystems.pod:121
1065 #, fuzzy
1066 #| msgid "is-blockdev"
1067 msgid "B<--block-devices>"
1068 msgstr "is-blockdev"
1069
1070 #. type: textblock
1071 #: ../cat/virt-filesystems.pod:123
1072 #, fuzzy
1073 #| msgid "is-blockdev"
1074 msgid "Display block devices."
1075 msgstr "is-blockdev"
1076
1077 #. type: =item
1078 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1079 #, fuzzy
1080 #| msgid "B<--csh>"
1081 msgid "B<--csv>"
1082 msgstr "B<--csh>"
1083
1084 #. type: textblock
1085 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1086 msgid ""
1087 "Write out the results in CSV format (comma-separated values).  This format "
1088 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1089 "ABOUT CSV FORMAT> below."
1090 msgstr ""
1091
1092 #. type: textblock
1093 #: ../cat/virt-filesystems.pod:150
1094 msgid ""
1095 "When prompting for keys and passphrases, virt-filesystems normally turns "
1096 "echoing off so you cannot see what you are typing.  If you are not worried "
1097 "about Tempest attacks and there is no one else in the room you can specify "
1098 "this flag to see what you are typing."
1099 msgstr ""
1100
1101 #. type: =item
1102 #: ../cat/virt-filesystems.pod:155
1103 #, fuzzy
1104 #| msgid "B<--ro>"
1105 msgid "B<--extra>"
1106 msgstr "B<--ro>"
1107
1108 #. type: textblock
1109 #: ../cat/virt-filesystems.pod:157
1110 msgid ""
1111 "This causes filesystems that are not ordinary, mountable filesystems to be "
1112 "displayed.  This category includes swapspace, and filesystems that are empty "
1113 "or contain unknown data."
1114 msgstr ""
1115
1116 #. type: textblock
1117 #: ../cat/virt-filesystems.pod:161
1118 msgid "This option implies I<--filesystems>."
1119 msgstr ""
1120
1121 #. type: =item
1122 #: ../cat/virt-filesystems.pod:163
1123 #, fuzzy
1124 #| msgid "list-filesystems"
1125 msgid "B<--filesystems>"
1126 msgstr "list-filesystems"
1127
1128 #. type: textblock
1129 #: ../cat/virt-filesystems.pod:165
1130 msgid ""
1131 "Display mountable filesystems.  If no display option was selected then this "
1132 "option is implied."
1133 msgstr ""
1134
1135 #. type: textblock
1136 #: ../cat/virt-filesystems.pod:168
1137 msgid "With I<--extra>, non-mountable filesystems are shown too."
1138 msgstr ""
1139
1140 #. type: verbatim
1141 #: ../cat/virt-filesystems.pod:181
1142 #, fuzzy, no-wrap
1143 #| msgid ""
1144 #| " guestfish --format=raw -a disk.img\n"
1145 #| "\n"
1146 msgid ""
1147 " virt-filesystems --format=raw -a disk.img\n"
1148 "\n"
1149 msgstr ""
1150 " guestfish --format=raw -a disk.img\n"
1151 "\n"
1152
1153 #. type: verbatim
1154 #: ../cat/virt-filesystems.pod:185
1155 #, fuzzy, no-wrap
1156 #| msgid ""
1157 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1158 #| "\n"
1159 msgid ""
1160 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1161 "\n"
1162 msgstr ""
1163 " guestfish --format=raw -a disk.img --format -a another.img\n"
1164 "\n"
1165
1166 #. type: =item
1167 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1168 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1169 #: ../tools/virt-list-partitions.pl:109
1170 msgid "B<-h>"
1171 msgstr "B<-h>"
1172
1173 #. type: =item
1174 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1175 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1176 #, fuzzy
1177 #| msgid "B<-h> | B<--human-readable>"
1178 msgid "B<--human-readable>"
1179 msgstr "B<-h> | B<--human-readable>"
1180
1181 #. type: textblock
1182 #: ../cat/virt-filesystems.pod:198
1183 msgid "In I<--long> mode, display sizes in human-readable format."
1184 msgstr ""
1185
1186 #. type: =item
1187 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1188 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1189 msgid "B<-l>"
1190 msgstr ""
1191
1192 #. type: =item
1193 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1194 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1195 #, fuzzy
1196 #| msgid "B<--ro>"
1197 msgid "B<--long>"
1198 msgstr "B<--ro>"
1199
1200 #. type: textblock
1201 #: ../cat/virt-filesystems.pod:209
1202 msgid "Display extra columns of data (\"long format\")."
1203 msgstr ""
1204
1205 #. type: textblock
1206 #: ../cat/virt-filesystems.pod:211
1207 msgid "A title row is added unless you also specify I<--no-title>."
1208 msgstr ""
1209
1210 #. type: textblock
1211 #: ../cat/virt-filesystems.pod:213
1212 msgid ""
1213 "The extra columns displayed depend on what output you select, and the "
1214 "ordering of columns may change in future versions.  Use the title row, I<--"
1215 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1216 "programs."
1217 msgstr ""
1218
1219 #. type: textblock
1220 #: ../cat/virt-filesystems.pod:218
1221 msgid ""
1222 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1223 "default is to show raw numbers of I<bytes>."
1224 msgstr ""
1225
1226 #. type: textblock
1227 #: ../cat/virt-filesystems.pod:221
1228 msgid "Use I<--uuid> to display UUIDs too."
1229 msgstr ""
1230
1231 #. type: =item
1232 #: ../cat/virt-filesystems.pod:223
1233 #, fuzzy
1234 #| msgid "B<--live>"
1235 msgid "B<--lvs>"
1236 msgstr "B<--live>"
1237
1238 #. type: =item
1239 #: ../cat/virt-filesystems.pod:225
1240 #, fuzzy
1241 #| msgid "B<--live>"
1242 msgid "B<--logvols>"
1243 msgstr "B<--live>"
1244
1245 #. type: =item
1246 #: ../cat/virt-filesystems.pod:227
1247 #, fuzzy
1248 #| msgid "B<--live>"
1249 msgid "B<--logical-volumes>"
1250 msgstr "B<--live>"
1251
1252 #. type: textblock
1253 #: ../cat/virt-filesystems.pod:229
1254 msgid ""
1255 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1256 "of whether the LVs contain filesystems."
1257 msgstr ""
1258
1259 #. type: =item
1260 #: ../cat/virt-filesystems.pod:232
1261 #, fuzzy
1262 #| msgid "B<--listen>"
1263 msgid "B<--no-title>"
1264 msgstr "B<--listen>"
1265
1266 #. type: textblock
1267 #: ../cat/virt-filesystems.pod:234
1268 msgid "In I<--long> mode, don't add a title row."
1269 msgstr ""
1270
1271 #. type: textblock
1272 #: ../cat/virt-filesystems.pod:236
1273 msgid ""
1274 "Note that the order of the columns is not fixed, and may change in future "
1275 "versions of virt-filesystems, so using this option may give you unexpected "
1276 "surprises."
1277 msgstr ""
1278
1279 #. type: =item
1280 #: ../cat/virt-filesystems.pod:240
1281 #, fuzzy
1282 #| msgid "B<--partition>"
1283 msgid "B<--parts>"
1284 msgstr "B<--partition>"
1285
1286 #. type: =item
1287 #: ../cat/virt-filesystems.pod:242
1288 #, fuzzy
1289 #| msgid "B<--partition>"
1290 msgid "B<--partitions>"
1291 msgstr "B<--partition>"
1292
1293 #. type: textblock
1294 #: ../cat/virt-filesystems.pod:244
1295 msgid ""
1296 "Display partitions.  In this mode, these are displayed irrespective of "
1297 "whether the partitions contain filesystems."
1298 msgstr ""
1299
1300 #. type: =item
1301 #: ../cat/virt-filesystems.pod:247
1302 #, fuzzy
1303 #| msgid "B<--csh>"
1304 msgid "B<--pvs>"
1305 msgstr "B<--csh>"
1306
1307 #. type: =item
1308 #: ../cat/virt-filesystems.pod:249
1309 #, fuzzy
1310 #| msgid "B<--verbose>"
1311 msgid "B<--physvols>"
1312 msgstr "B<--verbose>"
1313
1314 #. type: =item
1315 #: ../cat/virt-filesystems.pod:251
1316 msgid "B<--physical-volumes>"
1317 msgstr ""
1318
1319 #. type: textblock
1320 #: ../cat/virt-filesystems.pod:253
1321 msgid "Display LVM physical volumes."
1322 msgstr ""
1323
1324 #. type: =item
1325 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1326 #, fuzzy
1327 #| msgid "B<--live>"
1328 msgid "B<--uuid>"
1329 msgstr "B<--live>"
1330
1331 #. type: =item
1332 #: ../cat/virt-filesystems.pod:257
1333 #, fuzzy
1334 #| msgid "B<--csh>"
1335 msgid "B<--uuids>"
1336 msgstr "B<--csh>"
1337
1338 #. type: textblock
1339 #: ../cat/virt-filesystems.pod:259
1340 msgid "In I<--long> mode, display UUIDs as well."
1341 msgstr ""
1342
1343 #. type: =item
1344 #: ../cat/virt-filesystems.pod:273
1345 #, fuzzy
1346 #| msgid "B<--csh>"
1347 msgid "B<--vgs>"
1348 msgstr "B<--csh>"
1349
1350 #. type: =item
1351 #: ../cat/virt-filesystems.pod:275
1352 #, fuzzy
1353 #| msgid "B<--verbose>"
1354 msgid "B<--volgroups>"
1355 msgstr "B<--verbose>"
1356
1357 #. type: =item
1358 #: ../cat/virt-filesystems.pod:277
1359 #, fuzzy
1360 #| msgid "B<--verbose>"
1361 msgid "B<--volume-groups>"
1362 msgstr "B<--verbose>"
1363
1364 #. type: textblock
1365 #: ../cat/virt-filesystems.pod:279
1366 msgid "Display LVM volume groups."
1367 msgstr ""
1368
1369 #. type: =head1
1370 #: ../cat/virt-filesystems.pod:287
1371 msgid "COLUMNS"
1372 msgstr ""
1373
1374 #. type: textblock
1375 #: ../cat/virt-filesystems.pod:289
1376 msgid ""
1377 "Note that columns in the output are subject to reordering and change in "
1378 "future versions of this tool."
1379 msgstr ""
1380
1381 #. type: =item
1382 #: ../cat/virt-filesystems.pod:294
1383 msgid "B<Name>"
1384 msgstr ""
1385
1386 #. type: textblock
1387 #: ../cat/virt-filesystems.pod:296
1388 msgid "The filesystem, partition, block device or LVM name."
1389 msgstr ""
1390
1391 #. type: textblock
1392 #: ../cat/virt-filesystems.pod:298
1393 msgid ""
1394 "For device and partition names these are displayed as canonical libguestfs "
1395 "names, so that for example C</dev/sda2> is the second partition on the first "
1396 "device."
1397 msgstr ""
1398
1399 #. type: textblock
1400 #: ../cat/virt-filesystems.pod:302
1401 msgid ""
1402 "If the I<--long> option is B<not> specified, then only the name column is "
1403 "shown in the output."
1404 msgstr ""
1405
1406 #. type: =item
1407 #: ../cat/virt-filesystems.pod:305
1408 #, fuzzy
1409 #| msgid "B<-N type>"
1410 msgid "B<Type>"
1411 msgstr "B<-N тип>"
1412
1413 #. type: textblock
1414 #: ../cat/virt-filesystems.pod:307
1415 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1416 msgstr ""
1417
1418 #. type: =item
1419 #: ../cat/virt-filesystems.pod:309
1420 msgid "B<VFS>"
1421 msgstr ""
1422
1423 #. type: textblock
1424 #: ../cat/virt-filesystems.pod:311
1425 msgid ""
1426 "If there is a filesystem, then this column displays the filesystem type if "
1427 "one could be detected, eg. C<ext4>."
1428 msgstr ""
1429
1430 #. type: =item
1431 #: ../cat/virt-filesystems.pod:314
1432 msgid "B<Label>"
1433 msgstr ""
1434
1435 #. type: textblock
1436 #: ../cat/virt-filesystems.pod:316
1437 msgid ""
1438 "If the object has a label (used for identifying and mounting filesystems) "
1439 "then this column contains the label."
1440 msgstr ""
1441
1442 #. type: =item
1443 #: ../cat/virt-filesystems.pod:319
1444 #, fuzzy
1445 #| msgid "B<part_size>"
1446 msgid "B<Size>"
1447 msgstr "B<part_size>"
1448
1449 #. type: textblock
1450 #: ../cat/virt-filesystems.pod:321
1451 msgid ""
1452 "The size of the object in bytes.  If the I<--human> option is used then the "
1453 "size is displayed in a human-readable form."
1454 msgstr ""
1455
1456 #. type: =item
1457 #: ../cat/virt-filesystems.pod:324
1458 msgid "B<Parent>"
1459 msgstr ""
1460
1461 #. type: textblock
1462 #: ../cat/virt-filesystems.pod:326
1463 msgid ""
1464 "The parent column records the parent relationship between objects.  For "
1465 "example, if the object is a partition, then this column contains the name of "
1466 "the containing device.  If the object is a logical volume, then this column "
1467 "is the name of the volume group."
1468 msgstr ""
1469
1470 #. type: =item
1471 #: ../cat/virt-filesystems.pod:331
1472 msgid "B<UUID>"
1473 msgstr ""
1474
1475 #. type: textblock
1476 #: ../cat/virt-filesystems.pod:333
1477 msgid ""
1478 "If the object has a UUID (used for identifying and mounting filesystems and "
1479 "block devices) then this column contains the UUID as a string."
1480 msgstr ""
1481
1482 #. type: textblock
1483 #: ../cat/virt-filesystems.pod:337
1484 msgid "The UUID is only displayed if the I<--uuid> option is given."
1485 msgstr ""
1486
1487 #. type: =head1
1488 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1489 #: ../df/virt-df.pod:191
1490 msgid "NOTE ABOUT CSV FORMAT"
1491 msgstr ""
1492
1493 #. type: textblock
1494 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1495 #: ../df/virt-df.pod:193
1496 msgid ""
1497 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1498 "should be easy to parse, but it is definitely not easy to parse."
1499 msgstr ""
1500
1501 #. type: textblock
1502 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1503 #: ../df/virt-df.pod:196
1504 msgid ""
1505 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1506 "reliably.  This example has two columns:"
1507 msgstr ""
1508
1509 #. type: verbatim
1510 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1511 #: ../df/virt-df.pod:199
1512 #, no-wrap
1513 msgid ""
1514 " \"foo,bar\",baz\n"
1515 "\n"
1516 msgstr ""
1517
1518 #. type: textblock
1519 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1520 #: ../df/virt-df.pod:201
1521 msgid ""
1522 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1523 "reliably.  This example has one row:"
1524 msgstr ""
1525
1526 #. type: verbatim
1527 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1528 #: ../df/virt-df.pod:204
1529 #, no-wrap
1530 msgid ""
1531 " \"foo\n"
1532 " bar\",baz\n"
1533 "\n"
1534 msgstr ""
1535
1536 #. type: textblock
1537 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1538 #: ../df/virt-df.pod:207
1539 msgid ""
1540 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1541 "packaged in major Linux distributions)."
1542 msgstr ""
1543
1544 #. type: textblock
1545 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1546 #: ../df/virt-df.pod:210
1547 msgid ""
1548 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1549 "or Python's built-in csv library)."
1550 msgstr ""
1551
1552 #. type: textblock
1553 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1554 #: ../df/virt-df.pod:213
1555 msgid "Most spreadsheets and databases can import CSV directly."
1556 msgstr ""
1557
1558 #. type: textblock
1559 #: ../cat/virt-filesystems.pod:374
1560 #, fuzzy
1561 #| msgid ""
1562 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1563 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1564 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1565 msgid ""
1566 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1567 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1568 "libguestfs.org/>."
1569 msgstr ""
1570 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1571 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1572 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1573
1574 #. type: textblock
1575 #: ../cat/virt-filesystems.pod:389 ../tools/virt-make-fs.pl:570
1576 #: ../tools/virt-win-reg.pl:778
1577 msgid "Copyright (C) 2010 Red Hat Inc."
1578 msgstr ""
1579
1580 #. type: textblock
1581 #: ../cat/virt-ls.pod:5
1582 msgid "virt-ls - List files in a virtual machine"
1583 msgstr ""
1584
1585 #. type: verbatim
1586 #: ../cat/virt-ls.pod:9
1587 #, no-wrap
1588 msgid ""
1589 " virt-ls [--options] -d domname directory [directory ...]\n"
1590 "\n"
1591 msgstr ""
1592
1593 #. type: verbatim
1594 #: ../cat/virt-ls.pod:11
1595 #, fuzzy, no-wrap
1596 #| msgid ""
1597 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1598 #| "\n"
1599 msgid ""
1600 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1601 "\n"
1602 msgstr ""
1603 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1604 "\n"
1605
1606 #. type: textblock
1607 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1608 msgid "Old style:"
1609 msgstr ""
1610
1611 #. type: verbatim
1612 #: ../cat/virt-ls.pod:15
1613 #, fuzzy, no-wrap
1614 #| msgid ""
1615 #| " virt-list-partitions [--options] domname\n"
1616 #| "\n"
1617 msgid ""
1618 " virt-ls [--options] domname directory\n"
1619 "\n"
1620 msgstr ""
1621 " virt-list-partitions [--параметри] назва_домену\n"
1622 "\n"
1623
1624 #. type: verbatim
1625 #: ../cat/virt-ls.pod:17
1626 #, fuzzy, no-wrap
1627 #| msgid ""
1628 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1629 #| "\n"
1630 msgid ""
1631 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1632 "\n"
1633 msgstr ""
1634 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1635 "\n"
1636
1637 #. type: textblock
1638 #: ../cat/virt-ls.pod:21
1639 msgid ""
1640 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1641 "more from a virtual machine or disk image."
1642 msgstr ""
1643
1644 #. type: textblock
1645 #: ../cat/virt-ls.pod:24
1646 msgid ""
1647 "Multiple directory names can be given, in which case the output from each is "
1648 "concatenated."
1649 msgstr ""
1650
1651 #. type: textblock
1652 #: ../cat/virt-ls.pod:27
1653 msgid ""
1654 "To list directories from a libvirt guest use the I<-d> option to specify the "
1655 "name of the guest.  For a disk image, use the I<-a> option."
1656 msgstr ""
1657
1658 #. type: textblock
1659 #: ../cat/virt-ls.pod:31
1660 msgid ""
1661 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1662 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1663 "(3)> API."
1664 msgstr ""
1665
1666 #. type: textblock
1667 #: ../cat/virt-ls.pod:37
1668 msgid "Get a list of all files and directories in a virtual machine:"
1669 msgstr ""
1670
1671 #. type: verbatim
1672 #: ../cat/virt-ls.pod:39
1673 #, fuzzy, no-wrap
1674 #| msgid ""
1675 #| " guestfish --ro -d myguest -i\n"
1676 #| "\n"
1677 msgid ""
1678 " virt-ls -R -d guest /\n"
1679 "\n"
1680 msgstr ""
1681 " guestfish --ro -d myguest -i\n"
1682 "\n"
1683
1684 #. type: textblock
1685 #: ../cat/virt-ls.pod:41
1686 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1687 msgstr ""
1688
1689 #. type: verbatim
1690 #: ../cat/virt-ls.pod:43
1691 #, no-wrap
1692 msgid ""
1693 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1694 "\n"
1695 msgstr ""
1696
1697 #. type: textblock
1698 #: ../cat/virt-ls.pod:45
1699 msgid "List all public-writable directories in a Linux virtual machine:"
1700 msgstr ""
1701
1702 #. type: verbatim
1703 #: ../cat/virt-ls.pod:47
1704 #, no-wrap
1705 msgid ""
1706 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1707 "\n"
1708 msgstr ""
1709
1710 #. type: textblock
1711 #: ../cat/virt-ls.pod:49
1712 msgid "List all Unix domain sockets in a Linux virtual machine:"
1713 msgstr ""
1714
1715 #. type: verbatim
1716 #: ../cat/virt-ls.pod:51
1717 #, no-wrap
1718 msgid ""
1719 " virt-ls -lR -d guest / | grep '^s'\n"
1720 "\n"
1721 msgstr ""
1722
1723 #. type: textblock
1724 #: ../cat/virt-ls.pod:53
1725 msgid "List all regular files with filenames ending in '.png':"
1726 msgstr ""
1727
1728 #. type: verbatim
1729 #: ../cat/virt-ls.pod:55
1730 #, no-wrap
1731 msgid ""
1732 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1733 "\n"
1734 msgstr ""
1735
1736 #. type: textblock
1737 #: ../cat/virt-ls.pod:57
1738 msgid "To display files larger than 10MB in home directories:"
1739 msgstr ""
1740
1741 #. type: verbatim
1742 #: ../cat/virt-ls.pod:59
1743 #, no-wrap
1744 msgid ""
1745 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1746 "\n"
1747 msgstr ""
1748
1749 #. type: textblock
1750 #: ../cat/virt-ls.pod:61
1751 msgid "Find everything modified in the last 7 days:"
1752 msgstr ""
1753
1754 #. type: verbatim
1755 #: ../cat/virt-ls.pod:63
1756 #, no-wrap
1757 msgid ""
1758 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1759 "\n"
1760 msgstr ""
1761
1762 #. type: textblock
1763 #: ../cat/virt-ls.pod:65
1764 msgid "Find regular files modified in the last 24 hours:"
1765 msgstr ""
1766
1767 #. type: verbatim
1768 #: ../cat/virt-ls.pod:67
1769 #, no-wrap
1770 msgid ""
1771 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1772 "\n"
1773 msgstr ""
1774
1775 #. type: =head2
1776 #: ../cat/virt-ls.pod:69
1777 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1778 msgstr ""
1779
1780 #. type: textblock
1781 #: ../cat/virt-ls.pod:71
1782 msgid ""
1783 "Find the differences between files in a guest and an earlier snapshot of the "
1784 "same guest."
1785 msgstr ""
1786
1787 #. type: verbatim
1788 #: ../cat/virt-ls.pod:74
1789 #, no-wrap
1790 msgid ""
1791 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1792 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1793 " diff -u old new | less\n"
1794 "\n"
1795 msgstr ""
1796
1797 #. type: textblock
1798 #: ../cat/virt-ls.pod:78
1799 msgid ""
1800 "The commands above won't find files where the content has changed but the "
1801 "metadata (eg. file size and modification date) is the same.  To do that, you "
1802 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
1803 "checksum> can be quite slow since it has to read and compute a checksum of "
1804 "every regular file in the virtual machine."
1805 msgstr ""
1806
1807 #. type: =head1
1808 #: ../cat/virt-ls.pod:84
1809 msgid "OUTPUT MODES"
1810 msgstr ""
1811
1812 #. type: textblock
1813 #: ../cat/virt-ls.pod:86
1814 msgid ""
1815 "C<virt-ls> has four output modes, controlled by different combinations of "
1816 "the I<-l> and I<-R> options."
1817 msgstr ""
1818
1819 #. type: =head2
1820 #: ../cat/virt-ls.pod:89
1821 msgid "SIMPLE LISTING"
1822 msgstr ""
1823
1824 #. type: textblock
1825 #: ../cat/virt-ls.pod:91
1826 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1827 msgstr ""
1828
1829 #. type: verbatim
1830 #: ../cat/virt-ls.pod:93
1831 #, no-wrap
1832 msgid ""
1833 " $ virt-ls -d guest /\n"
1834 " bin\n"
1835 " boot\n"
1836 " [etc.]\n"
1837 "\n"
1838 msgstr ""
1839
1840 #. type: =head2
1841 #: ../cat/virt-ls.pod:98
1842 #, fuzzy
1843 #| msgid "MOUNTING"
1844 msgid "LONG LISTING"
1845 msgstr "МОНТУВАННЯ"
1846
1847 #. type: textblock
1848 #: ../cat/virt-ls.pod:100
1849 msgid ""
1850 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1851 "(more specifically, like the C<guestfs_ll> function)."
1852 msgstr ""
1853
1854 #. type: verbatim
1855 #: ../cat/virt-ls.pod:103
1856 #, no-wrap
1857 msgid ""
1858 " $ virt-ls -l -d guest /\n"
1859 " total 204\n"
1860 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1861 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1862 " [etc.]\n"
1863 "\n"
1864 msgstr ""
1865
1866 #. type: textblock
1867 #: ../cat/virt-ls.pod:109
1868 msgid ""
1869 "Note that while this is useful for displaying a directory, do not try "
1870 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1871 "instead."
1872 msgstr ""
1873
1874 #. type: =head2
1875 #: ../cat/virt-ls.pod:113
1876 msgid "RECURSIVE LISTING"
1877 msgstr ""
1878
1879 #. type: textblock
1880 #: ../cat/virt-ls.pod:115
1881 msgid ""
1882 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1883 "and directories recursively:"
1884 msgstr ""
1885
1886 #. type: verbatim
1887 #: ../cat/virt-ls.pod:118
1888 #, no-wrap
1889 msgid ""
1890 " $ virt-ls -R -d guest /tmp\n"
1891 " foo\n"
1892 " foo/bar\n"
1893 " [etc.]\n"
1894 "\n"
1895 msgstr ""
1896
1897 #. type: textblock
1898 #: ../cat/virt-ls.pod:123
1899 msgid ""
1900 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1901 "converts C<\\0> characters to C<\\n>."
1902 msgstr ""
1903
1904 #. type: =head2
1905 #: ../cat/virt-ls.pod:126
1906 msgid "RECURSIVE LONG LISTING"
1907 msgstr ""
1908
1909 #. type: textblock
1910 #: ../cat/virt-ls.pod:128
1911 msgid ""
1912 "Using I<-lR> options together changes the output to display directories "
1913 "recursively, with file stats, and optionally other features such as "
1914 "checksums and extended attributes."
1915 msgstr ""
1916
1917 #. type: textblock
1918 #: ../cat/virt-ls.pod:132
1919 msgid ""
1920 "Most of the interesting features of C<virt-ls> are only available when using "
1921 "I<-lR> mode."
1922 msgstr ""
1923
1924 #. type: textblock
1925 #: ../cat/virt-ls.pod:135
1926 msgid ""
1927 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1928 "you cannot use the output in another program (because filenames can contain "
1929 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1930 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1931 "on you by creating filenames with embedded newline characters.  To B<safely> "
1932 "parse the output in another program, use the I<--csv> (Comma-Separated "
1933 "Values) option."
1934 msgstr ""
1935
1936 #. type: textblock
1937 #: ../cat/virt-ls.pod:143
1938 msgid ""
1939 "Note that this output format is completely unrelated to the C<ls -lR> "
1940 "command."
1941 msgstr ""
1942
1943 #. type: verbatim
1944 #: ../cat/virt-ls.pod:146
1945 #, no-wrap
1946 msgid ""
1947 " $ virt-ls -lR -d guest /bin\n"
1948 " d 0555       4096 /bin\n"
1949 " - 0755        123 /bin/alsaunmute\n"
1950 " - 0755      28328 /bin/arch\n"
1951 " l 0777          4 /bin/awk -> gawk\n"
1952 " - 0755      27216 /bin/basename\n"
1953 " - 0755     943360 /bin/bash\n"
1954 " [etc.]\n"
1955 "\n"
1956 msgstr ""
1957
1958 #. type: textblock
1959 #: ../cat/virt-ls.pod:155
1960 msgid "These basic fields are always shown:"
1961 msgstr ""
1962
1963 #. type: =item
1964 #: ../cat/virt-ls.pod:159
1965 #, fuzzy
1966 #| msgid "vfs-type"
1967 msgid "type"
1968 msgstr "vfs-type"
1969
1970 #. type: textblock
1971 #: ../cat/virt-ls.pod:161
1972 msgid ""
1973 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1974 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1975 "link), C<s> (socket) or C<u> (unknown)."
1976 msgstr ""
1977
1978 #. type: =item
1979 #: ../cat/virt-ls.pod:171
1980 #, fuzzy
1981 #| msgid "version"
1982 msgid "permissions"
1983 msgstr "version"
1984
1985 #. type: textblock
1986 #: ../cat/virt-ls.pod:173
1987 msgid "The Unix permissions, displayed as a 4 digit octal number."
1988 msgstr ""
1989
1990 #. type: =item
1991 #: ../cat/virt-ls.pod:175
1992 #, fuzzy
1993 #| msgid "filesize"
1994 msgid "size"
1995 msgstr "filesize"
1996
1997 #. type: textblock
1998 #: ../cat/virt-ls.pod:177
1999 msgid ""
2000 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2001 "readable> option is given, in which case this is shown as a human-readable "
2002 "number."
2003 msgstr ""
2004
2005 #. type: =head2
2006 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4188
2007 msgid "path"
2008 msgstr ""
2009
2010 #. type: textblock
2011 #: ../cat/virt-ls.pod:183
2012 msgid "The full path of the file or directory."
2013 msgstr ""
2014
2015 #. type: =item
2016 #: ../cat/virt-ls.pod:185
2017 #, fuzzy
2018 #| msgid "readlink"
2019 msgid "link"
2020 msgstr "readlink"
2021
2022 #. type: textblock
2023 #: ../cat/virt-ls.pod:187
2024 msgid "For symbolic links only, the link target."
2025 msgstr ""
2026
2027 #. type: textblock
2028 #: ../cat/virt-ls.pod:191
2029 msgid ""
2030 "In I<-lR> mode, additional command line options enable the display of more "
2031 "fields."
2032 msgstr ""
2033
2034 #. type: textblock
2035 #: ../cat/virt-ls.pod:194
2036 msgid ""
2037 "With the I<--uids> flag, these additional fields are displayed before the "
2038 "path:"
2039 msgstr ""
2040
2041 #. type: =item
2042 #: ../cat/virt-ls.pod:199
2043 #, fuzzy
2044 #| msgid "lvuuid"
2045 msgid "uid"
2046 msgstr "lvuuid"
2047
2048 #. type: =item
2049 #: ../cat/virt-ls.pod:201
2050 #, fuzzy
2051 #| msgid "vguuid"
2052 msgid "gid"
2053 msgstr "vguuid"
2054
2055 #. type: textblock
2056 #: ../cat/virt-ls.pod:203
2057 msgid ""
2058 "The UID and GID of the owner of the file (displayed numerically).  Note "
2059 "these only make sense in the context of a Unix-like guest."
2060 msgstr ""
2061
2062 #. type: textblock
2063 #: ../cat/virt-ls.pod:208
2064 msgid "With the I<--times> flag, these additional fields are displayed:"
2065 msgstr ""
2066
2067 #. type: =item
2068 #: ../cat/virt-ls.pod:212
2069 #, fuzzy
2070 #| msgid "time"
2071 msgid "atime"
2072 msgstr "time"
2073
2074 #. type: textblock
2075 #: ../cat/virt-ls.pod:214
2076 msgid "The time of last access."
2077 msgstr ""
2078
2079 #. type: =item
2080 #: ../cat/virt-ls.pod:216
2081 #, fuzzy
2082 #| msgid "time"
2083 msgid "mtime"
2084 msgstr "time"
2085
2086 #. type: textblock
2087 #: ../cat/virt-ls.pod:218
2088 msgid "The time of last modification."
2089 msgstr ""
2090
2091 #. type: =item
2092 #: ../cat/virt-ls.pod:220
2093 #, fuzzy
2094 #| msgid "time"
2095 msgid "ctime"
2096 msgstr "time"
2097
2098 #. type: textblock
2099 #: ../cat/virt-ls.pod:222
2100 msgid "The time of last status change."
2101 msgstr ""
2102
2103 #. type: textblock
2104 #: ../cat/virt-ls.pod:226
2105 msgid ""
2106 "The time fields are displayed as string dates and times, unless one of the "
2107 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2108 msgstr ""
2109
2110 #. type: textblock
2111 #: ../cat/virt-ls.pod:229
2112 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2113 msgstr ""
2114
2115 #. type: =item
2116 #: ../cat/virt-ls.pod:233
2117 #, fuzzy
2118 #| msgid "zero-device"
2119 msgid "device"
2120 msgstr "zero-device"
2121
2122 #. type: textblock
2123 #: ../cat/virt-ls.pod:235
2124 msgid ""
2125 "The device containing the file (displayed as major:minor).  This may not "
2126 "match devices as known to the guest."
2127 msgstr ""
2128
2129 #. type: =item
2130 #: ../cat/virt-ls.pod:238
2131 msgid "inode"
2132 msgstr ""
2133
2134 #. type: textblock
2135 #: ../cat/virt-ls.pod:240
2136 msgid "The inode number."
2137 msgstr ""
2138
2139 #. type: =item
2140 #: ../cat/virt-ls.pod:242
2141 #, fuzzy
2142 #| msgid "readlink"
2143 msgid "nlink"
2144 msgstr "readlink"
2145
2146 #. type: textblock
2147 #: ../cat/virt-ls.pod:244
2148 msgid "The number of hard links."
2149 msgstr ""
2150
2151 #. type: =item
2152 #: ../cat/virt-ls.pod:246
2153 msgid "rdev"
2154 msgstr ""
2155
2156 #. type: textblock
2157 #: ../cat/virt-ls.pod:248
2158 msgid ""
2159 "For block and char special files, the device (displayed as major:minor)."
2160 msgstr ""
2161
2162 #. type: =item
2163 #: ../cat/virt-ls.pod:251
2164 #, fuzzy
2165 #| msgid "C<blocksize>"
2166 msgid "blocks"
2167 msgstr "C<blocksize>"
2168
2169 #. type: textblock
2170 #: ../cat/virt-ls.pod:253
2171 msgid "The number of 512 byte blocks allocated to the file."
2172 msgstr ""
2173
2174 #. type: textblock
2175 #: ../cat/virt-ls.pod:257
2176 msgid ""
2177 "With the I<--checksum> flag, the checksum of the file contents is shown "
2178 "(only for regular files).  Computing file checksums can take a considerable "
2179 "amount of time."
2180 msgstr ""
2181
2182 #. type: =item
2183 #: ../cat/virt-ls.pod:280
2184 #, fuzzy
2185 #| msgid "checksum"
2186 msgid "B<--checksum>"
2187 msgstr "checksum"
2188
2189 #. type: =item
2190 #: ../cat/virt-ls.pod:282
2191 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2192 msgstr ""
2193
2194 #. type: textblock
2195 #: ../cat/virt-ls.pod:284
2196 msgid ""
2197 "Display checksum over file contents for regular files.  With no argument, "
2198 "this defaults to using I<md5>.  Using an argument, you can select the "
2199 "checksum type to use."
2200 msgstr ""
2201
2202 #. type: textblock
2203 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2204 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2205 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2206 msgid ""
2207 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2208 "LISTING> above."
2209 msgstr ""
2210
2211 #. type: textblock
2212 #: ../cat/virt-ls.pod:316
2213 msgid ""
2214 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2215 "so you cannot see what you are typing.  If you are not worried about Tempest "
2216 "attacks and there is no one else in the room you can specify this flag to "
2217 "see what you are typing."
2218 msgstr ""
2219
2220 #. type: =item
2221 #: ../cat/virt-ls.pod:321
2222 #, fuzzy
2223 #| msgid "B<--no-dest-paths>"
2224 msgid "B<--extra-stats>"
2225 msgstr "B<--no-dest-paths>"
2226
2227 #. type: textblock
2228 #: ../cat/virt-ls.pod:323
2229 msgid "Display extra stats."
2230 msgstr ""
2231
2232 #. type: verbatim
2233 #: ../cat/virt-ls.pod:339
2234 #, fuzzy, no-wrap
2235 #| msgid ""
2236 #| " guestfish --format=raw -a disk.img\n"
2237 #| "\n"
2238 msgid ""
2239 " virt-ls --format=raw -a disk.img /dir\n"
2240 "\n"
2241 msgstr ""
2242 " guestfish --format=raw -a disk.img\n"
2243 "\n"
2244
2245 #. type: verbatim
2246 #: ../cat/virt-ls.pod:343
2247 #, fuzzy, no-wrap
2248 #| msgid ""
2249 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2250 #| "\n"
2251 msgid ""
2252 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2253 "\n"
2254 msgstr ""
2255 " guestfish --format=raw -a disk.img --format -a another.img\n"
2256 "\n"
2257
2258 #. type: textblock
2259 #: ../cat/virt-ls.pod:356
2260 msgid "Display file sizes in human-readable format."
2261 msgstr ""
2262
2263 #. type: =item
2264 #: ../cat/virt-ls.pod:370
2265 msgid "B<-R>"
2266 msgstr ""
2267
2268 #. type: =item
2269 #: ../cat/virt-ls.pod:372
2270 #, fuzzy
2271 #| msgid "B<--live>"
2272 msgid "B<--recursive>"
2273 msgstr "B<--live>"
2274
2275 #. type: textblock
2276 #: ../cat/virt-ls.pod:374
2277 msgid ""
2278 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2279 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2280 "LISTING>."
2281 msgstr ""
2282
2283 #. type: textblock
2284 #: ../cat/virt-ls.pod:378
2285 msgid ""
2286 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2287 "LONG LISTING>."
2288 msgstr ""
2289
2290 #. type: textblock
2291 #: ../cat/virt-ls.pod:381
2292 msgid ""
2293 "C<virt-ls -R> produces a recursive list of files starting at the named "
2294 "directory.  See L</RECURSIVE LISTING>."
2295 msgstr ""
2296
2297 #. type: textblock
2298 #: ../cat/virt-ls.pod:384
2299 msgid ""
2300 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2301 "parsed.  See L</RECURSIVE LONG LISTING>."
2302 msgstr ""
2303
2304 #. type: =item
2305 #: ../cat/virt-ls.pod:387
2306 #, fuzzy
2307 #| msgid "B<--live>"
2308 msgid "B<--times>"
2309 msgstr "B<--live>"
2310
2311 #. type: textblock
2312 #: ../cat/virt-ls.pod:389
2313 msgid "Display time fields."
2314 msgstr ""
2315
2316 #. type: =item
2317 #: ../cat/virt-ls.pod:394
2318 #, fuzzy
2319 #| msgid "B<--echo-keys>"
2320 msgid "B<--time-days>"
2321 msgstr "B<--echo-keys>"
2322
2323 #. type: textblock
2324 #: ../cat/virt-ls.pod:396
2325 msgid "Display time fields as days before now (negative if in the future)."
2326 msgstr ""
2327
2328 #. type: textblock
2329 #: ../cat/virt-ls.pod:398
2330 msgid ""
2331 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2332 "of the file is between 0 and 86399 seconds."
2333 msgstr ""
2334
2335 #. type: =item
2336 #: ../cat/virt-ls.pod:404
2337 #, fuzzy
2338 #| msgid "B<--live>"
2339 msgid "B<--time-relative>"
2340 msgstr "B<--live>"
2341
2342 #. type: textblock
2343 #: ../cat/virt-ls.pod:406
2344 msgid "Display time fields as seconds before now (negative if in the future)."
2345 msgstr ""
2346
2347 #. type: =item
2348 #: ../cat/virt-ls.pod:411
2349 #, fuzzy
2350 #| msgid "I<--timeout N>"
2351 msgid "B<--time-t>"
2352 msgstr "I<--timeout N>"
2353
2354 #. type: textblock
2355 #: ../cat/virt-ls.pod:413
2356 msgid "Display time fields as seconds since the Unix epoch."
2357 msgstr ""
2358
2359 #. type: =item
2360 #: ../cat/virt-ls.pod:418
2361 #, fuzzy
2362 #| msgid "B<--csh>"
2363 msgid "B<--uids>"
2364 msgstr "B<--csh>"
2365
2366 #. type: textblock
2367 #: ../cat/virt-ls.pod:420
2368 msgid "Display UID and GID fields."
2369 msgstr ""
2370
2371 #. type: textblock
2372 #: ../cat/virt-ls.pod:445
2373 msgid "Previous versions of virt-ls allowed you to write either:"
2374 msgstr ""
2375
2376 #. type: verbatim
2377 #: ../cat/virt-ls.pod:447
2378 #, fuzzy, no-wrap
2379 #| msgid ""
2380 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2381 #| "\n"
2382 msgid ""
2383 " virt-ls disk.img [disk.img ...] /dir\n"
2384 "\n"
2385 msgstr ""
2386 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2387 "\n"
2388
2389 #. type: verbatim
2390 #: ../cat/virt-ls.pod:451
2391 #, fuzzy, no-wrap
2392 #| msgid ""
2393 #| " inspect-get-hostname root\n"
2394 #| "\n"
2395 msgid ""
2396 " virt-ls guestname /dir\n"
2397 "\n"
2398 msgstr ""
2399 " inspect-get-hostname корінь\n"
2400 "\n"
2401
2402 #. type: textblock
2403 #: ../cat/virt-ls.pod:492
2404 #, fuzzy
2405 #| msgid ""
2406 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2407 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2408 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2409 msgid ""
2410 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2411 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2412 "L<http://libguestfs.org/>."
2413 msgstr ""
2414 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2415 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2416 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2417
2418 #. type: textblock
2419 #: ../cat/virt-ls.pod:508 ../df/virt-df.pod:236 ../edit/virt-edit.pod:369
2420 #: ../rescue/virt-rescue.pod:298
2421 #, fuzzy
2422 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2423 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2424 msgstr "© Red Hat Inc., 2009–2010"
2425
2426 #. type: textblock
2427 #: ../df/virt-df.pod:5
2428 msgid "virt-df - Display free space on virtual filesystems"
2429 msgstr ""
2430
2431 #. type: verbatim
2432 #: ../df/virt-df.pod:9
2433 #, fuzzy, no-wrap
2434 #| msgid ""
2435 #| " virt-list-partitions [--options] domname\n"
2436 #| "\n"
2437 msgid ""
2438 " virt-df [--options]\n"
2439 "\n"
2440 msgstr ""
2441 " virt-list-partitions [--параметри] назва_домену\n"
2442 "\n"
2443
2444 #. type: verbatim
2445 #: ../df/virt-df.pod:11
2446 #, fuzzy, no-wrap
2447 #| msgid ""
2448 #| " virt-list-partitions [--options] domname\n"
2449 #| "\n"
2450 msgid ""
2451 " virt-df [--options] -d domname\n"
2452 "\n"
2453 msgstr ""
2454 " virt-list-partitions [--параметри] назва_домену\n"
2455 "\n"
2456
2457 #. type: verbatim
2458 #: ../df/virt-df.pod:13
2459 #, fuzzy, no-wrap
2460 #| msgid ""
2461 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2462 #| "\n"
2463 msgid ""
2464 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2465 "\n"
2466 msgstr ""
2467 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2468 "\n"
2469
2470 #. type: verbatim
2471 #: ../df/virt-df.pod:17
2472 #, fuzzy, no-wrap
2473 #| msgid ""
2474 #| " virt-list-partitions [--options] domname\n"
2475 #| "\n"
2476 msgid ""
2477 " virt-df [--options] domname\n"
2478 "\n"
2479 msgstr ""
2480 " virt-list-partitions [--параметри] назва_домену\n"
2481 "\n"
2482
2483 #. type: verbatim
2484 #: ../df/virt-df.pod:19
2485 #, fuzzy, no-wrap
2486 #| msgid ""
2487 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2488 #| "\n"
2489 msgid ""
2490 " virt-df [--options] disk.img [disk.img ...]\n"
2491 "\n"
2492 msgstr ""
2493 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2494 "\n"
2495
2496 #. type: textblock
2497 #: ../df/virt-df.pod:23
2498 msgid ""
2499 "C<virt-df> is a command line tool to display free space on virtual machine "
2500 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2501 "allocated to a virtual machine, but can look inside disk images to see how "
2502 "much space is really being used."
2503 msgstr ""
2504
2505 #. type: textblock
2506 #: ../df/virt-df.pod:28
2507 msgid ""
2508 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2509 "to get a list of all active and inactive guests, and performs a C<df>-type "
2510 "operation on each one in turn, printing out the results."
2511 msgstr ""
2512
2513 #. type: textblock
2514 #: ../df/virt-df.pod:32
2515 msgid ""
2516 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2517 "type operation on either the single named libvirt domain, or on the disk "
2518 "image(s) listed on the command line (which must all belong to a single VM).  "
2519 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2520 "guest>.  If you want to run on multiple guests, then you have to invoke "
2521 "C<virt-df> multiple times."
2522 msgstr ""
2523
2524 #. type: textblock
2525 #: ../df/virt-df.pod:39
2526 msgid ""
2527 "Use the I<--csv> option to get a format which can be easily parsed by other "
2528 "programs.  Other options are similar to the standard L<df(1)> command."
2529 msgstr ""
2530
2531 #. type: textblock
2532 #: ../df/virt-df.pod:45
2533 msgid ""
2534 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2535 "output human-readable:"
2536 msgstr ""
2537
2538 #. type: verbatim
2539 #: ../df/virt-df.pod:48
2540 #, no-wrap
2541 msgid ""
2542 " # virt-df -d F14x64 -h\n"
2543 " Filesystem                       Size     Used  Available  Use%\n"
2544 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2545 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2546 "\n"
2547 msgstr ""
2548
2549 #. type: textblock
2550 #: ../df/virt-df.pod:53
2551 msgid "Show disk usage for a disk image file called C<test.img>:"
2552 msgstr ""
2553
2554 #. type: verbatim
2555 #: ../df/virt-df.pod:55
2556 #, no-wrap
2557 msgid ""
2558 " $ virt-df -a test1.img\n"
2559 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2560 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2561 "\n"
2562 msgstr ""
2563
2564 #. type: verbatim
2565 #: ../df/virt-df.pod:112
2566 #, fuzzy, no-wrap
2567 #| msgid ""
2568 #| " guestfish --format=raw -a disk.img\n"
2569 #| "\n"
2570 msgid ""
2571 " virt-df --format=raw -a disk.img\n"
2572 "\n"
2573 msgstr ""
2574 " guestfish --format=raw -a disk.img\n"
2575 "\n"
2576
2577 #. type: verbatim
2578 #: ../df/virt-df.pod:116
2579 #, fuzzy, no-wrap
2580 #| msgid ""
2581 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2582 #| "\n"
2583 msgid ""
2584 " virt-df --format=raw -a disk.img --format -a another.img\n"
2585 "\n"
2586 msgstr ""
2587 " guestfish --format=raw -a disk.img --format -a another.img\n"
2588 "\n"
2589
2590 #. type: textblock
2591 #: ../df/virt-df.pod:129
2592 msgid "Print sizes in human-readable format."
2593 msgstr ""
2594
2595 #. type: textblock
2596 #: ../df/virt-df.pod:131
2597 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2598 msgstr ""
2599
2600 #. type: =item
2601 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2602 msgid "B<-i>"
2603 msgstr "B<-i>"
2604
2605 #. type: =item
2606 #: ../df/virt-df.pod:135
2607 #, fuzzy
2608 #| msgid "B<--live>"
2609 msgid "B<--inodes>"
2610 msgstr "B<--live>"
2611
2612 #. type: textblock
2613 #: ../df/virt-df.pod:137
2614 msgid "Print inodes instead of blocks."
2615 msgstr ""
2616
2617 #. type: =item
2618 #: ../df/virt-df.pod:139
2619 #, fuzzy
2620 #| msgid "B<--merge>"
2621 msgid "B<--one-per-guest>"
2622 msgstr "B<--merge>"
2623
2624 #. type: textblock
2625 #: ../df/virt-df.pod:141
2626 msgid ""
2627 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2628 "disks from several guests to a single libguestfs appliance."
2629 msgstr ""
2630
2631 #. type: textblock
2632 #: ../df/virt-df.pod:144
2633 msgid "You might use this option in the following circumstances:"
2634 msgstr ""
2635
2636 #. type: =item
2637 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2638 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2639 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2640 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2641 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2642 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2643 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2644 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2645 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2646 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2647 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2648 #: ../fish/guestfish-actions.pod:1104 ../fish/guestfish-actions.pod:1108
2649 #: ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116
2650 #: ../fish/guestfish-actions.pod:1124 ../fish/guestfish-actions.pod:1128
2651 #: ../fish/guestfish-actions.pod:1132 ../fish/guestfish-actions.pod:1142
2652 #: ../fish/guestfish-actions.pod:1146 ../fish/guestfish-actions.pod:1150
2653 #: ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1244
2654 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1254
2655 #: ../fish/guestfish-actions.pod:1296 ../fish/guestfish-actions.pod:1300
2656 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1938
2657 #: ../fish/guestfish-actions.pod:1944 ../fish/guestfish-actions.pod:1952
2658 #: ../fish/guestfish-actions.pod:1959 ../fish/guestfish-actions.pod:1966
2659 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
2660 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
2661 #: ../inspector/virt-inspector.pod:384 ../inspector/virt-inspector.pod:388
2662 #: ../resize/virt-resize.pod:282 ../resize/virt-resize.pod:286
2663 #: ../resize/virt-resize.pod:295 ../resize/virt-resize.pod:301
2664 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
2665 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
2666 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
2667 #: ../src/guestfs-actions.pod:1667 ../src/guestfs-actions.pod:1671
2668 #: ../src/guestfs-actions.pod:1675 ../src/guestfs-actions.pod:1679
2669 #: ../src/guestfs-actions.pod:1687 ../src/guestfs-actions.pod:1691
2670 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1705
2671 #: ../src/guestfs-actions.pod:1709 ../src/guestfs-actions.pod:1713
2672 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1855
2673 #: ../src/guestfs-actions.pod:1860 ../src/guestfs-actions.pod:1865
2674 #: ../src/guestfs-actions.pod:1926 ../src/guestfs-actions.pod:1930
2675 #: ../src/guestfs-actions.pod:1935 ../src/guestfs-actions.pod:2864
2676 #: ../src/guestfs-actions.pod:2870 ../src/guestfs-actions.pod:2878
2677 #: ../src/guestfs-actions.pod:2885 ../src/guestfs-actions.pod:2892
2678 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2679 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2680 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1064
2681 #: ../src/guestfs.pod:1068 ../src/guestfs.pod:1072 ../src/guestfs.pod:1077
2682 #: ../src/guestfs.pod:1085 ../src/guestfs.pod:1104 ../src/guestfs.pod:1112
2683 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1138 ../src/guestfs.pod:1142
2684 #: ../src/guestfs.pod:1146 ../src/guestfs.pod:1150 ../src/guestfs.pod:1154
2685 #: ../src/guestfs.pod:1644 ../src/guestfs.pod:1649 ../src/guestfs.pod:1653
2686 #: ../src/guestfs.pod:1755 ../src/guestfs.pod:1760 ../src/guestfs.pod:1764
2687 #: ../src/guestfs.pod:1774 ../src/guestfs.pod:2063 ../src/guestfs.pod:2068
2688 #: ../src/guestfs.pod:2074 ../src/guestfs.pod:2082 ../src/guestfs.pod:2436
2689 #: ../src/guestfs.pod:2442 ../src/guestfs.pod:2447 ../src/guestfs.pod:2453
2690 #: ../src/guestfs.pod:2834 ../src/guestfs.pod:2839 ../src/guestfs.pod:2843
2691 #: ../src/guestfs.pod:2847 ../src/guestfs.pod:2851 ../src/guestfs.pod:2865
2692 #: ../src/guestfs.pod:2870 ../src/guestfs.pod:3095 ../src/guestfs.pod:3099
2693 #: ../src/guestfs.pod:3103 ../src/guestfs.pod:3107
2694 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2695 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2696 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2697 msgid "*"
2698 msgstr "*"
2699
2700 #. type: textblock
2701 #: ../df/virt-df.pod:150
2702 msgid ""
2703 "If you think an untrusted guest might actively try to exploit the libguestfs "
2704 "appliance kernel, then this prevents one guest from interfering with the "
2705 "stats printed for another guest."
2706 msgstr ""
2707
2708 #. type: textblock
2709 #: ../df/virt-df.pod:156
2710 msgid ""
2711 "If the kernel has a bug which stops it from accessing a filesystem in one "
2712 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2713 "and report stats for further guests."
2714 msgstr ""
2715
2716 #. type: textblock
2717 #: ../df/virt-df.pod:165
2718 msgid ""
2719 "Print UUIDs instead of names.  This is useful for following a guest even "
2720 "when the guest is migrated or renamed, or when two guests happen to have the "
2721 "same name."
2722 msgstr ""
2723
2724 #. type: textblock
2725 #: ../df/virt-df.pod:169
2726 msgid ""
2727 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2728 "images, we still print the disk image name even when this option is "
2729 "specified."
2730 msgstr ""
2731
2732 #. type: textblock
2733 #: ../df/virt-df.pod:224
2734 msgid ""
2735 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2736 "libguestfs.org/>."
2737 msgstr ""
2738
2739 #. type: textblock
2740 #: ../edit/virt-edit.pod:5
2741 msgid "virt-edit - Edit a file in a virtual machine"
2742 msgstr ""
2743
2744 #. type: verbatim
2745 #: ../edit/virt-edit.pod:9
2746 #, fuzzy, no-wrap
2747 #| msgid ""
2748 #| " virt-list-partitions [--options] domname\n"
2749 #| "\n"
2750 msgid ""
2751 " virt-edit [--options] -d domname file [file ...]\n"
2752 "\n"
2753 msgstr ""
2754 " virt-list-partitions [--параметри] назва_домену\n"
2755 "\n"
2756
2757 #. type: verbatim
2758 #: ../edit/virt-edit.pod:11
2759 #, fuzzy, no-wrap
2760 #| msgid ""
2761 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2762 #| "\n"
2763 msgid ""
2764 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2765 "\n"
2766 msgstr ""
2767 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2768 "\n"
2769
2770 #. type: verbatim
2771 #: ../edit/virt-edit.pod:13
2772 #, no-wrap
2773 msgid ""
2774 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2775 "\n"
2776 msgstr ""
2777
2778 #. type: verbatim
2779 #: ../edit/virt-edit.pod:17
2780 #, no-wrap
2781 msgid ""
2782 " virt-edit domname file\n"
2783 "\n"
2784 msgstr ""
2785
2786 #. type: verbatim
2787 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2788 #, fuzzy, no-wrap
2789 #| msgid ""
2790 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2791 #| "\n"
2792 msgid ""
2793 " virt-edit disk.img [disk.img ...] file\n"
2794 "\n"
2795 msgstr ""
2796 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2797 "\n"
2798
2799 #. type: =head1
2800 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2801 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2802 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2803 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2804 msgid "WARNING"
2805 msgstr "ПОПЕРЕДЖЕННЯ"
2806
2807 #. type: textblock
2808 #: ../edit/virt-edit.pod:23
2809 msgid ""
2810 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2811 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2812 "doing this, but doesn't catch all cases."
2813 msgstr ""
2814
2815 #. type: textblock
2816 #: ../edit/virt-edit.pod:29
2817 msgid ""
2818 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2819 "exists in the named virtual machine (or disk image)."
2820 msgstr ""
2821
2822 #. type: textblock
2823 #: ../edit/virt-edit.pod:32
2824 msgid ""
2825 "Multiple filenames can be given, in which case they are each edited in "
2826 "turn.  Each filename must be a full path, starting at the root directory "
2827 "(starting with '/')."
2828 msgstr ""
2829
2830 #. type: textblock
2831 #: ../edit/virt-edit.pod:36
2832 msgid "If you want to just view a file, use L<virt-cat(1)>."
2833 msgstr ""
2834
2835 #. type: textblock
2836 #: ../edit/virt-edit.pod:38
2837 msgid ""
2838 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2839 "USING GUESTFISH> below)."
2840 msgstr ""
2841
2842 #. type: textblock
2843 #: ../edit/virt-edit.pod:41
2844 msgid ""
2845 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2846 "that and much more."
2847 msgstr ""
2848
2849 #. type: textblock
2850 #: ../edit/virt-edit.pod:46
2851 msgid "Edit the named files interactively:"
2852 msgstr ""
2853
2854 #. type: verbatim
2855 #: ../edit/virt-edit.pod:48
2856 #, no-wrap
2857 msgid ""
2858 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2859 "\n"
2860 msgstr ""
2861
2862 #. type: verbatim
2863 #: ../edit/virt-edit.pod:50
2864 #, no-wrap
2865 msgid ""
2866 " virt-edit -d mydomain /etc/passwd\n"
2867 "\n"
2868 msgstr ""
2869
2870 #. type: textblock
2871 #: ../edit/virt-edit.pod:52
2872 msgid "For Windows guests, some Windows paths are understood:"
2873 msgstr ""
2874
2875 #. type: verbatim
2876 #: ../edit/virt-edit.pod:54
2877 #, no-wrap
2878 msgid ""
2879 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2880 "\n"
2881 msgstr ""
2882
2883 #. type: textblock
2884 #: ../edit/virt-edit.pod:56
2885 msgid ""
2886 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2887 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2888 msgstr ""
2889
2890 #. type: verbatim
2891 #: ../edit/virt-edit.pod:60
2892 #, no-wrap
2893 msgid ""
2894 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2895 "\n"
2896 msgstr ""
2897
2898 #. type: =item
2899 #: ../edit/virt-edit.pod:81
2900 msgid "B<-b> extension"
2901 msgstr ""
2902
2903 #. type: =item
2904 #: ../edit/virt-edit.pod:83
2905 msgid "B<--backup> extension"
2906 msgstr ""
2907
2908 #. type: textblock
2909 #: ../edit/virt-edit.pod:85
2910 msgid ""
2911 "Create a backup of the original file I<in the guest disk image>.  The backup "
2912 "has the original filename with C<extension> added."
2913 msgstr ""
2914
2915 #. type: textblock
2916 #: ../edit/virt-edit.pod:88
2917 msgid ""
2918 "Usually the first character of C<extension> would be a dot C<.> so you would "
2919 "write:"
2920 msgstr ""
2921
2922 #. type: verbatim
2923 #: ../edit/virt-edit.pod:91
2924 #, no-wrap
2925 msgid ""
2926 " virt-edit -b .orig [etc]\n"
2927 "\n"
2928 msgstr ""
2929
2930 #. type: textblock
2931 #: ../edit/virt-edit.pod:93
2932 msgid "By default, no backup file is made."
2933 msgstr ""
2934
2935 #. type: =item
2936 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2937 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2938 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2939 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2940 msgid "B<-c URI>"
2941 msgstr "B<-c адреса>"
2942
2943 #. type: =item
2944 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2945 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2946 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2947 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2948 msgid "B<--connect URI>"
2949 msgstr "B<--connect адреса>"
2950
2951 #. type: textblock
2952 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2953 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2954 #: ../tools/virt-win-reg.pl:135
2955 msgid ""
2956 "If you specify guest block devices directly, then libvirt is not used at all."
2957 msgstr ""
2958
2959 #. type: textblock
2960 #: ../edit/virt-edit.pod:114
2961 msgid ""
2962 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2963 "off so you cannot see what you are typing.  If you are not worried about "
2964 "Tempest attacks and there is no one else in the room you can specify this "
2965 "flag to see what you are typing."
2966 msgstr ""
2967
2968 #. type: =item
2969 #: ../edit/virt-edit.pod:119
2970 msgid "B<-e> EXPR"
2971 msgstr ""
2972
2973 #. type: =item
2974 #: ../edit/virt-edit.pod:121
2975 #, fuzzy
2976 #| msgid "B<--help>"
2977 msgid "B<--expr> EXPR"
2978 msgstr "B<--help>"
2979
2980 #. type: textblock
2981 #: ../edit/virt-edit.pod:123
2982 msgid ""
2983 "Instead of launching the external editor, non-interactively apply the Perl "
2984 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
2985 "EDITING> below."
2986 msgstr ""
2987
2988 #. type: textblock
2989 #: ../edit/virt-edit.pod:127
2990 msgid ""
2991 "Be careful to properly quote the expression to prevent it from being altered "
2992 "by the shell."
2993 msgstr ""
2994
2995 #. type: textblock
2996 #: ../edit/virt-edit.pod:130
2997 msgid "Note that this option is only available when Perl 5 is installed."
2998 msgstr ""
2999
3000 #. type: =item
3001 #: ../edit/virt-edit.pod:132
3002 #, fuzzy
3003 #| msgid "B<--format=raw|qcow2|..>"
3004 msgid "B<--format> raw|qcow2|..."
3005 msgstr "B<--format=raw|qcow2|..>"
3006
3007 #. type: verbatim
3008 #: ../edit/virt-edit.pod:143
3009 #, fuzzy, no-wrap
3010 #| msgid ""
3011 #| " guestfish --format=raw -a disk.img\n"
3012 #| "\n"
3013 msgid ""
3014 " virt-edit --format=raw -a disk.img file\n"
3015 "\n"
3016 msgstr ""
3017 " guestfish --format=raw -a disk.img\n"
3018 "\n"
3019
3020 #. type: verbatim
3021 #: ../edit/virt-edit.pod:147
3022 #, fuzzy, no-wrap
3023 #| msgid ""
3024 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3025 #| "\n"
3026 msgid ""
3027 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3028 "\n"
3029 msgstr ""
3030 " guestfish --format=raw -a disk.img --format -a another.img\n"
3031 "\n"
3032
3033 #. type: textblock
3034 #: ../edit/virt-edit.pod:181
3035 msgid "Previous versions of virt-edit allowed you to write either:"
3036 msgstr ""
3037
3038 #. type: verbatim
3039 #: ../edit/virt-edit.pod:187
3040 #, fuzzy, no-wrap
3041 #| msgid ""
3042 #| " edit filename\n"
3043 #| "\n"
3044 msgid ""
3045 " virt-edit guestname file\n"
3046 "\n"
3047 msgstr ""
3048 " edit назва_файла\n"
3049 "\n"
3050
3051 #. type: =head1
3052 #: ../edit/virt-edit.pod:195
3053 msgid "NON-INTERACTIVE EDITING"
3054 msgstr ""
3055
3056 #. type: textblock
3057 #: ../edit/virt-edit.pod:197
3058 msgid ""
3059 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3060 "administrator can interactively edit the file."
3061 msgstr ""
3062
3063 #. type: textblock
3064 #: ../edit/virt-edit.pod:200
3065 msgid ""
3066 "There are two ways also to use C<virt-edit> from scripts in order to make "
3067 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3068 "like this, it's less error-prone to write scripts directly using the "
3069 "libguestfs API and Augeas for configuration file editing.)"
3070 msgstr ""
3071
3072 #. type: textblock
3073 #: ../edit/virt-edit.pod:206
3074 msgid ""
3075 "The first method is to temporarily set C<$EDITOR> to any script or program "
3076 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3077 "update C<tmpfile> in place however it likes."
3078 msgstr ""
3079
3080 #. type: textblock
3081 #: ../edit/virt-edit.pod:210
3082 msgid ""
3083 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3084 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3085 "instances of C<foo> with C<bar> in a file:"
3086 msgstr ""
3087
3088 #. type: verbatim
3089 #: ../edit/virt-edit.pod:214
3090 #, no-wrap
3091 msgid ""
3092 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3093 "\n"
3094 msgstr ""
3095
3096 #. type: textblock
3097 #: ../edit/virt-edit.pod:216
3098 msgid ""
3099 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3100 "For example to delete root's password you could do:"
3101 msgstr ""
3102
3103 #. type: verbatim
3104 #: ../edit/virt-edit.pod:219
3105 #, no-wrap
3106 msgid ""
3107 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3108 "\n"
3109 msgstr ""
3110
3111 #. type: textblock
3112 #: ../edit/virt-edit.pod:221
3113 msgid ""
3114 "What really happens is that the snippet is evaluated as a Perl expression "
3115 "for each line of the file.  The line, including the final C<\\n>, is passed "
3116 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3117 msgstr ""
3118
3119 #. type: textblock
3120 #: ../edit/virt-edit.pod:226
3121 msgid ""
3122 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3123 "C<apache> user account from the password file you can do:"
3124 msgstr ""
3125
3126 #. type: verbatim
3127 #: ../edit/virt-edit.pod:229
3128 #, no-wrap
3129 msgid ""
3130 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3131 "\n"
3132 msgstr ""
3133
3134 #. type: textblock
3135 #: ../edit/virt-edit.pod:231
3136 msgid ""
3137 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
3138 "the end of the file is rather difficult this way since there is no concept "
3139 "of \"last line of the file\" - your expression just doesn't get called "
3140 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
3141 "want to do this."
3142 msgstr ""
3143
3144 #. type: textblock
3145 #: ../edit/virt-edit.pod:237
3146 msgid ""
3147 "The variable C<$lineno> contains the current line number.  As is "
3148 "traditional, the first line in the file is number C<1>."
3149 msgstr ""
3150
3151 #. type: textblock
3152 #: ../edit/virt-edit.pod:240
3153 msgid ""
3154 "The return value from the expression is ignored, but the expression may call "
3155 "C<die> in order to abort the whole program, leaving the original file "
3156 "untouched."
3157 msgstr ""
3158
3159 #. type: textblock
3160 #: ../edit/virt-edit.pod:244
3161 msgid ""
3162 "Remember when matching the end of a line that C<$_> may contain the final C<"
3163 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3164 "newline then neither of these.  Thus to match or substitute some text at the "
3165 "end of a line, use this regular expression:"
3166 msgstr ""
3167
3168 #. type: verbatim
3169 #: ../edit/virt-edit.pod:249
3170 #, no-wrap
3171 msgid ""
3172 " /some text(\\r?\\n)?$/\n"
3173 "\n"
3174 msgstr ""
3175
3176 #. type: textblock
3177 #: ../edit/virt-edit.pod:251
3178 msgid ""
3179 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3180 "$_> itself (since that would remove all newlines from the file):"
3181 msgstr ""
3182
3183 #. type: verbatim
3184 #: ../edit/virt-edit.pod:255
3185 #, no-wrap
3186 msgid ""
3187 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3188 "\n"
3189 msgstr ""
3190
3191 #. type: =head1
3192 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3193 msgid "WINDOWS PATHS"
3194 msgstr ""
3195
3196 #. type: textblock
3197 #: ../edit/virt-edit.pod:259
3198 msgid ""
3199 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3200 "paths (eg. C<E:\\foo\\bar.txt>)."
3201 msgstr ""
3202
3203 #. type: textblock
3204 #: ../edit/virt-edit.pod:262
3205 msgid "If and only if the guest is running Windows then:"
3206 msgstr ""
3207
3208 #. type: textblock
3209 #: ../edit/virt-edit.pod:268
3210 msgid ""
3211 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3212 "to the correct filesystem."
3213 msgstr ""
3214
3215 #. type: textblock
3216 #: ../edit/virt-edit.pod:273
3217 msgid ""
3218 "Any backslash (C<\\>) characters in the path are replaced with forward "
3219 "slashes so that libguestfs can process it."
3220 msgstr ""
3221
3222 #. type: textblock
3223 #: ../edit/virt-edit.pod:278
3224 msgid ""
3225 "The path is resolved case insensitively to locate the file that should be "
3226 "edited."
3227 msgstr ""
3228
3229 #. type: textblock
3230 #: ../edit/virt-edit.pod:283
3231 msgid "There are some known shortcomings:"
3232 msgstr ""
3233
3234 #. type: textblock
3235 #: ../edit/virt-edit.pod:289
3236 msgid "Some NTFS symbolic links may not be followed correctly."
3237 msgstr ""
3238
3239 #. type: textblock
3240 #: ../edit/virt-edit.pod:293
3241 msgid "NTFS junction points that cross filesystems are not followed."
3242 msgstr ""
3243
3244 #. type: textblock
3245 #: ../edit/virt-edit.pod:299
3246 msgid ""
3247 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3248 "C<virt-edit> doesn't work."
3249 msgstr ""
3250
3251 #. type: textblock
3252 #: ../edit/virt-edit.pod:302
3253 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3254 msgstr ""
3255
3256 #. type: verbatim
3257 #: ../edit/virt-edit.pod:304
3258 #, fuzzy, no-wrap
3259 #| msgid ""
3260 #| " guestfish --ro -d myguest -i\n"
3261 #| "\n"
3262 msgid ""
3263 " guestfish --rw -i -d domname edit /file\n"
3264 "\n"
3265 msgstr ""
3266 " guestfish --ro -d myguest -i\n"
3267 "\n"
3268
3269 #. type: textblock
3270 #: ../edit/virt-edit.pod:306
3271 msgid ""
3272 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3273 "path to the file."
3274 msgstr ""
3275
3276 #. type: textblock
3277 #: ../edit/virt-edit.pod:309
3278 msgid ""
3279 "The command above uses libguestfs's guest inspection feature and so does not "
3280 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3281 "disk images that don't contain guests.  To edit a file on a disk image "
3282 "directly, use:"
3283 msgstr ""
3284
3285 #. type: verbatim
3286 #: ../edit/virt-edit.pod:314
3287 #, fuzzy, no-wrap
3288 #| msgid ""
3289 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3290 #| "\n"
3291 msgid ""
3292 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3293 "\n"
3294 msgstr ""
3295 " guestfish --format=raw -a disk.img --format -a another.img\n"
3296 "\n"
3297
3298 #. type: textblock
3299 #: ../edit/virt-edit.pod:316
3300 msgid ""
3301 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3302 "the disk image to edit, and C</file> is the full path to the file."
3303 msgstr ""
3304
3305 #. type: textblock
3306 #: ../edit/virt-edit.pod:320
3307 msgid ""
3308 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3309 "C<write> or C<upload> instead:"
3310 msgstr ""
3311
3312 #. type: verbatim
3313 #: ../edit/virt-edit.pod:323
3314 #, fuzzy, no-wrap
3315 #| msgid ""
3316 #| " guestfish --ro -d myguest -i\n"
3317 #| "\n"
3318 msgid ""
3319 " guestfish --rw -i -d domname touch /newfile\n"
3320 "\n"
3321 msgstr ""
3322 " guestfish --ro -d myguest -i\n"
3323 "\n"
3324
3325 #. type: verbatim
3326 #: ../edit/virt-edit.pod:325
3327 #, no-wrap
3328 msgid ""
3329 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3330 "\n"
3331 msgstr ""
3332
3333 #. type: verbatim
3334 #: ../edit/virt-edit.pod:327
3335 #, no-wrap
3336 msgid ""
3337 " guestfish --rw -i -d domname upload localfile /newfile\n"
3338 "\n"
3339 msgstr ""
3340
3341 #. type: =head1
3342 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3343 #: ../rescue/virt-rescue.pod:257 ../src/guestfs.pod:2981
3344 #: ../test-tool/libguestfs-test-tool.pod:82
3345 msgid "ENVIRONMENT VARIABLES"
3346 msgstr "ЗМІННІ СЕРЕДОВИЩА"
3347
3348 #. type: =item
3349 #: ../edit/virt-edit.pod:333
3350 #, fuzzy
3351 #| msgid "EDITOR"
3352 msgid "C<EDITOR>"
3353 msgstr "РЕДАКТОР"
3354
3355 #. type: textblock
3356 #: ../edit/virt-edit.pod:335
3357 msgid ""
3358 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3359 "\"emacs -nw\">"
3360 msgstr ""
3361
3362 #. type: textblock
3363 #: ../edit/virt-edit.pod:338
3364 msgid "If not set, C<vi> is used."
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../edit/virt-edit.pod:351
3369 #, fuzzy
3370 #| msgid ""
3371 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3372 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3373 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3374 msgid ""
3375 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3376 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3377 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3378 msgstr ""
3379 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3380 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3381 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3382
3383 #. type: textblock
3384 #: ../examples/guestfs-examples.pod:5
3385 msgid "guestfs-examples - Examples of using libguestfs from C"
3386 msgstr ""
3387
3388 #. type: verbatim
3389 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3390 #, no-wrap
3391 msgid ""
3392 " #include <guestfs.h>\n"
3393 " \n"
3394 msgstr ""
3395 " #include <guestfs.h>\n"
3396 " \n"
3397
3398 #. type: verbatim
3399 #: ../examples/guestfs-examples.pod:11
3400 #, no-wrap
3401 msgid ""
3402 " guestfs_h *g = guestfs_create ();\n"
3403 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3404 " guestfs_launch (g);\n"
3405 "\n"
3406 msgstr ""
3407
3408 #. type: verbatim
3409 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3410 #, no-wrap
3411 msgid ""
3412 " cc prog.c -o prog -lguestfs\n"
3413 "or:\n"
3414 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3415 "\n"
3416 msgstr ""
3417 " cc prog.c -o prog -lguestfs\n"
3418 "або:\n"
3419 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3420 "\n"
3421
3422 #. type: textblock
3423 #: ../examples/guestfs-examples.pod:21
3424 msgid ""
3425 "This manual page contains examples of calling libguestfs from the C "
3426 "programming language.  If you are not familiar with using libguestfs, you "
3427 "also need to read L<guestfs(3)>."
3428 msgstr ""
3429
3430 #. type: =head1
3431 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3432 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3433 #: ../python/examples/guestfs-python.pod:34
3434 #: ../ruby/examples/guestfs-ruby.pod:28
3435 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3436 msgstr ""
3437
3438 #. type: textblock
3439 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3440 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3441 #: ../python/examples/guestfs-python.pod:36
3442 #: ../ruby/examples/guestfs-ruby.pod:30
3443 #, fuzzy
3444 #| msgid "EXAMPLE"
3445 msgid "@EXAMPLE1@"
3446 msgstr "ПРИКЛАД"
3447
3448 #. type: =head1
3449 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3450 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3451 #: ../python/examples/guestfs-python.pod:38
3452 #: ../ruby/examples/guestfs-ruby.pod:32
3453 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3454 msgstr ""
3455
3456 #. type: textblock
3457 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3458 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3459 #: ../python/examples/guestfs-python.pod:40
3460 #: ../ruby/examples/guestfs-ruby.pod:34
3461 #, fuzzy
3462 #| msgid "EXAMPLE"
3463 msgid "@EXAMPLE2@"
3464 msgstr "ПРИКЛАД"
3465
3466 #. type: textblock
3467 #: ../examples/guestfs-examples.pod:35
3468 #, fuzzy
3469 #| msgid ""
3470 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3471 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3472 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3473 msgid ""
3474 "L<guestfs(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, "
3475 "L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
3476 "libguestfs.org/>."
3477 msgstr ""
3478 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3479 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3480 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3481
3482 #. type: =head1
3483 #: ../examples/guestfs-examples.pod:44 ../examples/guestfs-recipes.pod:396
3484 #: ../fish/guestfish.pod:1260 ../fish/virt-copy-in.pod:60
3485 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3486 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:314
3487 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:57
3488 #: ../ocaml/examples/guestfs-ocaml.pod:90 ../perl/examples/guestfs-perl.pod:51
3489 #: ../python/examples/guestfs-python.pod:53
3490 #: ../ruby/examples/guestfs-ruby.pod:47 ../src/guestfs.pod:3114
3491 #: ../test-tool/libguestfs-test-tool.pod:93
3492 msgid "AUTHORS"
3493 msgstr "АВТОРИ"
3494
3495 #. type: textblock
3496 #: ../examples/guestfs-examples.pod:46 ../examples/guestfs-recipes.pod:398
3497 #: ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:62
3498 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3499 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:316
3500 #: ../java/examples/guestfs-java.pod:59 ../ocaml/examples/guestfs-ocaml.pod:92
3501 #: ../perl/examples/guestfs-perl.pod:53
3502 #: ../python/examples/guestfs-python.pod:55
3503 #: ../ruby/examples/guestfs-ruby.pod:49 ../src/guestfs.pod:3116
3504 #: ../test-tool/libguestfs-test-tool.pod:95
3505 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3506 msgstr ""
3507
3508 #. type: textblock
3509 #: ../examples/guestfs-examples.pod:50 ../ocaml/examples/guestfs-ocaml.pod:96
3510 #: ../python/examples/guestfs-python.pod:59
3511 #: ../ruby/examples/guestfs-ruby.pod:53
3512 #, fuzzy
3513 #| msgid "Copyright (C) 2009 Red Hat Inc."
3514 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3515 msgstr "© Red Hat Inc., 2009"
3516
3517 #. type: textblock
3518 #: ../examples/guestfs-examples.pod:52 ../examples/guestfs-recipes.pod:404
3519 #: ../java/examples/guestfs-java.pod:65 ../ocaml/examples/guestfs-ocaml.pod:98
3520 #: ../perl/examples/guestfs-perl.pod:59
3521 #: ../python/examples/guestfs-python.pod:61
3522 #: ../ruby/examples/guestfs-ruby.pod:55
3523 msgid ""
3524 "The examples in this manual page may be freely copied, modified and "
3525 "distributed without any restrictions."
3526 msgstr ""
3527
3528 #. type: textblock
3529 #: ../examples/guestfs-examples.pod:55 ../examples/guestfs-recipes.pod:407
3530 #: ../java/examples/guestfs-java.pod:68
3531 #: ../ocaml/examples/guestfs-ocaml.pod:101
3532 #: ../perl/examples/guestfs-perl.pod:62
3533 #: ../python/examples/guestfs-python.pod:64
3534 #: ../ruby/examples/guestfs-ruby.pod:58 ../src/guestfs.pod:3123
3535 msgid ""
3536 "This library is free software; you can redistribute it and/or modify it "
3537 "under the terms of the GNU Lesser General Public License as published by the "
3538 "Free Software Foundation; either version 2 of the License, or (at your "
3539 "option) any later version."
3540 msgstr ""
3541
3542 #. type: textblock
3543 #: ../examples/guestfs-examples.pod:60 ../examples/guestfs-recipes.pod:412
3544 #: ../java/examples/guestfs-java.pod:73
3545 #: ../ocaml/examples/guestfs-ocaml.pod:106
3546 #: ../perl/examples/guestfs-perl.pod:67
3547 #: ../python/examples/guestfs-python.pod:69
3548 #: ../ruby/examples/guestfs-ruby.pod:63 ../src/guestfs.pod:3128
3549 msgid ""
3550 "This library is distributed in the hope that it will be useful, but WITHOUT "
3551 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3552 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3553 "for more details."
3554 msgstr ""
3555
3556 #. type: textblock
3557 #: ../examples/guestfs-examples.pod:65 ../examples/guestfs-recipes.pod:417
3558 #: ../java/examples/guestfs-java.pod:78
3559 #: ../ocaml/examples/guestfs-ocaml.pod:111
3560 #: ../perl/examples/guestfs-perl.pod:72
3561 #: ../python/examples/guestfs-python.pod:74
3562 #: ../ruby/examples/guestfs-ruby.pod:68 ../src/guestfs.pod:3133
3563 msgid ""
3564 "You should have received a copy of the GNU Lesser General Public License "
3565 "along with this library; if not, write to the Free Software Foundation, "
3566 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3567 msgstr ""
3568
3569 #. type: =end
3570 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3571 msgid "comment"
3572 msgstr ""
3573
3574 #. type: textblock
3575 #: ../examples/guestfs-recipes.pod:5
3576 msgid ""
3577 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3578 "here.  The only way which works for both sorts of output is to just write "
3579 "the URL directly.  Do NOT use L<...> for URLs."
3580 msgstr ""
3581
3582 #. type: textblock
3583 #: ../examples/guestfs-recipes.pod:9
3584 msgid ""
3585 "We break with tradition here and don't use ALL CAPS for the section "
3586 "headings, as this makes them much easier to read."
3587 msgstr ""
3588
3589 #. type: textblock
3590 #: ../examples/guestfs-recipes.pod:16
3591 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3592 msgstr ""
3593
3594 #. type: textblock
3595 #: ../examples/guestfs-recipes.pod:20
3596 msgid ""
3597 "This page contains recipes for and links to things you can do using "
3598 "libguestfs, L<guestfish(1)> and the virt tools."
3599 msgstr ""
3600
3601 #. type: =head1
3602 #: ../examples/guestfs-recipes.pod:23
3603 msgid "Audit a virtual machine for setuid files"
3604 msgstr ""
3605
3606 #. type: textblock
3607 #: ../examples/guestfs-recipes.pod:25
3608 msgid ""
3609 "The link below contains a small program which can be used to audit a Linux "
3610 "virtual machine to see what setuid and setgid files it contains."
3611 msgstr ""
3612
3613 #. type: textblock
3614 #: ../examples/guestfs-recipes.pod:28
3615 msgid ""
3616 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3617 "files/#content"
3618 msgstr ""
3619
3620 #. type: =head1
3621 #: ../examples/guestfs-recipes.pod:30
3622 msgid "Change the background image in a Windows XP VM"
3623 msgstr ""
3624
3625 #. type: textblock
3626 #: ../examples/guestfs-recipes.pod:32
3627 msgid ""
3628 "The links below explain how to use L<guestfish(1)> to change the background "
3629 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3630 "be substantially different for each version of Windows."
3631 msgstr ""
3632
3633 #. type: textblock
3634 #: ../examples/guestfs-recipes.pod:37
3635 msgid ""
3636 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3637 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3638 msgstr ""
3639
3640 #. type: =head1
3641 #: ../examples/guestfs-recipes.pod:40
3642 msgid "Cloning a virtual machine (Linux)"
3643 msgstr ""
3644
3645 #. type: textblock
3646 #: ../examples/guestfs-recipes.pod:42
3647 msgid ""
3648 "The guestfish technique described in the link below works well for most "
3649 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3650 "slightly."
3651 msgstr ""
3652
3653 #. type: textblock
3654 #: ../examples/guestfs-recipes.pod:46
3655 msgid ""
3656 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3657 "vm/#content"
3658 msgstr ""
3659
3660 #. type: textblock
3661 #: ../examples/guestfs-recipes.pod:48
3662 msgid ""
3663 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3664 "discussion."
3665 msgstr ""
3666
3667 #. type: textblock
3668 #: ../examples/guestfs-recipes.pod:51
3669 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3670 msgstr ""
3671
3672 #. type: =head1
3673 #: ../examples/guestfs-recipes.pod:53
3674 msgid "Cloning a virtual machine (Windows)"
3675 msgstr ""
3676
3677 #. type: textblock
3678 #: ../examples/guestfs-recipes.pod:55
3679 msgid ""
3680 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3681 "straightforward.  Currently there is code in the Aeolus Oz project which "
3682 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3683 "we may add sysprepping ability."
3684 msgstr ""
3685
3686 #. type: textblock
3687 #: ../examples/guestfs-recipes.pod:60
3688 msgid ""
3689 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3690 "list/2011-May/msg00019.html"
3691 msgstr ""
3692
3693 #. type: =head1
3694 #: ../examples/guestfs-recipes.pod:63
3695 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3696 msgstr ""
3697
3698 #. type: textblock
3699 #: ../examples/guestfs-recipes.pod:65
3700 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3701 msgstr ""
3702
3703 #. type: verbatim
3704 #: ../examples/guestfs-recipes.pod:67
3705 #, no-wrap
3706 msgid ""
3707 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3708 "\n"
3709 msgstr ""
3710
3711 #. type: textblock
3712 #: ../examples/guestfs-recipes.pod:69
3713 msgid "To export just a subdirectory, eg. C</files>, do:"
3714 msgstr ""
3715
3716 #. type: verbatim
3717 #: ../examples/guestfs-recipes.pod:71
3718 #, no-wrap
3719 msgid ""
3720 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3721 "\n"
3722 msgstr ""
3723
3724 #. type: =head1
3725 #: ../examples/guestfs-recipes.pod:73
3726 msgid "Create empty disk images"
3727 msgstr ""
3728
3729 #. type: textblock
3730 #: ../examples/guestfs-recipes.pod:75
3731 msgid ""
3732 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
3733 "The useful guide below explains the options available."
3734 msgstr ""
3735
3736 #. type: textblock
3737 #: ../examples/guestfs-recipes.pod:78
3738 msgid ""
3739 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
3740 "#content"
3741 msgstr ""
3742
3743 #. type: =head1
3744 #: ../examples/guestfs-recipes.pod:80
3745 msgid "Dump raw filesystem content from inside a disk image or VM"
3746 msgstr ""
3747
3748 #. type: textblock
3749 #: ../examples/guestfs-recipes.pod:82
3750 msgid ""
3751 "You can use the L<guestfish(1)> C<download> command to extract the raw "
3752 "filesystem content from any filesystem in a disk image or a VM (even one "
3753 "which is encrypted or buried inside an LV):"
3754 msgstr ""
3755
3756 #. type: verbatim
3757 #: ../examples/guestfs-recipes.pod:86
3758 #, fuzzy, no-wrap
3759 #| msgid ""
3760 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3761 #| "\n"
3762 msgid ""
3763 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
3764 "\n"
3765 msgstr ""
3766 " guestfish --format=raw -a disk.img --format -a another.img\n"
3767 "\n"
3768
3769 #. type: verbatim
3770 #: ../examples/guestfs-recipes.pod:88
3771 #, no-wrap
3772 msgid ""
3773 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
3774 "\n"
3775 msgstr ""
3776
3777 #. type: textblock
3778 #: ../examples/guestfs-recipes.pod:90
3779 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
3780 msgstr ""
3781
3782 #. type: =head1
3783 #: ../examples/guestfs-recipes.pod:92
3784 msgid "Edit grub configuration in a VM"
3785 msgstr ""
3786
3787 #. type: textblock
3788 #: ../examples/guestfs-recipes.pod:94
3789 msgid "You can use this to:"
3790 msgstr ""
3791
3792 #. type: textblock
3793 #: ../examples/guestfs-recipes.pod:100
3794 msgid "Fix a virtual machine that does not boot."
3795 msgstr ""
3796
3797 #. type: textblock
3798 #: ../examples/guestfs-recipes.pod:104
3799 msgid "Change which kernel is used to boot the VM."
3800 msgstr ""
3801
3802 #. type: textblock
3803 #: ../examples/guestfs-recipes.pod:108
3804 msgid "Change kernel command line options."
3805 msgstr ""
3806
3807 #. type: textblock
3808 #: ../examples/guestfs-recipes.pod:112
3809 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
3810 msgstr ""
3811
3812 #. type: verbatim
3813 #: ../examples/guestfs-recipes.pod:114
3814 #, no-wrap
3815 msgid ""
3816 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
3817 "\n"
3818 msgstr ""
3819
3820 #. type: textblock
3821 #: ../examples/guestfs-recipes.pod:116
3822 msgid ""
3823 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
3824 "this:"
3825 msgstr ""
3826
3827 #. type: verbatim
3828 #: ../examples/guestfs-recipes.pod:119
3829 #, no-wrap
3830 msgid ""
3831 " virt-rescue -d BrokenGuest\n"
3832 "\n"
3833 msgstr ""
3834
3835 #. type: =head1
3836 #: ../examples/guestfs-recipes.pod:121
3837 msgid "Export any directory from a VM"
3838 msgstr ""
3839
3840 #. type: textblock
3841 #: ../examples/guestfs-recipes.pod:123
3842 msgid ""
3843 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
3844 msgstr ""
3845
3846 #. type: verbatim
3847 #: ../examples/guestfs-recipes.pod:126
3848 #, fuzzy, no-wrap
3849 #| msgid ""
3850 #| " copy-out /home .\n"
3851 #| "\n"
3852 msgid ""
3853 " virt-copy-out -d Guest /home .\n"
3854 "\n"
3855 msgstr ""
3856 " copy-out /home .\n"
3857 "\n"
3858
3859 #. type: textblock
3860 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
3861 #: ../fish/guestfish-actions.pod:1292 ../fish/guestfish-actions.pod:1934
3862 #: ../src/guestfs-actions.pod:18 ../src/guestfs-actions.pod:1922
3863 #: ../src/guestfs-actions.pod:2860 ../src/guestfs.pod:1640
3864 #: ../tools/virt-win-reg.pl:706
3865 msgid "Notes:"
3866 msgstr "Нотатки:"
3867
3868 #. type: textblock
3869 #: ../examples/guestfs-recipes.pod:134
3870 msgid ""
3871 "The final dot of the command is not a printing error.  It means we want to "
3872 "copy out to the current directory."
3873 msgstr ""
3874
3875 #. type: textblock
3876 #: ../examples/guestfs-recipes.pod:139
3877 msgid "This creates a directory called C<home> under the current directory."
3878 msgstr ""
3879
3880 #. type: textblock
3881 #: ../examples/guestfs-recipes.pod:143
3882 msgid ""
3883 "If the guest is a Windows guest then you can use drive letters and "
3884 "backslashes, but you must prefix the path with C<win:> and quote it to "
3885 "protect it from the shell, like this:"
3886 msgstr ""
3887
3888 #. type: verbatim
3889 #: ../examples/guestfs-recipes.pod:147
3890 #, no-wrap
3891 msgid ""
3892 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
3893 "\n"
3894 msgstr ""
3895
3896 #. type: textblock
3897 #: ../examples/guestfs-recipes.pod:149
3898 msgid "To get the output as a compressed tarball, do:"
3899 msgstr ""
3900
3901 #. type: verbatim
3902 #: ../examples/guestfs-recipes.pod:151
3903 #, no-wrap
3904 msgid ""
3905 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
3906 "\n"
3907 msgstr ""
3908
3909 #. type: textblock
3910 #: ../examples/guestfs-recipes.pod:153
3911 msgid ""
3912 "Although it sounds tempting, this is usually not a reliable way to get a "
3913 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
3914 "org/FAQ.html#backup"
3915 msgstr ""
3916
3917 #. type: =head1
3918 #: ../examples/guestfs-recipes.pod:157
3919 msgid "Find out which user is using the most space"
3920 msgstr ""
3921
3922 #. type: textblock
3923 #: ../examples/guestfs-recipes.pod:159
3924 msgid ""
3925 "This simple script examines a Linux guest to find out which user is using "
3926 "the most space in their home directory:"
3927 msgstr ""
3928
3929 #. type: verbatim
3930 #: ../examples/guestfs-recipes.pod:162
3931 #, fuzzy, no-wrap
3932 #| msgid ""
3933 #| " #!/usr/bin/guestfish -f\n"
3934 #| "\n"
3935 msgid ""
3936 " #!/bin/sh -\n"
3937 " \n"
3938 msgstr ""
3939 " #!/usr/bin/guestfish -f\n"
3940 "\n"
3941
3942 #. type: verbatim
3943 #: ../examples/guestfs-recipes.pod:164
3944 #, fuzzy, no-wrap
3945 #| msgid ""
3946 #| " set-qemu qemu\n"
3947 #| "\n"
3948 msgid ""
3949 " set -e\n"
3950 " \n"
3951 msgstr ""
3952 " set-qemu qemu\n"
3953 "\n"
3954
3955 #. type: verbatim
3956 #: ../examples/guestfs-recipes.pod:166
3957 #, no-wrap
3958 msgid ""
3959 " vm=\"$1\"\n"
3960 " dir=/home\n"
3961 " \n"
3962 msgstr ""
3963
3964 #. type: verbatim
3965 #: ../examples/guestfs-recipes.pod:169
3966 #, fuzzy, no-wrap
3967 #| msgid ""
3968 #| " guestfish --ro -d myguest -i\n"
3969 #| "\n"
3970 msgid ""
3971 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
3972 " \n"
3973 msgstr ""
3974 " guestfish --ro -d myguest -i\n"
3975 "\n"
3976
3977 #. type: verbatim
3978 #: ../examples/guestfs-recipes.pod:171
3979 #, no-wrap
3980 msgid ""
3981 " for d in $(guestfish --remote ls \"$dir\"); do\n"
3982 "     echo -n \"$dir/$d\"\n"
3983 "     echo -ne '\\t'\n"
3984 "     guestfish --remote du \"$dir/$d\";\n"
3985 " done | sort -nr -k 2\n"
3986 " \n"
3987 msgstr ""
3988
3989 #. type: verbatim
3990 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
3991 #, no-wrap
3992 msgid ""
3993 " guestfish --remote exit\n"
3994 "\n"
3995 msgstr ""
3996
3997 #. type: =head1
3998 #: ../examples/guestfs-recipes.pod:179
3999 msgid "Get DHCP address from a VM"
4000 msgstr ""
4001
4002 #. type: textblock
4003 #: ../examples/guestfs-recipes.pod:181
4004 msgid ""
4005 "The link below explains the many different possible techniques for getting "
4006 "the last assigned DHCP address of a virtual machine."
4007 msgstr ""
4008
4009 #. type: textblock
4010 #: ../examples/guestfs-recipes.pod:184
4011 msgid ""
4012 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4013 "a-virtual-machine-disk-image/#content"
4014 msgstr ""
4015
4016 #. type: textblock
4017 #: ../examples/guestfs-recipes.pod:186
4018 msgid ""
4019 "In the libguestfs source examples directory you will find the latest version "
4020 "of the C<virt-dhcp-address.c> program."
4021 msgstr ""
4022
4023 #. type: =head1
4024 #: ../examples/guestfs-recipes.pod:189
4025 msgid "Get the operating system product name string"
4026 msgstr ""
4027
4028 #. type: textblock
4029 #: ../examples/guestfs-recipes.pod:191
4030 msgid "Save the following script into a file called C<product-name.sh>:"
4031 msgstr ""
4032
4033 #. type: verbatim
4034 #: ../examples/guestfs-recipes.pod:193
4035 #, fuzzy, no-wrap
4036 #| msgid ""
4037 #| " eval \"`guestfish --listen`\"\n"
4038 #| " guestfish --remote add-ro disk.img\n"
4039 #| " guestfish --remote run\n"
4040 #| " guestfish --remote lvs\n"
4041 #| "\n"
4042 msgid ""
4043 " #!/bin/sh -\n"
4044 " set -e\n"
4045 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4046 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4047 " guestfish --remote inspect-get-product-name \"$root\"\n"
4048 " guestfish --remote exit\n"
4049 "\n"
4050 msgstr ""
4051 " eval \"`guestfish --listen`\"\n"
4052 " guestfish --remote add-ro disk.img\n"
4053 " guestfish --remote run\n"
4054 " guestfish --remote lvs\n"
4055 "\n"
4056
4057 #. type: textblock
4058 #: ../examples/guestfs-recipes.pod:200
4059 msgid "Make the script executable and run it on a named guest:"
4060 msgstr ""
4061
4062 #. type: verbatim
4063 #: ../examples/guestfs-recipes.pod:202
4064 #, no-wrap
4065 msgid ""
4066 " # product-name.sh RHEL60x64\n"
4067 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4068 "\n"
4069 msgstr ""
4070
4071 #. type: textblock
4072 #: ../examples/guestfs-recipes.pod:205
4073 msgid ""
4074 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4075 "C<xpath> command line tool or from your favourite programming language:"
4076 msgstr ""
4077
4078 #. type: verbatim
4079 #: ../examples/guestfs-recipes.pod:209
4080 #, no-wrap
4081 msgid ""
4082 " # virt-inspector RHEL60x64 > xml\n"
4083 " # xpath '//product_name' < xml\n"
4084 " Found 1 nodes:\n"
4085 " -- NODE --\n"
4086 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4087 "\n"
4088 msgstr ""
4089
4090 #. type: =head1
4091 #: ../examples/guestfs-recipes.pod:215
4092 msgid "Get the default boot kernel for a Linux VM"
4093 msgstr ""
4094
4095 #. type: textblock
4096 #: ../examples/guestfs-recipes.pod:217
4097 msgid ""
4098 "The link below contains a program to print the default boot kernel for a "
4099 "Linux VM."
4100 msgstr ""
4101
4102 #. type: textblock
4103 #: ../examples/guestfs-recipes.pod:220
4104 msgid ""
4105 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4106 "kernel-for-a-vm/#content"
4107 msgstr ""
4108
4109 #. type: textblock
4110 #: ../examples/guestfs-recipes.pod:222
4111 msgid ""
4112 "It uses Augeas, and the technique is generally applicable for many different "
4113 "tasks, such as:"
4114 msgstr ""
4115
4116 #. type: textblock
4117 #: ../examples/guestfs-recipes.pod:229
4118 msgid "listing the user accounts in the guest"
4119 msgstr ""
4120
4121 #. type: textblock
4122 #: ../examples/guestfs-recipes.pod:233
4123 msgid "what repositories is it configured to use"
4124 msgstr ""
4125
4126 #. type: textblock
4127 #: ../examples/guestfs-recipes.pod:237
4128 msgid "what NTP servers does it connect to"
4129 msgstr ""
4130
4131 #. type: textblock
4132 #: ../examples/guestfs-recipes.pod:241
4133 msgid "what were the boot messages last time it booted"
4134 msgstr ""
4135
4136 #. type: textblock
4137 #: ../examples/guestfs-recipes.pod:245
4138 msgid "listing who was logged in recently"
4139 msgstr ""
4140
4141 #. type: textblock
4142 #: ../examples/guestfs-recipes.pod:249
4143 msgid "http://augeas.net/"
4144 msgstr ""
4145
4146 #. type: =head1
4147 #: ../examples/guestfs-recipes.pod:251
4148 msgid "Install RPMs in a guest"
4149 msgstr ""
4150
4151 #. type: textblock
4152 #: ../examples/guestfs-recipes.pod:253
4153 msgid ""
4154 "The link below contains a method to install RPMs in a guest.  In fact the "
4155 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4156 "installs them next time the guest is booted.  You could use this technique "
4157 "to install vital security updates in an offline guest."
4158 msgstr ""
4159
4160 #. type: textblock
4161 #: ../examples/guestfs-recipes.pod:259
4162 msgid ""
4163 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4164 msgstr ""
4165
4166 #. type: =head1
4167 #: ../examples/guestfs-recipes.pod:261
4168 msgid "List applications installed in a VM"
4169 msgstr ""
4170
4171 #. type: textblock
4172 #: ../examples/guestfs-recipes.pod:263
4173 msgid "Save the following to a file C<list-apps.sh>:"
4174 msgstr ""
4175
4176 #. type: verbatim
4177 #: ../examples/guestfs-recipes.pod:265
4178 #, fuzzy, no-wrap
4179 #| msgid ""
4180 #| " eval \"`guestfish --listen`\"\n"
4181 #| " guestfish --remote add-ro disk.img\n"
4182 #| " guestfish --remote run\n"
4183 #| " guestfish --remote lvs\n"
4184 #| "\n"
4185 msgid ""
4186 " #!/bin/sh -\n"
4187 " set -e\n"
4188 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4189 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4190 " guestfish --remote inspect-list-applications \"$root\"\n"
4191 " guestfish --remote exit\n"
4192 "\n"
4193 msgstr ""
4194 " eval \"`guestfish --listen`\"\n"
4195 " guestfish --remote add-ro disk.img\n"
4196 " guestfish --remote run\n"
4197 " guestfish --remote lvs\n"
4198 "\n"
4199
4200 #. type: textblock
4201 #: ../examples/guestfs-recipes.pod:272
4202 msgid ""
4203 "Make the file executable and then you can run it on any named virtual "
4204 "machine:"
4205 msgstr ""
4206
4207 #. type: verbatim
4208 #: ../examples/guestfs-recipes.pod:275
4209 #, no-wrap
4210 msgid ""
4211 " # list-apps.sh WinGuest\n"
4212 " [0] = {\n"
4213 "   app_name: Mozilla Firefox (3.6.12)\n"
4214 "   app_display_name: Mozilla Firefox (3.6.12)\n"
4215 "   app_epoch: 0\n"
4216 "   app_version: 3.6.12 (en-GB)\n"
4217 "   app_release:\n"
4218 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4219 "   app_trans_path:\n"
4220 "   app_publisher: Mozilla\n"
4221 "   app_url: http://www.mozilla.com/en-GB/\n"
4222 "   app_source_package:\n"
4223 "   app_summary:\n"
4224 "   app_description: Mozilla Firefox\n"
4225 " }\n"
4226 " [1] = {\n"
4227 "   app_name: VLC media player\n"
4228 "   app_display_name: VLC media player 1.1.5\n"
4229 "   app_epoch: 0\n"
4230 "   app_version: 1.1.5\n"
4231 "   app_release:\n"
4232 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4233 "   app_trans_path:\n"
4234 "   app_publisher: VideoLAN\n"
4235 "   app_url: http://www.videolan.org/\n"
4236 "   app_source_package:\n"
4237 "   app_summary:\n"
4238 "   app_description:\n"
4239 " }\n"
4240 "\n"
4241 msgstr ""
4242
4243 #. type: textblock
4244 #: ../examples/guestfs-recipes.pod:305
4245 msgid ""
4246 "If you want to run the script on disk images (instead of libvirt virtual "
4247 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
4248 ">."
4249 msgstr ""
4250
4251 #. type: =head1
4252 #: ../examples/guestfs-recipes.pod:309
4253 msgid "List files and directories in a VM"
4254 msgstr ""
4255
4256 #. type: textblock
4257 #: ../examples/guestfs-recipes.pod:311
4258 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4259 msgstr ""
4260
4261 #. type: verbatim
4262 #: ../examples/guestfs-recipes.pod:313
4263 #, fuzzy, no-wrap
4264 #| msgid ""
4265 #| " guestfish --ro -d myguest -i\n"
4266 #| "\n"
4267 msgid ""
4268 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4269 "\n"
4270 msgstr ""
4271 " guestfish --ro -d myguest -i\n"
4272 "\n"
4273
4274 #. type: =head1
4275 #: ../examples/guestfs-recipes.pod:315
4276 msgid "List services in a Windows VM"
4277 msgstr ""
4278
4279 #. type: textblock
4280 #: ../examples/guestfs-recipes.pod:317
4281 msgid ""
4282 "The link below contains a script that can be used to list out the services "
4283 "from a Windows VM, and whether those services run at boot time or are loaded "
4284 "on demand."
4285 msgstr ""
4286
4287 #. type: textblock
4288 #: ../examples/guestfs-recipes.pod:321
4289 msgid ""
4290 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4291 "#content"
4292 msgstr ""
4293
4294 #. type: =head1
4295 #: ../examples/guestfs-recipes.pod:323
4296 msgid "Make a disk image sparse"
4297 msgstr ""
4298
4299 #. type: textblock
4300 #: ../examples/guestfs-recipes.pod:325
4301 msgid ""
4302 "The link below contains some guides for making a disk image sparse (or "
4303 "reintroducing sparseness)."
4304 msgstr ""
4305
4306 #. type: textblock
4307 #: ../examples/guestfs-recipes.pod:328
4308 msgid ""
4309 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4310 msgstr ""
4311
4312 #. type: =head1
4313 #: ../examples/guestfs-recipes.pod:330
4314 msgid "Monitor disk usage over time"
4315 msgstr ""
4316
4317 #. type: textblock
4318 #: ../examples/guestfs-recipes.pod:332
4319 msgid ""
4320 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
4321 "The link below contains a guide."
4322 msgstr ""
4323
4324 #. type: textblock
4325 #: ../examples/guestfs-recipes.pod:335
4326 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4327 msgstr ""
4328
4329 #. type: =head1
4330 #: ../examples/guestfs-recipes.pod:337
4331 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4332 msgstr ""
4333
4334 #. type: textblock
4335 #: ../examples/guestfs-recipes.pod:339
4336 msgid ""
4337 "L<guestfish(1)> plus the tools described in the link below can be used to "
4338 "read out the Windows Event Log from any virtual machine running Windows "
4339 "Vista or a later version."
4340 msgstr ""
4341
4342 #. type: textblock
4343 #: ../examples/guestfs-recipes.pod:343
4344 msgid ""
4345 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4346 "guestfish/#content"
4347 msgstr ""
4348
4349 #. type: =head1
4350 #: ../examples/guestfs-recipes.pod:345
4351 msgid "Remove root password (Linux)"
4352 msgstr ""
4353
4354 #. type: textblock
4355 #: ../examples/guestfs-recipes.pod:347
4356 msgid ""
4357 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4358 "files.  One use is to remove the root password from a Linux guest:"
4359 msgstr ""
4360
4361 #. type: verbatim
4362 #: ../examples/guestfs-recipes.pod:350
4363 #, no-wrap
4364 msgid ""
4365 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4366 "\n"
4367 msgstr ""
4368
4369 #. type: =head1
4370 #: ../examples/guestfs-recipes.pod:352
4371 msgid "Remove Administrator password (Windows)"
4372 msgstr ""
4373
4374 #. type: textblock
4375 #: ../examples/guestfs-recipes.pod:354
4376 msgid ""
4377 "The link below contains one technique for removing the Administrator "
4378 "password from a Windows VM, or to be more precise, it gives you a command "
4379 "prompt the next time you log in which you can use to bypass any security:"
4380 msgstr ""
4381
4382 #. type: textblock
4383 #: ../examples/guestfs-recipes.pod:359
4384 msgid ""
4385 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4386 "administrator-password-with-guestfish/"
4387 msgstr ""
4388
4389 #. type: =head1
4390 #: ../examples/guestfs-recipes.pod:361
4391 msgid "Unpack a live CD"
4392 msgstr ""
4393
4394 #. type: textblock
4395 #: ../examples/guestfs-recipes.pod:363
4396 msgid ""
4397 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4398 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4399 "layers, as outlined in the guide below."
4400 msgstr ""
4401
4402 #. type: textblock
4403 #: ../examples/guestfs-recipes.pod:367
4404 msgid ""
4405 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4406 "cd/#content"
4407 msgstr ""
4408
4409 #. type: =head1
4410 #: ../examples/guestfs-recipes.pod:369
4411 msgid "Uploading and downloading files"
4412 msgstr ""
4413
4414 #. type: textblock
4415 #: ../examples/guestfs-recipes.pod:371
4416 msgid ""
4417 "The link below contains general tips on uploading (copying in)  and "
4418 "downloading (copying out) files from VMs."
4419 msgstr ""
4420
4421 #. type: textblock
4422 #: ../examples/guestfs-recipes.pod:374
4423 msgid ""
4424 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4425 msgstr ""
4426
4427 #. type: =head1
4428 #: ../examples/guestfs-recipes.pod:376
4429 msgid "Use libguestfs tools on VMware ESX guests"
4430 msgstr ""
4431
4432 #. type: textblock
4433 #: ../examples/guestfs-recipes.pod:378
4434 msgid ""
4435 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4436 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4437 msgstr ""
4438
4439 #. type: textblock
4440 #: ../examples/guestfs-recipes.pod:382
4441 msgid ""
4442 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4443 "guests/#content"
4444 msgstr ""
4445
4446 #. type: textblock
4447 #: ../examples/guestfs-recipes.pod:386
4448 #, fuzzy
4449 #| msgid ""
4450 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4451 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4452 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4453 msgid ""
4454 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, "
4455 "L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby"
4456 "(3)>, L<http://libguestfs.org/>."
4457 msgstr ""
4458 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4459 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4460 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4461
4462 #. type: textblock
4463 #: ../examples/guestfs-recipes.pod:402
4464 #, fuzzy
4465 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
4466 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4467 msgstr "© Red Hat Inc., 2009–2010"
4468
4469 #. type: =head2
4470 #: ../fish/guestfish-actions.pod:1
4471 msgid "add-cdrom"
4472 msgstr ""
4473
4474 #. type: verbatim
4475 #: ../fish/guestfish-actions.pod:3
4476 #, no-wrap
4477 msgid ""
4478 " add-cdrom filename\n"
4479 "\n"
4480 msgstr ""
4481
4482 #. type: textblock
4483 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4484 msgid "This function adds a virtual CD-ROM disk image to the guest."
4485 msgstr ""
4486
4487 #. type: textblock
4488 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4489 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4490 msgstr ""
4491
4492 #. type: textblock
4493 #: ../fish/guestfish-actions.pod:15
4494 msgid ""
4495 "This call checks for the existence of C<filename>.  This stops you from "
4496 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4497 "and C<http:> URLs.  To specify those, use the general L</config> call "
4498 "instead."
4499 msgstr ""
4500
4501 #. type: textblock
4502 #: ../fish/guestfish-actions.pod:22
4503 msgid ""
4504 "If you just want to add an ISO file (often you use this as an efficient way "
4505 "to transfer large files into the guest), then you should probably use L</add-"
4506 "drive-ro> instead."
4507 msgstr ""
4508
4509 #. type: textblock
4510 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4511 #: ../fish/guestfish-actions.pod:177
4512 msgid ""
4513 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4514 "instead."
4515 msgstr ""
4516
4517 #. type: textblock
4518 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4519 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:991
4520 #: ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365
4521 #: ../fish/guestfish-actions.pod:3090 ../fish/guestfish-actions.pod:3297
4522 #: ../fish/guestfish-actions.pod:3411 ../fish/guestfish-actions.pod:3459
4523 #: ../fish/guestfish-actions.pod:4360 ../fish/guestfish-actions.pod:4383
4524 #: ../fish/guestfish-actions.pod:4405 ../fish/guestfish-actions.pod:4443
4525 #: ../fish/guestfish-actions.pod:5092 ../fish/guestfish-actions.pod:5198
4526 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252
4527 #: ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1508
4528 #: ../src/guestfs-actions.pod:2007 ../src/guestfs-actions.pod:2028
4529 #: ../src/guestfs-actions.pod:4623 ../src/guestfs-actions.pod:4926
4530 #: ../src/guestfs-actions.pod:5155 ../src/guestfs-actions.pod:5255
4531 #: ../src/guestfs-actions.pod:6521 ../src/guestfs-actions.pod:6565
4532 #: ../src/guestfs-actions.pod:6599 ../src/guestfs-actions.pod:6662
4533 #: ../src/guestfs-actions.pod:7594 ../src/guestfs-actions.pod:7703
4534 #: ../src/guestfs-actions.pod:7886
4535 msgid ""
4536 "Deprecated functions will not be removed from the API, but the fact that "
4537 "they are deprecated indicates that there are problems with correct use of "
4538 "these functions."
4539 msgstr ""
4540
4541 #. type: =head2
4542 #: ../fish/guestfish-actions.pod:35
4543 msgid "add-domain"
4544 msgstr "add-domain"
4545
4546 #. type: =head2
4547 #: ../fish/guestfish-actions.pod:37
4548 msgid "domain"
4549 msgstr ""
4550
4551 #. type: verbatim
4552 #: ../fish/guestfish-actions.pod:39
4553 #, no-wrap
4554 msgid ""
4555 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4556 "\n"
4557 msgstr ""
4558
4559 #. type: textblock
4560 #: ../fish/guestfish-actions.pod:41
4561 msgid ""
4562 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4563 "It works by connecting to libvirt, requesting the domain and domain XML from "
4564 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4565 msgstr ""
4566
4567 #. type: textblock
4568 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4569 msgid ""
4570 "The number of disks added is returned.  This operation is atomic: if an "
4571 "error is returned, then no disks are added."
4572 msgstr ""
4573
4574 #. type: textblock
4575 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4576 msgid ""
4577 "This function does some minimal checks to make sure the libvirt domain is "
4578 "not running (unless C<readonly> is true).  In a future version we will try "
4579 "to acquire the libvirt lock on each disk."
4580 msgstr ""
4581
4582 #. type: textblock
4583 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4584 msgid ""
4585 "Disks must be accessible locally.  This often means that adding disks from a "
4586 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4587 "unless those disks are accessible via the same device path locally too."
4588 msgstr ""
4589
4590 #. type: textblock
4591 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4592 msgid ""
4593 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4594 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4595 "libvirt URI (or one set through an environment variable, see the libvirt "
4596 "documentation for full details)."
4597 msgstr ""
4598
4599 #. type: textblock
4600 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4601 msgid ""
4602 "The optional C<live> flag controls whether this call will try to connect to "
4603 "a running virtual machine C<guestfsd> process if it sees a suitable "
4604 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4605 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4606 "DAEMONS> for more information."
4607 msgstr ""
4608
4609 #. type: textblock
4610 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4611 msgid ""
4612 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4613 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4614 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4615 "as usual."
4616 msgstr ""
4617
4618 #. type: textblock
4619 #: ../fish/guestfish-actions.pod:76
4620 msgid ""
4621 "The other optional parameters are passed directly through to L</add-drive-"
4622 "opts>."
4623 msgstr ""
4624
4625 #. type: textblock
4626 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4627 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1973
4628 #: ../fish/guestfish-actions.pod:3139 ../fish/guestfish-actions.pod:3312
4629 #: ../fish/guestfish-actions.pod:3447
4630 msgid ""
4631 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4632 msgstr ""
4633
4634 #. type: =head2
4635 #: ../fish/guestfish-actions.pod:81
4636 msgid "add-drive"
4637 msgstr "add-drive"
4638
4639 #. type: verbatim
4640 #: ../fish/guestfish-actions.pod:83
4641 #, no-wrap
4642 msgid ""
4643 " add-drive filename\n"
4644 "\n"
4645 msgstr ""
4646 " add-drive назва_файла\n"
4647 "\n"
4648
4649 #. type: textblock
4650 #: ../fish/guestfish-actions.pod:85
4651 msgid ""
4652 "This function is the equivalent of calling L</add-drive-opts> with no "
4653 "optional parameters, so the disk is added writable, with the format being "
4654 "detected automatically."
4655 msgstr ""
4656
4657 #. type: textblock
4658 #: ../fish/guestfish-actions.pod:89
4659 msgid ""
4660 "Automatic detection of the format opens you up to a potential security hole "
4661 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4662 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4663 "you should think about replacing calls to this function with calls to L</add-"
4664 "drive-opts>, and specifying the format."
4665 msgstr ""
4666
4667 #. type: =head2
4668 #: ../fish/guestfish-actions.pod:96
4669 msgid "add-drive-opts"
4670 msgstr "add-drive-opts"
4671
4672 #. type: =head2
4673 #: ../fish/guestfish-actions.pod:98
4674 msgid "add"
4675 msgstr "add"
4676
4677 #. type: verbatim
4678 #: ../fish/guestfish-actions.pod:100
4679 #, no-wrap
4680 msgid ""
4681 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4682 "\n"
4683 msgstr ""
4684
4685 #. type: textblock
4686 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4687 msgid ""
4688 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4689 "The first time you call this function, the disk appears as C</dev/sda>, the "
4690 "second time as C</dev/sdb>, and so on."
4691 msgstr ""
4692
4693 #. type: textblock
4694 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4695 msgid ""
4696 "You don't necessarily need to be root when using libguestfs.  However you "
4697 "obviously do need sufficient permissions to access the filename for whatever "
4698 "operations you want to perform (ie. read access if you just want to read the "
4699 "image or write access if you want to modify the image)."
4700 msgstr ""
4701
4702 #. type: textblock
4703 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4704 msgid "This call checks that C<filename> exists."
4705 msgstr ""
4706
4707 #. type: textblock
4708 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3101
4709 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4660
4710 msgid "The optional arguments are:"
4711 msgstr ""
4712
4713 #. type: =item
4714 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4715 msgid "C<readonly>"
4716 msgstr "C<readonly>"
4717
4718 #. type: textblock
4719 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4720 msgid ""
4721 "If true then the image is treated as read-only.  Writes are still allowed, "
4722 "but they are stored in a temporary snapshot overlay which is discarded at "
4723 "the end.  The disk that you add is not modified."
4724 msgstr ""
4725
4726 #. type: =item
4727 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4728 msgid "C<format>"
4729 msgstr "C<format>"
4730
4731 #. type: textblock
4732 #: ../fish/guestfish-actions.pod:127
4733 msgid ""
4734 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
4735 "add-drive-ro>) then the format is automatically detected.  Possible formats "
4736 "include C<raw> and C<qcow2>."
4737 msgstr ""
4738
4739 #. type: textblock
4740 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
4741 msgid ""
4742 "Automatic detection of the format opens you up to a potential security hole "
4743 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4744 "RHBZ#642934.  Specifying the format closes this security hole."
4745 msgstr ""
4746
4747 #. type: =item
4748 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
4749 msgid "C<iface>"
4750 msgstr "C<iface>"
4751
4752 #. type: textblock
4753 #: ../fish/guestfish-actions.pod:138
4754 msgid ""
4755 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
4756 "add-drive-with-if> call (q.v.)"
4757 msgstr ""
4758
4759 #. type: =head2
4760 #: ../fish/guestfish-actions.pod:145
4761 msgid "add-drive-ro"
4762 msgstr "add-drive-ro"
4763
4764 #. type: =head2
4765 #: ../fish/guestfish-actions.pod:147
4766 msgid "add-ro"
4767 msgstr "add-ro"
4768
4769 #. type: verbatim
4770 #: ../fish/guestfish-actions.pod:149
4771 #, no-wrap
4772 msgid ""
4773 " add-drive-ro filename\n"
4774 "\n"
4775 msgstr ""
4776
4777 #. type: textblock
4778 #: ../fish/guestfish-actions.pod:151
4779 msgid ""
4780 "This function is the equivalent of calling L</add-drive-opts> with the "
4781 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
4782 "is added read-only, with the format being detected automatically."
4783 msgstr ""
4784
4785 #. type: =head2
4786 #: ../fish/guestfish-actions.pod:156
4787 msgid "add-drive-ro-with-if"
4788 msgstr ""
4789
4790 #. type: verbatim
4791 #: ../fish/guestfish-actions.pod:158
4792 #, no-wrap
4793 msgid ""
4794 " add-drive-ro-with-if filename iface\n"
4795 "\n"
4796 msgstr ""
4797
4798 #. type: textblock
4799 #: ../fish/guestfish-actions.pod:160
4800 msgid ""
4801 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
4802 "interface emulation to use at run time."
4803 msgstr ""
4804
4805 #. type: =head2
4806 #: ../fish/guestfish-actions.pod:170
4807 msgid "add-drive-with-if"
4808 msgstr ""
4809
4810 #. type: verbatim
4811 #: ../fish/guestfish-actions.pod:172
4812 #, no-wrap
4813 msgid ""
4814 " add-drive-with-if filename iface\n"
4815 "\n"
4816 msgstr ""
4817
4818 #. type: textblock
4819 #: ../fish/guestfish-actions.pod:174
4820 msgid ""
4821 "This is the same as L</add-drive> but it allows you to specify the QEMU "
4822 "interface emulation to use at run time."
4823 msgstr ""
4824
4825 #. type: =head2
4826 #: ../fish/guestfish-actions.pod:184
4827 msgid "aug-clear"
4828 msgstr ""
4829
4830 #. type: verbatim
4831 #: ../fish/guestfish-actions.pod:186
4832 #, no-wrap
4833 msgid ""
4834 " aug-clear augpath\n"
4835 "\n"
4836 msgstr ""
4837
4838 #. type: textblock
4839 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
4840 msgid ""
4841 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
4842 "L<augtool(1)> C<clear> command."
4843 msgstr ""
4844
4845 #. type: =head2
4846 #: ../fish/guestfish-actions.pod:191
4847 msgid "aug-close"
4848 msgstr ""
4849
4850 #. type: verbatim
4851 #: ../fish/guestfish-actions.pod:193
4852 #, no-wrap
4853 msgid ""
4854 " aug-close\n"
4855 "\n"
4856 msgstr ""
4857
4858 #. type: textblock
4859 #: ../fish/guestfish-actions.pod:195
4860 msgid ""
4861 "Close the current Augeas handle and free up any resources used by it.  After "
4862 "calling this, you have to call L</aug-init> again before you can use any "
4863 "other Augeas functions."
4864 msgstr ""
4865
4866 #. type: =head2
4867 #: ../fish/guestfish-actions.pod:200
4868 msgid "aug-defnode"
4869 msgstr ""
4870
4871 #. type: verbatim
4872 #: ../fish/guestfish-actions.pod:202
4873 #, no-wrap
4874 msgid ""
4875 " aug-defnode name expr val\n"
4876 "\n"
4877 msgstr ""
4878
4879 #. type: textblock
4880 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
4881 msgid ""
4882 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
4883 msgstr ""
4884
4885 #. type: textblock
4886 #: ../fish/guestfish-actions.pod:207
4887 msgid ""
4888 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
4889 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
4890 "containing that single node."
4891 msgstr ""
4892
4893 #. type: textblock
4894 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
4895 msgid ""
4896 "On success this returns a pair containing the number of nodes in the "
4897 "nodeset, and a boolean flag if a node was created."
4898 msgstr ""
4899
4900 #. type: =head2
4901 #: ../fish/guestfish-actions.pod:215
4902 msgid "aug-defvar"
4903 msgstr ""
4904
4905 #. type: verbatim
4906 #: ../fish/guestfish-actions.pod:217
4907 #, no-wrap
4908 msgid ""
4909 " aug-defvar name expr\n"
4910 "\n"
4911 msgstr ""
4912
4913 #. type: textblock
4914 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
4915 msgid ""
4916 "Defines an Augeas variable C<name> whose value is the result of evaluating "
4917 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
4918 msgstr ""
4919
4920 #. type: textblock
4921 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
4922 msgid ""
4923 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
4924 "evaluates to something which is not a nodeset."
4925 msgstr ""
4926
4927 #. type: =head2
4928 #: ../fish/guestfish-actions.pod:226
4929 msgid "aug-get"
4930 msgstr ""
4931
4932 #. type: verbatim
4933 #: ../fish/guestfish-actions.pod:228
4934 #, no-wrap
4935 msgid ""
4936 " aug-get augpath\n"
4937 "\n"
4938 msgstr ""
4939
4940 #. type: textblock
4941 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
4942 msgid ""
4943 "Look up the value associated with C<path>.  If C<path> matches exactly one "
4944 "node, the C<value> is returned."
4945 msgstr ""
4946
4947 #. type: =head2
4948 #: ../fish/guestfish-actions.pod:233
4949 msgid "aug-init"
4950 msgstr ""
4951
4952 #. type: verbatim
4953 #: ../fish/guestfish-actions.pod:235
4954 #, no-wrap
4955 msgid ""
4956 " aug-init root flags\n"
4957 "\n"
4958 msgstr ""
4959
4960 #. type: textblock
4961 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
4962 msgid ""
4963 "Create a new Augeas handle for editing configuration files.  If there was "
4964 "any previous Augeas handle associated with this guestfs session, then it is "
4965 "closed."
4966 msgstr ""
4967
4968 #. type: textblock
4969 #: ../fish/guestfish-actions.pod:241
4970 msgid "You must call this before using any other L</aug-*> commands."
4971 msgstr ""
4972
4973 #. type: textblock
4974 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
4975 msgid ""
4976 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
4977 msgstr ""
4978
4979 #. type: textblock
4980 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
4981 msgid ""
4982 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
4983 "logical I<or> of the following integers:"
4984 msgstr ""
4985
4986 #. type: =item
4987 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
4988 msgid "C<AUG_SAVE_BACKUP> = 1"
4989 msgstr "C<AUG_SAVE_BACKUP> = 1"
4990
4991 #. type: textblock
4992 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
4993 msgid "Keep the original file with a C<.augsave> extension."
4994 msgstr ""
4995
4996 #. type: =item
4997 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
4998 msgid "C<AUG_SAVE_NEWFILE> = 2"
4999 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5000
5001 #. type: textblock
5002 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5003 msgid ""
5004 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5005 "original.  Overrides C<AUG_SAVE_BACKUP>."
5006 msgstr ""
5007
5008 #. type: =item
5009 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5010 msgid "C<AUG_TYPE_CHECK> = 4"
5011 msgstr "C<AUG_TYPE_CHECK> = 4"
5012
5013 #. type: textblock
5014 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5015 msgid "Typecheck lenses."
5016 msgstr ""
5017
5018 #. type: textblock
5019 #: ../fish/guestfish-actions.pod:266
5020 msgid ""
5021 "This option is only useful when debugging Augeas lenses.  Use of this option "
5022 "may require additional memory for the libguestfs appliance.  You may need to "
5023 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5024 msgstr ""
5025
5026 #. type: =item
5027 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5028 msgid "C<AUG_NO_STDINC> = 8"
5029 msgstr "C<AUG_NO_STDINC> = 8"
5030
5031 #. type: textblock
5032 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5033 msgid "Do not use standard load path for modules."
5034 msgstr ""
5035
5036 #. type: =item
5037 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5038 msgid "C<AUG_SAVE_NOOP> = 16"
5039 msgstr "C<AUG_SAVE_NOOP> = 16"
5040
5041 #. type: textblock
5042 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5043 msgid "Make save a no-op, just record what would have been changed."
5044 msgstr ""
5045
5046 #. type: =item
5047 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5048 msgid "C<AUG_NO_LOAD> = 32"
5049 msgstr "C<AUG_NO_LOAD> = 32"
5050
5051 #. type: textblock
5052 #: ../fish/guestfish-actions.pod:281
5053 msgid "Do not load the tree in L</aug-init>."
5054 msgstr ""
5055
5056 #. type: textblock
5057 #: ../fish/guestfish-actions.pod:285
5058 msgid "To close the handle, you can call L</aug-close>."
5059 msgstr ""
5060
5061 #. type: textblock
5062 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5063 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5064 msgstr ""
5065
5066 #. type: =head2
5067 #: ../fish/guestfish-actions.pod:289
5068 msgid "aug-insert"
5069 msgstr ""
5070
5071 #. type: verbatim
5072 #: ../fish/guestfish-actions.pod:291
5073 #, no-wrap
5074 msgid ""
5075 " aug-insert augpath label true|false\n"
5076 "\n"
5077 msgstr ""
5078
5079 #. type: textblock
5080 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5081 msgid ""
5082 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5083 "or after C<path> (depending on the boolean flag C<before>)."
5084 msgstr ""
5085
5086 #. type: textblock
5087 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5088 msgid ""
5089 "C<path> must match exactly one existing node in the tree, and C<label> must "
5090 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5091 msgstr ""
5092
5093 #. type: =head2
5094 #: ../fish/guestfish-actions.pod:301
5095 msgid "aug-load"
5096 msgstr ""
5097
5098 #. type: verbatim
5099 #: ../fish/guestfish-actions.pod:303
5100 #, no-wrap
5101 msgid ""
5102 " aug-load\n"
5103 "\n"
5104 msgstr ""
5105
5106 #. type: textblock
5107 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5108 msgid "Load files into the tree."
5109 msgstr "Завантажити файли до ієрархії."
5110
5111 #. type: textblock
5112 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5113 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5114 msgstr ""
5115
5116 #. type: =head2
5117 #: ../fish/guestfish-actions.pod:310
5118 msgid "aug-ls"
5119 msgstr ""
5120
5121 #. type: verbatim
5122 #: ../fish/guestfish-actions.pod:312
5123 #, no-wrap
5124 msgid ""
5125 " aug-ls augpath\n"
5126 "\n"
5127 msgstr ""
5128
5129 #. type: textblock
5130 #: ../fish/guestfish-actions.pod:314
5131 msgid ""
5132 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5133 "resulting nodes into alphabetical order."
5134 msgstr ""
5135
5136 #. type: =head2
5137 #: ../fish/guestfish-actions.pod:317
5138 msgid "aug-match"
5139 msgstr ""
5140
5141 #. type: verbatim
5142 #: ../fish/guestfish-actions.pod:319
5143 #, no-wrap
5144 msgid ""
5145 " aug-match augpath\n"
5146 "\n"
5147 msgstr ""
5148
5149 #. type: textblock
5150 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5151 msgid ""
5152 "Returns a list of paths which match the path expression C<path>.  The "
5153 "returned paths are sufficiently qualified so that they match exactly one "
5154 "node in the current tree."
5155 msgstr ""
5156
5157 #. type: =head2
5158 #: ../fish/guestfish-actions.pod:325
5159 msgid "aug-mv"
5160 msgstr ""
5161
5162 #. type: verbatim
5163 #: ../fish/guestfish-actions.pod:327
5164 #, no-wrap
5165 msgid ""
5166 " aug-mv src dest\n"
5167 "\n"
5168 msgstr ""
5169
5170 #. type: textblock
5171 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5172 msgid ""
5173 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5174 "C<dest> is overwritten if it exists."
5175 msgstr ""
5176
5177 #. type: =head2
5178 #: ../fish/guestfish-actions.pod:332
5179 msgid "aug-rm"
5180 msgstr ""
5181
5182 #. type: verbatim
5183 #: ../fish/guestfish-actions.pod:334
5184 #, no-wrap
5185 msgid ""
5186 " aug-rm augpath\n"
5187 "\n"
5188 msgstr ""
5189
5190 #. type: textblock
5191 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5192 msgid "Remove C<path> and all of its children."
5193 msgstr ""
5194
5195 #. type: textblock
5196 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5197 msgid "On success this returns the number of entries which were removed."
5198 msgstr ""
5199
5200 #. type: =head2
5201 #: ../fish/guestfish-actions.pod:340
5202 msgid "aug-save"
5203 msgstr ""
5204
5205 #. type: verbatim
5206 #: ../fish/guestfish-actions.pod:342
5207 #, no-wrap
5208 msgid ""
5209 " aug-save\n"
5210 "\n"
5211 msgstr ""
5212
5213 #. type: textblock
5214 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5215 msgid "This writes all pending changes to disk."
5216 msgstr ""
5217
5218 #. type: textblock
5219 #: ../fish/guestfish-actions.pod:346
5220 msgid ""
5221 "The flags which were passed to L</aug-init> affect exactly how files are "
5222 "saved."
5223 msgstr ""
5224
5225 #. type: =head2
5226 #: ../fish/guestfish-actions.pod:349
5227 msgid "aug-set"
5228 msgstr ""
5229
5230 #. type: verbatim
5231 #: ../fish/guestfish-actions.pod:351
5232 #, no-wrap
5233 msgid ""
5234 " aug-set augpath val\n"
5235 "\n"
5236 msgstr ""
5237
5238 #. type: textblock
5239 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5240 msgid "Set the value associated with C<path> to C<val>."
5241 msgstr ""
5242
5243 #. type: textblock
5244 #: ../fish/guestfish-actions.pod:355
5245 msgid ""
5246 "In the Augeas API, it is possible to clear a node by setting the value to "
5247 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5248 "this call.  Instead you must use the L</aug-clear> call."
5249 msgstr ""
5250
5251 #. type: =head2
5252 #: ../fish/guestfish-actions.pod:360
5253 msgid "available"
5254 msgstr ""
5255
5256 #. type: verbatim
5257 #: ../fish/guestfish-actions.pod:362
5258 #, no-wrap
5259 msgid ""
5260 " available 'groups ...'\n"
5261 "\n"
5262 msgstr ""
5263
5264 #. type: textblock
5265 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5266 msgid ""
5267 "This command is used to check the availability of some groups of "
5268 "functionality in the appliance, which not all builds of the libguestfs "
5269 "appliance will be able to provide."
5270 msgstr ""
5271
5272 #. type: textblock
5273 #: ../fish/guestfish-actions.pod:368
5274 msgid ""
5275 "The libguestfs groups, and the functions that those groups correspond to, "
5276 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5277 "runtime by calling L</available-all-groups>."
5278 msgstr ""
5279
5280 #. type: textblock
5281 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5282 msgid ""
5283 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5284 "\"]> would check for the availability of the Linux inotify functions and "
5285 "Augeas (configuration file editing) functions."
5286 msgstr ""
5287
5288 #. type: textblock
5289 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5290 msgid "The command returns no error if I<all> requested groups are available."
5291 msgstr ""
5292
5293 #. type: textblock
5294 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5295 msgid ""
5296 "It fails with an error if one or more of the requested groups is unavailable "
5297 "in the appliance."
5298 msgstr ""
5299
5300 #. type: textblock
5301 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5302 msgid ""
5303 "If an unknown group name is included in the list of groups then an error is "
5304 "always returned."
5305 msgstr ""
5306
5307 #. type: textblock
5308 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5309 msgid "I<Notes:>"
5310 msgstr "I<Нотатки:>"
5311
5312 #. type: textblock
5313 #: ../fish/guestfish-actions.pod:392
5314 msgid "You must call L</launch> before calling this function."
5315 msgstr ""
5316
5317 #. type: textblock
5318 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5319 msgid ""
5320 "The reason is because we don't know what groups are supported by the "
5321 "appliance/daemon until it is running and can be queried."
5322 msgstr ""
5323
5324 #. type: textblock
5325 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5326 msgid ""
5327 "If a group of functions is available, this does not necessarily mean that "
5328 "they will work.  You still have to check for errors when calling individual "
5329 "API functions even if they are available."
5330 msgstr ""
5331
5332 #. type: textblock
5333 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5334 msgid ""
5335 "It is usually the job of distro packagers to build complete functionality "
5336 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5337 "with all requirements satisfied, will support everything."
5338 msgstr ""
5339
5340 #. type: textblock
5341 #: ../fish/guestfish-actions.pod:414
5342 msgid ""
5343 "This call was added in version C<1.0.80>.  In previous versions of "
5344 "libguestfs all you could do would be to speculatively execute a command to "
5345 "find out if the daemon implemented it.  See also L</version>."
5346 msgstr ""
5347
5348 #. type: =head2
5349 #: ../fish/guestfish-actions.pod:421
5350 msgid "available-all-groups"
5351 msgstr ""
5352
5353 #. type: verbatim
5354 #: ../fish/guestfish-actions.pod:423
5355 #, no-wrap
5356 msgid ""
5357 " available-all-groups\n"
5358 "\n"
5359 msgstr ""
5360
5361 #. type: textblock
5362 #: ../fish/guestfish-actions.pod:425
5363 msgid ""
5364 "This command returns a list of all optional groups that this daemon knows "
5365 "about.  Note this returns both supported and unsupported groups.  To find "
5366 "out which ones the daemon can actually support you have to call L</"
5367 "available> on each member of the returned list."
5368 msgstr ""
5369
5370 #. type: textblock
5371 #: ../fish/guestfish-actions.pod:431
5372 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5373 msgstr ""
5374
5375 #. type: =head2
5376 #: ../fish/guestfish-actions.pod:433
5377 msgid "base64-in"
5378 msgstr ""
5379
5380 #. type: verbatim
5381 #: ../fish/guestfish-actions.pod:435
5382 #, no-wrap
5383 msgid ""
5384 " base64-in (base64file|-) filename\n"
5385 "\n"
5386 msgstr ""
5387
5388 #. type: textblock
5389 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5390 msgid ""
5391 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5392 msgstr ""
5393
5394 #. type: textblock
5395 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5396 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:867
5397 #: ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260
5398 #: ../fish/guestfish-actions.pod:4663 ../fish/guestfish-actions.pod:4675
5399 #: ../fish/guestfish-actions.pod:4686 ../fish/guestfish-actions.pod:4697
5400 #: ../fish/guestfish-actions.pod:4749 ../fish/guestfish-actions.pod:4758
5401 #: ../fish/guestfish-actions.pod:4812 ../fish/guestfish-actions.pod:4835
5402 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5403 msgstr ""
5404
5405 #. type: =head2
5406 #: ../fish/guestfish-actions.pod:442
5407 msgid "base64-out"
5408 msgstr ""
5409
5410 #. type: verbatim
5411 #: ../fish/guestfish-actions.pod:444
5412 #, no-wrap
5413 msgid ""
5414 " base64-out filename (base64file|-)\n"
5415 "\n"
5416 msgstr ""
5417
5418 #. type: textblock
5419 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5420 msgid ""
5421 "This command downloads the contents of C<filename>, writing it out to local "
5422 "file C<base64file> encoded as base64."
5423 msgstr ""
5424
5425 #. type: =head2
5426 #: ../fish/guestfish-actions.pod:451
5427 msgid "blockdev-flushbufs"
5428 msgstr ""
5429
5430 #. type: verbatim
5431 #: ../fish/guestfish-actions.pod:453
5432 #, no-wrap
5433 msgid ""
5434 " blockdev-flushbufs device\n"
5435 "\n"
5436 msgstr ""
5437
5438 #. type: textblock
5439 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5440 msgid ""
5441 "This tells the kernel to flush internal buffers associated with C<device>."
5442 msgstr ""
5443
5444 #. type: textblock
5445 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5446 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5447 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5448 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5449 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5450 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5451 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5452 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5453 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5454 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5455 msgid "This uses the L<blockdev(8)> command."
5456 msgstr ""
5457
5458 #. type: =head2
5459 #: ../fish/guestfish-actions.pod:460
5460 msgid "blockdev-getbsz"
5461 msgstr ""
5462
5463 #. type: verbatim
5464 #: ../fish/guestfish-actions.pod:462
5465 #, no-wrap
5466 msgid ""
5467 " blockdev-getbsz device\n"
5468 "\n"
5469 msgstr ""
5470
5471 #. type: textblock
5472 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5473 msgid "This returns the block size of a device."
5474 msgstr ""
5475
5476 #. type: textblock
5477 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5478 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5479 msgid ""
5480 "(Note this is different from both I<size in blocks> and I<filesystem block "
5481 "size>)."
5482 msgstr ""
5483
5484 #. type: =head2
5485 #: ../fish/guestfish-actions.pod:471
5486 msgid "blockdev-getro"
5487 msgstr ""
5488
5489 #. type: verbatim
5490 #: ../fish/guestfish-actions.pod:473
5491 #, no-wrap
5492 msgid ""
5493 " blockdev-getro device\n"
5494 "\n"
5495 msgstr ""
5496
5497 #. type: textblock
5498 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5499 msgid ""
5500 "Returns a boolean indicating if the block device is read-only (true if read-"
5501 "only, false if not)."
5502 msgstr ""
5503
5504 #. type: =head2
5505 #: ../fish/guestfish-actions.pod:480
5506 msgid "blockdev-getsize64"
5507 msgstr ""
5508
5509 #. type: verbatim
5510 #: ../fish/guestfish-actions.pod:482
5511 #, no-wrap
5512 msgid ""
5513 " blockdev-getsize64 device\n"
5514 "\n"
5515 msgstr ""
5516
5517 #. type: textblock
5518 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5519 msgid "This returns the size of the device in bytes."
5520 msgstr ""
5521
5522 #. type: textblock
5523 #: ../fish/guestfish-actions.pod:486
5524 msgid "See also L</blockdev-getsz>."
5525 msgstr ""
5526
5527 #. type: =head2
5528 #: ../fish/guestfish-actions.pod:490
5529 msgid "blockdev-getss"
5530 msgstr ""
5531
5532 #. type: verbatim
5533 #: ../fish/guestfish-actions.pod:492
5534 #, no-wrap
5535 msgid ""
5536 " blockdev-getss device\n"
5537 "\n"
5538 msgstr ""
5539
5540 #. type: textblock
5541 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5542 msgid ""
5543 "This returns the size of sectors on a block device.  Usually 512, but can be "
5544 "larger for modern devices."
5545 msgstr ""
5546
5547 #. type: textblock
5548 #: ../fish/guestfish-actions.pod:497
5549 msgid ""
5550 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5551 msgstr ""
5552
5553 #. type: =head2
5554 #: ../fish/guestfish-actions.pod:502
5555 msgid "blockdev-getsz"
5556 msgstr ""
5557
5558 #. type: verbatim
5559 #: ../fish/guestfish-actions.pod:504
5560 #, no-wrap
5561 msgid ""
5562 " blockdev-getsz device\n"
5563 "\n"
5564 msgstr ""
5565
5566 #. type: textblock
5567 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5568 msgid ""
5569 "This returns the size of the device in units of 512-byte sectors (even if "
5570 "the sectorsize isn't 512 bytes ... weird)."
5571 msgstr ""
5572
5573 #. type: textblock
5574 #: ../fish/guestfish-actions.pod:509
5575 msgid ""
5576 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5577 "blockdev-getsize64> for the more useful I<size in bytes>."
5578 msgstr ""
5579
5580 #. type: =head2
5581 #: ../fish/guestfish-actions.pod:515
5582 msgid "blockdev-rereadpt"
5583 msgstr ""
5584
5585 #. type: verbatim
5586 #: ../fish/guestfish-actions.pod:517
5587 #, no-wrap
5588 msgid ""
5589 " blockdev-rereadpt device\n"
5590 "\n"
5591 msgstr ""
5592
5593 #. type: textblock
5594 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5595 msgid "Reread the partition table on C<device>."
5596 msgstr ""
5597
5598 #. type: =head2
5599 #: ../fish/guestfish-actions.pod:523
5600 msgid "blockdev-setbsz"
5601 msgstr ""
5602
5603 #. type: verbatim
5604 #: ../fish/guestfish-actions.pod:525
5605 #, no-wrap
5606 msgid ""
5607 " blockdev-setbsz device blocksize\n"
5608 "\n"
5609 msgstr ""
5610
5611 #. type: textblock
5612 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5613 msgid "This sets the block size of a device."
5614 msgstr ""
5615
5616 #. type: =head2
5617 #: ../fish/guestfish-actions.pod:534
5618 msgid "blockdev-setro"
5619 msgstr ""
5620
5621 #. type: verbatim
5622 #: ../fish/guestfish-actions.pod:536
5623 #, no-wrap
5624 msgid ""
5625 " blockdev-setro device\n"
5626 "\n"
5627 msgstr ""
5628
5629 #. type: textblock
5630 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5631 msgid "Sets the block device named C<device> to read-only."
5632 msgstr ""
5633
5634 #. type: =head2
5635 #: ../fish/guestfish-actions.pod:542
5636 msgid "blockdev-setrw"
5637 msgstr ""
5638
5639 #. type: verbatim
5640 #: ../fish/guestfish-actions.pod:544
5641 #, no-wrap
5642 msgid ""
5643 " blockdev-setrw device\n"
5644 "\n"
5645 msgstr ""
5646
5647 #. type: textblock
5648 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5649 msgid "Sets the block device named C<device> to read-write."
5650 msgstr ""
5651
5652 #. type: =head2
5653 #: ../fish/guestfish-actions.pod:550
5654 msgid "btrfs-filesystem-resize"
5655 msgstr ""
5656
5657 #. type: verbatim
5658 #: ../fish/guestfish-actions.pod:552
5659 #, no-wrap
5660 msgid ""
5661 " btrfs-filesystem-resize mountpoint [size:..]\n"
5662 "\n"
5663 msgstr ""
5664
5665 #. type: textblock
5666 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5667 msgid "This command resizes a btrfs filesystem."
5668 msgstr ""
5669
5670 #. type: textblock
5671 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5672 msgid ""
5673 "Note that unlike other resize calls, the filesystem has to be mounted and "
5674 "the parameter is the mountpoint not the device (this is a requirement of "
5675 "btrfs itself)."
5676 msgstr ""
5677
5678 #. type: textblock
5679 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3422
5680 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5194
5681 msgid "The optional parameters are:"
5682 msgstr ""
5683
5684 #. type: =item
5685 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3426
5686 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5198
5687 msgid "C<size>"
5688 msgstr ""
5689
5690 #. type: textblock
5691 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5692 msgid ""
5693 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5694 "resized to the maximum size."
5695 msgstr ""
5696
5697 #. type: textblock
5698 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5699 msgid "See also L<btrfs(8)>."
5700 msgstr ""
5701
5702 #. type: =head2
5703 #: ../fish/guestfish-actions.pod:575
5704 msgid "case-sensitive-path"
5705 msgstr ""
5706
5707 #. type: verbatim
5708 #: ../fish/guestfish-actions.pod:577
5709 #, no-wrap
5710 msgid ""
5711 " case-sensitive-path path\n"
5712 "\n"
5713 msgstr ""
5714
5715 #. type: textblock
5716 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5717 msgid ""
5718 "This can be used to resolve case insensitive paths on a filesystem which is "
5719 "case sensitive.  The use case is to resolve paths which you have read from "
5720 "Windows configuration files or the Windows Registry, to the true path."
5721 msgstr ""
5722
5723 #. type: textblock
5724 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5725 msgid ""
5726 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5727 "(and probably others), which is that although the underlying filesystem is "
5728 "case-insensitive, the driver exports the filesystem to Linux as case-"
5729 "sensitive."
5730 msgstr ""
5731
5732 #. type: textblock
5733 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
5734 msgid ""
5735 "One consequence of this is that special directories such as C<c:\\windows> "
5736 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
5737 "precise details of how they were created.  In Windows itself this would not "
5738 "be a problem."
5739 msgstr ""
5740
5741 #. type: textblock
5742 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
5743 msgid ""
5744 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
5745 "#posixfilenames1>"
5746 msgstr ""
5747
5748 #. type: textblock
5749 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
5750 msgid ""
5751 "This function resolves the true case of each element in the path and returns "
5752 "the case-sensitive path."
5753 msgstr ""
5754
5755 #. type: textblock
5756 #: ../fish/guestfish-actions.pod:601
5757 msgid ""
5758 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
5759 "WINDOWS/system32\"> (the exact return value would depend on details of how "
5760 "the directories were originally created under Windows)."
5761 msgstr ""
5762
5763 #. type: textblock
5764 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
5765 msgid "I<Note>: This function does not handle drive names, backslashes etc."
5766 msgstr ""
5767
5768 #. type: textblock
5769 #: ../fish/guestfish-actions.pod:609
5770 msgid "See also L</realpath>."
5771 msgstr ""
5772
5773 #. type: =head2
5774 #: ../fish/guestfish-actions.pod:611
5775 msgid "cat"
5776 msgstr "cat"
5777
5778 #. type: verbatim
5779 #: ../fish/guestfish-actions.pod:613
5780 #, no-wrap
5781 msgid ""
5782 " cat path\n"
5783 "\n"
5784 msgstr ""
5785 " cat шлях\n"
5786 "\n"
5787
5788 #. type: textblock
5789 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3842
5790 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5837
5791 msgid "Return the contents of the file named C<path>."
5792 msgstr ""
5793
5794 #. type: textblock
5795 #: ../fish/guestfish-actions.pod:617
5796 msgid ""
5797 "Note that this function cannot correctly handle binary files (specifically, "
5798 "files containing C<\\0> character which is treated as end of string).  For "
5799 "those you need to use the L</read-file> or L</download> functions which have "
5800 "a more complex interface."
5801 msgstr ""
5802
5803 #. type: textblock
5804 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
5805 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945
5806 #: ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022
5807 #: ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224
5808 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541
5809 #: ../fish/guestfish-actions.pod:1569 ../fish/guestfish-actions.pod:1584
5810 #: ../fish/guestfish-actions.pod:1594 ../fish/guestfish-actions.pod:1613
5811 #: ../fish/guestfish-actions.pod:3712 ../fish/guestfish-actions.pod:3727
5812 #: ../fish/guestfish-actions.pod:3803 ../fish/guestfish-actions.pod:3820
5813 #: ../fish/guestfish-actions.pod:3835 ../fish/guestfish-actions.pod:4504
5814 #: ../fish/guestfish-actions.pod:4550 ../fish/guestfish-actions.pod:4635
5815 #: ../fish/guestfish-actions.pod:4650 ../fish/guestfish-actions.pod:5056
5816 #: ../fish/guestfish-actions.pod:5068 ../fish/guestfish-actions.pod:5086
5817 #: ../fish/guestfish-actions.pod:5103 ../fish/guestfish-actions.pod:5113
5818 #: ../fish/guestfish-actions.pod:5170 ../fish/guestfish-actions.pod:5180
5819 #: ../fish/guestfish-actions.pod:5209 ../fish/guestfish-actions.pod:5219
5820 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
5821 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443
5822 #: ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565
5823 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830
5824 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320
5825 #: ../src/guestfs-actions.pod:2363 ../src/guestfs-actions.pod:2387
5826 #: ../src/guestfs-actions.pod:2404 ../src/guestfs-actions.pod:2433
5827 #: ../src/guestfs-actions.pod:5619 ../src/guestfs-actions.pod:5645
5828 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
5829 #: ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:6777
5830 #: ../src/guestfs-actions.pod:6832 ../src/guestfs-actions.pod:6978
5831 #: ../src/guestfs-actions.pod:7002 ../src/guestfs-actions.pod:7667
5832 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7720
5833 #: ../src/guestfs-actions.pod:7739 ../src/guestfs-actions.pod:7758
5834 #: ../src/guestfs-actions.pod:7852 ../src/guestfs-actions.pod:7871
5835 #: ../src/guestfs-actions.pod:7917 ../src/guestfs-actions.pod:7936
5836 msgid ""
5837 "Because of the message protocol, there is a transfer limit of somewhere "
5838 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
5839 msgstr ""
5840
5841 #. type: =head2
5842 #: ../fish/guestfish-actions.pod:625
5843 msgid "checksum"
5844 msgstr "checksum"
5845
5846 #. type: verbatim
5847 #: ../fish/guestfish-actions.pod:627
5848 #, no-wrap
5849 msgid ""
5850 " checksum csumtype path\n"
5851 "\n"
5852 msgstr ""
5853
5854 #. type: textblock
5855 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
5856 msgid ""
5857 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
5858 msgstr ""
5859
5860 #. type: textblock
5861 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
5862 msgid ""
5863 "The type of checksum to compute is given by the C<csumtype> parameter which "
5864 "must have one of the following values:"
5865 msgstr ""
5866
5867 #. type: =item
5868 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
5869 msgid "C<crc>"
5870 msgstr "C<crc>"
5871
5872 #. type: textblock
5873 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
5874 msgid ""
5875 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
5876 "C<cksum> command."
5877 msgstr ""
5878
5879 #. type: =item
5880 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
5881 msgid "C<md5>"
5882 msgstr "C<md5>"
5883
5884 #. type: textblock
5885 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
5886 msgid "Compute the MD5 hash (using the C<md5sum> program)."
5887 msgstr ""
5888
5889 #. type: =item
5890 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
5891 msgid "C<sha1>"
5892 msgstr "C<sha1>"
5893
5894 #. type: textblock
5895 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
5896 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
5897 msgstr ""
5898
5899 #. type: =item
5900 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
5901 msgid "C<sha224>"
5902 msgstr "C<sha224>"
5903
5904 #. type: textblock
5905 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
5906 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
5907 msgstr ""
5908
5909 #. type: =item
5910 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
5911 msgid "C<sha256>"
5912 msgstr "C<sha256>"
5913
5914 #. type: textblock
5915 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
5916 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
5917 msgstr ""
5918
5919 #. type: =item
5920 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
5921 msgid "C<sha384>"
5922 msgstr "C<sha384>"
5923
5924 #. type: textblock
5925 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
5926 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
5927 msgstr ""
5928
5929 #. type: =item
5930 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
5931 msgid "C<sha512>"
5932 msgstr "C<sha512>"
5933
5934 #. type: textblock
5935 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
5936 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
5937 msgstr ""
5938
5939 #. type: textblock
5940 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
5941 msgid "The checksum is returned as a printable string."
5942 msgstr ""
5943
5944 #. type: textblock
5945 #: ../fish/guestfish-actions.pod:670
5946 msgid "To get the checksum for a device, use L</checksum-device>."
5947 msgstr ""
5948
5949 #. type: textblock
5950 #: ../fish/guestfish-actions.pod:672
5951 msgid "To get the checksums for many files, use L</checksums-out>."
5952 msgstr ""
5953
5954 #. type: =head2
5955 #: ../fish/guestfish-actions.pod:674
5956 msgid "checksum-device"
5957 msgstr "checksum-device"
5958
5959 #. type: verbatim
5960 #: ../fish/guestfish-actions.pod:676
5961 #, no-wrap
5962 msgid ""
5963 " checksum-device csumtype device\n"
5964 "\n"
5965 msgstr ""
5966
5967 #. type: textblock
5968 #: ../fish/guestfish-actions.pod:678
5969 msgid ""
5970 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
5971 "device named C<device>.  For the types of checksums supported see the L</"
5972 "checksum> command."
5973 msgstr ""
5974
5975 #. type: =head2
5976 #: ../fish/guestfish-actions.pod:682
5977 msgid "checksums-out"
5978 msgstr ""
5979
5980 #. type: verbatim
5981 #: ../fish/guestfish-actions.pod:684
5982 #, no-wrap
5983 msgid ""
5984 " checksums-out csumtype directory (sumsfile|-)\n"
5985 "\n"
5986 msgstr ""
5987
5988 #. type: textblock
5989 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
5990 msgid ""
5991 "This command computes the checksums of all regular files in C<directory> and "
5992 "then emits a list of those checksums to the local output file C<sumsfile>."
5993 msgstr ""
5994
5995 #. type: textblock
5996 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
5997 msgid ""
5998 "This can be used for verifying the integrity of a virtual machine.  However "
5999 "to be properly secure you should pay attention to the output of the checksum "
6000 "command (it uses the ones from GNU coreutils).  In particular when the "
6001 "filename is not printable, coreutils uses a special backslash syntax.  For "
6002 "more information, see the GNU coreutils info file."
6003 msgstr ""
6004
6005 #. type: =head2
6006 #: ../fish/guestfish-actions.pod:700
6007 msgid "chmod"
6008 msgstr "chmod"
6009
6010 #. type: verbatim
6011 #: ../fish/guestfish-actions.pod:702
6012 #, no-wrap
6013 msgid ""
6014 " chmod mode path\n"
6015 "\n"
6016 msgstr ""
6017
6018 #. type: textblock
6019 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6020 msgid ""
6021 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6022 "supported."
6023 msgstr ""
6024
6025 #. type: textblock
6026 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6027 msgid ""
6028 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6029 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6030 "C<700>."
6031 msgstr ""
6032
6033 #. type: textblock
6034 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3065
6035 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3214
6036 #: ../fish/guestfish-actions.pod:3224 ../src/guestfs-actions.pod:1064
6037 #: ../src/guestfs-actions.pod:4591 ../src/guestfs-actions.pod:4800
6038 #: ../src/guestfs-actions.pod:4819 ../src/guestfs-actions.pod:4838
6039 msgid "The mode actually set is affected by the umask."
6040 msgstr ""
6041
6042 #. type: =head2
6043 #: ../fish/guestfish-actions.pod:713
6044 msgid "chown"
6045 msgstr "chown"
6046
6047 #. type: verbatim
6048 #: ../fish/guestfish-actions.pod:715
6049 #, no-wrap
6050 msgid ""
6051 " chown owner group path\n"
6052 "\n"
6053 msgstr ""
6054
6055 #. type: textblock
6056 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6057 msgid "Change the file owner to C<owner> and group to C<group>."
6058 msgstr ""
6059
6060 #. type: textblock
6061 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2500
6062 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3662
6063 msgid ""
6064 "Only numeric uid and gid are supported.  If you want to use names, you will "
6065 "need to locate and parse the password file yourself (Augeas support makes "
6066 "this relatively easy)."
6067 msgstr ""
6068
6069 #. type: =head2
6070 #: ../fish/guestfish-actions.pod:723
6071 msgid "command"
6072 msgstr ""
6073
6074 #. type: verbatim
6075 #: ../fish/guestfish-actions.pod:725
6076 #, no-wrap
6077 msgid ""
6078 " command 'arguments ...'\n"
6079 "\n"
6080 msgstr ""
6081
6082 #. type: textblock
6083 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6084 msgid ""
6085 "This call runs a command from the guest filesystem.  The filesystem must be "
6086 "mounted, and must contain a compatible operating system (ie. something "
6087 "Linux, with the same or compatible processor architecture)."
6088 msgstr ""
6089
6090 #. type: textblock
6091 #: ../fish/guestfish-actions.pod:732
6092 msgid ""
6093 "The single parameter is an argv-style list of arguments.  The first element "
6094 "is the name of the program to run.  Subsequent elements are parameters.  The "
6095 "list must be non-empty (ie. must contain a program name).  Note that the "
6096 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6097 msgstr ""
6098
6099 #. type: textblock
6100 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6101 msgid "The return value is anything printed to I<stdout> by the command."
6102 msgstr ""
6103
6104 #. type: textblock
6105 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6106 msgid ""
6107 "If the command returns a non-zero exit status, then this function returns an "
6108 "error message.  The error message string is the content of I<stderr> from "
6109 "the command."
6110 msgstr ""
6111
6112 #. type: textblock
6113 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6114 msgid ""
6115 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6116 "bin>.  If you require a program from another location, you should provide "
6117 "the full path in the first parameter."
6118 msgstr ""
6119
6120 #. type: textblock
6121 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6122 msgid ""
6123 "Shared libraries and data files required by the program must be available on "
6124 "filesystems which are mounted in the correct places.  It is the caller's "
6125 "responsibility to ensure all filesystems that are needed are mounted at the "
6126 "right locations."
6127 msgstr ""
6128
6129 #. type: =head2
6130 #: ../fish/guestfish-actions.pod:760
6131 msgid "command-lines"
6132 msgstr ""
6133
6134 #. type: verbatim
6135 #: ../fish/guestfish-actions.pod:762
6136 #, no-wrap
6137 msgid ""
6138 " command-lines 'arguments ...'\n"
6139 "\n"
6140 msgstr ""
6141
6142 #. type: textblock
6143 #: ../fish/guestfish-actions.pod:764
6144 msgid ""
6145 "This is the same as L</command>, but splits the result into a list of lines."
6146 msgstr ""
6147
6148 #. type: textblock
6149 #: ../fish/guestfish-actions.pod:767
6150 msgid "See also: L</sh-lines>"
6151 msgstr ""
6152
6153 #. type: =head2
6154 #: ../fish/guestfish-actions.pod:772
6155 msgid "config"
6156 msgstr ""
6157
6158 #. type: verbatim
6159 #: ../fish/guestfish-actions.pod:774
6160 #, no-wrap
6161 msgid ""
6162 " config qemuparam qemuvalue\n"
6163 "\n"
6164 msgstr ""
6165
6166 #. type: textblock
6167 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
6168 msgid ""
6169 "This can be used to add arbitrary qemu command line parameters of the form "
6170 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6171 "setting some parameters which would interfere with parameters that we use."
6172 msgstr ""
6173
6174 #. type: textblock
6175 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
6176 msgid "The first character of C<param> string must be a C<-> (dash)."
6177 msgstr ""
6178
6179 #. type: textblock
6180 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
6181 msgid "C<value> can be NULL."
6182 msgstr ""
6183
6184 #. type: =head2
6185 #: ../fish/guestfish-actions.pod:785
6186 msgid "copy-size"
6187 msgstr ""
6188
6189 #. type: verbatim
6190 #: ../fish/guestfish-actions.pod:787
6191 #, no-wrap
6192 msgid ""
6193 " copy-size src dest size\n"
6194 "\n"
6195 msgstr ""
6196
6197 #. type: textblock
6198 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
6199 msgid ""
6200 "This command copies exactly C<size> bytes from one source device or file "
6201 "C<src> to another destination device or file C<dest>."
6202 msgstr ""
6203
6204 #. type: textblock
6205 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
6206 msgid ""
6207 "Note this will fail if the source is too short or if the destination is not "
6208 "large enough."
6209 msgstr ""
6210
6211 #. type: =head2
6212 #: ../fish/guestfish-actions.pod:795
6213 msgid "cp"
6214 msgstr "cp"
6215
6216 #. type: verbatim
6217 #: ../fish/guestfish-actions.pod:797
6218 #, no-wrap
6219 msgid ""
6220 " cp src dest\n"
6221 "\n"
6222 msgstr ""
6223
6224 #. type: textblock
6225 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
6226 msgid ""
6227 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6228 "destination filename or destination directory."
6229 msgstr ""
6230
6231 #. type: =head2
6232 #: ../fish/guestfish-actions.pod:802
6233 msgid "cp-a"
6234 msgstr "cp-a"
6235
6236 #. type: verbatim
6237 #: ../fish/guestfish-actions.pod:804
6238 #, no-wrap
6239 msgid ""
6240 " cp-a src dest\n"
6241 "\n"
6242 msgstr ""
6243
6244 #. type: textblock
6245 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
6246 msgid ""
6247 "This copies a file or directory from C<src> to C<dest> recursively using the "
6248 "C<cp -a> command."
6249 msgstr ""
6250
6251 #. type: =head2
6252 #: ../fish/guestfish-actions.pod:809
6253 msgid "dd"
6254 msgstr "dd"
6255
6256 #. type: verbatim
6257 #: ../fish/guestfish-actions.pod:811
6258 #, no-wrap
6259 msgid ""
6260 " dd src dest\n"
6261 "\n"
6262 msgstr ""
6263
6264 #. type: textblock
6265 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
6266 msgid ""
6267 "This command copies from one source device or file C<src> to another "
6268 "destination device or file C<dest>.  Normally you would use this to copy to "
6269 "or from a device or partition, for example to duplicate a filesystem."
6270 msgstr ""
6271
6272 #. type: textblock
6273 #: ../fish/guestfish-actions.pod:818
6274 msgid ""
6275 "If the destination is a device, it must be as large or larger than the "
6276 "source file or device, otherwise the copy will fail.  This command cannot do "
6277 "partial copies (see L</copy-size>)."
6278 msgstr ""
6279
6280 #. type: =head2
6281 #: ../fish/guestfish-actions.pod:822
6282 msgid "df"
6283 msgstr "df"
6284
6285 #. type: verbatim
6286 #: ../fish/guestfish-actions.pod:824
6287 #, no-wrap
6288 msgid ""
6289 " df\n"
6290 "\n"
6291 msgstr ""
6292 " df\n"
6293 "\n"
6294
6295 #. type: textblock
6296 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
6297 msgid "This command runs the C<df> command to report disk space used."
6298 msgstr ""
6299
6300 #. type: textblock
6301 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
6302 msgid ""
6303 "This command is mostly useful for interactive sessions.  It is I<not> "
6304 "intended that you try to parse the output string.  Use L</statvfs> from "
6305 "programs."
6306 msgstr ""
6307
6308 #. type: =head2
6309 #: ../fish/guestfish-actions.pod:832
6310 msgid "df-h"
6311 msgstr "df-h"
6312
6313 #. type: verbatim
6314 #: ../fish/guestfish-actions.pod:834
6315 #, no-wrap
6316 msgid ""
6317 " df-h\n"
6318 "\n"
6319 msgstr ""
6320 " df-h\n"
6321 "\n"
6322
6323 #. type: textblock
6324 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
6325 msgid ""
6326 "This command runs the C<df -h> command to report disk space used in human-"
6327 "readable format."
6328 msgstr ""
6329
6330 #. type: =head2
6331 #: ../fish/guestfish-actions.pod:843
6332 msgid "dmesg"
6333 msgstr "dmesg"
6334
6335 #. type: verbatim
6336 #: ../fish/guestfish-actions.pod:845
6337 #, no-wrap
6338 msgid ""
6339 " dmesg\n"
6340 "\n"
6341 msgstr ""
6342 " dmesg\n"
6343 "\n"
6344
6345 #. type: textblock
6346 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
6347 msgid ""
6348 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6349 "This is sometimes useful for extended debugging of problems."
6350 msgstr ""
6351
6352 #. type: textblock
6353 #: ../fish/guestfish-actions.pod:851
6354 msgid ""
6355 "Another way to get the same information is to enable verbose messages with "
6356 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6357 "before running the program."
6358 msgstr ""
6359
6360 #. type: =head2
6361 #: ../fish/guestfish-actions.pod:856
6362 msgid "download"
6363 msgstr "download"
6364
6365 #. type: verbatim
6366 #: ../fish/guestfish-actions.pod:858
6367 #, no-wrap
6368 msgid ""
6369 " download remotefilename (filename|-)\n"
6370 "\n"
6371 msgstr ""
6372
6373 #. type: textblock
6374 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873
6375 #: ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
6376 msgid ""
6377 "Download file C<remotefilename> and save it as C<filename> on the local "
6378 "machine."
6379 msgstr ""
6380
6381 #. type: textblock
6382 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4808
6383 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7237
6384 msgid "C<filename> can also be a named pipe."
6385 msgstr ""
6386
6387 #. type: textblock
6388 #: ../fish/guestfish-actions.pod:865
6389 msgid "See also L</upload>, L</cat>."
6390 msgstr ""
6391
6392 #. type: =head2
6393 #: ../fish/guestfish-actions.pod:869
6394 msgid "download-offset"
6395 msgstr "download-offset"
6396
6397 #. type: verbatim
6398 #: ../fish/guestfish-actions.pod:871
6399 #, no-wrap
6400 msgid ""
6401 " download-offset remotefilename (filename|-) offset size\n"
6402 "\n"
6403 msgstr ""
6404
6405 #. type: textblock
6406 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
6407 msgid ""
6408 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6409 "region must be within the file or device)."
6410 msgstr ""
6411
6412 #. type: textblock
6413 #: ../fish/guestfish-actions.pod:879
6414 msgid ""
6415 "Note that there is no limit on the amount of data that can be downloaded "
6416 "with this call, unlike with L</pread>, and this call always reads the full "
6417 "amount unless an error occurs."
6418 msgstr ""
6419
6420 #. type: textblock
6421 #: ../fish/guestfish-actions.pod:884
6422 msgid "See also L</download>, L</pread>."
6423 msgstr ""
6424
6425 #. type: =head2
6426 #: ../fish/guestfish-actions.pod:888
6427 msgid "drop-caches"
6428 msgstr ""
6429
6430 #. type: verbatim
6431 #: ../fish/guestfish-actions.pod:890
6432 #, no-wrap
6433 msgid ""
6434 " drop-caches whattodrop\n"
6435 "\n"
6436 msgstr ""
6437
6438 #. type: textblock
6439 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6440 msgid ""
6441 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6442 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6443 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6444 msgstr ""
6445
6446 #. type: textblock
6447 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
6448 msgid "Setting C<whattodrop> to 3 should drop everything."
6449 msgstr ""
6450
6451 #. type: textblock
6452 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
6453 msgid ""
6454 "This automatically calls L<sync(2)> before the operation, so that the "
6455 "maximum guest memory is freed."
6456 msgstr ""
6457
6458 #. type: =head2
6459 #: ../fish/guestfish-actions.pod:902
6460 msgid "du"
6461 msgstr "du"
6462
6463 #. type: verbatim
6464 #: ../fish/guestfish-actions.pod:904
6465 #, no-wrap
6466 msgid ""
6467 " du path\n"
6468 "\n"
6469 msgstr ""
6470 " du шлях\n"
6471 "\n"
6472
6473 #. type: textblock
6474 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
6475 msgid ""
6476 "This command runs the C<du -s> command to estimate file space usage for "
6477 "C<path>."
6478 msgstr ""
6479
6480 #. type: textblock
6481 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
6482 msgid ""
6483 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6484 "estimate includes the contents of the directory and all subdirectories "
6485 "(recursively)."
6486 msgstr ""
6487
6488 #. type: textblock
6489 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
6490 msgid ""
6491 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6492 msgstr ""
6493
6494 #. type: =head2
6495 #: ../fish/guestfish-actions.pod:916
6496 msgid "e2fsck-f"
6497 msgstr "e2fsck-f"
6498
6499 #. type: verbatim
6500 #: ../fish/guestfish-actions.pod:918
6501 #, no-wrap
6502 msgid ""
6503 " e2fsck-f device\n"
6504 "\n"
6505 msgstr ""
6506
6507 #. type: textblock
6508 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
6509 msgid ""
6510 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6511 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6512 "clean (I<-f>)."
6513 msgstr ""
6514
6515 #. type: textblock
6516 #: ../fish/guestfish-actions.pod:924
6517 msgid ""
6518 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6519 "should use L</fsck>."
6520 msgstr ""
6521
6522 #. type: =head2
6523 #: ../fish/guestfish-actions.pod:927
6524 msgid "echo-daemon"
6525 msgstr ""
6526
6527 #. type: verbatim
6528 #: ../fish/guestfish-actions.pod:929
6529 #, no-wrap
6530 msgid ""
6531 " echo-daemon 'words ...'\n"
6532 "\n"
6533 msgstr ""
6534
6535 #. type: textblock
6536 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
6537 msgid ""
6538 "This command concatenates the list of C<words> passed with single spaces "
6539 "between them and returns the resulting string."
6540 msgstr ""
6541
6542 #. type: textblock
6543 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
6544 msgid "You can use this command to test the connection through to the daemon."
6545 msgstr ""
6546
6547 #. type: textblock
6548 #: ../fish/guestfish-actions.pod:936
6549 msgid "See also L</ping-daemon>."
6550 msgstr ""
6551
6552 #. type: =head2
6553 #: ../fish/guestfish-actions.pod:938
6554 msgid "egrep"
6555 msgstr "egrep"
6556
6557 #. type: verbatim
6558 #: ../fish/guestfish-actions.pod:940
6559 #, no-wrap
6560 msgid ""
6561 " egrep regex path\n"
6562 "\n"
6563 msgstr ""
6564
6565 #. type: textblock
6566 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
6567 msgid ""
6568 "This calls the external C<egrep> program and returns the matching lines."
6569 msgstr ""
6570
6571 #. type: =head2
6572 #: ../fish/guestfish-actions.pod:948
6573 msgid "egrepi"
6574 msgstr "egrepi"
6575
6576 #. type: verbatim
6577 #: ../fish/guestfish-actions.pod:950
6578 #, no-wrap
6579 msgid ""
6580 " egrepi regex path\n"
6581 "\n"
6582 msgstr ""
6583
6584 #. type: textblock
6585 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
6586 msgid ""
6587 "This calls the external C<egrep -i> program and returns the matching lines."
6588 msgstr ""
6589
6590 #. type: =head2
6591 #: ../fish/guestfish-actions.pod:958
6592 msgid "equal"
6593 msgstr "equal"
6594
6595 #. type: verbatim
6596 #: ../fish/guestfish-actions.pod:960
6597 #, no-wrap
6598 msgid ""
6599 " equal file1 file2\n"
6600 "\n"
6601 msgstr ""
6602 " equal файл1 файл2\n"
6603 "\n"
6604
6605 #. type: textblock
6606 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
6607 msgid ""
6608 "This compares the two files C<file1> and C<file2> and returns true if their "
6609 "content is exactly equal, or false otherwise."
6610 msgstr ""
6611
6612 #. type: textblock
6613 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
6614 msgid "The external L<cmp(1)> program is used for the comparison."
6615 msgstr ""
6616
6617 #. type: =head2
6618 #: ../fish/guestfish-actions.pod:967
6619 msgid "exists"
6620 msgstr "exists"
6621
6622 #. type: verbatim
6623 #: ../fish/guestfish-actions.pod:969
6624 #, no-wrap
6625 msgid ""
6626 " exists path\n"
6627 "\n"
6628 msgstr ""
6629 " exists шлях\n"
6630 "\n"
6631
6632 #. type: textblock
6633 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
6634 msgid ""
6635 "This returns C<true> if and only if there is a file, directory (or anything) "
6636 "with the given C<path> name."
6637 msgstr ""
6638
6639 #. type: textblock
6640 #: ../fish/guestfish-actions.pod:974
6641 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6642 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6643
6644 #. type: =head2
6645 #: ../fish/guestfish-actions.pod:976
6646 msgid "fallocate"
6647 msgstr "fallocate"
6648
6649 #. type: verbatim
6650 #: ../fish/guestfish-actions.pod:978
6651 #, no-wrap
6652 msgid ""
6653 " fallocate path len\n"
6654 "\n"
6655 msgstr ""
6656 " fallocate шлях довжина\n"
6657 "\n"
6658
6659 #. type: textblock
6660 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999
6661 #: ../src/guestfs-actions.pod:1512 ../src/guestfs-actions.pod:1531
6662 msgid ""
6663 "This command preallocates a file (containing zero bytes) named C<path> of "
6664 "size C<len> bytes.  If the file exists already, it is overwritten."
6665 msgstr ""
6666
6667 #. type: textblock
6668 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1516
6669 msgid ""
6670 "Do not confuse this with the guestfish-specific C<alloc> command which "
6671 "allocates a file in the host and attaches it as a device."
6672 msgstr ""
6673
6674 #. type: textblock
6675 #: ../fish/guestfish-actions.pod:988
6676 msgid ""
6677 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6678 "instead."
6679 msgstr ""
6680
6681 #. type: =head2
6682 #: ../fish/guestfish-actions.pod:995
6683 msgid "fallocate64"
6684 msgstr "fallocate64"
6685
6686 #. type: verbatim
6687 #: ../fish/guestfish-actions.pod:997
6688 #, no-wrap
6689 msgid ""
6690 " fallocate64 path len\n"
6691 "\n"
6692 msgstr ""
6693 " fallocate64 шлях довжина\n"
6694 "\n"
6695
6696 #. type: textblock
6697 #: ../fish/guestfish-actions.pod:1003
6698 msgid ""
6699 "Note that this call allocates disk blocks for the file.  To create a sparse "
6700 "file use L</truncate-size> instead."
6701 msgstr ""
6702
6703 #. type: textblock
6704 #: ../fish/guestfish-actions.pod:1006
6705 msgid ""
6706 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6707 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6708 "maximum size of files created through that call to 1GB."
6709 msgstr ""
6710
6711 #. type: textblock
6712 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6713 msgid ""
6714 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6715 "commands which create a file in the host and attach it as a device."
6716 msgstr ""
6717
6718 #. type: =head2
6719 #: ../fish/guestfish-actions.pod:1015
6720 msgid "fgrep"
6721 msgstr "fgrep"
6722
6723 #. type: verbatim
6724 #: ../fish/guestfish-actions.pod:1017
6725 #, no-wrap
6726 msgid ""
6727 " fgrep pattern path\n"
6728 "\n"
6729 msgstr ""
6730 " fgrep шаблон шлях\n"
6731 "\n"
6732
6733 #. type: textblock
6734 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
6735 msgid ""
6736 "This calls the external C<fgrep> program and returns the matching lines."
6737 msgstr ""
6738
6739 #. type: =head2
6740 #: ../fish/guestfish-actions.pod:1025
6741 msgid "fgrepi"
6742 msgstr "fgrepi"
6743
6744 #. type: verbatim
6745 #: ../fish/guestfish-actions.pod:1027
6746 #, no-wrap
6747 msgid ""
6748 " fgrepi pattern path\n"
6749 "\n"
6750 msgstr ""
6751 " fgrepi шаблон шлях\n"
6752 "\n"
6753
6754 #. type: textblock
6755 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
6756 msgid ""
6757 "This calls the external C<fgrep -i> program and returns the matching lines."
6758 msgstr ""
6759
6760 #. type: =head2
6761 #: ../fish/guestfish-actions.pod:1035
6762 msgid "file"
6763 msgstr "file"
6764
6765 #. type: verbatim
6766 #: ../fish/guestfish-actions.pod:1037
6767 #, no-wrap
6768 msgid ""
6769 " file path\n"
6770 "\n"
6771 msgstr ""
6772 " file шлях\n"
6773 "\n"
6774
6775 #. type: textblock
6776 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
6777 msgid ""
6778 "This call uses the standard L<file(1)> command to determine the type or "
6779 "contents of the file."
6780 msgstr ""
6781
6782 #. type: textblock
6783 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
6784 msgid ""
6785 "This call will also transparently look inside various types of compressed "
6786 "file."
6787 msgstr ""
6788
6789 #. type: textblock
6790 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
6791 msgid ""
6792 "The exact command which runs is C<file -zb path>.  Note in particular that "
6793 "the filename is not prepended to the output (the I<-b> option)."
6794 msgstr ""
6795
6796 #. type: textblock
6797 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
6798 msgid ""
6799 "The output depends on the output of the underlying L<file(1)> command and it "
6800 "can change in future in ways beyond our control.  In other words, the output "
6801 "is not guaranteed by the ABI."
6802 msgstr ""
6803
6804 #. type: textblock
6805 #: ../fish/guestfish-actions.pod:1053
6806 msgid ""
6807 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
6808 "(etc), L</is-zero>."
6809 msgstr ""
6810
6811 #. type: =head2
6812 #: ../fish/guestfish-actions.pod:1056
6813 msgid "file-architecture"
6814 msgstr "file-architecture"
6815
6816 #. type: verbatim
6817 #: ../fish/guestfish-actions.pod:1058
6818 #, no-wrap
6819 msgid ""
6820 " file-architecture filename\n"
6821 "\n"
6822 msgstr ""
6823 " file-architecture назва_файла\n"
6824 "\n"
6825
6826 #. type: textblock
6827 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
6828 msgid ""
6829 "This detects the architecture of the binary C<filename>, and returns it if "
6830 "known."
6831 msgstr ""
6832
6833 #. type: textblock
6834 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
6835 msgid "Currently defined architectures are:"
6836 msgstr ""
6837
6838 #. type: =item
6839 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
6840 msgid "\"i386\""
6841 msgstr "\"i386\""
6842
6843 #. type: textblock
6844 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
6845 msgid ""
6846 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
6847 "irrespective of the precise processor requirements of the binary."
6848 msgstr ""
6849
6850 #. type: =item
6851 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
6852 msgid "\"x86_64\""
6853 msgstr "\"x86_64\""
6854
6855 #. type: textblock
6856 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
6857 msgid "64 bit x86-64."
6858 msgstr ""
6859
6860 #. type: =item
6861 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
6862 msgid "\"sparc\""
6863 msgstr ""
6864
6865 #. type: textblock
6866 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
6867 msgid "32 bit SPARC."
6868 msgstr ""
6869
6870 #. type: =item
6871 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
6872 msgid "\"sparc64\""
6873 msgstr ""
6874
6875 #. type: textblock
6876 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
6877 msgid "64 bit SPARC V9 and above."
6878 msgstr ""
6879
6880 #. type: =item
6881 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
6882 msgid "\"ia64\""
6883 msgstr "\"ia64\""
6884
6885 #. type: textblock
6886 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
6887 msgid "Intel Itanium."
6888 msgstr "Intel Itanium."
6889
6890 #. type: =item
6891 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
6892 msgid "\"ppc\""
6893 msgstr ""
6894
6895 #. type: textblock
6896 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
6897 msgid "32 bit Power PC."
6898 msgstr ""
6899
6900 #. type: =item
6901 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
6902 msgid "\"ppc64\""
6903 msgstr ""
6904
6905 #. type: textblock
6906 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
6907 msgid "64 bit Power PC."
6908 msgstr ""
6909
6910 #. type: textblock
6911 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
6912 msgid "Libguestfs may return other architecture strings in future."
6913 msgstr ""
6914
6915 #. type: textblock
6916 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
6917 msgid "The function works on at least the following types of files:"
6918 msgstr ""
6919
6920 #. type: textblock
6921 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
6922 msgid "many types of Un*x and Linux binary"
6923 msgstr ""
6924
6925 #. type: textblock
6926 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
6927 msgid "many types of Un*x and Linux shared library"
6928 msgstr ""
6929
6930 #. type: textblock
6931 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
6932 msgid "Windows Win32 and Win64 binaries"
6933 msgstr ""
6934
6935 #. type: textblock
6936 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
6937 msgid "Windows Win32 and Win64 DLLs"
6938 msgstr ""
6939
6940 #. type: textblock
6941 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
6942 msgid "Win32 binaries and DLLs return C<i386>."
6943 msgstr ""
6944
6945 #. type: textblock
6946 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
6947 msgid "Win64 binaries and DLLs return C<x86_64>."
6948 msgstr ""
6949
6950 #. type: textblock
6951 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
6952 msgid "Linux kernel modules"
6953 msgstr ""
6954
6955 #. type: textblock
6956 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
6957 msgid "Linux new-style initrd images"
6958 msgstr ""
6959
6960 #. type: textblock
6961 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
6962 msgid "some non-x86 Linux vmlinuz kernels"
6963 msgstr ""
6964
6965 #. type: textblock
6966 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
6967 msgid "What it can't do currently:"
6968 msgstr ""
6969
6970 #. type: textblock
6971 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
6972 msgid "static libraries (libfoo.a)"
6973 msgstr ""
6974
6975 #. type: textblock
6976 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
6977 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
6978 msgstr ""
6979
6980 #. type: textblock
6981 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
6982 msgid "x86 Linux vmlinuz kernels"
6983 msgstr ""
6984
6985 #. type: textblock
6986 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
6987 msgid ""
6988 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
6989 "compressed code, and are horribly hard to unpack.  If you want to find the "
6990 "architecture of a kernel, use the architecture of the associated initrd or "
6991 "kernel module(s) instead."
6992 msgstr ""
6993
6994 #. type: =head2
6995 #: ../fish/guestfish-actions.pod:1161
6996 msgid "filesize"
6997 msgstr "filesize"
6998
6999 #. type: verbatim
7000 #: ../fish/guestfish-actions.pod:1163
7001 #, no-wrap
7002 msgid ""
7003 " filesize file\n"
7004 "\n"
7005 msgstr ""
7006 " filesize файл\n"
7007 "\n"
7008
7009 #. type: textblock
7010 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
7011 msgid "This command returns the size of C<file> in bytes."
7012 msgstr ""
7013
7014 #. type: textblock
7015 #: ../fish/guestfish-actions.pod:1167
7016 msgid ""
7017 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7018 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
7019 msgstr ""
7020
7021 #. type: =head2
7022 #: ../fish/guestfish-actions.pod:1171
7023 msgid "fill"
7024 msgstr "fill"
7025
7026 #. type: verbatim
7027 #: ../fish/guestfish-actions.pod:1173
7028 #, no-wrap
7029 msgid ""
7030 " fill c len path\n"
7031 "\n"
7032 msgstr ""
7033
7034 #. type: textblock
7035 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
7036 msgid ""
7037 "This command creates a new file called C<path>.  The initial content of the "
7038 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7039 "[0..255]>."
7040 msgstr ""
7041
7042 #. type: textblock
7043 #: ../fish/guestfish-actions.pod:1179
7044 msgid ""
7045 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7046 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7047 "L</fill-pattern>."
7048 msgstr ""
7049
7050 #. type: =head2
7051 #: ../fish/guestfish-actions.pod:1184
7052 msgid "fill-pattern"
7053 msgstr "fill-pattern"
7054
7055 #. type: verbatim
7056 #: ../fish/guestfish-actions.pod:1186
7057 #, no-wrap
7058 msgid ""
7059 " fill-pattern pattern len path\n"
7060 "\n"
7061 msgstr ""
7062
7063 #. type: textblock
7064 #: ../fish/guestfish-actions.pod:1188
7065 msgid ""
7066 "This function is like L</fill> except that it creates a new file of length "
7067 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7068 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7069 "bytes."
7070 msgstr ""
7071
7072 #. type: =head2
7073 #: ../fish/guestfish-actions.pod:1193
7074 msgid "find"
7075 msgstr "find"
7076
7077 #. type: verbatim
7078 #: ../fish/guestfish-actions.pod:1195
7079 #, no-wrap
7080 msgid ""
7081 " find directory\n"
7082 "\n"
7083 msgstr ""
7084 " find каталог\n"
7085 "\n"
7086
7087 #. type: textblock
7088 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
7089 msgid ""
7090 "This command lists out all files and directories, recursively, starting at "
7091 "C<directory>.  It is essentially equivalent to running the shell command "
7092 "C<find directory -print> but some post-processing happens on the output, "
7093 "described below."
7094 msgstr ""
7095
7096 #. type: textblock
7097 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
7098 msgid ""
7099 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7100 "structure was:"
7101 msgstr ""
7102
7103 #. type: verbatim
7104 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
7105 #, no-wrap
7106 msgid ""
7107 " /tmp/a\n"
7108 " /tmp/b\n"
7109 " /tmp/c/d\n"
7110 "\n"
7111 msgstr ""
7112
7113 #. type: textblock
7114 #: ../fish/guestfish-actions.pod:1209
7115 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7116 msgstr ""
7117
7118 #. type: verbatim
7119 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
7120 #, no-wrap
7121 msgid ""
7122 " a\n"
7123 " b\n"
7124 " c\n"
7125 " c/d\n"
7126 "\n"
7127 msgstr ""
7128
7129 #. type: textblock
7130 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
7131 msgid "If C<directory> is not a directory, then this command returns an error."
7132 msgstr ""
7133
7134 #. type: textblock
7135 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
7136 msgid "The returned list is sorted."
7137 msgstr ""
7138
7139 #. type: textblock
7140 #: ../fish/guestfish-actions.pod:1222
7141 msgid "See also L</find0>."
7142 msgstr "Див. також L</find0>."
7143
7144 #. type: =head2
7145 #: ../fish/guestfish-actions.pod:1227
7146 msgid "find0"
7147 msgstr "find0"
7148
7149 #. type: verbatim
7150 #: ../fish/guestfish-actions.pod:1229
7151 #, no-wrap
7152 msgid ""
7153 " find0 directory (files|-)\n"
7154 "\n"
7155 msgstr ""
7156 " find0 каталог (файли|-)\n"
7157 "\n"
7158
7159 #. type: textblock
7160 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
7161 msgid ""
7162 "This command lists out all files and directories, recursively, starting at "
7163 "C<directory>, placing the resulting list in the external file called "
7164 "C<files>."
7165 msgstr ""
7166
7167 #. type: textblock
7168 #: ../fish/guestfish-actions.pod:1235
7169 msgid ""
7170 "This command works the same way as L</find> with the following exceptions:"
7171 msgstr ""
7172
7173 #. type: textblock
7174 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
7175 msgid "The resulting list is written to an external file."
7176 msgstr ""
7177
7178 #. type: textblock
7179 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
7180 msgid ""
7181 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7182 "L<find(1)> option I<-print0>."
7183 msgstr ""
7184
7185 #. type: textblock
7186 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
7187 msgid "This command is not limited in the number of names that it can return."
7188 msgstr ""
7189
7190 #. type: textblock
7191 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
7192 msgid "The result list is not sorted."
7193 msgstr ""
7194
7195 #. type: =head2
7196 #: ../fish/guestfish-actions.pod:1262
7197 msgid "findfs-label"
7198 msgstr "findfs-label"
7199
7200 #. type: verbatim
7201 #: ../fish/guestfish-actions.pod:1264
7202 #, no-wrap
7203 msgid ""
7204 " findfs-label label\n"
7205 "\n"
7206 msgstr ""
7207 " findfs-label мітка\n"
7208 "\n"
7209
7210 #. type: textblock
7211 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
7212 msgid ""
7213 "This command searches the filesystems and returns the one which has the "
7214 "given label.  An error is returned if no such filesystem can be found."
7215 msgstr ""
7216
7217 #. type: textblock
7218 #: ../fish/guestfish-actions.pod:1270
7219 msgid "To find the label of a filesystem, use L</vfs-label>."
7220 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7221
7222 #. type: =head2
7223 #: ../fish/guestfish-actions.pod:1272
7224 msgid "findfs-uuid"
7225 msgstr "findfs-uuid"
7226
7227 #. type: verbatim
7228 #: ../fish/guestfish-actions.pod:1274
7229 #, no-wrap
7230 msgid ""
7231 " findfs-uuid uuid\n"
7232 "\n"
7233 msgstr ""
7234 " findfs-uuid uuid\n"
7235 "\n"
7236
7237 #. type: textblock
7238 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
7239 msgid ""
7240 "This command searches the filesystems and returns the one which has the "
7241 "given UUID.  An error is returned if no such filesystem can be found."
7242 msgstr ""
7243
7244 #. type: textblock
7245 #: ../fish/guestfish-actions.pod:1280
7246 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7247 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7248
7249 #. type: =head2
7250 #: ../fish/guestfish-actions.pod:1282
7251 msgid "fsck"
7252 msgstr "fsck"
7253
7254 #. type: verbatim
7255 #: ../fish/guestfish-actions.pod:1284
7256 #, no-wrap
7257 msgid ""
7258 " fsck fstype device\n"
7259 "\n"
7260 msgstr ""
7261 " fsck тип_файлової_системи пристрій\n"
7262 "\n"
7263
7264 #. type: textblock
7265 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
7266 msgid ""
7267 "This runs the filesystem checker (fsck) on C<device> which should have "
7268 "filesystem type C<fstype>."
7269 msgstr ""
7270
7271 #. type: textblock
7272 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
7273 msgid ""
7274 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7275 "codes from C<fsck>."
7276 msgstr ""
7277
7278 #. type: textblock
7279 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
7280 msgid "Multiple status codes can be summed together."
7281 msgstr ""
7282
7283 #. type: textblock
7284 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
7285 msgid ""
7286 "A non-zero return code can mean \"success\", for example if errors have been "
7287 "corrected on the filesystem."
7288 msgstr ""
7289
7290 #. type: textblock
7291 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
7292 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7293 msgstr ""
7294
7295 #. type: textblock
7296 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
7297 msgid ""
7298 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7299 msgstr ""
7300
7301 #. type: =head2
7302 #: ../fish/guestfish-actions.pod:1314
7303 msgid "get-append"
7304 msgstr "get-append"
7305
7306 #. type: verbatim
7307 #: ../fish/guestfish-actions.pod:1316
7308 #, no-wrap
7309 msgid ""
7310 " get-append\n"
7311 "\n"
7312 msgstr ""
7313 " get-append\n"
7314 "\n"
7315
7316 #. type: textblock
7317 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
7318 msgid ""
7319 "Return the additional kernel options which are added to the guest kernel "
7320 "command line."
7321 msgstr ""
7322
7323 #. type: textblock
7324 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
7325 msgid "If C<NULL> then no options are added."
7326 msgstr ""
7327
7328 #. type: =head2
7329 #: ../fish/guestfish-actions.pod:1323
7330 msgid "get-attach-method"
7331 msgstr "get-attach-method"
7332
7333 #. type: verbatim
7334 #: ../fish/guestfish-actions.pod:1325
7335 #, no-wrap
7336 msgid ""
7337 " get-attach-method\n"
7338 "\n"
7339 msgstr ""
7340 " get-attach-method\n"
7341 "\n"
7342
7343 #. type: textblock
7344 #: ../fish/guestfish-actions.pod:1327
7345 msgid "Return the current attach method.  See L</set-attach-method>."
7346 msgstr ""
7347
7348 #. type: =head2
7349 #: ../fish/guestfish-actions.pod:1329
7350 msgid "get-autosync"
7351 msgstr "get-autosync"
7352
7353 #. type: verbatim
7354 #: ../fish/guestfish-actions.pod:1331
7355 #, no-wrap
7356 msgid ""
7357 " get-autosync\n"
7358 "\n"
7359 msgstr ""
7360 " get-autosync\n"
7361 "\n"
7362
7363 #. type: textblock
7364 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
7365 msgid "Get the autosync flag."
7366 msgstr ""
7367
7368 #. type: =head2
7369 #: ../fish/guestfish-actions.pod:1335
7370 msgid "get-direct"
7371 msgstr "get-direct"
7372
7373 #. type: verbatim
7374 #: ../fish/guestfish-actions.pod:1337
7375 #, no-wrap
7376 msgid ""
7377 " get-direct\n"
7378 "\n"
7379 msgstr ""
7380 " get-direct\n"
7381 "\n"
7382
7383 #. type: textblock
7384 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
7385 msgid "Return the direct appliance mode flag."
7386 msgstr ""
7387
7388 #. type: =head2
7389 #: ../fish/guestfish-actions.pod:1341
7390 msgid "get-e2label"
7391 msgstr "get-e2label"
7392
7393 #. type: verbatim
7394 #: ../fish/guestfish-actions.pod:1343
7395 #, no-wrap
7396 msgid ""
7397 " get-e2label device\n"
7398 "\n"
7399 msgstr ""
7400 " get-e2label пристрій\n"
7401 "\n"
7402
7403 #. type: textblock
7404 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2011
7405 msgid ""
7406 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7407 msgstr ""
7408
7409 #. type: textblock
7410 #: ../fish/guestfish-actions.pod:1348
7411 msgid ""
7412 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7413 "instead."
7414 msgstr ""
7415
7416 #. type: =head2
7417 #: ../fish/guestfish-actions.pod:1355
7418 msgid "get-e2uuid"
7419 msgstr "get-e2uuid"
7420
7421 #. type: verbatim
7422 #: ../fish/guestfish-actions.pod:1357
7423 #, no-wrap
7424 msgid ""
7425 " get-e2uuid device\n"
7426 "\n"
7427 msgstr ""
7428 " get-e2uuid пристрій\n"
7429 "\n"
7430
7431 #. type: textblock
7432 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2032
7433 msgid ""
7434 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7435 msgstr ""
7436
7437 #. type: textblock
7438 #: ../fish/guestfish-actions.pod:1362
7439 msgid ""
7440 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7441 "instead."
7442 msgstr ""
7443
7444 #. type: =head2
7445 #: ../fish/guestfish-actions.pod:1369
7446 msgid "get-memsize"
7447 msgstr "get-memsize"
7448
7449 #. type: verbatim
7450 #: ../fish/guestfish-actions.pod:1371
7451 #, no-wrap
7452 msgid ""
7453 " get-memsize\n"
7454 "\n"
7455 msgstr ""
7456 " get-memsize\n"
7457 "\n"
7458
7459 #. type: textblock
7460 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
7461 msgid ""
7462 "This gets the memory size in megabytes allocated to the qemu subprocess."
7463 msgstr ""
7464
7465 #. type: textblock
7466 #: ../fish/guestfish-actions.pod:1376
7467 msgid ""
7468 "If L</set-memsize> was not called on this handle, and if "
7469 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7470 "value for memsize."
7471 msgstr ""
7472
7473 #. type: textblock
7474 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7475 #: ../fish/guestfish-actions.pod:4168 ../fish/guestfish-actions.pod:4270
7476 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7477 #: ../src/guestfs-actions.pod:6298 ../src/guestfs-actions.pod:6424
7478 msgid ""
7479 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7480 msgstr ""
7481
7482 #. type: =head2
7483 #: ../fish/guestfish-actions.pod:1383
7484 msgid "get-network"
7485 msgstr "get-network"
7486
7487 #. type: verbatim
7488 #: ../fish/guestfish-actions.pod:1385
7489 #, no-wrap
7490 msgid ""
7491 " get-network\n"
7492 "\n"
7493 msgstr ""
7494 " get-network\n"
7495 "\n"
7496
7497 #. type: textblock
7498 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7499 msgid "This returns the enable network flag."
7500 msgstr ""
7501
7502 #. type: =head2
7503 #: ../fish/guestfish-actions.pod:1389
7504 msgid "get-path"
7505 msgstr "get-path"
7506
7507 #. type: verbatim
7508 #: ../fish/guestfish-actions.pod:1391
7509 #, no-wrap
7510 msgid ""
7511 " get-path\n"
7512 "\n"
7513 msgstr ""
7514 " get-path\n"
7515 "\n"
7516
7517 #. type: textblock
7518 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7519 msgid "Return the current search path."
7520 msgstr ""
7521
7522 #. type: textblock
7523 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7524 msgid ""
7525 "This is always non-NULL.  If it wasn't set already, then this will return "
7526 "the default path."
7527 msgstr ""
7528
7529 #. type: =head2
7530 #: ../fish/guestfish-actions.pod:1398
7531 msgid "get-pgroup"
7532 msgstr ""
7533
7534 #. type: verbatim
7535 #: ../fish/guestfish-actions.pod:1400
7536 #, no-wrap
7537 msgid ""
7538 " get-pgroup\n"
7539 "\n"
7540 msgstr ""
7541
7542 #. type: textblock
7543 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7544 msgid "This returns the process group flag."
7545 msgstr ""
7546
7547 #. type: =head2
7548 #: ../fish/guestfish-actions.pod:1404
7549 msgid "get-pid"
7550 msgstr "get-pid"
7551
7552 #. type: =head2
7553 #: ../fish/guestfish-actions.pod:1406
7554 msgid "pid"
7555 msgstr ""
7556
7557 #. type: verbatim
7558 #: ../fish/guestfish-actions.pod:1408
7559 #, no-wrap
7560 msgid ""
7561 " get-pid\n"
7562 "\n"
7563 msgstr ""
7564 " get-pid\n"
7565 "\n"
7566
7567 #. type: textblock
7568 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7569 msgid ""
7570 "Return the process ID of the qemu subprocess.  If there is no qemu "
7571 "subprocess, then this will return an error."
7572 msgstr ""
7573
7574 #. type: textblock
7575 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7576 msgid "This is an internal call used for debugging and testing."
7577 msgstr ""
7578
7579 #. type: =head2
7580 #: ../fish/guestfish-actions.pod:1415
7581 msgid "get-qemu"
7582 msgstr "get-qemu"
7583
7584 #. type: verbatim
7585 #: ../fish/guestfish-actions.pod:1417
7586 #, no-wrap
7587 msgid ""
7588 " get-qemu\n"
7589 "\n"
7590 msgstr ""
7591 " get-qemu\n"
7592 "\n"
7593
7594 #. type: textblock
7595 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7596 msgid "Return the current qemu binary."
7597 msgstr ""
7598
7599 #. type: textblock
7600 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7601 msgid ""
7602 "This is always non-NULL.  If it wasn't set already, then this will return "
7603 "the default qemu binary name."
7604 msgstr ""
7605
7606 #. type: =head2
7607 #: ../fish/guestfish-actions.pod:1424
7608 msgid "get-recovery-proc"
7609 msgstr "get-recovery-proc"
7610
7611 #. type: verbatim
7612 #: ../fish/guestfish-actions.pod:1426
7613 #, no-wrap
7614 msgid ""
7615 " get-recovery-proc\n"
7616 "\n"
7617 msgstr ""
7618 " get-recovery-proc\n"
7619 "\n"
7620
7621 #. type: textblock
7622 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7623 msgid "Return the recovery process enabled flag."
7624 msgstr ""
7625
7626 #. type: =head2
7627 #: ../fish/guestfish-actions.pod:1430
7628 msgid "get-selinux"
7629 msgstr "get-selinux"
7630
7631 #. type: verbatim
7632 #: ../fish/guestfish-actions.pod:1432
7633 #, no-wrap
7634 msgid ""
7635 " get-selinux\n"
7636 "\n"
7637 msgstr ""
7638 " get-selinux\n"
7639 "\n"
7640
7641 #. type: textblock
7642 #: ../fish/guestfish-actions.pod:1434
7643 msgid ""
7644 "This returns the current setting of the selinux flag which is passed to the "
7645 "appliance at boot time.  See L</set-selinux>."
7646 msgstr ""
7647
7648 #. type: =head2
7649 #: ../fish/guestfish-actions.pod:1440
7650 msgid "get-state"
7651 msgstr "get-state"
7652
7653 #. type: verbatim
7654 #: ../fish/guestfish-actions.pod:1442
7655 #, no-wrap
7656 msgid ""
7657 " get-state\n"
7658 "\n"
7659 msgstr ""
7660 " get-state\n"
7661 "\n"
7662
7663 #. type: textblock
7664 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7665 msgid ""
7666 "This returns the current state as an opaque integer.  This is only useful "
7667 "for printing debug and internal error messages."
7668 msgstr ""
7669
7670 #. type: textblock
7671 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2367
7672 #: ../fish/guestfish-actions.pod:2385 ../fish/guestfish-actions.pod:2423
7673 #: ../fish/guestfish-actions.pod:2439 ../src/guestfs-actions.pod:2159
7674 #: ../src/guestfs-actions.pod:3439 ../src/guestfs-actions.pod:3468
7675 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3556
7676 msgid "For more information on states, see L<guestfs(3)>."
7677 msgstr ""
7678
7679 #. type: =head2
7680 #: ../fish/guestfish-actions.pod:1449
7681 msgid "get-trace"
7682 msgstr "get-trace"
7683
7684 #. type: verbatim
7685 #: ../fish/guestfish-actions.pod:1451
7686 #, no-wrap
7687 msgid ""
7688 " get-trace\n"
7689 "\n"
7690 msgstr ""
7691 " get-trace\n"
7692 "\n"
7693
7694 #. type: textblock
7695 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7696 msgid "Return the command trace flag."
7697 msgstr ""
7698
7699 #. type: =head2
7700 #: ../fish/guestfish-actions.pod:1455
7701 msgid "get-umask"
7702 msgstr "get-umask"
7703
7704 #. type: verbatim
7705 #: ../fish/guestfish-actions.pod:1457
7706 #, no-wrap
7707 msgid ""
7708 " get-umask\n"
7709 "\n"
7710 msgstr ""
7711 " get-umask\n"
7712 "\n"
7713
7714 #. type: textblock
7715 #: ../fish/guestfish-actions.pod:1459
7716 msgid ""
7717 "Return the current umask.  By default the umask is C<022> unless it has been "
7718 "set by calling L</umask>."
7719 msgstr ""
7720
7721 #. type: =head2
7722 #: ../fish/guestfish-actions.pod:1462
7723 msgid "get-verbose"
7724 msgstr "get-verbose"
7725
7726 #. type: verbatim
7727 #: ../fish/guestfish-actions.pod:1464
7728 #, no-wrap
7729 msgid ""
7730 " get-verbose\n"
7731 "\n"
7732 msgstr ""
7733 " get-verbose\n"
7734 "\n"
7735
7736 #. type: textblock
7737 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
7738 msgid "This returns the verbose messages flag."
7739 msgstr ""
7740
7741 #. type: =head2
7742 #: ../fish/guestfish-actions.pod:1468
7743 msgid "getcon"
7744 msgstr "getcon"
7745
7746 #. type: verbatim
7747 #: ../fish/guestfish-actions.pod:1470
7748 #, no-wrap
7749 msgid ""
7750 " getcon\n"
7751 "\n"
7752 msgstr ""
7753 " getcon\n"
7754 "\n"
7755
7756 #. type: textblock
7757 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
7758 msgid "This gets the SELinux security context of the daemon."
7759 msgstr ""
7760
7761 #. type: textblock
7762 #: ../fish/guestfish-actions.pod:1474
7763 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
7764 msgstr ""
7765
7766 #. type: =head2
7767 #: ../fish/guestfish-actions.pod:1477
7768 msgid "getxattr"
7769 msgstr "getxattr"
7770
7771 #. type: verbatim
7772 #: ../fish/guestfish-actions.pod:1479
7773 #, no-wrap
7774 msgid ""
7775 " getxattr path name\n"
7776 "\n"
7777 msgstr ""
7778 " getxattr шлях назва\n"
7779 "\n"
7780
7781 #. type: textblock
7782 #: ../fish/guestfish-actions.pod:1481
7783 msgid ""
7784 "Get a single extended attribute from file C<path> named C<name>.  This call "
7785 "follows symlinks.  If you want to lookup an extended attribute for the "
7786 "symlink itself, use L</lgetxattr>."
7787 msgstr ""
7788
7789 #. type: textblock
7790 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2512
7791 msgid ""
7792 "Normally it is better to get all extended attributes from a file in one go "
7793 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
7794 "buggy and do not provide a way to list out attributes.  For these "
7795 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
7796 "attributes you want in advance and call this function."
7797 msgstr ""
7798
7799 #. type: textblock
7800 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2519
7801 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3689
7802 msgid ""
7803 "Extended attribute values are blobs of binary data.  If there is no extended "
7804 "attribute named C<name>, this returns an error."
7805 msgstr ""
7806
7807 #. type: textblock
7808 #: ../fish/guestfish-actions.pod:1495
7809 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7810 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
7811
7812 #. type: =head2
7813 #: ../fish/guestfish-actions.pod:1497
7814 msgid "getxattrs"
7815 msgstr "getxattrs"
7816
7817 #. type: verbatim
7818 #: ../fish/guestfish-actions.pod:1499
7819 #, no-wrap
7820 msgid ""
7821 " getxattrs path\n"
7822 "\n"
7823 msgstr ""
7824 " getxattrs шлях\n"
7825 "\n"
7826
7827 #. type: textblock
7828 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
7829 msgid ""
7830 "This call lists the extended attributes of the file or directory C<path>."
7831 msgstr ""
7832
7833 #. type: textblock
7834 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
7835 msgid ""
7836 "At the system call level, this is a combination of the L<listxattr(2)> and "
7837 "L<getxattr(2)> calls."
7838 msgstr ""
7839
7840 #. type: textblock
7841 #: ../fish/guestfish-actions.pod:1507
7842 msgid "See also: L</lgetxattrs>, L<attr(5)>."
7843 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
7844
7845 #. type: =head2
7846 #: ../fish/guestfish-actions.pod:1509
7847 msgid "glob-expand"
7848 msgstr "glob-expand"
7849
7850 #. type: verbatim
7851 #: ../fish/guestfish-actions.pod:1511
7852 #, no-wrap
7853 msgid ""
7854 " glob-expand pattern\n"
7855 "\n"
7856 msgstr ""
7857 " glob-expand шаблон\n"
7858 "\n"
7859
7860 #. type: textblock
7861 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
7862 msgid ""
7863 "This command searches for all the pathnames matching C<pattern> according to "
7864 "the wildcard expansion rules used by the shell."
7865 msgstr ""
7866
7867 #. type: textblock
7868 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
7869 msgid ""
7870 "If no paths match, then this returns an empty list (note: not an error)."
7871 msgstr ""
7872
7873 #. type: textblock
7874 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
7875 msgid ""
7876 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
7877 "GLOB_BRACE>.  See that manual page for more details."
7878 msgstr ""
7879
7880 #. type: =head2
7881 #: ../fish/guestfish-actions.pod:1524
7882 msgid "grep"
7883 msgstr "grep"
7884
7885 #. type: verbatim
7886 #: ../fish/guestfish-actions.pod:1526
7887 #, no-wrap
7888 msgid ""
7889 " grep regex path\n"
7890 "\n"
7891 msgstr ""
7892 " grepi формальний_вираз шлях\n"
7893 "\n"
7894
7895 #. type: textblock
7896 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
7897 msgid "This calls the external C<grep> program and returns the matching lines."
7898 msgstr ""
7899
7900 #. type: =head2
7901 #: ../fish/guestfish-actions.pod:1534
7902 msgid "grepi"
7903 msgstr "grepi"
7904
7905 #. type: verbatim
7906 #: ../fish/guestfish-actions.pod:1536
7907 #, no-wrap
7908 msgid ""
7909 " grepi regex path\n"
7910 "\n"
7911 msgstr ""
7912 " grepi формальний_вираз шлях\n"
7913 "\n"
7914
7915 #. type: textblock
7916 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
7917 msgid ""
7918 "This calls the external C<grep -i> program and returns the matching lines."
7919 msgstr ""
7920
7921 #. type: =head2
7922 #: ../fish/guestfish-actions.pod:1544
7923 msgid "grub-install"
7924 msgstr "grub-install"
7925
7926 #. type: verbatim
7927 #: ../fish/guestfish-actions.pod:1546
7928 #, no-wrap
7929 msgid ""
7930 " grub-install root device\n"
7931 "\n"
7932 msgstr ""
7933 " grub-install кореневий пристрій\n"
7934 "\n"
7935
7936 #. type: textblock
7937 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
7938 msgid ""
7939 "This command installs GRUB (the Grand Unified Bootloader) on C<device>, with "
7940 "the root directory being C<root>."
7941 msgstr ""
7942
7943 #. type: textblock
7944 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2335
7945 msgid ""
7946 "Note: If grub-install reports the error \"No suitable drive was found in the "
7947 "generated device map.\" it may be that you need to create a C</boot/grub/"
7948 "device.map> file first that contains the mapping between grub device names "
7949 "and Linux device names.  It is usually sufficient to create a file "
7950 "containing:"
7951 msgstr ""
7952
7953 #. type: verbatim
7954 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2342
7955 #, no-wrap
7956 msgid ""
7957 " (hd0) /dev/vda\n"
7958 "\n"
7959 msgstr ""
7960
7961 #. type: textblock
7962 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2344
7963 msgid "replacing C</dev/vda> with the name of the installation device."
7964 msgstr ""
7965
7966 #. type: =head2
7967 #: ../fish/guestfish-actions.pod:1562
7968 msgid "head"
7969 msgstr "head"
7970
7971 #. type: verbatim
7972 #: ../fish/guestfish-actions.pod:1564
7973 #, no-wrap
7974 msgid ""
7975 " head path\n"
7976 "\n"
7977 msgstr ""
7978 " head шлях\n"
7979 "\n"
7980
7981 #. type: textblock
7982 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2356
7983 msgid ""
7984 "This command returns up to the first 10 lines of a file as a list of strings."
7985 msgstr ""
7986
7987 #. type: =head2
7988 #: ../fish/guestfish-actions.pod:1572
7989 msgid "head-n"
7990 msgstr "head-n"
7991
7992 #. type: verbatim
7993 #: ../fish/guestfish-actions.pod:1574
7994 #, no-wrap
7995 msgid ""
7996 " head-n nrlines path\n"
7997 "\n"
7998 msgstr ""
7999
8000 #. type: textblock
8001 #: ../fish/guestfish-actions.pod:1576 ../src/guestfs-actions.pod:2375
8002 msgid ""
8003 "If the parameter C<nrlines> is a positive number, this returns the first "
8004 "C<nrlines> lines of the file C<path>."
8005 msgstr ""
8006
8007 #. type: textblock
8008 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2378
8009 msgid ""
8010 "If the parameter C<nrlines> is a negative number, this returns lines from "
8011 "the file C<path>, excluding the last C<nrlines> lines."
8012 msgstr ""
8013
8014 #. type: textblock
8015 #: ../fish/guestfish-actions.pod:1582 ../fish/guestfish-actions.pod:4648
8016 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:6996
8017 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8018 msgstr ""
8019
8020 #. type: =head2
8021 #: ../fish/guestfish-actions.pod:1587
8022 msgid "hexdump"
8023 msgstr "hexdump"
8024
8025 #. type: verbatim
8026 #: ../fish/guestfish-actions.pod:1589
8027 #, no-wrap
8028 msgid ""
8029 " hexdump path\n"
8030 "\n"
8031 msgstr ""
8032 " hexdump шлях\n"
8033 "\n"
8034
8035 #. type: textblock
8036 #: ../fish/guestfish-actions.pod:1591 ../src/guestfs-actions.pod:2398
8037 msgid ""
8038 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8039 "readable, canonical hex dump of the file."
8040 msgstr ""
8041
8042 #. type: =head2
8043 #: ../fish/guestfish-actions.pod:1597
8044 msgid "initrd-cat"
8045 msgstr "initrd-cat"
8046
8047 #. type: verbatim
8048 #: ../fish/guestfish-actions.pod:1599
8049 #, no-wrap
8050 msgid ""
8051 " initrd-cat initrdpath filename\n"
8052 "\n"
8053 msgstr ""
8054 " initrd-cat шлях_initrd назва_файла\n"
8055 "\n"
8056
8057 #. type: textblock
8058 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2417
8059 msgid ""
8060 "This command unpacks the file C<filename> from the initrd file called "
8061 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8062 "character."
8063 msgstr ""
8064
8065 #. type: textblock
8066 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2421
8067 msgid ""
8068 "For example, in guestfish you could use the following command to examine the "
8069 "boot script (usually called C</init>)  contained in a Linux initrd or "
8070 "initramfs image:"
8071 msgstr ""
8072
8073 #. type: verbatim
8074 #: ../fish/guestfish-actions.pod:1609 ../src/guestfs-actions.pod:2425
8075 #, no-wrap
8076 msgid ""
8077 " initrd-cat /boot/initrd-<version>.img init\n"
8078 "\n"
8079 msgstr ""
8080
8081 #. type: textblock
8082 #: ../fish/guestfish-actions.pod:1611
8083 msgid "See also L</initrd-list>."
8084 msgstr "Див. також L</initrd-list>."
8085
8086 #. type: =head2
8087 #: ../fish/guestfish-actions.pod:1616
8088 msgid "initrd-list"
8089 msgstr "initrd-list"
8090
8091 #. type: verbatim
8092 #: ../fish/guestfish-actions.pod:1618
8093 #, no-wrap
8094 msgid ""
8095 " initrd-list path\n"
8096 "\n"
8097 msgstr ""
8098 " initrd-list шлях\n"
8099 "\n"
8100
8101 #. type: textblock
8102 #: ../fish/guestfish-actions.pod:1620 ../src/guestfs-actions.pod:2444
8103 msgid "This command lists out files contained in an initrd."
8104 msgstr ""
8105
8106 #. type: textblock
8107 #: ../fish/guestfish-actions.pod:1622 ../src/guestfs-actions.pod:2446
8108 msgid ""
8109 "The files are listed without any initial C</> character.  The files are "
8110 "listed in the order they appear (not necessarily alphabetical).  Directory "
8111 "names are listed as separate items."
8112 msgstr ""
8113
8114 #. type: textblock
8115 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2450
8116 msgid ""
8117 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8118 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8119 "files)."
8120 msgstr ""
8121
8122 #. type: =head2
8123 #: ../fish/guestfish-actions.pod:1630
8124 msgid "inotify-add-watch"
8125 msgstr "inotify-add-watch"
8126
8127 #. type: verbatim
8128 #: ../fish/guestfish-actions.pod:1632
8129 #, no-wrap
8130 msgid ""
8131 " inotify-add-watch path mask\n"
8132 "\n"
8133 msgstr ""
8134 " inotify-add-watch шлях маска\n"
8135 "\n"
8136
8137 #. type: textblock
8138 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2467
8139 msgid "Watch C<path> for the events listed in C<mask>."
8140 msgstr ""
8141
8142 #. type: textblock
8143 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2469
8144 msgid ""
8145 "Note that if C<path> is a directory then events within that directory are "
8146 "watched, but this does I<not> happen recursively (in subdirectories)."
8147 msgstr ""
8148
8149 #. type: textblock
8150 #: ../fish/guestfish-actions.pod:1640 ../src/guestfs-actions.pod:2473
8151 msgid ""
8152 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8153 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8154 msgstr ""
8155
8156 #. type: =head2
8157 #: ../fish/guestfish-actions.pod:1644
8158 msgid "inotify-close"
8159 msgstr "inotify-close"
8160
8161 #. type: verbatim
8162 #: ../fish/guestfish-actions.pod:1646
8163 #, no-wrap
8164 msgid ""
8165 " inotify-close\n"
8166 "\n"
8167 msgstr ""
8168 " inotify-close\n"
8169 "\n"
8170
8171 #. type: textblock
8172 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2486
8173 msgid ""
8174 "This closes the inotify handle which was previously opened by inotify_init.  "
8175 "It removes all watches, throws away any pending events, and deallocates all "
8176 "resources."
8177 msgstr ""
8178
8179 #. type: =head2
8180 #: ../fish/guestfish-actions.pod:1652
8181 msgid "inotify-files"
8182 msgstr "inotify-files"
8183
8184 #. type: verbatim
8185 #: ../fish/guestfish-actions.pod:1654
8186 #, no-wrap
8187 msgid ""
8188 " inotify-files\n"
8189 "\n"
8190 msgstr ""
8191 " inotify-files\n"
8192 "\n"
8193
8194 #. type: textblock
8195 #: ../fish/guestfish-actions.pod:1656
8196 msgid ""
8197 "This function is a helpful wrapper around L</inotify-read> which just "
8198 "returns a list of pathnames of objects that were touched.  The returned "
8199 "pathnames are sorted and deduplicated."
8200 msgstr ""
8201
8202 #. type: =head2
8203 #: ../fish/guestfish-actions.pod:1660
8204 msgid "inotify-init"
8205 msgstr "inotify-init"
8206
8207 #. type: verbatim
8208 #: ../fish/guestfish-actions.pod:1662
8209 #, no-wrap
8210 msgid ""
8211 " inotify-init maxevents\n"
8212 "\n"
8213 msgstr ""
8214
8215 #. type: textblock
8216 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2515
8217 msgid ""
8218 "This command creates a new inotify handle.  The inotify subsystem can be "
8219 "used to notify events which happen to objects in the guest filesystem."
8220 msgstr ""
8221
8222 #. type: textblock
8223 #: ../fish/guestfish-actions.pod:1668
8224 msgid ""
8225 "C<maxevents> is the maximum number of events which will be queued up between "
8226 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8227 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8228 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8229 "but records the fact that it threw them away by setting a flag "
8230 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8231 msgstr ""
8232
8233 #. type: textblock
8234 #: ../fish/guestfish-actions.pod:1678
8235 msgid ""
8236 "Before any events are generated, you have to add some watches to the "
8237 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8238 "L</inotify-watch-all>."
8239 msgstr ""
8240
8241 #. type: textblock
8242 #: ../fish/guestfish-actions.pod:1684
8243 msgid ""
8244 "Queued up events should be read periodically by calling L</inotify-read> (or "
8245 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8246 "If you don't read the events out often enough then you risk the internal "
8247 "queue overflowing."
8248 msgstr ""
8249
8250 #. type: textblock
8251 #: ../fish/guestfish-actions.pod:1691
8252 msgid ""
8253 "The handle should be closed after use by calling L</inotify-close>.  This "
8254 "also removes any watches automatically."
8255 msgstr ""
8256
8257 #. type: textblock
8258 #: ../fish/guestfish-actions.pod:1695 ../src/guestfs-actions.pod:2546
8259 msgid ""
8260 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8261 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8262 "that there is one global inotify handle per libguestfs instance."
8263 msgstr ""
8264
8265 #. type: =head2
8266 #: ../fish/guestfish-actions.pod:1700
8267 msgid "inotify-read"
8268 msgstr "inotify-read"
8269
8270 #. type: verbatim
8271 #: ../fish/guestfish-actions.pod:1702
8272 #, no-wrap
8273 msgid ""
8274 " inotify-read\n"
8275 "\n"
8276 msgstr ""
8277 " inotify-read\n"
8278 "\n"
8279
8280 #. type: textblock
8281 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2560
8282 msgid ""
8283 "Return the complete queue of events that have happened since the previous "
8284 "read call."
8285 msgstr ""
8286
8287 #. type: textblock
8288 #: ../fish/guestfish-actions.pod:1707 ../src/guestfs-actions.pod:2563
8289 msgid "If no events have happened, this returns an empty list."
8290 msgstr ""
8291
8292 #. type: textblock
8293 #: ../fish/guestfish-actions.pod:1709 ../src/guestfs-actions.pod:2565
8294 msgid ""
8295 "I<Note>: In order to make sure that all events have been read, you must call "
8296 "this function repeatedly until it returns an empty list.  The reason is that "
8297 "the call will read events up to the maximum appliance-to-host message size "
8298 "and leave remaining events in the queue."
8299 msgstr ""
8300
8301 #. type: =head2
8302 #: ../fish/guestfish-actions.pod:1715
8303 msgid "inotify-rm-watch"
8304 msgstr "inotify-rm-watch"
8305
8306 #. type: verbatim
8307 #: ../fish/guestfish-actions.pod:1717
8308 #, no-wrap
8309 msgid ""
8310 " inotify-rm-watch wd\n"
8311 "\n"
8312 msgstr ""
8313
8314 #. type: textblock
8315 #: ../fish/guestfish-actions.pod:1719
8316 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8317 msgstr ""
8318
8319 #. type: =head2
8320 #: ../fish/guestfish-actions.pod:1722
8321 msgid "inspect-get-arch"
8322 msgstr "inspect-get-arch"
8323
8324 #. type: verbatim
8325 #: ../fish/guestfish-actions.pod:1724
8326 #, no-wrap
8327 msgid ""
8328 " inspect-get-arch root\n"
8329 "\n"
8330 msgstr ""
8331 " inspect-get-arch корінь\n"
8332 "\n"
8333
8334 #. type: textblock
8335 #: ../fish/guestfish-actions.pod:1726
8336 msgid ""
8337 "This returns the architecture of the inspected operating system.  The "
8338 "possible return values are listed under L</file-architecture>."
8339 msgstr ""
8340
8341 #. type: textblock
8342 #: ../fish/guestfish-actions.pod:1730 ../src/guestfs-actions.pod:2600
8343 msgid ""
8344 "If the architecture could not be determined, then the string C<unknown> is "
8345 "returned."
8346 msgstr ""
8347
8348 #. type: textblock
8349 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:1816
8350 #: ../fish/guestfish-actions.pod:1895 ../fish/guestfish-actions.pod:1907
8351 #: ../fish/guestfish-actions.pod:1991 ../fish/guestfish-actions.pod:2052
8352 #: ../fish/guestfish-actions.pod:2073 ../fish/guestfish-actions.pod:2087
8353 #: ../fish/guestfish-actions.pod:2127 ../fish/guestfish-actions.pod:2159
8354 #: ../fish/guestfish-actions.pod:2172 ../fish/guestfish-actions.pod:2185
8355 #: ../fish/guestfish-actions.pod:2195 ../fish/guestfish-actions.pod:2205
8356 #: ../fish/guestfish-actions.pod:2217 ../fish/guestfish-actions.pod:2313
8357 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:2603
8358 #: ../src/guestfs-actions.pod:2693 ../src/guestfs-actions.pod:2797
8359 #: ../src/guestfs-actions.pod:2816 ../src/guestfs-actions.pod:2947
8360 #: ../src/guestfs-actions.pod:3030 ../src/guestfs-actions.pod:3058
8361 #: ../src/guestfs-actions.pod:3079 ../src/guestfs-actions.pod:3132
8362 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3192
8363 #: ../src/guestfs-actions.pod:3212 ../src/guestfs-actions.pod:3229
8364 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3263
8365 #: ../src/guestfs-actions.pod:3365 ../src/guestfs-actions.pod:3406
8366 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8367 msgstr ""
8368
8369 #. type: =head2
8370 #: ../fish/guestfish-actions.pod:1735
8371 msgid "inspect-get-distro"
8372 msgstr "inspect-get-distro"
8373
8374 #. type: verbatim
8375 #: ../fish/guestfish-actions.pod:1737
8376 #, no-wrap
8377 msgid ""
8378 " inspect-get-distro root\n"
8379 "\n"
8380 msgstr ""
8381 " inspect-get-distro корінь\n"
8382 "\n"
8383
8384 #. type: textblock
8385 #: ../fish/guestfish-actions.pod:1739 ../src/guestfs-actions.pod:2616
8386 msgid ""
8387 "This returns the distro (distribution) of the inspected operating system."
8388 msgstr ""
8389
8390 #. type: textblock
8391 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2619
8392 msgid "Currently defined distros are:"
8393 msgstr ""
8394
8395 #. type: =item
8396 #: ../fish/guestfish-actions.pod:1746 ../src/guestfs-actions.pod:2623
8397 msgid "\"archlinux\""
8398 msgstr "\"archlinux\""
8399
8400 #. type: textblock
8401 #: ../fish/guestfish-actions.pod:1748 ../src/guestfs-actions.pod:2625
8402 msgid "Arch Linux."
8403 msgstr "Arch Linux."
8404
8405 #. type: =item
8406 #: ../fish/guestfish-actions.pod:1750 ../src/guestfs-actions.pod:2627
8407 msgid "\"centos\""
8408 msgstr ""
8409
8410 #. type: textblock
8411 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2629
8412 msgid "CentOS."
8413 msgstr ""
8414
8415 #. type: =item
8416 #: ../fish/guestfish-actions.pod:1754 ../src/guestfs-actions.pod:2631
8417 msgid "\"debian\""
8418 msgstr "\"debian\""
8419
8420 #. type: textblock
8421 #: ../fish/guestfish-actions.pod:1756 ../src/guestfs-actions.pod:2633
8422 msgid "Debian."
8423 msgstr "Debian."
8424
8425 #. type: =item
8426 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2635
8427 msgid "\"fedora\""
8428 msgstr "\"fedora\""
8429
8430 #. type: textblock
8431 #: ../fish/guestfish-actions.pod:1760 ../src/guestfs-actions.pod:2637
8432 msgid "Fedora."
8433 msgstr "Fedora."
8434
8435 #. type: =item
8436 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2639
8437 msgid "\"gentoo\""
8438 msgstr "\"gentoo\""
8439
8440 #. type: textblock
8441 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
8442 msgid "Gentoo."
8443 msgstr "Gentoo."
8444
8445 #. type: =item
8446 #: ../fish/guestfish-actions.pod:1766 ../src/guestfs-actions.pod:2643
8447 msgid "\"linuxmint\""
8448 msgstr "\"linuxmint\""
8449
8450 #. type: textblock
8451 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
8452 msgid "Linux Mint."
8453 msgstr "Linux Mint."
8454
8455 #. type: =item
8456 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
8457 msgid "\"mandriva\""
8458 msgstr "\"mandriva\""
8459
8460 #. type: textblock
8461 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
8462 msgid "Mandriva."
8463 msgstr "Mandriva."
8464
8465 #. type: =item
8466 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
8467 msgid "\"meego\""
8468 msgstr "\"meego\""
8469
8470 #. type: textblock
8471 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
8472 msgid "MeeGo."
8473 msgstr "MeeGo."
8474
8475 #. type: =item
8476 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
8477 msgid "\"pardus\""
8478 msgstr "\"pardus\""
8479
8480 #. type: textblock
8481 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
8482 msgid "Pardus."
8483 msgstr "Pardus."
8484
8485 #. type: =item
8486 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
8487 msgid "\"redhat-based\""
8488 msgstr "\"redhat-based\""
8489
8490 #. type: textblock
8491 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
8492 msgid "Some Red Hat-derived distro."
8493 msgstr "Дистрибутив, що походить від Red Hat."
8494
8495 #. type: =item
8496 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
8497 msgid "\"rhel\""
8498 msgstr "\"rhel\""
8499
8500 #. type: textblock
8501 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
8502 msgid "Red Hat Enterprise Linux."
8503 msgstr ""
8504
8505 #. type: =item
8506 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
8507 msgid "\"scientificlinux\""
8508 msgstr ""
8509
8510 #. type: textblock
8511 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
8512 msgid "Scientific Linux."
8513 msgstr ""
8514
8515 #. type: =item
8516 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
8517 msgid "\"slackware\""
8518 msgstr ""
8519
8520 #. type: textblock
8521 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
8522 msgid "Slackware."
8523 msgstr ""
8524
8525 #. type: =item
8526 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
8527 msgid "\"ubuntu\""
8528 msgstr "\"ubuntu\""
8529
8530 #. type: textblock
8531 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
8532 msgid "Ubuntu."
8533 msgstr "Ubuntu."
8534
8535 #. type: =item
8536 #: ../fish/guestfish-actions.pod:1802 ../fish/guestfish-actions.pod:1886
8537 #: ../fish/guestfish-actions.pod:2150 ../src/guestfs-actions.pod:2679
8538 #: ../src/guestfs-actions.pod:2788 ../src/guestfs-actions.pod:3163
8539 msgid "\"unknown\""
8540 msgstr "\"unknown\""
8541
8542 #. type: textblock
8543 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8544 msgid "The distro could not be determined."
8545 msgstr "Дистрибутив, тип якого не вдалося визначити."
8546
8547 #. type: =item
8548 #: ../fish/guestfish-actions.pod:1806 ../fish/guestfish-actions.pod:2142
8549 #: ../src/guestfs-actions.pod:2683 ../src/guestfs-actions.pod:3155
8550 msgid "\"windows\""
8551 msgstr "\"windows\""
8552
8553 #. type: textblock
8554 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8555 msgid ""
8556 "Windows does not have distributions.  This string is returned if the OS type "
8557 "is Windows."
8558 msgstr ""
8559
8560 #. type: textblock
8561 #: ../fish/guestfish-actions.pod:1813 ../fish/guestfish-actions.pod:1892
8562 #: ../fish/guestfish-actions.pod:2156 ../src/guestfs-actions.pod:2690
8563 #: ../src/guestfs-actions.pod:2794 ../src/guestfs-actions.pod:3169
8564 msgid ""
8565 "Future versions of libguestfs may return other strings here.  The caller "
8566 "should be prepared to handle any string."
8567 msgstr ""
8568
8569 #. type: =head2
8570 #: ../fish/guestfish-actions.pod:1818
8571 msgid "inspect-get-drive-mappings"
8572 msgstr ""
8573
8574 #. type: verbatim
8575 #: ../fish/guestfish-actions.pod:1820
8576 #, no-wrap
8577 msgid ""
8578 " inspect-get-drive-mappings root\n"
8579 "\n"
8580 msgstr ""
8581
8582 #. type: textblock
8583 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2706
8584 msgid ""
8585 "This call is useful for Windows which uses a primitive system of assigning "
8586 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8587 "Windows Registry to find out how disks/partitions are mapped to drive "
8588 "letters, and returns a hash table as in the example below:"
8589 msgstr ""
8590
8591 #. type: verbatim
8592 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2712
8593 #, no-wrap
8594 msgid ""
8595 " C      =>     /dev/vda2\n"
8596 " E      =>     /dev/vdb1\n"
8597 " F      =>     /dev/vdc1\n"
8598 "\n"
8599 msgstr ""
8600
8601 #. type: textblock
8602 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2716
8603 msgid ""
8604 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8605 "and just contains the drive letter, without the customary colon separator "
8606 "character."
8607 msgstr ""
8608
8609 #. type: textblock
8610 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2720
8611 msgid ""
8612 "In future we may support other operating systems that also used drive "
8613 "letters, but the keys for those might not be case insensitive and might be "
8614 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8615 "C<h1> etc."
8616 msgstr ""
8617
8618 #. type: textblock
8619 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2725
8620 msgid ""
8621 "For Windows guests, currently only hard drive mappings are returned.  "
8622 "Removable disks (eg. DVD-ROMs) are ignored."
8623 msgstr ""
8624
8625 #. type: textblock
8626 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2728
8627 msgid ""
8628 "For guests that do not use drive mappings, or if the drive mappings could "
8629 "not be determined, this returns an empty hash table."
8630 msgstr ""
8631
8632 #. type: textblock
8633 #: ../fish/guestfish-actions.pod:1847
8634 msgid ""
8635 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8636 "get-mountpoints>, L</inspect-get-filesystems>."
8637 msgstr ""
8638
8639 #. type: =head2
8640 #: ../fish/guestfish-actions.pod:1851
8641 msgid "inspect-get-filesystems"
8642 msgstr "inspect-get-filesystems"
8643
8644 #. type: verbatim
8645 #: ../fish/guestfish-actions.pod:1853
8646 #, no-wrap
8647 msgid ""
8648 " inspect-get-filesystems root\n"
8649 "\n"
8650 msgstr ""
8651 " inspect-get-filesystems корінь\n"
8652 "\n"
8653
8654 #. type: textblock
8655 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2749
8656 msgid ""
8657 "This returns a list of all the filesystems that we think are associated with "
8658 "this operating system.  This includes the root filesystem, other ordinary "
8659 "filesystems, and non-mounted devices like swap partitions."
8660 msgstr ""
8661
8662 #. type: textblock
8663 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2754
8664 msgid ""
8665 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8666 "to be shared between operating systems."
8667 msgstr ""
8668
8669 #. type: textblock
8670 #: ../fish/guestfish-actions.pod:1863
8671 msgid ""
8672 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8673 "get-mountpoints>."
8674 msgstr ""
8675
8676 #. type: =head2
8677 #: ../fish/guestfish-actions.pod:1866
8678 msgid "inspect-get-format"
8679 msgstr "inspect-get-format"
8680
8681 #. type: verbatim
8682 #: ../fish/guestfish-actions.pod:1868
8683 #, no-wrap
8684 msgid ""
8685 " inspect-get-format root\n"
8686 "\n"
8687 msgstr ""
8688 " inspect-get-format корінь\n"
8689 "\n"
8690
8691 #. type: textblock
8692 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2772
8693 msgid ""
8694 "This returns the format of the inspected operating system.  You can use it "
8695 "to detect install images, live CDs and similar."
8696 msgstr ""
8697
8698 #. type: textblock
8699 #: ../fish/guestfish-actions.pod:1873 ../src/guestfs-actions.pod:2775
8700 msgid "Currently defined formats are:"
8701 msgstr ""
8702
8703 #. type: =item
8704 #: ../fish/guestfish-actions.pod:1877 ../src/guestfs-actions.pod:2779
8705 msgid "\"installed\""
8706 msgstr "\"installed\""
8707
8708 #. type: textblock
8709 #: ../fish/guestfish-actions.pod:1879 ../src/guestfs-actions.pod:2781
8710 msgid "This is an installed operating system."
8711 msgstr "Це встановлена операційна система."
8712
8713 #. type: =item
8714 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2783
8715 msgid "\"installer\""
8716 msgstr ""
8717
8718 #. type: textblock
8719 #: ../fish/guestfish-actions.pod:1883 ../src/guestfs-actions.pod:2785
8720 msgid ""
8721 "The disk image being inspected is not an installed operating system, but a "
8722 "I<bootable> install disk, live CD, or similar."
8723 msgstr ""
8724
8725 #. type: textblock
8726 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2790
8727 msgid "The format of this disk image is not known."
8728 msgstr ""
8729
8730 #. type: =head2
8731 #: ../fish/guestfish-actions.pod:1897
8732 msgid "inspect-get-hostname"
8733 msgstr "inspect-get-hostname"
8734
8735 #. type: verbatim
8736 #: ../fish/guestfish-actions.pod:1899
8737 #, no-wrap
8738 msgid ""
8739 " inspect-get-hostname root\n"
8740 "\n"
8741 msgstr ""
8742 " inspect-get-hostname корінь\n"
8743 "\n"
8744
8745 #. type: textblock
8746 #: ../fish/guestfish-actions.pod:1901 ../src/guestfs-actions.pod:2810
8747 msgid ""
8748 "This function returns the hostname of the operating system as found by "
8749 "inspection of the guest's configuration files."
8750 msgstr ""
8751
8752 #. type: textblock
8753 #: ../fish/guestfish-actions.pod:1904 ../src/guestfs-actions.pod:2813
8754 msgid ""
8755 "If the hostname could not be determined, then the string C<unknown> is "
8756 "returned."
8757 msgstr ""
8758
8759 #. type: =head2
8760 #: ../fish/guestfish-actions.pod:1909
8761 msgid "inspect-get-icon"
8762 msgstr ""
8763
8764 #. type: verbatim
8765 #: ../fish/guestfish-actions.pod:1911
8766 #, no-wrap
8767 msgid ""
8768 " inspect-get-icon root [favicon:..] [highquality:..]\n"
8769 "\n"
8770 msgstr ""
8771
8772 #. type: textblock
8773 #: ../fish/guestfish-actions.pod:1913 ../src/guestfs-actions.pod:2839
8774 msgid ""
8775 "This function returns an icon corresponding to the inspected operating "
8776 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
8777 "to PNG if necessary)."
8778 msgstr ""
8779
8780 #. type: textblock
8781 #: ../fish/guestfish-actions.pod:1917 ../src/guestfs-actions.pod:2843
8782 msgid ""
8783 "If it was not possible to get an icon this function returns a zero-length "
8784 "(non-NULL) buffer.  I<Callers must check for this case>."
8785 msgstr ""
8786
8787 #. type: textblock
8788 #: ../fish/guestfish-actions.pod:1920 ../src/guestfs-actions.pod:2846
8789 msgid ""
8790 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
8791 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
8792 "this file will be returned.  You can disable favicons by passing the "
8793 "optional C<favicon> boolean as false (default is true)."
8794 msgstr ""
8795
8796 #. type: textblock
8797 #: ../fish/guestfish-actions.pod:1926 ../src/guestfs-actions.pod:2852
8798 msgid ""
8799 "If finding the favicon fails, then we look in other places in the guest for "
8800 "a suitable icon."
8801 msgstr ""
8802
8803 #. type: textblock
8804 #: ../fish/guestfish-actions.pod:1929 ../src/guestfs-actions.pod:2855
8805 msgid ""
8806 "If the optional C<highquality> boolean is true then only high quality icons "
8807 "are returned, which means only icons of high resolution with an alpha "
8808 "channel.  The default (false) is to return any icon we can, even if it is of "
8809 "substandard quality."
8810 msgstr ""
8811
8812 #. type: textblock
8813 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2866
8814 msgid ""
8815 "Unlike most other inspection API calls, the guest's disks must be mounted up "
8816 "before you call this, since it needs to read information from the guest "
8817 "filesystem during the call."
8818 msgstr ""
8819
8820 #. type: textblock
8821 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2872
8822 msgid ""
8823 "B<Security:> The icon data comes from the untrusted guest, and should be "
8824 "treated with caution.  PNG files have been known to contain exploits.  "
8825 "Ensure that libpng (or other relevant libraries) are fully up to date before "
8826 "trying to process or display the icon."
8827 msgstr ""
8828
8829 #. type: textblock
8830 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:2880
8831 msgid ""
8832 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
8833 "tries to return the largest, highest quality icon available.  The "
8834 "application must scale the icon to the required size."
8835 msgstr ""
8836
8837 #. type: textblock
8838 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2887
8839 msgid ""
8840 "Extracting icons from Windows guests requires the external C<wrestool> "
8841 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
8842 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
8843 "installed separately."
8844 msgstr ""
8845
8846 #. type: textblock
8847 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2894
8848 msgid ""
8849 "Operating system icons are usually trademarks.  Seek legal advice before "
8850 "using trademarks in applications."
8851 msgstr ""
8852
8853 #. type: =head2
8854 #: ../fish/guestfish-actions.pod:1975
8855 msgid "inspect-get-major-version"
8856 msgstr "inspect-get-major-version"
8857
8858 #. type: verbatim
8859 #: ../fish/guestfish-actions.pod:1977
8860 #, no-wrap
8861 msgid ""
8862 " inspect-get-major-version root\n"
8863 "\n"
8864 msgstr ""
8865 " inspect-get-major-version корінь\n"
8866 "\n"
8867
8868 #. type: textblock
8869 #: ../fish/guestfish-actions.pod:1979 ../src/guestfs-actions.pod:2935
8870 msgid ""
8871 "This returns the major version number of the inspected operating system."
8872 msgstr ""
8873
8874 #. type: textblock
8875 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:2938
8876 msgid ""
8877 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
8878 "popular public names used by the operating system.  Notably the operating "
8879 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
8880 "1).  You can find out the real versions corresponding to releases of Windows "
8881 "by consulting Wikipedia or MSDN."
8882 msgstr ""
8883
8884 #. type: textblock
8885 #: ../fish/guestfish-actions.pod:1989 ../fish/guestfish-actions.pod:2000
8886 #: ../src/guestfs-actions.pod:2945 ../src/guestfs-actions.pod:2962
8887 msgid "If the version could not be determined, then C<0> is returned."
8888 msgstr ""
8889
8890 #. type: =head2
8891 #: ../fish/guestfish-actions.pod:1993
8892 msgid "inspect-get-minor-version"
8893 msgstr "inspect-get-minor-version"
8894
8895 #. type: verbatim
8896 #: ../fish/guestfish-actions.pod:1995
8897 #, no-wrap
8898 msgid ""
8899 " inspect-get-minor-version root\n"
8900 "\n"
8901 msgstr ""
8902 " inspect-get-minor-version корінь\n"
8903 "\n"
8904
8905 #. type: textblock
8906 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:2959
8907 msgid ""
8908 "This returns the minor version number of the inspected operating system."
8909 msgstr ""
8910
8911 #. type: textblock
8912 #: ../fish/guestfish-actions.pod:2002
8913 msgid ""
8914 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8915 "get-major-version>."
8916 msgstr ""
8917
8918 #. type: =head2
8919 #: ../fish/guestfish-actions.pod:2005
8920 msgid "inspect-get-mountpoints"
8921 msgstr "inspect-get-mountpoints"
8922
8923 #. type: verbatim
8924 #: ../fish/guestfish-actions.pod:2007
8925 #, no-wrap
8926 msgid ""
8927 " inspect-get-mountpoints root\n"
8928 "\n"
8929 msgstr ""
8930 " inspect-get-mountpoints корінь\n"
8931 "\n"
8932
8933 #. type: textblock
8934 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:2977
8935 msgid ""
8936 "This returns a hash of where we think the filesystems associated with this "
8937 "operating system should be mounted.  Callers should note that this is at "
8938 "best an educated guess made by reading configuration files such as C</etc/"
8939 "fstab>.  I<In particular note> that this may return filesystems which are "
8940 "non-existent or not mountable and callers should be prepared to handle or "
8941 "ignore failures if they try to mount them."
8942 msgstr ""
8943
8944 #. type: textblock
8945 #: ../fish/guestfish-actions.pod:2018 ../src/guestfs-actions.pod:2986
8946 msgid ""
8947 "Each element in the returned hashtable has a key which is the path of the "
8948 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
8949 "mounted there (eg. C</dev/sda1>)."
8950 msgstr ""
8951
8952 #. type: textblock
8953 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:2991
8954 msgid ""
8955 "Non-mounted devices such as swap devices are I<not> returned in this list."
8956 msgstr ""
8957
8958 #. type: textblock
8959 #: ../fish/guestfish-actions.pod:2026
8960 msgid ""
8961 "For operating systems like Windows which still use drive letters, this call "
8962 "will only return an entry for the first drive \"mounted on\" C</>.  For "
8963 "information about the mapping of drive letters to partitions, see L</inspect-"
8964 "get-drive-mappings>."
8965 msgstr ""
8966
8967 #. type: textblock
8968 #: ../fish/guestfish-actions.pod:2032
8969 msgid ""
8970 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8971 "get-filesystems>."
8972 msgstr ""
8973
8974 #. type: =head2
8975 #: ../fish/guestfish-actions.pod:2035
8976 msgid "inspect-get-package-format"
8977 msgstr "inspect-get-package-format"
8978
8979 #. type: verbatim
8980 #: ../fish/guestfish-actions.pod:2037
8981 #, no-wrap
8982 msgid ""
8983 " inspect-get-package-format root\n"
8984 "\n"
8985 msgstr ""
8986 " inspect-get-package-format корінь\n"
8987 "\n"
8988
8989 #. type: textblock
8990 #: ../fish/guestfish-actions.pod:2039
8991 msgid ""
8992 "This function and L</inspect-get-package-management> return the package "
8993 "format and package management tool used by the inspected operating system.  "
8994 "For example for Fedora these functions would return C<rpm> (package format) "
8995 "and C<yum> (package management)."
8996 msgstr ""
8997
8998 #. type: textblock
8999 #: ../fish/guestfish-actions.pod:2045 ../src/guestfs-actions.pod:3023
9000 msgid ""
9001 "This returns the string C<unknown> if we could not determine the package "
9002 "format I<or> if the operating system does not have a real packaging system "
9003 "(eg. Windows)."
9004 msgstr ""
9005
9006 #. type: textblock
9007 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3027
9008 msgid ""
9009 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9010 "Future versions of libguestfs may return other strings."
9011 msgstr ""
9012
9013 #. type: =head2
9014 #: ../fish/guestfish-actions.pod:2054
9015 msgid "inspect-get-package-management"
9016 msgstr "inspect-get-package-management"
9017
9018 #. type: verbatim
9019 #: ../fish/guestfish-actions.pod:2056
9020 #, no-wrap
9021 msgid ""
9022 " inspect-get-package-management root\n"
9023 "\n"
9024 msgstr ""
9025 " inspect-get-package-management корінь\n"
9026 "\n"
9027
9028 #. type: textblock
9029 #: ../fish/guestfish-actions.pod:2058
9030 msgid ""
9031 "L</inspect-get-package-format> and this function return the package format "
9032 "and package management tool used by the inspected operating system.  For "
9033 "example for Fedora these functions would return C<rpm> (package format) and "
9034 "C<yum> (package management)."
9035 msgstr ""
9036
9037 #. type: textblock
9038 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3049
9039 msgid ""
9040 "This returns the string C<unknown> if we could not determine the package "
9041 "management tool I<or> if the operating system does not have a real packaging "
9042 "system (eg. Windows)."
9043 msgstr ""
9044
9045 #. type: textblock
9046 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3053
9047 msgid ""
9048 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9049 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9050 "libguestfs may return other strings."
9051 msgstr ""
9052
9053 #. type: =head2
9054 #: ../fish/guestfish-actions.pod:2075
9055 msgid "inspect-get-product-name"
9056 msgstr "inspect-get-product-name"
9057
9058 #. type: verbatim
9059 #: ../fish/guestfish-actions.pod:2077
9060 #, no-wrap
9061 msgid ""
9062 " inspect-get-product-name root\n"
9063 "\n"
9064 msgstr ""
9065 " inspect-get-product-name корінь\n"
9066 "\n"
9067
9068 #. type: textblock
9069 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3071
9070 msgid ""
9071 "This returns the product name of the inspected operating system.  The "
9072 "product name is generally some freeform string which can be displayed to the "
9073 "user, but should not be parsed by programs."
9074 msgstr ""
9075
9076 #. type: textblock
9077 #: ../fish/guestfish-actions.pod:2084 ../src/guestfs-actions.pod:3076
9078 msgid ""
9079 "If the product name could not be determined, then the string C<unknown> is "
9080 "returned."
9081 msgstr ""
9082
9083 #. type: =head2
9084 #: ../fish/guestfish-actions.pod:2089
9085 msgid "inspect-get-product-variant"
9086 msgstr ""
9087
9088 #. type: verbatim
9089 #: ../fish/guestfish-actions.pod:2091
9090 #, no-wrap
9091 msgid ""
9092 " inspect-get-product-variant root\n"
9093 "\n"
9094 msgstr ""
9095
9096 #. type: textblock
9097 #: ../fish/guestfish-actions.pod:2093 ../src/guestfs-actions.pod:3092
9098 msgid "This returns the product variant of the inspected operating system."
9099 msgstr ""
9100
9101 #. type: textblock
9102 #: ../fish/guestfish-actions.pod:2096 ../src/guestfs-actions.pod:3095
9103 msgid ""
9104 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9105 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9106 "is usually a string such as C<Client> or C<Server> (other values are "
9107 "possible).  This can be used to distinguish consumer and enterprise versions "
9108 "of Windows that have the same version number (for example, Windows 7 and "
9109 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9110 "the latter is C<Server>)."
9111 msgstr ""
9112
9113 #. type: textblock
9114 #: ../fish/guestfish-actions.pod:2105 ../src/guestfs-actions.pod:3104
9115 msgid ""
9116 "For enterprise Linux guests, in future we intend this to return the product "
9117 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9118 "implemented at present."
9119 msgstr ""
9120
9121 #. type: textblock
9122 #: ../fish/guestfish-actions.pod:2109 ../src/guestfs-actions.pod:3108
9123 msgid ""
9124 "If the product variant could not be determined, then the string C<unknown> "
9125 "is returned."
9126 msgstr ""
9127
9128 #. type: textblock
9129 #: ../fish/guestfish-actions.pod:2112
9130 msgid ""
9131 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9132 "get-product-name>, L</inspect-get-major-version>."
9133 msgstr ""
9134
9135 #. type: =head2
9136 #: ../fish/guestfish-actions.pod:2116
9137 msgid "inspect-get-roots"
9138 msgstr "inspect-get-roots"
9139
9140 #. type: verbatim
9141 #: ../fish/guestfish-actions.pod:2118
9142 #, no-wrap
9143 msgid ""
9144 " inspect-get-roots\n"
9145 "\n"
9146 msgstr ""
9147 " inspect-get-roots\n"
9148 "\n"
9149
9150 #. type: textblock
9151 #: ../fish/guestfish-actions.pod:2120
9152 msgid ""
9153 "This function is a convenient way to get the list of root devices, as "
9154 "returned from a previous call to L</inspect-os>, but without redoing the "
9155 "whole inspection process."
9156 msgstr ""
9157
9158 #. type: textblock
9159 #: ../fish/guestfish-actions.pod:2124
9160 msgid ""
9161 "This returns an empty list if either no root devices were found or the "
9162 "caller has not called L</inspect-os>."
9163 msgstr ""
9164
9165 #. type: =head2
9166 #: ../fish/guestfish-actions.pod:2129
9167 msgid "inspect-get-type"
9168 msgstr "inspect-get-type"
9169
9170 #. type: verbatim
9171 #: ../fish/guestfish-actions.pod:2131
9172 #, no-wrap
9173 msgid ""
9174 " inspect-get-type root\n"
9175 "\n"
9176 msgstr ""
9177 " inspect-get-type корінь\n"
9178 "\n"
9179
9180 #. type: textblock
9181 #: ../fish/guestfish-actions.pod:2133 ../src/guestfs-actions.pod:3146
9182 msgid ""
9183 "This returns the type of the inspected operating system.  Currently defined "
9184 "types are:"
9185 msgstr ""
9186
9187 #. type: =item
9188 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3151
9189 msgid "\"linux\""
9190 msgstr "\"linux\""
9191
9192 #. type: textblock
9193 #: ../fish/guestfish-actions.pod:2140 ../src/guestfs-actions.pod:3153
9194 msgid "Any Linux-based operating system."
9195 msgstr ""
9196
9197 #. type: textblock
9198 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3157
9199 msgid "Any Microsoft Windows operating system."
9200 msgstr ""
9201
9202 #. type: =item
9203 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3159
9204 msgid "\"freebsd\""
9205 msgstr "\"freebsd\""
9206
9207 #. type: textblock
9208 #: ../fish/guestfish-actions.pod:2148 ../src/guestfs-actions.pod:3161
9209 msgid "FreeBSD."
9210 msgstr "FreeBSD."
9211
9212 #. type: textblock
9213 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3165
9214 msgid "The operating system type could not be determined."
9215 msgstr ""
9216
9217 #. type: =head2
9218 #: ../fish/guestfish-actions.pod:2161
9219 msgid "inspect-get-windows-current-control-set"
9220 msgstr ""
9221
9222 #. type: verbatim
9223 #: ../fish/guestfish-actions.pod:2163
9224 #, no-wrap
9225 msgid ""
9226 " inspect-get-windows-current-control-set root\n"
9227 "\n"
9228 msgstr ""
9229
9230 #. type: textblock
9231 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3185
9232 msgid ""
9233 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9234 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9235 msgstr ""
9236
9237 #. type: textblock
9238 #: ../fish/guestfish-actions.pod:2168 ../src/guestfs-actions.pod:3188
9239 msgid ""
9240 "This call assumes that the guest is Windows and that the Registry could be "
9241 "examined by inspection.  If this is not the case then an error is returned."
9242 msgstr ""
9243
9244 #. type: =head2
9245 #: ../fish/guestfish-actions.pod:2174
9246 msgid "inspect-get-windows-systemroot"
9247 msgstr "inspect-get-windows-systemroot"
9248
9249 #. type: verbatim
9250 #: ../fish/guestfish-actions.pod:2176
9251 #, no-wrap
9252 msgid ""
9253 " inspect-get-windows-systemroot root\n"
9254 "\n"
9255 msgstr ""
9256 " inspect-get-windows-systemroot корінь\n"
9257 "\n"
9258
9259 #. type: textblock
9260 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3205
9261 msgid ""
9262 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9263 "is a directory path such as C</WINDOWS>."
9264 msgstr ""
9265
9266 #. type: textblock
9267 #: ../fish/guestfish-actions.pod:2181 ../src/guestfs-actions.pod:3208
9268 msgid ""
9269 "This call assumes that the guest is Windows and that the systemroot could be "
9270 "determined by inspection.  If this is not the case then an error is returned."
9271 msgstr ""
9272
9273 #. type: =head2
9274 #: ../fish/guestfish-actions.pod:2187
9275 msgid "inspect-is-live"
9276 msgstr "inspect-is-live"
9277
9278 #. type: verbatim
9279 #: ../fish/guestfish-actions.pod:2189
9280 #, no-wrap
9281 msgid ""
9282 " inspect-is-live root\n"
9283 "\n"
9284 msgstr ""
9285 " inspect-is-live корінь\n"
9286 "\n"
9287
9288 #. type: textblock
9289 #: ../fish/guestfish-actions.pod:2191
9290 msgid ""
9291 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9292 "then this returns true if a live image was detected on the disk."
9293 msgstr ""
9294
9295 #. type: =head2
9296 #: ../fish/guestfish-actions.pod:2197
9297 msgid "inspect-is-multipart"
9298 msgstr "inspect-is-multipart"
9299
9300 #. type: verbatim
9301 #: ../fish/guestfish-actions.pod:2199
9302 #, no-wrap
9303 msgid ""
9304 " inspect-is-multipart root\n"
9305 "\n"
9306 msgstr ""
9307 " inspect-is-multipart корінь\n"
9308 "\n"
9309
9310 #. type: textblock
9311 #: ../fish/guestfish-actions.pod:2201
9312 msgid ""
9313 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9314 "then this returns true if the disk is part of a set."
9315 msgstr ""
9316
9317 #. type: =head2
9318 #: ../fish/guestfish-actions.pod:2207
9319 msgid "inspect-is-netinst"
9320 msgstr "inspect-is-netinst"
9321
9322 #. type: verbatim
9323 #: ../fish/guestfish-actions.pod:2209
9324 #, no-wrap
9325 msgid ""
9326 " inspect-is-netinst root\n"
9327 "\n"
9328 msgstr ""
9329 " inspect-is-netinst корінь\n"
9330 "\n"
9331
9332 #. type: textblock
9333 #: ../fish/guestfish-actions.pod:2211
9334 msgid ""
9335 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9336 "then this returns true if the disk is a network installer, ie. not a self-"
9337 "contained install CD but one which is likely to require network access to "
9338 "complete the install."
9339 msgstr ""
9340
9341 #. type: =head2
9342 #: ../fish/guestfish-actions.pod:2219
9343 msgid "inspect-list-applications"
9344 msgstr "inspect-list-applications"
9345
9346 #. type: verbatim
9347 #: ../fish/guestfish-actions.pod:2221
9348 #, no-wrap
9349 msgid ""
9350 " inspect-list-applications root\n"
9351 "\n"
9352 msgstr ""
9353 " inspect-list-applications кореневий_каталог\n"
9354 "\n"
9355
9356 #. type: textblock
9357 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:3275
9358 msgid "Return the list of applications installed in the operating system."
9359 msgstr ""
9360
9361 #. type: textblock
9362 #: ../fish/guestfish-actions.pod:2225
9363 msgid ""
9364 "I<Note:> This call works differently from other parts of the inspection "
9365 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9366 "then mount up the disks, before calling this.  Listing applications is a "
9367 "significantly more difficult operation which requires access to the full "
9368 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9369 "are just returning data cached in the libguestfs handle, this call actually "
9370 "reads parts of the mounted filesystems during the call."
9371 msgstr ""
9372
9373 #. type: textblock
9374 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3287
9375 msgid ""
9376 "This returns an empty list if the inspection code was not able to determine "
9377 "the list of applications."
9378 msgstr ""
9379
9380 #. type: textblock
9381 #: ../fish/guestfish-actions.pod:2238 ../src/guestfs-actions.pod:3290
9382 msgid "The application structure contains the following fields:"
9383 msgstr ""
9384
9385 #. type: =item
9386 #: ../fish/guestfish-actions.pod:2242 ../src/guestfs-actions.pod:3294
9387 msgid "C<app_name>"
9388 msgstr "C<app_name>"
9389
9390 #. type: textblock
9391 #: ../fish/guestfish-actions.pod:2244 ../src/guestfs-actions.pod:3296
9392 msgid ""
9393 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9394 "guests, this is the package name."
9395 msgstr ""
9396
9397 #. type: =item
9398 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3299
9399 msgid "C<app_display_name>"
9400 msgstr "C<app_display_name>"
9401
9402 #. type: textblock
9403 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3301
9404 msgid ""
9405 "The display name of the application, sometimes localized to the install "
9406 "language of the guest operating system."
9407 msgstr ""
9408
9409 #. type: textblock
9410 #: ../fish/guestfish-actions.pod:2252 ../src/guestfs-actions.pod:3304
9411 msgid ""
9412 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9413 "to display something can use C<app_name> instead."
9414 msgstr ""
9415
9416 #. type: =item
9417 #: ../fish/guestfish-actions.pod:2255 ../src/guestfs-actions.pod:3307
9418 msgid "C<app_epoch>"
9419 msgstr "C<app_epoch>"
9420
9421 #. type: textblock
9422 #: ../fish/guestfish-actions.pod:2257 ../src/guestfs-actions.pod:3309
9423 msgid ""
9424 "For package managers which use epochs, this contains the epoch of the "
9425 "package (an integer).  If unavailable, this is returned as C<0>."
9426 msgstr ""
9427
9428 #. type: =item
9429 #: ../fish/guestfish-actions.pod:2260 ../src/guestfs-actions.pod:3312
9430 msgid "C<app_version>"
9431 msgstr "C<app_version>"
9432
9433 #. type: textblock
9434 #: ../fish/guestfish-actions.pod:2262 ../src/guestfs-actions.pod:3314
9435 msgid ""
9436 "The version string of the application or package.  If unavailable this is "
9437 "returned as an empty string C<\"\">."
9438 msgstr ""
9439
9440 #. type: =item
9441 #: ../fish/guestfish-actions.pod:2265 ../src/guestfs-actions.pod:3317
9442 msgid "C<app_release>"
9443 msgstr "C<app_release>"
9444
9445 #. type: textblock
9446 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3319
9447 msgid ""
9448 "The release string of the application or package, for package managers that "
9449 "use this.  If unavailable this is returned as an empty string C<\"\">."
9450 msgstr ""
9451
9452 #. type: =item
9453 #: ../fish/guestfish-actions.pod:2271 ../src/guestfs-actions.pod:3323
9454 msgid "C<app_install_path>"
9455 msgstr "C<app_install_path>"
9456
9457 #. type: textblock
9458 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
9459 msgid ""
9460 "The installation path of the application (on operating systems such as "
9461 "Windows which use installation paths).  This path is in the format used by "
9462 "the guest operating system, it is not a libguestfs path."
9463 msgstr ""
9464
9465 #. type: textblock
9466 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3330
9467 msgid "If unavailable this is returned as an empty string C<\"\">."
9468 msgstr ""
9469
9470 #. type: =item
9471 #: ../fish/guestfish-actions.pod:2280 ../src/guestfs-actions.pod:3332
9472 msgid "C<app_trans_path>"
9473 msgstr "C<app_trans_path>"
9474
9475 #. type: textblock
9476 #: ../fish/guestfish-actions.pod:2282 ../src/guestfs-actions.pod:3334
9477 msgid ""
9478 "The install path translated into a libguestfs path.  If unavailable this is "
9479 "returned as an empty string C<\"\">."
9480 msgstr ""
9481
9482 #. type: =item
9483 #: ../fish/guestfish-actions.pod:2285 ../src/guestfs-actions.pod:3337
9484 msgid "C<app_publisher>"
9485 msgstr "C<app_publisher>"
9486
9487 #. type: textblock
9488 #: ../fish/guestfish-actions.pod:2287 ../src/guestfs-actions.pod:3339
9489 msgid ""
9490 "The name of the publisher of the application, for package managers that use "
9491 "this.  If unavailable this is returned as an empty string C<\"\">."
9492 msgstr ""
9493
9494 #. type: =item
9495 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
9496 msgid "C<app_url>"
9497 msgstr "C<app_url>"
9498
9499 #. type: textblock
9500 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
9501 msgid ""
9502 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9503 "returned as an empty string C<\"\">."
9504 msgstr ""
9505
9506 #. type: =item
9507 #: ../fish/guestfish-actions.pod:2296 ../src/guestfs-actions.pod:3348
9508 msgid "C<app_source_package>"
9509 msgstr "C<app_source_package>"
9510
9511 #. type: textblock
9512 #: ../fish/guestfish-actions.pod:2298 ../src/guestfs-actions.pod:3350
9513 msgid ""
9514 "For packaging systems which support this, the name of the source package.  "
9515 "If unavailable this is returned as an empty string C<\"\">."
9516 msgstr ""
9517
9518 #. type: =item
9519 #: ../fish/guestfish-actions.pod:2301 ../src/guestfs-actions.pod:3353
9520 msgid "C<app_summary>"
9521 msgstr "C<app_summary>"
9522
9523 #. type: textblock
9524 #: ../fish/guestfish-actions.pod:2303 ../src/guestfs-actions.pod:3355
9525 msgid ""
9526 "A short (usually one line) description of the application or package.  If "
9527 "unavailable this is returned as an empty string C<\"\">."
9528 msgstr ""
9529
9530 #. type: =item
9531 #: ../fish/guestfish-actions.pod:2306 ../src/guestfs-actions.pod:3358
9532 msgid "C<app_description>"
9533 msgstr "C<app_description>"
9534
9535 #. type: textblock
9536 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3360
9537 msgid ""
9538 "A longer description of the application or package.  If unavailable this is "
9539 "returned as an empty string C<\"\">."
9540 msgstr ""
9541
9542 #. type: =head2
9543 #: ../fish/guestfish-actions.pod:2315
9544 msgid "inspect-os"
9545 msgstr "inspect-os"
9546
9547 #. type: verbatim
9548 #: ../fish/guestfish-actions.pod:2317
9549 #, no-wrap
9550 msgid ""
9551 " inspect-os\n"
9552 "\n"
9553 msgstr ""
9554 " inspect-os\n"
9555 "\n"
9556
9557 #. type: textblock
9558 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3378
9559 msgid ""
9560 "This function uses other libguestfs functions and certain heuristics to "
9561 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9562 "for operating systems."
9563 msgstr ""
9564
9565 #. type: textblock
9566 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3382
9567 msgid "The list returned is empty if no operating systems were found."
9568 msgstr ""
9569
9570 #. type: textblock
9571 #: ../fish/guestfish-actions.pod:2325 ../src/guestfs-actions.pod:3384
9572 msgid ""
9573 "If one operating system was found, then this returns a list with a single "
9574 "element, which is the name of the root filesystem of this operating system.  "
9575 "It is also possible for this function to return a list containing more than "
9576 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9577 "element being the root filesystem of one of the operating systems."
9578 msgstr ""
9579
9580 #. type: textblock
9581 #: ../fish/guestfish-actions.pod:2332
9582 msgid ""
9583 "You can pass the root string(s) returned to other L</inspect-get-*> "
9584 "functions in order to query further information about each operating system, "
9585 "such as the name and version."
9586 msgstr ""
9587
9588 #. type: textblock
9589 #: ../fish/guestfish-actions.pod:2337
9590 msgid ""
9591 "This function uses other libguestfs features such as L</mount-ro> and L</"
9592 "umount-all> in order to mount and unmount filesystems and look at the "
9593 "contents.  This should be called with no disks currently mounted.  The "
9594 "function may also use Augeas, so any existing Augeas handle will be closed."
9595 msgstr ""
9596
9597 #. type: textblock
9598 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3402
9599 msgid ""
9600 "This function cannot decrypt encrypted disks.  The caller must do that first "
9601 "(supplying the necessary keys) if the disk is encrypted."
9602 msgstr ""
9603
9604 #. type: textblock
9605 #: ../fish/guestfish-actions.pod:2349 ../fish/guestfish-actions.pod:2547
9606 #: ../fish/guestfish-actions.pod:2606
9607 msgid "See also L</list-filesystems>."
9608 msgstr "Див. також L</list-filesystems>."
9609
9610 #. type: =head2
9611 #: ../fish/guestfish-actions.pod:2351
9612 msgid "is-blockdev"
9613 msgstr "is-blockdev"
9614
9615 #. type: verbatim
9616 #: ../fish/guestfish-actions.pod:2353
9617 #, no-wrap
9618 msgid ""
9619 " is-blockdev path\n"
9620 "\n"
9621 msgstr ""
9622 " is-blockdev шлях\n"
9623 "\n"
9624
9625 #. type: textblock
9626 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3422
9627 msgid ""
9628 "This returns C<true> if and only if there is a block device with the given "
9629 "C<path> name."
9630 msgstr ""
9631
9632 #. type: textblock
9633 #: ../fish/guestfish-actions.pod:2358 ../fish/guestfish-actions.pod:2376
9634 #: ../fish/guestfish-actions.pod:2395 ../fish/guestfish-actions.pod:2404
9635 #: ../fish/guestfish-actions.pod:2414 ../fish/guestfish-actions.pod:2448
9636 #: ../fish/guestfish-actions.pod:2457
9637 msgid "See also L</stat>."
9638 msgstr "Див. також L</stat>."
9639
9640 #. type: =head2
9641 #: ../fish/guestfish-actions.pod:2360
9642 msgid "is-busy"
9643 msgstr "is-busy"
9644
9645 #. type: verbatim
9646 #: ../fish/guestfish-actions.pod:2362
9647 #, no-wrap
9648 msgid ""
9649 " is-busy\n"
9650 "\n"
9651 msgstr ""
9652 " is-busy\n"
9653 "\n"
9654
9655 #. type: textblock
9656 #: ../fish/guestfish-actions.pod:2364 ../src/guestfs-actions.pod:3436
9657 msgid ""
9658 "This returns true iff this handle is busy processing a command (in the "
9659 "C<BUSY> state)."
9660 msgstr ""
9661
9662 #. type: =head2
9663 #: ../fish/guestfish-actions.pod:2369
9664 msgid "is-chardev"
9665 msgstr "is-chardev"
9666
9667 #. type: verbatim
9668 #: ../fish/guestfish-actions.pod:2371
9669 #, no-wrap
9670 msgid ""
9671 " is-chardev path\n"
9672 "\n"
9673 msgstr ""
9674 " is-chardev шлях\n"
9675 "\n"
9676
9677 #. type: textblock
9678 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3451
9679 msgid ""
9680 "This returns C<true> if and only if there is a character device with the "
9681 "given C<path> name."
9682 msgstr ""
9683
9684 #. type: =head2
9685 #: ../fish/guestfish-actions.pod:2378
9686 msgid "is-config"
9687 msgstr "is-config"
9688
9689 #. type: verbatim
9690 #: ../fish/guestfish-actions.pod:2380
9691 #, no-wrap
9692 msgid ""
9693 " is-config\n"
9694 "\n"
9695 msgstr ""
9696 " is-config\n"
9697 "\n"
9698
9699 #. type: textblock
9700 #: ../fish/guestfish-actions.pod:2382 ../src/guestfs-actions.pod:3465
9701 msgid ""
9702 "This returns true iff this handle is being configured (in the C<CONFIG> "
9703 "state)."
9704 msgstr ""
9705
9706 #. type: =head2
9707 #: ../fish/guestfish-actions.pod:2387
9708 msgid "is-dir"
9709 msgstr "is-dir"
9710
9711 #. type: verbatim
9712 #: ../fish/guestfish-actions.pod:2389
9713 #, no-wrap
9714 msgid ""
9715 " is-dir path\n"
9716 "\n"
9717 msgstr ""
9718 " is-dir шлях\n"
9719 "\n"
9720
9721 #. type: textblock
9722 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3480
9723 msgid ""
9724 "This returns C<true> if and only if there is a directory with the given "
9725 "C<path> name.  Note that it returns false for other objects like files."
9726 msgstr ""
9727
9728 #. type: =head2
9729 #: ../fish/guestfish-actions.pod:2397
9730 msgid "is-fifo"
9731 msgstr "is-fifo"
9732
9733 #. type: verbatim
9734 #: ../fish/guestfish-actions.pod:2399
9735 #, no-wrap
9736 msgid ""
9737 " is-fifo path\n"
9738 "\n"
9739 msgstr ""
9740 " is-fifo шлях\n"
9741 "\n"
9742
9743 #. type: textblock
9744 #: ../fish/guestfish-actions.pod:2401 ../src/guestfs-actions.pod:3496
9745 msgid ""
9746 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
9747 "given C<path> name."
9748 msgstr ""
9749
9750 #. type: =head2
9751 #: ../fish/guestfish-actions.pod:2406
9752 msgid "is-file"
9753 msgstr "is-file"
9754
9755 #. type: verbatim
9756 #: ../fish/guestfish-actions.pod:2408
9757 #, no-wrap
9758 msgid ""
9759 " is-file path\n"
9760 "\n"
9761 msgstr ""
9762 " is-file шлях\n"
9763 "\n"
9764
9765 #. type: textblock
9766 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3511
9767 msgid ""
9768 "This returns C<true> if and only if there is a regular file with the given "
9769 "C<path> name.  Note that it returns false for other objects like directories."
9770 msgstr ""
9771
9772 #. type: =head2
9773 #: ../fish/guestfish-actions.pod:2416
9774 msgid "is-launching"
9775 msgstr "is-launching"
9776
9777 #. type: verbatim
9778 #: ../fish/guestfish-actions.pod:2418
9779 #, no-wrap
9780 msgid ""
9781 " is-launching\n"
9782 "\n"
9783 msgstr ""
9784 " is-launching\n"
9785 "\n"
9786
9787 #. type: textblock
9788 #: ../fish/guestfish-actions.pod:2420 ../src/guestfs-actions.pod:3526
9789 msgid ""
9790 "This returns true iff this handle is launching the subprocess (in the "
9791 "C<LAUNCHING> state)."
9792 msgstr ""
9793
9794 #. type: =head2
9795 #: ../fish/guestfish-actions.pod:2425
9796 msgid "is-lv"
9797 msgstr "is-lv"
9798
9799 #. type: verbatim
9800 #: ../fish/guestfish-actions.pod:2427
9801 #, no-wrap
9802 msgid ""
9803 " is-lv device\n"
9804 "\n"
9805 msgstr ""
9806 " is-lv пристрій\n"
9807 "\n"
9808
9809 #. type: textblock
9810 #: ../fish/guestfish-actions.pod:2429 ../src/guestfs-actions.pod:3541
9811 msgid ""
9812 "This command tests whether C<device> is a logical volume, and returns true "
9813 "iff this is the case."
9814 msgstr ""
9815
9816 #. type: =head2
9817 #: ../fish/guestfish-actions.pod:2432
9818 msgid "is-ready"
9819 msgstr "is-ready"
9820
9821 #. type: verbatim
9822 #: ../fish/guestfish-actions.pod:2434
9823 #, no-wrap
9824 msgid ""
9825 " is-ready\n"
9826 "\n"
9827 msgstr ""
9828 " is-ready\n"
9829 "\n"
9830
9831 #. type: textblock
9832 #: ../fish/guestfish-actions.pod:2436 ../src/guestfs-actions.pod:3553
9833 msgid ""
9834 "This returns true iff this handle is ready to accept commands (in the "
9835 "C<READY> state)."
9836 msgstr ""
9837
9838 #. type: =head2
9839 #: ../fish/guestfish-actions.pod:2441
9840 msgid "is-socket"
9841 msgstr "is-socket"
9842
9843 #. type: verbatim
9844 #: ../fish/guestfish-actions.pod:2443
9845 #, no-wrap
9846 msgid ""
9847 " is-socket path\n"
9848 "\n"
9849 msgstr ""
9850 " is-socket шлях\n"
9851 "\n"
9852
9853 #. type: textblock
9854 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3568
9855 msgid ""
9856 "This returns C<true> if and only if there is a Unix domain socket with the "
9857 "given C<path> name."
9858 msgstr ""
9859
9860 #. type: =head2
9861 #: ../fish/guestfish-actions.pod:2450
9862 msgid "is-symlink"
9863 msgstr "is-symlink"
9864
9865 #. type: verbatim
9866 #: ../fish/guestfish-actions.pod:2452
9867 #, no-wrap
9868 msgid ""
9869 " is-symlink path\n"
9870 "\n"
9871 msgstr ""
9872 " is-symlink шлях\n"
9873 "\n"
9874
9875 #. type: textblock
9876 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3583
9877 msgid ""
9878 "This returns C<true> if and only if there is a symbolic link with the given "
9879 "C<path> name."
9880 msgstr ""
9881
9882 #. type: =head2
9883 #: ../fish/guestfish-actions.pod:2459
9884 msgid "is-zero"
9885 msgstr ""
9886
9887 #. type: verbatim
9888 #: ../fish/guestfish-actions.pod:2461
9889 #, no-wrap
9890 msgid ""
9891 " is-zero path\n"
9892 "\n"
9893 msgstr ""
9894
9895 #. type: textblock
9896 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3598
9897 msgid ""
9898 "This returns true iff the file exists and the file is empty or it contains "
9899 "all zero bytes."
9900 msgstr ""
9901
9902 #. type: =head2
9903 #: ../fish/guestfish-actions.pod:2466
9904 msgid "is-zero-device"
9905 msgstr ""
9906
9907 #. type: verbatim
9908 #: ../fish/guestfish-actions.pod:2468
9909 #, no-wrap
9910 msgid ""
9911 " is-zero-device device\n"
9912 "\n"
9913 msgstr ""
9914
9915 #. type: textblock
9916 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3611
9917 msgid "This returns true iff the device exists and contains all zero bytes."
9918 msgstr ""
9919
9920 #. type: textblock
9921 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3613
9922 msgid "Note that for large devices this can take a long time to run."
9923 msgstr ""
9924
9925 #. type: =head2
9926 #: ../fish/guestfish-actions.pod:2474
9927 msgid "kill-subprocess"
9928 msgstr "kill-subprocess"
9929
9930 #. type: verbatim
9931 #: ../fish/guestfish-actions.pod:2476
9932 #, no-wrap
9933 msgid ""
9934 " kill-subprocess\n"
9935 "\n"
9936 msgstr ""
9937 " kill-subprocess\n"
9938 "\n"
9939
9940 #. type: textblock
9941 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3624
9942 msgid "This kills the qemu subprocess.  You should never need to call this."
9943 msgstr ""
9944
9945 #. type: =head2
9946 #: ../fish/guestfish-actions.pod:2480
9947 msgid "launch"
9948 msgstr "launch"
9949
9950 #. type: =head2
9951 #: ../fish/guestfish-actions.pod:2482
9952 msgid "run"
9953 msgstr ""
9954
9955 #. type: verbatim
9956 #: ../fish/guestfish-actions.pod:2484
9957 #, no-wrap
9958 msgid ""
9959 " launch\n"
9960 "\n"
9961 msgstr ""
9962 " launch\n"
9963 "\n"
9964
9965 #. type: textblock
9966 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3635
9967 msgid ""
9968 "Internally libguestfs is implemented by running a virtual machine using "
9969 "L<qemu(1)>."
9970 msgstr ""
9971
9972 #. type: textblock
9973 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3638
9974 msgid ""
9975 "You should call this after configuring the handle (eg. adding drives) but "
9976 "before performing any actions."
9977 msgstr ""
9978
9979 #. type: =head2
9980 #: ../fish/guestfish-actions.pod:2492
9981 msgid "lchown"
9982 msgstr "lchown"
9983
9984 #. type: verbatim
9985 #: ../fish/guestfish-actions.pod:2494
9986 #, no-wrap
9987 msgid ""
9988 " lchown owner group path\n"
9989 "\n"
9990 msgstr ""
9991 " lchown власник група шлях\n"
9992 "\n"
9993
9994 #. type: textblock
9995 #: ../fish/guestfish-actions.pod:2496
9996 msgid ""
9997 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
9998 "chown> but if C<path> is a symlink then the link itself is changed, not the "
9999 "target."
10000 msgstr ""
10001
10002 #. type: =head2
10003 #: ../fish/guestfish-actions.pod:2504
10004 msgid "lgetxattr"
10005 msgstr "lgetxattr"
10006
10007 #. type: verbatim
10008 #: ../fish/guestfish-actions.pod:2506
10009 #, no-wrap
10010 msgid ""
10011 " lgetxattr path name\n"
10012 "\n"
10013 msgstr ""
10014 " lgetxattr шлях назва\n"
10015 "\n"
10016
10017 #. type: textblock
10018 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3678
10019 msgid ""
10020 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10021 "is a symlink, then this call returns an extended attribute from the symlink."
10022 msgstr ""
10023
10024 #. type: textblock
10025 #: ../fish/guestfish-actions.pod:2522
10026 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10027 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10028
10029 #. type: =head2
10030 #: ../fish/guestfish-actions.pod:2524
10031 msgid "lgetxattrs"
10032 msgstr "lgetxattrs"
10033
10034 #. type: verbatim
10035 #: ../fish/guestfish-actions.pod:2526
10036 #, no-wrap
10037 msgid ""
10038 " lgetxattrs path\n"
10039 "\n"
10040 msgstr ""
10041 " lgetxattrs шлях\n"
10042 "\n"
10043
10044 #. type: textblock
10045 #: ../fish/guestfish-actions.pod:2528
10046 msgid ""
10047 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10048 "it returns the extended attributes of the link itself."
10049 msgstr ""
10050
10051 #. type: =head2
10052 #: ../fish/guestfish-actions.pod:2532
10053 msgid "list-9p"
10054 msgstr ""
10055
10056 #. type: verbatim
10057 #: ../fish/guestfish-actions.pod:2534
10058 #, no-wrap
10059 msgid ""
10060 " list-9p\n"
10061 "\n"
10062 msgstr ""
10063
10064 #. type: textblock
10065 #: ../fish/guestfish-actions.pod:2536 ../src/guestfs-actions.pod:3721
10066 msgid ""
10067 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10068 "returned."
10069 msgstr ""
10070
10071 #. type: =head2
10072 #: ../fish/guestfish-actions.pod:2539
10073 msgid "list-devices"
10074 msgstr "list-devices"
10075
10076 #. type: verbatim
10077 #: ../fish/guestfish-actions.pod:2541
10078 #, no-wrap
10079 msgid ""
10080 " list-devices\n"
10081 "\n"
10082 msgstr ""
10083 " list-devices\n"
10084 "\n"
10085
10086 #. type: textblock
10087 #: ../fish/guestfish-actions.pod:2543 ../src/guestfs-actions.pod:3735
10088 msgid "List all the block devices."
10089 msgstr ""
10090
10091 #. type: textblock
10092 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3737
10093 msgid "The full block device names are returned, eg. C</dev/sda>."
10094 msgstr ""
10095
10096 #. type: =head2
10097 #: ../fish/guestfish-actions.pod:2549
10098 msgid "list-dm-devices"
10099 msgstr ""
10100
10101 #. type: verbatim
10102 #: ../fish/guestfish-actions.pod:2551
10103 #, no-wrap
10104 msgid ""
10105 " list-dm-devices\n"
10106 "\n"
10107 msgstr ""
10108
10109 #. type: textblock
10110 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3752
10111 msgid "List all device mapper devices."
10112 msgstr ""
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:2555
10116 msgid ""
10117 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10118 "previous call to L</luks-open>."
10119 msgstr ""
10120
10121 #. type: textblock
10122 #: ../fish/guestfish-actions.pod:2558
10123 msgid ""
10124 "Device mapper devices which correspond to logical volumes are I<not> "
10125 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10126 msgstr ""
10127
10128 #. type: =head2
10129 #: ../fish/guestfish-actions.pod:2562
10130 msgid "list-filesystems"
10131 msgstr "list-filesystems"
10132
10133 #. type: verbatim
10134 #: ../fish/guestfish-actions.pod:2564
10135 #, no-wrap
10136 msgid ""
10137 " list-filesystems\n"
10138 "\n"
10139 msgstr ""
10140 " list-filesystems\n"
10141 "\n"
10142
10143 #. type: textblock
10144 #: ../fish/guestfish-actions.pod:2566 ../src/guestfs-actions.pod:3772
10145 msgid ""
10146 "This inspection command looks for filesystems on partitions, block devices "
10147 "and logical volumes, returning a list of devices containing filesystems and "
10148 "their type."
10149 msgstr ""
10150
10151 #. type: textblock
10152 #: ../fish/guestfish-actions.pod:2570 ../src/guestfs-actions.pod:3776
10153 msgid ""
10154 "The return value is a hash, where the keys are the devices containing "
10155 "filesystems, and the values are the filesystem types.  For example:"
10156 msgstr ""
10157
10158 #. type: verbatim
10159 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3780
10160 #, no-wrap
10161 msgid ""
10162 " \"/dev/sda1\" => \"ntfs\"\n"
10163 " \"/dev/sda2\" => \"ext2\"\n"
10164 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10165 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10166 "\n"
10167 msgstr ""
10168
10169 #. type: textblock
10170 #: ../fish/guestfish-actions.pod:2579 ../src/guestfs-actions.pod:3785
10171 msgid ""
10172 "The value can have the special value \"unknown\", meaning the content of the "
10173 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10174 msgstr ""
10175
10176 #. type: textblock
10177 #: ../fish/guestfish-actions.pod:2583
10178 msgid ""
10179 "This command runs other libguestfs commands, which might include L</mount> "
10180 "and L</umount>, and therefore you should use this soon after launch and only "
10181 "when nothing is mounted."
10182 msgstr ""
10183
10184 #. type: textblock
10185 #: ../fish/guestfish-actions.pod:2587
10186 msgid ""
10187 "Not all of the filesystems returned will be mountable.  In particular, swap "
10188 "partitions are returned in the list.  Also this command does not check that "
10189 "each filesystem found is valid and mountable, and some filesystems might be "
10190 "mountable but require special options.  Filesystems may not all belong to a "
10191 "single logical operating system (use L</inspect-os> to look for OSes)."
10192 msgstr ""
10193
10194 #. type: =head2
10195 #: ../fish/guestfish-actions.pod:2595
10196 msgid "list-partitions"
10197 msgstr "list-partitions"
10198
10199 #. type: verbatim
10200 #: ../fish/guestfish-actions.pod:2597
10201 #, no-wrap
10202 msgid ""
10203 " list-partitions\n"
10204 "\n"
10205 msgstr ""
10206 " list-partitions\n"
10207 "\n"
10208
10209 #. type: textblock
10210 #: ../fish/guestfish-actions.pod:2599 ../src/guestfs-actions.pod:3814
10211 msgid "List all the partitions detected on all block devices."
10212 msgstr ""
10213
10214 #. type: textblock
10215 #: ../fish/guestfish-actions.pod:2601 ../src/guestfs-actions.pod:3816
10216 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10217 msgstr ""
10218
10219 #. type: textblock
10220 #: ../fish/guestfish-actions.pod:2603
10221 msgid ""
10222 "This does not return logical volumes.  For that you will need to call L</"
10223 "lvs>."
10224 msgstr ""
10225
10226 #. type: =head2
10227 #: ../fish/guestfish-actions.pod:2608
10228 msgid "ll"
10229 msgstr "ll"
10230
10231 #. type: verbatim
10232 #: ../fish/guestfish-actions.pod:2610
10233 #, no-wrap
10234 msgid ""
10235 " ll directory\n"
10236 "\n"
10237 msgstr ""
10238 " ll каталог\n"
10239 "\n"
10240
10241 #. type: textblock
10242 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3835
10243 msgid ""
10244 "List the files in C<directory> (relative to the root directory, there is no "
10245 "cwd) in the format of 'ls -la'."
10246 msgstr ""
10247
10248 #. type: textblock
10249 #: ../fish/guestfish-actions.pod:2615 ../src/guestfs-actions.pod:3838
10250 msgid ""
10251 "This command is mostly useful for interactive sessions.  It is I<not> "
10252 "intended that you try to parse the output string."
10253 msgstr ""
10254
10255 #. type: =head2
10256 #: ../fish/guestfish-actions.pod:2618
10257 msgid "ln"
10258 msgstr "ln"
10259
10260 #. type: verbatim
10261 #: ../fish/guestfish-actions.pod:2620
10262 #, no-wrap
10263 msgid ""
10264 " ln target linkname\n"
10265 "\n"
10266 msgstr ""
10267 " ln призначення назва_посилання\n"
10268 "\n"
10269
10270 #. type: textblock
10271 #: ../fish/guestfish-actions.pod:2622 ../src/guestfs-actions.pod:3853
10272 msgid "This command creates a hard link using the C<ln> command."
10273 msgstr ""
10274
10275 #. type: =head2
10276 #: ../fish/guestfish-actions.pod:2624
10277 msgid "ln-f"
10278 msgstr "ln-f"
10279
10280 #. type: verbatim
10281 #: ../fish/guestfish-actions.pod:2626
10282 #, no-wrap
10283 msgid ""
10284 " ln-f target linkname\n"
10285 "\n"
10286 msgstr ""
10287 " ln-f призначення назва_посилання\n"
10288 "\n"
10289
10290 #. type: textblock
10291 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3866
10292 msgid ""
10293 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10294 "option removes the link (C<linkname>) if it exists already."
10295 msgstr ""
10296
10297 #. type: =head2
10298 #: ../fish/guestfish-actions.pod:2631
10299 msgid "ln-s"
10300 msgstr "ln-s"
10301
10302 #. type: verbatim
10303 #: ../fish/guestfish-actions.pod:2633
10304 #, no-wrap
10305 msgid ""
10306 " ln-s target linkname\n"
10307 "\n"
10308 msgstr ""
10309 " ln-s призначення назва_посилання\n"
10310 "\n"
10311
10312 #. type: textblock
10313 #: ../fish/guestfish-actions.pod:2635 ../src/guestfs-actions.pod:3880
10314 msgid "This command creates a symbolic link using the C<ln -s> command."
10315 msgstr ""
10316
10317 #. type: =head2
10318 #: ../fish/guestfish-actions.pod:2637
10319 msgid "ln-sf"
10320 msgstr "ln-sf"
10321
10322 #. type: verbatim
10323 #: ../fish/guestfish-actions.pod:2639
10324 #, no-wrap
10325 msgid ""
10326 " ln-sf target linkname\n"
10327 "\n"
10328 msgstr ""
10329 " ln-sf призначення назва_посилання\n"
10330 "\n"
10331
10332 #. type: textblock
10333 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3893
10334 msgid ""
10335 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10336 "option removes the link (C<linkname>) if it exists already."
10337 msgstr ""
10338
10339 #. type: =head2
10340 #: ../fish/guestfish-actions.pod:2644
10341 msgid "lremovexattr"
10342 msgstr "lremovexattr"
10343
10344 #. type: verbatim
10345 #: ../fish/guestfish-actions.pod:2646
10346 #, no-wrap
10347 msgid ""
10348 " lremovexattr xattr path\n"
10349 "\n"
10350 msgstr ""
10351
10352 #. type: textblock
10353 #: ../fish/guestfish-actions.pod:2648
10354 msgid ""
10355 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10356 "it removes an extended attribute of the link itself."
10357 msgstr ""
10358
10359 #. type: =head2
10360 #: ../fish/guestfish-actions.pod:2652
10361 msgid "ls"
10362 msgstr "ls"
10363
10364 #. type: verbatim
10365 #: ../fish/guestfish-actions.pod:2654
10366 #, no-wrap
10367 msgid ""
10368 " ls directory\n"
10369 "\n"
10370 msgstr ""
10371 " ls каталог\n"
10372 "\n"
10373
10374 #. type: textblock
10375 #: ../fish/guestfish-actions.pod:2656 ../src/guestfs-actions.pod:3921
10376 msgid ""
10377 "List the files in C<directory> (relative to the root directory, there is no "
10378 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10379 msgstr ""
10380
10381 #. type: textblock
10382 #: ../fish/guestfish-actions.pod:2660
10383 msgid ""
10384 "This command is mostly useful for interactive sessions.  Programs should "
10385 "probably use L</readdir> instead."
10386 msgstr ""
10387
10388 #. type: =head2
10389 #: ../fish/guestfish-actions.pod:2663
10390 msgid "lsetxattr"
10391 msgstr "lsetxattr"
10392
10393 #. type: verbatim
10394 #: ../fish/guestfish-actions.pod:2665
10395 #, no-wrap
10396 msgid ""
10397 " lsetxattr xattr val vallen path\n"
10398 "\n"
10399 msgstr ""
10400
10401 #. type: textblock
10402 #: ../fish/guestfish-actions.pod:2667
10403 msgid ""
10404 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10405 "sets an extended attribute of the link itself."
10406 msgstr ""
10407
10408 #. type: =head2
10409 #: ../fish/guestfish-actions.pod:2671
10410 msgid "lstat"
10411 msgstr "lstat"
10412
10413 #. type: verbatim
10414 #: ../fish/guestfish-actions.pod:2673
10415 #, no-wrap
10416 msgid ""
10417 " lstat path\n"
10418 "\n"
10419 msgstr ""
10420 " lstat шлях\n"
10421 "\n"
10422
10423 #. type: textblock
10424 #: ../fish/guestfish-actions.pod:2675 ../fish/guestfish-actions.pod:4483
10425 #: ../src/guestfs-actions.pod:3957 ../src/guestfs-actions.pod:6736
10426 msgid "Returns file information for the given C<path>."
10427 msgstr ""
10428
10429 #. type: textblock
10430 #: ../fish/guestfish-actions.pod:2677
10431 msgid ""
10432 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10433 "the link is stat-ed, not the file it refers to."
10434 msgstr ""
10435
10436 #. type: textblock
10437 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:3963
10438 msgid "This is the same as the C<lstat(2)> system call."
10439 msgstr ""
10440
10441 #. type: =head2
10442 #: ../fish/guestfish-actions.pod:2683
10443 msgid "lstatlist"
10444 msgstr "lstatlist"
10445
10446 #. type: verbatim
10447 #: ../fish/guestfish-actions.pod:2685
10448 #, no-wrap
10449 msgid ""
10450 " lstatlist path 'names ...'\n"
10451 "\n"
10452 msgstr ""
10453
10454 #. type: textblock
10455 #: ../fish/guestfish-actions.pod:2687
10456 msgid ""
10457 "This call allows you to perform the L</lstat> operation on multiple files, "
10458 "where all files are in the directory C<path>.  C<names> is the list of files "
10459 "from this directory."
10460 msgstr ""
10461
10462 #. type: textblock
10463 #: ../fish/guestfish-actions.pod:2691 ../src/guestfs-actions.pod:3982
10464 msgid ""
10465 "On return you get a list of stat structs, with a one-to-one correspondence "
10466 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10467 "then the C<ino> field of that structure is set to C<-1>."
10468 msgstr ""
10469
10470 #. type: textblock
10471 #: ../fish/guestfish-actions.pod:2696
10472 msgid ""
10473 "This call is intended for programs that want to efficiently list a directory "
10474 "contents without making many round-trips.  See also L</lxattrlist> for a "
10475 "similarly efficient call for getting extended attributes.  Very long "
10476 "directory listings might cause the protocol message size to be exceeded, "
10477 "causing this call to fail.  The caller must split up such requests into "
10478 "smaller groups of names."
10479 msgstr ""
10480
10481 #. type: =head2
10482 #: ../fish/guestfish-actions.pod:2704
10483 msgid "luks-add-key"
10484 msgstr "luks-add-key"
10485
10486 #. type: verbatim
10487 #: ../fish/guestfish-actions.pod:2706
10488 #, no-wrap
10489 msgid ""
10490 " luks-add-key device keyslot\n"
10491 "\n"
10492 msgstr ""
10493
10494 #. type: textblock
10495 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4010
10496 msgid ""
10497 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10498 "existing key, and is used to access the device.  C<newkey> is the new key to "
10499 "add.  C<keyslot> is the key slot that will be replaced."
10500 msgstr ""
10501
10502 #. type: textblock
10503 #: ../fish/guestfish-actions.pod:2713
10504 msgid ""
10505 "Note that if C<keyslot> already contains a key, then this command will "
10506 "fail.  You have to use L</luks-kill-slot> first to remove that key."
10507 msgstr ""
10508
10509 #. type: textblock
10510 #: ../fish/guestfish-actions.pod:2717 ../fish/guestfish-actions.pod:2739
10511 #: ../fish/guestfish-actions.pod:2752 ../fish/guestfish-actions.pod:2766
10512 #: ../fish/guestfish-actions.pod:2792 ../fish/guestfish-actions.pod:2802
10513 msgid ""
10514 "This command has one or more key or passphrase parameters.  Guestfish will "
10515 "prompt for these separately."
10516 msgstr ""
10517
10518 #. type: =head2
10519 #: ../fish/guestfish-actions.pod:2720
10520 msgid "luks-close"
10521 msgstr "luks-close"
10522
10523 #. type: verbatim
10524 #: ../fish/guestfish-actions.pod:2722
10525 #, no-wrap
10526 msgid ""
10527 " luks-close device\n"
10528 "\n"
10529 msgstr ""
10530 " luks-close пристрій\n"
10531 "\n"
10532
10533 #. type: textblock
10534 #: ../fish/guestfish-actions.pod:2724
10535 msgid ""
10536 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10537 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
10538 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10539 "block device."
10540 msgstr ""
10541
10542 #. type: =head2
10543 #: ../fish/guestfish-actions.pod:2730
10544 msgid "luks-format"
10545 msgstr "luks-format"
10546
10547 #. type: verbatim
10548 #: ../fish/guestfish-actions.pod:2732
10549 #, no-wrap
10550 msgid ""
10551 " luks-format device keyslot\n"
10552 "\n"
10553 msgstr ""
10554
10555 #. type: textblock
10556 #: ../fish/guestfish-actions.pod:2734 ../src/guestfs-actions.pod:4051
10557 msgid ""
10558 "This command erases existing data on C<device> and formats the device as a "
10559 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10560 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10561 msgstr ""
10562
10563 #. type: textblock
10564 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:2755
10565 #: ../fish/guestfish-actions.pod:2842 ../fish/guestfish-actions.pod:3503
10566 #: ../fish/guestfish-actions.pod:4029 ../fish/guestfish-actions.pod:4354
10567 #: ../fish/guestfish-actions.pod:4377 ../fish/guestfish-actions.pod:4399
10568 #: ../fish/guestfish-actions.pod:5145 ../src/guestfs-actions.pod:4058
10569 #: ../src/guestfs-actions.pod:4081 ../src/guestfs-actions.pod:4224
10570 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:6115
10571 #: ../src/guestfs-actions.pod:6550 ../src/guestfs-actions.pod:6580
10572 #: ../src/guestfs-actions.pod:6613 ../src/guestfs-actions.pod:7812
10573 msgid ""
10574 "B<This command is dangerous.  Without careful use you can easily destroy all "
10575 "your data>."
10576 msgstr ""
10577
10578 #. type: =head2
10579 #: ../fish/guestfish-actions.pod:2745
10580 msgid "luks-format-cipher"
10581 msgstr "luks-format-cipher"
10582
10583 #. type: verbatim
10584 #: ../fish/guestfish-actions.pod:2747
10585 #, no-wrap
10586 msgid ""
10587 " luks-format-cipher device keyslot cipher\n"
10588 "\n"
10589 msgstr ""
10590
10591 #. type: textblock
10592 #: ../fish/guestfish-actions.pod:2749
10593 msgid ""
10594 "This command is the same as L</luks-format> but it also allows you to set "
10595 "the C<cipher> used."
10596 msgstr ""
10597
10598 #. type: =head2
10599 #: ../fish/guestfish-actions.pod:2758
10600 msgid "luks-kill-slot"
10601 msgstr "luks-kill-slot"
10602
10603 #. type: verbatim
10604 #: ../fish/guestfish-actions.pod:2760
10605 #, no-wrap
10606 msgid ""
10607 " luks-kill-slot device keyslot\n"
10608 "\n"
10609 msgstr ""
10610
10611 #. type: textblock
10612 #: ../fish/guestfish-actions.pod:2762 ../src/guestfs-actions.pod:4098
10613 msgid ""
10614 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10615 "device C<device>.  C<key> must be one of the I<other> keys."
10616 msgstr ""
10617
10618 #. type: =head2
10619 #: ../fish/guestfish-actions.pod:2769
10620 msgid "luks-open"
10621 msgstr "luks-open"
10622
10623 #. type: verbatim
10624 #: ../fish/guestfish-actions.pod:2771
10625 #, no-wrap
10626 msgid ""
10627 " luks-open device mapname\n"
10628 "\n"
10629 msgstr ""
10630
10631 #. type: textblock
10632 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4118
10633 msgid ""
10634 "This command opens a block device which has been encrypted according to the "
10635 "Linux Unified Key Setup (LUKS) standard."
10636 msgstr ""
10637
10638 #. type: textblock
10639 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4121
10640 msgid "C<device> is the encrypted block device or partition."
10641 msgstr ""
10642
10643 #. type: textblock
10644 #: ../fish/guestfish-actions.pod:2778 ../src/guestfs-actions.pod:4123
10645 msgid ""
10646 "The caller must supply one of the keys associated with the LUKS block "
10647 "device, in the C<key> parameter."
10648 msgstr ""
10649
10650 #. type: textblock
10651 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4126
10652 msgid ""
10653 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10654 "writes to this block device are decrypted from and encrypted to the "
10655 "underlying C<device> respectively."
10656 msgstr ""
10657
10658 #. type: textblock
10659 #: ../fish/guestfish-actions.pod:2785
10660 msgid ""
10661 "If this block device contains LVM volume groups, then calling L</vgscan> "
10662 "followed by L</vg-activate-all> will make them visible."
10663 msgstr ""
10664
10665 #. type: textblock
10666 #: ../fish/guestfish-actions.pod:2789
10667 msgid "Use L</list-dm-devices> to list all device mapper devices."
10668 msgstr ""
10669
10670 #. type: =head2
10671 #: ../fish/guestfish-actions.pod:2795
10672 msgid "luks-open-ro"
10673 msgstr "luks-open-ro"
10674
10675 #. type: verbatim
10676 #: ../fish/guestfish-actions.pod:2797
10677 #, no-wrap
10678 msgid ""
10679 " luks-open-ro device mapname\n"
10680 "\n"
10681 msgstr ""
10682
10683 #. type: textblock
10684 #: ../fish/guestfish-actions.pod:2799
10685 msgid ""
10686 "This is the same as L</luks-open> except that a read-only mapping is created."
10687 msgstr ""
10688
10689 #. type: =head2
10690 #: ../fish/guestfish-actions.pod:2805
10691 msgid "lvcreate"
10692 msgstr "lvcreate"
10693
10694 #. type: verbatim
10695 #: ../fish/guestfish-actions.pod:2807
10696 #, no-wrap
10697 msgid ""
10698 " lvcreate logvol volgroup mbytes\n"
10699 "\n"
10700 msgstr ""
10701
10702 #. type: textblock
10703 #: ../fish/guestfish-actions.pod:2809 ../src/guestfs-actions.pod:4172
10704 msgid ""
10705 "This creates an LVM logical volume called C<logvol> on the volume group "
10706 "C<volgroup>, with C<size> megabytes."
10707 msgstr ""
10708
10709 #. type: =head2
10710 #: ../fish/guestfish-actions.pod:2812
10711 msgid "lvm-canonical-lv-name"
10712 msgstr "lvm-canonical-lv-name"
10713
10714 #. type: verbatim
10715 #: ../fish/guestfish-actions.pod:2814
10716 #, no-wrap
10717 msgid ""
10718 " lvm-canonical-lv-name lvname\n"
10719 "\n"
10720 msgstr ""
10721
10722 #. type: textblock
10723 #: ../fish/guestfish-actions.pod:2816 ../src/guestfs-actions.pod:4185
10724 msgid ""
10725 "This converts alternative naming schemes for LVs that you might find to the "
10726 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
10727 "LV>."
10728 msgstr ""
10729
10730 #. type: textblock
10731 #: ../fish/guestfish-actions.pod:2820 ../src/guestfs-actions.pod:4189
10732 msgid ""
10733 "This command returns an error if the C<lvname> parameter does not refer to a "
10734 "logical volume."
10735 msgstr ""
10736
10737 #. type: textblock
10738 #: ../fish/guestfish-actions.pod:2823
10739 msgid "See also L</is-lv>."
10740 msgstr "Див. також L</is-lv>."
10741
10742 #. type: =head2
10743 #: ../fish/guestfish-actions.pod:2825
10744 msgid "lvm-clear-filter"
10745 msgstr "lvm-clear-filter"
10746
10747 #. type: verbatim
10748 #: ../fish/guestfish-actions.pod:2827
10749 #, no-wrap
10750 msgid ""
10751 " lvm-clear-filter\n"
10752 "\n"
10753 msgstr ""
10754 " lvm-clear-filter\n"
10755 "\n"
10756
10757 #. type: textblock
10758 #: ../fish/guestfish-actions.pod:2829
10759 msgid ""
10760 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
10761 "block device."
10762 msgstr ""
10763
10764 #. type: textblock
10765 #: ../fish/guestfish-actions.pod:2832 ../fish/guestfish-actions.pod:2863
10766 #: ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4249
10767 msgid ""
10768 "This command also clears the LVM cache and performs a volume group scan."
10769 msgstr ""
10770
10771 #. type: =head2
10772 #: ../fish/guestfish-actions.pod:2835
10773 msgid "lvm-remove-all"
10774 msgstr "lvm-remove-all"
10775
10776 #. type: verbatim
10777 #: ../fish/guestfish-actions.pod:2837
10778 #, no-wrap
10779 msgid ""
10780 " lvm-remove-all\n"
10781 "\n"
10782 msgstr ""
10783 " lvm-remove-all\n"
10784 "\n"
10785
10786 #. type: textblock
10787 #: ../fish/guestfish-actions.pod:2839 ../src/guestfs-actions.pod:4219
10788 msgid ""
10789 "This command removes all LVM logical volumes, volume groups and physical "
10790 "volumes."
10791 msgstr ""
10792
10793 #. type: =head2
10794 #: ../fish/guestfish-actions.pod:2845
10795 msgid "lvm-set-filter"
10796 msgstr "lvm-set-filter"
10797
10798 #. type: verbatim
10799 #: ../fish/guestfish-actions.pod:2847
10800 #, no-wrap
10801 msgid ""
10802 " lvm-set-filter 'devices ...'\n"
10803 "\n"
10804 msgstr ""
10805 " lvm-set-filter 'пристрої...'\n"
10806 "\n"
10807
10808 #. type: textblock
10809 #: ../fish/guestfish-actions.pod:2849 ../src/guestfs-actions.pod:4235
10810 msgid ""
10811 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
10812 "block devices in the list C<devices>, and will ignore all other attached "
10813 "block devices."
10814 msgstr ""
10815
10816 #. type: textblock
10817 #: ../fish/guestfish-actions.pod:2853 ../src/guestfs-actions.pod:4239
10818 msgid ""
10819 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
10820 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
10821 "there are two types of duplication possible: either cloned PVs/VGs which "
10822 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
10823 "same name.  In normal operation you cannot create this situation, but you "
10824 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
10825 "inside the LVM metadata."
10826 msgstr ""
10827
10828 #. type: textblock
10829 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4252
10830 msgid "You can filter whole block devices or individual partitions."
10831 msgstr ""
10832
10833 #. type: textblock
10834 #: ../fish/guestfish-actions.pod:2868 ../src/guestfs-actions.pod:4254
10835 msgid ""
10836 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
10837 "filesystem), even if you are not filtering out that VG."
10838 msgstr ""
10839
10840 #. type: =head2
10841 #: ../fish/guestfish-actions.pod:2872
10842 msgid "lvremove"
10843 msgstr "lvremove"
10844
10845 #. type: verbatim
10846 #: ../fish/guestfish-actions.pod:2874
10847 #, no-wrap
10848 msgid ""
10849 " lvremove device\n"
10850 "\n"
10851 msgstr ""
10852 " lvremove пристрій\n"
10853 "\n"
10854
10855 #. type: textblock
10856 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4268
10857 msgid ""
10858 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
10859 "LV, such as C</dev/VG/LV>."
10860 msgstr ""
10861
10862 #. type: textblock
10863 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4271
10864 msgid ""
10865 "You can also remove all LVs in a volume group by specifying the VG name, C</"
10866 "dev/VG>."
10867 msgstr ""
10868
10869 #. type: =head2
10870 #: ../fish/guestfish-actions.pod:2882
10871 msgid "lvrename"
10872 msgstr "lvrename"
10873
10874 #. type: verbatim
10875 #: ../fish/guestfish-actions.pod:2884
10876 #, no-wrap
10877 msgid ""
10878 " lvrename logvol newlogvol\n"
10879 "\n"
10880 msgstr ""
10881
10882 #. type: textblock
10883 #: ../fish/guestfish-actions.pod:2886 ../src/guestfs-actions.pod:4285
10884 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
10885 msgstr ""
10886
10887 #. type: =head2
10888 #: ../fish/guestfish-actions.pod:2888
10889 msgid "lvresize"
10890 msgstr "lvresize"
10891
10892 #. type: verbatim
10893 #: ../fish/guestfish-actions.pod:2890
10894 #, no-wrap
10895 msgid ""
10896 " lvresize device mbytes\n"
10897 "\n"
10898 msgstr ""
10899
10900 #. type: textblock
10901 #: ../fish/guestfish-actions.pod:2892 ../src/guestfs-actions.pod:4298
10902 msgid ""
10903 "This resizes (expands or shrinks) an existing LVM logical volume to "
10904 "C<mbytes>.  When reducing, data in the reduced part is lost."
10905 msgstr ""
10906
10907 #. type: =head2
10908 #: ../fish/guestfish-actions.pod:2896
10909 msgid "lvresize-free"
10910 msgstr "lvresize-free"
10911
10912 #. type: verbatim
10913 #: ../fish/guestfish-actions.pod:2898
10914 #, no-wrap
10915 msgid ""
10916 " lvresize-free lv percent\n"
10917 "\n"
10918 msgstr ""
10919
10920 #. type: textblock
10921 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4313
10922 msgid ""
10923 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
10924 "remaining free space in the volume group.  Commonly you would call this with "
10925 "pc = 100 which expands the logical volume as much as possible, using all "
10926 "remaining free space in the volume group."
10927 msgstr ""
10928
10929 #. type: =head2
10930 #: ../fish/guestfish-actions.pod:2906
10931 msgid "lvs"
10932 msgstr "lvs"
10933
10934 #. type: verbatim
10935 #: ../fish/guestfish-actions.pod:2908
10936 #, no-wrap
10937 msgid ""
10938 " lvs\n"
10939 "\n"
10940 msgstr ""
10941 " lvs\n"
10942 "\n"
10943
10944 #. type: textblock
10945 #: ../fish/guestfish-actions.pod:2910 ../src/guestfs-actions.pod:4328
10946 msgid ""
10947 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10948 "(8)> command."
10949 msgstr ""
10950
10951 #. type: textblock
10952 #: ../fish/guestfish-actions.pod:2913 ../src/guestfs-actions.pod:4331
10953 msgid ""
10954 "This returns a list of the logical volume device names (eg. C</dev/"
10955 "VolGroup00/LogVol00>)."
10956 msgstr ""
10957
10958 #. type: textblock
10959 #: ../fish/guestfish-actions.pod:2916
10960 msgid "See also L</lvs-full>, L</list-filesystems>."
10961 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
10962
10963 #. type: =head2
10964 #: ../fish/guestfish-actions.pod:2918
10965 msgid "lvs-full"
10966 msgstr "lvs-full"
10967
10968 #. type: verbatim
10969 #: ../fish/guestfish-actions.pod:2920
10970 #, no-wrap
10971 msgid ""
10972 " lvs-full\n"
10973 "\n"
10974 msgstr ""
10975 " lvs-full\n"
10976 "\n"
10977
10978 #. type: textblock
10979 #: ../fish/guestfish-actions.pod:2922 ../src/guestfs-actions.pod:4347
10980 msgid ""
10981 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
10982 "(8)> command.  The \"full\" version includes all fields."
10983 msgstr ""
10984
10985 #. type: =head2
10986 #: ../fish/guestfish-actions.pod:2925
10987 msgid "lvuuid"
10988 msgstr "lvuuid"
10989
10990 #. type: verbatim
10991 #: ../fish/guestfish-actions.pod:2927
10992 #, no-wrap
10993 msgid ""
10994 " lvuuid device\n"
10995 "\n"
10996 msgstr ""
10997 " lvuuid пристрій\n"
10998 "\n"
10999
11000 #. type: textblock
11001 #: ../fish/guestfish-actions.pod:2929 ../src/guestfs-actions.pod:4362
11002 msgid "This command returns the UUID of the LVM LV C<device>."
11003 msgstr ""
11004
11005 #. type: =head2
11006 #: ../fish/guestfish-actions.pod:2931
11007 msgid "lxattrlist"
11008 msgstr "lxattrlist"
11009
11010 #. type: verbatim
11011 #: ../fish/guestfish-actions.pod:2933
11012 #, no-wrap
11013 msgid ""
11014 " lxattrlist path 'names ...'\n"
11015 "\n"
11016 msgstr ""
11017
11018 #. type: textblock
11019 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4376
11020 msgid ""
11021 "This call allows you to get the extended attributes of multiple files, where "
11022 "all files are in the directory C<path>.  C<names> is the list of files from "
11023 "this directory."
11024 msgstr ""
11025
11026 #. type: textblock
11027 #: ../fish/guestfish-actions.pod:2939 ../src/guestfs-actions.pod:4380
11028 msgid ""
11029 "On return you get a flat list of xattr structs which must be interpreted "
11030 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11031 "C<attrval> in this struct is zero-length to indicate there was an error "
11032 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11033 "number (the number of following attributes for this file, which could be C<"
11034 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11035 "for the first named file.  This repeats for the second and subsequent files."
11036 msgstr ""
11037
11038 #. type: textblock
11039 #: ../fish/guestfish-actions.pod:2949
11040 msgid ""
11041 "This call is intended for programs that want to efficiently list a directory "
11042 "contents without making many round-trips.  See also L</lstatlist> for a "
11043 "similarly efficient call for getting standard stats.  Very long directory "
11044 "listings might cause the protocol message size to be exceeded, causing this "
11045 "call to fail.  The caller must split up such requests into smaller groups of "
11046 "names."
11047 msgstr ""
11048
11049 #. type: =head2
11050 #: ../fish/guestfish-actions.pod:2957
11051 msgid "mkdir"
11052 msgstr "mkdir"
11053
11054 #. type: verbatim
11055 #: ../fish/guestfish-actions.pod:2959
11056 #, no-wrap
11057 msgid ""
11058 " mkdir path\n"
11059 "\n"
11060 msgstr ""
11061 " mkdir шлях\n"
11062 "\n"
11063
11064 #. type: textblock
11065 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4410
11066 msgid "Create a directory named C<path>."
11067 msgstr ""
11068
11069 #. type: =head2
11070 #: ../fish/guestfish-actions.pod:2963
11071 msgid "mkdir-mode"
11072 msgstr "mkdir-mode"
11073
11074 #. type: verbatim
11075 #: ../fish/guestfish-actions.pod:2965
11076 #, no-wrap
11077 msgid ""
11078 " mkdir-mode path mode\n"
11079 "\n"
11080 msgstr ""
11081 " mkdir-mode шлях режим\n"
11082 "\n"
11083
11084 #. type: textblock
11085 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4423
11086 msgid ""
11087 "This command creates a directory, setting the initial permissions of the "
11088 "directory to C<mode>."
11089 msgstr ""
11090
11091 #. type: textblock
11092 #: ../fish/guestfish-actions.pod:2970 ../src/guestfs-actions.pod:4426
11093 msgid ""
11094 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11095 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11096 "other ways."
11097 msgstr ""
11098
11099 #. type: textblock
11100 #: ../fish/guestfish-actions.pod:2974
11101 msgid "See also L</mkdir>, L</umask>"
11102 msgstr "Див. також L</mkdir>, L</umask>"
11103
11104 #. type: =head2
11105 #: ../fish/guestfish-actions.pod:2976
11106 msgid "mkdir-p"
11107 msgstr "mkdir-p"
11108
11109 #. type: verbatim
11110 #: ../fish/guestfish-actions.pod:2978
11111 #, no-wrap
11112 msgid ""
11113 " mkdir-p path\n"
11114 "\n"
11115 msgstr ""
11116 " mkdir-p шлях\n"
11117 "\n"
11118
11119 #. type: textblock
11120 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4442
11121 msgid ""
11122 "Create a directory named C<path>, creating any parent directories as "
11123 "necessary.  This is like the C<mkdir -p> shell command."
11124 msgstr ""
11125
11126 #. type: =head2
11127 #: ../fish/guestfish-actions.pod:2983
11128 msgid "mkdtemp"
11129 msgstr "mkdtemp"
11130
11131 #. type: verbatim
11132 #: ../fish/guestfish-actions.pod:2985
11133 #, no-wrap
11134 msgid ""
11135 " mkdtemp template\n"
11136 "\n"
11137 msgstr ""
11138 " mkdtemp шаблон\n"
11139 "\n"
11140
11141 #. type: textblock
11142 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4455
11143 msgid ""
11144 "This command creates a temporary directory.  The C<template> parameter "
11145 "should be a full pathname for the temporary directory name with the final "
11146 "six characters being \"XXXXXX\"."
11147 msgstr ""
11148
11149 #. type: textblock
11150 #: ../fish/guestfish-actions.pod:2992 ../src/guestfs-actions.pod:4460
11151 msgid ""
11152 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11153 "being suitable for Windows filesystems."
11154 msgstr ""
11155
11156 #. type: textblock
11157 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4463
11158 msgid "The name of the temporary directory that was created is returned."
11159 msgstr ""
11160
11161 #. type: textblock
11162 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4466
11163 msgid "The temporary directory is created with mode 0700 and is owned by root."
11164 msgstr ""
11165
11166 #. type: textblock
11167 #: ../fish/guestfish-actions.pod:3001 ../src/guestfs-actions.pod:4469
11168 msgid ""
11169 "The caller is responsible for deleting the temporary directory and its "
11170 "contents after use."
11171 msgstr ""
11172
11173 #. type: textblock
11174 #: ../fish/guestfish-actions.pod:3004 ../src/guestfs-actions.pod:4472
11175 msgid "See also: L<mkdtemp(3)>"
11176 msgstr ""
11177
11178 #. type: =head2
11179 #: ../fish/guestfish-actions.pod:3006
11180 msgid "mke2fs-J"
11181 msgstr "mke2fs-J"
11182
11183 #. type: verbatim
11184 #: ../fish/guestfish-actions.pod:3008
11185 #, no-wrap
11186 msgid ""
11187 " mke2fs-J fstype blocksize device journal\n"
11188 "\n"
11189 msgstr ""
11190
11191 #. type: textblock
11192 #: ../fish/guestfish-actions.pod:3010 ../src/guestfs-actions.pod:4488
11193 msgid ""
11194 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11195 "C<journal>.  It is equivalent to the command:"
11196 msgstr ""
11197
11198 #. type: verbatim
11199 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4492
11200 #, no-wrap
11201 msgid ""
11202 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11203 "\n"
11204 msgstr ""
11205 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11206 "\n"
11207
11208 #. type: textblock
11209 #: ../fish/guestfish-actions.pod:3016
11210 msgid "See also L</mke2journal>."
11211 msgstr "Див. також L</mke2journal>."
11212
11213 #. type: =head2
11214 #: ../fish/guestfish-actions.pod:3018
11215 msgid "mke2fs-JL"
11216 msgstr "mke2fs-JL"
11217
11218 #. type: verbatim
11219 #: ../fish/guestfish-actions.pod:3020
11220 #, no-wrap
11221 msgid ""
11222 " mke2fs-JL fstype blocksize device label\n"
11223 "\n"
11224 msgstr ""
11225
11226 #. type: textblock
11227 #: ../fish/guestfish-actions.pod:3022 ../src/guestfs-actions.pod:4509
11228 msgid ""
11229 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11230 "the journal labeled C<label>."
11231 msgstr ""
11232
11233 #. type: textblock
11234 #: ../fish/guestfish-actions.pod:3025
11235 msgid "See also L</mke2journal-L>."
11236 msgstr "Див. також L</mke2journal-L>."
11237
11238 #. type: =head2
11239 #: ../fish/guestfish-actions.pod:3027
11240 msgid "mke2fs-JU"
11241 msgstr "mke2fs-JU"
11242
11243 #. type: verbatim
11244 #: ../fish/guestfish-actions.pod:3029
11245 #, no-wrap
11246 msgid ""
11247 " mke2fs-JU fstype blocksize device uuid\n"
11248 "\n"
11249 msgstr ""
11250
11251 #. type: textblock
11252 #: ../fish/guestfish-actions.pod:3031 ../src/guestfs-actions.pod:4527
11253 msgid ""
11254 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11255 "the journal with UUID C<uuid>."
11256 msgstr ""
11257
11258 #. type: textblock
11259 #: ../fish/guestfish-actions.pod:3034
11260 msgid "See also L</mke2journal-U>."
11261 msgstr "Див. також L</mke2journal-U>."
11262
11263 #. type: =head2
11264 #: ../fish/guestfish-actions.pod:3036
11265 msgid "mke2journal"
11266 msgstr "mke2journal"
11267
11268 #. type: verbatim
11269 #: ../fish/guestfish-actions.pod:3038
11270 #, no-wrap
11271 msgid ""
11272 " mke2journal blocksize device\n"
11273 "\n"
11274 msgstr ""
11275
11276 #. type: textblock
11277 #: ../fish/guestfish-actions.pod:3040 ../src/guestfs-actions.pod:4543
11278 msgid ""
11279 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11280 "command:"
11281 msgstr ""
11282
11283 #. type: verbatim
11284 #: ../fish/guestfish-actions.pod:3043 ../src/guestfs-actions.pod:4546
11285 #, no-wrap
11286 msgid ""
11287 " mke2fs -O journal_dev -b blocksize device\n"
11288 "\n"
11289 msgstr ""
11290
11291 #. type: =head2
11292 #: ../fish/guestfish-actions.pod:3045
11293 msgid "mke2journal-L"
11294 msgstr "mke2journal-L"
11295
11296 #. type: verbatim
11297 #: ../fish/guestfish-actions.pod:3047
11298 #, no-wrap
11299 msgid ""
11300 " mke2journal-L blocksize label device\n"
11301 "\n"
11302 msgstr ""
11303
11304 #. type: textblock
11305 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4560
11306 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11307 msgstr ""
11308
11309 #. type: =head2
11310 #: ../fish/guestfish-actions.pod:3051
11311 msgid "mke2journal-U"
11312 msgstr "mke2journal-U"
11313
11314 #. type: verbatim
11315 #: ../fish/guestfish-actions.pod:3053
11316 #, no-wrap
11317 msgid ""
11318 " mke2journal-U blocksize uuid device\n"
11319 "\n"
11320 msgstr ""
11321
11322 #. type: textblock
11323 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4574
11324 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11325 msgstr ""
11326
11327 #. type: =head2
11328 #: ../fish/guestfish-actions.pod:3057
11329 msgid "mkfifo"
11330 msgstr "mkfifo"
11331
11332 #. type: verbatim
11333 #: ../fish/guestfish-actions.pod:3059
11334 #, no-wrap
11335 msgid ""
11336 " mkfifo mode path\n"
11337 "\n"
11338 msgstr ""
11339 " mkfifo режим шлях\n"
11340 "\n"
11341
11342 #. type: textblock
11343 #: ../fish/guestfish-actions.pod:3061
11344 msgid ""
11345 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11346 "is just a convenient wrapper around L</mknod>."
11347 msgstr ""
11348
11349 #. type: =head2
11350 #: ../fish/guestfish-actions.pod:3067
11351 msgid "mkfs"
11352 msgstr "mkfs"
11353
11354 #. type: verbatim
11355 #: ../fish/guestfish-actions.pod:3069
11356 #, no-wrap
11357 msgid ""
11358 " mkfs fstype device\n"
11359 "\n"
11360 msgstr ""
11361 " mkfs тип_файлової_системи пристрій\n"
11362 "\n"
11363
11364 #. type: textblock
11365 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4604
11366 msgid ""
11367 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11368 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11369 msgstr ""
11370
11371 #. type: =head2
11372 #: ../fish/guestfish-actions.pod:3075
11373 msgid "mkfs-b"
11374 msgstr "mkfs-b"
11375
11376 #. type: verbatim
11377 #: ../fish/guestfish-actions.pod:3077
11378 #, no-wrap
11379 msgid ""
11380 " mkfs-b fstype blocksize device\n"
11381 "\n"
11382 msgstr ""
11383
11384 #. type: textblock
11385 #: ../fish/guestfish-actions.pod:3079
11386 msgid ""
11387 "This call is similar to L</mkfs>, but it allows you to control the block "
11388 "size of the resulting filesystem.  Supported block sizes depend on the "
11389 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11390 msgstr ""
11391
11392 #. type: textblock
11393 #: ../fish/guestfish-actions.pod:3084 ../fish/guestfish-actions.pod:3111
11394 #: ../src/guestfs-actions.pod:4632 ../src/guestfs-actions.pod:4670
11395 msgid ""
11396 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11397 "cluster size."
11398 msgstr ""
11399
11400 #. type: textblock
11401 #: ../fish/guestfish-actions.pod:3087
11402 msgid ""
11403 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11404 "instead."
11405 msgstr ""
11406
11407 #. type: =head2
11408 #: ../fish/guestfish-actions.pod:3094
11409 msgid "mkfs-opts"
11410 msgstr "mkfs-opts"
11411
11412 #. type: verbatim
11413 #: ../fish/guestfish-actions.pod:3096
11414 #, no-wrap
11415 msgid ""
11416 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11417 "\n"
11418 msgstr ""
11419
11420 #. type: textblock
11421 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4657
11422 msgid ""
11423 "This function creates a filesystem on C<device>.  The filesystem type is "
11424 "C<fstype>, for example C<ext3>."
11425 msgstr ""
11426
11427 #. type: =item
11428 #: ../fish/guestfish-actions.pod:3105 ../src/guestfs-actions.pod:4664
11429 msgid "C<blocksize>"
11430 msgstr "C<blocksize>"
11431
11432 #. type: textblock
11433 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4666
11434 msgid ""
11435 "The filesystem block size.  Supported block sizes depend on the filesystem "
11436 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11437 "filesystems."
11438 msgstr ""
11439
11440 #. type: textblock
11441 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4673
11442 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11443 msgstr ""
11444
11445 #. type: =item
11446 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4675
11447 msgid "C<features>"
11448 msgstr "C<features>"
11449
11450 #. type: textblock
11451 #: ../fish/guestfish-actions.pod:3118 ../src/guestfs-actions.pod:4677
11452 msgid "This passes the I<-O> parameter to the external mkfs program."
11453 msgstr ""
11454
11455 #. type: textblock
11456 #: ../fish/guestfish-actions.pod:3120 ../src/guestfs-actions.pod:4679
11457 msgid ""
11458 "For certain filesystem types, this allows extra filesystem features to be "
11459 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11460 msgstr ""
11461
11462 #. type: textblock
11463 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
11464 msgid ""
11465 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11466 "type."
11467 msgstr ""
11468
11469 #. type: =item
11470 #: ../fish/guestfish-actions.pod:3127 ../src/guestfs-actions.pod:4686
11471 msgid "C<inode>"
11472 msgstr ""
11473
11474 #. type: textblock
11475 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4688
11476 msgid ""
11477 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11478 "sets the inode size (only for ext2/3/4 filesystems at present)."
11479 msgstr ""
11480
11481 #. type: =item
11482 #: ../fish/guestfish-actions.pod:3132 ../src/guestfs-actions.pod:4691
11483 msgid "C<sectorsize>"
11484 msgstr ""
11485
11486 #. type: textblock
11487 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4693
11488 msgid ""
11489 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11490 "sets sector size for ufs filesystem."
11491 msgstr ""
11492
11493 #. type: =head2
11494 #: ../fish/guestfish-actions.pod:3141
11495 msgid "mkmountpoint"
11496 msgstr "mkmountpoint"
11497
11498 #. type: verbatim
11499 #: ../fish/guestfish-actions.pod:3143
11500 #, no-wrap
11501 msgid ""
11502 " mkmountpoint exemptpath\n"
11503 "\n"
11504 msgstr ""
11505
11506 #. type: textblock
11507 #: ../fish/guestfish-actions.pod:3145
11508 msgid ""
11509 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11510 "to create extra mountpoints before mounting the first filesystem."
11511 msgstr ""
11512
11513 #. type: textblock
11514 #: ../fish/guestfish-actions.pod:3149 ../src/guestfs-actions.pod:4736
11515 msgid ""
11516 "These calls are I<only> necessary in some very limited circumstances, mainly "
11517 "the case where you want to mount a mix of unrelated and/or read-only "
11518 "filesystems together."
11519 msgstr ""
11520
11521 #. type: textblock
11522 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4740
11523 msgid ""
11524 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11525 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11526 "inside that.  You can unpack this as follows in guestfish:"
11527 msgstr ""
11528
11529 #. type: verbatim
11530 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4745
11531 #, no-wrap
11532 msgid ""
11533 " add-ro Fedora-11-i686-Live.iso\n"
11534 " run\n"
11535 " mkmountpoint /cd\n"
11536 " mkmountpoint /sqsh\n"
11537 " mkmountpoint /ext3fs\n"
11538 " mount /dev/sda /cd\n"
11539 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11540 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11541 "\n"
11542 msgstr ""
11543 " add-ro Fedora-11-i686-Live.iso\n"
11544 " run\n"
11545 " mkmountpoint /cd\n"
11546 " mkmountpoint /sqsh\n"
11547 " mkmountpoint /ext3fs\n"
11548 " mount /dev/sda /cd\n"
11549 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11550 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11551 "\n"
11552
11553 #. type: textblock
11554 #: ../fish/guestfish-actions.pod:3167 ../src/guestfs-actions.pod:4754
11555 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11556 msgstr ""
11557
11558 #. type: textblock
11559 #: ../fish/guestfish-actions.pod:3169
11560 msgid ""
11561 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
11562 "unexpected errors if you try to mix these calls.  It is safest to manually "
11563 "unmount filesystems and remove mountpoints after use."
11564 msgstr ""
11565
11566 #. type: textblock
11567 #: ../fish/guestfish-actions.pod:3173
11568 msgid ""
11569 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11570 "for this to work for manual mountpoints, you must ensure that the innermost "
11571 "mountpoints have the longest pathnames, as in the example code above."
11572 msgstr ""
11573
11574 #. type: textblock
11575 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4765
11576 msgid ""
11577 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11578 msgstr ""
11579
11580 #. type: textblock
11581 #: ../fish/guestfish-actions.pod:3180
11582 msgid ""
11583 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11584 "L</umount-all> to be called when the handle is closed which can also trigger "
11585 "these issues."
11586 msgstr ""
11587
11588 #. type: =head2
11589 #: ../fish/guestfish-actions.pod:3184
11590 msgid "mknod"
11591 msgstr "mknod"
11592
11593 #. type: verbatim
11594 #: ../fish/guestfish-actions.pod:3186
11595 #, no-wrap
11596 msgid ""
11597 " mknod mode devmajor devminor path\n"
11598 "\n"
11599 msgstr ""
11600
11601 #. type: textblock
11602 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4784
11603 msgid ""
11604 "This call creates block or character special devices, or named pipes (FIFOs)."
11605 msgstr ""
11606
11607 #. type: textblock
11608 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4787
11609 msgid ""
11610 "The C<mode> parameter should be the mode, using the standard constants.  "
11611 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11612 "used when creating block and character special devices."
11613 msgstr ""
11614
11615 #. type: textblock
11616 #: ../fish/guestfish-actions.pod:3196
11617 msgid ""
11618 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11619 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11620 "regular file).  These constants are available in the standard Linux header "
11621 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11622 "wrappers around this command which bitwise OR in the appropriate constant "
11623 "for you."
11624 msgstr ""
11625
11626 #. type: =head2
11627 #: ../fish/guestfish-actions.pod:3206
11628 msgid "mknod-b"
11629 msgstr "mknod-b"
11630
11631 #. type: verbatim
11632 #: ../fish/guestfish-actions.pod:3208
11633 #, no-wrap
11634 msgid ""
11635 " mknod-b mode devmajor devminor path\n"
11636 "\n"
11637 msgstr ""
11638
11639 #. type: textblock
11640 #: ../fish/guestfish-actions.pod:3210
11641 msgid ""
11642 "This call creates a block device node called C<path> with mode C<mode> and "
11643 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11644 "wrapper around L</mknod>."
11645 msgstr ""
11646
11647 #. type: =head2
11648 #: ../fish/guestfish-actions.pod:3216
11649 msgid "mknod-c"
11650 msgstr "mknod-c"
11651
11652 #. type: verbatim
11653 #: ../fish/guestfish-actions.pod:3218
11654 #, no-wrap
11655 msgid ""
11656 " mknod-c mode devmajor devminor path\n"
11657 "\n"
11658 msgstr ""
11659
11660 #. type: textblock
11661 #: ../fish/guestfish-actions.pod:3220
11662 msgid ""
11663 "This call creates a char device node called C<path> with mode C<mode> and "
11664 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11665 "wrapper around L</mknod>."
11666 msgstr ""
11667
11668 #. type: =head2
11669 #: ../fish/guestfish-actions.pod:3226
11670 msgid "mkswap"
11671 msgstr "mkswap"
11672
11673 #. type: verbatim
11674 #: ../fish/guestfish-actions.pod:3228
11675 #, no-wrap
11676 msgid ""
11677 " mkswap device\n"
11678 "\n"
11679 msgstr ""
11680 " mkswap пристрій\n"
11681 "\n"
11682
11683 #. type: textblock
11684 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4850
11685 msgid "Create a swap partition on C<device>."
11686 msgstr ""
11687
11688 #. type: =head2
11689 #: ../fish/guestfish-actions.pod:3232
11690 msgid "mkswap-L"
11691 msgstr "mkswap-L"
11692
11693 #. type: verbatim
11694 #: ../fish/guestfish-actions.pod:3234
11695 #, no-wrap
11696 msgid ""
11697 " mkswap-L label device\n"
11698 "\n"
11699 msgstr ""
11700 " mkswap-L мітка пристрій\n"
11701 "\n"
11702
11703 #. type: textblock
11704 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4863
11705 msgid "Create a swap partition on C<device> with label C<label>."
11706 msgstr ""
11707
11708 #. type: textblock
11709 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4865
11710 msgid ""
11711 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
11712 "sda>), just to a partition.  This appears to be a limitation of the kernel "
11713 "or swap tools."
11714 msgstr ""
11715
11716 #. type: =head2
11717 #: ../fish/guestfish-actions.pod:3242
11718 msgid "mkswap-U"
11719 msgstr "mkswap-U"
11720
11721 #. type: verbatim
11722 #: ../fish/guestfish-actions.pod:3244
11723 #, no-wrap
11724 msgid ""
11725 " mkswap-U uuid device\n"
11726 "\n"
11727 msgstr ""
11728 " mkswap-U uuid пристрій\n"
11729 "\n"
11730
11731 #. type: textblock
11732 #: ../fish/guestfish-actions.pod:3246 ../src/guestfs-actions.pod:4880
11733 msgid "Create a swap partition on C<device> with UUID C<uuid>."
11734 msgstr ""
11735
11736 #. type: =head2
11737 #: ../fish/guestfish-actions.pod:3248
11738 msgid "mkswap-file"
11739 msgstr "mkswap-file"
11740
11741 #. type: verbatim
11742 #: ../fish/guestfish-actions.pod:3250
11743 #, no-wrap
11744 msgid ""
11745 " mkswap-file path\n"
11746 "\n"
11747 msgstr ""
11748 " mkswap-file шлях\n"
11749 "\n"
11750
11751 #. type: textblock
11752 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4892
11753 msgid "Create a swap file."
11754 msgstr "Створити файл резервної пам’яті."
11755
11756 #. type: textblock
11757 #: ../fish/guestfish-actions.pod:3254
11758 msgid ""
11759 "This command just writes a swap file signature to an existing file.  To "
11760 "create the file itself, use something like L</fallocate>."
11761 msgstr ""
11762
11763 #. type: =head2
11764 #: ../fish/guestfish-actions.pod:3257
11765 msgid "modprobe"
11766 msgstr "modprobe"
11767
11768 #. type: verbatim
11769 #: ../fish/guestfish-actions.pod:3259
11770 #, no-wrap
11771 msgid ""
11772 " modprobe modulename\n"
11773 "\n"
11774 msgstr ""
11775 " modprobe назва_модуля\n"
11776 "\n"
11777
11778 #. type: textblock
11779 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:4907
11780 msgid "This loads a kernel module in the appliance."
11781 msgstr ""
11782
11783 #. type: textblock
11784 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4909
11785 msgid ""
11786 "The kernel module must have been whitelisted when libguestfs was built (see "
11787 "C<appliance/kmod.whitelist.in> in the source)."
11788 msgstr ""
11789
11790 #. type: =head2
11791 #: ../fish/guestfish-actions.pod:3266
11792 msgid "mount"
11793 msgstr "mount"
11794
11795 #. type: verbatim
11796 #: ../fish/guestfish-actions.pod:3268
11797 #, no-wrap
11798 msgid ""
11799 " mount device mountpoint\n"
11800 "\n"
11801 msgstr ""
11802 " mount пристрій точка_монтування\n"
11803 "\n"
11804
11805 #. type: textblock
11806 #: ../fish/guestfish-actions.pod:3270 ../src/guestfs-actions.pod:4930
11807 msgid ""
11808 "Mount a guest disk at a position in the filesystem.  Block devices are named "
11809 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
11810 "those block devices contain partitions, they will have the usual names (eg. "
11811 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
11812 msgstr ""
11813
11814 #. type: textblock
11815 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4936
11816 msgid ""
11817 "The rules are the same as for L<mount(2)>: A filesystem must first be "
11818 "mounted on C</> before others can be mounted.  Other filesystems can only be "
11819 "mounted on directories which already exist."
11820 msgstr ""
11821
11822 #. type: textblock
11823 #: ../fish/guestfish-actions.pod:3281 ../src/guestfs-actions.pod:4941
11824 msgid ""
11825 "The mounted filesystem is writable, if we have sufficient permissions on the "
11826 "underlying device."
11827 msgstr ""
11828
11829 #. type: textblock
11830 #: ../fish/guestfish-actions.pod:3284
11831 msgid ""
11832 "B<Important note:> When you use this call, the filesystem options C<sync> "
11833 "and C<noatime> are set implicitly.  This was originally done because we "
11834 "thought it would improve reliability, but it turns out that I<-o sync> has a "
11835 "very large negative performance impact and negligible effect on "
11836 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
11837 "code that needs performance, and instead use L</mount-options> (use an empty "
11838 "string for the first parameter if you don't want any options)."
11839 msgstr ""
11840
11841 #. type: textblock
11842 #: ../fish/guestfish-actions.pod:3294
11843 msgid ""
11844 "I<This function is deprecated.> In new code, use the L</mount_options> call "
11845 "instead."
11846 msgstr ""
11847
11848 #. type: =head2
11849 #: ../fish/guestfish-actions.pod:3301
11850 msgid "mount-9p"
11851 msgstr ""
11852
11853 #. type: verbatim
11854 #: ../fish/guestfish-actions.pod:3303
11855 #, no-wrap
11856 msgid ""
11857 " mount-9p mounttag mountpoint [options:..]\n"
11858 "\n"
11859 msgstr ""
11860
11861 #. type: textblock
11862 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:4973
11863 msgid ""
11864 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
11865 "C<mountpoint>."
11866 msgstr ""
11867
11868 #. type: textblock
11869 #: ../fish/guestfish-actions.pod:3308 ../src/guestfs-actions.pod:4976
11870 msgid ""
11871 "If required, C<trans=virtio> will be automatically added to the options.  "
11872 "Any other options required can be passed in the optional C<options> "
11873 "parameter."
11874 msgstr ""
11875
11876 #. type: =head2
11877 #: ../fish/guestfish-actions.pod:3314
11878 msgid "mount-loop"
11879 msgstr "mount-loop"
11880
11881 #. type: verbatim
11882 #: ../fish/guestfish-actions.pod:3316
11883 #, no-wrap
11884 msgid ""
11885 " mount-loop file mountpoint\n"
11886 "\n"
11887 msgstr ""
11888
11889 #. type: textblock
11890 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5015
11891 msgid ""
11892 "This command lets you mount C<file> (a filesystem image in a file) on a "
11893 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
11894 "mountpoint>."
11895 msgstr ""
11896
11897 #. type: =head2
11898 #: ../fish/guestfish-actions.pod:3322
11899 msgid "mount-options"
11900 msgstr "mount-options"
11901
11902 #. type: verbatim
11903 #: ../fish/guestfish-actions.pod:3324
11904 #, no-wrap
11905 msgid ""
11906 " mount-options options device mountpoint\n"
11907 "\n"
11908 msgstr ""
11909
11910 #. type: textblock
11911 #: ../fish/guestfish-actions.pod:3326
11912 msgid ""
11913 "This is the same as the L</mount> command, but it allows you to set the "
11914 "mount options as for the L<mount(8)> I<-o> flag."
11915 msgstr ""
11916
11917 #. type: textblock
11918 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5035
11919 msgid ""
11920 "If the C<options> parameter is an empty string, then no options are passed "
11921 "(all options default to whatever the filesystem uses)."
11922 msgstr ""
11923
11924 #. type: =head2
11925 #: ../fish/guestfish-actions.pod:3334
11926 msgid "mount-ro"
11927 msgstr "mount-ro"
11928
11929 #. type: verbatim
11930 #: ../fish/guestfish-actions.pod:3336
11931 #, no-wrap
11932 msgid ""
11933 " mount-ro device mountpoint\n"
11934 "\n"
11935 msgstr ""
11936 " mount-ro пристрій точка_монтування\n"
11937 "\n"
11938
11939 #. type: textblock
11940 #: ../fish/guestfish-actions.pod:3338
11941 msgid ""
11942 "This is the same as the L</mount> command, but it mounts the filesystem with "
11943 "the read-only (I<-o ro>) flag."
11944 msgstr ""
11945
11946 #. type: =head2
11947 #: ../fish/guestfish-actions.pod:3341
11948 msgid "mount-vfs"
11949 msgstr "mount-vfs"
11950
11951 #. type: verbatim
11952 #: ../fish/guestfish-actions.pod:3343
11953 #, no-wrap
11954 msgid ""
11955 " mount-vfs options vfstype device mountpoint\n"
11956 "\n"
11957 msgstr ""
11958
11959 #. type: textblock
11960 #: ../fish/guestfish-actions.pod:3345
11961 msgid ""
11962 "This is the same as the L</mount> command, but it allows you to set both the "
11963 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
11964 msgstr ""
11965
11966 #. type: =head2
11967 #: ../fish/guestfish-actions.pod:3349
11968 msgid "mountpoints"
11969 msgstr "mountpoints"
11970
11971 #. type: verbatim
11972 #: ../fish/guestfish-actions.pod:3351
11973 #, no-wrap
11974 msgid ""
11975 " mountpoints\n"
11976 "\n"
11977 msgstr ""
11978 " mountpoints\n"
11979 "\n"
11980
11981 #. type: textblock
11982 #: ../fish/guestfish-actions.pod:3353
11983 msgid ""
11984 "This call is similar to L</mounts>.  That call returns a list of devices.  "
11985 "This one returns a hash table (map) of device name to directory where the "
11986 "device is mounted."
11987 msgstr ""
11988
11989 #. type: =head2
11990 #: ../fish/guestfish-actions.pod:3357
11991 msgid "mounts"
11992 msgstr "mounts"
11993
11994 #. type: verbatim
11995 #: ../fish/guestfish-actions.pod:3359
11996 #, no-wrap
11997 msgid ""
11998 " mounts\n"
11999 "\n"
12000 msgstr ""
12001 " mounts\n"
12002 "\n"
12003
12004 #. type: textblock
12005 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
12006 msgid ""
12007 "This returns the list of currently mounted filesystems.  It returns the list "
12008 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12009 msgstr ""
12010
12011 #. type: textblock
12012 #: ../fish/guestfish-actions.pod:3364 ../src/guestfs-actions.pod:5099
12013 msgid "Some internal mounts are not shown."
12014 msgstr ""
12015
12016 #. type: textblock
12017 #: ../fish/guestfish-actions.pod:3366
12018 msgid "See also: L</mountpoints>"
12019 msgstr "Див. також L</mountpoints>"
12020
12021 #. type: =head2
12022 #: ../fish/guestfish-actions.pod:3368
12023 msgid "mv"
12024 msgstr "mv"
12025
12026 #. type: verbatim
12027 #: ../fish/guestfish-actions.pod:3370
12028 #, no-wrap
12029 msgid ""
12030 " mv src dest\n"
12031 "\n"
12032 msgstr ""
12033 " mv джерело призначення\n"
12034 "\n"
12035
12036 #. type: textblock
12037 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5116
12038 msgid ""
12039 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12040 "destination filename or destination directory."
12041 msgstr ""
12042
12043 #. type: =head2
12044 #: ../fish/guestfish-actions.pod:3375
12045 msgid "ntfs-3g-probe"
12046 msgstr "ntfs-3g-probe"
12047
12048 #. type: verbatim
12049 #: ../fish/guestfish-actions.pod:3377
12050 #, no-wrap
12051 msgid ""
12052 " ntfs-3g-probe true|false device\n"
12053 "\n"
12054 msgstr ""
12055
12056 #. type: textblock
12057 #: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5130
12058 msgid ""
12059 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12060 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12061 "write, and some cannot be mounted at all)."
12062 msgstr ""
12063
12064 #. type: textblock
12065 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5134
12066 msgid ""
12067 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12068 "can be mounted read-write.  Set it to false if you want to test if the "
12069 "volume can be mounted read-only."
12070 msgstr ""
12071
12072 #. type: textblock
12073 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5138
12074 msgid ""
12075 "The return value is an integer which C<0> if the operation would succeed, or "
12076 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12077 msgstr ""
12078
12079 #. type: =head2
12080 #: ../fish/guestfish-actions.pod:3391
12081 msgid "ntfsresize"
12082 msgstr "ntfsresize"
12083
12084 #. type: verbatim
12085 #: ../fish/guestfish-actions.pod:3393
12086 #, no-wrap
12087 msgid ""
12088 " ntfsresize device\n"
12089 "\n"
12090 msgstr ""
12091 " ntfsresize пристрій\n"
12092 "\n"
12093
12094 #. type: textblock
12095 #: ../fish/guestfish-actions.pod:3395 ../fish/guestfish-actions.pod:3419
12096 #: ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:5191
12097 msgid ""
12098 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12099 "size of the underlying device."
12100 msgstr ""
12101
12102 #. type: textblock
12103 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5162
12104 msgid ""
12105 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12106 "consistency check (for safety).  You have to boot into Windows to perform "
12107 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12108 "resize filesystems which have been marked in this way.  So in effect it is "
12109 "not possible to call ntfsresize multiple times on a single filesystem "
12110 "without booting into Windows between each resize."
12111 msgstr ""
12112
12113 #. type: textblock
12114 #: ../fish/guestfish-actions.pod:3406 ../fish/guestfish-actions.pod:3445
12115 #: ../src/guestfs-actions.pod:5170 ../src/guestfs-actions.pod:5217
12116 msgid "See also L<ntfsresize(8)>."
12117 msgstr ""
12118
12119 #. type: textblock
12120 #: ../fish/guestfish-actions.pod:3408 ../fish/guestfish-actions.pod:3456
12121 msgid ""
12122 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12123 "call instead."
12124 msgstr ""
12125
12126 #. type: =head2
12127 #: ../fish/guestfish-actions.pod:3415
12128 msgid "ntfsresize-opts"
12129 msgstr ""
12130
12131 #. type: verbatim
12132 #: ../fish/guestfish-actions.pod:3417
12133 #, no-wrap
12134 msgid ""
12135 " ntfsresize-opts device [size:..] [force:..]\n"
12136 "\n"
12137 msgstr ""
12138
12139 #. type: textblock
12140 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5200
12141 msgid ""
12142 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12143 "resized to fit the container (eg. partition)."
12144 msgstr ""
12145
12146 #. type: =item
12147 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5203
12148 msgid "C<force>"
12149 msgstr ""
12150
12151 #. type: textblock
12152 #: ../fish/guestfish-actions.pod:3433 ../src/guestfs-actions.pod:5205
12153 msgid ""
12154 "If this option is true, then force the resize of the filesystem even if the "
12155 "filesystem is marked as requiring a consistency check."
12156 msgstr ""
12157
12158 #. type: textblock
12159 #: ../fish/guestfish-actions.pod:3436
12160 msgid ""
12161 "After the resize operation, the filesystem is always marked as requiring a "
12162 "consistency check (for safety).  You have to boot into Windows to perform "
12163 "this check and clear this condition.  If you I<don't> set the C<force> "
12164 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12165 "a single filesystem without booting into Windows between each resize."
12166 msgstr ""
12167
12168 #. type: =head2
12169 #: ../fish/guestfish-actions.pod:3449
12170 msgid "ntfsresize-size"
12171 msgstr "ntfsresize-size"
12172
12173 #. type: verbatim
12174 #: ../fish/guestfish-actions.pod:3451
12175 #, no-wrap
12176 msgid ""
12177 " ntfsresize-size device size\n"
12178 "\n"
12179 msgstr ""
12180
12181 #. type: textblock
12182 #: ../fish/guestfish-actions.pod:3453
12183 msgid ""
12184 "This command is the same as L</ntfsresize> except that it allows you to "
12185 "specify the new size (in bytes) explicitly."
12186 msgstr ""
12187
12188 #. type: =head2
12189 #: ../fish/guestfish-actions.pod:3463
12190 msgid "part-add"
12191 msgstr "part-add"
12192
12193 #. type: verbatim
12194 #: ../fish/guestfish-actions.pod:3465
12195 #, no-wrap
12196 msgid ""
12197 " part-add device prlogex startsect endsect\n"
12198 "\n"
12199 msgstr ""
12200
12201 #. type: textblock
12202 #: ../fish/guestfish-actions.pod:3467
12203 msgid ""
12204 "This command adds a partition to C<device>.  If there is no partition table "
12205 "on the device, call L</part-init> first."
12206 msgstr ""
12207
12208 #. type: textblock
12209 #: ../fish/guestfish-actions.pod:3470 ../src/guestfs-actions.pod:5278
12210 msgid ""
12211 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12212 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12213 "C<logical>) and C<e> (or C<extended>) partition types."
12214 msgstr ""
12215
12216 #. type: textblock
12217 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5283
12218 msgid ""
12219 "C<startsect> and C<endsect> are the start and end of the partition in "
12220 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12221 "from the end of the disk (C<-1> is the last sector)."
12222 msgstr ""
12223
12224 #. type: textblock
12225 #: ../fish/guestfish-actions.pod:3479
12226 msgid ""
12227 "Creating a partition which covers the whole disk is not so easy.  Use L</"
12228 "part-disk> to do that."
12229 msgstr ""
12230
12231 #. type: =head2
12232 #: ../fish/guestfish-actions.pod:3482
12233 msgid "part-del"
12234 msgstr "part-del"
12235
12236 #. type: verbatim
12237 #: ../fish/guestfish-actions.pod:3484
12238 #, no-wrap
12239 msgid ""
12240 " part-del device partnum\n"
12241 "\n"
12242 msgstr ""
12243
12244 #. type: textblock
12245 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5301
12246 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12247 msgstr ""
12248
12249 #. type: textblock
12250 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5303
12251 msgid ""
12252 "Note that in the case of MBR partitioning, deleting an extended partition "
12253 "also deletes any logical partitions it contains."
12254 msgstr ""
12255
12256 #. type: =head2
12257 #: ../fish/guestfish-actions.pod:3492
12258 msgid "part-disk"
12259 msgstr "part-disk"
12260
12261 #. type: verbatim
12262 #: ../fish/guestfish-actions.pod:3494
12263 #, no-wrap
12264 msgid ""
12265 " part-disk device parttype\n"
12266 "\n"
12267 msgstr ""
12268 " part-disk пристрій тип_розділу\n"
12269 "\n"
12270
12271 #. type: textblock
12272 #: ../fish/guestfish-actions.pod:3496
12273 msgid ""
12274 "This command is simply a combination of L</part-init> followed by L</part-"
12275 "add> to create a single primary partition covering the whole disk."
12276 msgstr ""
12277
12278 #. type: textblock
12279 #: ../fish/guestfish-actions.pod:3500
12280 msgid ""
12281 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12282 "possible values are described in L</part-init>."
12283 msgstr ""
12284
12285 #. type: =head2
12286 #: ../fish/guestfish-actions.pod:3506
12287 msgid "part-get-bootable"
12288 msgstr "part-get-bootable"
12289
12290 #. type: verbatim
12291 #: ../fish/guestfish-actions.pod:3508
12292 #, no-wrap
12293 msgid ""
12294 " part-get-bootable device partnum\n"
12295 "\n"
12296 msgstr ""
12297
12298 #. type: textblock
12299 #: ../fish/guestfish-actions.pod:3510 ../src/guestfs-actions.pod:5339
12300 msgid ""
12301 "This command returns true if the partition C<partnum> on C<device> has the "
12302 "bootable flag set."
12303 msgstr ""
12304
12305 #. type: textblock
12306 #: ../fish/guestfish-actions.pod:3513
12307 msgid "See also L</part-set-bootable>."
12308 msgstr "Див. також L</part-set-bootable>."
12309
12310 #. type: =head2
12311 #: ../fish/guestfish-actions.pod:3515
12312 msgid "part-get-mbr-id"
12313 msgstr "part-get-mbr-id"
12314
12315 #. type: verbatim
12316 #: ../fish/guestfish-actions.pod:3517
12317 #, no-wrap
12318 msgid ""
12319 " part-get-mbr-id device partnum\n"
12320 "\n"
12321 msgstr ""
12322
12323 #. type: textblock
12324 #: ../fish/guestfish-actions.pod:3519 ../src/guestfs-actions.pod:5355
12325 msgid ""
12326 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12327 "partition C<partnum>."
12328 msgstr ""
12329
12330 #. type: textblock
12331 #: ../fish/guestfish-actions.pod:3522 ../fish/guestfish-actions.pod:3666
12332 msgid ""
12333 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12334 "undefined results for other partition table types (see L</part-get-"
12335 "parttype>)."
12336 msgstr ""
12337
12338 #. type: =head2
12339 #: ../fish/guestfish-actions.pod:3526
12340 msgid "part-get-parttype"
12341 msgstr "part-get-parttype"
12342
12343 #. type: verbatim
12344 #: ../fish/guestfish-actions.pod:3528
12345 #, no-wrap
12346 msgid ""
12347 " part-get-parttype device\n"
12348 "\n"
12349 msgstr ""
12350 " part-get-parttype пристрій\n"
12351 "\n"
12352
12353 #. type: textblock
12354 #: ../fish/guestfish-actions.pod:3530 ../src/guestfs-actions.pod:5372
12355 msgid ""
12356 "This command examines the partition table on C<device> and returns the "
12357 "partition table type (format) being used."
12358 msgstr ""
12359
12360 #. type: textblock
12361 #: ../fish/guestfish-actions.pod:3533
12362 msgid ""
12363 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12364 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12365 "possible, although unusual.  See L</part-init> for a full list."
12366 msgstr ""
12367
12368 #. type: =head2
12369 #: ../fish/guestfish-actions.pod:3538
12370 msgid "part-init"
12371 msgstr "part-init"
12372
12373 #. type: verbatim
12374 #: ../fish/guestfish-actions.pod:3540
12375 #, no-wrap
12376 msgid ""
12377 " part-init device parttype\n"
12378 "\n"
12379 msgstr ""
12380
12381 #. type: textblock
12382 #: ../fish/guestfish-actions.pod:3542 ../src/guestfs-actions.pod:5392
12383 msgid ""
12384 "This creates an empty partition table on C<device> of one of the partition "
12385 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12386 "(for large disks)."
12387 msgstr ""
12388
12389 #. type: textblock
12390 #: ../fish/guestfish-actions.pod:3546
12391 msgid ""
12392 "Initially there are no partitions.  Following this, you should call L</part-"
12393 "add> for each partition required."
12394 msgstr ""
12395
12396 #. type: textblock
12397 #: ../fish/guestfish-actions.pod:3549 ../src/guestfs-actions.pod:5399
12398 msgid "Possible values for C<parttype> are:"
12399 msgstr ""
12400
12401 #. type: =item
12402 #: ../fish/guestfish-actions.pod:3553 ../src/guestfs-actions.pod:5403
12403 msgid "B<efi>"
12404 msgstr ""
12405
12406 #. type: =item
12407 #: ../fish/guestfish-actions.pod:3555 ../src/guestfs-actions.pod:5405
12408 msgid "B<gpt>"
12409 msgstr ""
12410
12411 #. type: textblock
12412 #: ../fish/guestfish-actions.pod:3557 ../src/guestfs-actions.pod:5407
12413 msgid "Intel EFI / GPT partition table."
12414 msgstr ""
12415
12416 #. type: textblock
12417 #: ../fish/guestfish-actions.pod:3559 ../src/guestfs-actions.pod:5409
12418 msgid ""
12419 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12420 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12421 "the C<mbr> format."
12422 msgstr ""
12423
12424 #. type: =item
12425 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5413
12426 msgid "B<mbr>"
12427 msgstr ""
12428
12429 #. type: =item
12430 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5415
12431 msgid "B<msdos>"
12432 msgstr ""
12433
12434 #. type: textblock
12435 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5417
12436 msgid ""
12437 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12438 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12439 "TB.  For large disks we recommend using C<gpt>."
12440 msgstr ""
12441
12442 #. type: textblock
12443 #: ../fish/guestfish-actions.pod:3574 ../src/guestfs-actions.pod:5424
12444 msgid ""
12445 "Other partition table types that may work but are not supported include:"
12446 msgstr ""
12447
12448 #. type: =item
12449 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
12450 msgid "B<aix>"
12451 msgstr "B<aix>"
12452
12453 #. type: textblock
12454 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
12455 msgid "AIX disk labels."
12456 msgstr "Мітки дисків AIX."
12457
12458 #. type: =item
12459 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5433
12460 #, fuzzy
12461 #| msgid "B<amiga> | B<rdb>"
12462 msgid "B<amiga>"
12463 msgstr "B<amiga> | B<rdb>"
12464
12465 #. type: =item
12466 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
12467 msgid "B<rdb>"
12468 msgstr ""
12469
12470 #. type: textblock
12471 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5437
12472 msgid "Amiga \"Rigid Disk Block\" format."
12473 msgstr "Формат \"Rigid Disk Block\" Amiga."
12474
12475 #. type: =item
12476 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
12477 msgid "B<bsd>"
12478 msgstr "B<bsd>"
12479
12480 #. type: textblock
12481 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5441
12482 msgid "BSD disk labels."
12483 msgstr "Мітки дисків BSD."
12484
12485 #. type: =item
12486 #: ../fish/guestfish-actions.pod:3593 ../src/guestfs-actions.pod:5443
12487 msgid "B<dasd>"
12488 msgstr "B<dasd>"
12489
12490 #. type: textblock
12491 #: ../fish/guestfish-actions.pod:3595 ../src/guestfs-actions.pod:5445
12492 msgid "DASD, used on IBM mainframes."
12493 msgstr "DASD, використовувалися у мейнфреймах IBM."
12494
12495 #. type: =item
12496 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5447
12497 msgid "B<dvh>"
12498 msgstr "B<dvh>"
12499
12500 #. type: textblock
12501 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5449
12502 msgid "MIPS/SGI volumes."
12503 msgstr "Томи MIPS/SGI."
12504
12505 #. type: =item
12506 #: ../fish/guestfish-actions.pod:3601 ../src/guestfs-actions.pod:5451
12507 msgid "B<mac>"
12508 msgstr "B<mac>"
12509
12510 #. type: textblock
12511 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5453
12512 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12513 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12514
12515 #. type: =item
12516 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
12517 msgid "B<pc98>"
12518 msgstr "B<pc98>"
12519
12520 #. type: textblock
12521 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
12522 msgid "NEC PC-98 format, common in Japan apparently."
12523 msgstr "Формат NEC PC-98, поширений у Японії."
12524
12525 #. type: =item
12526 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
12527 msgid "B<sun>"
12528 msgstr "B<sun>"
12529
12530 #. type: textblock
12531 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
12532 msgid "Sun disk labels."
12533 msgstr "Мітки дисків Sun."
12534
12535 #. type: =head2
12536 #: ../fish/guestfish-actions.pod:3615
12537 msgid "part-list"
12538 msgstr "part-list"
12539
12540 #. type: verbatim
12541 #: ../fish/guestfish-actions.pod:3617
12542 #, no-wrap
12543 msgid ""
12544 " part-list device\n"
12545 "\n"
12546 msgstr ""
12547 " part-list device\n"
12548 "\n"
12549
12550 #. type: textblock
12551 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5475
12552 msgid ""
12553 "This command parses the partition table on C<device> and returns the list of "
12554 "partitions found."
12555 msgstr ""
12556
12557 #. type: textblock
12558 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5478
12559 msgid "The fields in the returned structure are:"
12560 msgstr ""
12561
12562 #. type: =item
12563 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5482
12564 msgid "B<part_num>"
12565 msgstr "B<part_num>"
12566
12567 #. type: textblock
12568 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5484
12569 msgid "Partition number, counting from 1."
12570 msgstr ""
12571
12572 #. type: =item
12573 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5486
12574 msgid "B<part_start>"
12575 msgstr "B<part_start>"
12576
12577 #. type: textblock
12578 #: ../fish/guestfish-actions.pod:3632
12579 msgid ""
12580 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12581 "the device's sector size, see L</blockdev-getss>."
12582 msgstr ""
12583
12584 #. type: =item
12585 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5491
12586 msgid "B<part_end>"
12587 msgstr "B<part_end>"
12588
12589 #. type: textblock
12590 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5493
12591 msgid "End of the partition in bytes."
12592 msgstr ""
12593
12594 #. type: =item
12595 #: ../fish/guestfish-actions.pod:3639 ../src/guestfs-actions.pod:5495
12596 msgid "B<part_size>"
12597 msgstr "B<part_size>"
12598
12599 #. type: textblock
12600 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5497
12601 msgid "Size of the partition in bytes."
12602 msgstr ""
12603
12604 #. type: =head2
12605 #: ../fish/guestfish-actions.pod:3645
12606 msgid "part-set-bootable"
12607 msgstr "part-set-bootable"
12608
12609 #. type: verbatim
12610 #: ../fish/guestfish-actions.pod:3647
12611 #, no-wrap
12612 msgid ""
12613 " part-set-bootable device partnum true|false\n"
12614 "\n"
12615 msgstr ""
12616
12617 #. type: textblock
12618 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5515
12619 msgid ""
12620 "This sets the bootable flag on partition numbered C<partnum> on device "
12621 "C<device>.  Note that partitions are numbered from 1."
12622 msgstr ""
12623
12624 #. type: textblock
12625 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5518
12626 msgid ""
12627 "The bootable flag is used by some operating systems (notably Windows) to "
12628 "determine which partition to boot from.  It is by no means universally "
12629 "recognized."
12630 msgstr ""
12631
12632 #. type: =head2
12633 #: ../fish/guestfish-actions.pod:3656
12634 msgid "part-set-mbr-id"
12635 msgstr "part-set-mbr-id"
12636
12637 #. type: verbatim
12638 #: ../fish/guestfish-actions.pod:3658
12639 #, no-wrap
12640 msgid ""
12641 " part-set-mbr-id device partnum idbyte\n"
12642 "\n"
12643 msgstr ""
12644
12645 #. type: textblock
12646 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5534
12647 msgid ""
12648 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12649 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12650 "documentation are in fact hexadecimal numbers, but usually documented "
12651 "without any leading \"0x\" which might be confusing."
12652 msgstr ""
12653
12654 #. type: =head2
12655 #: ../fish/guestfish-actions.pod:3670
12656 msgid "part-set-name"
12657 msgstr "part-set-name"
12658
12659 #. type: verbatim
12660 #: ../fish/guestfish-actions.pod:3672
12661 #, no-wrap
12662 msgid ""
12663 " part-set-name device partnum name\n"
12664 "\n"
12665 msgstr ""
12666
12667 #. type: textblock
12668 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5556
12669 msgid ""
12670 "This sets the partition name on partition numbered C<partnum> on device "
12671 "C<device>.  Note that partitions are numbered from 1."
12672 msgstr ""
12673
12674 #. type: textblock
12675 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5559
12676 msgid ""
12677 "The partition name can only be set on certain types of partition table.  "
12678 "This works on C<gpt> but not on C<mbr> partitions."
12679 msgstr ""
12680
12681 #. type: =head2
12682 #: ../fish/guestfish-actions.pod:3680
12683 msgid "part-to-dev"
12684 msgstr "part-to-dev"
12685
12686 #. type: verbatim
12687 #: ../fish/guestfish-actions.pod:3682
12688 #, no-wrap
12689 msgid ""
12690 " part-to-dev partition\n"
12691 "\n"
12692 msgstr ""
12693 " part-to-dev розділ\n"
12694 "\n"
12695
12696 #. type: textblock
12697 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5572
12698 msgid ""
12699 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12700 "partition number, returning the device name (eg. \"/dev/sdb\")."
12701 msgstr ""
12702
12703 #. type: textblock
12704 #: ../fish/guestfish-actions.pod:3688
12705 msgid ""
12706 "The named partition must exist, for example as a string returned from L</"
12707 "list-partitions>."
12708 msgstr ""
12709
12710 #. type: =head2
12711 #: ../fish/guestfish-actions.pod:3691
12712 msgid "ping-daemon"
12713 msgstr "ping-daemon"
12714
12715 #. type: verbatim
12716 #: ../fish/guestfish-actions.pod:3693
12717 #, no-wrap
12718 msgid ""
12719 " ping-daemon\n"
12720 "\n"
12721 msgstr ""
12722 " ping-daemon\n"
12723 "\n"
12724
12725 #. type: textblock
12726 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5589
12727 msgid ""
12728 "This is a test probe into the guestfs daemon running inside the qemu "
12729 "subprocess.  Calling this function checks that the daemon responds to the "
12730 "ping message, without affecting the daemon or attached block device(s) in "
12731 "any other way."
12732 msgstr ""
12733
12734 #. type: =head2
12735 #: ../fish/guestfish-actions.pod:3700
12736 msgid "pread"
12737 msgstr "pread"
12738
12739 #. type: verbatim
12740 #: ../fish/guestfish-actions.pod:3702
12741 #, no-wrap
12742 msgid ""
12743 " pread path count offset\n"
12744 "\n"
12745 msgstr ""
12746
12747 #. type: textblock
12748 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5607
12749 msgid ""
12750 "This command lets you read part of a file.  It reads C<count> bytes of the "
12751 "file, starting at C<offset>, from file C<path>."
12752 msgstr ""
12753
12754 #. type: textblock
12755 #: ../fish/guestfish-actions.pod:3707 ../fish/guestfish-actions.pod:3722
12756 #: ../src/guestfs-actions.pod:5610 ../src/guestfs-actions.pod:5636
12757 msgid ""
12758 "This may read fewer bytes than requested.  For further details see the "
12759 "L<pread(2)> system call."
12760 msgstr ""
12761
12762 #. type: textblock
12763 #: ../fish/guestfish-actions.pod:3710
12764 msgid "See also L</pwrite>, L</pread-device>."
12765 msgstr "Див. також L</pwrite>, L</pread-device>."
12766
12767 #. type: =head2
12768 #: ../fish/guestfish-actions.pod:3715
12769 msgid "pread-device"
12770 msgstr "pread-device"
12771
12772 #. type: verbatim
12773 #: ../fish/guestfish-actions.pod:3717
12774 #, no-wrap
12775 msgid ""
12776 " pread-device device count offset\n"
12777 "\n"
12778 msgstr ""
12779
12780 #. type: textblock
12781 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5633
12782 msgid ""
12783 "This command lets you read part of a file.  It reads C<count> bytes of "
12784 "C<device>, starting at C<offset>."
12785 msgstr ""
12786
12787 #. type: textblock
12788 #: ../fish/guestfish-actions.pod:3725
12789 msgid "See also L</pread>."
12790 msgstr "Див. також L</pread>."
12791
12792 #. type: =head2
12793 #: ../fish/guestfish-actions.pod:3730
12794 msgid "pvcreate"
12795 msgstr "pvcreate"
12796
12797 #. type: verbatim
12798 #: ../fish/guestfish-actions.pod:3732
12799 #, no-wrap
12800 msgid ""
12801 " pvcreate device\n"
12802 "\n"
12803 msgstr ""
12804 " pvcreate пристрій\n"
12805 "\n"
12806
12807 #. type: textblock
12808 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5656
12809 msgid ""
12810 "This creates an LVM physical volume on the named C<device>, where C<device> "
12811 "should usually be a partition name such as C</dev/sda1>."
12812 msgstr ""
12813
12814 #. type: =head2
12815 #: ../fish/guestfish-actions.pod:3738
12816 msgid "pvremove"
12817 msgstr "pvremove"
12818
12819 #. type: verbatim
12820 #: ../fish/guestfish-actions.pod:3740
12821 #, no-wrap
12822 msgid ""
12823 " pvremove device\n"
12824 "\n"
12825 msgstr ""
12826 " pvremove пристрій\n"
12827 "\n"
12828
12829 #. type: textblock
12830 #: ../fish/guestfish-actions.pod:3742 ../src/guestfs-actions.pod:5670
12831 msgid ""
12832 "This wipes a physical volume C<device> so that LVM will no longer recognise "
12833 "it."
12834 msgstr ""
12835
12836 #. type: textblock
12837 #: ../fish/guestfish-actions.pod:3745 ../src/guestfs-actions.pod:5673
12838 msgid ""
12839 "The implementation uses the C<pvremove> command which refuses to wipe "
12840 "physical volumes that contain any volume groups, so you have to remove those "
12841 "first."
12842 msgstr ""
12843
12844 #. type: =head2
12845 #: ../fish/guestfish-actions.pod:3749
12846 msgid "pvresize"
12847 msgstr "pvresize"
12848
12849 #. type: verbatim
12850 #: ../fish/guestfish-actions.pod:3751
12851 #, no-wrap
12852 msgid ""
12853 " pvresize device\n"
12854 "\n"
12855 msgstr ""
12856 " pvresize пристрій\n"
12857 "\n"
12858
12859 #. type: textblock
12860 #: ../fish/guestfish-actions.pod:3753 ../src/guestfs-actions.pod:5687
12861 msgid ""
12862 "This resizes (expands or shrinks) an existing LVM physical volume to match "
12863 "the new size of the underlying device."
12864 msgstr ""
12865
12866 #. type: =head2
12867 #: ../fish/guestfish-actions.pod:3756
12868 msgid "pvresize-size"
12869 msgstr "pvresize-size"
12870
12871 #. type: verbatim
12872 #: ../fish/guestfish-actions.pod:3758
12873 #, no-wrap
12874 msgid ""
12875 " pvresize-size device size\n"
12876 "\n"
12877 msgstr ""
12878
12879 #. type: textblock
12880 #: ../fish/guestfish-actions.pod:3760
12881 msgid ""
12882 "This command is the same as L</pvresize> except that it allows you to "
12883 "specify the new size (in bytes) explicitly."
12884 msgstr ""
12885
12886 #. type: =head2
12887 #: ../fish/guestfish-actions.pod:3763
12888 msgid "pvs"
12889 msgstr "pvs"
12890
12891 #. type: verbatim
12892 #: ../fish/guestfish-actions.pod:3765
12893 #, no-wrap
12894 msgid ""
12895 " pvs\n"
12896 "\n"
12897 msgstr ""
12898 " pvs\n"
12899 "\n"
12900
12901 #. type: textblock
12902 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5713
12903 msgid ""
12904 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12905 "(8)> command."
12906 msgstr ""
12907
12908 #. type: textblock
12909 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5716
12910 msgid ""
12911 "This returns a list of just the device names that contain PVs (eg. C</dev/"
12912 "sda2>)."
12913 msgstr ""
12914
12915 #. type: textblock
12916 #: ../fish/guestfish-actions.pod:3773
12917 msgid "See also L</pvs-full>."
12918 msgstr "Див. також L</pvs-full>."
12919
12920 #. type: =head2
12921 #: ../fish/guestfish-actions.pod:3775
12922 msgid "pvs-full"
12923 msgstr "pvs-full"
12924
12925 #. type: verbatim
12926 #: ../fish/guestfish-actions.pod:3777
12927 #, no-wrap
12928 msgid ""
12929 " pvs-full\n"
12930 "\n"
12931 msgstr ""
12932 " pvs-full\n"
12933 "\n"
12934
12935 #. type: textblock
12936 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5732
12937 msgid ""
12938 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
12939 "(8)> command.  The \"full\" version includes all fields."
12940 msgstr ""
12941
12942 #. type: =head2
12943 #: ../fish/guestfish-actions.pod:3782
12944 msgid "pvuuid"
12945 msgstr "pvuuid"
12946
12947 #. type: verbatim
12948 #: ../fish/guestfish-actions.pod:3784
12949 #, no-wrap
12950 msgid ""
12951 " pvuuid device\n"
12952 "\n"
12953 msgstr ""
12954 " pvuuid пристрій\n"
12955 "\n"
12956
12957 #. type: textblock
12958 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5747
12959 msgid "This command returns the UUID of the LVM PV C<device>."
12960 msgstr ""
12961
12962 #. type: =head2
12963 #: ../fish/guestfish-actions.pod:3788
12964 msgid "pwrite"
12965 msgstr "pwrite"
12966
12967 #. type: verbatim
12968 #: ../fish/guestfish-actions.pod:3790
12969 #, no-wrap
12970 msgid ""
12971 " pwrite path content offset\n"
12972 "\n"
12973 msgstr ""
12974
12975 #. type: textblock
12976 #: ../fish/guestfish-actions.pod:3792 ../src/guestfs-actions.pod:5763
12977 msgid ""
12978 "This command writes to part of a file.  It writes the data buffer C<content> "
12979 "to the file C<path> starting at offset C<offset>."
12980 msgstr ""
12981
12982 #. type: textblock
12983 #: ../fish/guestfish-actions.pod:3795 ../src/guestfs-actions.pod:5766
12984 msgid ""
12985 "This command implements the L<pwrite(2)> system call, and like that system "
12986 "call it may not write the full data requested.  The return value is the "
12987 "number of bytes that were actually written to the file.  This could even be "
12988 "0, although short writes are unlikely for regular files in ordinary "
12989 "circumstances."
12990 msgstr ""
12991
12992 #. type: textblock
12993 #: ../fish/guestfish-actions.pod:3801
12994 msgid "See also L</pread>, L</pwrite-device>."
12995 msgstr "Див. також L</pread>, L</pwrite-device>."
12996
12997 #. type: =head2
12998 #: ../fish/guestfish-actions.pod:3806
12999 msgid "pwrite-device"
13000 msgstr "pwrite-device"
13001
13002 #. type: verbatim
13003 #: ../fish/guestfish-actions.pod:3808
13004 #, no-wrap
13005 msgid ""
13006 " pwrite-device device content offset\n"
13007 "\n"
13008 msgstr ""
13009
13010 #. type: textblock
13011 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5790
13012 msgid ""
13013 "This command writes to part of a device.  It writes the data buffer "
13014 "C<content> to C<device> starting at offset C<offset>."
13015 msgstr ""
13016
13017 #. type: textblock
13018 #: ../fish/guestfish-actions.pod:3813 ../src/guestfs-actions.pod:5793
13019 msgid ""
13020 "This command implements the L<pwrite(2)> system call, and like that system "
13021 "call it may not write the full data requested (although short writes to disk "
13022 "devices and partitions are probably impossible with standard Linux kernels)."
13023 msgstr ""
13024
13025 #. type: textblock
13026 #: ../fish/guestfish-actions.pod:3818
13027 msgid "See also L</pwrite>."
13028 msgstr "Див. також L</pwrite>."
13029
13030 #. type: =head2
13031 #: ../fish/guestfish-actions.pod:3823
13032 msgid "read-file"
13033 msgstr "read-file"
13034
13035 #. type: verbatim
13036 #: ../fish/guestfish-actions.pod:3825
13037 #, no-wrap
13038 msgid ""
13039 " read-file path\n"
13040 "\n"
13041 msgstr ""
13042 " read-file шлях\n"
13043 "\n"
13044
13045 #. type: textblock
13046 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5814
13047 msgid "This calls returns the contents of the file C<path> as a buffer."
13048 msgstr ""
13049
13050 #. type: textblock
13051 #: ../fish/guestfish-actions.pod:3830
13052 msgid ""
13053 "Unlike L</cat>, this function can correctly handle files that contain "
13054 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13055 "is limited in the total size of file that can be handled."
13056 msgstr ""
13057
13058 #. type: =head2
13059 #: ../fish/guestfish-actions.pod:3838
13060 msgid "read-lines"
13061 msgstr "read-lines"
13062
13063 #. type: verbatim
13064 #: ../fish/guestfish-actions.pod:3840
13065 #, no-wrap
13066 msgid ""
13067 " read-lines path\n"
13068 "\n"
13069 msgstr ""
13070 " read-lines шлях\n"
13071 "\n"
13072
13073 #. type: textblock
13074 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:5839
13075 msgid ""
13076 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13077 "C<CRLF> character sequences are I<not> returned."
13078 msgstr ""
13079
13080 #. type: textblock
13081 #: ../fish/guestfish-actions.pod:3847
13082 msgid ""
13083 "Note that this function cannot correctly handle binary files (specifically, "
13084 "files containing C<\\0> character which is treated as end of line).  For "
13085 "those you need to use the L</read-file> function which has a more complex "
13086 "interface."
13087 msgstr ""
13088
13089 #. type: =head2
13090 #: ../fish/guestfish-actions.pod:3852
13091 msgid "readdir"
13092 msgstr "readdir"
13093
13094 #. type: verbatim
13095 #: ../fish/guestfish-actions.pod:3854
13096 #, no-wrap
13097 msgid ""
13098 " readdir dir\n"
13099 "\n"
13100 msgstr ""
13101 " readdir каталог\n"
13102 "\n"
13103
13104 #. type: textblock
13105 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:5859
13106 msgid "This returns the list of directory entries in directory C<dir>."
13107 msgstr ""
13108
13109 #. type: textblock
13110 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:5861
13111 msgid ""
13112 "All entries in the directory are returned, including C<.> and C<..>.  The "
13113 "entries are I<not> sorted, but returned in the same order as the underlying "
13114 "filesystem."
13115 msgstr ""
13116
13117 #. type: textblock
13118 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5865
13119 msgid ""
13120 "Also this call returns basic file type information about each file.  The "
13121 "C<ftyp> field will contain one of the following characters:"
13122 msgstr ""
13123
13124 #. type: =item
13125 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5870
13126 msgid "'b'"
13127 msgstr "'b'"
13128
13129 #. type: textblock
13130 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:5872
13131 msgid "Block special"
13132 msgstr "Блоковий особливий"
13133
13134 #. type: =item
13135 #: ../fish/guestfish-actions.pod:3871 ../src/guestfs-actions.pod:5874
13136 msgid "'c'"
13137 msgstr "'c'"
13138
13139 #. type: textblock
13140 #: ../fish/guestfish-actions.pod:3873 ../src/guestfs-actions.pod:5876
13141 msgid "Char special"
13142 msgstr "Символьний особливий"
13143
13144 #. type: =item
13145 #: ../fish/guestfish-actions.pod:3875 ../src/guestfs-actions.pod:5878
13146 msgid "'d'"
13147 msgstr "'d'"
13148
13149 #. type: textblock
13150 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:5880
13151 msgid "Directory"
13152 msgstr "Каталог"
13153
13154 #. type: =item
13155 #: ../fish/guestfish-actions.pod:3879 ../src/guestfs-actions.pod:5882
13156 msgid "'f'"
13157 msgstr "'f'"
13158
13159 #. type: textblock
13160 #: ../fish/guestfish-actions.pod:3881 ../src/guestfs-actions.pod:5884
13161 msgid "FIFO (named pipe)"
13162 msgstr "FIFO (іменований канал)"
13163
13164 #. type: =item
13165 #: ../fish/guestfish-actions.pod:3883 ../src/guestfs-actions.pod:5886
13166 msgid "'l'"
13167 msgstr "'l'"
13168
13169 #. type: textblock
13170 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5888
13171 msgid "Symbolic link"
13172 msgstr "Символічне посилання"
13173
13174 #. type: =item
13175 #: ../fish/guestfish-actions.pod:3887 ../src/guestfs-actions.pod:5890
13176 msgid "'r'"
13177 msgstr "'r'"
13178
13179 #. type: textblock
13180 #: ../fish/guestfish-actions.pod:3889 ../src/guestfs-actions.pod:5892
13181 msgid "Regular file"
13182 msgstr "Звичайний файл"
13183
13184 #. type: =item
13185 #: ../fish/guestfish-actions.pod:3891 ../src/guestfs-actions.pod:5894
13186 msgid "'s'"
13187 msgstr "'s'"
13188
13189 #. type: textblock
13190 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
13191 msgid "Socket"
13192 msgstr "Сокет"
13193
13194 #. type: =item
13195 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
13196 msgid "'u'"
13197 msgstr "'u'"
13198
13199 #. type: textblock
13200 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
13201 msgid "Unknown file type"
13202 msgstr "Невідомий тип файла"
13203
13204 #. type: =item
13205 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
13206 msgid "'?'"
13207 msgstr ""
13208
13209 #. type: textblock
13210 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
13211 msgid ""
13212 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13213 msgstr ""
13214
13215 #. type: textblock
13216 #: ../fish/guestfish-actions.pod:3906
13217 msgid ""
13218 "This function is primarily intended for use by programs.  To get a simple "
13219 "list of names, use L</ls>.  To get a printable directory for human "
13220 "consumption, use L</ll>."
13221 msgstr ""
13222
13223 #. type: =head2
13224 #: ../fish/guestfish-actions.pod:3910
13225 msgid "readlink"
13226 msgstr "readlink"
13227
13228 #. type: verbatim
13229 #: ../fish/guestfish-actions.pod:3912
13230 #, no-wrap
13231 msgid ""
13232 " readlink path\n"
13233 "\n"
13234 msgstr ""
13235 " readlink шлях\n"
13236 "\n"
13237
13238 #. type: textblock
13239 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:5925
13240 msgid "This command reads the target of a symbolic link."
13241 msgstr ""
13242
13243 #. type: =head2
13244 #: ../fish/guestfish-actions.pod:3916
13245 msgid "readlinklist"
13246 msgstr "readlinklist"
13247
13248 #. type: verbatim
13249 #: ../fish/guestfish-actions.pod:3918
13250 #, no-wrap
13251 msgid ""
13252 " readlinklist path 'names ...'\n"
13253 "\n"
13254 msgstr ""
13255
13256 #. type: textblock
13257 #: ../fish/guestfish-actions.pod:3920 ../src/guestfs-actions.pod:5939
13258 msgid ""
13259 "This call allows you to do a C<readlink> operation on multiple files, where "
13260 "all files are in the directory C<path>.  C<names> is the list of files from "
13261 "this directory."
13262 msgstr ""
13263
13264 #. type: textblock
13265 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:5943
13266 msgid ""
13267 "On return you get a list of strings, with a one-to-one correspondence to the "
13268 "C<names> list.  Each string is the value of the symbolic link."
13269 msgstr ""
13270
13271 #. type: textblock
13272 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:5947
13273 msgid ""
13274 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13275 "result string is the empty string C<\"\">.  However the whole operation is "
13276 "completed even if there were C<readlink(2)> errors, and so you can call this "
13277 "function with names where you don't know if they are symbolic links already "
13278 "(albeit slightly less efficient)."
13279 msgstr ""
13280
13281 #. type: textblock
13282 #: ../fish/guestfish-actions.pod:3935 ../src/guestfs-actions.pod:5954
13283 msgid ""
13284 "This call is intended for programs that want to efficiently list a directory "
13285 "contents without making many round-trips.  Very long directory listings "
13286 "might cause the protocol message size to be exceeded, causing this call to "
13287 "fail.  The caller must split up such requests into smaller groups of names."
13288 msgstr ""
13289
13290 #. type: =head2
13291 #: ../fish/guestfish-actions.pod:3942
13292 msgid "realpath"
13293 msgstr "realpath"
13294
13295 #. type: verbatim
13296 #: ../fish/guestfish-actions.pod:3944
13297 #, no-wrap
13298 msgid ""
13299 " realpath path\n"
13300 "\n"
13301 msgstr ""
13302 " realpath шлях\n"
13303 "\n"
13304
13305 #. type: textblock
13306 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5973
13307 msgid ""
13308 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13309 "has no C<.>, C<..> or symbolic link path elements."
13310 msgstr ""
13311
13312 #. type: =head2
13313 #: ../fish/guestfish-actions.pod:3949
13314 msgid "removexattr"
13315 msgstr "removexattr"
13316
13317 #. type: verbatim
13318 #: ../fish/guestfish-actions.pod:3951
13319 #, no-wrap
13320 msgid ""
13321 " removexattr xattr path\n"
13322 "\n"
13323 msgstr ""
13324
13325 #. type: textblock
13326 #: ../fish/guestfish-actions.pod:3953 ../src/guestfs-actions.pod:5988
13327 msgid ""
13328 "This call removes the extended attribute named C<xattr> of the file C<path>."
13329 msgstr ""
13330
13331 #. type: textblock
13332 #: ../fish/guestfish-actions.pod:3956
13333 msgid "See also: L</lremovexattr>, L<attr(5)>."
13334 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13335
13336 #. type: =head2
13337 #: ../fish/guestfish-actions.pod:3958
13338 msgid "resize2fs"
13339 msgstr "resize2fs"
13340
13341 #. type: verbatim
13342 #: ../fish/guestfish-actions.pod:3960
13343 #, no-wrap
13344 msgid ""
13345 " resize2fs device\n"
13346 "\n"
13347 msgstr ""
13348 " resize2fs пристрій\n"
13349 "\n"
13350
13351 #. type: textblock
13352 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6003
13353 msgid ""
13354 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13355 "underlying device."
13356 msgstr ""
13357
13358 #. type: textblock
13359 #: ../fish/guestfish-actions.pod:3965
13360 msgid ""
13361 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13362 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13363 "gives an error about this and sometimes not.  In any case, it is always safe "
13364 "to call L</e2fsck-f> before calling this function."
13365 msgstr ""
13366
13367 #. type: =head2
13368 #: ../fish/guestfish-actions.pod:3971
13369 msgid "resize2fs-M"
13370 msgstr "resize2fs-M"
13371
13372 #. type: verbatim
13373 #: ../fish/guestfish-actions.pod:3973
13374 #, no-wrap
13375 msgid ""
13376 " resize2fs-M device\n"
13377 "\n"
13378 msgstr ""
13379 " resize2fs-M пристрій\n"
13380 "\n"
13381
13382 #. type: textblock
13383 #: ../fish/guestfish-actions.pod:3975
13384 msgid ""
13385 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13386 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13387 "command."
13388 msgstr ""
13389
13390 #. type: textblock
13391 #: ../fish/guestfish-actions.pod:3979
13392 msgid ""
13393 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13394 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13395 "multiplied together, give the resulting size of the minimal filesystem in "
13396 "bytes."
13397 msgstr ""
13398
13399 #. type: =head2
13400 #: ../fish/guestfish-actions.pod:3984
13401 msgid "resize2fs-size"
13402 msgstr "resize2fs-size"
13403
13404 #. type: verbatim
13405 #: ../fish/guestfish-actions.pod:3986
13406 #, no-wrap
13407 msgid ""
13408 " resize2fs-size device size\n"
13409 "\n"
13410 msgstr ""
13411
13412 #. type: textblock
13413 #: ../fish/guestfish-actions.pod:3988
13414 msgid ""
13415 "This command is the same as L</resize2fs> except that it allows you to "
13416 "specify the new size (in bytes) explicitly."
13417 msgstr ""
13418
13419 #. type: =head2
13420 #: ../fish/guestfish-actions.pod:3991
13421 msgid "rm"
13422 msgstr "rm"
13423
13424 #. type: verbatim
13425 #: ../fish/guestfish-actions.pod:3993
13426 #, no-wrap
13427 msgid ""
13428 " rm path\n"
13429 "\n"
13430 msgstr ""
13431 " rm шлях\n"
13432 "\n"
13433
13434 #. type: textblock
13435 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6055
13436 msgid "Remove the single file C<path>."
13437 msgstr ""
13438
13439 #. type: =head2
13440 #: ../fish/guestfish-actions.pod:3997
13441 msgid "rm-rf"
13442 msgstr "rm-rf"
13443
13444 #. type: verbatim
13445 #: ../fish/guestfish-actions.pod:3999
13446 #, no-wrap
13447 msgid ""
13448 " rm-rf path\n"
13449 "\n"
13450 msgstr ""
13451 " rm-rf шлях\n"
13452 "\n"
13453
13454 #. type: textblock
13455 #: ../fish/guestfish-actions.pod:4001 ../src/guestfs-actions.pod:6067
13456 msgid ""
13457 "Remove the file or directory C<path>, recursively removing the contents if "
13458 "its a directory.  This is like the C<rm -rf> shell command."
13459 msgstr ""
13460
13461 #. type: =head2
13462 #: ../fish/guestfish-actions.pod:4005
13463 msgid "rmdir"
13464 msgstr "rmdir"
13465
13466 #. type: verbatim
13467 #: ../fish/guestfish-actions.pod:4007
13468 #, no-wrap
13469 msgid ""
13470 " rmdir path\n"
13471 "\n"
13472 msgstr ""
13473 " rmdir шлях\n"
13474 "\n"
13475
13476 #. type: textblock
13477 #: ../fish/guestfish-actions.pod:4009 ../src/guestfs-actions.pod:6081
13478 msgid "Remove the single directory C<path>."
13479 msgstr ""
13480
13481 #. type: =head2
13482 #: ../fish/guestfish-actions.pod:4011
13483 msgid "rmmountpoint"
13484 msgstr "rmmountpoint"
13485
13486 #. type: verbatim
13487 #: ../fish/guestfish-actions.pod:4013
13488 #, no-wrap
13489 msgid ""
13490 " rmmountpoint exemptpath\n"
13491 "\n"
13492 msgstr ""
13493
13494 #. type: textblock
13495 #: ../fish/guestfish-actions.pod:4015
13496 msgid ""
13497 "This calls removes a mountpoint that was previously created with L</"
13498 "mkmountpoint>.  See L</mkmountpoint> for full details."
13499 msgstr ""
13500
13501 #. type: =head2
13502 #: ../fish/guestfish-actions.pod:4019
13503 msgid "scrub-device"
13504 msgstr "scrub-device"
13505
13506 #. type: verbatim
13507 #: ../fish/guestfish-actions.pod:4021
13508 #, no-wrap
13509 msgid ""
13510 " scrub-device device\n"
13511 "\n"
13512 msgstr ""
13513 " scrub-device пристрій\n"
13514 "\n"
13515
13516 #. type: textblock
13517 #: ../fish/guestfish-actions.pod:4023 ../src/guestfs-actions.pod:6107
13518 msgid ""
13519 "This command writes patterns over C<device> to make data retrieval more "
13520 "difficult."
13521 msgstr ""
13522
13523 #. type: textblock
13524 #: ../fish/guestfish-actions.pod:4026 ../fish/guestfish-actions.pod:4041
13525 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6110
13526 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
13527 msgid ""
13528 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13529 "more details."
13530 msgstr ""
13531
13532 #. type: =head2
13533 #: ../fish/guestfish-actions.pod:4032
13534 msgid "scrub-file"
13535 msgstr "scrub-file"
13536
13537 #. type: verbatim
13538 #: ../fish/guestfish-actions.pod:4034
13539 #, no-wrap
13540 msgid ""
13541 " scrub-file file\n"
13542 "\n"
13543 msgstr ""
13544 " scrub-file файл\n"
13545 "\n"
13546
13547 #. type: textblock
13548 #: ../fish/guestfish-actions.pod:4036 ../src/guestfs-actions.pod:6126
13549 msgid ""
13550 "This command writes patterns over a file to make data retrieval more "
13551 "difficult."
13552 msgstr ""
13553
13554 #. type: textblock
13555 #: ../fish/guestfish-actions.pod:4039 ../src/guestfs-actions.pod:6129
13556 msgid "The file is I<removed> after scrubbing."
13557 msgstr ""
13558
13559 #. type: =head2
13560 #: ../fish/guestfish-actions.pod:4044
13561 msgid "scrub-freespace"
13562 msgstr "scrub-freespace"
13563
13564 #. type: verbatim
13565 #: ../fish/guestfish-actions.pod:4046
13566 #, no-wrap
13567 msgid ""
13568 " scrub-freespace dir\n"
13569 "\n"
13570 msgstr ""
13571 " scrub-freespace каталог\n"
13572 "\n"
13573
13574 #. type: textblock
13575 #: ../fish/guestfish-actions.pod:4048
13576 msgid ""
13577 "This command creates the directory C<dir> and then fills it with files until "
13578 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13579 "deletes them.  The intention is to scrub any free space on the partition "
13580 "containing C<dir>."
13581 msgstr ""
13582
13583 #. type: =head2
13584 #: ../fish/guestfish-actions.pod:4057
13585 msgid "set-append"
13586 msgstr "set-append"
13587
13588 #. type: =head2
13589 #: ../fish/guestfish-actions.pod:4059
13590 msgid "append"
13591 msgstr ""
13592
13593 #. type: verbatim
13594 #: ../fish/guestfish-actions.pod:4061
13595 #, no-wrap
13596 msgid ""
13597 " set-append append\n"
13598 "\n"
13599 msgstr ""
13600
13601 #. type: textblock
13602 #: ../fish/guestfish-actions.pod:4063 ../src/guestfs-actions.pod:6163
13603 msgid ""
13604 "This function is used to add additional options to the guest kernel command "
13605 "line."
13606 msgstr ""
13607
13608 #. type: textblock
13609 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6166
13610 msgid ""
13611 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13612 "environment variable."
13613 msgstr ""
13614
13615 #. type: textblock
13616 #: ../fish/guestfish-actions.pod:4069 ../src/guestfs-actions.pod:6169
13617 msgid ""
13618 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13619 "(libguestfs always adds a few of its own)."
13620 msgstr ""
13621
13622 #. type: =head2
13623 #: ../fish/guestfish-actions.pod:4072
13624 msgid "set-attach-method"
13625 msgstr "set-attach-method"
13626
13627 #. type: =head2
13628 #: ../fish/guestfish-actions.pod:4074
13629 msgid "attach-method"
13630 msgstr ""
13631
13632 #. type: verbatim
13633 #: ../fish/guestfish-actions.pod:4076
13634 #, no-wrap
13635 msgid ""
13636 " set-attach-method attachmethod\n"
13637 "\n"
13638 msgstr ""
13639
13640 #. type: textblock
13641 #: ../fish/guestfish-actions.pod:4078 ../src/guestfs-actions.pod:6182
13642 msgid ""
13643 "Set the method that libguestfs uses to connect to the back end guestfsd "
13644 "daemon.  Possible methods are:"
13645 msgstr ""
13646
13647 #. type: =item
13648 #: ../fish/guestfish-actions.pod:4083 ../src/guestfs-actions.pod:6187
13649 #: ../src/guestfs.pod:2703
13650 msgid "C<appliance>"
13651 msgstr "C<appliance>"
13652
13653 #. type: textblock
13654 #: ../fish/guestfish-actions.pod:4085 ../src/guestfs-actions.pod:6189
13655 msgid ""
13656 "Launch an appliance and connect to it.  This is the ordinary method and the "
13657 "default."
13658 msgstr ""
13659
13660 #. type: =item
13661 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6192
13662 msgid "C<unix:I<path>>"
13663 msgstr "C<unix:I<шлях>>"
13664
13665 #. type: textblock
13666 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6194
13667 msgid "Connect to the Unix domain socket I<path>."
13668 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
13669
13670 #. type: textblock
13671 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6196
13672 msgid ""
13673 "This method lets you connect to an existing daemon or (using virtio-serial) "
13674 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
13675 "RUNNING DAEMONS>."
13676 msgstr ""
13677
13678 #. type: =head2
13679 #: ../fish/guestfish-actions.pod:4098
13680 msgid "set-autosync"
13681 msgstr "set-autosync"
13682
13683 #. type: =head2
13684 #: ../fish/guestfish-actions.pod:4100
13685 msgid "autosync"
13686 msgstr "autosync"
13687
13688 #. type: verbatim
13689 #: ../fish/guestfish-actions.pod:4102
13690 #, no-wrap
13691 msgid ""
13692 " set-autosync true|false\n"
13693 "\n"
13694 msgstr ""
13695 " set-autosync true|false\n"
13696 "\n"
13697
13698 #. type: textblock
13699 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6212
13700 msgid ""
13701 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
13702 "effort attempt to make filesystems consistent and synchronized when the "
13703 "handle is closed (also if the program exits without closing handles)."
13704 msgstr ""
13705
13706 #. type: textblock
13707 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6217
13708 msgid ""
13709 "This is enabled by default (since libguestfs 1.5.24, previously it was "
13710 "disabled by default)."
13711 msgstr ""
13712
13713 #. type: =head2
13714 #: ../fish/guestfish-actions.pod:4112
13715 msgid "set-direct"
13716 msgstr "set-direct"
13717
13718 #. type: =head2
13719 #: ../fish/guestfish-actions.pod:4114
13720 msgid "direct"
13721 msgstr "direct"
13722
13723 #. type: verbatim
13724 #: ../fish/guestfish-actions.pod:4116
13725 #, no-wrap
13726 msgid ""
13727 " set-direct true|false\n"
13728 "\n"
13729 msgstr ""
13730 " set-direct true|false\n"
13731 "\n"
13732
13733 #. type: textblock
13734 #: ../fish/guestfish-actions.pod:4118 ../src/guestfs-actions.pod:6230
13735 msgid ""
13736 "If the direct appliance mode flag is enabled, then stdin and stdout are "
13737 "passed directly through to the appliance once it is launched."
13738 msgstr ""
13739
13740 #. type: textblock
13741 #: ../fish/guestfish-actions.pod:4122
13742 msgid ""
13743 "One consequence of this is that log messages aren't caught by the library "
13744 "and handled by L</set-log-message-callback>, but go straight to stdout."
13745 msgstr ""
13746
13747 #. type: textblock
13748 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6238
13749 msgid "You probably don't want to use this unless you know what you are doing."
13750 msgstr ""
13751
13752 #. type: textblock
13753 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6241
13754 msgid "The default is disabled."
13755 msgstr ""
13756
13757 #. type: =head2
13758 #: ../fish/guestfish-actions.pod:4131
13759 msgid "set-e2label"
13760 msgstr "set-e2label"
13761
13762 #. type: verbatim
13763 #: ../fish/guestfish-actions.pod:4133
13764 #, no-wrap
13765 msgid ""
13766 " set-e2label device label\n"
13767 "\n"
13768 msgstr ""
13769
13770 #. type: textblock
13771 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6254
13772 msgid ""
13773 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
13774 "C<label>.  Filesystem labels are limited to 16 characters."
13775 msgstr ""
13776
13777 #. type: textblock
13778 #: ../fish/guestfish-actions.pod:4139
13779 msgid ""
13780 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
13781 "label on a filesystem."
13782 msgstr ""
13783
13784 #. type: =head2
13785 #: ../fish/guestfish-actions.pod:4142
13786 msgid "set-e2uuid"
13787 msgstr "set-e2uuid"
13788
13789 #. type: verbatim
13790 #: ../fish/guestfish-actions.pod:4144
13791 #, no-wrap
13792 msgid ""
13793 " set-e2uuid device uuid\n"
13794 "\n"
13795 msgstr ""
13796
13797 #. type: textblock
13798 #: ../fish/guestfish-actions.pod:4146 ../src/guestfs-actions.pod:6272
13799 msgid ""
13800 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
13801 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
13802 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
13803 msgstr ""
13804
13805 #. type: textblock
13806 #: ../fish/guestfish-actions.pod:4151
13807 msgid ""
13808 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
13809 "UUID of a filesystem."
13810 msgstr ""
13811
13812 #. type: =head2
13813 #: ../fish/guestfish-actions.pod:4154
13814 msgid "set-memsize"
13815 msgstr "set-memsize"
13816
13817 #. type: =head2
13818 #: ../fish/guestfish-actions.pod:4156
13819 msgid "memsize"
13820 msgstr ""
13821
13822 #. type: verbatim
13823 #: ../fish/guestfish-actions.pod:4158
13824 #, no-wrap
13825 msgid ""
13826 " set-memsize memsize\n"
13827 "\n"
13828 msgstr ""
13829
13830 #. type: textblock
13831 #: ../fish/guestfish-actions.pod:4160
13832 msgid ""
13833 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
13834 "This only has any effect if called before L</launch>."
13835 msgstr ""
13836
13837 #. type: textblock
13838 #: ../fish/guestfish-actions.pod:4164 ../src/guestfs-actions.pod:6294
13839 msgid ""
13840 "You can also change this by setting the environment variable "
13841 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
13842 msgstr ""
13843
13844 #. type: =head2
13845 #: ../fish/guestfish-actions.pod:4171
13846 msgid "set-network"
13847 msgstr "set-network"
13848
13849 #. type: =head2
13850 #: ../fish/guestfish-actions.pod:4173
13851 msgid "network"
13852 msgstr "network"
13853
13854 #. type: verbatim
13855 #: ../fish/guestfish-actions.pod:4175
13856 #, no-wrap
13857 msgid ""
13858 " set-network true|false\n"
13859 "\n"
13860 msgstr ""
13861 " set-network true|false\n"
13862 "\n"
13863
13864 #. type: textblock
13865 #: ../fish/guestfish-actions.pod:4177 ../src/guestfs-actions.pod:6311
13866 msgid ""
13867 "If C<network> is true, then the network is enabled in the libguestfs "
13868 "appliance.  The default is false."
13869 msgstr ""
13870
13871 #. type: textblock
13872 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6314
13873 msgid ""
13874 "This affects whether commands are able to access the network (see L<guestfs"
13875 "(3)/RUNNING COMMANDS>)."
13876 msgstr ""
13877
13878 #. type: textblock
13879 #: ../fish/guestfish-actions.pod:4183
13880 msgid ""
13881 "You must call this before calling L</launch>, otherwise it has no effect."
13882 msgstr ""
13883
13884 #. type: =head2
13885 #: ../fish/guestfish-actions.pod:4186
13886 msgid "set-path"
13887 msgstr "set-path"
13888
13889 #. type: verbatim
13890 #: ../fish/guestfish-actions.pod:4190
13891 #, no-wrap
13892 msgid ""
13893 " set-path searchpath\n"
13894 "\n"
13895 msgstr ""
13896
13897 #. type: textblock
13898 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6330
13899 msgid "Set the path that libguestfs searches for kernel and initrd.img."
13900 msgstr ""
13901
13902 #. type: textblock
13903 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6332
13904 msgid ""
13905 "The default is C<$libdir/guestfs> unless overridden by setting "
13906 "C<LIBGUESTFS_PATH> environment variable."
13907 msgstr ""
13908
13909 #. type: textblock
13910 #: ../fish/guestfish-actions.pod:4197 ../src/guestfs-actions.pod:6335
13911 msgid "Setting C<path> to C<NULL> restores the default path."
13912 msgstr ""
13913
13914 #. type: =head2
13915 #: ../fish/guestfish-actions.pod:4199
13916 msgid "set-pgroup"
13917 msgstr ""
13918
13919 #. type: =head2
13920 #: ../fish/guestfish-actions.pod:4201
13921 msgid "pgroup"
13922 msgstr ""
13923
13924 #. type: verbatim
13925 #: ../fish/guestfish-actions.pod:4203
13926 #, no-wrap
13927 msgid ""
13928 " set-pgroup true|false\n"
13929 "\n"
13930 msgstr ""
13931
13932 #. type: textblock
13933 #: ../fish/guestfish-actions.pod:4205 ../src/guestfs-actions.pod:6347
13934 msgid ""
13935 "If C<pgroup> is true, child processes are placed into their own process "
13936 "group."
13937 msgstr ""
13938
13939 #. type: textblock
13940 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6350
13941 msgid ""
13942 "The practical upshot of this is that signals like C<SIGINT> (from users "
13943 "pressing C<^C>) won't be received by the child process."
13944 msgstr ""
13945
13946 #. type: textblock
13947 #: ../fish/guestfish-actions.pod:4211 ../src/guestfs-actions.pod:6353
13948 msgid ""
13949 "The default for this flag is false, because usually you want C<^C> to kill "
13950 "the subprocess."
13951 msgstr ""
13952
13953 #. type: =head2
13954 #: ../fish/guestfish-actions.pod:4214
13955 msgid "set-qemu"
13956 msgstr "set-qemu"
13957
13958 #. type: =head2
13959 #: ../fish/guestfish-actions.pod:4216
13960 msgid "qemu"
13961 msgstr "qemu"
13962
13963 #. type: verbatim
13964 #: ../fish/guestfish-actions.pod:4218
13965 #, no-wrap
13966 msgid ""
13967 " set-qemu qemu\n"
13968 "\n"
13969 msgstr ""
13970 " set-qemu qemu\n"
13971 "\n"
13972
13973 #. type: textblock
13974 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6366
13975 msgid "Set the qemu binary that we will use."
13976 msgstr ""
13977
13978 #. type: textblock
13979 #: ../fish/guestfish-actions.pod:4222 ../src/guestfs-actions.pod:6368
13980 msgid ""
13981 "The default is chosen when the library was compiled by the configure script."
13982 msgstr ""
13983
13984 #. type: textblock
13985 #: ../fish/guestfish-actions.pod:4225 ../src/guestfs-actions.pod:6371
13986 msgid ""
13987 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
13988 "variable."
13989 msgstr ""
13990
13991 #. type: textblock
13992 #: ../fish/guestfish-actions.pod:4228 ../src/guestfs-actions.pod:6374
13993 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
13994 msgstr ""
13995
13996 #. type: textblock
13997 #: ../fish/guestfish-actions.pod:4230 ../src/guestfs-actions.pod:6376
13998 msgid ""
13999 "Note that you should call this function as early as possible after creating "
14000 "the handle.  This is because some pre-launch operations depend on testing "
14001 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14002 "don't retest features, and so you might see inconsistent results.  Using the "
14003 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14004 "the qemu binary at the same time as the handle is created."
14005 msgstr ""
14006
14007 #. type: =head2
14008 #: ../fish/guestfish-actions.pod:4238
14009 msgid "set-recovery-proc"
14010 msgstr "set-recovery-proc"
14011
14012 #. type: =head2
14013 #: ../fish/guestfish-actions.pod:4240
14014 msgid "recovery-proc"
14015 msgstr "recovery-proc"
14016
14017 #. type: verbatim
14018 #: ../fish/guestfish-actions.pod:4242
14019 #, no-wrap
14020 msgid ""
14021 " set-recovery-proc true|false\n"
14022 "\n"
14023 msgstr ""
14024 " set-recovery-proc true|false\n"
14025 "\n"
14026
14027 #. type: textblock
14028 #: ../fish/guestfish-actions.pod:4244
14029 msgid ""
14030 "If this is called with the parameter C<false> then L</launch> does not "
14031 "create a recovery process.  The purpose of the recovery process is to stop "
14032 "runaway qemu processes in the case where the main program aborts abruptly."
14033 msgstr ""
14034
14035 #. type: textblock
14036 #: ../fish/guestfish-actions.pod:4249
14037 msgid ""
14038 "This only has any effect if called before L</launch>, and the default is "
14039 "true."
14040 msgstr ""
14041
14042 #. type: textblock
14043 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6402
14044 msgid ""
14045 "About the only time when you would want to disable this is if the main "
14046 "process will fork itself into the background (\"daemonize\" itself).  In "
14047 "this case the recovery process thinks that the main program has disappeared "
14048 "and so kills qemu, which is not very helpful."
14049 msgstr ""
14050
14051 #. type: =head2
14052 #: ../fish/guestfish-actions.pod:4258
14053 msgid "set-selinux"
14054 msgstr "set-selinux"
14055
14056 #. type: =head2
14057 #: ../fish/guestfish-actions.pod:4260
14058 msgid "selinux"
14059 msgstr "selinux"
14060
14061 #. type: verbatim
14062 #: ../fish/guestfish-actions.pod:4262
14063 #, no-wrap
14064 msgid ""
14065 " set-selinux true|false\n"
14066 "\n"
14067 msgstr ""
14068 " set-selinux true|false\n"
14069 "\n"
14070
14071 #. type: textblock
14072 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6418
14073 msgid ""
14074 "This sets the selinux flag that is passed to the appliance at boot time.  "
14075 "The default is C<selinux=0> (disabled)."
14076 msgstr ""
14077
14078 #. type: textblock
14079 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6421
14080 msgid ""
14081 "Note that if SELinux is enabled, it is always in Permissive mode "
14082 "(C<enforcing=0>)."
14083 msgstr ""
14084
14085 #. type: =head2
14086 #: ../fish/guestfish-actions.pod:4273
14087 msgid "set-trace"
14088 msgstr "set-trace"
14089
14090 #. type: =head2
14091 #: ../fish/guestfish-actions.pod:4275
14092 msgid "trace"
14093 msgstr "trace"
14094
14095 #. type: verbatim
14096 #: ../fish/guestfish-actions.pod:4277
14097 #, no-wrap
14098 msgid ""
14099 " set-trace true|false\n"
14100 "\n"
14101 msgstr ""
14102 " set-trace true|false\n"
14103 "\n"
14104
14105 #. type: textblock
14106 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6437
14107 msgid ""
14108 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14109 "return values are traced."
14110 msgstr ""
14111
14112 #. type: textblock
14113 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6440
14114 msgid ""
14115 "If you want to trace C API calls into libguestfs (and other libraries) then "
14116 "possibly a better way is to use the external ltrace(1) command."
14117 msgstr ""
14118
14119 #. type: textblock
14120 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6444
14121 msgid ""
14122 "Command traces are disabled unless the environment variable "
14123 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14124 msgstr ""
14125
14126 #. type: textblock
14127 #: ../fish/guestfish-actions.pod:4289
14128 msgid ""
14129 "Trace messages are normally sent to C<stderr>, unless you register a "
14130 "callback to send them somewhere else (see L</set-event-callback>)."
14131 msgstr ""
14132
14133 #. type: =head2
14134 #: ../fish/guestfish-actions.pod:4293
14135 msgid "set-verbose"
14136 msgstr "set-verbose"
14137
14138 #. type: =head2
14139 #: ../fish/guestfish-actions.pod:4295
14140 msgid "verbose"
14141 msgstr ""
14142
14143 #. type: verbatim
14144 #: ../fish/guestfish-actions.pod:4297
14145 #, no-wrap
14146 msgid ""
14147 " set-verbose true|false\n"
14148 "\n"
14149 msgstr ""
14150 " set-verbose true|false\n"
14151 "\n"
14152
14153 #. type: textblock
14154 #: ../fish/guestfish-actions.pod:4299 ../src/guestfs-actions.pod:6461
14155 msgid "If C<verbose> is true, this turns on verbose messages."
14156 msgstr ""
14157
14158 #. type: textblock
14159 #: ../fish/guestfish-actions.pod:4301 ../src/guestfs-actions.pod:6463
14160 msgid ""
14161 "Verbose messages are disabled unless the environment variable "
14162 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14163 msgstr ""
14164
14165 #. type: textblock
14166 #: ../fish/guestfish-actions.pod:4304
14167 msgid ""
14168 "Verbose messages are normally sent to C<stderr>, unless you register a "
14169 "callback to send them somewhere else (see L</set-event-callback>)."
14170 msgstr ""
14171
14172 #. type: =head2
14173 #: ../fish/guestfish-actions.pod:4308
14174 msgid "setcon"
14175 msgstr "setcon"
14176
14177 #. type: verbatim
14178 #: ../fish/guestfish-actions.pod:4310
14179 #, no-wrap
14180 msgid ""
14181 " setcon context\n"
14182 "\n"
14183 msgstr ""
14184 " setcon контекст\n"
14185 "\n"
14186
14187 #. type: textblock
14188 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6480
14189 msgid ""
14190 "This sets the SELinux security context of the daemon to the string "
14191 "C<context>."
14192 msgstr ""
14193
14194 #. type: textblock
14195 #: ../fish/guestfish-actions.pod:4315 ../src/guestfs-actions.pod:6483
14196 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14197 msgstr ""
14198
14199 #. type: =head2
14200 #: ../fish/guestfish-actions.pod:4317
14201 msgid "setxattr"
14202 msgstr "setxattr"
14203
14204 #. type: verbatim
14205 #: ../fish/guestfish-actions.pod:4319
14206 #, no-wrap
14207 msgid ""
14208 " setxattr xattr val vallen path\n"
14209 "\n"
14210 msgstr ""
14211
14212 #. type: textblock
14213 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6498
14214 msgid ""
14215 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14216 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14217 msgstr ""
14218
14219 #. type: textblock
14220 #: ../fish/guestfish-actions.pod:4325
14221 msgid "See also: L</lsetxattr>, L<attr(5)>."
14222 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14223
14224 #. type: =head2
14225 #: ../fish/guestfish-actions.pod:4327
14226 msgid "sfdisk"
14227 msgstr "sfdisk"
14228
14229 #. type: verbatim
14230 #: ../fish/guestfish-actions.pod:4329
14231 #, no-wrap
14232 msgid ""
14233 " sfdisk device cyls heads sectors 'lines ...'\n"
14234 "\n"
14235 msgstr ""
14236
14237 #. type: textblock
14238 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6525
14239 msgid ""
14240 "This is a direct interface to the L<sfdisk(8)> program for creating "
14241 "partitions on block devices."
14242 msgstr ""
14243
14244 #. type: textblock
14245 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6528
14246 msgid "C<device> should be a block device, for example C</dev/sda>."
14247 msgstr ""
14248
14249 #. type: textblock
14250 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6530
14251 msgid ""
14252 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14253 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14254 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14255 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14256 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14257 "the kernel) cannot work out the right geometry and you will need to tell it."
14258 msgstr ""
14259
14260 #. type: textblock
14261 #: ../fish/guestfish-actions.pod:4344 ../src/guestfs-actions.pod:6538
14262 msgid ""
14263 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14264 "refer to the L<sfdisk(8)> manpage."
14265 msgstr ""
14266
14267 #. type: textblock
14268 #: ../fish/guestfish-actions.pod:4347 ../src/guestfs-actions.pod:6541
14269 msgid ""
14270 "To create a single partition occupying the whole disk, you would pass "
14271 "C<lines> as a single element list, when the single element being the string "
14272 "C<,> (comma)."
14273 msgstr ""
14274
14275 #. type: textblock
14276 #: ../fish/guestfish-actions.pod:4351
14277 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14278 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14279
14280 #. type: textblock
14281 #: ../fish/guestfish-actions.pod:4357 ../fish/guestfish-actions.pod:4380
14282 #: ../fish/guestfish-actions.pod:4402
14283 msgid ""
14284 "I<This function is deprecated.> In new code, use the L</part_add> call "
14285 "instead."
14286 msgstr ""
14287
14288 #. type: =head2
14289 #: ../fish/guestfish-actions.pod:4364
14290 msgid "sfdiskM"
14291 msgstr "sfdiskM"
14292
14293 #. type: verbatim
14294 #: ../fish/guestfish-actions.pod:4366
14295 #, no-wrap
14296 msgid ""
14297 " sfdiskM device 'lines ...'\n"
14298 "\n"
14299 msgstr ""
14300
14301 #. type: textblock
14302 #: ../fish/guestfish-actions.pod:4368
14303 msgid ""
14304 "This is a simplified interface to the L</sfdisk> command, where partition "
14305 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14306 "you don't need to specify the cyls, heads and sectors parameters which were "
14307 "rarely if ever used anyway."
14308 msgstr ""
14309
14310 #. type: textblock
14311 #: ../fish/guestfish-actions.pod:4374
14312 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14313 msgstr ""
14314 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14315
14316 #. type: =head2
14317 #: ../fish/guestfish-actions.pod:4387
14318 msgid "sfdisk-N"
14319 msgstr "sfdisk-N"
14320
14321 #. type: verbatim
14322 #: ../fish/guestfish-actions.pod:4389
14323 #, no-wrap
14324 msgid ""
14325 " sfdisk-N device partnum cyls heads sectors line\n"
14326 "\n"
14327 msgstr ""
14328
14329 #. type: textblock
14330 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6603
14331 msgid ""
14332 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14333 "(note: C<n> counts from 1)."
14334 msgstr ""
14335
14336 #. type: textblock
14337 #: ../fish/guestfish-actions.pod:4394
14338 msgid ""
14339 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
14340 "cyls/heads/sectors parameters."
14341 msgstr ""
14342
14343 #. type: textblock
14344 #: ../fish/guestfish-actions.pod:4397
14345 msgid "See also: L</part-add>"
14346 msgstr "Див. також L</part-add>"
14347
14348 #. type: =head2
14349 #: ../fish/guestfish-actions.pod:4409
14350 msgid "sfdisk-disk-geometry"
14351 msgstr "sfdisk-disk-geometry"
14352
14353 #. type: verbatim
14354 #: ../fish/guestfish-actions.pod:4411
14355 #, no-wrap
14356 msgid ""
14357 " sfdisk-disk-geometry device\n"
14358 "\n"
14359 msgstr ""
14360 " sfdisk-disk-geometry пристрій\n"
14361 "\n"
14362
14363 #. type: textblock
14364 #: ../fish/guestfish-actions.pod:4413
14365 msgid ""
14366 "This displays the disk geometry of C<device> read from the partition table.  "
14367 "Especially in the case where the underlying block device has been resized, "
14368 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14369 "kernel-geometry>)."
14370 msgstr ""
14371
14372 #. type: textblock
14373 #: ../fish/guestfish-actions.pod:4418 ../fish/guestfish-actions.pod:4427
14374 #: ../src/guestfs-actions.pod:6629 ../src/guestfs-actions.pod:6645
14375 msgid "The result is in human-readable format, and not designed to be parsed."
14376 msgstr ""
14377
14378 #. type: =head2
14379 #: ../fish/guestfish-actions.pod:4421
14380 msgid "sfdisk-kernel-geometry"
14381 msgstr "sfdisk-kernel-geometry"
14382
14383 #. type: verbatim
14384 #: ../fish/guestfish-actions.pod:4423
14385 #, no-wrap
14386 msgid ""
14387 " sfdisk-kernel-geometry device\n"
14388 "\n"
14389 msgstr ""
14390 " sfdisk-kernel-geometry пристрій\n"
14391 "\n"
14392
14393 #. type: textblock
14394 #: ../fish/guestfish-actions.pod:4425 ../src/guestfs-actions.pod:6643
14395 msgid "This displays the kernel's idea of the geometry of C<device>."
14396 msgstr ""
14397
14398 #. type: =head2
14399 #: ../fish/guestfish-actions.pod:4430
14400 msgid "sfdisk-l"
14401 msgstr "sfdisk-l"
14402
14403 #. type: verbatim
14404 #: ../fish/guestfish-actions.pod:4432
14405 #, no-wrap
14406 msgid ""
14407 " sfdisk-l device\n"
14408 "\n"
14409 msgstr ""
14410 " sfdisk-l пристрій\n"
14411 "\n"
14412
14413 #. type: textblock
14414 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6666
14415 msgid ""
14416 "This displays the partition table on C<device>, in the human-readable output "
14417 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14418 msgstr ""
14419
14420 #. type: textblock
14421 #: ../fish/guestfish-actions.pod:4438
14422 msgid "See also: L</part-list>"
14423 msgstr "Див. також L</part-list>"
14424
14425 #. type: textblock
14426 #: ../fish/guestfish-actions.pod:4440
14427 msgid ""
14428 "I<This function is deprecated.> In new code, use the L</part_list> call "
14429 "instead."
14430 msgstr ""
14431
14432 #. type: =head2
14433 #: ../fish/guestfish-actions.pod:4447
14434 msgid "sh"
14435 msgstr "sh"
14436
14437 #. type: verbatim
14438 #: ../fish/guestfish-actions.pod:4449
14439 #, no-wrap
14440 msgid ""
14441 " sh command\n"
14442 "\n"
14443 msgstr ""
14444 " sh команда\n"
14445 "\n"
14446
14447 #. type: textblock
14448 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6683
14449 msgid ""
14450 "This call runs a command from the guest filesystem via the guest's C</bin/"
14451 "sh>."
14452 msgstr ""
14453
14454 #. type: textblock
14455 #: ../fish/guestfish-actions.pod:4454
14456 msgid "This is like L</command>, but passes the command to:"
14457 msgstr ""
14458
14459 #. type: verbatim
14460 #: ../fish/guestfish-actions.pod:4456 ../src/guestfs-actions.pod:6688
14461 #, no-wrap
14462 msgid ""
14463 " /bin/sh -c \"command\"\n"
14464 "\n"
14465 msgstr ""
14466
14467 #. type: textblock
14468 #: ../fish/guestfish-actions.pod:4458 ../src/guestfs-actions.pod:6690
14469 msgid ""
14470 "Depending on the guest's shell, this usually results in wildcards being "
14471 "expanded, shell expressions being interpolated and so on."
14472 msgstr ""
14473
14474 #. type: textblock
14475 #: ../fish/guestfish-actions.pod:4462
14476 msgid "All the provisos about L</command> apply to this call."
14477 msgstr ""
14478
14479 #. type: =head2
14480 #: ../fish/guestfish-actions.pod:4464
14481 msgid "sh-lines"
14482 msgstr "sh-lines"
14483
14484 #. type: verbatim
14485 #: ../fish/guestfish-actions.pod:4466
14486 #, no-wrap
14487 msgid ""
14488 " sh-lines command\n"
14489 "\n"
14490 msgstr ""
14491 " sh-lines команда\n"
14492 "\n"
14493
14494 #. type: textblock
14495 #: ../fish/guestfish-actions.pod:4468
14496 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14497 msgstr ""
14498
14499 #. type: textblock
14500 #: ../fish/guestfish-actions.pod:4471
14501 msgid "See also: L</command-lines>"
14502 msgstr "Див. також L</command-lines>"
14503
14504 #. type: =head2
14505 #: ../fish/guestfish-actions.pod:4473
14506 msgid "sleep"
14507 msgstr "sleep"
14508
14509 #. type: verbatim
14510 #: ../fish/guestfish-actions.pod:4475
14511 #, no-wrap
14512 msgid ""
14513 " sleep secs\n"
14514 "\n"
14515 msgstr ""
14516 " sleep час_у_секундах\n"
14517 "\n"
14518
14519 #. type: textblock
14520 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6724
14521 msgid "Sleep for C<secs> seconds."
14522 msgstr ""
14523
14524 #. type: =head2
14525 #: ../fish/guestfish-actions.pod:4479
14526 msgid "stat"
14527 msgstr "stat"
14528
14529 #. type: verbatim
14530 #: ../fish/guestfish-actions.pod:4481
14531 #, no-wrap
14532 msgid ""
14533 " stat path\n"
14534 "\n"
14535 msgstr ""
14536 " stat шлях\n"
14537 "\n"
14538
14539 #. type: textblock
14540 #: ../fish/guestfish-actions.pod:4485 ../src/guestfs-actions.pod:6738
14541 msgid "This is the same as the C<stat(2)> system call."
14542 msgstr ""
14543
14544 #. type: =head2
14545 #: ../fish/guestfish-actions.pod:4487
14546 msgid "statvfs"
14547 msgstr "statvfs"
14548
14549 #. type: verbatim
14550 #: ../fish/guestfish-actions.pod:4489
14551 #, no-wrap
14552 msgid ""
14553 " statvfs path\n"
14554 "\n"
14555 msgstr ""
14556 " statvfs шлях\n"
14557 "\n"
14558
14559 #. type: textblock
14560 #: ../fish/guestfish-actions.pod:4491 ../src/guestfs-actions.pod:6752
14561 msgid ""
14562 "Returns file system statistics for any mounted file system.  C<path> should "
14563 "be a file or directory in the mounted file system (typically it is the mount "
14564 "point itself, but it doesn't need to be)."
14565 msgstr ""
14566
14567 #. type: textblock
14568 #: ../fish/guestfish-actions.pod:4495 ../src/guestfs-actions.pod:6756
14569 msgid "This is the same as the C<statvfs(2)> system call."
14570 msgstr ""
14571
14572 #. type: =head2
14573 #: ../fish/guestfish-actions.pod:4497
14574 msgid "strings"
14575 msgstr "strings"
14576
14577 #. type: verbatim
14578 #: ../fish/guestfish-actions.pod:4499
14579 #, no-wrap
14580 msgid ""
14581 " strings path\n"
14582 "\n"
14583 msgstr ""
14584 " strings шлях\n"
14585 "\n"
14586
14587 #. type: textblock
14588 #: ../fish/guestfish-actions.pod:4501 ../src/guestfs-actions.pod:6770
14589 msgid ""
14590 "This runs the L<strings(1)> command on a file and returns the list of "
14591 "printable strings found."
14592 msgstr ""
14593
14594 #. type: =head2
14595 #: ../fish/guestfish-actions.pod:4507
14596 msgid "strings-e"
14597 msgstr "strings-e"
14598
14599 #. type: verbatim
14600 #: ../fish/guestfish-actions.pod:4509
14601 #, no-wrap
14602 msgid ""
14603 " strings-e encoding path\n"
14604 "\n"
14605 msgstr ""
14606 " strings-e кодування шлях\n"
14607 "\n"
14608
14609 #. type: textblock
14610 #: ../fish/guestfish-actions.pod:4511
14611 msgid ""
14612 "This is like the L</strings> command, but allows you to specify the encoding "
14613 "of strings that are looked for in the source file C<path>."
14614 msgstr ""
14615
14616 #. type: textblock
14617 #: ../fish/guestfish-actions.pod:4515 ../src/guestfs-actions.pod:6793
14618 msgid "Allowed encodings are:"
14619 msgstr "Можливими кодуваннями є:"
14620
14621 #. type: =item
14622 #: ../fish/guestfish-actions.pod:4519 ../src/guestfs-actions.pod:6797
14623 msgid "s"
14624 msgstr "s"
14625
14626 #. type: textblock
14627 #: ../fish/guestfish-actions.pod:4521
14628 msgid ""
14629 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14630 "ISO-8859-X (this is what L</strings> uses)."
14631 msgstr ""
14632
14633 #. type: =item
14634 #: ../fish/guestfish-actions.pod:4524 ../src/guestfs-actions.pod:6802
14635 msgid "S"
14636 msgstr "S"
14637
14638 #. type: textblock
14639 #: ../fish/guestfish-actions.pod:4526 ../src/guestfs-actions.pod:6804
14640 msgid "Single 8-bit-byte characters."
14641 msgstr "Окремі 8-бітові-байтові символи."
14642
14643 #. type: =item
14644 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6806
14645 msgid "b"
14646 msgstr "b"
14647
14648 #. type: textblock
14649 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6808
14650 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14651 msgstr ""
14652
14653 #. type: =item
14654 #: ../fish/guestfish-actions.pod:4533 ../src/guestfs-actions.pod:6811
14655 msgid "l (lower case letter L)"
14656 msgstr ""
14657
14658 #. type: textblock
14659 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6813
14660 msgid ""
14661 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14662 "examining binaries in Windows guests."
14663 msgstr ""
14664
14665 #. type: =item
14666 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6816
14667 msgid "B"
14668 msgstr "B"
14669
14670 #. type: textblock
14671 #: ../fish/guestfish-actions.pod:4540 ../src/guestfs-actions.pod:6818
14672 msgid "32-bit big endian such as UCS-4BE."
14673 msgstr ""
14674
14675 #. type: =item
14676 #: ../fish/guestfish-actions.pod:4542 ../src/guestfs-actions.pod:6820
14677 msgid "L"
14678 msgstr "L"
14679
14680 #. type: textblock
14681 #: ../fish/guestfish-actions.pod:4544 ../src/guestfs-actions.pod:6822
14682 msgid "32-bit little endian such as UCS-4LE."
14683 msgstr ""
14684
14685 #. type: textblock
14686 #: ../fish/guestfish-actions.pod:4548 ../src/guestfs-actions.pod:6826
14687 msgid "The returned strings are transcoded to UTF-8."
14688 msgstr ""
14689
14690 #. type: =head2
14691 #: ../fish/guestfish-actions.pod:4553
14692 msgid "swapoff-device"
14693 msgstr "swapoff-device"
14694
14695 #. type: verbatim
14696 #: ../fish/guestfish-actions.pod:4555
14697 #, no-wrap
14698 msgid ""
14699 " swapoff-device device\n"
14700 "\n"
14701 msgstr ""
14702 " swapoff-device пристрій\n"
14703 "\n"
14704
14705 #. type: textblock
14706 #: ../fish/guestfish-actions.pod:4557
14707 msgid ""
14708 "This command disables the libguestfs appliance swap device or partition "
14709 "named C<device>.  See L</swapon-device>."
14710 msgstr ""
14711
14712 #. type: =head2
14713 #: ../fish/guestfish-actions.pod:4561
14714 msgid "swapoff-file"
14715 msgstr "swapoff-file"
14716
14717 #. type: verbatim
14718 #: ../fish/guestfish-actions.pod:4563
14719 #, no-wrap
14720 msgid ""
14721 " swapoff-file file\n"
14722 "\n"
14723 msgstr ""
14724 " swapoff-file файл\n"
14725 "\n"
14726
14727 #. type: textblock
14728 #: ../fish/guestfish-actions.pod:4565 ../src/guestfs-actions.pod:6857
14729 msgid "This command disables the libguestfs appliance swap on file."
14730 msgstr ""
14731
14732 #. type: =head2
14733 #: ../fish/guestfish-actions.pod:4567
14734 msgid "swapoff-label"
14735 msgstr "swapoff-label"
14736
14737 #. type: verbatim
14738 #: ../fish/guestfish-actions.pod:4569
14739 #, no-wrap
14740 msgid ""
14741 " swapoff-label label\n"
14742 "\n"
14743 msgstr ""
14744 " swapoff-label мітка\n"
14745 "\n"
14746
14747 #. type: textblock
14748 #: ../fish/guestfish-actions.pod:4571 ../src/guestfs-actions.pod:6869
14749 msgid ""
14750 "This command disables the libguestfs appliance swap on labeled swap "
14751 "partition."
14752 msgstr ""
14753
14754 #. type: =head2
14755 #: ../fish/guestfish-actions.pod:4574
14756 msgid "swapoff-uuid"
14757 msgstr "swapoff-uuid"
14758
14759 #. type: verbatim
14760 #: ../fish/guestfish-actions.pod:4576
14761 #, no-wrap
14762 msgid ""
14763 " swapoff-uuid uuid\n"
14764 "\n"
14765 msgstr ""
14766 " swapoff-uuid uuid\n"
14767 "\n"
14768
14769 #. type: textblock
14770 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6882
14771 msgid ""
14772 "This command disables the libguestfs appliance swap partition with the given "
14773 "UUID."
14774 msgstr ""
14775
14776 #. type: =head2
14777 #: ../fish/guestfish-actions.pod:4581
14778 msgid "swapon-device"
14779 msgstr "swapon-device"
14780
14781 #. type: verbatim
14782 #: ../fish/guestfish-actions.pod:4583
14783 #, no-wrap
14784 msgid ""
14785 " swapon-device device\n"
14786 "\n"
14787 msgstr ""
14788 " swapon-device пристрій\n"
14789 "\n"
14790
14791 #. type: textblock
14792 #: ../fish/guestfish-actions.pod:4585
14793 msgid ""
14794 "This command enables the libguestfs appliance to use the swap device or "
14795 "partition named C<device>.  The increased memory is made available for all "
14796 "commands, for example those run using L</command> or L</sh>."
14797 msgstr ""
14798
14799 #. type: textblock
14800 #: ../fish/guestfish-actions.pod:4590 ../src/guestfs-actions.pod:6900
14801 msgid ""
14802 "Note that you should not swap to existing guest swap partitions unless you "
14803 "know what you are doing.  They may contain hibernation information, or other "
14804 "information that the guest doesn't want you to trash.  You also risk leaking "
14805 "information about the host to the guest this way.  Instead, attach a new "
14806 "host device to the guest and swap on that."
14807 msgstr ""
14808
14809 #. type: =head2
14810 #: ../fish/guestfish-actions.pod:4597
14811 msgid "swapon-file"
14812 msgstr "swapon-file"
14813
14814 #. type: verbatim
14815 #: ../fish/guestfish-actions.pod:4599
14816 #, no-wrap
14817 msgid ""
14818 " swapon-file file\n"
14819 "\n"
14820 msgstr ""
14821 " swapon-file файл\n"
14822 "\n"
14823
14824 #. type: textblock
14825 #: ../fish/guestfish-actions.pod:4601
14826 msgid ""
14827 "This command enables swap to a file.  See L</swapon-device> for other notes."
14828 msgstr ""
14829
14830 #. type: =head2
14831 #: ../fish/guestfish-actions.pod:4604
14832 msgid "swapon-label"
14833 msgstr "swapon-label"
14834
14835 #. type: verbatim
14836 #: ../fish/guestfish-actions.pod:4606
14837 #, no-wrap
14838 msgid ""
14839 " swapon-label label\n"
14840 "\n"
14841 msgstr ""
14842 " swapon-label мітка\n"
14843 "\n"
14844
14845 #. type: textblock
14846 #: ../fish/guestfish-actions.pod:4608
14847 msgid ""
14848 "This command enables swap to a labeled swap partition.  See L</swapon-"
14849 "device> for other notes."
14850 msgstr ""
14851
14852 #. type: =head2
14853 #: ../fish/guestfish-actions.pod:4611
14854 msgid "swapon-uuid"
14855 msgstr "swapon-uuid"
14856
14857 #. type: verbatim
14858 #: ../fish/guestfish-actions.pod:4613
14859 #, no-wrap
14860 msgid ""
14861 " swapon-uuid uuid\n"
14862 "\n"
14863 msgstr ""
14864 " swapon-uuid uuid\n"
14865 "\n"
14866
14867 #. type: textblock
14868 #: ../fish/guestfish-actions.pod:4615
14869 msgid ""
14870 "This command enables swap to a swap partition with the given UUID.  See L</"
14871 "swapon-device> for other notes."
14872 msgstr ""
14873
14874 #. type: =head2
14875 #: ../fish/guestfish-actions.pod:4618
14876 msgid "sync"
14877 msgstr "sync"
14878
14879 #. type: verbatim
14880 #: ../fish/guestfish-actions.pod:4620
14881 #, no-wrap
14882 msgid ""
14883 " sync\n"
14884 "\n"
14885 msgstr ""
14886 " sync\n"
14887 "\n"
14888
14889 #. type: textblock
14890 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6955
14891 msgid ""
14892 "This syncs the disk, so that any writes are flushed through to the "
14893 "underlying disk image."
14894 msgstr ""
14895
14896 #. type: textblock
14897 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6958
14898 msgid ""
14899 "You should always call this if you have modified a disk image, before "
14900 "closing the handle."
14901 msgstr ""
14902
14903 #. type: =head2
14904 #: ../fish/guestfish-actions.pod:4628
14905 msgid "tail"
14906 msgstr "tail"
14907
14908 #. type: verbatim
14909 #: ../fish/guestfish-actions.pod:4630
14910 #, no-wrap
14911 msgid ""
14912 " tail path\n"
14913 "\n"
14914 msgstr ""
14915 " tail шлях\n"
14916 "\n"
14917
14918 #. type: textblock
14919 #: ../fish/guestfish-actions.pod:4632 ../src/guestfs-actions.pod:6971
14920 msgid ""
14921 "This command returns up to the last 10 lines of a file as a list of strings."
14922 msgstr ""
14923
14924 #. type: =head2
14925 #: ../fish/guestfish-actions.pod:4638
14926 msgid "tail-n"
14927 msgstr "tail-n"
14928
14929 #. type: verbatim
14930 #: ../fish/guestfish-actions.pod:4640
14931 #, no-wrap
14932 msgid ""
14933 " tail-n nrlines path\n"
14934 "\n"
14935 msgstr ""
14936
14937 #. type: textblock
14938 #: ../fish/guestfish-actions.pod:4642 ../src/guestfs-actions.pod:6990
14939 msgid ""
14940 "If the parameter C<nrlines> is a positive number, this returns the last "
14941 "C<nrlines> lines of the file C<path>."
14942 msgstr ""
14943
14944 #. type: textblock
14945 #: ../fish/guestfish-actions.pod:4645 ../src/guestfs-actions.pod:6993
14946 msgid ""
14947 "If the parameter C<nrlines> is a negative number, this returns lines from "
14948 "the file C<path>, starting with the C<-nrlines>th line."
14949 msgstr ""
14950
14951 #. type: =head2
14952 #: ../fish/guestfish-actions.pod:4653
14953 msgid "tar-in"
14954 msgstr "tar-in"
14955
14956 #. type: verbatim
14957 #: ../fish/guestfish-actions.pod:4655
14958 #, no-wrap
14959 msgid ""
14960 " tar-in (tarfile|-) directory\n"
14961 "\n"
14962 msgstr ""
14963 " tar-in (файл_tar|-) каталог\n"
14964 "\n"
14965
14966 #. type: textblock
14967 #: ../fish/guestfish-actions.pod:4657 ../src/guestfs-actions.pod:7014
14968 msgid ""
14969 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
14970 "tar file) into C<directory>."
14971 msgstr ""
14972
14973 #. type: textblock
14974 #: ../fish/guestfish-actions.pod:4660
14975 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
14976 msgstr ""
14977
14978 #. type: =head2
14979 #: ../fish/guestfish-actions.pod:4665
14980 msgid "tar-out"
14981 msgstr "tar-out"
14982
14983 #. type: verbatim
14984 #: ../fish/guestfish-actions.pod:4667
14985 #, no-wrap
14986 msgid ""
14987 " tar-out directory (tarfile|-)\n"
14988 "\n"
14989 msgstr ""
14990 " tar-out каталог (файл tar|-)\n"
14991 "\n"
14992
14993 #. type: textblock
14994 #: ../fish/guestfish-actions.pod:4669 ../src/guestfs-actions.pod:7031
14995 msgid ""
14996 "This command packs the contents of C<directory> and downloads it to local "
14997 "file C<tarfile>."
14998 msgstr ""
14999
15000 #. type: textblock
15001 #: ../fish/guestfish-actions.pod:4672
15002 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15003 msgstr ""
15004
15005 #. type: =head2
15006 #: ../fish/guestfish-actions.pod:4677
15007 msgid "tgz-in"
15008 msgstr "tgz-in"
15009
15010 #. type: verbatim
15011 #: ../fish/guestfish-actions.pod:4679
15012 #, no-wrap
15013 msgid ""
15014 " tgz-in (tarball|-) directory\n"
15015 "\n"
15016 msgstr ""
15017 " tgz-in (архів tar|-) каталог\n"
15018 "\n"
15019
15020 #. type: textblock
15021 #: ../fish/guestfish-actions.pod:4681 ../src/guestfs-actions.pod:7048
15022 msgid ""
15023 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15024 "tar file) into C<directory>."
15025 msgstr ""
15026
15027 #. type: textblock
15028 #: ../fish/guestfish-actions.pod:4684
15029 msgid "To upload an uncompressed tarball, use L</tar-in>."
15030 msgstr ""
15031
15032 #. type: =head2
15033 #: ../fish/guestfish-actions.pod:4688
15034 msgid "tgz-out"
15035 msgstr "tgz-out"
15036
15037 #. type: verbatim
15038 #: ../fish/guestfish-actions.pod:4690
15039 #, no-wrap
15040 msgid ""
15041 " tgz-out directory (tarball|-)\n"
15042 "\n"
15043 msgstr ""
15044 " tgz-out каталог (архів tar|-)\n"
15045 "\n"
15046
15047 #. type: textblock
15048 #: ../fish/guestfish-actions.pod:4692 ../src/guestfs-actions.pod:7064
15049 msgid ""
15050 "This command packs the contents of C<directory> and downloads it to local "
15051 "file C<tarball>."
15052 msgstr ""
15053
15054 #. type: textblock
15055 #: ../fish/guestfish-actions.pod:4695
15056 msgid "To download an uncompressed tarball, use L</tar-out>."
15057 msgstr ""
15058
15059 #. type: =head2
15060 #: ../fish/guestfish-actions.pod:4699
15061 msgid "touch"
15062 msgstr "touch"
15063
15064 #. type: verbatim
15065 #: ../fish/guestfish-actions.pod:4701
15066 #, no-wrap
15067 msgid ""
15068 " touch path\n"
15069 "\n"
15070 msgstr ""
15071 " touch шлях\n"
15072 "\n"
15073
15074 #. type: textblock
15075 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7079
15076 msgid ""
15077 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15078 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15079 "length file."
15080 msgstr ""
15081
15082 #. type: textblock
15083 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7083
15084 msgid ""
15085 "This command only works on regular files, and will fail on other file types "
15086 "such as directories, symbolic links, block special etc."
15087 msgstr ""
15088
15089 #. type: =head2
15090 #: ../fish/guestfish-actions.pod:4710
15091 msgid "truncate"
15092 msgstr "truncate"
15093
15094 #. type: verbatim
15095 #: ../fish/guestfish-actions.pod:4712
15096 #, no-wrap
15097 msgid ""
15098 " truncate path\n"
15099 "\n"
15100 msgstr ""
15101 " truncate шлях\n"
15102 "\n"
15103
15104 #. type: textblock
15105 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7096
15106 msgid ""
15107 "This command truncates C<path> to a zero-length file.  The file must exist "
15108 "already."
15109 msgstr ""
15110
15111 #. type: =head2
15112 #: ../fish/guestfish-actions.pod:4717
15113 msgid "truncate-size"
15114 msgstr "truncate-size"
15115
15116 #. type: verbatim
15117 #: ../fish/guestfish-actions.pod:4719
15118 #, no-wrap
15119 msgid ""
15120 " truncate-size path size\n"
15121 "\n"
15122 msgstr ""
15123 " truncate-size шлях розмір\n"
15124 "\n"
15125
15126 #. type: textblock
15127 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7110
15128 msgid ""
15129 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15130 "already."
15131 msgstr ""
15132
15133 #. type: textblock
15134 #: ../fish/guestfish-actions.pod:4724
15135 msgid ""
15136 "If the current file size is less than C<size> then the file is extended to "
15137 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15138 "blocks are not allocated for the file until you write to it).  To create a "
15139 "non-sparse file of zeroes, use L</fallocate64> instead."
15140 msgstr ""
15141
15142 #. type: =head2
15143 #: ../fish/guestfish-actions.pod:4730
15144 msgid "tune2fs-l"
15145 msgstr "tune2fs-l"
15146
15147 #. type: verbatim
15148 #: ../fish/guestfish-actions.pod:4732
15149 #, no-wrap
15150 msgid ""
15151 " tune2fs-l device\n"
15152 "\n"
15153 msgstr ""
15154 " tune2fs-l пристрій\n"
15155 "\n"
15156
15157 #. type: textblock
15158 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7129
15159 msgid ""
15160 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15161 "C<device>."
15162 msgstr ""
15163
15164 #. type: textblock
15165 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7132
15166 msgid ""
15167 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15168 "for more details.  The list of fields returned isn't clearly defined, and "
15169 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15170 "and the filesystem itself."
15171 msgstr ""
15172
15173 #. type: =head2
15174 #: ../fish/guestfish-actions.pod:4742
15175 msgid "txz-in"
15176 msgstr "txz-in"
15177
15178 #. type: verbatim
15179 #: ../fish/guestfish-actions.pod:4744
15180 #, no-wrap
15181 msgid ""
15182 " txz-in (tarball|-) directory\n"
15183 "\n"
15184 msgstr ""
15185 " txz-in (архів tar|-) каталог\n"
15186 "\n"
15187
15188 #. type: textblock
15189 #: ../fish/guestfish-actions.pod:4746 ../src/guestfs-actions.pod:7152
15190 msgid ""
15191 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15192 "tar file) into C<directory>."
15193 msgstr ""
15194
15195 #. type: =head2
15196 #: ../fish/guestfish-actions.pod:4751
15197 msgid "txz-out"
15198 msgstr "txz-out"
15199
15200 #. type: verbatim
15201 #: ../fish/guestfish-actions.pod:4753
15202 #, no-wrap
15203 msgid ""
15204 " txz-out directory (tarball|-)\n"
15205 "\n"
15206 msgstr ""
15207 " txz-out каталог (архів tar|-)\n"
15208 "\n"
15209
15210 #. type: textblock
15211 #: ../fish/guestfish-actions.pod:4755 ../src/guestfs-actions.pod:7166
15212 msgid ""
15213 "This command packs the contents of C<directory> and downloads it to local "
15214 "file C<tarball> (as an xz compressed tar archive)."
15215 msgstr ""
15216
15217 #. type: =head2
15218 #: ../fish/guestfish-actions.pod:4760
15219 msgid "umask"
15220 msgstr "umask"
15221
15222 #. type: verbatim
15223 #: ../fish/guestfish-actions.pod:4762
15224 #, no-wrap
15225 msgid ""
15226 " umask mask\n"
15227 "\n"
15228 msgstr ""
15229 " umask маска\n"
15230 "\n"
15231
15232 #. type: textblock
15233 #: ../fish/guestfish-actions.pod:4764 ../src/guestfs-actions.pod:7179
15234 msgid ""
15235 "This function sets the mask used for creating new files and device nodes to "
15236 "C<mask & 0777>."
15237 msgstr ""
15238
15239 #. type: textblock
15240 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7182
15241 msgid ""
15242 "Typical umask values would be C<022> which creates new files with "
15243 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15244 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15245 msgstr ""
15246
15247 #. type: textblock
15248 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7187
15249 msgid ""
15250 "The default umask is C<022>.  This is important because it means that "
15251 "directories and device nodes will be created with C<0644> or C<0755> mode "
15252 "even if you specify C<0777>."
15253 msgstr ""
15254
15255 #. type: textblock
15256 #: ../fish/guestfish-actions.pod:4776
15257 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15258 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15259
15260 #. type: textblock
15261 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7194
15262 msgid "This call returns the previous umask."
15263 msgstr ""
15264
15265 #. type: =head2
15266 #: ../fish/guestfish-actions.pod:4781
15267 msgid "umount"
15268 msgstr "umount"
15269
15270 #. type: =head2
15271 #: ../fish/guestfish-actions.pod:4783
15272 msgid "unmount"
15273 msgstr "unmount"
15274
15275 #. type: verbatim
15276 #: ../fish/guestfish-actions.pod:4785
15277 #, no-wrap
15278 msgid ""
15279 " umount pathordevice\n"
15280 "\n"
15281 msgstr ""
15282 " umount шлях_або_пристрій\n"
15283 "\n"
15284
15285 #. type: textblock
15286 #: ../fish/guestfish-actions.pod:4787 ../src/guestfs-actions.pod:7206
15287 msgid ""
15288 "This unmounts the given filesystem.  The filesystem may be specified either "
15289 "by its mountpoint (path) or the device which contains the filesystem."
15290 msgstr ""
15291
15292 #. type: =head2
15293 #: ../fish/guestfish-actions.pod:4791
15294 msgid "umount-all"
15295 msgstr "umount-all"
15296
15297 #. type: =head2
15298 #: ../fish/guestfish-actions.pod:4793
15299 msgid "unmount-all"
15300 msgstr "unmount-all"
15301
15302 #. type: verbatim
15303 #: ../fish/guestfish-actions.pod:4795
15304 #, no-wrap
15305 msgid ""
15306 " umount-all\n"
15307 "\n"
15308 msgstr ""
15309 " umount-all\n"
15310 "\n"
15311
15312 #. type: textblock
15313 #: ../fish/guestfish-actions.pod:4797 ../src/guestfs-actions.pod:7219
15314 msgid "This unmounts all mounted filesystems."
15315 msgstr ""
15316
15317 #. type: textblock
15318 #: ../fish/guestfish-actions.pod:4799 ../src/guestfs-actions.pod:7221
15319 msgid "Some internal mounts are not unmounted by this call."
15320 msgstr ""
15321
15322 #. type: =head2
15323 #: ../fish/guestfish-actions.pod:4801
15324 msgid "upload"
15325 msgstr "upload"
15326
15327 #. type: verbatim
15328 #: ../fish/guestfish-actions.pod:4803
15329 #, no-wrap
15330 msgid ""
15331 " upload (filename|-) remotefilename\n"
15332 "\n"
15333 msgstr ""
15334 " upload (назва_файла|-) назва_віддаленого_файла\n"
15335 "\n"
15336
15337 #. type: textblock
15338 #: ../fish/guestfish-actions.pod:4805 ../fish/guestfish-actions.pod:4818
15339 #: ../src/guestfs-actions.pod:7234 ../src/guestfs-actions.pod:7258
15340 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15341 msgstr ""
15342
15343 #. type: textblock
15344 #: ../fish/guestfish-actions.pod:4810
15345 msgid "See also L</download>."
15346 msgstr "Див. також L</download>."
15347
15348 #. type: =head2
15349 #: ../fish/guestfish-actions.pod:4814
15350 msgid "upload-offset"
15351 msgstr "upload-offset"
15352
15353 #. type: verbatim
15354 #: ../fish/guestfish-actions.pod:4816
15355 #, no-wrap
15356 msgid ""
15357 " upload-offset (filename|-) remotefilename offset\n"
15358 "\n"
15359 msgstr ""
15360 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15361 "\n"
15362
15363 #. type: textblock
15364 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7261
15365 msgid ""
15366 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15367 "The intention is to overwrite parts of existing files or devices, although "
15368 "if a non-existant file is specified then it is created with a \"hole\" "
15369 "before C<offset>.  The size of the data written is implicit in the size of "
15370 "the source C<filename>."
15371 msgstr ""
15372
15373 #. type: textblock
15374 #: ../fish/guestfish-actions.pod:4828
15375 msgid ""
15376 "Note that there is no limit on the amount of data that can be uploaded with "
15377 "this call, unlike with L</pwrite>, and this call always writes the full "
15378 "amount unless an error occurs."
15379 msgstr ""
15380
15381 #. type: textblock
15382 #: ../fish/guestfish-actions.pod:4833
15383 msgid "See also L</upload>, L</pwrite>."
15384 msgstr "Див. також L</upload>, L</pwrite>."
15385
15386 #. type: =head2
15387 #: ../fish/guestfish-actions.pod:4837
15388 msgid "utimens"
15389 msgstr "utimens"
15390
15391 #. type: verbatim
15392 #: ../fish/guestfish-actions.pod:4839
15393 #, no-wrap
15394 msgid ""
15395 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15396 "\n"
15397 msgstr ""
15398
15399 #. type: textblock
15400 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7294
15401 msgid "This command sets the timestamps of a file with nanosecond precision."
15402 msgstr ""
15403
15404 #. type: textblock
15405 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7297
15406 msgid ""
15407 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15408 "from the epoch."
15409 msgstr ""
15410
15411 #. type: textblock
15412 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7300
15413 msgid ""
15414 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15415 "nanoseconds from the epoch."
15416 msgstr ""
15417
15418 #. type: textblock
15419 #: ../fish/guestfish-actions.pod:4850 ../src/guestfs-actions.pod:7303
15420 msgid ""
15421 "If the C<*nsecs> field contains the special value C<-1> then the "
15422 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15423 "ignored in this case)."
15424 msgstr ""
15425
15426 #. type: textblock
15427 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7307
15428 msgid ""
15429 "If the C<*nsecs> field contains the special value C<-2> then the "
15430 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15431 "in this case)."
15432 msgstr ""
15433
15434 #. type: =head2
15435 #: ../fish/guestfish-actions.pod:4858
15436 msgid "version"
15437 msgstr "version"
15438
15439 #. type: verbatim
15440 #: ../fish/guestfish-actions.pod:4860
15441 #, no-wrap
15442 msgid ""
15443 " version\n"
15444 "\n"
15445 msgstr ""
15446 " version\n"
15447 "\n"
15448
15449 #. type: textblock
15450 #: ../fish/guestfish-actions.pod:4862 ../src/guestfs-actions.pod:7320
15451 msgid ""
15452 "Return the libguestfs version number that the program is linked against."
15453 msgstr ""
15454
15455 #. type: textblock
15456 #: ../fish/guestfish-actions.pod:4865 ../src/guestfs-actions.pod:7323
15457 msgid ""
15458 "Note that because of dynamic linking this is not necessarily the version of "
15459 "libguestfs that you compiled against.  You can compile the program, and then "
15460 "at runtime dynamically link against a completely different C<libguestfs.so> "
15461 "library."
15462 msgstr ""
15463
15464 #. type: textblock
15465 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7328
15466 msgid ""
15467 "This call was added in version C<1.0.58>.  In previous versions of "
15468 "libguestfs there was no way to get the version number.  From C code you can "
15469 "use dynamic linker functions to find out if this symbol exists (if it "
15470 "doesn't, then it's an earlier version)."
15471 msgstr ""
15472
15473 #. type: textblock
15474 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7334
15475 msgid ""
15476 "The call returns a structure with four elements.  The first three (C<major>, "
15477 "C<minor> and C<release>) are numbers and correspond to the usual version "
15478 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15479 "but may be used for distro-specific information."
15480 msgstr ""
15481
15482 #. type: textblock
15483 #: ../fish/guestfish-actions.pod:4882 ../src/guestfs-actions.pod:7340
15484 msgid ""
15485 "To construct the original version string: C<$major.$minor.$release$extra>"
15486 msgstr ""
15487
15488 #. type: textblock
15489 #: ../fish/guestfish-actions.pod:4885 ../src/guestfs-actions.pod:7343
15490 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15491 msgstr ""
15492
15493 #. type: textblock
15494 #: ../fish/guestfish-actions.pod:4887
15495 msgid ""
15496 "I<Note:> Don't use this call to test for availability of features.  In "
15497 "enterprise distributions we backport features from later versions into "
15498 "earlier versions, making this an unreliable way to test for features.  Use "
15499 "L</available> instead."
15500 msgstr ""
15501
15502 #. type: =head2
15503 #: ../fish/guestfish-actions.pod:4893
15504 msgid "vfs-label"
15505 msgstr "vfs-label"
15506
15507 #. type: verbatim
15508 #: ../fish/guestfish-actions.pod:4895
15509 #, no-wrap
15510 msgid ""
15511 " vfs-label device\n"
15512 "\n"
15513 msgstr ""
15514 " vfs-label пристрій\n"
15515 "\n"
15516
15517 #. type: textblock
15518 #: ../fish/guestfish-actions.pod:4897 ../src/guestfs-actions.pod:7363
15519 msgid "This returns the filesystem label of the filesystem on C<device>."
15520 msgstr ""
15521
15522 #. type: textblock
15523 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7366
15524 msgid "If the filesystem is unlabeled, this returns the empty string."
15525 msgstr ""
15526
15527 #. type: textblock
15528 #: ../fish/guestfish-actions.pod:4902
15529 msgid "To find a filesystem from the label, use L</findfs-label>."
15530 msgstr ""
15531
15532 #. type: =head2
15533 #: ../fish/guestfish-actions.pod:4904
15534 msgid "vfs-type"
15535 msgstr "vfs-type"
15536
15537 #. type: verbatim
15538 #: ../fish/guestfish-actions.pod:4906
15539 #, no-wrap
15540 msgid ""
15541 " vfs-type device\n"
15542 "\n"
15543 msgstr ""
15544 " vfs-type пристрій\n"
15545 "\n"
15546
15547 #. type: textblock
15548 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7381
15549 msgid ""
15550 "This command gets the filesystem type corresponding to the filesystem on "
15551 "C<device>."
15552 msgstr ""
15553
15554 #. type: textblock
15555 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7384
15556 msgid ""
15557 "For most filesystems, the result is the name of the Linux VFS module which "
15558 "would be used to mount this filesystem if you mounted it without specifying "
15559 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15560 msgstr ""
15561
15562 #. type: =head2
15563 #: ../fish/guestfish-actions.pod:4916
15564 msgid "vfs-uuid"
15565 msgstr "vfs-uuid"
15566
15567 #. type: verbatim
15568 #: ../fish/guestfish-actions.pod:4918
15569 #, no-wrap
15570 msgid ""
15571 " vfs-uuid device\n"
15572 "\n"
15573 msgstr ""
15574 " vfs-uuid пристрій\n"
15575 "\n"
15576
15577 #. type: textblock
15578 #: ../fish/guestfish-actions.pod:4920 ../src/guestfs-actions.pod:7400
15579 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15580 msgstr ""
15581
15582 #. type: textblock
15583 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7403
15584 msgid "If the filesystem does not have a UUID, this returns the empty string."
15585 msgstr ""
15586
15587 #. type: textblock
15588 #: ../fish/guestfish-actions.pod:4925
15589 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15590 msgstr ""
15591
15592 #. type: =head2
15593 #: ../fish/guestfish-actions.pod:4927
15594 msgid "vg-activate"
15595 msgstr "vg-activate"
15596
15597 #. type: verbatim
15598 #: ../fish/guestfish-actions.pod:4929
15599 #, no-wrap
15600 msgid ""
15601 " vg-activate true|false 'volgroups ...'\n"
15602 "\n"
15603 msgstr ""
15604
15605 #. type: textblock
15606 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7419
15607 msgid ""
15608 "This command activates or (if C<activate> is false) deactivates all logical "
15609 "volumes in the listed volume groups C<volgroups>."
15610 msgstr ""
15611
15612 #. type: textblock
15613 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7422
15614 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15615 msgstr ""
15616
15617 #. type: textblock
15618 #: ../fish/guestfish-actions.pod:4936 ../src/guestfs-actions.pod:7424
15619 msgid ""
15620 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15621 "activated or deactivated."
15622 msgstr ""
15623
15624 #. type: =head2
15625 #: ../fish/guestfish-actions.pod:4939
15626 msgid "vg-activate-all"
15627 msgstr "vg-activate-all"
15628
15629 #. type: verbatim
15630 #: ../fish/guestfish-actions.pod:4941
15631 #, no-wrap
15632 msgid ""
15633 " vg-activate-all true|false\n"
15634 "\n"
15635 msgstr ""
15636 " vg-activate-all true|false\n"
15637 "\n"
15638
15639 #. type: textblock
15640 #: ../fish/guestfish-actions.pod:4943 ../src/guestfs-actions.pod:7437
15641 msgid ""
15642 "This command activates or (if C<activate> is false) deactivates all logical "
15643 "volumes in all volume groups."
15644 msgstr ""
15645
15646 #. type: textblock
15647 #: ../fish/guestfish-actions.pod:4946 ../src/guestfs-actions.pod:7440
15648 msgid "This command is the same as running C<vgchange -a y|n>"
15649 msgstr ""
15650
15651 #. type: =head2
15652 #: ../fish/guestfish-actions.pod:4948
15653 msgid "vgcreate"
15654 msgstr "vgcreate"
15655
15656 #. type: verbatim
15657 #: ../fish/guestfish-actions.pod:4950
15658 #, no-wrap
15659 msgid ""
15660 " vgcreate volgroup 'physvols ...'\n"
15661 "\n"
15662 msgstr ""
15663
15664 #. type: textblock
15665 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7453
15666 msgid ""
15667 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15668 "of physical volumes C<physvols>."
15669 msgstr ""
15670
15671 #. type: =head2
15672 #: ../fish/guestfish-actions.pod:4955
15673 msgid "vglvuuids"
15674 msgstr "vglvuuids"
15675
15676 #. type: verbatim
15677 #: ../fish/guestfish-actions.pod:4957
15678 #, no-wrap
15679 msgid ""
15680 " vglvuuids vgname\n"
15681 "\n"
15682 msgstr ""
15683
15684 #. type: textblock
15685 #: ../fish/guestfish-actions.pod:4959 ../src/guestfs-actions.pod:7466
15686 msgid ""
15687 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15688 "volumes created in this volume group."
15689 msgstr ""
15690
15691 #. type: textblock
15692 #: ../fish/guestfish-actions.pod:4962
15693 msgid ""
15694 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15695 "logical volumes and volume groups."
15696 msgstr ""
15697
15698 #. type: textblock
15699 #: ../fish/guestfish-actions.pod:4965
15700 msgid "See also L</vgpvuuids>."
15701 msgstr "Див. також L</vgpvuuids>."
15702
15703 #. type: =head2
15704 #: ../fish/guestfish-actions.pod:4967
15705 msgid "vgpvuuids"
15706 msgstr "vgpvuuids"
15707
15708 #. type: verbatim
15709 #: ../fish/guestfish-actions.pod:4969
15710 #, no-wrap
15711 msgid ""
15712 " vgpvuuids vgname\n"
15713 "\n"
15714 msgstr ""
15715
15716 #. type: textblock
15717 #: ../fish/guestfish-actions.pod:4971 ../src/guestfs-actions.pod:7486
15718 msgid ""
15719 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
15720 "volumes that this volume group resides on."
15721 msgstr ""
15722
15723 #. type: textblock
15724 #: ../fish/guestfish-actions.pod:4974
15725 msgid ""
15726 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
15727 "physical volumes and volume groups."
15728 msgstr ""
15729
15730 #. type: textblock
15731 #: ../fish/guestfish-actions.pod:4977
15732 msgid "See also L</vglvuuids>."
15733 msgstr "Див. також L</vglvuuids>."
15734
15735 #. type: =head2
15736 #: ../fish/guestfish-actions.pod:4979
15737 msgid "vgremove"
15738 msgstr "vgremove"
15739
15740 #. type: verbatim
15741 #: ../fish/guestfish-actions.pod:4981
15742 #, no-wrap
15743 msgid ""
15744 " vgremove vgname\n"
15745 "\n"
15746 msgstr ""
15747
15748 #. type: textblock
15749 #: ../fish/guestfish-actions.pod:4983 ../src/guestfs-actions.pod:7506
15750 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
15751 msgstr ""
15752
15753 #. type: textblock
15754 #: ../fish/guestfish-actions.pod:4985 ../src/guestfs-actions.pod:7508
15755 msgid ""
15756 "This also forcibly removes all logical volumes in the volume group (if any)."
15757 msgstr ""
15758
15759 #. type: =head2
15760 #: ../fish/guestfish-actions.pod:4988
15761 msgid "vgrename"
15762 msgstr "vgrename"
15763
15764 #. type: verbatim
15765 #: ../fish/guestfish-actions.pod:4990
15766 #, no-wrap
15767 msgid ""
15768 " vgrename volgroup newvolgroup\n"
15769 "\n"
15770 msgstr ""
15771
15772 #. type: textblock
15773 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7522
15774 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
15775 msgstr ""
15776
15777 #. type: =head2
15778 #: ../fish/guestfish-actions.pod:4994
15779 msgid "vgs"
15780 msgstr "vgs"
15781
15782 #. type: verbatim
15783 #: ../fish/guestfish-actions.pod:4996
15784 #, no-wrap
15785 msgid ""
15786 " vgs\n"
15787 "\n"
15788 msgstr ""
15789 " vgs\n"
15790 "\n"
15791
15792 #. type: textblock
15793 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7533
15794 msgid ""
15795 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15796 "> command."
15797 msgstr ""
15798
15799 #. type: textblock
15800 #: ../fish/guestfish-actions.pod:5001 ../src/guestfs-actions.pod:7536
15801 msgid ""
15802 "This returns a list of just the volume group names that were detected (eg. "
15803 "C<VolGroup00>)."
15804 msgstr ""
15805
15806 #. type: textblock
15807 #: ../fish/guestfish-actions.pod:5004
15808 msgid "See also L</vgs-full>."
15809 msgstr "Див. також L</vgs-full>."
15810
15811 #. type: =head2
15812 #: ../fish/guestfish-actions.pod:5006
15813 msgid "vgs-full"
15814 msgstr "vgs-full"
15815
15816 #. type: verbatim
15817 #: ../fish/guestfish-actions.pod:5008
15818 #, no-wrap
15819 msgid ""
15820 " vgs-full\n"
15821 "\n"
15822 msgstr ""
15823 " vgs-full\n"
15824 "\n"
15825
15826 #. type: textblock
15827 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7552
15828 msgid ""
15829 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
15830 "> command.  The \"full\" version includes all fields."
15831 msgstr ""
15832
15833 #. type: =head2
15834 #: ../fish/guestfish-actions.pod:5013
15835 msgid "vgscan"
15836 msgstr "vgscan"
15837
15838 #. type: verbatim
15839 #: ../fish/guestfish-actions.pod:5015
15840 #, no-wrap
15841 msgid ""
15842 " vgscan\n"
15843 "\n"
15844 msgstr ""
15845 " vgscan\n"
15846 "\n"
15847
15848 #. type: textblock
15849 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7566
15850 msgid ""
15851 "This rescans all block devices and rebuilds the list of LVM physical "
15852 "volumes, volume groups and logical volumes."
15853 msgstr ""
15854
15855 #. type: =head2
15856 #: ../fish/guestfish-actions.pod:5020
15857 msgid "vguuid"
15858 msgstr "vguuid"
15859
15860 #. type: verbatim
15861 #: ../fish/guestfish-actions.pod:5022
15862 #, no-wrap
15863 msgid ""
15864 " vguuid vgname\n"
15865 "\n"
15866 msgstr ""
15867
15868 #. type: textblock
15869 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7579
15870 msgid "This command returns the UUID of the LVM VG named C<vgname>."
15871 msgstr ""
15872
15873 #. type: =head2
15874 #: ../fish/guestfish-actions.pod:5026
15875 msgid "wc-c"
15876 msgstr "wc-c"
15877
15878 #. type: verbatim
15879 #: ../fish/guestfish-actions.pod:5028
15880 #, no-wrap
15881 msgid ""
15882 " wc-c path\n"
15883 "\n"
15884 msgstr ""
15885 " wc-c шлях\n"
15886 "\n"
15887
15888 #. type: textblock
15889 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7619
15890 msgid ""
15891 "This command counts the characters in a file, using the C<wc -c> external "
15892 "command."
15893 msgstr ""
15894
15895 #. type: =head2
15896 #: ../fish/guestfish-actions.pod:5033
15897 msgid "wc-l"
15898 msgstr "wc-l"
15899
15900 #. type: verbatim
15901 #: ../fish/guestfish-actions.pod:5035
15902 #, no-wrap
15903 msgid ""
15904 " wc-l path\n"
15905 "\n"
15906 msgstr ""
15907 " wc-l шлях\n"
15908 "\n"
15909
15910 #. type: textblock
15911 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7632
15912 msgid ""
15913 "This command counts the lines in a file, using the C<wc -l> external command."
15914 msgstr ""
15915
15916 #. type: =head2
15917 #: ../fish/guestfish-actions.pod:5040
15918 msgid "wc-w"
15919 msgstr "wc-w"
15920
15921 #. type: verbatim
15922 #: ../fish/guestfish-actions.pod:5042
15923 #, no-wrap
15924 msgid ""
15925 " wc-w path\n"
15926 "\n"
15927 msgstr ""
15928 " wc-w шлях\n"
15929 "\n"
15930
15931 #. type: textblock
15932 #: ../fish/guestfish-actions.pod:5044 ../src/guestfs-actions.pod:7645
15933 msgid ""
15934 "This command counts the words in a file, using the C<wc -w> external command."
15935 msgstr ""
15936
15937 #. type: =head2
15938 #: ../fish/guestfish-actions.pod:5047
15939 msgid "write"
15940 msgstr "write"
15941
15942 #. type: verbatim
15943 #: ../fish/guestfish-actions.pod:5049
15944 #, no-wrap
15945 msgid ""
15946 " write path content\n"
15947 "\n"
15948 msgstr ""
15949 " write шлях дані\n"
15950 "\n"
15951
15952 #. type: textblock
15953 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7660
15954 msgid ""
15955 "This call creates a file called C<path>.  The content of the file is the "
15956 "string C<content> (which can contain any 8 bit data)."
15957 msgstr ""
15958
15959 #. type: textblock
15960 #: ../fish/guestfish-actions.pod:5054
15961 msgid "See also L</write-append>."
15962 msgstr ""
15963
15964 #. type: =head2
15965 #: ../fish/guestfish-actions.pod:5059
15966 msgid "write-append"
15967 msgstr ""
15968
15969 #. type: verbatim
15970 #: ../fish/guestfish-actions.pod:5061
15971 #, no-wrap
15972 msgid ""
15973 " write-append path content\n"
15974 "\n"
15975 msgstr ""
15976
15977 #. type: textblock
15978 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7680
15979 msgid ""
15980 "This call appends C<content> to the end of file C<path>.  If C<path> does "
15981 "not exist, then a new file is created."
15982 msgstr ""
15983
15984 #. type: textblock
15985 #: ../fish/guestfish-actions.pod:5066
15986 msgid "See also L</write>."
15987 msgstr ""
15988
15989 #. type: =head2
15990 #: ../fish/guestfish-actions.pod:5071
15991 msgid "write-file"
15992 msgstr "write-file"
15993
15994 #. type: verbatim
15995 #: ../fish/guestfish-actions.pod:5073
15996 #, no-wrap
15997 msgid ""
15998 " write-file path content size\n"
15999 "\n"
16000 msgstr ""
16001
16002 #. type: textblock
16003 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7707
16004 msgid ""
16005 "This call creates a file called C<path>.  The contents of the file is the "
16006 "string C<content> (which can contain any 8 bit data), with length C<size>."
16007 msgstr ""
16008
16009 #. type: textblock
16010 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7711
16011 msgid ""
16012 "As a special case, if C<size> is C<0> then the length is calculated using "
16013 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16014 msgstr ""
16015
16016 #. type: textblock
16017 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7715
16018 msgid ""
16019 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16020 "I<not> work, even if the length is specified."
16021 msgstr ""
16022
16023 #. type: textblock
16024 #: ../fish/guestfish-actions.pod:5089
16025 msgid ""
16026 "I<This function is deprecated.> In new code, use the L</write> call instead."
16027 msgstr ""
16028
16029 #. type: =head2
16030 #: ../fish/guestfish-actions.pod:5096
16031 msgid "zegrep"
16032 msgstr "zegrep"
16033
16034 #. type: verbatim
16035 #: ../fish/guestfish-actions.pod:5098
16036 #, no-wrap
16037 msgid ""
16038 " zegrep regex path\n"
16039 "\n"
16040 msgstr ""
16041 " zegrep формальний_вираз шлях\n"
16042 "\n"
16043
16044 #. type: textblock
16045 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7732
16046 msgid ""
16047 "This calls the external C<zegrep> program and returns the matching lines."
16048 msgstr ""
16049
16050 #. type: =head2
16051 #: ../fish/guestfish-actions.pod:5106
16052 msgid "zegrepi"
16053 msgstr "zegrepi"
16054
16055 #. type: verbatim
16056 #: ../fish/guestfish-actions.pod:5108
16057 #, no-wrap
16058 msgid ""
16059 " zegrepi regex path\n"
16060 "\n"
16061 msgstr ""
16062
16063 #. type: textblock
16064 #: ../fish/guestfish-actions.pod:5110 ../src/guestfs-actions.pod:7751
16065 msgid ""
16066 "This calls the external C<zegrep -i> program and returns the matching lines."
16067 msgstr ""
16068
16069 #. type: =head2
16070 #: ../fish/guestfish-actions.pod:5116
16071 msgid "zero"
16072 msgstr "zero"
16073
16074 #. type: verbatim
16075 #: ../fish/guestfish-actions.pod:5118
16076 #, no-wrap
16077 msgid ""
16078 " zero device\n"
16079 "\n"
16080 msgstr ""
16081 " zero пристрій\n"
16082 "\n"
16083
16084 #. type: textblock
16085 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7769
16086 msgid "This command writes zeroes over the first few blocks of C<device>."
16087 msgstr ""
16088
16089 #. type: textblock
16090 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7771
16091 msgid ""
16092 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16093 "securely wipe the device).  It should be sufficient to remove any partition "
16094 "tables, filesystem superblocks and so on."
16095 msgstr ""
16096
16097 #. type: textblock
16098 #: ../fish/guestfish-actions.pod:5126 ../fish/guestfish-actions.pod:5141
16099 #: ../src/guestfs-actions.pod:7775 ../src/guestfs-actions.pod:7801
16100 msgid ""
16101 "If blocks are already zero, then this command avoids writing zeroes.  This "
16102 "prevents the underlying device from becoming non-sparse or growing "
16103 "unnecessarily."
16104 msgstr ""
16105
16106 #. type: textblock
16107 #: ../fish/guestfish-actions.pod:5130
16108 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16109 msgstr ""
16110
16111 #. type: =head2
16112 #: ../fish/guestfish-actions.pod:5133
16113 msgid "zero-device"
16114 msgstr "zero-device"
16115
16116 #. type: verbatim
16117 #: ../fish/guestfish-actions.pod:5135
16118 #, no-wrap
16119 msgid ""
16120 " zero-device device\n"
16121 "\n"
16122 msgstr ""
16123 " zero-device пристрій\n"
16124 "\n"
16125
16126 #. type: textblock
16127 #: ../fish/guestfish-actions.pod:5137
16128 msgid ""
16129 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16130 "which just zeroes the first few blocks of a device."
16131 msgstr ""
16132
16133 #. type: =head2
16134 #: ../fish/guestfish-actions.pod:5148
16135 msgid "zerofree"
16136 msgstr "zerofree"
16137
16138 #. type: verbatim
16139 #: ../fish/guestfish-actions.pod:5150
16140 #, no-wrap
16141 msgid ""
16142 " zerofree device\n"
16143 "\n"
16144 msgstr ""
16145 " zerofree пристрій\n"
16146 "\n"
16147
16148 #. type: textblock
16149 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7823
16150 msgid ""
16151 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16152 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16153 "possible to compress the filesystem more effectively."
16154 msgstr ""
16155
16156 #. type: textblock
16157 #: ../fish/guestfish-actions.pod:5157 ../src/guestfs-actions.pod:7828
16158 msgid "You should B<not> run this program if the filesystem is mounted."
16159 msgstr ""
16160
16161 #. type: textblock
16162 #: ../fish/guestfish-actions.pod:5160 ../src/guestfs-actions.pod:7831
16163 msgid ""
16164 "It is possible that using this program can damage the filesystem or data on "
16165 "the filesystem."
16166 msgstr ""
16167
16168 #. type: =head2
16169 #: ../fish/guestfish-actions.pod:5163
16170 msgid "zfgrep"
16171 msgstr "zfgrep"
16172
16173 #. type: verbatim
16174 #: ../fish/guestfish-actions.pod:5165
16175 #, no-wrap
16176 msgid ""
16177 " zfgrep pattern path\n"
16178 "\n"
16179 msgstr ""
16180 " zfgrep шаблон шлях\n"
16181 "\n"
16182
16183 #. type: textblock
16184 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:7845
16185 msgid ""
16186 "This calls the external C<zfgrep> program and returns the matching lines."
16187 msgstr ""
16188
16189 #. type: =head2
16190 #: ../fish/guestfish-actions.pod:5173
16191 msgid "zfgrepi"
16192 msgstr "zfgrepi"
16193
16194 #. type: verbatim
16195 #: ../fish/guestfish-actions.pod:5175
16196 #, no-wrap
16197 msgid ""
16198 " zfgrepi pattern path\n"
16199 "\n"
16200 msgstr ""
16201 " zfgrepi шаблон шлях\n"
16202 "\n"
16203
16204 #. type: textblock
16205 #: ../fish/guestfish-actions.pod:5177 ../src/guestfs-actions.pod:7864
16206 msgid ""
16207 "This calls the external C<zfgrep -i> program and returns the matching lines."
16208 msgstr ""
16209
16210 #. type: =head2
16211 #: ../fish/guestfish-actions.pod:5183
16212 msgid "zfile"
16213 msgstr "zfile"
16214
16215 #. type: verbatim
16216 #: ../fish/guestfish-actions.pod:5185
16217 #, no-wrap
16218 msgid ""
16219 " zfile meth path\n"
16220 "\n"
16221 msgstr ""
16222 " zfile метод шлях\n"
16223 "\n"
16224
16225 #. type: textblock
16226 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7890
16227 msgid ""
16228 "This command runs C<file> after first decompressing C<path> using C<method>."
16229 msgstr ""
16230
16231 #. type: textblock
16232 #: ../fish/guestfish-actions.pod:5190 ../src/guestfs-actions.pod:7893
16233 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16234 msgstr ""
16235
16236 #. type: textblock
16237 #: ../fish/guestfish-actions.pod:5192
16238 msgid ""
16239 "Since 1.0.63, use L</file> instead which can now process compressed files."
16240 msgstr ""
16241
16242 #. type: textblock
16243 #: ../fish/guestfish-actions.pod:5195
16244 msgid ""
16245 "I<This function is deprecated.> In new code, use the L</file> call instead."
16246 msgstr ""
16247
16248 #. type: =head2
16249 #: ../fish/guestfish-actions.pod:5202
16250 msgid "zgrep"
16251 msgstr "zgrep"
16252
16253 #. type: verbatim
16254 #: ../fish/guestfish-actions.pod:5204
16255 #, no-wrap
16256 msgid ""
16257 " zgrep regex path\n"
16258 "\n"
16259 msgstr ""
16260 " zgrep формальний_вираз шлях\n"
16261 "\n"
16262
16263 #. type: textblock
16264 #: ../fish/guestfish-actions.pod:5206 ../src/guestfs-actions.pod:7910
16265 msgid ""
16266 "This calls the external C<zgrep> program and returns the matching lines."
16267 msgstr ""
16268
16269 #. type: =head2
16270 #: ../fish/guestfish-actions.pod:5212
16271 msgid "zgrepi"
16272 msgstr "zgrepi"
16273
16274 #. type: verbatim
16275 #: ../fish/guestfish-actions.pod:5214
16276 #, no-wrap
16277 msgid ""
16278 " zgrepi regex path\n"
16279 "\n"
16280 msgstr ""
16281 " zgrepi формальний_вираз шлях\n"
16282 "\n"
16283
16284 #. type: textblock
16285 #: ../fish/guestfish-actions.pod:5216 ../src/guestfs-actions.pod:7929
16286 msgid ""
16287 "This calls the external C<zgrep -i> program and returns the matching lines."
16288 msgstr ""
16289
16290 #. type: =head2
16291 #: ../fish/guestfish-commands.pod:1
16292 msgid "alloc"
16293 msgstr "alloc"
16294
16295 #. type: =head2
16296 #: ../fish/guestfish-commands.pod:3
16297 msgid "allocate"
16298 msgstr ""
16299
16300 #. type: verbatim
16301 #: ../fish/guestfish-commands.pod:5
16302 #, no-wrap
16303 msgid ""
16304 " alloc filename size\n"
16305 "\n"
16306 msgstr ""
16307
16308 #. type: textblock
16309 #: ../fish/guestfish-commands.pod:7
16310 msgid ""
16311 "This creates an empty (zeroed) file of the given size, and then adds so it "
16312 "can be further examined."
16313 msgstr ""
16314
16315 #. type: textblock
16316 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16317 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16318 msgstr ""
16319
16320 #. type: textblock
16321 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16322 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16323 msgstr ""
16324
16325 #. type: textblock
16326 #: ../fish/guestfish-commands.pod:14
16327 msgid ""
16328 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16329 "image, see L</PREPARED DISK IMAGES>."
16330 msgstr ""
16331
16332 #. type: =head2
16333 #: ../fish/guestfish-commands.pod:17
16334 msgid "copy-in"
16335 msgstr "copy-in"
16336
16337 #. type: verbatim
16338 #: ../fish/guestfish-commands.pod:19
16339 #, no-wrap
16340 msgid ""
16341 " copy-in local [local ...] /remotedir\n"
16342 "\n"
16343 msgstr ""
16344
16345 #. type: textblock
16346 #: ../fish/guestfish-commands.pod:21
16347 msgid ""
16348 "C<copy-in> copies local files or directories recursively into the disk "
16349 "image, placing them in the directory called C</remotedir> (which must "
16350 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16351 "other commands as necessary."
16352 msgstr ""
16353
16354 #. type: textblock
16355 #: ../fish/guestfish-commands.pod:26
16356 msgid ""
16357 "Multiple local files and directories can be specified, but the last "
16358 "parameter must always be a remote directory.  Wildcards cannot be used."
16359 msgstr ""
16360
16361 #. type: =head2
16362 #: ../fish/guestfish-commands.pod:30
16363 msgid "copy-out"
16364 msgstr "copy-out"
16365
16366 #. type: verbatim
16367 #: ../fish/guestfish-commands.pod:32
16368 #, no-wrap
16369 msgid ""
16370 " copy-out remote [remote ...] localdir\n"
16371 "\n"
16372 msgstr ""
16373
16374 #. type: textblock
16375 #: ../fish/guestfish-commands.pod:34
16376 msgid ""
16377 "C<copy-out> copies remote files or directories recursively out of the disk "
16378 "image, placing them on the host disk in a local directory called C<localdir> "
16379 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
16380 "download>, L</tar-out> and other commands as necessary."
16381 msgstr ""
16382
16383 #. type: textblock
16384 #: ../fish/guestfish-commands.pod:40
16385 msgid ""
16386 "Multiple remote files and directories can be specified, but the last "
16387 "parameter must always be a local directory.  To download to the current "
16388 "directory, use C<.> as in:"
16389 msgstr ""
16390
16391 #. type: verbatim
16392 #: ../fish/guestfish-commands.pod:44
16393 #, no-wrap
16394 msgid ""
16395 " copy-out /home .\n"
16396 "\n"
16397 msgstr ""
16398 " copy-out /home .\n"
16399 "\n"
16400
16401 #. type: textblock
16402 #: ../fish/guestfish-commands.pod:46
16403 msgid ""
16404 "Wildcards cannot be used in the ordinary command, but you can use them with "
16405 "the help of L</glob> like this:"
16406 msgstr ""
16407
16408 #. type: verbatim
16409 #: ../fish/guestfish-commands.pod:49
16410 #, no-wrap
16411 msgid ""
16412 " glob copy-out /home/* .\n"
16413 "\n"
16414 msgstr ""
16415 " glob copy-out /home/* .\n"
16416 "\n"
16417
16418 #. type: =head2
16419 #: ../fish/guestfish-commands.pod:51
16420 msgid "display"
16421 msgstr ""
16422
16423 #. type: verbatim
16424 #: ../fish/guestfish-commands.pod:53
16425 #, no-wrap
16426 msgid ""
16427 " display filename\n"
16428 "\n"
16429 msgstr ""
16430
16431 #. type: textblock
16432 #: ../fish/guestfish-commands.pod:55
16433 msgid ""
16434 "Use C<display> (a graphical display program) to display an image file.  It "
16435 "downloads the file, and runs C<display> on it."
16436 msgstr ""
16437
16438 #. type: textblock
16439 #: ../fish/guestfish-commands.pod:58
16440 msgid ""
16441 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16442 "environment variable.  For example to use the GNOME display program:"
16443 msgstr ""
16444
16445 #. type: verbatim
16446 #: ../fish/guestfish-commands.pod:61
16447 #, no-wrap
16448 msgid ""
16449 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16450 "\n"
16451 msgstr ""
16452
16453 #. type: textblock
16454 #: ../fish/guestfish-commands.pod:63
16455 msgid "See also L<display(1)>."
16456 msgstr ""
16457
16458 #. type: =head2
16459 #: ../fish/guestfish-commands.pod:65
16460 msgid "echo"
16461 msgstr "echo"
16462
16463 #. type: verbatim
16464 #: ../fish/guestfish-commands.pod:67
16465 #, no-wrap
16466 msgid ""
16467 " echo [params ...]\n"
16468 "\n"
16469 msgstr ""
16470 " echo [параметри...]\n"
16471 "\n"
16472
16473 #. type: textblock
16474 #: ../fish/guestfish-commands.pod:69
16475 msgid "This echos the parameters to the terminal."
16476 msgstr ""
16477
16478 #. type: =head2
16479 #: ../fish/guestfish-commands.pod:71
16480 msgid "edit"
16481 msgstr "edit"
16482
16483 #. type: =head2
16484 #: ../fish/guestfish-commands.pod:73
16485 msgid "vi"
16486 msgstr "vi"
16487
16488 #. type: =head2
16489 #: ../fish/guestfish-commands.pod:75
16490 msgid "emacs"
16491 msgstr "emacs"
16492
16493 #. type: verbatim
16494 #: ../fish/guestfish-commands.pod:77
16495 #, no-wrap
16496 msgid ""
16497 " edit filename\n"
16498 "\n"
16499 msgstr ""
16500 " edit назва_файла\n"
16501 "\n"
16502
16503 #. type: textblock
16504 #: ../fish/guestfish-commands.pod:79
16505 msgid ""
16506 "This is used to edit a file.  It downloads the file, edits it locally using "
16507 "your editor, then uploads the result."
16508 msgstr ""
16509
16510 #. type: textblock
16511 #: ../fish/guestfish-commands.pod:82
16512 msgid ""
16513 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16514 "or C<emacs> you will get those corresponding editors."
16515 msgstr ""
16516
16517 #. type: =head2
16518 #: ../fish/guestfish-commands.pod:86
16519 msgid "glob"
16520 msgstr "glob"
16521
16522 #. type: verbatim
16523 #: ../fish/guestfish-commands.pod:88
16524 #, no-wrap
16525 msgid ""
16526 " glob command args...\n"
16527 "\n"
16528 msgstr ""
16529 " glob команда параметри...\n"
16530 "\n"
16531
16532 #. type: textblock
16533 #: ../fish/guestfish-commands.pod:90
16534 msgid ""
16535 "Expand wildcards in any paths in the args list, and run C<command> "
16536 "repeatedly on each matching path."
16537 msgstr ""
16538
16539 #. type: textblock
16540 #: ../fish/guestfish-commands.pod:93
16541 msgid "See L</WILDCARDS AND GLOBBING>."
16542 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16543
16544 #. type: =head2
16545 #: ../fish/guestfish-commands.pod:95
16546 msgid "hexedit"
16547 msgstr "hexedit"
16548
16549 #. type: verbatim
16550 #: ../fish/guestfish-commands.pod:97
16551 #, no-wrap
16552 msgid ""
16553 " hexedit <filename|device>\n"
16554 " hexedit <filename|device> <max>\n"
16555 " hexedit <filename|device> <start> <max>\n"
16556 "\n"
16557 msgstr ""
16558
16559 #. type: textblock
16560 #: ../fish/guestfish-commands.pod:101
16561 msgid ""
16562 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16563 "device."
16564 msgstr ""
16565
16566 #. type: textblock
16567 #: ../fish/guestfish-commands.pod:104
16568 msgid ""
16569 "This command works by downloading potentially the whole file or device, "
16570 "editing it locally, then uploading it.  If the file or device is large, you "
16571 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16572 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16573 "usual modifiers allowed such as C<1M> (1 megabyte)."
16574 msgstr ""
16575
16576 #. type: textblock
16577 #: ../fish/guestfish-commands.pod:111
16578 msgid "For example to edit the first few sectors of a disk you might do:"
16579 msgstr ""
16580
16581 #. type: verbatim
16582 #: ../fish/guestfish-commands.pod:114
16583 #, no-wrap
16584 msgid ""
16585 " hexedit /dev/sda 1M\n"
16586 "\n"
16587 msgstr ""
16588 " hexedit /dev/sda 1M\n"
16589 "\n"
16590
16591 #. type: textblock
16592 #: ../fish/guestfish-commands.pod:116
16593 msgid ""
16594 "which would allow you to edit anywhere within the first megabyte of the disk."
16595 msgstr ""
16596
16597 #. type: textblock
16598 #: ../fish/guestfish-commands.pod:119
16599 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16600 msgstr ""
16601
16602 #. type: verbatim
16603 #: ../fish/guestfish-commands.pod:121
16604 #, no-wrap
16605 msgid ""
16606 " hexedit /dev/sda1 0x400 0x400\n"
16607 "\n"
16608 msgstr ""
16609 " hexedit /dev/sda1 0x400 0x400\n"
16610 "\n"
16611
16612 #. type: textblock
16613 #: ../fish/guestfish-commands.pod:123
16614 msgid "(assuming the superblock is in the standard location)."
16615 msgstr ""
16616
16617 #. type: textblock
16618 #: ../fish/guestfish-commands.pod:125
16619 msgid ""
16620 "This command requires the external L<hexedit(1)> program.  You can specify "
16621 "another program to use by setting the C<HEXEDITOR> environment variable."
16622 msgstr ""
16623
16624 #. type: textblock
16625 #: ../fish/guestfish-commands.pod:129
16626 msgid "See also L</hexdump>."
16627 msgstr "Див. також L</hexdump>."
16628
16629 #. type: =head2
16630 #: ../fish/guestfish-commands.pod:131
16631 msgid "lcd"
16632 msgstr "lcd"
16633
16634 #. type: verbatim
16635 #: ../fish/guestfish-commands.pod:133
16636 #, no-wrap
16637 msgid ""
16638 " lcd directory\n"
16639 "\n"
16640 msgstr ""
16641
16642 #. type: textblock
16643 #: ../fish/guestfish-commands.pod:135
16644 msgid ""
16645 "Change the local directory, ie. the current directory of guestfish itself."
16646 msgstr ""
16647
16648 #. type: textblock
16649 #: ../fish/guestfish-commands.pod:138
16650 msgid "Note that C<!cd> won't do what you might expect."
16651 msgstr ""
16652
16653 #. type: =head2
16654 #: ../fish/guestfish-commands.pod:140
16655 msgid "man"
16656 msgstr "man"
16657
16658 #. type: =head2
16659 #: ../fish/guestfish-commands.pod:142
16660 msgid "manual"
16661 msgstr ""
16662
16663 #. type: verbatim
16664 #: ../fish/guestfish-commands.pod:144
16665 #, no-wrap
16666 msgid ""
16667 "  man\n"
16668 "\n"
16669 msgstr ""
16670 "  man\n"
16671 "\n"
16672
16673 #. type: textblock
16674 #: ../fish/guestfish-commands.pod:146
16675 msgid "Opens the manual page for guestfish."
16676 msgstr ""
16677
16678 #. type: =head2
16679 #: ../fish/guestfish-commands.pod:148
16680 msgid "more"
16681 msgstr "more"
16682
16683 #. type: =head2
16684 #: ../fish/guestfish-commands.pod:150
16685 msgid "less"
16686 msgstr "less"
16687
16688 #. type: verbatim
16689 #: ../fish/guestfish-commands.pod:152
16690 #, no-wrap
16691 msgid ""
16692 " more filename\n"
16693 "\n"
16694 msgstr ""
16695
16696 #. type: verbatim
16697 #: ../fish/guestfish-commands.pod:154
16698 #, no-wrap
16699 msgid ""
16700 " less filename\n"
16701 "\n"
16702 msgstr ""
16703
16704 #. type: textblock
16705 #: ../fish/guestfish-commands.pod:156
16706 msgid "This is used to view a file."
16707 msgstr ""
16708
16709 #. type: textblock
16710 #: ../fish/guestfish-commands.pod:158
16711 msgid ""
16712 "The default viewer is C<$PAGER>.  However if you use the alternate command "
16713 "C<less> you will get the C<less> command specifically."
16714 msgstr ""
16715
16716 #. type: =head2
16717 #: ../fish/guestfish-commands.pod:161
16718 msgid "reopen"
16719 msgstr "reopen"
16720
16721 #. type: verbatim
16722 #: ../fish/guestfish-commands.pod:163
16723 #, no-wrap
16724 msgid ""
16725 "  reopen\n"
16726 "\n"
16727 msgstr ""
16728
16729 #. type: textblock
16730 #: ../fish/guestfish-commands.pod:165
16731 msgid ""
16732 "Close and reopen the libguestfs handle.  It is not necessary to use this "
16733 "normally, because the handle is closed properly when guestfish exits.  "
16734 "However this is occasionally useful for testing."
16735 msgstr ""
16736
16737 #. type: =head2
16738 #: ../fish/guestfish-commands.pod:169
16739 msgid "setenv"
16740 msgstr ""
16741
16742 #. type: verbatim
16743 #: ../fish/guestfish-commands.pod:171
16744 #, no-wrap
16745 msgid ""
16746 "  setenv VAR value\n"
16747 "\n"
16748 msgstr ""
16749
16750 #. type: textblock
16751 #: ../fish/guestfish-commands.pod:173
16752 msgid "Set the environment variable C<VAR> to the string C<value>."
16753 msgstr ""
16754
16755 #. type: textblock
16756 #: ../fish/guestfish-commands.pod:175
16757 msgid ""
16758 "To print the value of an environment variable use a shell command such as:"
16759 msgstr ""
16760
16761 #. type: verbatim
16762 #: ../fish/guestfish-commands.pod:178
16763 #, no-wrap
16764 msgid ""
16765 " !echo $VAR\n"
16766 "\n"
16767 msgstr ""
16768
16769 #. type: =head2
16770 #: ../fish/guestfish-commands.pod:180
16771 msgid "sparse"
16772 msgstr "sparse"
16773
16774 #. type: verbatim
16775 #: ../fish/guestfish-commands.pod:182
16776 #, no-wrap
16777 msgid ""
16778 " sparse filename size\n"
16779 "\n"
16780 msgstr ""
16781
16782 #. type: textblock
16783 #: ../fish/guestfish-commands.pod:184
16784 msgid ""
16785 "This creates an empty sparse file of the given size, and then adds so it can "
16786 "be further examined."
16787 msgstr ""
16788
16789 #. type: textblock
16790 #: ../fish/guestfish-commands.pod:187
16791 msgid ""
16792 "In all respects it works the same as the L</alloc> command, except that the "
16793 "image file is allocated sparsely, which means that disk blocks are not "
16794 "assigned to the file until they are needed.  Sparse disk files only use "
16795 "space when written to, but they are slower and there is a danger you could "
16796 "run out of real disk space during a write operation."
16797 msgstr ""
16798
16799 #. type: =head2
16800 #: ../fish/guestfish-commands.pod:197
16801 msgid "supported"
16802 msgstr "supported"
16803
16804 #. type: verbatim
16805 #: ../fish/guestfish-commands.pod:199
16806 #, no-wrap
16807 msgid ""
16808 " supported\n"
16809 "\n"
16810 msgstr ""
16811 " supported\n"
16812 "\n"
16813
16814 #. type: textblock
16815 #: ../fish/guestfish-commands.pod:201
16816 msgid ""
16817 "This command returns a list of the optional groups known to the daemon, and "
16818 "indicates which ones are supported by this build of the libguestfs appliance."
16819 msgstr ""
16820
16821 #. type: textblock
16822 #: ../fish/guestfish-commands.pod:205
16823 msgid "See also L<guestfs(3)/AVAILABILITY>."
16824 msgstr ""
16825
16826 #. type: =head2
16827 #: ../fish/guestfish-commands.pod:207
16828 msgid "time"
16829 msgstr "time"
16830
16831 #. type: verbatim
16832 #: ../fish/guestfish-commands.pod:209
16833 #, no-wrap
16834 msgid ""
16835 " time command args...\n"
16836 "\n"
16837 msgstr ""
16838
16839 #. type: textblock
16840 #: ../fish/guestfish-commands.pod:211
16841 msgid ""
16842 "Run the command as usual, but print the elapsed time afterwards.  This can "
16843 "be useful for benchmarking operations."
16844 msgstr ""
16845
16846 #. type: =head2
16847 #: ../fish/guestfish-commands.pod:214
16848 msgid "unsetenv"
16849 msgstr ""
16850
16851 #. type: verbatim
16852 #: ../fish/guestfish-commands.pod:216
16853 #, no-wrap
16854 msgid ""
16855 "  unsetenv VAR\n"
16856 "\n"
16857 msgstr ""
16858
16859 #. type: textblock
16860 #: ../fish/guestfish-commands.pod:218
16861 msgid "Remove C<VAR> from the environment."
16862 msgstr ""
16863
16864 #. type: textblock
16865 #: ../fish/guestfish.pod:5
16866 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
16867 msgstr ""
16868
16869 #. type: verbatim
16870 #: ../fish/guestfish.pod:9
16871 #, no-wrap
16872 msgid ""
16873 " guestfish [--options] [commands]\n"
16874 "\n"
16875 msgstr ""
16876
16877 #. type: verbatim
16878 #: ../fish/guestfish.pod:11
16879 #, no-wrap
16880 msgid ""
16881 " guestfish\n"
16882 "\n"
16883 msgstr ""
16884
16885 #. type: verbatim
16886 #: ../fish/guestfish.pod:13
16887 #, no-wrap
16888 msgid ""
16889 " guestfish [--ro|--rw] -a disk.img\n"
16890 "\n"
16891 msgstr ""
16892
16893 #. type: verbatim
16894 #: ../fish/guestfish.pod:15
16895 #, no-wrap
16896 msgid ""
16897 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
16898 "\n"
16899 msgstr ""
16900
16901 #. type: verbatim
16902 #: ../fish/guestfish.pod:17
16903 #, no-wrap
16904 msgid ""
16905 " guestfish -d libvirt-domain\n"
16906 "\n"
16907 msgstr ""
16908
16909 #. type: verbatim
16910 #: ../fish/guestfish.pod:19
16911 #, no-wrap
16912 msgid ""
16913 " guestfish [--ro|--rw] -a disk.img -i\n"
16914 "\n"
16915 msgstr ""
16916
16917 #. type: verbatim
16918 #: ../fish/guestfish.pod:21
16919 #, no-wrap
16920 msgid ""
16921 " guestfish -d libvirt-domain -i\n"
16922 "\n"
16923 msgstr ""
16924
16925 #. type: textblock
16926 #: ../fish/guestfish.pod:25
16927 msgid ""
16928 "Using guestfish in read/write mode on live virtual machines can be "
16929 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
16930 "option to use guestfish safely if the disk image or virtual machine might be "
16931 "live."
16932 msgstr ""
16933
16934 #. type: textblock
16935 #: ../fish/guestfish.pod:32
16936 msgid ""
16937 "Guestfish is a shell and command-line tool for examining and modifying "
16938 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
16939 "functionality of the guestfs API, see L<guestfs(3)>."
16940 msgstr ""
16941
16942 #. type: textblock
16943 #: ../fish/guestfish.pod:36
16944 msgid ""
16945 "Guestfish gives you structured access to the libguestfs API, from shell "
16946 "scripts or the command line or interactively.  If you want to rescue a "
16947 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
16948 "command."
16949 msgstr ""
16950
16951 #. type: =head2
16952 #: ../fish/guestfish.pod:43
16953 msgid "As an interactive shell"
16954 msgstr ""
16955
16956 #. type: verbatim
16957 #: ../fish/guestfish.pod:45
16958 #, no-wrap
16959 msgid ""
16960 " $ guestfish\n"
16961 " \n"
16962 msgstr ""
16963
16964 #. type: verbatim
16965 #: ../fish/guestfish.pod:47
16966 #, no-wrap
16967 msgid ""
16968 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
16969 " editing virtual machine filesystems.\n"
16970 " \n"
16971 msgstr ""
16972
16973 #. type: verbatim
16974 #: ../fish/guestfish.pod:50
16975 #, no-wrap
16976 msgid ""
16977 " Type: 'help' for a list of commands\n"
16978 "       'man' to read the manual\n"
16979 "       'quit' to quit the shell\n"
16980 " \n"
16981 msgstr ""
16982
16983 #. type: verbatim
16984 #: ../fish/guestfish.pod:54
16985 #, no-wrap
16986 msgid ""
16987 " ><fs> add-ro disk.img\n"
16988 " ><fs> run\n"
16989 " ><fs> list-filesystems\n"
16990 " /dev/sda1: ext4\n"
16991 " /dev/vg_guest/lv_root: ext4\n"
16992 " /dev/vg_guest/lv_swap: swap\n"
16993 " ><fs> mount /dev/vg_guest/lv_root /\n"
16994 " ><fs> cat /etc/fstab\n"
16995 " # /etc/fstab\n"
16996 " # Created by anaconda\n"
16997 " [...]\n"
16998 " ><fs> exit\n"
16999 "\n"
17000 msgstr ""
17001
17002 #. type: =head2
17003 #: ../fish/guestfish.pod:67
17004 msgid "From shell scripts"
17005 msgstr ""
17006
17007 #. type: textblock
17008 #: ../fish/guestfish.pod:69
17009 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17010 msgstr ""
17011
17012 #. type: verbatim
17013 #: ../fish/guestfish.pod:71
17014 #, no-wrap
17015 msgid ""
17016 " guestfish <<_EOF_\n"
17017 " add disk.img\n"
17018 " run\n"
17019 " mount /dev/vg_guest/lv_root /\n"
17020 " write /etc/motd \"Welcome, new users\"\n"
17021 " _EOF_\n"
17022 "\n"
17023 msgstr ""
17024
17025 #. type: textblock
17026 #: ../fish/guestfish.pod:78
17027 msgid "List the LVM logical volumes in a disk image:"
17028 msgstr ""
17029
17030 #. type: verbatim
17031 #: ../fish/guestfish.pod:80
17032 #, no-wrap
17033 msgid ""
17034 " guestfish -a disk.img --ro <<_EOF_\n"
17035 " run\n"
17036 " lvs\n"
17037 " _EOF_\n"
17038 "\n"
17039 msgstr ""
17040
17041 #. type: textblock
17042 #: ../fish/guestfish.pod:85
17043 msgid "List all the filesystems in a disk image:"
17044 msgstr ""
17045
17046 #. type: verbatim
17047 #: ../fish/guestfish.pod:87
17048 #, no-wrap
17049 msgid ""
17050 " guestfish -a disk.img --ro <<_EOF_\n"
17051 " run\n"
17052 " list-filesystems\n"
17053 " _EOF_\n"
17054 "\n"
17055 msgstr ""
17056
17057 #. type: =head2
17058 #: ../fish/guestfish.pod:92
17059 msgid "On one command line"
17060 msgstr ""
17061
17062 #. type: textblock
17063 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17064 msgid "Update C</etc/resolv.conf> in a guest:"
17065 msgstr ""
17066
17067 #. type: verbatim
17068 #: ../fish/guestfish.pod:96
17069 #, no-wrap
17070 msgid ""
17071 " guestfish \\\n"
17072 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17073 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17074 "\n"
17075 msgstr ""
17076
17077 #. type: textblock
17078 #: ../fish/guestfish.pod:100
17079 msgid "Edit C</boot/grub/grub.conf> interactively:"
17080 msgstr ""
17081
17082 #. type: verbatim
17083 #: ../fish/guestfish.pod:102
17084 #, no-wrap
17085 msgid ""
17086 " guestfish --rw --add disk.img \\\n"
17087 "   --mount /dev/vg_guest/lv_root \\\n"
17088 "   --mount /dev/sda1:/boot \\\n"
17089 "   edit /boot/grub/grub.conf\n"
17090 "\n"
17091 msgstr ""
17092
17093 #. type: =head2
17094 #: ../fish/guestfish.pod:107
17095 msgid "Mount disks automatically"
17096 msgstr ""
17097
17098 #. type: textblock
17099 #: ../fish/guestfish.pod:109
17100 msgid ""
17101 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17102 msgstr ""
17103
17104 #. type: verbatim
17105 #: ../fish/guestfish.pod:112
17106 #, no-wrap
17107 msgid ""
17108 " guestfish --ro -a disk.img -i cat /etc/group\n"
17109 "\n"
17110 msgstr ""
17111
17112 #. type: verbatim
17113 #: ../fish/guestfish.pod:114
17114 #, no-wrap
17115 msgid ""
17116 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17117 "\n"
17118 msgstr ""
17119
17120 #. type: textblock
17121 #: ../fish/guestfish.pod:116
17122 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17123 msgstr ""
17124
17125 #. type: verbatim
17126 #: ../fish/guestfish.pod:118
17127 #, no-wrap
17128 msgid ""
17129 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17130 "\n"
17131 msgstr ""
17132
17133 #. type: =head2
17134 #: ../fish/guestfish.pod:120
17135 msgid "As a script interpreter"
17136 msgstr ""
17137
17138 #. type: textblock
17139 #: ../fish/guestfish.pod:122
17140 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17141 msgstr ""
17142
17143 #. type: verbatim
17144 #: ../fish/guestfish.pod:124
17145 #, no-wrap
17146 msgid ""
17147 " #!/usr/bin/guestfish -f\n"
17148 " sparse test1.img 100M\n"
17149 " run\n"
17150 " part-disk /dev/sda mbr\n"
17151 " mkfs ext2 /dev/sda1\n"
17152 "\n"
17153 msgstr ""
17154
17155 #. type: =head2
17156 #: ../fish/guestfish.pod:130
17157 msgid "Start with a prepared disk"
17158 msgstr ""
17159
17160 #. type: textblock
17161 #: ../fish/guestfish.pod:132
17162 msgid ""
17163 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17164 "single ext2-formatted partition:"
17165 msgstr ""
17166
17167 #. type: verbatim
17168 #: ../fish/guestfish.pod:135
17169 #, no-wrap
17170 msgid ""
17171 " guestfish -N fs\n"
17172 "\n"
17173 msgstr ""
17174
17175 #. type: textblock
17176 #: ../fish/guestfish.pod:137
17177 msgid "To list what is available do:"
17178 msgstr ""
17179
17180 #. type: verbatim
17181 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17182 #, no-wrap
17183 msgid ""
17184 " guestfish -N help | less\n"
17185 "\n"
17186 msgstr ""
17187
17188 #. type: =head2
17189 #: ../fish/guestfish.pod:141
17190 msgid "Remote control"
17191 msgstr "Дистанційне керування"
17192
17193 #. type: verbatim
17194 #: ../fish/guestfish.pod:143
17195 #, no-wrap
17196 msgid ""
17197 " eval \"`guestfish --listen`\"\n"
17198 " guestfish --remote add-ro disk.img\n"
17199 " guestfish --remote run\n"
17200 " guestfish --remote lvs\n"
17201 "\n"
17202 msgstr ""
17203 " eval \"`guestfish --listen`\"\n"
17204 " guestfish --remote add-ro disk.img\n"
17205 " guestfish --remote run\n"
17206 " guestfish --remote lvs\n"
17207 "\n"
17208
17209 #. type: textblock
17210 #: ../fish/guestfish.pod:154
17211 msgid "Displays general help on options."
17212 msgstr ""
17213
17214 #. type: =item
17215 #: ../fish/guestfish.pod:158
17216 msgid "B<--cmd-help>"
17217 msgstr "B<--cmd-help>"
17218
17219 #. type: textblock
17220 #: ../fish/guestfish.pod:160
17221 msgid "Lists all available guestfish commands."
17222 msgstr ""
17223
17224 #. type: =item
17225 #: ../fish/guestfish.pod:162
17226 msgid "B<-h cmd>"
17227 msgstr "B<-h команда>"
17228
17229 #. type: =item
17230 #: ../fish/guestfish.pod:164
17231 msgid "B<--cmd-help cmd>"
17232 msgstr "B<--cmd-help команда>"
17233
17234 #. type: textblock
17235 #: ../fish/guestfish.pod:166
17236 msgid "Displays detailed help on a single command C<cmd>."
17237 msgstr ""
17238
17239 #. type: =item
17240 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17241 msgid "B<-a image>"
17242 msgstr "B<-a образ>"
17243
17244 #. type: =item
17245 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17246 msgid "B<--add image>"
17247 msgstr "B<--add образ>"
17248
17249 #. type: textblock
17250 #: ../fish/guestfish.pod:172
17251 msgid "Add a block device or virtual machine image to the shell."
17252 msgstr ""
17253
17254 #. type: textblock
17255 #: ../fish/guestfish.pod:177
17256 msgid ""
17257 "Using this flag is mostly equivalent to using the C<add> command, with "
17258 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17259 "the I<--format=...> flag was given."
17260 msgstr ""
17261
17262 #. type: textblock
17263 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17264 msgid ""
17265 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17266 "URI to use.  The default is to use the default libvirt connection."
17267 msgstr ""
17268
17269 #. type: =item
17270 #: ../fish/guestfish.pod:189
17271 msgid "B<--csh>"
17272 msgstr "B<--csh>"
17273
17274 #. type: textblock
17275 #: ../fish/guestfish.pod:191
17276 msgid ""
17277 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17278 "section L</REMOTE CONTROL AND CSH> below."
17279 msgstr ""
17280
17281 #. type: =item
17282 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17283 msgid "B<-d libvirt-domain>"
17284 msgstr "B<-d домен-libvirt>"
17285
17286 #. type: =item
17287 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17288 msgid "B<--domain libvirt-domain>"
17289 msgstr "B<--domain домен-libvirt>"
17290
17291 #. type: textblock
17292 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17293 msgid ""
17294 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17295 "used, then any libvirt domain can be used.  However in write mode, only "
17296 "libvirt domains which are shut down can be named here."
17297 msgstr ""
17298
17299 #. type: textblock
17300 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17301 msgid "Domain UUIDs can be used instead of names."
17302 msgstr ""
17303
17304 #. type: textblock
17305 #: ../fish/guestfish.pod:204
17306 msgid ""
17307 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17308 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17309 "if the I<--format:...> flag was given."
17310 msgstr ""
17311
17312 #. type: =item
17313 #: ../fish/guestfish.pod:208
17314 msgid "B<-D>"
17315 msgstr "B<-D>"
17316
17317 #. type: =item
17318 #: ../fish/guestfish.pod:210
17319 msgid "B<--no-dest-paths>"
17320 msgstr "B<--no-dest-paths>"
17321
17322 #. type: textblock
17323 #: ../fish/guestfish.pod:212
17324 msgid ""
17325 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17326 "to hit the tab key to complete paths on the guest filesystem, but this "
17327 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17328 "allow this feature to be disabled."
17329 msgstr ""
17330
17331 #. type: textblock
17332 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17333 msgid ""
17334 "When prompting for keys and passphrases, guestfish normally turns echoing "
17335 "off so you cannot see what you are typing.  If you are not worried about "
17336 "Tempest attacks and there is no one else in the room you can specify this "
17337 "flag to see what you are typing."
17338 msgstr ""
17339
17340 #. type: =item
17341 #: ../fish/guestfish.pod:224
17342 msgid "B<-f file>"
17343 msgstr "B<-f файл>"
17344
17345 #. type: =item
17346 #: ../fish/guestfish.pod:226
17347 msgid "B<--file file>"
17348 msgstr "B<--file файл>"
17349
17350 #. type: textblock
17351 #: ../fish/guestfish.pod:228
17352 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17353 msgstr ""
17354
17355 #. type: verbatim
17356 #: ../fish/guestfish.pod:231
17357 #, no-wrap
17358 msgid ""
17359 " #!/usr/bin/guestfish -f\n"
17360 "\n"
17361 msgstr ""
17362 " #!/usr/bin/guestfish -f\n"
17363 "\n"
17364
17365 #. type: verbatim
17366 #: ../fish/guestfish.pod:244
17367 #, no-wrap
17368 msgid ""
17369 " guestfish --format=raw -a disk.img\n"
17370 "\n"
17371 msgstr ""
17372 " guestfish --format=raw -a disk.img\n"
17373 "\n"
17374
17375 #. type: verbatim
17376 #: ../fish/guestfish.pod:248
17377 #, no-wrap
17378 msgid ""
17379 " guestfish --format=raw -a disk.img --format -a another.img\n"
17380 "\n"
17381 msgstr ""
17382 " guestfish --format=raw -a disk.img --format -a another.img\n"
17383 "\n"
17384
17385 #. type: textblock
17386 #: ../fish/guestfish.pod:253
17387 msgid ""
17388 "If you have untrusted raw-format guest disk images, you should use this "
17389 "option to specify the disk format.  This avoids a possible security problem "
17390 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17391 msgstr ""
17392
17393 #. type: =item
17394 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17395 msgid "B<--inspector>"
17396 msgstr "B<--inspector>"
17397
17398 #. type: textblock
17399 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17400 msgid ""
17401 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17402 "system and mount filesystems as they would be mounted on the real virtual "
17403 "machine."
17404 msgstr ""
17405
17406 #. type: textblock
17407 #: ../fish/guestfish.pod:266
17408 msgid "Typical usage is either:"
17409 msgstr ""
17410
17411 #. type: verbatim
17412 #: ../fish/guestfish.pod:268
17413 #, no-wrap
17414 msgid ""
17415 " guestfish -d myguest -i\n"
17416 "\n"
17417 msgstr ""
17418 " guestfish -d myguest -i\n"
17419 "\n"
17420
17421 #. type: textblock
17422 #: ../fish/guestfish.pod:270
17423 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17424 msgstr ""
17425
17426 #. type: verbatim
17427 #: ../fish/guestfish.pod:272
17428 #, no-wrap
17429 msgid ""
17430 " guestfish --ro -d myguest -i\n"
17431 "\n"
17432 msgstr ""
17433 " guestfish --ro -d myguest -i\n"
17434 "\n"
17435
17436 #. type: textblock
17437 #: ../fish/guestfish.pod:274
17438 msgid "(for active domains, readonly), or specify the block device directly:"
17439 msgstr ""
17440
17441 #. type: verbatim
17442 #: ../fish/guestfish.pod:276
17443 #, no-wrap
17444 msgid ""
17445 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17446 "\n"
17447 msgstr ""
17448 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17449 "\n"
17450
17451 #. type: textblock
17452 #: ../fish/guestfish.pod:278
17453 msgid ""
17454 "Note that the command line syntax changed slightly over older versions of "
17455 "guestfish.  You can still use the old syntax:"
17456 msgstr ""
17457
17458 #. type: verbatim
17459 #: ../fish/guestfish.pod:281
17460 #, no-wrap
17461 msgid ""
17462 " guestfish [--ro] -i disk.img\n"
17463 "\n"
17464 msgstr ""
17465 " guestfish [--ro] -i disk.img\n"
17466 "\n"
17467
17468 #. type: verbatim
17469 #: ../fish/guestfish.pod:283
17470 #, no-wrap
17471 msgid ""
17472 " guestfish [--ro] -i libvirt-domain\n"
17473 "\n"
17474 msgstr ""
17475
17476 #. type: textblock
17477 #: ../fish/guestfish.pod:285
17478 msgid ""
17479 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17480 "then using other commands to mount the filesystems that were found."
17481 msgstr ""
17482
17483 #. type: =item
17484 #: ../fish/guestfish.pod:294
17485 msgid "B<--listen>"
17486 msgstr "B<--listen>"
17487
17488 #. type: textblock
17489 #: ../fish/guestfish.pod:296
17490 msgid ""
17491 "Fork into the background and listen for remote commands.  See section L</"
17492 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17493 msgstr ""
17494
17495 #. type: =item
17496 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17497 msgid "B<--live>"
17498 msgstr "B<--live>"
17499
17500 #. type: textblock
17501 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17502 msgid ""
17503 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
17504 "ATTACHING TO RUNNING DAEMONS>)."
17505 msgstr ""
17506
17507 #. type: =item
17508 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17509 msgid "B<-m dev[:mountpoint[:options]]>"
17510 msgstr ""
17511
17512 #. type: =item
17513 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17514 msgid "B<--mount dev[:mountpoint[:options]]>"
17515 msgstr ""
17516
17517 #. type: textblock
17518 #: ../fish/guestfish.pod:308
17519 msgid "Mount the named partition or logical volume on the given mountpoint."
17520 msgstr ""
17521
17522 #. type: textblock
17523 #: ../fish/guestfish.pod:310
17524 msgid "If the mountpoint is omitted, it defaults to C</>."
17525 msgstr ""
17526
17527 #. type: textblock
17528 #: ../fish/guestfish.pod:312
17529 msgid "You have to mount something on C</> before most commands will work."
17530 msgstr ""
17531
17532 #. type: textblock
17533 #: ../fish/guestfish.pod:314
17534 msgid ""
17535 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17536 "launched."
17537 msgstr ""
17538
17539 #. type: textblock
17540 #: ../fish/guestfish.pod:317
17541 msgid ""
17542 "If you don't know what filesystems a disk image contains, you can either run "
17543 "guestfish without this option, then list the partitions, filesystems and LVs "
17544 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17545 "commands), or you can use the L<virt-filesystems(1)> program."
17546 msgstr ""
17547
17548 #. type: textblock
17549 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17550 msgid ""
17551 "The third (and rarely used) part of the mount parameter is the list of mount "
17552 "options used to mount the underlying filesystem.  If this is not given, then "
17553 "the mount options are either the empty string or C<ro> (the latter if the "
17554 "I<--ro> flag is used).  By specifying the mount options, you override this "
17555 "default choice.  Probably the only time you would use this is to enable ACLs "
17556 "and/or extended attributes if the filesystem can support them:"
17557 msgstr ""
17558
17559 #. type: verbatim
17560 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17561 #, no-wrap
17562 msgid ""
17563 " -m /dev/sda1:/:acl,user_xattr\n"
17564 "\n"
17565 msgstr ""
17566
17567 #. type: textblock
17568 #: ../fish/guestfish.pod:333
17569 msgid "Using this flag is equivalent to using the C<mount-options> command."
17570 msgstr ""
17571
17572 #. type: =item
17573 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17574 #: ../resize/virt-resize.pod:358
17575 msgid "B<-n>"
17576 msgstr "B<-n>"
17577
17578 #. type: =item
17579 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17580 msgid "B<--no-sync>"
17581 msgstr "B<--no-sync>"
17582
17583 #. type: textblock
17584 #: ../fish/guestfish.pod:339
17585 msgid ""
17586 "Disable autosync.  This is enabled by default.  See the discussion of "
17587 "autosync in the L<guestfs(3)> manpage."
17588 msgstr ""
17589
17590 #. type: =item
17591 #: ../fish/guestfish.pod:342
17592 msgid "B<-N type>"
17593 msgstr "B<-N тип>"
17594
17595 #. type: =item
17596 #: ../fish/guestfish.pod:344
17597 msgid "B<--new type>"
17598 msgstr "B<--new тип>"
17599
17600 #. type: =item
17601 #: ../fish/guestfish.pod:346
17602 msgid "B<-N help>"
17603 msgstr "B<-N help>"
17604
17605 #. type: textblock
17606 #: ../fish/guestfish.pod:348
17607 msgid ""
17608 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17609 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17610 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17611 "IMAGES> below."
17612 msgstr ""
17613
17614 #. type: =item
17615 #: ../fish/guestfish.pod:353
17616 msgid "B<--progress-bars>"
17617 msgstr "B<--progress-bars>"
17618
17619 #. type: textblock
17620 #: ../fish/guestfish.pod:355
17621 msgid "Enable progress bars, even when guestfish is used non-interactively."
17622 msgstr ""
17623
17624 #. type: textblock
17625 #: ../fish/guestfish.pod:357
17626 msgid ""
17627 "Progress bars are enabled by default when guestfish is used as an "
17628 "interactive shell."
17629 msgstr ""
17630
17631 #. type: =item
17632 #: ../fish/guestfish.pod:360
17633 msgid "B<--no-progress-bars>"
17634 msgstr "B<--no-progress-bars>"
17635
17636 #. type: textblock
17637 #: ../fish/guestfish.pod:362
17638 msgid "Disable progress bars."
17639 msgstr ""
17640
17641 #. type: =item
17642 #: ../fish/guestfish.pod:364
17643 msgid "B<--remote[=pid]>"
17644 msgstr "B<--remote[=pid]>"
17645
17646 #. type: textblock
17647 #: ../fish/guestfish.pod:366
17648 msgid ""
17649 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17650 "CONTROL GUESTFISH OVER A SOCKET> below."
17651 msgstr ""
17652
17653 #. type: =item
17654 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17655 #: ../rescue/virt-rescue.pod:161
17656 msgid "B<-r>"
17657 msgstr "B<-r>"
17658
17659 #. type: =item
17660 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17661 #: ../rescue/virt-rescue.pod:163
17662 msgid "B<--ro>"
17663 msgstr "B<--ro>"
17664
17665 #. type: textblock
17666 #: ../fish/guestfish.pod:373
17667 msgid ""
17668 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17669 "mounts are done read-only."
17670 msgstr ""
17671
17672 #. type: textblock
17673 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17674 msgid ""
17675 "The option must always be used if the disk image or virtual machine might be "
17676 "running, and is generally recommended in cases where you don't need write "
17677 "access to the disk."
17678 msgstr ""
17679
17680 #. type: textblock
17681 #: ../fish/guestfish.pod:380
17682 msgid ""
17683 "Note that prepared disk images created with I<-N> are not affected by this "
17684 "option.  Also commands like C<add> are not affected - you have to specify "
17685 "the C<readonly:true> option explicitly if you need it."
17686 msgstr ""
17687
17688 #. type: textblock
17689 #: ../fish/guestfish.pod:384
17690 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17691 msgstr ""
17692
17693 #. type: =item
17694 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17695 #: ../rescue/virt-rescue.pod:173
17696 msgid "B<--selinux>"
17697 msgstr "B<--selinux>"
17698
17699 #. type: textblock
17700 #: ../fish/guestfish.pod:388
17701 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
17702 msgstr ""
17703
17704 #. type: textblock
17705 #: ../fish/guestfish.pod:394
17706 msgid ""
17707 "Enable very verbose messages.  This is particularly useful if you find a bug."
17708 msgstr ""
17709
17710 #. type: textblock
17711 #: ../fish/guestfish.pod:401
17712 msgid "Display the guestfish / libguestfs version number and exit."
17713 msgstr ""
17714
17715 #. type: =item
17716 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
17717 #: ../rescue/virt-rescue.pod:190
17718 msgid "B<-w>"
17719 msgstr "B<-w>"
17720
17721 #. type: =item
17722 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
17723 #: ../rescue/virt-rescue.pod:192
17724 msgid "B<--rw>"
17725 msgstr "B<--rw>"
17726
17727 #. type: textblock
17728 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
17729 msgid ""
17730 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17731 "mounts are done read-write."
17732 msgstr ""
17733
17734 #. type: textblock
17735 #: ../fish/guestfish.pod:410
17736 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
17737 msgstr ""
17738
17739 #. type: textblock
17740 #: ../fish/guestfish.pod:414
17741 msgid "Echo each command before executing it."
17742 msgstr ""
17743
17744 #. type: =head1
17745 #: ../fish/guestfish.pod:418
17746 msgid "COMMANDS ON COMMAND LINE"
17747 msgstr ""
17748
17749 #. type: textblock
17750 #: ../fish/guestfish.pod:420
17751 msgid ""
17752 "Any additional (non-option) arguments are treated as commands to execute."
17753 msgstr ""
17754
17755 #. type: textblock
17756 #: ../fish/guestfish.pod:423
17757 msgid ""
17758 "Commands to execute should be separated by a colon (C<:>), where the colon "
17759 "is a separate parameter.  Thus:"
17760 msgstr ""
17761
17762 #. type: verbatim
17763 #: ../fish/guestfish.pod:426
17764 #, no-wrap
17765 msgid ""
17766 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
17767 "\n"
17768 msgstr ""
17769
17770 #. type: textblock
17771 #: ../fish/guestfish.pod:428
17772 msgid ""
17773 "If there are no additional arguments, then we enter a shell, either an "
17774 "interactive shell with a prompt (if the input is a terminal) or a non-"
17775 "interactive shell."
17776 msgstr ""
17777
17778 #. type: textblock
17779 #: ../fish/guestfish.pod:432
17780 msgid ""
17781 "In either command line mode or non-interactive shell, the first command that "
17782 "gives an error causes the whole shell to exit.  In interactive mode (with a "
17783 "prompt) if a command fails, you can continue to enter commands."
17784 msgstr ""
17785
17786 #. type: =head1
17787 #: ../fish/guestfish.pod:437
17788 msgid "USING launch (OR run)"
17789 msgstr ""
17790
17791 #. type: textblock
17792 #: ../fish/guestfish.pod:439
17793 msgid ""
17794 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
17795 "then launch it, then mount any disks you need, and finally issue actions/"
17796 "commands.  So the general order of the day is:"
17797 msgstr ""
17798
17799 #. type: textblock
17800 #: ../fish/guestfish.pod:447
17801 msgid "add or -a/--add"
17802 msgstr ""
17803
17804 #. type: textblock
17805 #: ../fish/guestfish.pod:451
17806 msgid "launch (aka run)"
17807 msgstr ""
17808
17809 #. type: textblock
17810 #: ../fish/guestfish.pod:455
17811 msgid "mount or -m/--mount"
17812 msgstr ""
17813
17814 #. type: textblock
17815 #: ../fish/guestfish.pod:459
17816 msgid "any other commands"
17817 msgstr ""
17818
17819 #. type: textblock
17820 #: ../fish/guestfish.pod:463
17821 msgid ""
17822 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
17823 "guest before mounting or performing any other commands."
17824 msgstr ""
17825
17826 #. type: textblock
17827 #: ../fish/guestfish.pod:466
17828 msgid ""
17829 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
17830 "I<--new> options were given then C<run> is done automatically, simply "
17831 "because guestfish can't perform the action you asked for without doing this."
17832 msgstr ""
17833
17834 #. type: =head1
17835 #: ../fish/guestfish.pod:471
17836 msgid "OPENING DISKS FOR READ AND WRITE"
17837 msgstr ""
17838
17839 #. type: textblock
17840 #: ../fish/guestfish.pod:473
17841 msgid ""
17842 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
17843 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
17844 "I<-i> and I<-m> open disk images read-only or for writing."
17845 msgstr ""
17846
17847 #. type: textblock
17848 #: ../fish/guestfish.pod:478
17849 msgid ""
17850 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
17851 "opening disk images supplied on the command line for write.  To open a disk "
17852 "image read-only you have to do I<-a image --ro>."
17853 msgstr ""
17854
17855 #. type: textblock
17856 #: ../fish/guestfish.pod:482
17857 msgid ""
17858 "This matters: If you accidentally open a live VM disk image writable then "
17859 "you will cause irreversible disk corruption."
17860 msgstr ""
17861
17862 #. type: textblock
17863 #: ../fish/guestfish.pod:485
17864 msgid ""
17865 "In a future libguestfs we intend to change the default the other way.  Disk "
17866 "images will be opened read-only.  You will have to either specify "
17867 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
17868 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
17869 "access for disk images specified by those other command line options."
17870 msgstr ""
17871
17872 #. type: textblock
17873 #: ../fish/guestfish.pod:492
17874 msgid ""
17875 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
17876 "which does nothing (it is already the default).  However it is highly "
17877 "recommended that you use this option to indicate that you need write access, "
17878 "and prepare your scripts for the day when this option will be required for "
17879 "write access."
17880 msgstr ""
17881
17882 #. type: textblock
17883 #: ../fish/guestfish.pod:498
17884 msgid ""
17885 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
17886 "other libguestfs program apart from guestfish and guestmount."
17887 msgstr ""
17888
17889 #. type: =head1
17890 #: ../fish/guestfish.pod:501
17891 msgid "QUOTING"
17892 msgstr ""
17893
17894 #. type: textblock
17895 #: ../fish/guestfish.pod:503
17896 msgid ""
17897 "You can quote ordinary parameters using either single or double quotes.  For "
17898 "example:"
17899 msgstr ""
17900
17901 #. type: verbatim
17902 #: ../fish/guestfish.pod:506
17903 #, no-wrap
17904 msgid ""
17905 " add \"file with a space.img\"\n"
17906 "\n"
17907 msgstr ""
17908
17909 #. type: verbatim
17910 #: ../fish/guestfish.pod:508
17911 #, no-wrap
17912 msgid ""
17913 " rm '/file name'\n"
17914 "\n"
17915 msgstr ""
17916
17917 #. type: verbatim
17918 #: ../fish/guestfish.pod:510
17919 #, no-wrap
17920 msgid ""
17921 " rm '/\"'\n"
17922 "\n"
17923 msgstr ""
17924
17925 #. type: textblock
17926 #: ../fish/guestfish.pod:512
17927 msgid ""
17928 "A few commands require a list of strings to be passed.  For these, use a "
17929 "whitespace-separated list, enclosed in quotes.  Strings containing "
17930 "whitespace to be passed through must be enclosed in single quotes.  A "
17931 "literal single quote must be escaped with a backslash."
17932 msgstr ""
17933
17934 #. type: verbatim
17935 #: ../fish/guestfish.pod:517
17936 #, no-wrap
17937 msgid ""
17938 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
17939 " command \"/bin/echo 'foo      bar'\"\n"
17940 " command \"/bin/echo \\'foo\\'\"\n"
17941 "\n"
17942 msgstr ""
17943
17944 #. type: =head2
17945 #: ../fish/guestfish.pod:521
17946 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
17947 msgstr ""
17948
17949 #. type: textblock
17950 #: ../fish/guestfish.pod:523
17951 msgid ""
17952 "In double-quoted arguments (only) use backslash to insert special characters:"
17953 msgstr ""
17954
17955 #. type: =item
17956 #: ../fish/guestfish.pod:528
17957 msgid "C<\\a>"
17958 msgstr ""
17959
17960 #. type: textblock
17961 #: ../fish/guestfish.pod:530
17962 msgid "Alert (bell) character."
17963 msgstr ""
17964
17965 #. type: =item
17966 #: ../fish/guestfish.pod:532
17967 msgid "C<\\b>"
17968 msgstr ""
17969
17970 #. type: textblock
17971 #: ../fish/guestfish.pod:534
17972 msgid "Backspace character."
17973 msgstr ""
17974
17975 #. type: =item
17976 #: ../fish/guestfish.pod:536
17977 msgid "C<\\f>"
17978 msgstr ""
17979
17980 #. type: textblock
17981 #: ../fish/guestfish.pod:538
17982 msgid "Form feed character."
17983 msgstr ""
17984
17985 #. type: =item
17986 #: ../fish/guestfish.pod:540
17987 msgid "C<\\n>"
17988 msgstr ""
17989
17990 #. type: textblock
17991 #: ../fish/guestfish.pod:542
17992 msgid "Newline character."
17993 msgstr ""
17994
17995 #. type: =item
17996 #: ../fish/guestfish.pod:544
17997 msgid "C<\\r>"
17998 msgstr ""
17999
18000 #. type: textblock
18001 #: ../fish/guestfish.pod:546
18002 msgid "Carriage return character."
18003 msgstr ""
18004
18005 #. type: =item
18006 #: ../fish/guestfish.pod:548
18007 msgid "C<\\t>"
18008 msgstr ""
18009
18010 #. type: textblock
18011 #: ../fish/guestfish.pod:550
18012 msgid "Horizontal tab character."
18013 msgstr ""
18014
18015 #. type: =item
18016 #: ../fish/guestfish.pod:552
18017 msgid "C<\\v>"
18018 msgstr ""
18019
18020 #. type: textblock
18021 #: ../fish/guestfish.pod:554
18022 msgid "Vertical tab character."
18023 msgstr ""
18024
18025 #. type: =item
18026 #: ../fish/guestfish.pod:556
18027 msgid "C<\\\">"
18028 msgstr ""
18029
18030 #. type: textblock
18031 #: ../fish/guestfish.pod:558
18032 msgid "A literal double quote character."
18033 msgstr ""
18034
18035 #. type: =item
18036 #: ../fish/guestfish.pod:560
18037 msgid "C<\\ooo>"
18038 msgstr ""
18039
18040 #. type: textblock
18041 #: ../fish/guestfish.pod:562
18042 msgid ""
18043 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18044 "(unlike C)."
18045 msgstr ""
18046
18047 #. type: =item
18048 #: ../fish/guestfish.pod:565
18049 msgid "C<\\xhh>"
18050 msgstr ""
18051
18052 #. type: textblock
18053 #: ../fish/guestfish.pod:567
18054 msgid ""
18055 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18056 msgstr ""
18057
18058 #. type: textblock
18059 #: ../fish/guestfish.pod:570
18060 msgid ""
18061 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18062 "strings."
18063 msgstr ""
18064
18065 #. type: =item
18066 #: ../fish/guestfish.pod:573
18067 msgid "C<\\\\>"
18068 msgstr ""
18069
18070 #. type: textblock
18071 #: ../fish/guestfish.pod:575
18072 msgid "A literal backslash character."
18073 msgstr ""
18074
18075 #. type: =head1
18076 #: ../fish/guestfish.pod:579
18077 msgid "OPTIONAL ARGUMENTS"
18078 msgstr ""
18079
18080 #. type: textblock
18081 #: ../fish/guestfish.pod:581
18082 msgid ""
18083 "Some commands take optional arguments.  These arguments appear in this "
18084 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18085 msgstr ""
18086
18087 #. type: verbatim
18088 #: ../fish/guestfish.pod:585
18089 #, no-wrap
18090 msgid ""
18091 " add-drive-opts filename\n"
18092 "\n"
18093 msgstr ""
18094
18095 #. type: verbatim
18096 #: ../fish/guestfish.pod:587
18097 #, no-wrap
18098 msgid ""
18099 " add-drive-opts filename readonly:true\n"
18100 "\n"
18101 msgstr ""
18102
18103 #. type: verbatim
18104 #: ../fish/guestfish.pod:589
18105 #, no-wrap
18106 msgid ""
18107 " add-drive-opts filename format:qcow2 readonly:false\n"
18108 "\n"
18109 msgstr ""
18110
18111 #. type: textblock
18112 #: ../fish/guestfish.pod:591
18113 msgid ""
18114 "Each optional argument can appear at most once.  All optional arguments must "
18115 "appear after the required ones."
18116 msgstr ""
18117
18118 #. type: =head1
18119 #: ../fish/guestfish.pod:594
18120 msgid "NUMBERS"
18121 msgstr "ЧИСЛА"
18122
18123 #. type: textblock
18124 #: ../fish/guestfish.pod:596
18125 msgid ""
18126 "This section applies to all commands which can take integers as parameters."
18127 msgstr ""
18128
18129 #. type: =head2
18130 #: ../fish/guestfish.pod:599
18131 msgid "SIZE SUFFIX"
18132 msgstr ""
18133
18134 #. type: textblock
18135 #: ../fish/guestfish.pod:601
18136 msgid ""
18137 "When the command takes a parameter measured in bytes, you can use one of the "
18138 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18139 msgstr ""
18140
18141 #. type: =item
18142 #: ../fish/guestfish.pod:607
18143 msgid "B<k> or B<K> or B<KiB>"
18144 msgstr "B<k>, B<K> або B<KiB>"
18145
18146 #. type: textblock
18147 #: ../fish/guestfish.pod:609
18148 msgid "The size in kilobytes (multiplied by 1024)."
18149 msgstr ""
18150
18151 #. type: =item
18152 #: ../fish/guestfish.pod:611
18153 msgid "B<KB>"
18154 msgstr "B<KB>"
18155
18156 #. type: textblock
18157 #: ../fish/guestfish.pod:613
18158 msgid "The size in SI 1000 byte units."
18159 msgstr ""
18160
18161 #. type: =item
18162 #: ../fish/guestfish.pod:615
18163 msgid "B<M> or B<MiB>"
18164 msgstr "B<M> або B<MiB>"
18165
18166 #. type: textblock
18167 #: ../fish/guestfish.pod:617
18168 msgid "The size in megabytes (multiplied by 1048576)."
18169 msgstr ""
18170
18171 #. type: =item
18172 #: ../fish/guestfish.pod:619
18173 msgid "B<MB>"
18174 msgstr "B<MB>"
18175
18176 #. type: textblock
18177 #: ../fish/guestfish.pod:621
18178 msgid "The size in SI 1000000 byte units."
18179 msgstr ""
18180
18181 #. type: =item
18182 #: ../fish/guestfish.pod:623
18183 msgid "B<G> or B<GiB>"
18184 msgstr "B<G> або B<GiB>"
18185
18186 #. type: textblock
18187 #: ../fish/guestfish.pod:625
18188 msgid "The size in gigabytes (multiplied by 2**30)."
18189 msgstr "Розмір у гігабайтах (з множником 2**30)."
18190
18191 #. type: =item
18192 #: ../fish/guestfish.pod:627
18193 msgid "B<GB>"
18194 msgstr "B<GB>"
18195
18196 #. type: textblock
18197 #: ../fish/guestfish.pod:629
18198 msgid "The size in SI 10**9 byte units."
18199 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18200
18201 #. type: =item
18202 #: ../fish/guestfish.pod:631
18203 msgid "B<T> or B<TiB>"
18204 msgstr "B<T> або B<TiB>"
18205
18206 #. type: textblock
18207 #: ../fish/guestfish.pod:633
18208 msgid "The size in terabytes (multiplied by 2**40)."
18209 msgstr "Розмір у терабайтах (з множником 2**40)."
18210
18211 #. type: =item
18212 #: ../fish/guestfish.pod:635
18213 msgid "B<TB>"
18214 msgstr "B<TB>"
18215
18216 #. type: textblock
18217 #: ../fish/guestfish.pod:637
18218 msgid "The size in SI 10**12 byte units."
18219 msgstr ""
18220
18221 #. type: =item
18222 #: ../fish/guestfish.pod:639
18223 msgid "B<P> or B<PiB>"
18224 msgstr "B<P> або B<PiB>"
18225
18226 #. type: textblock
18227 #: ../fish/guestfish.pod:641
18228 msgid "The size in petabytes (multiplied by 2**50)."
18229 msgstr ""
18230
18231 #. type: =item
18232 #: ../fish/guestfish.pod:643
18233 msgid "B<PB>"
18234 msgstr "B<PB>"
18235
18236 #. type: textblock
18237 #: ../fish/guestfish.pod:645
18238 msgid "The size in SI 10**15 byte units."
18239 msgstr ""
18240
18241 #. type: =item
18242 #: ../fish/guestfish.pod:647
18243 msgid "B<E> or B<EiB>"
18244 msgstr "B<E> або B<EiB>"
18245
18246 #. type: textblock
18247 #: ../fish/guestfish.pod:649
18248 msgid "The size in exabytes (multiplied by 2**60)."
18249 msgstr ""
18250
18251 #. type: =item
18252 #: ../fish/guestfish.pod:651
18253 msgid "B<EB>"
18254 msgstr "B<EB>"
18255
18256 #. type: textblock
18257 #: ../fish/guestfish.pod:653
18258 msgid "The size in SI 10**18 byte units."
18259 msgstr ""
18260
18261 #. type: =item
18262 #: ../fish/guestfish.pod:655
18263 msgid "B<Z> or B<ZiB>"
18264 msgstr "B<Z> або B<ZiB>"
18265
18266 #. type: textblock
18267 #: ../fish/guestfish.pod:657
18268 msgid "The size in zettabytes (multiplied by 2**70)."
18269 msgstr ""
18270
18271 #. type: =item
18272 #: ../fish/guestfish.pod:659
18273 msgid "B<ZB>"
18274 msgstr "B<ZB>"
18275
18276 #. type: textblock
18277 #: ../fish/guestfish.pod:661
18278 msgid "The size in SI 10**21 byte units."
18279 msgstr ""
18280
18281 #. type: =item
18282 #: ../fish/guestfish.pod:663
18283 msgid "B<Y> or B<YiB>"
18284 msgstr "B<Y> або B<YiB>"
18285
18286 #. type: textblock
18287 #: ../fish/guestfish.pod:665
18288 msgid "The size in yottabytes (multiplied by 2**80)."
18289 msgstr ""
18290
18291 #. type: =item
18292 #: ../fish/guestfish.pod:667
18293 msgid "B<YB>"
18294 msgstr "B<YB>"
18295
18296 #. type: textblock
18297 #: ../fish/guestfish.pod:669
18298 msgid "The size in SI 10**24 byte units."
18299 msgstr ""
18300
18301 #. type: verbatim
18302 #: ../fish/guestfish.pod:675
18303 #, no-wrap
18304 msgid ""
18305 " truncate-size /file 1G\n"
18306 "\n"
18307 msgstr ""
18308
18309 #. type: textblock
18310 #: ../fish/guestfish.pod:677
18311 msgid "would truncate the file to 1 gigabyte."
18312 msgstr ""
18313
18314 #. type: textblock
18315 #: ../fish/guestfish.pod:679
18316 msgid ""
18317 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18318 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18319 "suffix will probably not do what you expect."
18320 msgstr ""
18321
18322 #. type: =head2
18323 #: ../fish/guestfish.pod:683
18324 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18325 msgstr ""
18326
18327 #. type: textblock
18328 #: ../fish/guestfish.pod:685
18329 msgid ""
18330 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18331 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18332 msgstr ""
18333
18334 #. type: verbatim
18335 #: ../fish/guestfish.pod:688
18336 #, no-wrap
18337 msgid ""
18338 " 1234      decimal number 1234\n"
18339 " 02322     octal number, equivalent to decimal 1234\n"
18340 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18341 "\n"
18342 msgstr ""
18343
18344 #. type: textblock
18345 #: ../fish/guestfish.pod:692
18346 msgid ""
18347 "When using the C<chmod> command, you almost always want to specify an octal "
18348 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18349 "L<chmod(1)> program):"
18350 msgstr ""
18351
18352 #. type: verbatim
18353 #: ../fish/guestfish.pod:696
18354 #, no-wrap
18355 msgid ""
18356 " chmod 0777 /public  # OK\n"
18357 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18358 "\n"
18359 msgstr ""
18360
18361 #. type: textblock
18362 #: ../fish/guestfish.pod:699
18363 msgid ""
18364 "Commands that return numbers usually print them in decimal, but some "
18365 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18366 "octal, preceeded by C<0>)."
18367 msgstr ""
18368
18369 #. type: =head1
18370 #: ../fish/guestfish.pod:703
18371 msgid "WILDCARDS AND GLOBBING"
18372 msgstr ""
18373
18374 #. type: textblock
18375 #: ../fish/guestfish.pod:705
18376 msgid ""
18377 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18378 "(globbing) by default.  So for example the following will not do what you "
18379 "expect:"
18380 msgstr ""
18381
18382 #. type: verbatim
18383 #: ../fish/guestfish.pod:709
18384 #, no-wrap
18385 msgid ""
18386 " rm-rf /home/*\n"
18387 "\n"
18388 msgstr ""
18389
18390 #. type: textblock
18391 #: ../fish/guestfish.pod:711
18392 msgid ""
18393 "Assuming you don't have a directory called literally C</home/*> then the "
18394 "above command will return an error."
18395 msgstr ""
18396
18397 #. type: textblock
18398 #: ../fish/guestfish.pod:714
18399 msgid "To perform wildcard expansion, use the C<glob> command."
18400 msgstr ""
18401
18402 #. type: verbatim
18403 #: ../fish/guestfish.pod:716
18404 #, no-wrap
18405 msgid ""
18406 " glob rm-rf /home/*\n"
18407 "\n"
18408 msgstr ""
18409
18410 #. type: textblock
18411 #: ../fish/guestfish.pod:718
18412 msgid ""
18413 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18414 "many times), equivalent to:"
18415 msgstr ""
18416
18417 #. type: verbatim
18418 #: ../fish/guestfish.pod:721
18419 #, no-wrap
18420 msgid ""
18421 " rm-rf /home/jim\n"
18422 " rm-rf /home/joe\n"
18423 " rm-rf /home/mary\n"
18424 "\n"
18425 msgstr ""
18426
18427 #. type: textblock
18428 #: ../fish/guestfish.pod:725
18429 msgid "C<glob> only works on simple guest paths and not on device names."
18430 msgstr ""
18431
18432 #. type: textblock
18433 #: ../fish/guestfish.pod:727
18434 msgid ""
18435 "If you have several parameters, each containing a wildcard, then glob will "
18436 "perform a Cartesian product."
18437 msgstr ""
18438
18439 #. type: =head1
18440 #: ../fish/guestfish.pod:730
18441 msgid "COMMENTS"
18442 msgstr "КОМЕНТАРІ"
18443
18444 #. type: textblock
18445 #: ../fish/guestfish.pod:732
18446 msgid ""
18447 "Any line which starts with a I<#> character is treated as a comment and "
18448 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18449 "a command.  For example:"
18450 msgstr ""
18451
18452 #. type: verbatim
18453 #: ../fish/guestfish.pod:736
18454 #, no-wrap
18455 msgid ""
18456 " # this is a comment\n"
18457 "         # this is a comment\n"
18458 " foo # NOT a comment\n"
18459 "\n"
18460 msgstr ""
18461
18462 #. type: textblock
18463 #: ../fish/guestfish.pod:740
18464 msgid "Blank lines are also ignored."
18465 msgstr ""
18466
18467 #. type: =head1
18468 #: ../fish/guestfish.pod:742
18469 msgid "RUNNING COMMANDS LOCALLY"
18470 msgstr ""
18471
18472 #. type: textblock
18473 #: ../fish/guestfish.pod:744
18474 msgid ""
18475 "Any line which starts with a I<!> character is treated as a command sent to "
18476 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18477 msgstr ""
18478
18479 #. type: verbatim
18480 #: ../fish/guestfish.pod:748
18481 #, no-wrap
18482 msgid ""
18483 " !mkdir local\n"
18484 " tgz-out /remote local/remote-data.tar.gz\n"
18485 "\n"
18486 msgstr ""
18487
18488 #. type: textblock
18489 #: ../fish/guestfish.pod:751
18490 msgid ""
18491 "will create a directory C<local> on the host, and then export the contents "
18492 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18493 "(See C<tgz-out>)."
18494 msgstr ""
18495
18496 #. type: textblock
18497 #: ../fish/guestfish.pod:755
18498 msgid ""
18499 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18500 "effect, due to the way that subprocesses work in Unix."
18501 msgstr ""
18502
18503 #. type: =head2
18504 #: ../fish/guestfish.pod:758
18505 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18506 msgstr ""
18507
18508 #. type: textblock
18509 #: ../fish/guestfish.pod:760
18510 msgid ""
18511 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18512 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18513 "and executed as guestfish commands."
18514 msgstr ""
18515
18516 #. type: textblock
18517 #: ../fish/guestfish.pod:764
18518 msgid ""
18519 "Thus you can use shell script to construct arbitrary guestfish commands "
18520 "which are then parsed by guestfish."
18521 msgstr ""
18522
18523 #. type: textblock
18524 #: ../fish/guestfish.pod:767
18525 msgid ""
18526 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18527 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18528 "if we use a shell script to create the guestfish commands for us:"
18529 msgstr ""
18530
18531 #. type: verbatim
18532 #: ../fish/guestfish.pod:772
18533 #, no-wrap
18534 msgid ""
18535 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18536 "\n"
18537 msgstr ""
18538
18539 #. type: textblock
18540 #: ../fish/guestfish.pod:774
18541 msgid "or with names like C</foo.001>:"
18542 msgstr ""
18543
18544 #. type: verbatim
18545 #: ../fish/guestfish.pod:776
18546 #, no-wrap
18547 msgid ""
18548 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18549 "\n"
18550 msgstr ""
18551
18552 #. type: textblock
18553 #: ../fish/guestfish.pod:778
18554 msgid ""
18555 "When using guestfish interactively it can be helpful to just run the shell "
18556 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18557 "ordinary I<!> local command), see what guestfish commands it would run, and "
18558 "when you are happy with those prepend the C<E<lt>> character to run the "
18559 "guestfish commands for real."
18560 msgstr ""
18561
18562 #. type: =head1
18563 #: ../fish/guestfish.pod:784
18564 msgid "PIPES"
18565 msgstr "КАНАЛИ"
18566
18567 #. type: textblock
18568 #: ../fish/guestfish.pod:786
18569 msgid ""
18570 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18571 "command (a guestfish command) to the second command (any host command).  For "
18572 "example:"
18573 msgstr ""
18574
18575 #. type: verbatim
18576 #: ../fish/guestfish.pod:790
18577 #, no-wrap
18578 msgid ""
18579 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18580 "\n"
18581 msgstr ""
18582
18583 #. type: textblock
18584 #: ../fish/guestfish.pod:792
18585 msgid ""
18586 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18587 "program).  The above command would list all accounts in the guest filesystem "
18588 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18589 msgstr ""
18590
18591 #. type: verbatim
18592 #: ../fish/guestfish.pod:797
18593 #, no-wrap
18594 msgid ""
18595 " hexdump /bin/ls | head\n"
18596 " list-devices | tail -1\n"
18597 " tgz-out / - | tar ztf -\n"
18598 "\n"
18599 msgstr ""
18600
18601 #. type: textblock
18602 #: ../fish/guestfish.pod:801
18603 msgid ""
18604 "The space before the pipe symbol is required, any space after the pipe "
18605 "symbol is optional.  Everything after the pipe symbol is just passed "
18606 "straight to the host shell, so it can contain redirections, globs and "
18607 "anything else that makes sense on the host side."
18608 msgstr ""
18609
18610 #. type: textblock
18611 #: ../fish/guestfish.pod:806
18612 msgid ""
18613 "To use a literal argument which begins with a pipe symbol, you have to quote "
18614 "it, eg:"
18615 msgstr ""
18616
18617 #. type: verbatim
18618 #: ../fish/guestfish.pod:809
18619 #, no-wrap
18620 msgid ""
18621 " echo \"|\"\n"
18622 "\n"
18623 msgstr ""
18624
18625 #. type: =head1
18626 #: ../fish/guestfish.pod:811
18627 msgid "HOME DIRECTORIES"
18628 msgstr ""
18629
18630 #. type: textblock
18631 #: ../fish/guestfish.pod:813
18632 msgid ""
18633 "If a parameter starts with the character C<~> then the tilde may be expanded "
18634 "as a home directory path (either C<~> for the current user's home directory, "
18635 "or C<~user> for another user)."
18636 msgstr ""
18637
18638 #. type: textblock
18639 #: ../fish/guestfish.pod:817
18640 msgid ""
18641 "Note that home directory expansion happens for users known I<on the host>, "
18642 "not in the guest filesystem."
18643 msgstr ""
18644
18645 #. type: textblock
18646 #: ../fish/guestfish.pod:820
18647 msgid ""
18648 "To use a literal argument which begins with a tilde, you have to quote it, "
18649 "eg:"
18650 msgstr ""
18651
18652 #. type: verbatim
18653 #: ../fish/guestfish.pod:823
18654 #, no-wrap
18655 msgid ""
18656 " echo \"~\"\n"
18657 "\n"
18658 msgstr ""
18659
18660 #. type: =head2
18661 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18662 msgid "ENCRYPTED DISKS"
18663 msgstr "ЗАШИФРОВАНІ ДИСКИ"
18664
18665 #. type: textblock
18666 #: ../fish/guestfish.pod:827
18667 msgid ""
18668 "Libguestfs has some support for Linux guests encrypted according to the "
18669 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18670 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18671 "LUKS is supported."
18672 msgstr ""
18673
18674 #. type: textblock
18675 #: ../fish/guestfish.pod:832
18676 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18677 msgstr ""
18678
18679 #. type: verbatim
18680 #: ../fish/guestfish.pod:834
18681 #, no-wrap
18682 msgid ""
18683 " ><fs> vfs-type /dev/sda2\n"
18684 " crypto_LUKS\n"
18685 "\n"
18686 msgstr ""
18687
18688 #. type: textblock
18689 #: ../fish/guestfish.pod:837
18690 msgid ""
18691 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18692 "device called C</dev/mapper/luksdev>."
18693 msgstr ""
18694
18695 #. type: verbatim
18696 #: ../fish/guestfish.pod:840
18697 #, no-wrap
18698 msgid ""
18699 " ><fs> luks-open /dev/sda2 luksdev\n"
18700 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
18701 "\n"
18702 msgstr ""
18703
18704 #. type: textblock
18705 #: ../fish/guestfish.pod:843
18706 msgid ""
18707 "Finally you have to tell LVM to scan for volume groups on the newly created "
18708 "mapper device:"
18709 msgstr ""
18710
18711 #. type: verbatim
18712 #: ../fish/guestfish.pod:846
18713 #, no-wrap
18714 msgid ""
18715 " vgscan\n"
18716 " vg-activate-all true\n"
18717 "\n"
18718 msgstr ""
18719
18720 #. type: textblock
18721 #: ../fish/guestfish.pod:849
18722 msgid "The logical volume(s) can now be mounted in the usual way."
18723 msgstr ""
18724
18725 #. type: textblock
18726 #: ../fish/guestfish.pod:851
18727 msgid ""
18728 "Before closing a LUKS device you must unmount any logical volumes on it and "
18729 "deactivate the volume groups by calling C<vg-activate false VG> on each "
18730 "one.  Then you can close the mapper device:"
18731 msgstr ""
18732
18733 #. type: verbatim
18734 #: ../fish/guestfish.pod:855
18735 #, no-wrap
18736 msgid ""
18737 " vg-activate false /dev/VG\n"
18738 " luks-close /dev/mapper/luksdev\n"
18739 "\n"
18740 msgstr ""
18741
18742 #. type: textblock
18743 #: ../fish/guestfish.pod:860
18744 msgid ""
18745 "If a path is prefixed with C<win:> then you can use Windows-style drive "
18746 "letters and paths (with some limitations).  The following commands are "
18747 "equivalent:"
18748 msgstr ""
18749
18750 #. type: verbatim
18751 #: ../fish/guestfish.pod:864
18752 #, no-wrap
18753 msgid ""
18754 " file /WINDOWS/system32/config/system.LOG\n"
18755 "\n"
18756 msgstr ""
18757
18758 #. type: verbatim
18759 #: ../fish/guestfish.pod:866
18760 #, no-wrap
18761 msgid ""
18762 " file win:\\windows\\system32\\config\\system.log\n"
18763 "\n"
18764 msgstr ""
18765
18766 #. type: verbatim
18767 #: ../fish/guestfish.pod:868
18768 #, no-wrap
18769 msgid ""
18770 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
18771 "\n"
18772 msgstr ""
18773
18774 #. type: textblock
18775 #: ../fish/guestfish.pod:870
18776 msgid ""
18777 "The parameter is rewritten \"behind the scenes\" by looking up the position "
18778 "where the drive is mounted, prepending that to the path, changing all "
18779 "backslash characters to forward slash, then resolving the result using L</"
18780 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
18781 "the parameter might be rewritten like this:"
18782 msgstr ""
18783
18784 #. type: verbatim
18785 #: ../fish/guestfish.pod:876
18786 #, no-wrap
18787 msgid ""
18788 " win:e:\\foo\\bar => /e/FOO/bar\n"
18789 "\n"
18790 msgstr ""
18791
18792 #. type: textblock
18793 #: ../fish/guestfish.pod:878
18794 msgid "This only works in argument positions that expect a path."
18795 msgstr ""
18796
18797 #. type: =head1
18798 #: ../fish/guestfish.pod:880
18799 msgid "UPLOADING AND DOWNLOADING FILES"
18800 msgstr ""
18801
18802 #. type: textblock
18803 #: ../fish/guestfish.pod:882
18804 msgid ""
18805 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
18806 "others which upload from or download to a local file, you can use the "
18807 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
18808 msgstr ""
18809
18810 #. type: verbatim
18811 #: ../fish/guestfish.pod:886
18812 #, no-wrap
18813 msgid ""
18814 " upload - /foo\n"
18815 "\n"
18816 msgstr ""
18817
18818 #. type: textblock
18819 #: ../fish/guestfish.pod:888
18820 msgid ""
18821 "reads stdin and creates from that a file C</foo> in the disk image, and:"
18822 msgstr ""
18823
18824 #. type: verbatim
18825 #: ../fish/guestfish.pod:891
18826 #, no-wrap
18827 msgid ""
18828 " tar-out /etc - | tar tf -\n"
18829 "\n"
18830 msgstr ""
18831
18832 #. type: textblock
18833 #: ../fish/guestfish.pod:893
18834 msgid ""
18835 "writes the tarball to stdout and then pipes that into the external \"tar\" "
18836 "command (see L</PIPES>)."
18837 msgstr ""
18838
18839 #. type: textblock
18840 #: ../fish/guestfish.pod:896
18841 msgid ""
18842 "When using C<-> to read from stdin, the input is read up to the end of "
18843 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
18844 "some arbitrary end marker:"
18845 msgstr ""
18846
18847 #. type: verbatim
18848 #: ../fish/guestfish.pod:900
18849 #, no-wrap
18850 msgid ""
18851 " upload -<<END /foo\n"
18852 " input line 1\n"
18853 " input line 2\n"
18854 " input line 3\n"
18855 " END\n"
18856 "\n"
18857 msgstr ""
18858
18859 #. type: textblock
18860 #: ../fish/guestfish.pod:906
18861 msgid ""
18862 "Any string of characters can be used instead of C<END>.  The end marker must "
18863 "appear on a line of its own, without any preceeding or following characters "
18864 "(not even spaces)."
18865 msgstr ""
18866
18867 #. type: textblock
18868 #: ../fish/guestfish.pod:910
18869 msgid ""
18870 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
18871 "upload local files (so-called \"FileIn\" parameters in the generator)."
18872 msgstr ""
18873
18874 #. type: =head1
18875 #: ../fish/guestfish.pod:913
18876 msgid "EXIT ON ERROR BEHAVIOUR"
18877 msgstr ""
18878
18879 #. type: textblock
18880 #: ../fish/guestfish.pod:915
18881 msgid ""
18882 "By default, guestfish will ignore any errors when in interactive mode (ie. "
18883 "taking commands from a human over a tty), and will exit on the first error "
18884 "in non-interactive mode (scripts, commands given on the command line)."
18885 msgstr ""
18886
18887 #. type: textblock
18888 #: ../fish/guestfish.pod:920
18889 msgid ""
18890 "If you prefix a command with a I<-> character, then that command will not "
18891 "cause guestfish to exit, even if that (one) command returns an error."
18892 msgstr ""
18893
18894 #. type: =head1
18895 #: ../fish/guestfish.pod:924
18896 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
18897 msgstr ""
18898
18899 #. type: textblock
18900 #: ../fish/guestfish.pod:926
18901 msgid ""
18902 "Guestfish can be remote-controlled over a socket.  This is useful "
18903 "particularly in shell scripts where you want to make several different "
18904 "changes to a filesystem, but you don't want the overhead of starting up a "
18905 "guestfish process each time."
18906 msgstr ""
18907
18908 #. type: textblock
18909 #: ../fish/guestfish.pod:931
18910 msgid "Start a guestfish server process using:"
18911 msgstr ""
18912
18913 #. type: verbatim
18914 #: ../fish/guestfish.pod:933
18915 #, no-wrap
18916 msgid ""
18917 " eval \"`guestfish --listen`\"\n"
18918 "\n"
18919 msgstr ""
18920
18921 #. type: textblock
18922 #: ../fish/guestfish.pod:935
18923 msgid "and then send it commands by doing:"
18924 msgstr ""
18925
18926 #. type: verbatim
18927 #: ../fish/guestfish.pod:937
18928 #, no-wrap
18929 msgid ""
18930 " guestfish --remote cmd [...]\n"
18931 "\n"
18932 msgstr ""
18933
18934 #. type: textblock
18935 #: ../fish/guestfish.pod:939
18936 msgid "To cause the server to exit, send it the exit command:"
18937 msgstr ""
18938
18939 #. type: textblock
18940 #: ../fish/guestfish.pod:943
18941 msgid ""
18942 "Note that the server will normally exit if there is an error in a command.  "
18943 "You can change this in the usual way.  See section L</EXIT ON ERROR "
18944 "BEHAVIOUR>."
18945 msgstr ""
18946
18947 #. type: =head2
18948 #: ../fish/guestfish.pod:947
18949 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
18950 msgstr ""
18951
18952 #. type: textblock
18953 #: ../fish/guestfish.pod:949
18954 msgid ""
18955 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
18956 "is how the I<--remote> option knows where to send the commands.  You can "
18957 "have several guestfish listener processes running using:"
18958 msgstr ""
18959
18960 #. type: verbatim
18961 #: ../fish/guestfish.pod:953
18962 #, no-wrap
18963 msgid ""
18964 " eval \"`guestfish --listen`\"\n"
18965 " pid1=$GUESTFISH_PID\n"
18966 " eval \"`guestfish --listen`\"\n"
18967 " pid2=$GUESTFISH_PID\n"
18968 " ...\n"
18969 " guestfish --remote=$pid1 cmd\n"
18970 " guestfish --remote=$pid2 cmd\n"
18971 "\n"
18972 msgstr ""
18973
18974 #. type: =head2
18975 #: ../fish/guestfish.pod:961
18976 msgid "REMOTE CONTROL AND CSH"
18977 msgstr ""
18978
18979 #. type: textblock
18980 #: ../fish/guestfish.pod:963
18981 msgid ""
18982 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
18983 "option:"
18984 msgstr ""
18985
18986 #. type: verbatim
18987 #: ../fish/guestfish.pod:966
18988 #, no-wrap
18989 msgid ""
18990 " eval \"`guestfish --listen --csh`\"\n"
18991 "\n"
18992 msgstr ""
18993
18994 #. type: =head2
18995 #: ../fish/guestfish.pod:968
18996 msgid "REMOTE CONTROL DETAILS"
18997 msgstr ""
18998
18999 #. type: textblock
19000 #: ../fish/guestfish.pod:970
19001 msgid ""
19002 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19003 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19004 "and C<$PID> is the process ID of the server."
19005 msgstr ""
19006
19007 #. type: textblock
19008 #: ../fish/guestfish.pod:974
19009 msgid "Guestfish client and server versions must match exactly."
19010 msgstr ""
19011
19012 #. type: =head2
19013 #: ../fish/guestfish.pod:976
19014 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19015 msgstr ""
19016
19017 #. type: textblock
19018 #: ../fish/guestfish.pod:978
19019 msgid ""
19020 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19021 "context hangs, ie. don't do (note the backquotes):"
19022 msgstr ""
19023
19024 #. type: verbatim
19025 #: ../fish/guestfish.pod:981
19026 #, fuzzy, no-wrap
19027 #| msgid ""
19028 #| " guestfish --ro -d myguest -i\n"
19029 #| "\n"
19030 msgid ""
19031 " a=`guestfish --remote run`\n"
19032 "\n"
19033 msgstr ""
19034 " guestfish --ro -d myguest -i\n"
19035 "\n"
19036
19037 #. type: textblock
19038 #: ../fish/guestfish.pod:983
19039 msgid ""
19040 "Since the C<run> command produces no output on stdout, this is not useful "
19041 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
19042 "cgi?id=592910>."
19043 msgstr ""
19044
19045 #. type: =head1
19046 #: ../fish/guestfish.pod:987
19047 msgid "PREPARED DISK IMAGES"
19048 msgstr ""
19049
19050 #. type: textblock
19051 #: ../fish/guestfish.pod:989
19052 msgid ""
19053 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19054 "preformatted disk images that guestfish can make for you to save typing.  "
19055 "This is particularly useful for testing purposes.  This option is used "
19056 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19057 "can be mixed with I<-a>)."
19058 msgstr ""
19059
19060 #. type: textblock
19061 #: ../fish/guestfish.pod:995
19062 msgid ""
19063 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19064 "the second and so on.  Existing files in the current directory are "
19065 "I<overwritten>."
19066 msgstr ""
19067
19068 #. type: textblock
19069 #: ../fish/guestfish.pod:999
19070 msgid ""
19071 "The type briefly describes how the disk should be sized, partitioned, how "
19072 "filesystem(s) should be created, and how content should be added.  "
19073 "Optionally the type can be followed by extra parameters, separated by C<:> "
19074 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
19075 "allocated disk, containing a single partition, with the partition formatted "
19076 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19077 "disk instead."
19078 msgstr ""
19079
19080 #. type: textblock
19081 #: ../fish/guestfish.pod:1007
19082 msgid "To list the available types and any extra parameters they take, run:"
19083 msgstr ""
19084
19085 #. type: textblock
19086 #: ../fish/guestfish.pod:1011
19087 msgid ""
19088 "Note that the prepared filesystem is not mounted.  You would usually have to "
19089 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19090 msgstr ""
19091
19092 #. type: textblock
19093 #: ../fish/guestfish.pod:1015
19094 msgid ""
19095 "If any I<-N> or I<--new> options are given, the guest is automatically "
19096 "launched."
19097 msgstr ""
19098
19099 #. type: textblock
19100 #: ../fish/guestfish.pod:1020
19101 msgid "Create a 100MB disk with an ext4-formatted partition:"
19102 msgstr ""
19103
19104 #. type: verbatim
19105 #: ../fish/guestfish.pod:1022
19106 #, no-wrap
19107 msgid ""
19108 " guestfish -N fs:ext4\n"
19109 "\n"
19110 msgstr ""
19111
19112 #. type: textblock
19113 #: ../fish/guestfish.pod:1024
19114 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19115 msgstr ""
19116
19117 #. type: verbatim
19118 #: ../fish/guestfish.pod:1026
19119 #, no-wrap
19120 msgid ""
19121 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19122 "\n"
19123 msgstr ""
19124
19125 #. type: textblock
19126 #: ../fish/guestfish.pod:1028
19127 msgid "Create a blank 200MB disk:"
19128 msgstr ""
19129
19130 #. type: verbatim
19131 #: ../fish/guestfish.pod:1030
19132 #, no-wrap
19133 msgid ""
19134 " guestfish -N disk:200M\n"
19135 "\n"
19136 msgstr ""
19137
19138 #. type: =head1
19139 #: ../fish/guestfish.pod:1032
19140 msgid "PROGRESS BARS"
19141 msgstr ""
19142
19143 #. type: textblock
19144 #: ../fish/guestfish.pod:1034
19145 msgid ""
19146 "Some (not all) long-running commands send progress notification messages as "
19147 "they are running.  Guestfish turns these messages into progress bars."
19148 msgstr ""
19149
19150 #. type: textblock
19151 #: ../fish/guestfish.pod:1038
19152 msgid ""
19153 "When a command that supports progress bars takes longer than two seconds to "
19154 "run, and if progress bars are enabled, then you will see one appearing below "
19155 "the command:"
19156 msgstr ""
19157
19158 #. type: verbatim
19159 #: ../fish/guestfish.pod:1042
19160 #, no-wrap
19161 msgid ""
19162 " ><fs> copy-size /large-file /another-file 2048M\n"
19163 " / 10% [#####-----------------------------------------] 00:30\n"
19164 "\n"
19165 msgstr ""
19166
19167 #. type: textblock
19168 #: ../fish/guestfish.pod:1045
19169 msgid ""
19170 "The spinner on the left hand side moves round once for every progress "
19171 "notification received from the backend.  This is a (reasonably) golden "
19172 "assurance that the command is \"doing something\" even if the progress bar "
19173 "is not moving, because the command is able to send the progress "
19174 "notifications.  When the bar reaches 100% and the command finishes, the "
19175 "spinner disappears."
19176 msgstr ""
19177
19178 #. type: textblock
19179 #: ../fish/guestfish.pod:1052
19180 msgid ""
19181 "Progress bars are enabled by default when guestfish is used interactively.  "
19182 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19183 "and you can disable them completely using I<--no-progress-bars>."
19184 msgstr ""
19185
19186 #. type: =head1
19187 #: ../fish/guestfish.pod:1057
19188 msgid "GUESTFISH COMMANDS"
19189 msgstr ""
19190
19191 #. type: textblock
19192 #: ../fish/guestfish.pod:1059
19193 msgid ""
19194 "The commands in this section are guestfish convenience commands, in other "
19195 "words, they are not part of the L<guestfs(3)> API."
19196 msgstr ""
19197
19198 #. type: =head2
19199 #: ../fish/guestfish.pod:1062
19200 msgid "help"
19201 msgstr "help"
19202
19203 #. type: verbatim
19204 #: ../fish/guestfish.pod:1064
19205 #, no-wrap
19206 msgid ""
19207 " help\n"
19208 " help cmd\n"
19209 "\n"
19210 msgstr ""
19211 " help\n"
19212 " help команда\n"
19213 "\n"
19214
19215 #. type: textblock
19216 #: ../fish/guestfish.pod:1067
19217 msgid "Without any parameter, this provides general help."
19218 msgstr "Без параметра показує загальну довідкову інформацію."
19219
19220 #. type: textblock
19221 #: ../fish/guestfish.pod:1069
19222 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19223 msgstr ""
19224
19225 #. type: =head2
19226 #: ../fish/guestfish.pod:1071
19227 msgid "quit | exit"
19228 msgstr ""
19229
19230 #. type: textblock
19231 #: ../fish/guestfish.pod:1073
19232 msgid "This exits guestfish.  You can also use C<^D> key."
19233 msgstr ""
19234
19235 #. type: textblock
19236 #: ../fish/guestfish.pod:1075
19237 msgid "@FISH_COMMANDS@"
19238 msgstr ""
19239
19240 #. type: =head1
19241 #: ../fish/guestfish.pod:1077
19242 msgid "COMMANDS"
19243 msgstr "КОМАНДИ"
19244
19245 #. type: textblock
19246 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1475
19247 msgid "@ACTIONS@"
19248 msgstr "@ACTIONS@"
19249
19250 #. type: =head1
19251 #: ../fish/guestfish.pod:1081 ../test-tool/libguestfs-test-tool.pod:77
19252 msgid "EXIT CODE"
19253 msgstr "КОД ВИХОДУ"
19254
19255 #. type: textblock
19256 #: ../fish/guestfish.pod:1083
19257 msgid ""
19258 "guestfish returns 0 if the commands completed without error, or 1 if there "
19259 "was an error."
19260 msgstr ""
19261
19262 #. type: =item
19263 #: ../fish/guestfish.pod:1090
19264 msgid "EDITOR"
19265 msgstr "РЕДАКТОР"
19266
19267 #. type: textblock
19268 #: ../fish/guestfish.pod:1092
19269 msgid ""
19270 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19271 "C<vi>."
19272 msgstr ""
19273
19274 #. type: =item
19275 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:2985
19276 msgid "FEBOOTSTRAP_KERNEL"
19277 msgstr ""
19278
19279 #. type: =item
19280 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:2987
19281 msgid "FEBOOTSTRAP_MODULES"
19282 msgstr ""
19283
19284 #. type: textblock
19285 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:2989
19286 msgid ""
19287 "These two environment variables allow the kernel that libguestfs uses in the "
19288 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19289 "most recent host kernel is chosen.  For more information about kernel "
19290 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19291 "available in febootstrap E<ge> 3.8."
19292 msgstr ""
19293
19294 #. type: =item
19295 #: ../fish/guestfish.pod:1105
19296 msgid "GUESTFISH_DISPLAY_IMAGE"
19297 msgstr ""
19298
19299 #. type: textblock
19300 #: ../fish/guestfish.pod:1107
19301 msgid ""
19302 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19303 "If not set, it uses L<display(1)>."
19304 msgstr ""
19305
19306 #. type: =item
19307 #: ../fish/guestfish.pod:1110
19308 msgid "GUESTFISH_PID"
19309 msgstr ""
19310
19311 #. type: textblock
19312 #: ../fish/guestfish.pod:1112
19313 msgid ""
19314 "Used with the I<--remote> option to specify the remote guestfish process to "
19315 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19316 msgstr ""
19317
19318 #. type: =item
19319 #: ../fish/guestfish.pod:1116
19320 msgid "HEXEDITOR"
19321 msgstr ""
19322
19323 #. type: textblock
19324 #: ../fish/guestfish.pod:1118
19325 msgid ""
19326 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19327 "not specified, the external L<hexedit(1)> program is used."
19328 msgstr ""
19329
19330 #. type: =item
19331 #: ../fish/guestfish.pod:1122
19332 msgid "HOME"
19333 msgstr "ДОМІВКА"
19334
19335 #. type: textblock
19336 #: ../fish/guestfish.pod:1124
19337 msgid ""
19338 "If compiled with GNU readline support, various files in the home directory "
19339 "can be used.  See L</FILES>."
19340 msgstr ""
19341
19342 #. type: =item
19343 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:2995
19344 msgid "LIBGUESTFS_APPEND"
19345 msgstr ""
19346
19347 #. type: textblock
19348 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:2997
19349 msgid "Pass additional options to the guest kernel."
19350 msgstr ""
19351
19352 #. type: =item
19353 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:2999
19354 msgid "LIBGUESTFS_DEBUG"
19355 msgstr "LIBGUESTFS_DEBUG"
19356
19357 #. type: textblock
19358 #: ../fish/guestfish.pod:1133
19359 msgid ""
19360 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19361 "effect as using the B<-v> option."
19362 msgstr ""
19363
19364 #. type: =item
19365 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3004
19366 msgid "LIBGUESTFS_MEMSIZE"
19367 msgstr "LIBGUESTFS_MEMSIZE"
19368
19369 #. type: textblock
19370 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3006
19371 msgid ""
19372 "Set the memory allocated to the qemu process, in megabytes.  For example:"
19373 msgstr ""
19374
19375 #. type: verbatim
19376 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3009
19377 #, no-wrap
19378 msgid ""
19379 " LIBGUESTFS_MEMSIZE=700\n"
19380 "\n"
19381 msgstr ""
19382 " LIBGUESTFS_MEMSIZE=700\n"
19383 "\n"
19384
19385 #. type: =item
19386 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3011
19387 msgid "LIBGUESTFS_PATH"
19388 msgstr ""
19389
19390 #. type: textblock
19391 #: ../fish/guestfish.pod:1145
19392 msgid ""
19393 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19394 "the discussion of paths in L<guestfs(3)>."
19395 msgstr ""
19396
19397 #. type: =item
19398 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3016
19399 msgid "LIBGUESTFS_QEMU"
19400 msgstr ""
19401
19402 #. type: textblock
19403 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3018
19404 msgid ""
19405 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19406 "which was found at compile time by the configure script is used."
19407 msgstr ""
19408
19409 #. type: =item
19410 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3024
19411 msgid "LIBGUESTFS_TRACE"
19412 msgstr ""
19413
19414 #. type: textblock
19415 #: ../fish/guestfish.pod:1156
19416 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19417 msgstr ""
19418
19419 #. type: =item
19420 #: ../fish/guestfish.pod:1158
19421 msgid "PAGER"
19422 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19423
19424 #. type: textblock
19425 #: ../fish/guestfish.pod:1160
19426 msgid ""
19427 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19428 "C<more>."
19429 msgstr ""
19430
19431 #. type: =item
19432 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3029
19433 msgid "TMPDIR"
19434 msgstr ""
19435
19436 #. type: textblock
19437 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3031
19438 msgid ""
19439 "Location of temporary directory, defaults to C</tmp> except for the cached "
19440 "supermin appliance which defaults to C</var/tmp>."
19441 msgstr ""
19442
19443 #. type: textblock
19444 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3034
19445 msgid ""
19446 "If libguestfs was compiled to use the supermin appliance then the real "
19447 "appliance is cached in this directory, shared between all handles belonging "
19448 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19449 "use in case C</var/tmp> is not large enough."
19450 msgstr ""
19451
19452 #. type: =head1
19453 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19454 #: ../rescue/virt-rescue.pod:269
19455 msgid "FILES"
19456 msgstr "ФАЙЛИ"
19457
19458 #. type: =item
19459 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19460 #: ../rescue/virt-rescue.pod:273
19461 msgid "$HOME/.libguestfs-tools.rc"
19462 msgstr ""
19463
19464 #. type: =item
19465 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19466 #: ../rescue/virt-rescue.pod:275
19467 msgid "/etc/libguestfs-tools.conf"
19468 msgstr ""
19469
19470 #. type: textblock
19471 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19472 #: ../rescue/virt-rescue.pod:277
19473 msgid ""
19474 "This configuration file controls the default read-only or read-write mode "
19475 "(I<--ro> or I<--rw>)."
19476 msgstr ""
19477
19478 #. type: textblock
19479 #: ../fish/guestfish.pod:1187
19480 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19481 msgstr ""
19482
19483 #. type: =item
19484 #: ../fish/guestfish.pod:1189
19485 msgid "$HOME/.guestfish"
19486 msgstr ""
19487
19488 #. type: textblock
19489 #: ../fish/guestfish.pod:1191
19490 msgid ""
19491 "If compiled with GNU readline support, then the command history is saved in "
19492 "this file."
19493 msgstr ""
19494
19495 #. type: =item
19496 #: ../fish/guestfish.pod:1194
19497 msgid "$HOME/.inputrc"
19498 msgstr ""
19499
19500 #. type: =item
19501 #: ../fish/guestfish.pod:1196
19502 msgid "/etc/inputrc"
19503 msgstr ""
19504
19505 #. type: textblock
19506 #: ../fish/guestfish.pod:1198
19507 msgid ""
19508 "If compiled with GNU readline support, then these files can be used to "
19509 "configure readline.  For further information, please see L<readline(3)/"
19510 "INITIALIZATION FILE>."
19511 msgstr ""
19512
19513 #. type: textblock
19514 #: ../fish/guestfish.pod:1202
19515 msgid "To write rules which only apply to guestfish, use:"
19516 msgstr ""
19517
19518 #. type: verbatim
19519 #: ../fish/guestfish.pod:1204
19520 #, no-wrap
19521 msgid ""
19522 " $if guestfish\n"
19523 " ...\n"
19524 " $endif\n"
19525 "\n"
19526 msgstr ""
19527
19528 #. type: textblock
19529 #: ../fish/guestfish.pod:1208
19530 msgid ""
19531 "Variables that you can set in inputrc that change the behaviour of guestfish "
19532 "in useful ways include:"
19533 msgstr ""
19534
19535 #. type: =item
19536 #: ../fish/guestfish.pod:1213
19537 msgid "completion-ignore-case (default: on)"
19538 msgstr ""
19539
19540 #. type: textblock
19541 #: ../fish/guestfish.pod:1215
19542 msgid ""
19543 "By default, guestfish will ignore case when tab-completing paths on the "
19544 "disk.  Use:"
19545 msgstr ""
19546
19547 #. type: verbatim
19548 #: ../fish/guestfish.pod:1218
19549 #, no-wrap
19550 msgid ""
19551 " set completion-ignore-case off\n"
19552 "\n"
19553 msgstr ""
19554
19555 #. type: textblock
19556 #: ../fish/guestfish.pod:1220
19557 msgid "to make guestfish case sensitive."
19558 msgstr ""
19559
19560 #. type: =item
19561 #: ../fish/guestfish.pod:1224
19562 msgid "test1.img"
19563 msgstr ""
19564
19565 #. type: =item
19566 #: ../fish/guestfish.pod:1226
19567 msgid "test2.img (etc)"
19568 msgstr ""
19569
19570 #. type: textblock
19571 #: ../fish/guestfish.pod:1228
19572 msgid ""
19573 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19574 "will be created in the file C<test1.img> in the current directory.  The "
19575 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19576 "the same name will be overwritten."
19577 msgstr ""
19578
19579 #. type: textblock
19580 #: ../fish/guestfish.pod:1237
19581 msgid ""
19582 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19583 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19584 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19585 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19586 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19587 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19588 msgstr ""
19589
19590 #. type: textblock
19591 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3120
19592 #: ../test-tool/libguestfs-test-tool.pod:99
19593 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
19594 msgstr ""
19595
19596 #. type: textblock
19597 #: ../fish/virt-copy-in.pod:5
19598 msgid ""
19599 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19600 msgstr ""
19601
19602 #. type: verbatim
19603 #: ../fish/virt-copy-in.pod:9
19604 #, no-wrap
19605 msgid ""
19606 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19607 "\n"
19608 msgstr ""
19609
19610 #. type: verbatim
19611 #: ../fish/virt-copy-in.pod:11
19612 #, no-wrap
19613 msgid ""
19614 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19615 "\n"
19616 msgstr ""
19617
19618 #. type: textblock
19619 #: ../fish/virt-copy-in.pod:15
19620 msgid ""
19621 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19622 "causing disk corruption.  The virtual machine must be shut down before you "
19623 "use this command."
19624 msgstr ""
19625
19626 #. type: textblock
19627 #: ../fish/virt-copy-in.pod:21
19628 msgid ""
19629 "C<virt-copy-in> copies files and directories from the local disk into a "
19630 "virtual machine disk image or named libvirt domain."
19631 msgstr ""
19632
19633 #. type: textblock
19634 #: ../fish/virt-copy-in.pod:24
19635 msgid ""
19636 "You can give one of more filenames and directories on the command line.  "
19637 "Directories are copied in recursively.  The final parameter must be the "
19638 "destination directory in the disk image which must be an absolute path "
19639 "starting with a C</> character."
19640 msgstr ""
19641
19642 #. type: verbatim
19643 #: ../fish/virt-copy-in.pod:33
19644 #, no-wrap
19645 msgid ""
19646 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19647 "\n"
19648 msgstr ""
19649
19650 #. type: textblock
19651 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19652 msgid "Upload a home directory to a guest:"
19653 msgstr ""
19654
19655 #. type: verbatim
19656 #: ../fish/virt-copy-in.pod:37
19657 #, no-wrap
19658 msgid ""
19659 " virt-copy-in -d MyGuest skel /home\n"
19660 "\n"
19661 msgstr ""
19662
19663 #. type: =head1
19664 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19665 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19666 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19667 msgstr ""
19668
19669 #. type: textblock
19670 #: ../fish/virt-copy-in.pod:41
19671 msgid ""
19672 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19673 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
19674 "are probably better off using guestfish directly."
19675 msgstr ""
19676
19677 #. type: textblock
19678 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19679 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19680 msgid ""
19681 "Since the shell script just passes options straight to guestfish, read "
19682 "L<guestfish(1)> to see the full list of options."
19683 msgstr ""
19684
19685 #. type: textblock
19686 #: ../fish/virt-copy-in.pod:52
19687 #, fuzzy
19688 #| msgid ""
19689 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19690 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19691 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19692 #| "libguestfs.org/>."
19693 msgid ""
19694 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19695 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19696 msgstr ""
19697 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19698 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19699 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19700 "org/>."
19701
19702 #. type: textblock
19703 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19704 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19705 #, fuzzy
19706 #| msgid "Copyright (C) 2009 Red Hat Inc."
19707 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
19708 msgstr "© Red Hat Inc., 2009"
19709
19710 #. type: textblock
19711 #: ../fish/virt-copy-out.pod:5
19712 msgid ""
19713 "virt-copy-out - Copy files and directories out of a virtual machine disk "
19714 "image."
19715 msgstr ""
19716
19717 #. type: verbatim
19718 #: ../fish/virt-copy-out.pod:9
19719 #, no-wrap
19720 msgid ""
19721 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
19722 "\n"
19723 msgstr ""
19724
19725 #. type: verbatim
19726 #: ../fish/virt-copy-out.pod:11
19727 #, no-wrap
19728 msgid ""
19729 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
19730 "\n"
19731 msgstr ""
19732
19733 #. type: textblock
19734 #: ../fish/virt-copy-out.pod:15
19735 msgid ""
19736 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
19737 "image or named libvirt domain."
19738 msgstr ""
19739
19740 #. type: textblock
19741 #: ../fish/virt-copy-out.pod:18
19742 msgid ""
19743 "You can give one of more filenames and directories on the command line.  "
19744 "Directories are copied out recursively."
19745 msgstr ""
19746
19747 #. type: textblock
19748 #: ../fish/virt-copy-out.pod:23
19749 msgid "Download the home directories from a virtual machine:"
19750 msgstr ""
19751
19752 #. type: verbatim
19753 #: ../fish/virt-copy-out.pod:25
19754 #, no-wrap
19755 msgid ""
19756 " mkdir homes\n"
19757 " virt-copy-out -d MyGuest /home homes\n"
19758 "\n"
19759 msgstr ""
19760
19761 #. type: textblock
19762 #: ../fish/virt-copy-out.pod:30
19763 msgid ""
19764 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19765 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
19766 "are probably better off using guestfish directly."
19767 msgstr ""
19768
19769 #. type: textblock
19770 #: ../fish/virt-copy-out.pod:41
19771 #, fuzzy
19772 #| msgid ""
19773 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19774 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19775 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19776 #| "libguestfs.org/>."
19777 msgid ""
19778 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
19779 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19780 msgstr ""
19781 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19782 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19783 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19784 "org/>."
19785
19786 #. type: textblock
19787 #: ../fish/virt-tar-in.pod:5
19788 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
19789 msgstr ""
19790
19791 #. type: verbatim
19792 #: ../fish/virt-tar-in.pod:9
19793 #, no-wrap
19794 msgid ""
19795 " virt-tar-in -a disk.img data.tar /destination\n"
19796 "\n"
19797 msgstr ""
19798
19799 #. type: verbatim
19800 #: ../fish/virt-tar-in.pod:11
19801 #, no-wrap
19802 msgid ""
19803 " virt-tar-in -d domain data.tar /destination\n"
19804 "\n"
19805 msgstr ""
19806
19807 #. type: verbatim
19808 #: ../fish/virt-tar-in.pod:13
19809 #, no-wrap
19810 msgid ""
19811 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
19812 "\n"
19813 msgstr ""
19814
19815 #. type: textblock
19816 #: ../fish/virt-tar-in.pod:17
19817 msgid ""
19818 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
19819 "causing disk corruption.  The virtual machine must be shut down before you "
19820 "use this command."
19821 msgstr ""
19822
19823 #. type: textblock
19824 #: ../fish/virt-tar-in.pod:23
19825 msgid ""
19826 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
19827 "image or named libvirt domain."
19828 msgstr ""
19829
19830 #. type: textblock
19831 #: ../fish/virt-tar-in.pod:26
19832 msgid ""
19833 "The first parameter is the tar file.  Use C<-> to read the tar file from "
19834 "standard input.  The second parameter is the absolute target directory to "
19835 "unpack into."
19836 msgstr ""
19837
19838 #. type: verbatim
19839 #: ../fish/virt-tar-in.pod:34
19840 #, no-wrap
19841 msgid ""
19842 " virt-tar-in -d MyGuest homes.tar /home\n"
19843 "\n"
19844 msgstr ""
19845
19846 #. type: textblock
19847 #: ../fish/virt-tar-in.pod:38
19848 msgid ""
19849 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19850 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
19851 "probably better off using guestfish directly."
19852 msgstr ""
19853
19854 #. type: textblock
19855 #: ../fish/virt-tar-in.pod:49
19856 #, fuzzy
19857 #| msgid ""
19858 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19859 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19860 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19861 #| "libguestfs.org/>."
19862 msgid ""
19863 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19864 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
19865 "org/>."
19866 msgstr ""
19867 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19868 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19869 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19870 "org/>."
19871
19872 #. type: textblock
19873 #: ../fish/virt-tar-out.pod:5
19874 msgid ""
19875 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
19876 msgstr ""
19877
19878 #. type: verbatim
19879 #: ../fish/virt-tar-out.pod:9
19880 #, no-wrap
19881 msgid ""
19882 " virt-tar-out -a disk.img /dir files.tar\n"
19883 "\n"
19884 msgstr ""
19885
19886 #. type: verbatim
19887 #: ../fish/virt-tar-out.pod:11
19888 #, no-wrap
19889 msgid ""
19890 " virt-tar-out -d domain /dir files.tar\n"
19891 "\n"
19892 msgstr ""
19893
19894 #. type: verbatim
19895 #: ../fish/virt-tar-out.pod:13
19896 #, no-wrap
19897 msgid ""
19898 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
19899 "\n"
19900 msgstr ""
19901
19902 #. type: textblock
19903 #: ../fish/virt-tar-out.pod:17
19904 msgid ""
19905 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
19906 msgstr ""
19907
19908 #. type: textblock
19909 #: ../fish/virt-tar-out.pod:20
19910 msgid ""
19911 "The first parameter is the absolute path of the virtual machine directory.  "
19912 "The second parameter is the tar file to write.  Use C<-> to write to "
19913 "standard output."
19914 msgstr ""
19915
19916 #. type: textblock
19917 #: ../fish/virt-tar-out.pod:26
19918 msgid "Download the home directories from a guest:"
19919 msgstr ""
19920
19921 #. type: verbatim
19922 #: ../fish/virt-tar-out.pod:28
19923 #, no-wrap
19924 msgid ""
19925 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
19926 "\n"
19927 msgstr ""
19928
19929 #. type: textblock
19930 #: ../fish/virt-tar-out.pod:32
19931 msgid ""
19932 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19933 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
19934 "are probably better off using guestfish directly."
19935 msgstr ""
19936
19937 #. type: textblock
19938 #: ../fish/virt-tar-out.pod:43
19939 #, fuzzy
19940 #| msgid ""
19941 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19942 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19943 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19944 #| "libguestfs.org/>."
19945 msgid ""
19946 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
19947 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
19948 msgstr ""
19949 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19950 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19951 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19952 "org/>."
19953
19954 #. type: textblock
19955 #: ../fuse/guestmount.pod:5
19956 msgid ""
19957 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
19958 msgstr ""
19959
19960 #. type: verbatim
19961 #: ../fuse/guestmount.pod:9
19962 #, no-wrap
19963 msgid ""
19964 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
19965 "\n"
19966 msgstr ""
19967
19968 #. type: verbatim
19969 #: ../fuse/guestmount.pod:11
19970 #, no-wrap
19971 msgid ""
19972 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
19973 "\n"
19974 msgstr ""
19975
19976 #. type: verbatim
19977 #: ../fuse/guestmount.pod:13
19978 #, no-wrap
19979 msgid ""
19980 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
19981 "\n"
19982 msgstr ""
19983
19984 #. type: textblock
19985 #: ../fuse/guestmount.pod:17
19986 msgid ""
19987 "You must I<not> use C<guestmount> in read-write mode on live virtual "
19988 "machines.  If you do this, you risk disk corruption in the VM."
19989 msgstr ""
19990
19991 #. type: textblock
19992 #: ../fuse/guestmount.pod:22
19993 msgid ""
19994 "The guestmount program can be used to mount virtual machine filesystems and "
19995 "other disk images on the host.  It uses libguestfs for access to the guest "
19996 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
19997 "a mountable device."
19998 msgstr ""
19999
20000 #. type: textblock
20001 #: ../fuse/guestmount.pod:27
20002 msgid ""
20003 "Along with other options, you have to give at least one device (I<-a> "
20004 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20005 "option) or use the I<-i> inspection option.  How this works is better "
20006 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20007 "below."
20008 msgstr ""
20009
20010 #. type: textblock
20011 #: ../fuse/guestmount.pod:33
20012 msgid ""
20013 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20014 "by you, and the filesystem will not be visible to any other users unless you "
20015 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20016 "the filesystem, use the C<fusermount -u> command."
20017 msgstr ""
20018
20019 #. type: textblock
20020 #: ../fuse/guestmount.pod:41
20021 msgid ""
20022 "For a typical Windows guest which has its main filesystem on the first "
20023 "partition:"
20024 msgstr ""
20025
20026 #. type: verbatim
20027 #: ../fuse/guestmount.pod:44
20028 #, no-wrap
20029 msgid ""
20030 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20031 "\n"
20032 msgstr ""
20033
20034 #. type: textblock
20035 #: ../fuse/guestmount.pod:46
20036 msgid ""
20037 "For a typical Linux guest which has a /boot filesystem on the first "
20038 "partition, and the root filesystem on a logical volume:"
20039 msgstr ""
20040
20041 #. type: verbatim
20042 #: ../fuse/guestmount.pod:49
20043 #, no-wrap
20044 msgid ""
20045 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20046 "\n"
20047 msgstr ""
20048
20049 #. type: textblock
20050 #: ../fuse/guestmount.pod:51
20051 msgid "To get libguestfs to detect guest mountpoints for you:"
20052 msgstr ""
20053
20054 #. type: verbatim
20055 #: ../fuse/guestmount.pod:53
20056 #, no-wrap
20057 msgid ""
20058 " guestmount -a guest.img -i --ro /mnt\n"
20059 "\n"
20060 msgstr ""
20061
20062 #. type: textblock
20063 #: ../fuse/guestmount.pod:55
20064 msgid "For a libvirt guest called \"Guest\" you could do:"
20065 msgstr ""
20066
20067 #. type: verbatim
20068 #: ../fuse/guestmount.pod:57
20069 #, no-wrap
20070 msgid ""
20071 " guestmount -d Guest -i --ro /mnt\n"
20072 "\n"
20073 msgstr ""
20074
20075 #. type: textblock
20076 #: ../fuse/guestmount.pod:59
20077 msgid ""
20078 "If you don't know what filesystems are contained in a guest or disk image, "
20079 "use L<virt-filesystems(1)> first:"
20080 msgstr ""
20081
20082 #. type: verbatim
20083 #: ../fuse/guestmount.pod:62
20084 #, no-wrap
20085 msgid ""
20086 " virt-filesystems MyGuest\n"
20087 "\n"
20088 msgstr ""
20089
20090 #. type: textblock
20091 #: ../fuse/guestmount.pod:64
20092 msgid ""
20093 "If you want to trace the libguestfs calls but without excessive debugging "
20094 "information, we recommend:"
20095 msgstr ""
20096
20097 #. type: verbatim
20098 #: ../fuse/guestmount.pod:67
20099 #, no-wrap
20100 msgid ""
20101 " guestmount [...] --trace /mnt\n"
20102 "\n"
20103 msgstr ""
20104
20105 #. type: textblock
20106 #: ../fuse/guestmount.pod:69
20107 msgid "If you want to debug the program, we recommend:"
20108 msgstr ""
20109
20110 #. type: verbatim
20111 #: ../fuse/guestmount.pod:71
20112 #, no-wrap
20113 msgid ""
20114 " guestmount [...] --trace --verbose /mnt\n"
20115 "\n"
20116 msgstr ""
20117
20118 #. type: =head1
20119 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20120 #: ../resize/virt-resize.pod:544
20121 msgid "NOTES"
20122 msgstr "ПРИМІТКИ"
20123
20124 #. type: =head2
20125 #: ../fuse/guestmount.pod:75
20126 msgid "Other users cannot see the filesystem by default"
20127 msgstr ""
20128
20129 #. type: textblock
20130 #: ../fuse/guestmount.pod:77
20131 msgid ""
20132 "If you mount a filesystem as one user (eg. root), then other users will not "
20133 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20134 "option when mounting:"
20135 msgstr ""
20136
20137 #. type: verbatim
20138 #: ../fuse/guestmount.pod:81
20139 #, no-wrap
20140 msgid ""
20141 " sudo guestmount [...] -o allow_other /mnt\n"
20142 "\n"
20143 msgstr ""
20144
20145 #. type: textblock
20146 #: ../fuse/guestmount.pod:91
20147 msgid "Add a block device or virtual machine image."
20148 msgstr ""
20149
20150 #. type: =item
20151 #: ../fuse/guestmount.pod:114
20152 msgid "B<--dir-cache-timeout N>"
20153 msgstr "B<--dir-cache-timeout N>"
20154
20155 #. type: textblock
20156 #: ../fuse/guestmount.pod:116
20157 msgid ""
20158 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20159 "seconds.  The readdir cache [actually, there are several semi-independent "
20160 "caches] is populated after a readdir(2) call with the stat and extended "
20161 "attributes of the files in the directory, in anticipation that they will be "
20162 "requested soon after."
20163 msgstr ""
20164
20165 #. type: textblock
20166 #: ../fuse/guestmount.pod:122
20167 msgid ""
20168 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20169 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20170 "requests, only cache existing ones."
20171 msgstr ""
20172
20173 #. type: textblock
20174 #: ../fuse/guestmount.pod:142
20175 msgid ""
20176 "If you have untrusted raw-format guest disk images, you should use this "
20177 "option to specify the disk format.  This avoids a possible security problem "
20178 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
20179 "guestfs_add_drive_opts>."
20180 msgstr ""
20181
20182 #. type: =item
20183 #: ../fuse/guestmount.pod:147
20184 msgid "B<--fuse-help>"
20185 msgstr "B<--fuse-help>"
20186
20187 #. type: textblock
20188 #: ../fuse/guestmount.pod:149
20189 msgid "Display help on special FUSE options (see I<-o> below)."
20190 msgstr ""
20191
20192 #. type: textblock
20193 #: ../fuse/guestmount.pod:153
20194 msgid "Display brief help and exit."
20195 msgstr ""
20196
20197 #. type: textblock
20198 #: ../fuse/guestmount.pod:177
20199 msgid ""
20200 "Mount the named partition or logical volume on the given mountpoint B<in the "
20201 "guest> (this has nothing to do with mountpoints in the host)."
20202 msgstr ""
20203
20204 #. type: textblock
20205 #: ../fuse/guestmount.pod:180
20206 msgid ""
20207 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20208 "something on C</>."
20209 msgstr ""
20210
20211 #. type: textblock
20212 #: ../fuse/guestmount.pod:197
20213 msgid ""
20214 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20215 "unmounted.  If you specify this option, then we don't attempt to sync the "
20216 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20217 msgstr ""
20218
20219 #. type: =item
20220 #: ../fuse/guestmount.pod:202
20221 #, fuzzy
20222 #| msgid "B<--partition>"
20223 msgid "B<-o option>"
20224 msgstr "B<--partition>"
20225
20226 #. type: =item
20227 #: ../fuse/guestmount.pod:204
20228 #, fuzzy
20229 #| msgid "B<--partition>"
20230 msgid "B<--option option>"
20231 msgstr "B<--partition>"
20232
20233 #. type: textblock
20234 #: ../fuse/guestmount.pod:206
20235 msgid "Pass extra options to FUSE."
20236 msgstr ""
20237
20238 #. type: textblock
20239 #: ../fuse/guestmount.pod:208
20240 msgid ""
20241 "To get a list of all the extra options supported by FUSE, use the command "
20242 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20243 "of them are a good idea."
20244 msgstr ""
20245
20246 #. type: verbatim
20247 #: ../fuse/guestmount.pod:212
20248 #, no-wrap
20249 msgid ""
20250 " guestmount --fuse-help\n"
20251 "\n"
20252 msgstr ""
20253
20254 #. type: textblock
20255 #: ../fuse/guestmount.pod:214
20256 msgid "Some potentially useful FUSE options:"
20257 msgstr ""
20258
20259 #. type: =item
20260 #: ../fuse/guestmount.pod:218
20261 msgid "B<-o allow_other>"
20262 msgstr ""
20263
20264 #. type: textblock
20265 #: ../fuse/guestmount.pod:220
20266 msgid "Allow other users to see the filesystem."
20267 msgstr ""
20268
20269 #. type: =item
20270 #: ../fuse/guestmount.pod:222
20271 msgid "B<-o attr_timeout=N>"
20272 msgstr "B<-o attr_timeout=N>"
20273
20274 #. type: textblock
20275 #: ../fuse/guestmount.pod:224
20276 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20277 msgstr ""
20278
20279 #. type: =item
20280 #: ../fuse/guestmount.pod:226
20281 msgid "B<-o kernel_cache>"
20282 msgstr ""
20283
20284 #. type: textblock
20285 #: ../fuse/guestmount.pod:228
20286 msgid ""
20287 "Allow the kernel to cache files (reduces the number of reads that have to go "
20288 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20289 "afford the extra memory usage."
20290 msgstr ""
20291
20292 #. type: =item
20293 #: ../fuse/guestmount.pod:232
20294 msgid "B<-o uid=N> B<-o gid=N>"
20295 msgstr ""
20296
20297 #. type: textblock
20298 #: ../fuse/guestmount.pod:234
20299 msgid ""
20300 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20301 "the chosen values."
20302 msgstr ""
20303
20304 #. type: textblock
20305 #: ../fuse/guestmount.pod:243
20306 msgid ""
20307 "Add devices and mount everything read-only.  Also disallow writes and make "
20308 "the disk appear read-only to FUSE."
20309 msgstr ""
20310
20311 #. type: textblock
20312 #: ../fuse/guestmount.pod:246
20313 msgid ""
20314 "This is highly recommended if you are not going to edit the guest disk.  If "
20315 "the guest is running and this option is I<not> supplied, then there is a "
20316 "strong risk of disk corruption in the guest.  We try to prevent this from "
20317 "happening, but it is not always possible."
20318 msgstr ""
20319
20320 #. type: textblock
20321 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20322 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20323 msgstr ""
20324
20325 #. type: textblock
20326 #: ../fuse/guestmount.pod:255
20327 msgid "Enable SELinux support for the guest."
20328 msgstr ""
20329
20330 #. type: textblock
20331 #: ../fuse/guestmount.pod:261
20332 msgid "Enable verbose messages from underlying libguestfs."
20333 msgstr ""
20334
20335 #. type: textblock
20336 #: ../fuse/guestmount.pod:267
20337 msgid "Display the program version and exit."
20338 msgstr ""
20339
20340 #. type: textblock
20341 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20342 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
20343 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20344 msgstr ""
20345
20346 #. type: =item
20347 #: ../fuse/guestmount.pod:280
20348 #, fuzzy
20349 #| msgid "B<--ro>"
20350 msgid "B<--trace>"
20351 msgstr "B<--ro>"
20352
20353 #. type: textblock
20354 #: ../fuse/guestmount.pod:282
20355 msgid "Trace libguestfs calls and entry into each FUSE function."
20356 msgstr ""
20357
20358 #. type: textblock
20359 #: ../fuse/guestmount.pod:284
20360 msgid "This also stops the daemon from forking into the background."
20361 msgstr ""
20362
20363 #. type: textblock
20364 #: ../fuse/guestmount.pod:305
20365 msgid ""
20366 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20367 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20368 "net/>."
20369 msgstr ""
20370
20371 #. type: textblock
20372 #: ../fuse/guestmount.pod:320
20373 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20374 msgstr ""
20375
20376 #. type: textblock
20377 #: ../inspector/virt-inspector.pod:5
20378 msgid ""
20379 "virt-inspector - Display operating system version and other information "
20380 "about a virtual machine"
20381 msgstr ""
20382
20383 #. type: verbatim
20384 #: ../inspector/virt-inspector.pod:9
20385 #, fuzzy, no-wrap
20386 #| msgid ""
20387 #| " virt-list-partitions [--options] domname\n"
20388 #| "\n"
20389 msgid ""
20390 " virt-inspector [--options] -d domname\n"
20391 "\n"
20392 msgstr ""
20393 " virt-list-partitions [--параметри] назва_домену\n"
20394 "\n"
20395
20396 #. type: verbatim
20397 #: ../inspector/virt-inspector.pod:11
20398 #, fuzzy, no-wrap
20399 #| msgid ""
20400 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20401 #| "\n"
20402 msgid ""
20403 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20404 "\n"
20405 msgstr ""
20406 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20407 "\n"
20408
20409 #. type: verbatim
20410 #: ../inspector/virt-inspector.pod:15
20411 #, fuzzy, no-wrap
20412 #| msgid ""
20413 #| " virt-list-partitions [--options] domname\n"
20414 #| "\n"
20415 msgid ""
20416 " virt-inspector domname\n"
20417 "\n"
20418 msgstr ""
20419 " virt-list-partitions [--параметри] назва_домену\n"
20420 "\n"
20421
20422 #. type: verbatim
20423 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20424 #, fuzzy, no-wrap
20425 #| msgid ""
20426 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20427 #| "\n"
20428 msgid ""
20429 " virt-inspector disk.img [disk.img ...]\n"
20430 "\n"
20431 msgstr ""
20432 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20433 "\n"
20434
20435 #. type: textblock
20436 #: ../inspector/virt-inspector.pod:21
20437 msgid ""
20438 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20439 "determine the version of the operating system and other information about "
20440 "the virtual machine."
20441 msgstr ""
20442
20443 #. type: textblock
20444 #: ../inspector/virt-inspector.pod:25
20445 msgid "Virt-inspector produces XML output for feeding into other programs."
20446 msgstr ""
20447
20448 #. type: textblock
20449 #: ../inspector/virt-inspector.pod:27
20450 msgid ""
20451 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20452 "the libvirt domain (see: C<virsh list --all>)."
20453 msgstr ""
20454
20455 #. type: textblock
20456 #: ../inspector/virt-inspector.pod:30
20457 msgid ""
20458 "You can also run virt-inspector directly on disk images from a single "
20459 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20460 "has several block devices, in which case you should list several I<-a> "
20461 "options one after another, with the first corresponding to the guest's C</"
20462 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20463 msgstr ""
20464
20465 #. type: textblock
20466 #: ../inspector/virt-inspector.pod:37
20467 msgid ""
20468 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20469 "keys and similar."
20470 msgstr ""
20471
20472 #. type: textblock
20473 #: ../inspector/virt-inspector.pod:40
20474 msgid ""
20475 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20476 "inspect several virtual machines, you have to run virt-inspector several "
20477 "times (for example, from a shell script for-loop)."
20478 msgstr ""
20479
20480 #. type: textblock
20481 #: ../inspector/virt-inspector.pod:45
20482 msgid ""
20483 "Because virt-inspector needs direct access to guest images, it won't "
20484 "normally work over remote libvirt connections."
20485 msgstr ""
20486
20487 #. type: textblock
20488 #: ../inspector/virt-inspector.pod:48
20489 msgid ""
20490 "All of the information available from virt-inspector is also available "
20491 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20492 "The same information can also be fetched using guestfish or via libguestfs "
20493 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20494 "WITH OTHER PROGRAMMING LANGUAGES>)."
20495 msgstr ""
20496
20497 #. type: textblock
20498 #: ../inspector/virt-inspector.pod:81
20499 msgid ""
20500 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20501 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20502 "at all."
20503 msgstr ""
20504
20505 #. type: textblock
20506 #: ../inspector/virt-inspector.pod:94
20507 msgid ""
20508 "When prompting for keys and passphrases, virt-inspector normally turns "
20509 "echoing off so you cannot see what you are typing.  If you are not worried "
20510 "about Tempest attacks and there is no one else in the room you can specify "
20511 "this flag to see what you are typing."
20512 msgstr ""
20513
20514 #. type: textblock
20515 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20516 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20517 #: ../tools/virt-win-reg.pl:144
20518 msgid ""
20519 "Specify the format of disk images given on the command line.  If this is "
20520 "omitted then the format is autodetected from the content of the disk image."
20521 msgstr ""
20522
20523 #. type: textblock
20524 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20525 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20526 #: ../tools/virt-win-reg.pl:148
20527 msgid ""
20528 "If disk images are requested from libvirt, then this program asks libvirt "
20529 "for this information.  In this case, the value of the format parameter is "
20530 "ignored."
20531 msgstr ""
20532
20533 #. type: textblock
20534 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20535 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
20536 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20537 #: ../tools/virt-win-reg.pl:152
20538 msgid ""
20539 "If working with untrusted raw-format guest disk images, you should ensure "
20540 "the format is always specified."
20541 msgstr ""
20542
20543 #. type: textblock
20544 #: ../inspector/virt-inspector.pod:139
20545 msgid "Previous versions of virt-inspector allowed you to write either:"
20546 msgstr ""
20547
20548 #. type: verbatim
20549 #: ../inspector/virt-inspector.pod:145
20550 #, fuzzy, no-wrap
20551 #| msgid ""
20552 #| " inspect-get-hostname root\n"
20553 #| "\n"
20554 msgid ""
20555 " virt-inspector guestname\n"
20556 "\n"
20557 msgstr ""
20558 " inspect-get-hostname корінь\n"
20559 "\n"
20560
20561 #. type: =head1
20562 #: ../inspector/virt-inspector.pod:153
20563 msgid "XML FORMAT"
20564 msgstr ""
20565
20566 #. type: textblock
20567 #: ../inspector/virt-inspector.pod:155
20568 msgid ""
20569 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20570 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
20571 "just an overview."
20572 msgstr ""
20573
20574 #. type: textblock
20575 #: ../inspector/virt-inspector.pod:159
20576 msgid ""
20577 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20578 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
20579 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20580 "which is vanishingly rare in real world VMs."
20581 msgstr ""
20582
20583 #. type: =head2
20584 #: ../inspector/virt-inspector.pod:164
20585 msgid "E<lt>operatingsystemE<gt>"
20586 msgstr ""
20587
20588 #. type: textblock
20589 #: ../inspector/virt-inspector.pod:166
20590 msgid ""
20591 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20592 "describe the operating system, its architecture, the descriptive \"product "
20593 "name\" string, the type of OS and so on, as in this example:"
20594 msgstr ""
20595
20596 #. type: verbatim
20597 #: ../inspector/virt-inspector.pod:170
20598 #, no-wrap
20599 msgid ""
20600 " <operatingsystems>\n"
20601 "   <operatingsystem>\n"
20602 "     <root>/dev/sda2</root>\n"
20603 "     <name>windows</name>\n"
20604 "     <arch>i386</arch>\n"
20605 "     <distro>windows</distro>\n"
20606 "     <product_name>Windows 7 Enterprise</product_name>\n"
20607 "     <product_variant>Client</product_variant>\n"
20608 "     <major_version>6</major_version>\n"
20609 "     <minor_version>1</minor_version>\n"
20610 "     <windows_systemroot>/Windows</windows_systemroot>\n"
20611 "     <format>installed</format>\n"
20612 "\n"
20613 msgstr ""
20614
20615 #. type: textblock
20616 #: ../inspector/virt-inspector.pod:183
20617 msgid ""
20618 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20619 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20620 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20621 "architecture.  The other fields are fairly self-explanatory, but because "
20622 "these fields are taken directly from the libguestfs inspection API you can "
20623 "find precise information from L<guestfs(3)/INSPECTION>."
20624 msgstr ""
20625
20626 #. type: textblock
20627 #: ../inspector/virt-inspector.pod:191
20628 msgid ""
20629 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20630 "of view of libguestfs (block devices may have completely different names "
20631 "inside the VM itself)."
20632 msgstr ""
20633
20634 #. type: =head2
20635 #: ../inspector/virt-inspector.pod:195
20636 #, fuzzy
20637 #| msgid "mountpoints"
20638 msgid "E<lt>mountpointsE<gt>"
20639 msgstr "mountpoints"
20640
20641 #. type: textblock
20642 #: ../inspector/virt-inspector.pod:197
20643 msgid ""
20644 "Un*x-like guests typically have multiple filesystems which are mounted at "
20645 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20646 "element which looks like this:"
20647 msgstr ""
20648
20649 #. type: verbatim
20650 #: ../inspector/virt-inspector.pod:201
20651 #, no-wrap
20652 msgid ""
20653 " <operatingsystems>\n"
20654 "   <operatingsystem>\n"
20655 "     ...\n"
20656 "     <mountpoints>\n"
20657 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20658 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20659 "     </mountpoints>\n"
20660 "\n"
20661 msgstr ""
20662
20663 #. type: textblock
20664 #: ../inspector/virt-inspector.pod:209
20665 msgid ""
20666 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20667 "and may have completely different names inside the guest.  Only mountable "
20668 "filesystems appear in this list, not things like swap devices."
20669 msgstr ""
20670
20671 #. type: =head2
20672 #: ../inspector/virt-inspector.pod:214
20673 #, fuzzy
20674 #| msgid "list-filesystems"
20675 msgid "E<lt>filesystemsE<gt>"
20676 msgstr "list-filesystems"
20677
20678 #. type: textblock
20679 #: ../inspector/virt-inspector.pod:216
20680 msgid ""
20681 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20682 "filesystems belonging to the guest, including swap and empty partitions.  "
20683 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20684 "this OS or shared with this OS and other OSes)."
20685 msgstr ""
20686
20687 #. type: textblock
20688 #: ../inspector/virt-inspector.pod:222
20689 msgid "You might see something like this:"
20690 msgstr ""
20691
20692 #. type: verbatim
20693 #: ../inspector/virt-inspector.pod:224
20694 #, no-wrap
20695 msgid ""
20696 " <operatingsystems>\n"
20697 "   <operatingsystem>\n"
20698 "     ...\n"
20699 "     <filesystems>\n"
20700 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20701 "         <type>ext4</type>\n"
20702 "         <label>Fedora-13-x86_64</label>\n"
20703 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20704 "       </filesystem>\n"
20705 "\n"
20706 msgstr ""
20707
20708 #. type: textblock
20709 #: ../inspector/virt-inspector.pod:234
20710 msgid ""
20711 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
20712 "the label, and the UUID."
20713 msgstr ""
20714
20715 #. type: =head2
20716 #: ../inspector/virt-inspector.pod:237
20717 msgid "E<lt>applicationsE<gt>"
20718 msgstr ""
20719
20720 #. type: textblock
20721 #: ../inspector/virt-inspector.pod:239
20722 msgid ""
20723 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
20724 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
20725 "machine."
20726 msgstr ""
20727
20728 #. type: textblock
20729 #: ../inspector/virt-inspector.pod:243
20730 msgid ""
20731 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
20732 "Typical values would be C<rpm> and C<deb>."
20733 msgstr ""
20734
20735 #. type: textblock
20736 #: ../inspector/virt-inspector.pod:246
20737 msgid ""
20738 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
20739 "Typical values include C<yum>, C<up2date> and C<apt>"
20740 msgstr ""
20741
20742 #. type: textblock
20743 #: ../inspector/virt-inspector.pod:249
20744 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
20745 msgstr ""
20746
20747 #. type: verbatim
20748 #: ../inspector/virt-inspector.pod:252
20749 #, no-wrap
20750 msgid ""
20751 " <operatingsystems>\n"
20752 "   <operatingsystem>\n"
20753 "     ...\n"
20754 "     <applications>\n"
20755 "       <application>\n"
20756 "         <name>coreutils</name>\n"
20757 "         <version>8.5</version>\n"
20758 "         <release>1</release>\n"
20759 "       </application>\n"
20760 "\n"
20761 msgstr ""
20762
20763 #. type: textblock
20764 #: ../inspector/virt-inspector.pod:262
20765 msgid ""
20766 "The version and release fields may not be available for some types guests.  "
20767 "Other fields are possible, see L<guestfs(3)/"
20768 "guestfs_inspect_list_applications>."
20769 msgstr ""
20770
20771 #. type: =head2
20772 #: ../inspector/virt-inspector.pod:266
20773 msgid "E<lt>drive_mappingsE<gt>"
20774 msgstr ""
20775
20776 #. type: textblock
20777 #: ../inspector/virt-inspector.pod:268
20778 msgid ""
20779 "For operating systems like Windows which use drive letters, virt-inspector "
20780 "is able to find out how drive letters map to filesystems."
20781 msgstr ""
20782
20783 #. type: verbatim
20784 #: ../inspector/virt-inspector.pod:272
20785 #, no-wrap
20786 msgid ""
20787 " <operatingsystems>\n"
20788 "   <operatingsystem>\n"
20789 "     ...\n"
20790 "     <drive_mappings>\n"
20791 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
20792 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
20793 "     </drive_mappings>\n"
20794 "\n"
20795 msgstr ""
20796
20797 #. type: textblock
20798 #: ../inspector/virt-inspector.pod:280
20799 msgid ""
20800 "In the example above, drive C maps to the filesystem on the second partition "
20801 "on the first disk, and drive E maps to the filesystem on the first partition "
20802 "on the second disk."
20803 msgstr ""
20804
20805 #. type: textblock
20806 #: ../inspector/virt-inspector.pod:284
20807 msgid ""
20808 "Note that this only covers permanent local filesystem mappings, not things "
20809 "like network shares.  Furthermore NTFS volume mount points may not be listed "
20810 "here."
20811 msgstr ""
20812
20813 #. type: =head2
20814 #: ../inspector/virt-inspector.pod:288
20815 #, fuzzy
20816 #| msgid "B<-s E<lt>NE<gt>>"
20817 msgid "E<lt>iconE<gt>"
20818 msgstr "B<-s E<lt>NE<gt>>"
20819
20820 #. type: textblock
20821 #: ../inspector/virt-inspector.pod:290
20822 msgid ""
20823 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
20824 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
20825 "very large and high quality."
20826 msgstr ""
20827
20828 #. type: verbatim
20829 #: ../inspector/virt-inspector.pod:294
20830 #, no-wrap
20831 msgid ""
20832 " <operatingsystems>\n"
20833 "   <operatingsystem>\n"
20834 "     ...\n"
20835 "     <icon>\n"
20836 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
20837 "       [... many lines of base64 data ...]\n"
20838 "     </icon>\n"
20839 "\n"
20840 msgstr ""
20841
20842 #. type: textblock
20843 #: ../inspector/virt-inspector.pod:302
20844 msgid ""
20845 "To display the icon, you have to extract it and convert the base64 data back "
20846 "to a binary file.  Use an XPath query or simply an editor to extract the "
20847 "data, then use the coreutils L<base64(1)> program to do the conversion back "
20848 "to a PNG file:"
20849 msgstr ""
20850
20851 #. type: verbatim
20852 #: ../inspector/virt-inspector.pod:307
20853 #, no-wrap
20854 msgid ""
20855 " base64 -i -d < icon.data > icon.png\n"
20856 "\n"
20857 msgstr ""
20858
20859 #. type: =head2
20860 #: ../inspector/virt-inspector.pod:309
20861 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
20862 msgstr ""
20863
20864 #. type: textblock
20865 #: ../inspector/virt-inspector.pod:311
20866 msgid ""
20867 "Virt-inspector can detect some operating system installers on install disks, "
20868 "live CDs, bootable USB keys and more."
20869 msgstr ""
20870
20871 #. type: textblock
20872 #: ../inspector/virt-inspector.pod:314
20873 msgid ""
20874 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
20875 "fields may be present to indicate a live CD, network installer, or one part "
20876 "of a multipart CD.  For example:"
20877 msgstr ""
20878
20879 #. type: verbatim
20880 #: ../inspector/virt-inspector.pod:318
20881 #, no-wrap
20882 msgid ""
20883 " <operatingsystems>\n"
20884 "   <operatingsystem>\n"
20885 "     <root>/dev/sda</root>\n"
20886 "     <name>linux</name>\n"
20887 "     <arch>i386</arch>\n"
20888 "     <distro>ubuntu</distro>\n"
20889 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
20890 "     <major_version>10</major_version>\n"
20891 "     <minor_version>10</minor_version>\n"
20892 "     <format>installer</format>\n"
20893 "     <live/>\n"
20894 "\n"
20895 msgstr ""
20896
20897 #. type: =head1
20898 #: ../inspector/virt-inspector.pod:330
20899 msgid "USING XPATH"
20900 msgstr ""
20901
20902 #. type: textblock
20903 #: ../inspector/virt-inspector.pod:332
20904 msgid ""
20905 "You can use the XPath query language, and/or the xpath tool, in order to "
20906 "select parts of the XML."
20907 msgstr ""
20908
20909 #. type: verbatim
20910 #: ../inspector/virt-inspector.pod:337
20911 #, no-wrap
20912 msgid ""
20913 " $ virt-inspector -d Guest | xpath //filesystems\n"
20914 " Found 1 nodes:\n"
20915 " -- NODE --\n"
20916 " <filesystems>\n"
20917 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20918 "        <type>ext4</type>\n"
20919 " [etc]\n"
20920 "\n"
20921 msgstr ""
20922
20923 #. type: verbatim
20924 #: ../inspector/virt-inspector.pod:345
20925 #, no-wrap
20926 msgid ""
20927 " $ virt-inspector -d Guest | \\\n"
20928 "     xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
20929 " Query didn't return a nodeset. Value: ext4\n"
20930 "\n"
20931 msgstr ""
20932
20933 #. type: =head1
20934 #: ../inspector/virt-inspector.pod:356
20935 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
20936 msgstr ""
20937
20938 #. type: textblock
20939 #: ../inspector/virt-inspector.pod:358
20940 msgid ""
20941 "Early versions of libguestfs shipped with a different virt-inspector program "
20942 "written in Perl (the current version is written in C).  The XML output of "
20943 "the Perl virt-inspector was different and it could also output in other "
20944 "formats like text."
20945 msgstr ""
20946
20947 #. type: textblock
20948 #: ../inspector/virt-inspector.pod:363
20949 msgid ""
20950 "The old virt-inspector is no longer supported or shipped with libguestfs."
20951 msgstr ""
20952
20953 #. type: textblock
20954 #: ../inspector/virt-inspector.pod:366
20955 msgid ""
20956 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
20957 "versions of virt-inspector with different names:"
20958 msgstr ""
20959
20960 #. type: verbatim
20961 #: ../inspector/virt-inspector.pod:369
20962 #, no-wrap
20963 msgid ""
20964 " virt-inspector     Old Perl version.\n"
20965 " virt-inspector2    New C version.\n"
20966 "\n"
20967 msgstr ""
20968
20969 #. type: textblock
20970 #: ../inspector/virt-inspector.pod:374
20971 msgid ""
20972 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
20973 ">, L<http://libguestfs.org/>."
20974 msgstr ""
20975
20976 #. type: textblock
20977 #: ../inspector/virt-inspector.pod:390
20978 msgid "Matthew Booth L<mbooth@redhat.com>"
20979 msgstr ""
20980
20981 #. type: textblock
20982 #: ../java/examples/guestfs-java.pod:5
20983 msgid "guestfs-java - How to use libguestfs from Java"
20984 msgstr ""
20985
20986 #. type: verbatim
20987 #: ../java/examples/guestfs-java.pod:9
20988 #, no-wrap
20989 msgid ""
20990 " import com.redhat.et.libguestfs.*;\n"
20991 " \n"
20992 msgstr ""
20993
20994 #. type: verbatim
20995 #: ../java/examples/guestfs-java.pod:11
20996 #, no-wrap
20997 msgid ""
20998 " GuestFS g = new GuestFS ();\n"
20999 " g.add_drive_opts (\"disk.img\", null);\n"
21000 " g.launch ();\n"
21001 "\n"
21002 msgstr ""
21003
21004 #. type: textblock
21005 #: ../java/examples/guestfs-java.pod:17
21006 msgid ""
21007 "This manual page documents how to call libguestfs from the Java programming "
21008 "language.  This page just documents the differences from the C API and gives "
21009 "some examples.  If you are not familiar with using libguestfs, you also need "
21010 "to read L<guestfs(3)>."
21011 msgstr ""
21012
21013 #. type: =head2
21014 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21015 msgid "CLOSING THE HANDLE"
21016 msgstr ""
21017
21018 #. type: textblock
21019 #: ../java/examples/guestfs-java.pod:24
21020 msgid ""
21021 "The handle is closed when it is reaped by the garbage collector.  Because "
21022 "libguestfs handles include a lot of state, it is also possible to close (and "
21023 "hence free) them explicitly by calling the C<close> method."
21024 msgstr ""
21025
21026 #. type: =head2
21027 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21028 #: ../python/examples/guestfs-python.pod:21
21029 #: ../ruby/examples/guestfs-ruby.pod:22
21030 #, fuzzy
21031 #| msgid "OPTIONS"
21032 msgid "EXCEPTIONS"
21033 msgstr "ПАРАМЕТРИ"
21034
21035 #. type: textblock
21036 #: ../java/examples/guestfs-java.pod:31
21037 msgid ""
21038 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21039 "exception.  This has a single parameter which is the error message (a "
21040 "C<String>)."
21041 msgstr ""
21042
21043 #. type: textblock
21044 #: ../java/examples/guestfs-java.pod:35
21045 msgid "Calling any method on a closed handle raises the same exception."
21046 msgstr ""
21047
21048 #. type: textblock
21049 #: ../java/examples/guestfs-java.pod:47
21050 #, fuzzy
21051 #| msgid ""
21052 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21053 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21054 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21055 msgid ""
21056 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)"
21057 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21058 "libguestfs.org/>, L<http://caml.inria.fr/>."
21059 msgstr ""
21060 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21061 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21062 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21063
21064 #. type: textblock
21065 #: ../java/examples/guestfs-java.pod:63 ../perl/examples/guestfs-perl.pod:57
21066 #, fuzzy
21067 #| msgid "Copyright (C) 2009 Red Hat Inc."
21068 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
21069 msgstr "© Red Hat Inc., 2009"
21070
21071 #. type: textblock
21072 #: ../ocaml/examples/guestfs-ocaml.pod:5
21073 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21074 msgstr ""
21075
21076 #. type: textblock
21077 #: ../ocaml/examples/guestfs-ocaml.pod:9
21078 msgid "Module style:"
21079 msgstr ""
21080
21081 #. type: verbatim
21082 #: ../ocaml/examples/guestfs-ocaml.pod:11
21083 #, no-wrap
21084 msgid ""
21085 " let g = Guestfs.create () in\n"
21086 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21087 " Guestfs.launch g;\n"
21088 "\n"
21089 msgstr ""
21090
21091 #. type: textblock
21092 #: ../ocaml/examples/guestfs-ocaml.pod:15
21093 msgid "Object-oriented style:"
21094 msgstr ""
21095
21096 #. type: verbatim
21097 #: ../ocaml/examples/guestfs-ocaml.pod:17
21098 #, no-wrap
21099 msgid ""
21100 " let g = new Guestfs.guestfs () in\n"
21101 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21102 " g#launch ();\n"
21103 "\n"
21104 msgstr ""
21105
21106 #. type: verbatim
21107 #: ../ocaml/examples/guestfs-ocaml.pod:21
21108 #, no-wrap
21109 msgid ""
21110 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21111 "or:\n"
21112 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21113 "\n"
21114 msgstr ""
21115
21116 #. type: textblock
21117 #: ../ocaml/examples/guestfs-ocaml.pod:27
21118 msgid ""
21119 "This manual page documents how to call libguestfs from the OCaml programming "
21120 "language.  This page just documents the differences from the C API and gives "
21121 "some examples.  If you are not familiar with using libguestfs, you also need "
21122 "to read L<guestfs(3)>."
21123 msgstr ""
21124
21125 #. type: =head2
21126 #: ../ocaml/examples/guestfs-ocaml.pod:32
21127 msgid "PROGRAMMING STYLES"
21128 msgstr ""
21129
21130 #. type: textblock
21131 #: ../ocaml/examples/guestfs-ocaml.pod:34
21132 msgid ""
21133 "There are two different programming styles supported by the OCaml bindings.  "
21134 "You can use a module style, with each C function mapped to an OCaml function:"
21135 msgstr ""
21136
21137 #. type: verbatim
21138 #: ../ocaml/examples/guestfs-ocaml.pod:38
21139 #, fuzzy, no-wrap
21140 #| msgid ""
21141 #| " int guestfs_last_errno (guestfs_h *g);\n"
21142 #| "\n"
21143 msgid ""
21144 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21145 "\n"
21146 msgstr ""
21147 " int guestfs_last_errno (guestfs_h *g);\n"
21148 "\n"
21149
21150 #. type: textblock
21151 #: ../ocaml/examples/guestfs-ocaml.pod:40
21152 msgid "becomes:"
21153 msgstr ""
21154
21155 #. type: verbatim
21156 #: ../ocaml/examples/guestfs-ocaml.pod:42
21157 #, no-wrap
21158 msgid ""
21159 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21160 "\n"
21161 msgstr ""
21162
21163 #. type: textblock
21164 #: ../ocaml/examples/guestfs-ocaml.pod:44
21165 msgid ""
21166 "Alternately you can use an object-oriented style, calling methods on the "
21167 "class C<Guestfs.guestfs>:"
21168 msgstr ""
21169
21170 #. type: verbatim
21171 #: ../ocaml/examples/guestfs-ocaml.pod:47
21172 #, no-wrap
21173 msgid ""
21174 " method set_verbose : bool -> unit\n"
21175 "\n"
21176 msgstr ""
21177
21178 #. type: textblock
21179 #: ../ocaml/examples/guestfs-ocaml.pod:49
21180 msgid ""
21181 "The object-oriented style is usually briefer, and the minor performance "
21182 "penalty isn't noticable in the general overhead of performing libguestfs "
21183 "functions."
21184 msgstr ""
21185
21186 #. type: textblock
21187 #: ../ocaml/examples/guestfs-ocaml.pod:55
21188 msgid ""
21189 "The handle is closed when it is reaped by the garbage collector.  Because "
21190 "libguestfs handles include a lot of state, it is also possible to close (and "
21191 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21192 "method."
21193 msgstr ""
21194
21195 #. type: textblock
21196 #: ../ocaml/examples/guestfs-ocaml.pod:62
21197 msgid ""
21198 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21199 "exception.  This has a single parameter which is the error message (a "
21200 "string)."
21201 msgstr ""
21202
21203 #. type: textblock
21204 #: ../ocaml/examples/guestfs-ocaml.pod:66
21205 msgid ""
21206 "Calling any function/method on a closed handle raises C<Guestfs."
21207 "Handle_closed>.  The single parameter is the name of the function that you "
21208 "called."
21209 msgstr ""
21210
21211 #. type: textblock
21212 #: ../ocaml/examples/guestfs-ocaml.pod:80
21213 #, fuzzy
21214 #| msgid ""
21215 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21216 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21217 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21218 msgid ""
21219 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-perl(3)"
21220 ">, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21221 "libguestfs.org/>, L<http://caml.inria.fr/>."
21222 msgstr ""
21223 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21224 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21225 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21226
21227 #. type: textblock
21228 #: ../perl/examples/guestfs-perl.pod:5
21229 msgid "guestfs-perl - How to use libguestfs from Perl"
21230 msgstr ""
21231
21232 #. type: verbatim
21233 #: ../perl/examples/guestfs-perl.pod:9
21234 #, no-wrap
21235 msgid ""
21236 " use Sys::Guestfs;\n"
21237 " \n"
21238 msgstr ""
21239
21240 #. type: verbatim
21241 #: ../perl/examples/guestfs-perl.pod:11
21242 #, no-wrap
21243 msgid ""
21244 " my $h = Sys::Guestfs->new ();\n"
21245 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21246 " $h->launch ();\n"
21247 " $h->mount_options ('', '/dev/sda1', '/');\n"
21248 " $h->touch ('/hello');\n"
21249 " $h->sync ();\n"
21250 "\n"
21251 msgstr ""
21252
21253 #. type: textblock
21254 #: ../perl/examples/guestfs-perl.pod:20
21255 msgid ""
21256 "This manual page documents how to call libguestfs from the Perl programming "
21257 "language.  This page just documents the differences from the C API and gives "
21258 "some examples.  If you are not familiar with using libguestfs, you also need "
21259 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21260 msgstr ""
21261
21262 #. type: =head2
21263 #: ../perl/examples/guestfs-perl.pod:26
21264 msgid "ERRORS"
21265 msgstr ""
21266
21267 #. type: textblock
21268 #: ../perl/examples/guestfs-perl.pod:28
21269 msgid ""
21270 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21271 ">)."
21272 msgstr ""
21273
21274 #. type: textblock
21275 #: ../perl/examples/guestfs-perl.pod:41
21276 #, fuzzy
21277 #| msgid ""
21278 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21279 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21280 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21281 msgid ""
21282 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)"
21283 ">, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21284 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21285 msgstr ""
21286 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21287 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21288 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21289
21290 #. type: textblock
21291 #: ../python/examples/guestfs-python.pod:5
21292 msgid "guestfs-python - How to use libguestfs from Python"
21293 msgstr ""
21294
21295 #. type: verbatim
21296 #: ../python/examples/guestfs-python.pod:9
21297 #, no-wrap
21298 msgid ""
21299 " import guestfs\n"
21300 " g = guestfs.GuestFS ()\n"
21301 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21302 " g.launch\n"
21303 "\n"
21304 msgstr ""
21305
21306 #. type: textblock
21307 #: ../python/examples/guestfs-python.pod:16
21308 msgid ""
21309 "This manual page documents how to call libguestfs from the Python "
21310 "programming language.  This page just documents the differences from the C "
21311 "API and gives some examples.  If you are not familiar with using libguestfs, "
21312 "you also need to read L<guestfs(3)>."
21313 msgstr ""
21314
21315 #. type: textblock
21316 #: ../python/examples/guestfs-python.pod:23
21317 msgid ""
21318 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21319 "single string argument which is the error message."
21320 msgstr ""
21321
21322 #. type: =head2
21323 #: ../python/examples/guestfs-python.pod:26
21324 msgid "MORE DOCUMENTATION"
21325 msgstr ""
21326
21327 #. type: textblock
21328 #: ../python/examples/guestfs-python.pod:28
21329 msgid "Type:"
21330 msgstr ""
21331
21332 #. type: verbatim
21333 #: ../python/examples/guestfs-python.pod:30
21334 #, no-wrap
21335 msgid ""
21336 " $ python\n"
21337 " >>> import guestfs\n"
21338 " >>> help (guestfs)\n"
21339 "\n"
21340 msgstr ""
21341
21342 #. type: textblock
21343 #: ../python/examples/guestfs-python.pod:44
21344 #, fuzzy
21345 #| msgid ""
21346 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21347 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21348 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21349 msgid ""
21350 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
21351 ">, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://"
21352 "libguestfs.org/>."
21353 msgstr ""
21354 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21355 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21356 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21357
21358 #. type: textblock
21359 #: ../rescue/virt-rescue.pod:5
21360 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21361 msgstr ""
21362
21363 #. type: verbatim
21364 #: ../rescue/virt-rescue.pod:9
21365 #, fuzzy, no-wrap
21366 #| msgid ""
21367 #| " virt-list-partitions [--options] domname\n"
21368 #| "\n"
21369 msgid ""
21370 " virt-rescue [--options] -d domname\n"
21371 "\n"
21372 msgstr ""
21373 " virt-list-partitions [--параметри] назва_домену\n"
21374 "\n"
21375
21376 #. type: verbatim
21377 #: ../rescue/virt-rescue.pod:11
21378 #, fuzzy, no-wrap
21379 #| msgid ""
21380 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21381 #| "\n"
21382 msgid ""
21383 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21384 "\n"
21385 msgstr ""
21386 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21387 "\n"
21388
21389 #. type: verbatim
21390 #: ../rescue/virt-rescue.pod:15
21391 #, fuzzy, no-wrap
21392 #| msgid ""
21393 #| " virt-list-partitions [--options] domname\n"
21394 #| "\n"
21395 msgid ""
21396 " virt-rescue [--options] domname\n"
21397 "\n"
21398 msgstr ""
21399 " virt-list-partitions [--параметри] назва_домену\n"
21400 "\n"
21401
21402 #. type: verbatim
21403 #: ../rescue/virt-rescue.pod:17
21404 #, fuzzy, no-wrap
21405 #| msgid ""
21406 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21407 #| "\n"
21408 msgid ""
21409 " virt-rescue [--options] disk.img [disk.img ...]\n"
21410 "\n"
21411 msgstr ""
21412 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21413 "\n"
21414
21415 #. type: textblock
21416 #: ../rescue/virt-rescue.pod:21
21417 msgid ""
21418 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21419 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21420 "you from doing this, but doesn't catch all cases."
21421 msgstr ""
21422
21423 #. type: textblock
21424 #: ../rescue/virt-rescue.pod:25
21425 msgid ""
21426 "However if you use the I<--ro> (read only) option, then you can attach a "
21427 "shell to a live virtual machine.  The results might be strange or "
21428 "inconsistent at times but you won't get disk corruption."
21429 msgstr ""
21430
21431 #. type: textblock
21432 #: ../rescue/virt-rescue.pod:31
21433 msgid ""
21434 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21435 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21436 "recovery tools which you can use to examine or rescue a virtual machine or "
21437 "disk image."
21438 msgstr ""
21439
21440 #. type: textblock
21441 #: ../rescue/virt-rescue.pod:36
21442 msgid ""
21443 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21444 "on disk image(s):"
21445 msgstr ""
21446
21447 #. type: verbatim
21448 #: ../rescue/virt-rescue.pod:39
21449 #, no-wrap
21450 msgid ""
21451 " virt-rescue -d GuestName\n"
21452 "\n"
21453 msgstr ""
21454
21455 #. type: verbatim
21456 #: ../rescue/virt-rescue.pod:41
21457 #, no-wrap
21458 msgid ""
21459 " virt-rescue --ro -a /path/to/disk.img\n"
21460 "\n"
21461 msgstr ""
21462
21463 #. type: verbatim
21464 #: ../rescue/virt-rescue.pod:43
21465 #, no-wrap
21466 msgid ""
21467 " virt-rescue -a /dev/sdc\n"
21468 "\n"
21469 msgstr ""
21470
21471 #. type: textblock
21472 #: ../rescue/virt-rescue.pod:45
21473 msgid "For live VMs you I<must> use the --ro option."
21474 msgstr ""
21475
21476 #. type: textblock
21477 #: ../rescue/virt-rescue.pod:47
21478 msgid ""
21479 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21480 "in an interactive bash shell where you can use many ordinary Linux "
21481 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21482 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21483 "is an empty directory called C</sysroot> where you can mount filesystems."
21484 msgstr ""
21485
21486 #. type: textblock
21487 #: ../rescue/virt-rescue.pod:54
21488 msgid ""
21489 "In the example below, we list logical volumes, then choose one to mount "
21490 "under C</sysroot>:"
21491 msgstr ""
21492
21493 #. type: verbatim
21494 #: ../rescue/virt-rescue.pod:57
21495 #, no-wrap
21496 msgid ""
21497 " ><rescue> lvs\n"
21498 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21499 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21500 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21501 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21502 " ><rescue> ls /sysroot\n"
21503 "\n"
21504 msgstr ""
21505
21506 #. type: textblock
21507 #: ../rescue/virt-rescue.pod:64
21508 msgid ""
21509 "If you don't know what filesystems are available on the virtual machine then "
21510 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21511 msgstr ""
21512
21513 #. type: textblock
21514 #: ../rescue/virt-rescue.pod:70
21515 msgid ""
21516 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21517 "virtual machine.  For example you can use it on a blank file if you want to "
21518 "partition that file (although we would recommend using L<guestfish(1)> "
21519 "instead as it is more suitable for this purpose).  You can even use virt-"
21520 "rescue on things like SD cards."
21521 msgstr ""
21522
21523 #. type: textblock
21524 #: ../rescue/virt-rescue.pod:76
21525 msgid ""
21526 "Virt-rescue does not require root.  You only need to run it as root if you "
21527 "need root to open the disk image."
21528 msgstr ""
21529
21530 #. type: textblock
21531 #: ../rescue/virt-rescue.pod:79
21532 msgid ""
21533 "This tool is just designed for quick interactive hacking on a virtual "
21534 "machine.  For more structured access to a virtual machine disk image, you "
21535 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21536 "make scripted changes to guests, use L<guestfish(1)>."
21537 msgstr ""
21538
21539 #. type: =item
21540 #: ../rescue/virt-rescue.pod:103
21541 msgid "B<--append kernelopts>"
21542 msgstr ""
21543
21544 #. type: textblock
21545 #: ../rescue/virt-rescue.pod:105
21546 msgid "Pass additional options to the rescue kernel."
21547 msgstr ""
21548
21549 #. type: verbatim
21550 #: ../rescue/virt-rescue.pod:135
21551 #, fuzzy, no-wrap
21552 #| msgid ""
21553 #| " guestfish --format=raw -a disk.img\n"
21554 #| "\n"
21555 msgid ""
21556 " virt-rescue --format=raw -a disk.img\n"
21557 "\n"
21558 msgstr ""
21559 " guestfish --format=raw -a disk.img\n"
21560 "\n"
21561
21562 #. type: verbatim
21563 #: ../rescue/virt-rescue.pod:139
21564 #, fuzzy, no-wrap
21565 #| msgid ""
21566 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21567 #| "\n"
21568 msgid ""
21569 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21570 "\n"
21571 msgstr ""
21572 " guestfish --format=raw -a disk.img --format -a another.img\n"
21573 "\n"
21574
21575 #. type: =item
21576 #: ../rescue/virt-rescue.pod:148
21577 msgid "B<-m MB>"
21578 msgstr ""
21579
21580 #. type: =item
21581 #: ../rescue/virt-rescue.pod:150
21582 #, fuzzy
21583 #| msgid "B<--merge>"
21584 msgid "B<--memsize MB>"
21585 msgstr "B<--merge>"
21586
21587 #. type: textblock
21588 #: ../rescue/virt-rescue.pod:152
21589 msgid ""
21590 "Change the amount of memory allocated to the rescue system.  The default is "
21591 "set by libguestfs and is small but adequate for running system tools.  The "
21592 "occasional program might need more memory.  The parameter is specified in "
21593 "megabytes."
21594 msgstr ""
21595
21596 #. type: =item
21597 #: ../rescue/virt-rescue.pod:157
21598 #, fuzzy
21599 #| msgid "B<--inspector>"
21600 msgid "B<--network>"
21601 msgstr "B<--inspector>"
21602
21603 #. type: textblock
21604 #: ../rescue/virt-rescue.pod:159
21605 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
21606 msgstr ""
21607
21608 #. type: textblock
21609 #: ../rescue/virt-rescue.pod:165
21610 msgid "Open the image read-only."
21611 msgstr ""
21612
21613 #. type: textblock
21614 #: ../rescue/virt-rescue.pod:175
21615 msgid ""
21616 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
21617 "SELINUX> before using this option."
21618 msgstr ""
21619
21620 #. type: textblock
21621 #: ../rescue/virt-rescue.pod:194
21622 msgid ""
21623 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21624 "are done read-write."
21625 msgstr ""
21626
21627 #. type: textblock
21628 #: ../rescue/virt-rescue.pod:207
21629 msgid "Previous versions of virt-rescue allowed you to write either:"
21630 msgstr ""
21631
21632 #. type: verbatim
21633 #: ../rescue/virt-rescue.pod:209
21634 #, fuzzy, no-wrap
21635 #| msgid ""
21636 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21637 #| "\n"
21638 msgid ""
21639 " virt-rescue disk.img [disk.img ...]\n"
21640 "\n"
21641 msgstr ""
21642 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21643 "\n"
21644
21645 #. type: verbatim
21646 #: ../rescue/virt-rescue.pod:213
21647 #, fuzzy, no-wrap
21648 #| msgid ""
21649 #| " file-architecture filename\n"
21650 #| "\n"
21651 msgid ""
21652 " virt-rescue guestname\n"
21653 "\n"
21654 msgstr ""
21655 " file-architecture назва_файла\n"
21656 "\n"
21657
21658 #. type: =head1
21659 #: ../rescue/virt-rescue.pod:221
21660 msgid "NETWORK"
21661 msgstr ""
21662
21663 #. type: textblock
21664 #: ../rescue/virt-rescue.pod:223
21665 msgid ""
21666 "Adding the I<--network> option enables QEMU user networking in the rescue "
21667 "appliance.  There are some differences between user networking and ordinary "
21668 "networking:"
21669 msgstr ""
21670
21671 #. type: =item
21672 #: ../rescue/virt-rescue.pod:229
21673 msgid "ping does not work"
21674 msgstr ""
21675
21676 #. type: textblock
21677 #: ../rescue/virt-rescue.pod:231
21678 msgid ""
21679 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21680 "send the ping packets, and because virt-rescue must be able to run as non-"
21681 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
21682 "The ping command will appear to resolve addresses but will not be able to "
21683 "send or receive any packets.  This does not mean that the network is not "
21684 "working."
21685 msgstr ""
21686
21687 #. type: =item
21688 #: ../rescue/virt-rescue.pod:238
21689 msgid "cannot receive connections"
21690 msgstr ""
21691
21692 #. type: textblock
21693 #: ../rescue/virt-rescue.pod:240
21694 msgid "QEMU user networking cannot receive incoming connections."
21695 msgstr ""
21696
21697 #. type: =item
21698 #: ../rescue/virt-rescue.pod:242
21699 msgid "making TCP connections"
21700 msgstr ""
21701
21702 #. type: textblock
21703 #: ../rescue/virt-rescue.pod:244
21704 msgid ""
21705 "The virt-rescue appliance needs to be small and so does not include many "
21706 "network tools.  In particular there is no L<telnet(1)> command.  You can "
21707 "make TCP connections from the shell using the magical C</dev/tcp/"
21708 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
21709 msgstr ""
21710
21711 #. type: verbatim
21712 #: ../rescue/virt-rescue.pod:249
21713 #, no-wrap
21714 msgid ""
21715 " exec 3<>/dev/tcp/redhat.com/80\n"
21716 " echo \"GET /\" >&3\n"
21717 " cat <&3\n"
21718 "\n"
21719 msgstr ""
21720
21721 #. type: textblock
21722 #: ../rescue/virt-rescue.pod:253
21723 msgid "See L<bash(1)> for more details."
21724 msgstr ""
21725
21726 #. type: textblock
21727 #: ../rescue/virt-rescue.pod:259
21728 msgid ""
21729 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
21730 "ENVIRONMENT VARIABLES> for the complete list."
21731 msgstr ""
21732
21733 #. type: textblock
21734 #: ../rescue/virt-rescue.pod:286
21735 #, fuzzy
21736 #| msgid ""
21737 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21738 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21739 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21740 msgid ""
21741 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
21742 "libguestfs.org/>."
21743 msgstr ""
21744 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21745 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21746 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21747
21748 #. type: textblock
21749 #: ../resize/virt-resize.pod:5
21750 msgid "virt-resize - Resize a virtual machine disk"
21751 msgstr ""
21752
21753 #. type: verbatim
21754 #: ../resize/virt-resize.pod:9
21755 #, no-wrap
21756 msgid ""
21757 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
21758 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
21759 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
21760 "\n"
21761 msgstr ""
21762
21763 #. type: textblock
21764 #: ../resize/virt-resize.pod:15
21765 msgid ""
21766 "Virt-resize is a tool which can resize a virtual machine disk, making it "
21767 "larger or smaller overall, and resizing or deleting any partitions contained "
21768 "within."
21769 msgstr ""
21770
21771 #. type: textblock
21772 #: ../resize/virt-resize.pod:19
21773 msgid ""
21774 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
21775 "not> be used on live virtual machines - for consistent results, shut the "
21776 "virtual machine down before resizing it."
21777 msgstr ""
21778
21779 #. type: textblock
21780 #: ../resize/virt-resize.pod:23
21781 msgid ""
21782 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
21783 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
21784 msgstr ""
21785
21786 #. type: =item
21787 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
21788 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1257 ../src/guestfs.pod:1396
21789 #: ../src/guestfs.pod:2481
21790 msgid "1."
21791 msgstr "1."
21792
21793 #. type: textblock
21794 #: ../resize/virt-resize.pod:33
21795 msgid ""
21796 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
21797 "fill the extra 5GB of space."
21798 msgstr ""
21799
21800 #. type: verbatim
21801 #: ../resize/virt-resize.pod:36
21802 #, no-wrap
21803 msgid ""
21804 " virt-filesystems --long -h --all -a olddisk\n"
21805 " \n"
21806 msgstr ""
21807
21808 #. type: verbatim
21809 #: ../resize/virt-resize.pod:38
21810 #, no-wrap
21811 msgid ""
21812 " truncate -r olddisk newdisk\n"
21813 " truncate -s +5G newdisk\n"
21814 " \n"
21815 msgstr ""
21816
21817 #. type: verbatim
21818 #: ../resize/virt-resize.pod:41
21819 #, no-wrap
21820 msgid ""
21821 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
21822 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
21823 "\n"
21824 msgstr ""
21825
21826 #. type: =item
21827 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
21828 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1261 ../src/guestfs.pod:1400
21829 #: ../src/guestfs.pod:2506
21830 msgid "2."
21831 msgstr "2."
21832
21833 #. type: textblock
21834 #: ../resize/virt-resize.pod:46
21835 msgid ""
21836 "As above, but make the /boot partition 200MB bigger, while giving the "
21837 "remaining space to /dev/sda2:"
21838 msgstr ""
21839
21840 #. type: verbatim
21841 #: ../resize/virt-resize.pod:49
21842 #, no-wrap
21843 msgid ""
21844 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
21845 "   olddisk newdisk\n"
21846 "\n"
21847 msgstr ""
21848
21849 #. type: =item
21850 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
21851 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1406
21852 msgid "3."
21853 msgstr "3."
21854
21855 #. type: textblock
21856 #: ../resize/virt-resize.pod:54
21857 msgid ""
21858 "As in the first example, but expand a logical volume as the final step.  "
21859 "This is what you would typically use for Linux guests that use LVM:"
21860 msgstr ""
21861
21862 #. type: verbatim
21863 #: ../resize/virt-resize.pod:58
21864 #, no-wrap
21865 msgid ""
21866 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
21867 "   olddisk newdisk\n"
21868 "\n"
21869 msgstr ""
21870
21871 #. type: =item
21872 #: ../resize/virt-resize.pod:61
21873 msgid "4."
21874 msgstr ""
21875
21876 #. type: textblock
21877 #: ../resize/virt-resize.pod:63
21878 msgid ""
21879 "As in the first example, but the output format will be qcow2 instead of a "
21880 "raw disk:"
21881 msgstr ""
21882
21883 #. type: verbatim
21884 #: ../resize/virt-resize.pod:66
21885 #, no-wrap
21886 msgid ""
21887 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
21888 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
21889 "\n"
21890 msgstr ""
21891
21892 #. type: =head1
21893 #: ../resize/virt-resize.pod:71
21894 msgid "DETAILED USAGE"
21895 msgstr ""
21896
21897 #. type: =head2
21898 #: ../resize/virt-resize.pod:73
21899 msgid "EXPANDING A VIRTUAL MACHINE DISK"
21900 msgstr ""
21901
21902 #. type: =item
21903 #: ../resize/virt-resize.pod:77
21904 msgid "1. Shut down the virtual machine"
21905 msgstr ""
21906
21907 #. type: =item
21908 #: ../resize/virt-resize.pod:79
21909 msgid "2. Locate input disk image"
21910 msgstr ""
21911
21912 #. type: textblock
21913 #: ../resize/virt-resize.pod:81
21914 msgid ""
21915 "Locate the input disk image (ie. the file or device on the host containing "
21916 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
21917 "dumpxml> like this to find the disk image name:"
21918 msgstr ""
21919
21920 #. type: verbatim
21921 #: ../resize/virt-resize.pod:85
21922 #, no-wrap
21923 msgid ""
21924 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
21925 " Found 1 nodes:\n"
21926 " -- NODE --\n"
21927 " <source dev=\"/dev/vg/lv_guest\" />\n"
21928 "\n"
21929 msgstr ""
21930
21931 #. type: =item
21932 #: ../resize/virt-resize.pod:90
21933 msgid "3. Look at current sizing"
21934 msgstr ""
21935
21936 #. type: textblock
21937 #: ../resize/virt-resize.pod:92
21938 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
21939 msgstr ""
21940
21941 #. type: verbatim
21942 #: ../resize/virt-resize.pod:95
21943 #, no-wrap
21944 msgid ""
21945 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
21946 " Name       Type       Size  Parent\n"
21947 " /dev/sda1  partition  101M  /dev/sda\n"
21948 " /dev/sda2  partition  7.9G  /dev/sda\n"
21949 " /dev/sda   device     8.0G  -\n"
21950 "\n"
21951 msgstr ""
21952
21953 #. type: textblock
21954 #: ../resize/virt-resize.pod:101
21955 msgid ""
21956 "(This example is a virtual machine with an 8 GB disk which we would like to "
21957 "expand up to 10 GB)."
21958 msgstr ""
21959
21960 #. type: =item
21961 #: ../resize/virt-resize.pod:104
21962 msgid "4. Create output disk"
21963 msgstr ""
21964
21965 #. type: textblock
21966 #: ../resize/virt-resize.pod:106
21967 msgid ""
21968 "Virt-resize cannot do in-place disk modifications.  You have to have space "
21969 "to store the resized output disk."
21970 msgstr ""
21971
21972 #. type: textblock
21973 #: ../resize/virt-resize.pod:109
21974 msgid ""
21975 "To store the resized disk image in a file, create a file of a suitable size:"
21976 msgstr ""
21977
21978 #. type: verbatim
21979 #: ../resize/virt-resize.pod:112
21980 #, no-wrap
21981 msgid ""
21982 " # rm -f outdisk\n"
21983 " # truncate -s 10G outdisk\n"
21984 "\n"
21985 msgstr ""
21986
21987 #. type: textblock
21988 #: ../resize/virt-resize.pod:115
21989 msgid "Or use L<lvcreate(1)> to create a logical volume:"
21990 msgstr ""
21991
21992 #. type: verbatim
21993 #: ../resize/virt-resize.pod:117
21994 #, no-wrap
21995 msgid ""
21996 " # lvcreate -L 10G -n lv_name vg_name\n"
21997 "\n"
21998 msgstr ""
21999
22000 #. type: textblock
22001 #: ../resize/virt-resize.pod:119
22002 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22003 msgstr ""
22004
22005 #. type: verbatim
22006 #: ../resize/virt-resize.pod:121
22007 #, no-wrap
22008 msgid ""
22009 " # virsh pool-list\n"
22010 " # virsh vol-create-as poolname newvol 10G\n"
22011 "\n"
22012 msgstr ""
22013
22014 #. type: =item
22015 #: ../resize/virt-resize.pod:124
22016 msgid "5. Resize"
22017 msgstr ""
22018
22019 #. type: textblock
22020 #: ../resize/virt-resize.pod:126
22021 msgid ""
22022 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22023 "file) and the output disk.  The output disk is the one created in the "
22024 "previous step."
22025 msgstr ""
22026
22027 #. type: verbatim
22028 #: ../resize/virt-resize.pod:130
22029 #, no-wrap
22030 msgid ""
22031 " # virt-resize indisk outdisk\n"
22032 "\n"
22033 msgstr ""
22034
22035 #. type: textblock
22036 #: ../resize/virt-resize.pod:132
22037 msgid ""
22038 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22039 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22040 "larger, then an extra, empty partition is created at the end of the disk "
22041 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22042 "error."
22043 msgstr ""
22044
22045 #. type: textblock
22046 #: ../resize/virt-resize.pod:138
22047 msgid ""
22048 "More realistically you'd want to expand existing partitions in the disk "
22049 "image by passing extra options (for the full list see the L</OPTIONS> "
22050 "section below)."
22051 msgstr ""
22052
22053 #. type: textblock
22054 #: ../resize/virt-resize.pod:142
22055 msgid ""
22056 "L</--expand> is the most useful option.  It expands the named partition "
22057 "within the disk to fill any extra space:"
22058 msgstr ""
22059
22060 #. type: verbatim
22061 #: ../resize/virt-resize.pod:145
22062 #, no-wrap
22063 msgid ""
22064 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22065 "\n"
22066 msgstr ""
22067
22068 #. type: textblock
22069 #: ../resize/virt-resize.pod:147
22070 msgid ""
22071 "(In this case, an extra partition is I<not> created at the end of the disk, "
22072 "because there will be no unused space)."
22073 msgstr ""
22074
22075 #. type: textblock
22076 #: ../resize/virt-resize.pod:150
22077 msgid ""
22078 "L</--resize> is the other commonly used option.  The following would "
22079 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22080 "rest of the available space:"
22081 msgstr ""
22082
22083 #. type: verbatim
22084 #: ../resize/virt-resize.pod:154
22085 #, no-wrap
22086 msgid ""
22087 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22088 "     indisk outdisk\n"
22089 "\n"
22090 msgstr ""
22091
22092 #. type: textblock
22093 #: ../resize/virt-resize.pod:157
22094 msgid ""
22095 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22096 "if virt-resize knows how, it will resize the contents, the equivalent of "
22097 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22098 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22099 "filesystems, so you would have to online resize them after booting the guest."
22100 msgstr ""
22101
22102 #. type: textblock
22103 #: ../resize/virt-resize.pod:164
22104 msgid "Other options are covered below."
22105 msgstr ""
22106
22107 #. type: =item
22108 #: ../resize/virt-resize.pod:166
22109 msgid "6. Test"
22110 msgstr ""
22111
22112 #. type: textblock
22113 #: ../resize/virt-resize.pod:168
22114 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22115 msgstr ""
22116
22117 #. type: textblock
22118 #: ../resize/virt-resize.pod:170
22119 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22120 msgstr ""
22121
22122 #. type: verbatim
22123 #: ../resize/virt-resize.pod:172
22124 #, fuzzy, no-wrap
22125 #| msgid ""
22126 #| " edit filename\n"
22127 #| "\n"
22128 msgid ""
22129 " # virsh edit guestname\n"
22130 "\n"
22131 msgstr ""
22132 " edit назва_файла\n"
22133 "\n"
22134
22135 #. type: textblock
22136 #: ../resize/virt-resize.pod:174
22137 msgid ""
22138 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22139 "html#elementsDisks>"
22140 msgstr ""
22141
22142 #. type: textblock
22143 #: ../resize/virt-resize.pod:177
22144 msgid "Then start up the domain with the new, resized disk:"
22145 msgstr ""
22146
22147 #. type: verbatim
22148 #: ../resize/virt-resize.pod:179
22149 #, fuzzy, no-wrap
22150 #| msgid ""
22151 #| " ln-s target linkname\n"
22152 #| "\n"
22153 msgid ""
22154 " # virsh start guestname\n"
22155 "\n"
22156 msgstr ""
22157 " ln-s призначення назва_посилання\n"
22158 "\n"
22159
22160 #. type: textblock
22161 #: ../resize/virt-resize.pod:181
22162 msgid ""
22163 "and check that it still works.  See also the L</NOTES> section below for "
22164 "additional information."
22165 msgstr ""
22166
22167 #. type: =item
22168 #: ../resize/virt-resize.pod:184
22169 msgid "7. Resize LVs etc inside the guest"
22170 msgstr ""
22171
22172 #. type: textblock
22173 #: ../resize/virt-resize.pod:186
22174 msgid "(This can also be done offline using L<guestfish(1)>)"
22175 msgstr ""
22176
22177 #. type: textblock
22178 #: ../resize/virt-resize.pod:188
22179 msgid ""
22180 "Once the guest has booted you should see the new space available, at least "
22181 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22182 "may need to resize LVs inside PVs, and also resize filesystem types that "
22183 "virt-resize does not know how to expand."
22184 msgstr ""
22185
22186 #. type: =head2
22187 #: ../resize/virt-resize.pod:195
22188 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22189 msgstr ""
22190
22191 #. type: textblock
22192 #: ../resize/virt-resize.pod:197
22193 msgid ""
22194 "Shrinking is somewhat more complex than expanding, and only an overview is "
22195 "given here."
22196 msgstr ""
22197
22198 #. type: textblock
22199 #: ../resize/virt-resize.pod:200
22200 msgid ""
22201 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22202 "filesystems).  The user has to shrink content before passing the disk image "
22203 "to virt-resize, and virt-resize will check that the content has been shrunk "
22204 "properly."
22205 msgstr ""
22206
22207 #. type: textblock
22208 #: ../resize/virt-resize.pod:205
22209 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22210 msgstr ""
22211
22212 #. type: textblock
22213 #: ../resize/virt-resize.pod:207
22214 msgid ""
22215 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22216 "steps 3 and 4 above to allocate a new disk image."
22217 msgstr ""
22218
22219 #. type: textblock
22220 #: ../resize/virt-resize.pod:210
22221 msgid ""
22222 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22223 msgstr ""
22224
22225 #. type: =head2
22226 #: ../resize/virt-resize.pod:213
22227 msgid "IGNORING OR DELETING PARTITIONS"
22228 msgstr ""
22229
22230 #. type: textblock
22231 #: ../resize/virt-resize.pod:215
22232 msgid ""
22233 "virt-resize also gives a convenient way to ignore or delete partitions when "
22234 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22235 "up the copy where you don't care about the existing contents of a "
22236 "partition.  Deleting a partition removes it completely, but note that it "
22237 "also renumbers any partitions after the one which is deleted, which can "
22238 "leave some guests unbootable."
22239 msgstr ""
22240
22241 #. type: =head2
22242 #: ../resize/virt-resize.pod:222
22243 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22244 msgstr ""
22245
22246 #. type: textblock
22247 #: ../resize/virt-resize.pod:224
22248 msgid ""
22249 "If the input disk is in qcow2 format, then you may prefer that the output is "
22250 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22251 "the fly.  The output format is simply determined by the format of the empty "
22252 "output container that you provide.  Thus to create qcow2 output, use:"
22253 msgstr ""
22254
22255 #. type: verbatim
22256 #: ../resize/virt-resize.pod:230
22257 #, no-wrap
22258 msgid ""
22259 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22260 "\n"
22261 msgstr ""
22262
22263 #. type: textblock
22264 #: ../resize/virt-resize.pod:232
22265 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22266 msgstr ""
22267
22268 #. type: textblock
22269 #: ../resize/virt-resize.pod:234
22270 msgid "Similarly, to get non-sparse raw output use:"
22271 msgstr ""
22272
22273 #. type: verbatim
22274 #: ../resize/virt-resize.pod:236
22275 #, fuzzy, no-wrap
22276 #| msgid ""
22277 #| " fallocate path len\n"
22278 #| "\n"
22279 msgid ""
22280 " fallocate -l size outdisk\n"
22281 "\n"
22282 msgstr ""
22283 " fallocate шлях довжина\n"
22284 "\n"
22285
22286 #. type: textblock
22287 #: ../resize/virt-resize.pod:238
22288 msgid ""
22289 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22290 "dev/zero of=outdisk bs=1M count=..>)"
22291 msgstr ""
22292
22293 #. type: textblock
22294 #: ../resize/virt-resize.pod:247
22295 msgid "Display help."
22296 msgstr ""
22297
22298 #. type: =item
22299 #: ../resize/virt-resize.pod:249
22300 msgid "B<-d>"
22301 msgstr ""
22302
22303 #. type: =item
22304 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22305 #: ../tools/virt-win-reg.pl:120
22306 msgid "B<--debug>"
22307 msgstr "B<--debug>"
22308
22309 #. type: textblock
22310 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22311 msgid "Enable debugging messages."
22312 msgstr ""
22313
22314 #. type: =item
22315 #: ../resize/virt-resize.pod:255
22316 #, fuzzy
22317 #| msgid "B<--no-dest-paths>"
22318 msgid "B<--delete part>"
22319 msgstr "B<--no-dest-paths>"
22320
22321 #. type: textblock
22322 #: ../resize/virt-resize.pod:257
22323 msgid ""
22324 "Delete the named partition.  It would be more accurate to describe this as "
22325 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22326 "the original disk image is left intact."
22327 msgstr ""
22328
22329 #. type: textblock
22330 #: ../resize/virt-resize.pod:261
22331 msgid ""
22332 "Note that when you delete a partition, then anything contained in the "
22333 "partition is also deleted.  Furthermore, this causes any partitions that "
22334 "come after to be I<renumbered>, which can easily make your guest unbootable."
22335 msgstr ""
22336
22337 #. type: textblock
22338 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22339 #: ../resize/virt-resize.pod:454
22340 msgid "You can give this option multiple times."
22341 msgstr ""
22342
22343 #. type: =item
22344 #: ../resize/virt-resize.pod:268
22345 #, fuzzy
22346 #| msgid "B<--partition>"
22347 msgid "B<--expand part>"
22348 msgstr "B<--partition>"
22349
22350 #. type: textblock
22351 #: ../resize/virt-resize.pod:270
22352 msgid ""
22353 "Expand the named partition so it uses up all extra space (space left over "
22354 "after any other resize changes that you request have been done)."
22355 msgstr ""
22356
22357 #. type: textblock
22358 #: ../resize/virt-resize.pod:273
22359 msgid ""
22360 "If virt-resize knows how, it will expand the direct content of the "
22361 "partition.  For example, if the partition is an LVM PV, it will expand the "
22362 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22363 "content it doesn't know about alone."
22364 msgstr ""
22365
22366 #. type: textblock
22367 #: ../resize/virt-resize.pod:278
22368 msgid "Currently virt-resize can resize:"
22369 msgstr ""
22370
22371 #. type: textblock
22372 #: ../resize/virt-resize.pod:284
22373 msgid "ext2, ext3 and ext4 filesystems."
22374 msgstr ""
22375
22376 #. type: textblock
22377 #: ../resize/virt-resize.pod:288
22378 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22379 msgstr ""
22380
22381 #. type: textblock
22382 #: ../resize/virt-resize.pod:290
22383 msgid ""
22384 "The filesystem must have been shut down consistently last time it was used.  "
22385 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22386 "consistency check, so at the first boot after resizing Windows will check "
22387 "the disk."
22388 msgstr ""
22389
22390 #. type: textblock
22391 #: ../resize/virt-resize.pod:297
22392 msgid ""
22393 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22394 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22395 "resize LVs as desired after boot."
22396 msgstr ""
22397
22398 #. type: textblock
22399 #: ../resize/virt-resize.pod:303
22400 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22401 msgstr ""
22402
22403 #. type: textblock
22404 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22405 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22406 msgstr ""
22407
22408 #. type: =item
22409 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22410 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22411 #: ../tools/virt-win-reg.pl:142
22412 msgid "B<--format> raw"
22413 msgstr ""
22414
22415 #. type: textblock
22416 #: ../resize/virt-resize.pod:311
22417 msgid ""
22418 "Specify the format of the input disk image.  If this flag is not given then "
22419 "it is auto-detected from the image itself."
22420 msgstr ""
22421
22422 #. type: textblock
22423 #: ../resize/virt-resize.pod:317
22424 msgid ""
22425 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22426 "AND NON-SPARSE RAW FORMATS>."
22427 msgstr ""
22428
22429 #. type: =item
22430 #: ../resize/virt-resize.pod:320
22431 #, fuzzy
22432 #| msgid "B<--format>"
22433 msgid "B<--ignore part>"
22434 msgstr "B<--format>"
22435
22436 #. type: textblock
22437 #: ../resize/virt-resize.pod:322
22438 msgid ""
22439 "Ignore the named partition.  Effectively this means the partition is "
22440 "allocated on the destination disk, but the content is not copied across from "
22441 "the source disk.  The content of the partition will be blank (all zero "
22442 "bytes)."
22443 msgstr ""
22444
22445 #. type: =item
22446 #: ../resize/virt-resize.pod:329
22447 msgid "B<--LV-expand logvol>"
22448 msgstr ""
22449
22450 #. type: textblock
22451 #: ../resize/virt-resize.pod:331
22452 msgid ""
22453 "This takes the logical volume and, as a final step, expands it to fill all "
22454 "the space available in its volume group.  A typical usage, assuming a Linux "
22455 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22456 "lv_root> would be:"
22457 msgstr ""
22458
22459 #. type: verbatim
22460 #: ../resize/virt-resize.pod:336
22461 #, no-wrap
22462 msgid ""
22463 " virt-resize indisk outdisk \\\n"
22464 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22465 "\n"
22466 msgstr ""
22467
22468 #. type: textblock
22469 #: ../resize/virt-resize.pod:339
22470 msgid ""
22471 "This would first expand the partition (and PV), and then expand the root "
22472 "device to fill the extra space in the PV."
22473 msgstr ""
22474
22475 #. type: textblock
22476 #: ../resize/virt-resize.pod:342
22477 msgid ""
22478 "The contents of the LV are also resized if virt-resize knows how to do "
22479 "that.  You can stop virt-resize from trying to expand the content by using "
22480 "the option I<--no-expand-content>."
22481 msgstr ""
22482
22483 #. type: textblock
22484 #: ../resize/virt-resize.pod:346
22485 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22486 msgstr ""
22487
22488 #. type: textblock
22489 #: ../resize/virt-resize.pod:348
22490 msgid ""
22491 "You can give this option multiple times, I<but> it doesn't make sense to do "
22492 "this unless the logical volumes you specify are all in different volume "
22493 "groups."
22494 msgstr ""
22495
22496 #. type: =item
22497 #: ../resize/virt-resize.pod:352
22498 #, fuzzy
22499 #| msgid "B<-h> | B<--human-readable>"
22500 msgid "B<--machine-readable>"
22501 msgstr "B<-h> | B<--human-readable>"
22502
22503 #. type: textblock
22504 #: ../resize/virt-resize.pod:354
22505 msgid ""
22506 "This option is used to make the output more machine friendly when being "
22507 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
22508 msgstr ""
22509
22510 #. type: =item
22511 #: ../resize/virt-resize.pod:360
22512 #, fuzzy
22513 #| msgid "B<--debug>"
22514 msgid "B<--dryrun>"
22515 msgstr "B<--debug>"
22516
22517 #. type: textblock
22518 #: ../resize/virt-resize.pod:362
22519 msgid "Print a summary of what would be done, but don't do anything."
22520 msgstr ""
22521
22522 #. type: =item
22523 #: ../resize/virt-resize.pod:364
22524 msgid "B<--no-copy-boot-loader>"
22525 msgstr ""
22526
22527 #. type: textblock
22528 #: ../resize/virt-resize.pod:366
22529 msgid ""
22530 "By default, virt-resize copies over some sectors at the start of the disk "
22531 "(up to the beginning of the first partition).  Commonly these sectors "
22532 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22533 "in order for the guest to boot correctly."
22534 msgstr ""
22535
22536 #. type: textblock
22537 #: ../resize/virt-resize.pod:371
22538 msgid ""
22539 "If you specify this flag, then this initial copy is not done.  You may need "
22540 "to reinstall the boot loader in this case."
22541 msgstr ""
22542
22543 #. type: =item
22544 #: ../resize/virt-resize.pod:374
22545 #, fuzzy
22546 #| msgid "B<--partition>"
22547 msgid "B<--no-extra-partition>"
22548 msgstr "B<--partition>"
22549
22550 #. type: textblock
22551 #: ../resize/virt-resize.pod:376
22552 msgid ""
22553 "By default, virt-resize creates an extra partition if there is any extra, "
22554 "unused space after all resizing has happened.  Use this option to prevent "
22555 "the extra partition from being created.  If you do this then the extra space "
22556 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22557 "tool in the guest."
22558 msgstr ""
22559
22560 #. type: textblock
22561 #: ../resize/virt-resize.pod:382
22562 msgid ""
22563 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22564 "will be created."
22565 msgstr ""
22566
22567 #. type: =item
22568 #: ../resize/virt-resize.pod:385
22569 #, fuzzy
22570 #| msgid "B<--no-dest-paths>"
22571 msgid "B<--no-expand-content>"
22572 msgstr "B<--no-dest-paths>"
22573
22574 #. type: textblock
22575 #: ../resize/virt-resize.pod:387
22576 msgid ""
22577 "By default, virt-resize will try to expand the direct contents of "
22578 "partitions, if it knows how (see I<--expand> option above)."
22579 msgstr ""
22580
22581 #. type: textblock
22582 #: ../resize/virt-resize.pod:390
22583 msgid ""
22584 "If you give the I<--no-expand-content> option then virt-resize will not "
22585 "attempt this."
22586 msgstr ""
22587
22588 #. type: =item
22589 #: ../resize/virt-resize.pod:393
22590 #, fuzzy
22591 #| msgid "ntfsresize-size"
22592 msgid "B<--ntfsresize-force>"
22593 msgstr "ntfsresize-size"
22594
22595 #. type: textblock
22596 #: ../resize/virt-resize.pod:395
22597 msgid ""
22598 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22599 "the NTFS disk is marked as needing a consistency check.  You have to use "
22600 "this option if you want to resize a Windows guest multiple times without "
22601 "booting into Windows between each resize."
22602 msgstr ""
22603
22604 #. type: =item
22605 #: ../resize/virt-resize.pod:401
22606 #, fuzzy
22607 #| msgid "B<--format>"
22608 msgid "B<--output-format> raw"
22609 msgstr "B<--format>"
22610
22611 #. type: textblock
22612 #: ../resize/virt-resize.pod:403
22613 msgid ""
22614 "Specify the format of the output disk image.  If this flag is not given then "
22615 "it is auto-detected from the image itself."
22616 msgstr ""
22617
22618 #. type: textblock
22619 #: ../resize/virt-resize.pod:409
22620 msgid ""
22621 "Note that this option I<does not create> the output format.  This option "
22622 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
22623 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
22624 "SPARSE RAW FORMATS>."
22625 msgstr ""
22626
22627 #. type: =item
22628 #: ../resize/virt-resize.pod:414
22629 msgid "B<-q>"
22630 msgstr ""
22631
22632 #. type: =item
22633 #: ../resize/virt-resize.pod:416
22634 #, fuzzy
22635 #| msgid "B<--live>"
22636 msgid "B<--quiet>"
22637 msgstr "B<--live>"
22638
22639 #. type: textblock
22640 #: ../resize/virt-resize.pod:418
22641 msgid "Don't print the summary."
22642 msgstr ""
22643
22644 #. type: =item
22645 #: ../resize/virt-resize.pod:420
22646 #, fuzzy
22647 #| msgid "B<part_size>"
22648 msgid "B<--resize part=size>"
22649 msgstr "B<part_size>"
22650
22651 #. type: textblock
22652 #: ../resize/virt-resize.pod:422
22653 msgid ""
22654 "Resize the named partition (expanding or shrinking it) so that it has the "
22655 "given size."
22656 msgstr ""
22657
22658 #. type: textblock
22659 #: ../resize/virt-resize.pod:425
22660 msgid ""
22661 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22662 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22663 "size; or as a relative number or percentage.  For example:"
22664 msgstr ""
22665
22666 #. type: verbatim
22667 #: ../resize/virt-resize.pod:431
22668 #, fuzzy, no-wrap
22669 #| msgid ""
22670 #| " hexedit /dev/sda 1M\n"
22671 #| "\n"
22672 msgid ""
22673 " --resize /dev/sda2=10G\n"
22674 "\n"
22675 msgstr ""
22676 " hexedit /dev/sda 1M\n"
22677 "\n"
22678
22679 #. type: verbatim
22680 #: ../resize/virt-resize.pod:433
22681 #, fuzzy, no-wrap
22682 #| msgid ""
22683 #| " pvresize device\n"
22684 #| "\n"
22685 msgid ""
22686 " --resize /dev/sda4=90%\n"
22687 "\n"
22688 msgstr ""
22689 " pvresize пристрій\n"
22690 "\n"
22691
22692 #. type: verbatim
22693 #: ../resize/virt-resize.pod:435
22694 #, fuzzy, no-wrap
22695 #| msgid ""
22696 #| " hexedit /dev/sda 1M\n"
22697 #| "\n"
22698 msgid ""
22699 " --resize /dev/sda2=+1G\n"
22700 "\n"
22701 msgstr ""
22702 " hexedit /dev/sda 1M\n"
22703 "\n"
22704
22705 #. type: verbatim
22706 #: ../resize/virt-resize.pod:437
22707 #, fuzzy, no-wrap
22708 #| msgid ""
22709 #| " hexedit /dev/sda 1M\n"
22710 #| "\n"
22711 msgid ""
22712 " --resize /dev/sda2=-200M\n"
22713 "\n"
22714 msgstr ""
22715 " hexedit /dev/sda 1M\n"
22716 "\n"
22717
22718 #. type: verbatim
22719 #: ../resize/virt-resize.pod:439
22720 #, fuzzy, no-wrap
22721 #| msgid ""
22722 #| " hexedit /dev/sda 1M\n"
22723 #| "\n"
22724 msgid ""
22725 " --resize /dev/sda1=+128K\n"
22726 "\n"
22727 msgstr ""
22728 " hexedit /dev/sda 1M\n"
22729 "\n"
22730
22731 #. type: verbatim
22732 #: ../resize/virt-resize.pod:441
22733 #, fuzzy, no-wrap
22734 #| msgid ""
22735 #| " hexedit /dev/sda 1M\n"
22736 #| "\n"
22737 msgid ""
22738 " --resize /dev/sda1=+10%\n"
22739 "\n"
22740 msgstr ""
22741 " hexedit /dev/sda 1M\n"
22742 "\n"
22743
22744 #. type: verbatim
22745 #: ../resize/virt-resize.pod:443
22746 #, fuzzy, no-wrap
22747 #| msgid ""
22748 #| " hexedit /dev/sda 1M\n"
22749 #| "\n"
22750 msgid ""
22751 " --resize /dev/sda1=-10%\n"
22752 "\n"
22753 msgstr ""
22754 " hexedit /dev/sda 1M\n"
22755 "\n"
22756
22757 #. type: textblock
22758 #: ../resize/virt-resize.pod:445
22759 msgid ""
22760 "You can increase the size of any partition.  Virt-resize will expand the "
22761 "direct content of the partition if it knows how (see I<--expand> below)."
22762 msgstr ""
22763
22764 #. type: textblock
22765 #: ../resize/virt-resize.pod:449
22766 msgid ""
22767 "You can only I<decrease> the size of partitions that contain filesystems or "
22768 "PVs which have already been shrunk.  Virt-resize will check this has been "
22769 "done before proceeding, or else will print an error (see also I<--resize-"
22770 "force>)."
22771 msgstr ""
22772
22773 #. type: =item
22774 #: ../resize/virt-resize.pod:456
22775 msgid "B<--resize-force part=size>"
22776 msgstr ""
22777
22778 #. type: textblock
22779 #: ../resize/virt-resize.pod:458
22780 msgid ""
22781 "This is the same as I<--resize> except that it will let you decrease the "
22782 "size of any partition.  Generally this means you will lose any data which "
22783 "was at the end of the partition you shrink, but you may not care about that "
22784 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
22785 "as a swap partition)."
22786 msgstr ""
22787
22788 #. type: textblock
22789 #: ../resize/virt-resize.pod:464
22790 msgid "See also the I<--ignore> option."
22791 msgstr ""
22792
22793 #. type: =item
22794 #: ../resize/virt-resize.pod:466
22795 #, fuzzy
22796 #| msgid "B<--partition>"
22797 msgid "B<--shrink part>"
22798 msgstr "B<--partition>"
22799
22800 #. type: textblock
22801 #: ../resize/virt-resize.pod:468
22802 msgid ""
22803 "Shrink the named partition until the overall disk image fits in the "
22804 "destination.  The named partition B<must> contain a filesystem or PV which "
22805 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
22806 "online tools).  Virt-resize will check this and give an error if it has not "
22807 "been done."
22808 msgstr ""
22809
22810 #. type: textblock
22811 #: ../resize/virt-resize.pod:474
22812 msgid ""
22813 "The amount by which the overall disk must be shrunk (after carrying out all "
22814 "other operations requested by the user) is called the \"deficit\".  For "
22815 "example, a straight copy (assume no other operations)  from a 5GB disk image "
22816 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
22817 "would give an error unless the user specified a partition to shrink and that "
22818 "partition had more than a gigabyte of free space."
22819 msgstr ""
22820
22821 #. type: =head1
22822 #: ../resize/virt-resize.pod:492
22823 msgid "MACHINE READABLE OUTPUT"
22824 msgstr ""
22825
22826 #. type: textblock
22827 #: ../resize/virt-resize.pod:494
22828 msgid ""
22829 "The I<--machine-readable> option can be used to make the output more machine "
22830 "friendly, which is useful when calling virt-resize from other programs, GUIs "
22831 "etc."
22832 msgstr ""
22833
22834 #. type: textblock
22835 #: ../resize/virt-resize.pod:498
22836 msgid "There are two ways to use this option."
22837 msgstr ""
22838
22839 #. type: textblock
22840 #: ../resize/virt-resize.pod:500
22841 msgid ""
22842 "Firstly use the option on its own to query the capabilities of the virt-"
22843 "resize binary.  Typical output looks like this:"
22844 msgstr ""
22845
22846 #. type: verbatim
22847 #: ../resize/virt-resize.pod:503
22848 #, no-wrap
22849 msgid ""
22850 " $ virt-resize --machine-readable\n"
22851 " virt-resize\n"
22852 " ntfsresize-force\n"
22853 " 32bitok\n"
22854 " ntfs\n"
22855 " btrfs\n"
22856 "\n"
22857 msgstr ""
22858
22859 #. type: textblock
22860 #: ../resize/virt-resize.pod:510
22861 msgid ""
22862 "A list of features is printed, one per line, and the program exits with "
22863 "status 0."
22864 msgstr ""
22865
22866 #. type: textblock
22867 #: ../resize/virt-resize.pod:513
22868 msgid ""
22869 "Secondly use the option in conjunction with other options to make the "
22870 "regular program output more machine friendly."
22871 msgstr ""
22872
22873 #. type: textblock
22874 #: ../resize/virt-resize.pod:516
22875 msgid "At the moment this means:"
22876 msgstr ""
22877
22878 #. type: textblock
22879 #: ../resize/virt-resize.pod:522
22880 msgid ""
22881 "Progress bar messages can be parsed from stdout by looking for this regular "
22882 "expression:"
22883 msgstr ""
22884
22885 #. type: verbatim
22886 #: ../resize/virt-resize.pod:525
22887 #, no-wrap
22888 msgid ""
22889 " ^[0-9]+/[0-9]+$\n"
22890 "\n"
22891 msgstr ""
22892
22893 #. type: textblock
22894 #: ../resize/virt-resize.pod:529
22895 msgid ""
22896 "The calling program should treat messages sent to stdout (except for "
22897 "progress bar messages) as status messages.  They can be logged and/or "
22898 "displayed to the user."
22899 msgstr ""
22900
22901 #. type: textblock
22902 #: ../resize/virt-resize.pod:535
22903 msgid ""
22904 "The calling program should treat messages sent to stderr as error messages.  "
22905 "In addition, virt-resize exits with a non-zero status code if there was a "
22906 "fatal error."
22907 msgstr ""
22908
22909 #. type: textblock
22910 #: ../resize/virt-resize.pod:541
22911 msgid ""
22912 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
22913 "readable> option and will return an error."
22914 msgstr ""
22915
22916 #. type: =head2
22917 #: ../resize/virt-resize.pod:546
22918 msgid "\"Partition 1 does not end on cylinder boundary.\""
22919 msgstr ""
22920
22921 #. type: textblock
22922 #: ../resize/virt-resize.pod:548
22923 msgid ""
22924 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
22925 "means the partitions will not be aligned to the ancient CHS geometry.  "
22926 "However CHS geometry is meaningless for disks manufactured since the early "
22927 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
22928 "cylinders is not required by any modern operating system."
22929 msgstr ""
22930
22931 #. type: =head2
22932 #: ../resize/virt-resize.pod:555
22933 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
22934 msgstr ""
22935
22936 #. type: textblock
22937 #: ../resize/virt-resize.pod:557
22938 msgid ""
22939 "In Windows Vista and later versions, Microsoft switched to using a separate "
22940 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
22941 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
22942 "the boot partition.  Doing so seems to break the guest completely.  However "
22943 "expanding the second partition (ie. C: drive) should work."
22944 msgstr ""
22945
22946 #. type: textblock
22947 #: ../resize/virt-resize.pod:564
22948 msgid ""
22949 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
22950 "NTFS partitions have been expanded.  This is just a safety check and (unless "
22951 "it find errors) is nothing to worry about."
22952 msgstr ""
22953
22954 #. type: =head2
22955 #: ../resize/virt-resize.pod:568
22956 msgid "GUEST BOOT STUCK AT \"GRUB\""
22957 msgstr ""
22958
22959 #. type: textblock
22960 #: ../resize/virt-resize.pod:570
22961 msgid ""
22962 "If a Linux guest does not boot after resizing, and the boot is stuck after "
22963 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
22964 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
22965 "although we think is to do with partition alignment."
22966 msgstr ""
22967
22968 #. type: verbatim
22969 #: ../resize/virt-resize.pod:575
22970 #, no-wrap
22971 msgid ""
22972 " guestfish -i -a newdisk\n"
22973 " ><fs> cat /boot/grub/device.map\n"
22974 " # check the contents of this file are sensible or\n"
22975 " # edit the file if necessary\n"
22976 " ><fs> grub-install / /dev/vda\n"
22977 " ><fs> exit\n"
22978 "\n"
22979 msgstr ""
22980
22981 #. type: textblock
22982 #: ../resize/virt-resize.pod:582
22983 msgid ""
22984 "For more flexible guest reconfiguration, including if you need to specify "
22985 "other parameters to grub-install, use L<virt-rescue(1)>."
22986 msgstr ""
22987
22988 #. type: =head1
22989 #: ../resize/virt-resize.pod:585
22990 msgid "ALTERNATIVE TOOLS"
22991 msgstr ""
22992
22993 #. type: textblock
22994 #: ../resize/virt-resize.pod:587
22995 msgid ""
22996 "There are several proprietary tools for resizing partitions.  We won't "
22997 "mention any here."
22998 msgstr ""
22999
23000 #. type: textblock
23001 #: ../resize/virt-resize.pod:590
23002 msgid ""
23003 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23004 "operations on disk images.  They can resize and move partitions, but I don't "
23005 "think they can do anything with the contents, and they certainly don't "
23006 "understand LVM."
23007 msgstr ""
23008
23009 #. type: textblock
23010 #: ../resize/virt-resize.pod:595
23011 msgid ""
23012 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23013 "but at a much lower level.  You will probably end up hand-calculating sector "
23014 "offsets, which is something that virt-resize was designed to avoid.  If you "
23015 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23016 "I<--debug> flag."
23017 msgstr ""
23018
23019 #. type: textblock
23020 #: ../resize/virt-resize.pod:610
23021 msgid ""
23022 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23023 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23024 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23025 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
23026 msgstr ""
23027
23028 #. type: textblock
23029 #: ../ruby/examples/guestfs-ruby.pod:5
23030 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23031 msgstr ""
23032
23033 #. type: verbatim
23034 #: ../ruby/examples/guestfs-ruby.pod:9
23035 #, no-wrap
23036 msgid ""
23037 " require 'guestfs'\n"
23038 " g = Guestfs::Guestfs.new()\n"
23039 " g.add_drive_opts(\"disk.img\",\n"
23040 "                  :readonly => 1, :format => \"raw\")\n"
23041 " g.launch()\n"
23042 "\n"
23043 msgstr ""
23044
23045 #. type: textblock
23046 #: ../ruby/examples/guestfs-ruby.pod:17
23047 msgid ""
23048 "This manual page documents how to call libguestfs from the Ruby programming "
23049 "language.  This page just documents the differences from the C API and gives "
23050 "some examples.  If you are not familiar with using libguestfs, you also need "
23051 "to read L<guestfs(3)>."
23052 msgstr ""
23053
23054 #. type: textblock
23055 #: ../ruby/examples/guestfs-ruby.pod:24
23056 msgid ""
23057 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
23058 "This has a single parameter which is the error message (a string)."
23059 msgstr ""
23060
23061 #. type: textblock
23062 #: ../ruby/examples/guestfs-ruby.pod:38
23063 #, fuzzy
23064 #| msgid ""
23065 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23066 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23067 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23068 msgid ""
23069 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
23070 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, L<http://"
23071 "libguestfs.org/>."
23072 msgstr ""
23073 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23074 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23075 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23076
23077 #. type: =head2
23078 #: ../src/guestfs-actions.pod:1
23079 msgid "guestfs_add_cdrom"
23080 msgstr ""
23081
23082 #. type: verbatim
23083 #: ../src/guestfs-actions.pod:3
23084 #, no-wrap
23085 msgid ""
23086 " int\n"
23087 " guestfs_add_cdrom (guestfs_h *g,\n"
23088 "                    const char *filename);\n"
23089 "\n"
23090 msgstr ""
23091
23092 #. type: textblock
23093 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
23094 #: ../src/guestfs-actions.pod:270
23095 msgid ""
23096 "I<This function is deprecated.> In new code, use the L</"
23097 "guestfs_add_drive_opts> call instead."
23098 msgstr ""
23099
23100 #. type: textblock
23101 #: ../src/guestfs-actions.pod:24
23102 msgid ""
23103 "This call checks for the existence of C<filename>.  This stops you from "
23104 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23105 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
23106 "instead."
23107 msgstr ""
23108
23109 #. type: textblock
23110 #: ../src/guestfs-actions.pod:31
23111 msgid ""
23112 "If you just want to add an ISO file (often you use this as an efficient way "
23113 "to transfer large files into the guest), then you should probably use "
23114 "C<guestfs_add_drive_ro> instead."
23115 msgstr ""
23116
23117 #. type: textblock
23118 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
23119 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23120 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
23121 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23122 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23123 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23124 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23125 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23126 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23127 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23128 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23129 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23130 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23131 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
23132 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
23133 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
23134 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
23135 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1520
23136 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
23137 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
23138 #: ../src/guestfs-actions.pod:2346 ../src/guestfs-actions.pod:2490
23139 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2586
23140 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
23141 #: ../src/guestfs-actions.pod:3666 ../src/guestfs-actions.pod:3855
23142 #: ../src/guestfs-actions.pod:3869 ../src/guestfs-actions.pod:3882
23143 #: ../src/guestfs-actions.pod:3896 ../src/guestfs-actions.pod:3911
23144 #: ../src/guestfs-actions.pod:3947 ../src/guestfs-actions.pod:4019
23145 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4056
23146 #: ../src/guestfs-actions.pod:4079 ../src/guestfs-actions.pod:4102
23147 #: ../src/guestfs-actions.pod:4137 ../src/guestfs-actions.pod:4156
23148 #: ../src/guestfs-actions.pod:4175 ../src/guestfs-actions.pod:4210
23149 #: ../src/guestfs-actions.pod:4222 ../src/guestfs-actions.pod:4258
23150 #: ../src/guestfs-actions.pod:4274 ../src/guestfs-actions.pod:4287
23151 #: ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4319
23152 #: ../src/guestfs-actions.pod:4412 ../src/guestfs-actions.pod:4432
23153 #: ../src/guestfs-actions.pod:4445 ../src/guestfs-actions.pod:4496
23154 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4532
23155 #: ../src/guestfs-actions.pod:4548 ../src/guestfs-actions.pod:4562
23156 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:4593
23157 #: ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4635
23158 #: ../src/guestfs-actions.pod:4698 ../src/guestfs-actions.pod:4771
23159 #: ../src/guestfs-actions.pod:4802 ../src/guestfs-actions.pod:4821
23160 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4852
23161 #: ../src/guestfs-actions.pod:4869 ../src/guestfs-actions.pod:4882
23162 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4912
23163 #: ../src/guestfs-actions.pod:4954 ../src/guestfs-actions.pod:4980
23164 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5039
23165 #: ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:5070
23166 #: ../src/guestfs-actions.pod:5119 ../src/guestfs-actions.pod:5172
23167 #: ../src/guestfs-actions.pod:5219 ../src/guestfs-actions.pod:5262
23168 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5307
23169 #: ../src/guestfs-actions.pod:5325 ../src/guestfs-actions.pod:5465
23170 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5544
23171 #: ../src/guestfs-actions.pod:5562 ../src/guestfs-actions.pod:5594
23172 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5677
23173 #: ../src/guestfs-actions.pod:5690 ../src/guestfs-actions.pod:5704
23174 #: ../src/guestfs-actions.pod:5993 ../src/guestfs-actions.pod:6012
23175 #: ../src/guestfs-actions.pod:6031 ../src/guestfs-actions.pod:6045
23176 #: ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6071
23177 #: ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6097
23178 #: ../src/guestfs-actions.pod:6113 ../src/guestfs-actions.pod:6134
23179 #: ../src/guestfs-actions.pod:6153 ../src/guestfs-actions.pod:6172
23180 #: ../src/guestfs-actions.pod:6202 ../src/guestfs-actions.pod:6220
23181 #: ../src/guestfs-actions.pod:6243 ../src/guestfs-actions.pod:6261
23182 #: ../src/guestfs-actions.pod:6280 ../src/guestfs-actions.pod:6301
23183 #: ../src/guestfs-actions.pod:6320 ../src/guestfs-actions.pod:6337
23184 #: ../src/guestfs-actions.pod:6356 ../src/guestfs-actions.pod:6384
23185 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6427
23186 #: ../src/guestfs-actions.pod:6451 ../src/guestfs-actions.pod:6470
23187 #: ../src/guestfs-actions.pod:6485 ../src/guestfs-actions.pod:6504
23188 #: ../src/guestfs-actions.pod:6548 ../src/guestfs-actions.pod:6578
23189 #: ../src/guestfs-actions.pod:6611 ../src/guestfs-actions.pod:6726
23190 #: ../src/guestfs-actions.pod:6847 ../src/guestfs-actions.pod:6859
23191 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6885
23192 #: ../src/guestfs-actions.pod:6907 ../src/guestfs-actions.pod:6920
23193 #: ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6946
23194 #: ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:7020
23195 #: ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7053
23196 #: ../src/guestfs-actions.pod:7069 ../src/guestfs-actions.pod:7086
23197 #: ../src/guestfs-actions.pod:7099 ../src/guestfs-actions.pod:7119
23198 #: ../src/guestfs-actions.pod:7155 ../src/guestfs-actions.pod:7169
23199 #: ../src/guestfs-actions.pod:7210 ../src/guestfs-actions.pod:7223
23200 #: ../src/guestfs-actions.pod:7241 ../src/guestfs-actions.pod:7275
23201 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7427
23202 #: ../src/guestfs-actions.pod:7442 ../src/guestfs-actions.pod:7456
23203 #: ../src/guestfs-actions.pod:7511 ../src/guestfs-actions.pod:7524
23204 #: ../src/guestfs-actions.pod:7569 ../src/guestfs-actions.pod:7609
23205 #: ../src/guestfs-actions.pod:7665 ../src/guestfs-actions.pod:7685
23206 #: ../src/guestfs-actions.pod:7718 ../src/guestfs-actions.pod:7782
23207 #: ../src/guestfs-actions.pod:7805 ../src/guestfs-actions.pod:7834
23208 msgid "This function returns 0 on success or -1 on error."
23209 msgstr ""
23210
23211 #. type: textblock
23212 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23213 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
23214 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
23215 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3648
23216 #: ../src/guestfs-actions.pod:4956 ../src/guestfs-actions.pod:6222
23217 #: ../src/guestfs-actions.pod:6339 ../src/guestfs-actions.pod:6472
23218 #: ../src/guestfs-actions.pod:6963 ../src/guestfs-actions.pod:7088
23219 #: ../src/guestfs-actions.pod:7611
23220 msgid "(Added in 0.3)"
23221 msgstr ""
23222
23223 #. type: =head2
23224 #: ../src/guestfs-actions.pod:41
23225 msgid "guestfs_add_domain"
23226 msgstr ""
23227
23228 #. type: verbatim
23229 #: ../src/guestfs-actions.pod:43
23230 #, no-wrap
23231 msgid ""
23232 " int\n"
23233 " guestfs_add_domain (guestfs_h *g,\n"
23234 "                     const char *dom,\n"
23235 "                     ...);\n"
23236 "\n"
23237 msgstr ""
23238
23239 #. type: textblock
23240 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23241 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2831
23242 #: ../src/guestfs-actions.pod:4647 ../src/guestfs-actions.pod:4966
23243 #: ../src/guestfs-actions.pod:5183
23244 msgid ""
23245 "You may supply a list of optional arguments to this call.  Use zero or more "
23246 "of the following pairs of parameters, and terminate the list with C<-1> on "
23247 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
23248 msgstr ""
23249
23250 #. type: verbatim
23251 #: ../src/guestfs-actions.pod:53
23252 #, no-wrap
23253 msgid ""
23254 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23255 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23256 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23257 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23258 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23259 "\n"
23260 msgstr ""
23261
23262 #. type: textblock
23263 #: ../src/guestfs-actions.pod:59
23264 msgid ""
23265 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23266 "It works by connecting to libvirt, requesting the domain and domain XML from "
23267 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23268 "one."
23269 msgstr ""
23270
23271 #. type: textblock
23272 #: ../src/guestfs-actions.pod:94
23273 msgid ""
23274 "The other optional parameters are passed directly through to "
23275 "C<guestfs_add_drive_opts>."
23276 msgstr ""
23277
23278 #. type: textblock
23279 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23280 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23281 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23282 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
23283 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
23284 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
23285 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
23286 #: ../src/guestfs-actions.pod:2477 ../src/guestfs-actions.pod:2949
23287 #: ../src/guestfs-actions.pod:2967 ../src/guestfs-actions.pod:5142
23288 #: ../src/guestfs-actions.pod:5362 ../src/guestfs-actions.pod:5774
23289 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:7196
23290 #: ../src/guestfs-actions.pod:7622 ../src/guestfs-actions.pod:7635
23291 #: ../src/guestfs-actions.pod:7648
23292 msgid "On error this function returns -1."
23293 msgstr ""
23294
23295 #. type: textblock
23296 #: ../src/guestfs-actions.pod:99
23297 msgid "(Added in 1.7.4)"
23298 msgstr ""
23299
23300 #. type: =head2
23301 #: ../src/guestfs-actions.pod:101
23302 msgid "guestfs_add_domain_va"
23303 msgstr ""
23304
23305 #. type: verbatim
23306 #: ../src/guestfs-actions.pod:103
23307 #, no-wrap
23308 msgid ""
23309 " int\n"
23310 " guestfs_add_domain_va (guestfs_h *g,\n"
23311 "                        const char *dom,\n"
23312 "                        va_list args);\n"
23313 "\n"
23314 msgstr ""
23315
23316 #. type: textblock
23317 #: ../src/guestfs-actions.pod:108
23318 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23319 msgstr ""
23320
23321 #. type: textblock
23322 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23323 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23324 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23325 #: ../src/guestfs-actions.pod:2915 ../src/guestfs-actions.pod:2927
23326 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4724
23327 #: ../src/guestfs-actions.pod:4994 ../src/guestfs-actions.pod:5006
23328 #: ../src/guestfs-actions.pod:5232 ../src/guestfs-actions.pod:5243
23329 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23330 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23331
23332 #. type: =head2
23333 #: ../src/guestfs-actions.pod:112
23334 msgid "guestfs_add_domain_argv"
23335 msgstr "guestfs_add_domain_argv"
23336
23337 #. type: verbatim
23338 #: ../src/guestfs-actions.pod:114
23339 #, no-wrap
23340 msgid ""
23341 " int\n"
23342 " guestfs_add_domain_argv (guestfs_h *g,\n"
23343 "                          const char *dom,\n"
23344 "                          const struct guestfs_add_domain_argv *optargs);\n"
23345 "\n"
23346 msgstr ""
23347
23348 #. type: textblock
23349 #: ../src/guestfs-actions.pod:119
23350 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23351 msgstr ""
23352
23353 #. type: =head2
23354 #: ../src/guestfs-actions.pod:123
23355 msgid "guestfs_add_drive"
23356 msgstr ""
23357
23358 #. type: verbatim
23359 #: ../src/guestfs-actions.pod:125
23360 #, no-wrap
23361 msgid ""
23362 " int\n"
23363 " guestfs_add_drive (guestfs_h *g,\n"
23364 "                    const char *filename);\n"
23365 "\n"
23366 msgstr ""
23367
23368 #. type: textblock
23369 #: ../src/guestfs-actions.pod:129
23370 msgid ""
23371 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23372 "optional parameters, so the disk is added writable, with the format being "
23373 "detected automatically."
23374 msgstr ""
23375
23376 #. type: textblock
23377 #: ../src/guestfs-actions.pod:133
23378 msgid ""
23379 "Automatic detection of the format opens you up to a potential security hole "
23380 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23381 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23382 "you should think about replacing calls to this function with calls to "
23383 "C<guestfs_add_drive_opts>, and specifying the format."
23384 msgstr ""
23385
23386 #. type: =head2
23387 #: ../src/guestfs-actions.pod:144
23388 msgid "guestfs_add_drive_opts"
23389 msgstr ""
23390
23391 #. type: verbatim
23392 #: ../src/guestfs-actions.pod:146
23393 #, no-wrap
23394 msgid ""
23395 " int\n"
23396 " guestfs_add_drive_opts (guestfs_h *g,\n"
23397 "                         const char *filename,\n"
23398 "                         ...);\n"
23399 "\n"
23400 msgstr ""
23401
23402 #. type: verbatim
23403 #: ../src/guestfs-actions.pod:156
23404 #, no-wrap
23405 msgid ""
23406 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23407 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23408 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23409 "\n"
23410 msgstr ""
23411
23412 #. type: textblock
23413 #: ../src/guestfs-actions.pod:185
23414 msgid ""
23415 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
23416 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
23417 "Possible formats include C<raw> and C<qcow2>."
23418 msgstr ""
23419
23420 #. type: textblock
23421 #: ../src/guestfs-actions.pod:196
23422 msgid ""
23423 "This rarely-used option lets you emulate the behaviour of the deprecated "
23424 "C<guestfs_add_drive_with_if> call (q.v.)"
23425 msgstr ""
23426
23427 #. type: textblock
23428 #: ../src/guestfs-actions.pod:203
23429 msgid "(Added in 1.5.23)"
23430 msgstr ""
23431
23432 #. type: =head2
23433 #: ../src/guestfs-actions.pod:205
23434 msgid "guestfs_add_drive_opts_va"
23435 msgstr ""
23436
23437 #. type: verbatim
23438 #: ../src/guestfs-actions.pod:207
23439 #, no-wrap
23440 msgid ""
23441 " int\n"
23442 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23443 "                            const char *filename,\n"
23444 "                            va_list args);\n"
23445 "\n"
23446 msgstr ""
23447
23448 #. type: textblock
23449 #: ../src/guestfs-actions.pod:212
23450 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23451 msgstr ""
23452
23453 #. type: =head2
23454 #: ../src/guestfs-actions.pod:216
23455 msgid "guestfs_add_drive_opts_argv"
23456 msgstr ""
23457
23458 #. type: verbatim
23459 #: ../src/guestfs-actions.pod:218
23460 #, no-wrap
23461 msgid ""
23462 " int\n"
23463 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23464 "                              const char *filename,\n"
23465 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
23466 "\n"
23467 msgstr ""
23468
23469 #. type: textblock
23470 #: ../src/guestfs-actions.pod:223
23471 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23472 msgstr ""
23473
23474 #. type: =head2
23475 #: ../src/guestfs-actions.pod:227
23476 msgid "guestfs_add_drive_ro"
23477 msgstr ""
23478
23479 #. type: verbatim
23480 #: ../src/guestfs-actions.pod:229
23481 #, no-wrap
23482 msgid ""
23483 " int\n"
23484 " guestfs_add_drive_ro (guestfs_h *g,\n"
23485 "                       const char *filename);\n"
23486 "\n"
23487 msgstr ""
23488
23489 #. type: textblock
23490 #: ../src/guestfs-actions.pod:233
23491 msgid ""
23492 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23493 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23494 "disk is added read-only, with the format being detected automatically."
23495 msgstr ""
23496
23497 #. type: textblock
23498 #: ../src/guestfs-actions.pod:240
23499 msgid "(Added in 1.0.38)"
23500 msgstr ""
23501
23502 #. type: =head2
23503 #: ../src/guestfs-actions.pod:242
23504 msgid "guestfs_add_drive_ro_with_if"
23505 msgstr ""
23506
23507 #. type: verbatim
23508 #: ../src/guestfs-actions.pod:244
23509 #, no-wrap
23510 msgid ""
23511 " int\n"
23512 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23513 "                               const char *filename,\n"
23514 "                               const char *iface);\n"
23515 "\n"
23516 msgstr ""
23517
23518 #. type: textblock
23519 #: ../src/guestfs-actions.pod:256
23520 msgid ""
23521 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23522 "QEMU interface emulation to use at run time."
23523 msgstr ""
23524
23525 #. type: textblock
23526 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23527 #: ../src/guestfs-actions.pod:2436
23528 msgid "(Added in 1.0.84)"
23529 msgstr ""
23530
23531 #. type: =head2
23532 #: ../src/guestfs-actions.pod:263
23533 msgid "guestfs_add_drive_with_if"
23534 msgstr ""
23535
23536 #. type: verbatim
23537 #: ../src/guestfs-actions.pod:265
23538 #, no-wrap
23539 msgid ""
23540 " int\n"
23541 " guestfs_add_drive_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:277
23549 msgid ""
23550 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23551 "QEMU interface emulation to use at run time."
23552 msgstr ""
23553
23554 #. type: =head2
23555 #: ../src/guestfs-actions.pod:284
23556 msgid "guestfs_aug_clear"
23557 msgstr ""
23558
23559 #. type: verbatim
23560 #: ../src/guestfs-actions.pod:286
23561 #, no-wrap
23562 msgid ""
23563 " int\n"
23564 " guestfs_aug_clear (guestfs_h *g,\n"
23565 "                    const char *augpath);\n"
23566 "\n"
23567 msgstr ""
23568
23569 #. type: textblock
23570 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
23571 msgid "(Added in 1.3.4)"
23572 msgstr ""
23573
23574 #. type: =head2
23575 #: ../src/guestfs-actions.pod:297
23576 msgid "guestfs_aug_close"
23577 msgstr ""
23578
23579 #. type: verbatim
23580 #: ../src/guestfs-actions.pod:299
23581 #, no-wrap
23582 msgid ""
23583 " int\n"
23584 " guestfs_aug_close (guestfs_h *g);\n"
23585 "\n"
23586 msgstr ""
23587
23588 #. type: textblock
23589 #: ../src/guestfs-actions.pod:302
23590 msgid ""
23591 "Close the current Augeas handle and free up any resources used by it.  After "
23592 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23593 "any other Augeas functions."
23594 msgstr ""
23595
23596 #. type: textblock
23597 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23598 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23599 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
23600 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
23601 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
23602 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
23603 #: ../src/guestfs-actions.pod:5851
23604 msgid "(Added in 0.7)"
23605 msgstr ""
23606
23607 #. type: =head2
23608 #: ../src/guestfs-actions.pod:311
23609 msgid "guestfs_aug_defnode"
23610 msgstr ""
23611
23612 #. type: verbatim
23613 #: ../src/guestfs-actions.pod:313
23614 #, no-wrap
23615 msgid ""
23616 " struct guestfs_int_bool *\n"
23617 " guestfs_aug_defnode (guestfs_h *g,\n"
23618 "                      const char *name,\n"
23619 "                      const char *expr,\n"
23620 "                      const char *val);\n"
23621 "\n"
23622 msgstr ""
23623
23624 #. type: textblock
23625 #: ../src/guestfs-actions.pod:322
23626 msgid ""
23627 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23628 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
23629 "containing that single node."
23630 msgstr ""
23631
23632 #. type: textblock
23633 #: ../src/guestfs-actions.pod:330
23634 msgid ""
23635 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23636 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
23637 msgstr ""
23638
23639 #. type: =head2
23640 #: ../src/guestfs-actions.pod:336
23641 msgid "guestfs_aug_defvar"
23642 msgstr ""
23643
23644 #. type: verbatim
23645 #: ../src/guestfs-actions.pod:338
23646 #, no-wrap
23647 msgid ""
23648 " int\n"
23649 " guestfs_aug_defvar (guestfs_h *g,\n"
23650 "                     const char *name,\n"
23651 "                     const char *expr);\n"
23652 "\n"
23653 msgstr ""
23654
23655 #. type: =head2
23656 #: ../src/guestfs-actions.pod:354
23657 msgid "guestfs_aug_get"
23658 msgstr ""
23659
23660 #. type: verbatim
23661 #: ../src/guestfs-actions.pod:356
23662 #, no-wrap
23663 msgid ""
23664 " char *\n"
23665 " guestfs_aug_get (guestfs_h *g,\n"
23666 "                  const char *augpath);\n"
23667 "\n"
23668 msgstr ""
23669
23670 #. type: textblock
23671 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
23672 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
23673 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
23674 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
23675 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
23676 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
23677 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
23678 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2014
23679 #: ../src/guestfs-actions.pod:2035 ../src/guestfs-actions.pod:2209
23680 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:2605
23681 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2799
23682 #: ../src/guestfs-actions.pod:2818 ../src/guestfs-actions.pod:3032
23683 #: ../src/guestfs-actions.pod:3060 ../src/guestfs-actions.pod:3081
23684 #: ../src/guestfs-actions.pod:3115 ../src/guestfs-actions.pod:3174
23685 #: ../src/guestfs-actions.pod:3194 ../src/guestfs-actions.pod:3214
23686 #: ../src/guestfs-actions.pod:3841 ../src/guestfs-actions.pod:4194
23687 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4474
23688 #: ../src/guestfs-actions.pod:5380 ../src/guestfs-actions.pod:5579
23689 #: ../src/guestfs-actions.pod:5749 ../src/guestfs-actions.pod:5927
23690 #: ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6632
23691 #: ../src/guestfs-actions.pod:6648 ../src/guestfs-actions.pod:6672
23692 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:7370
23693 #: ../src/guestfs-actions.pod:7389 ../src/guestfs-actions.pod:7407
23694 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7898
23695 msgid ""
23696 "This function returns a string, or NULL on error.  I<The caller must free "
23697 "the returned string after use>."
23698 msgstr ""
23699
23700 #. type: =head2
23701 #: ../src/guestfs-actions.pod:368
23702 msgid "guestfs_aug_init"
23703 msgstr ""
23704
23705 #. type: verbatim
23706 #: ../src/guestfs-actions.pod:370
23707 #, no-wrap
23708 msgid ""
23709 " int\n"
23710 " guestfs_aug_init (guestfs_h *g,\n"
23711 "                   const char *root,\n"
23712 "                   int flags);\n"
23713 "\n"
23714 msgstr ""
23715
23716 #. type: textblock
23717 #: ../src/guestfs-actions.pod:379
23718 msgid "You must call this before using any other C<guestfs_aug_*> commands."
23719 msgstr ""
23720
23721 #. type: textblock
23722 #: ../src/guestfs-actions.pod:404
23723 msgid ""
23724 "This option is only useful when debugging Augeas lenses.  Use of this option "
23725 "may require additional memory for the libguestfs appliance.  You may need to "
23726 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
23727 "C<guestfs_set_memsize>."
23728 msgstr ""
23729
23730 #. type: textblock
23731 #: ../src/guestfs-actions.pod:419
23732 msgid "Do not load the tree in C<guestfs_aug_init>."
23733 msgstr ""
23734
23735 #. type: textblock
23736 #: ../src/guestfs-actions.pod:423
23737 msgid "To close the handle, you can call C<guestfs_aug_close>."
23738 msgstr ""
23739
23740 #. type: =head2
23741 #: ../src/guestfs-actions.pod:431
23742 msgid "guestfs_aug_insert"
23743 msgstr ""
23744
23745 #. type: verbatim
23746 #: ../src/guestfs-actions.pod:433
23747 #, no-wrap
23748 msgid ""
23749 " int\n"
23750 " guestfs_aug_insert (guestfs_h *g,\n"
23751 "                     const char *augpath,\n"
23752 "                     const char *label,\n"
23753 "                     int before);\n"
23754 "\n"
23755 msgstr ""
23756
23757 #. type: =head2
23758 #: ../src/guestfs-actions.pod:451
23759 msgid "guestfs_aug_load"
23760 msgstr ""
23761
23762 #. type: verbatim
23763 #: ../src/guestfs-actions.pod:453
23764 #, no-wrap
23765 msgid ""
23766 " int\n"
23767 " guestfs_aug_load (guestfs_h *g);\n"
23768 "\n"
23769 msgstr ""
23770
23771 #. type: =head2
23772 #: ../src/guestfs-actions.pod:465
23773 msgid "guestfs_aug_ls"
23774 msgstr ""
23775
23776 #. type: verbatim
23777 #: ../src/guestfs-actions.pod:467
23778 #, no-wrap
23779 msgid ""
23780 " char **\n"
23781 " guestfs_aug_ls (guestfs_h *g,\n"
23782 "                 const char *augpath);\n"
23783 "\n"
23784 msgstr ""
23785
23786 #. type: textblock
23787 #: ../src/guestfs-actions.pod:471
23788 msgid ""
23789 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
23790 "sorting the resulting nodes into alphabetical order."
23791 msgstr ""
23792
23793 #. type: textblock
23794 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
23795 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
23796 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
23797 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
23798 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
23799 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
23800 #: ../src/guestfs-actions.pod:2359 ../src/guestfs-actions.pod:2383
23801 #: ../src/guestfs-actions.pod:2454 ../src/guestfs-actions.pod:2503
23802 #: ../src/guestfs-actions.pod:2760 ../src/guestfs-actions.pod:3134
23803 #: ../src/guestfs-actions.pod:3410 ../src/guestfs-actions.pod:3724
23804 #: ../src/guestfs-actions.pod:3741 ../src/guestfs-actions.pod:3761
23805 #: ../src/guestfs-actions.pod:3823 ../src/guestfs-actions.pod:3928
23806 #: ../src/guestfs-actions.pod:4336 ../src/guestfs-actions.pod:5103
23807 #: ../src/guestfs-actions.pod:5721 ../src/guestfs-actions.pod:5847
23808 #: ../src/guestfs-actions.pod:5961 ../src/guestfs-actions.pod:6712
23809 #: ../src/guestfs-actions.pod:6773 ../src/guestfs-actions.pod:6828
23810 #: ../src/guestfs-actions.pod:6974 ../src/guestfs-actions.pod:6998
23811 #: ../src/guestfs-actions.pod:7474 ../src/guestfs-actions.pod:7494
23812 #: ../src/guestfs-actions.pod:7541 ../src/guestfs-actions.pod:7735
23813 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:7848
23814 #: ../src/guestfs-actions.pod:7867 ../src/guestfs-actions.pod:7913
23815 #: ../src/guestfs-actions.pod:7932
23816 msgid ""
23817 "This function returns a NULL-terminated array of strings (like L<environ(3)"
23818 ">), or NULL if there was an error.  I<The caller must free the strings and "
23819 "the array after use>."
23820 msgstr ""
23821
23822 #. type: textblock
23823 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
23824 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
23825 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3519
23826 #: ../src/guestfs-actions.pod:4177 ../src/guestfs-actions.pod:4227
23827 #: ../src/guestfs-actions.pod:4414 ../src/guestfs-actions.pod:4447
23828 #: ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:5107
23829 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:6059
23830 #: ../src/guestfs-actions.pod:6073 ../src/guestfs-actions.pod:6085
23831 #: ../src/guestfs-actions.pod:6553 ../src/guestfs-actions.pod:7212
23832 #: ../src/guestfs-actions.pod:7225 ../src/guestfs-actions.pod:7458
23833 #: ../src/guestfs-actions.pod:7723
23834 msgid "(Added in 0.8)"
23835 msgstr ""
23836
23837 #. type: =head2
23838 #: ../src/guestfs-actions.pod:480
23839 msgid "guestfs_aug_match"
23840 msgstr ""
23841
23842 #. type: verbatim
23843 #: ../src/guestfs-actions.pod:482
23844 #, no-wrap
23845 msgid ""
23846 " char **\n"
23847 " guestfs_aug_match (guestfs_h *g,\n"
23848 "                    const char *augpath);\n"
23849 "\n"
23850 msgstr ""
23851
23852 #. type: =head2
23853 #: ../src/guestfs-actions.pod:496
23854 msgid "guestfs_aug_mv"
23855 msgstr ""
23856
23857 #. type: verbatim
23858 #: ../src/guestfs-actions.pod:498
23859 #, no-wrap
23860 msgid ""
23861 " int\n"
23862 " guestfs_aug_mv (guestfs_h *g,\n"
23863 "                 const char *src,\n"
23864 "                 const char *dest);\n"
23865 "\n"
23866 msgstr ""
23867
23868 #. type: =head2
23869 #: ../src/guestfs-actions.pod:510
23870 msgid "guestfs_aug_rm"
23871 msgstr ""
23872
23873 #. type: verbatim
23874 #: ../src/guestfs-actions.pod:512
23875 #, no-wrap
23876 msgid ""
23877 " int\n"
23878 " guestfs_aug_rm (guestfs_h *g,\n"
23879 "                 const char *augpath);\n"
23880 "\n"
23881 msgstr ""
23882
23883 #. type: =head2
23884 #: ../src/guestfs-actions.pod:524
23885 msgid "guestfs_aug_save"
23886 msgstr ""
23887
23888 #. type: verbatim
23889 #: ../src/guestfs-actions.pod:526
23890 #, no-wrap
23891 msgid ""
23892 " int\n"
23893 " guestfs_aug_save (guestfs_h *g);\n"
23894 "\n"
23895 msgstr ""
23896
23897 #. type: textblock
23898 #: ../src/guestfs-actions.pod:531
23899 msgid ""
23900 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
23901 "are saved."
23902 msgstr ""
23903
23904 #. type: =head2
23905 #: ../src/guestfs-actions.pod:538
23906 msgid "guestfs_aug_set"
23907 msgstr ""
23908
23909 #. type: verbatim
23910 #: ../src/guestfs-actions.pod:540
23911 #, no-wrap
23912 msgid ""
23913 " int\n"
23914 " guestfs_aug_set (guestfs_h *g,\n"
23915 "                  const char *augpath,\n"
23916 "                  const char *val);\n"
23917 "\n"
23918 msgstr ""
23919
23920 #. type: textblock
23921 #: ../src/guestfs-actions.pod:547
23922 msgid ""
23923 "In the Augeas API, it is possible to clear a node by setting the value to "
23924 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
23925 "this call.  Instead you must use the C<guestfs_aug_clear> call."
23926 msgstr ""
23927
23928 #. type: =head2
23929 #: ../src/guestfs-actions.pod:556
23930 msgid "guestfs_available"
23931 msgstr ""
23932
23933 #. type: verbatim
23934 #: ../src/guestfs-actions.pod:558
23935 #, no-wrap
23936 msgid ""
23937 " int\n"
23938 " guestfs_available (guestfs_h *g,\n"
23939 "                    char *const *groups);\n"
23940 "\n"
23941 msgstr ""
23942
23943 #. type: textblock
23944 #: ../src/guestfs-actions.pod:566
23945 msgid ""
23946 "The libguestfs groups, and the functions that those groups correspond to, "
23947 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
23948 "runtime by calling C<guestfs_available_all_groups>."
23949 msgstr ""
23950
23951 #. type: textblock
23952 #: ../src/guestfs-actions.pod:590
23953 msgid "You must call C<guestfs_launch> before calling this function."
23954 msgstr ""
23955
23956 #. type: textblock
23957 #: ../src/guestfs-actions.pod:612
23958 msgid ""
23959 "This call was added in version C<1.0.80>.  In previous versions of "
23960 "libguestfs all you could do would be to speculatively execute a command to "
23961 "find out if the daemon implemented it.  See also C<guestfs_version>."
23962 msgstr ""
23963
23964 #. type: textblock
23965 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
23966 msgid "(Added in 1.0.80)"
23967 msgstr ""
23968
23969 #. type: =head2
23970 #: ../src/guestfs-actions.pod:623
23971 msgid "guestfs_available_all_groups"
23972 msgstr ""
23973
23974 #. type: verbatim
23975 #: ../src/guestfs-actions.pod:625
23976 #, no-wrap
23977 msgid ""
23978 " char **\n"
23979 " guestfs_available_all_groups (guestfs_h *g);\n"
23980 "\n"
23981 msgstr ""
23982
23983 #. type: textblock
23984 #: ../src/guestfs-actions.pod:628
23985 msgid ""
23986 "This command returns a list of all optional groups that this daemon knows "
23987 "about.  Note this returns both supported and unsupported groups.  To find "
23988 "out which ones the daemon can actually support you have to call "
23989 "C<guestfs_available> on each member of the returned list."
23990 msgstr ""
23991
23992 #. type: textblock
23993 #: ../src/guestfs-actions.pod:634
23994 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
23995 msgstr ""
23996
23997 #. type: textblock
23998 #: ../src/guestfs-actions.pod:640
23999 msgid "(Added in 1.3.15)"
24000 msgstr ""
24001
24002 #. type: =head2
24003 #: ../src/guestfs-actions.pod:642
24004 msgid "guestfs_base64_in"
24005 msgstr ""
24006
24007 #. type: verbatim
24008 #: ../src/guestfs-actions.pod:644
24009 #, no-wrap
24010 msgid ""
24011 " int\n"
24012 " guestfs_base64_in (guestfs_h *g,\n"
24013 "                    const char *base64file,\n"
24014 "                    const char *filename);\n"
24015 "\n"
24016 msgstr ""
24017
24018 #. type: textblock
24019 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
24020 msgid "(Added in 1.3.5)"
24021 msgstr ""
24022
24023 #. type: =head2
24024 #: ../src/guestfs-actions.pod:656
24025 msgid "guestfs_base64_out"
24026 msgstr ""
24027
24028 #. type: verbatim
24029 #: ../src/guestfs-actions.pod:658
24030 #, no-wrap
24031 msgid ""
24032 " int\n"
24033 " guestfs_base64_out (guestfs_h *g,\n"
24034 "                     const char *filename,\n"
24035 "                     const char *base64file);\n"
24036 "\n"
24037 msgstr ""
24038
24039 #. type: =head2
24040 #: ../src/guestfs-actions.pod:670
24041 msgid "guestfs_blockdev_flushbufs"
24042 msgstr ""
24043
24044 #. type: verbatim
24045 #: ../src/guestfs-actions.pod:672
24046 #, no-wrap
24047 msgid ""
24048 " int\n"
24049 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24050 "                             const char *device);\n"
24051 "\n"
24052 msgstr ""
24053
24054 #. type: textblock
24055 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
24056 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
24057 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
24058 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24059 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
24060 msgid "(Added in 0.9.3)"
24061 msgstr ""
24062
24063 #. type: =head2
24064 #: ../src/guestfs-actions.pod:685
24065 msgid "guestfs_blockdev_getbsz"
24066 msgstr ""
24067
24068 #. type: verbatim
24069 #: ../src/guestfs-actions.pod:687
24070 #, no-wrap
24071 msgid ""
24072 " int\n"
24073 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24074 "                          const char *device);\n"
24075 "\n"
24076 msgstr ""
24077
24078 #. type: =head2
24079 #: ../src/guestfs-actions.pod:702
24080 msgid "guestfs_blockdev_getro"
24081 msgstr ""
24082
24083 #. type: verbatim
24084 #: ../src/guestfs-actions.pod:704
24085 #, no-wrap
24086 msgid ""
24087 " int\n"
24088 " guestfs_blockdev_getro (guestfs_h *g,\n"
24089 "                         const char *device);\n"
24090 "\n"
24091 msgstr ""
24092
24093 #. type: textblock
24094 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
24095 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
24096 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
24097 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
24098 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
24099 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3231
24100 #: ../src/guestfs-actions.pod:3247 ../src/guestfs-actions.pod:3265
24101 #: ../src/guestfs-actions.pod:3427 ../src/guestfs-actions.pod:3441
24102 #: ../src/guestfs-actions.pod:3456 ../src/guestfs-actions.pod:3470
24103 #: ../src/guestfs-actions.pod:3486 ../src/guestfs-actions.pod:3501
24104 #: ../src/guestfs-actions.pod:3517 ../src/guestfs-actions.pod:3531
24105 #: ../src/guestfs-actions.pod:3544 ../src/guestfs-actions.pod:3558
24106 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3588
24107 #: ../src/guestfs-actions.pod:3601 ../src/guestfs-actions.pod:3615
24108 #: ../src/guestfs-actions.pod:5344
24109 msgid "This function returns a C truth value on success or -1 on error."
24110 msgstr ""
24111
24112 #. type: =head2
24113 #: ../src/guestfs-actions.pod:717
24114 msgid "guestfs_blockdev_getsize64"
24115 msgstr ""
24116
24117 #. type: verbatim
24118 #: ../src/guestfs-actions.pod:719
24119 #, no-wrap
24120 msgid ""
24121 " int64_t\n"
24122 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24123 "                             const char *device);\n"
24124 "\n"
24125 msgstr ""
24126
24127 #. type: textblock
24128 #: ../src/guestfs-actions.pod:725
24129 msgid "See also C<guestfs_blockdev_getsz>."
24130 msgstr ""
24131
24132 #. type: =head2
24133 #: ../src/guestfs-actions.pod:733
24134 msgid "guestfs_blockdev_getss"
24135 msgstr ""
24136
24137 #. type: verbatim
24138 #: ../src/guestfs-actions.pod:735
24139 #, no-wrap
24140 msgid ""
24141 " int\n"
24142 " guestfs_blockdev_getss (guestfs_h *g,\n"
24143 "                         const char *device);\n"
24144 "\n"
24145 msgstr ""
24146
24147 #. type: textblock
24148 #: ../src/guestfs-actions.pod:742
24149 msgid ""
24150 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24151 "that)."
24152 msgstr ""
24153
24154 #. type: =head2
24155 #: ../src/guestfs-actions.pod:751
24156 msgid "guestfs_blockdev_getsz"
24157 msgstr ""
24158
24159 #. type: verbatim
24160 #: ../src/guestfs-actions.pod:753
24161 #, no-wrap
24162 msgid ""
24163 " int64_t\n"
24164 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24165 "                         const char *device);\n"
24166 "\n"
24167 msgstr ""
24168
24169 #. type: textblock
24170 #: ../src/guestfs-actions.pod:760
24171 msgid ""
24172 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24173 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24174 msgstr ""
24175
24176 #. type: =head2
24177 #: ../src/guestfs-actions.pod:770
24178 msgid "guestfs_blockdev_rereadpt"
24179 msgstr ""
24180
24181 #. type: verbatim
24182 #: ../src/guestfs-actions.pod:772
24183 #, no-wrap
24184 msgid ""
24185 " int\n"
24186 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24187 "                            const char *device);\n"
24188 "\n"
24189 msgstr ""
24190
24191 #. type: =head2
24192 #: ../src/guestfs-actions.pod:784
24193 msgid "guestfs_blockdev_setbsz"
24194 msgstr ""
24195
24196 #. type: verbatim
24197 #: ../src/guestfs-actions.pod:786
24198 #, no-wrap
24199 msgid ""
24200 " int\n"
24201 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24202 "                          const char *device,\n"
24203 "                          int blocksize);\n"
24204 "\n"
24205 msgstr ""
24206
24207 #. type: =head2
24208 #: ../src/guestfs-actions.pod:802
24209 msgid "guestfs_blockdev_setro"
24210 msgstr ""
24211
24212 #. type: verbatim
24213 #: ../src/guestfs-actions.pod:804
24214 #, no-wrap
24215 msgid ""
24216 " int\n"
24217 " guestfs_blockdev_setro (guestfs_h *g,\n"
24218 "                         const char *device);\n"
24219 "\n"
24220 msgstr ""
24221
24222 #. type: =head2
24223 #: ../src/guestfs-actions.pod:816
24224 msgid "guestfs_blockdev_setrw"
24225 msgstr ""
24226
24227 #. type: verbatim
24228 #: ../src/guestfs-actions.pod:818
24229 #, no-wrap
24230 msgid ""
24231 " int\n"
24232 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24233 "                         const char *device);\n"
24234 "\n"
24235 msgstr ""
24236
24237 #. type: =head2
24238 #: ../src/guestfs-actions.pod:830
24239 msgid "guestfs_btrfs_filesystem_resize"
24240 msgstr ""
24241
24242 #. type: verbatim
24243 #: ../src/guestfs-actions.pod:832
24244 #, no-wrap
24245 msgid ""
24246 " int\n"
24247 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24248 "                                  const char *mountpoint,\n"
24249 "                                  ...);\n"
24250 "\n"
24251 msgstr ""
24252
24253 #. type: verbatim
24254 #: ../src/guestfs-actions.pod:842
24255 #, no-wrap
24256 msgid ""
24257 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24258 "\n"
24259 msgstr ""
24260
24261 #. type: textblock
24262 #: ../src/guestfs-actions.pod:865
24263 msgid "(Added in 1.11.17)"
24264 msgstr ""
24265
24266 #. type: =head2
24267 #: ../src/guestfs-actions.pod:867
24268 msgid "guestfs_btrfs_filesystem_resize_va"
24269 msgstr ""
24270
24271 #. type: verbatim
24272 #: ../src/guestfs-actions.pod:869
24273 #, no-wrap
24274 msgid ""
24275 " int\n"
24276 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24277 "                                     const char *mountpoint,\n"
24278 "                                     va_list args);\n"
24279 "\n"
24280 msgstr ""
24281
24282 #. type: textblock
24283 #: ../src/guestfs-actions.pod:874
24284 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24285 msgstr ""
24286
24287 #. type: =head2
24288 #: ../src/guestfs-actions.pod:878
24289 msgid "guestfs_btrfs_filesystem_resize_argv"
24290 msgstr ""
24291
24292 #. type: verbatim
24293 #: ../src/guestfs-actions.pod:880
24294 #, no-wrap
24295 msgid ""
24296 " int\n"
24297 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24298 "                                       const char *mountpoint,\n"
24299 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24300 "\n"
24301 msgstr ""
24302
24303 #. type: textblock
24304 #: ../src/guestfs-actions.pod:885
24305 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24306 msgstr ""
24307
24308 #. type: =head2
24309 #: ../src/guestfs-actions.pod:889
24310 msgid "guestfs_case_sensitive_path"
24311 msgstr ""
24312
24313 #. type: verbatim
24314 #: ../src/guestfs-actions.pod:891
24315 #, no-wrap
24316 msgid ""
24317 " char *\n"
24318 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24319 "                              const char *path);\n"
24320 "\n"
24321 msgstr ""
24322
24323 #. type: textblock
24324 #: ../src/guestfs-actions.pod:917
24325 msgid ""
24326 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
24327 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24328 "how the directories were originally created under Windows)."
24329 msgstr ""
24330
24331 #. type: textblock
24332 #: ../src/guestfs-actions.pod:925
24333 msgid "See also C<guestfs_realpath>."
24334 msgstr ""
24335
24336 #. type: textblock
24337 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7392
24338 msgid "(Added in 1.0.75)"
24339 msgstr ""
24340
24341 #. type: =head2
24342 #: ../src/guestfs-actions.pod:932
24343 msgid "guestfs_cat"
24344 msgstr ""
24345
24346 #. type: verbatim
24347 #: ../src/guestfs-actions.pod:934
24348 #, no-wrap
24349 msgid ""
24350 " char *\n"
24351 " guestfs_cat (guestfs_h *g,\n"
24352 "              const char *path);\n"
24353 "\n"
24354 msgstr ""
24355
24356 #. type: textblock
24357 #: ../src/guestfs-actions.pod:940
24358 msgid ""
24359 "Note that this function cannot correctly handle binary files (specifically, "
24360 "files containing C<\\0> character which is treated as end of string).  For "
24361 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24362 "functions which have a more complex interface."
24363 msgstr ""
24364
24365 #. type: textblock
24366 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3745
24367 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3844
24368 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:4340
24369 #: ../src/guestfs-actions.pod:4354 ../src/guestfs-actions.pod:5725
24370 #: ../src/guestfs-actions.pod:5739 ../src/guestfs-actions.pod:7545
24371 #: ../src/guestfs-actions.pod:7559
24372 msgid "(Added in 0.4)"
24373 msgstr ""
24374
24375 #. type: =head2
24376 #: ../src/guestfs-actions.pod:953
24377 msgid "guestfs_checksum"
24378 msgstr ""
24379
24380 #. type: verbatim
24381 #: ../src/guestfs-actions.pod:955
24382 #, no-wrap
24383 msgid ""
24384 " char *\n"
24385 " guestfs_checksum (guestfs_h *g,\n"
24386 "                   const char *csumtype,\n"
24387 "                   const char *path);\n"
24388 "\n"
24389 msgstr ""
24390
24391 #. type: textblock
24392 #: ../src/guestfs-actions.pod:1001
24393 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24394 msgstr ""
24395
24396 #. type: textblock
24397 #: ../src/guestfs-actions.pod:1003
24398 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24399 msgstr ""
24400
24401 #. type: textblock
24402 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
24403 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3443
24404 #: ../src/guestfs-actions.pod:3472 ../src/guestfs-actions.pod:3533
24405 #: ../src/guestfs-actions.pod:3560 ../src/guestfs-actions.pod:7248
24406 msgid "(Added in 1.0.2)"
24407 msgstr ""
24408
24409 #. type: =head2
24410 #: ../src/guestfs-actions.pod:1010
24411 msgid "guestfs_checksum_device"
24412 msgstr ""
24413
24414 #. type: verbatim
24415 #: ../src/guestfs-actions.pod:1012
24416 #, no-wrap
24417 msgid ""
24418 " char *\n"
24419 " guestfs_checksum_device (guestfs_h *g,\n"
24420 "                          const char *csumtype,\n"
24421 "                          const char *device);\n"
24422 "\n"
24423 msgstr ""
24424
24425 #. type: textblock
24426 #: ../src/guestfs-actions.pod:1017
24427 msgid ""
24428 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24429 "device named C<device>.  For the types of checksums supported see the "
24430 "C<guestfs_checksum> command."
24431 msgstr ""
24432
24433 #. type: textblock
24434 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5174
24435 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5346
24436 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5546
24437 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7171
24438 #: ../src/guestfs-actions.pod:7571
24439 msgid "(Added in 1.3.2)"
24440 msgstr ""
24441
24442 #. type: =head2
24443 #: ../src/guestfs-actions.pod:1026
24444 msgid "guestfs_checksums_out"
24445 msgstr ""
24446
24447 #. type: verbatim
24448 #: ../src/guestfs-actions.pod:1028
24449 #, no-wrap
24450 msgid ""
24451 " int\n"
24452 " guestfs_checksums_out (guestfs_h *g,\n"
24453 "                        const char *csumtype,\n"
24454 "                        const char *directory,\n"
24455 "                        const char *sumsfile);\n"
24456 "\n"
24457 msgstr ""
24458
24459 #. type: textblock
24460 #: ../src/guestfs-actions.pod:1048
24461 msgid "(Added in 1.3.7)"
24462 msgstr ""
24463
24464 #. type: =head2
24465 #: ../src/guestfs-actions.pod:1050
24466 msgid "guestfs_chmod"
24467 msgstr ""
24468
24469 #. type: verbatim
24470 #: ../src/guestfs-actions.pod:1052
24471 #, no-wrap
24472 msgid ""
24473 " int\n"
24474 " guestfs_chmod (guestfs_h *g,\n"
24475 "                int mode,\n"
24476 "                const char *path);\n"
24477 "\n"
24478 msgstr ""
24479
24480 #. type: =head2
24481 #: ../src/guestfs-actions.pod:1070
24482 msgid "guestfs_chown"
24483 msgstr ""
24484
24485 #. type: verbatim
24486 #: ../src/guestfs-actions.pod:1072
24487 #, no-wrap
24488 msgid ""
24489 " int\n"
24490 " guestfs_chown (guestfs_h *g,\n"
24491 "                int owner,\n"
24492 "                int group,\n"
24493 "                const char *path);\n"
24494 "\n"
24495 msgstr ""
24496
24497 #. type: =head2
24498 #: ../src/guestfs-actions.pod:1088
24499 msgid "guestfs_command"
24500 msgstr ""
24501
24502 #. type: verbatim
24503 #: ../src/guestfs-actions.pod:1090
24504 #, no-wrap
24505 msgid ""
24506 " char *\n"
24507 " guestfs_command (guestfs_h *g,\n"
24508 "                  char *const *arguments);\n"
24509 "\n"
24510 msgstr ""
24511
24512 #. type: textblock
24513 #: ../src/guestfs-actions.pod:1099
24514 msgid ""
24515 "The single parameter is an argv-style list of arguments.  The first element "
24516 "is the name of the program to run.  Subsequent elements are parameters.  The "
24517 "list must be non-empty (ie. must contain a program name).  Note that the "
24518 "command runs directly, and is I<not> invoked via the shell (see "
24519 "C<guestfs_sh>)."
24520 msgstr ""
24521
24522 #. type: textblock
24523 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24524 #: ../src/guestfs-actions.pod:1615
24525 msgid "(Added in 0.9.1)"
24526 msgstr ""
24527
24528 #. type: =head2
24529 #: ../src/guestfs-actions.pod:1132
24530 msgid "guestfs_command_lines"
24531 msgstr ""
24532
24533 #. type: verbatim
24534 #: ../src/guestfs-actions.pod:1134
24535 #, no-wrap
24536 msgid ""
24537 " char **\n"
24538 " guestfs_command_lines (guestfs_h *g,\n"
24539 "                        char *const *arguments);\n"
24540 "\n"
24541 msgstr ""
24542
24543 #. type: textblock
24544 #: ../src/guestfs-actions.pod:1138
24545 msgid ""
24546 "This is the same as C<guestfs_command>, but splits the result into a list of "
24547 "lines."
24548 msgstr ""
24549
24550 #. type: textblock
24551 #: ../src/guestfs-actions.pod:1141
24552 msgid "See also: C<guestfs_sh_lines>"
24553 msgstr ""
24554
24555 #. type: =head2
24556 #: ../src/guestfs-actions.pod:1152
24557 msgid "guestfs_config"
24558 msgstr ""
24559
24560 #. type: verbatim
24561 #: ../src/guestfs-actions.pod:1154
24562 #, no-wrap
24563 msgid ""
24564 " int\n"
24565 " guestfs_config (guestfs_h *g,\n"
24566 "                 const char *qemuparam,\n"
24567 "                 const char *qemuvalue);\n"
24568 "\n"
24569 msgstr ""
24570
24571 #. type: =head2
24572 #: ../src/guestfs-actions.pod:1172
24573 msgid "guestfs_copy_size"
24574 msgstr ""
24575
24576 #. type: verbatim
24577 #: ../src/guestfs-actions.pod:1174
24578 #, no-wrap
24579 msgid ""
24580 " int\n"
24581 " guestfs_copy_size (guestfs_h *g,\n"
24582 "                    const char *src,\n"
24583 "                    const char *dest,\n"
24584 "                    int64_t size);\n"
24585 "\n"
24586 msgstr ""
24587
24588 #. type: textblock
24589 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
24590 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
24591 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
24592 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:7243
24593 #: ../src/guestfs-actions.pod:7277 ../src/guestfs-actions.pod:7784
24594 #: ../src/guestfs-actions.pod:7807
24595 msgid ""
24596 "This long-running command can generate progress notification messages so "
24597 "that the caller can display a progress bar or indicator.  To receive these "
24598 "messages, the caller must register a progress event callback.  See L<guestfs"
24599 "(3)/GUESTFS_EVENT_PROGRESS>."
24600 msgstr ""
24601
24602 #. type: textblock
24603 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4367
24604 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:7478
24605 #: ../src/guestfs-actions.pod:7498 ../src/guestfs-actions.pod:7584
24606 msgid "(Added in 1.0.87)"
24607 msgstr ""
24608
24609 #. type: =head2
24610 #: ../src/guestfs-actions.pod:1195
24611 msgid "guestfs_cp"
24612 msgstr ""
24613
24614 #. type: verbatim
24615 #: ../src/guestfs-actions.pod:1197
24616 #, no-wrap
24617 msgid ""
24618 " int\n"
24619 " guestfs_cp (guestfs_h *g,\n"
24620 "             const char *src,\n"
24621 "             const char *dest);\n"
24622 "\n"
24623 msgstr ""
24624
24625 #. type: textblock
24626 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
24627 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
24628 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5121
24629 #: ../src/guestfs-actions.pod:5596
24630 msgid "(Added in 1.0.18)"
24631 msgstr ""
24632
24633 #. type: =head2
24634 #: ../src/guestfs-actions.pod:1209
24635 msgid "guestfs_cp_a"
24636 msgstr ""
24637
24638 #. type: verbatim
24639 #: ../src/guestfs-actions.pod:1211
24640 #, no-wrap
24641 msgid ""
24642 " int\n"
24643 " guestfs_cp_a (guestfs_h *g,\n"
24644 "               const char *src,\n"
24645 "               const char *dest);\n"
24646 "\n"
24647 msgstr ""
24648
24649 #. type: =head2
24650 #: ../src/guestfs-actions.pod:1223
24651 msgid "guestfs_dd"
24652 msgstr ""
24653
24654 #. type: verbatim
24655 #: ../src/guestfs-actions.pod:1225
24656 #, no-wrap
24657 msgid ""
24658 " int\n"
24659 " guestfs_dd (guestfs_h *g,\n"
24660 "             const char *src,\n"
24661 "             const char *dest);\n"
24662 "\n"
24663 msgstr ""
24664
24665 #. type: textblock
24666 #: ../src/guestfs-actions.pod:1235
24667 msgid ""
24668 "If the destination is a device, it must be as large or larger than the "
24669 "source file or device, otherwise the copy will fail.  This command cannot do "
24670 "partial copies (see C<guestfs_copy_size>)."
24671 msgstr ""
24672
24673 #. type: =head2
24674 #: ../src/guestfs-actions.pod:1243
24675 msgid "guestfs_df"
24676 msgstr ""
24677
24678 #. type: verbatim
24679 #: ../src/guestfs-actions.pod:1245
24680 #, no-wrap
24681 msgid ""
24682 " char *\n"
24683 " guestfs_df (guestfs_h *g);\n"
24684 "\n"
24685 msgstr ""
24686
24687 #. type: textblock
24688 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
24689 msgid ""
24690 "This command is mostly useful for interactive sessions.  It is I<not> "
24691 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
24692 "from programs."
24693 msgstr ""
24694
24695 #. type: textblock
24696 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
24697 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2366
24698 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:2458
24699 #: ../src/guestfs-actions.pod:4477 ../src/guestfs-actions.pod:5021
24700 #: ../src/guestfs-actions.pod:6981 ../src/guestfs-actions.pod:7005
24701 #: ../src/guestfs-actions.pod:7624 ../src/guestfs-actions.pod:7637
24702 #: ../src/guestfs-actions.pod:7650
24703 msgid "(Added in 1.0.54)"
24704 msgstr ""
24705
24706 #. type: =head2
24707 #: ../src/guestfs-actions.pod:1259
24708 msgid "guestfs_df_h"
24709 msgstr ""
24710
24711 #. type: verbatim
24712 #: ../src/guestfs-actions.pod:1261
24713 #, no-wrap
24714 msgid ""
24715 " char *\n"
24716 " guestfs_df_h (guestfs_h *g);\n"
24717 "\n"
24718 msgstr ""
24719
24720 #. type: =head2
24721 #: ../src/guestfs-actions.pod:1276
24722 msgid "guestfs_dmesg"
24723 msgstr ""
24724
24725 #. type: verbatim
24726 #: ../src/guestfs-actions.pod:1278
24727 #, no-wrap
24728 msgid ""
24729 " char *\n"
24730 " guestfs_dmesg (guestfs_h *g);\n"
24731 "\n"
24732 msgstr ""
24733
24734 #. type: textblock
24735 #: ../src/guestfs-actions.pod:1285
24736 msgid ""
24737 "Another way to get the same information is to enable verbose messages with "
24738 "C<guestfs_set_verbose> or by setting the environment variable "
24739 "C<LIBGUESTFS_DEBUG=1> before running the program."
24740 msgstr ""
24741
24742 #. type: =head2
24743 #: ../src/guestfs-actions.pod:1295
24744 msgid "guestfs_download"
24745 msgstr ""
24746
24747 #. type: verbatim
24748 #: ../src/guestfs-actions.pod:1297
24749 #, no-wrap
24750 msgid ""
24751 " int\n"
24752 " guestfs_download (guestfs_h *g,\n"
24753 "                   const char *remotefilename,\n"
24754 "                   const char *filename);\n"
24755 "\n"
24756 msgstr ""
24757
24758 #. type: textblock
24759 #: ../src/guestfs-actions.pod:1307
24760 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
24761 msgstr ""
24762
24763 #. type: =head2
24764 #: ../src/guestfs-actions.pod:1318
24765 msgid "guestfs_download_offset"
24766 msgstr ""
24767
24768 #. type: verbatim
24769 #: ../src/guestfs-actions.pod:1320
24770 #, no-wrap
24771 msgid ""
24772 " int\n"
24773 " guestfs_download_offset (guestfs_h *g,\n"
24774 "                          const char *remotefilename,\n"
24775 "                          const char *filename,\n"
24776 "                          int64_t offset,\n"
24777 "                          int64_t size);\n"
24778 "\n"
24779 msgstr ""
24780
24781 #. type: textblock
24782 #: ../src/guestfs-actions.pod:1333
24783 msgid ""
24784 "Note that there is no limit on the amount of data that can be downloaded "
24785 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
24786 "full amount unless an error occurs."
24787 msgstr ""
24788
24789 #. type: textblock
24790 #: ../src/guestfs-actions.pod:1338
24791 msgid "See also C<guestfs_download>, C<guestfs_pread>."
24792 msgstr ""
24793
24794 #. type: textblock
24795 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7282
24796 msgid "(Added in 1.5.17)"
24797 msgstr ""
24798
24799 #. type: =head2
24800 #: ../src/guestfs-actions.pod:1349
24801 msgid "guestfs_drop_caches"
24802 msgstr ""
24803
24804 #. type: verbatim
24805 #: ../src/guestfs-actions.pod:1351
24806 #, no-wrap
24807 msgid ""
24808 " int\n"
24809 " guestfs_drop_caches (guestfs_h *g,\n"
24810 "                      int whattodrop);\n"
24811 "\n"
24812 msgstr ""
24813
24814 #. type: =head2
24815 #: ../src/guestfs-actions.pod:1369
24816 msgid "guestfs_du"
24817 msgstr ""
24818
24819 #. type: verbatim
24820 #: ../src/guestfs-actions.pod:1371
24821 #, no-wrap
24822 msgid ""
24823 " int64_t\n"
24824 " guestfs_du (guestfs_h *g,\n"
24825 "             const char *path);\n"
24826 "\n"
24827 msgstr ""
24828
24829 #. type: =head2
24830 #: ../src/guestfs-actions.pod:1394
24831 msgid "guestfs_e2fsck_f"
24832 msgstr ""
24833
24834 #. type: verbatim
24835 #: ../src/guestfs-actions.pod:1396
24836 #, no-wrap
24837 msgid ""
24838 " int\n"
24839 " guestfs_e2fsck_f (guestfs_h *g,\n"
24840 "                   const char *device);\n"
24841 "\n"
24842 msgstr ""
24843
24844 #. type: textblock
24845 #: ../src/guestfs-actions.pod:1404
24846 msgid ""
24847 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
24848 "Normally you should use C<guestfs_fsck>."
24849 msgstr ""
24850
24851 #. type: textblock
24852 #: ../src/guestfs-actions.pod:1409
24853 msgid "(Added in 1.0.29)"
24854 msgstr ""
24855
24856 #. type: =head2
24857 #: ../src/guestfs-actions.pod:1411
24858 msgid "guestfs_echo_daemon"
24859 msgstr ""
24860
24861 #. type: verbatim
24862 #: ../src/guestfs-actions.pod:1413
24863 #, no-wrap
24864 msgid ""
24865 " char *\n"
24866 " guestfs_echo_daemon (guestfs_h *g,\n"
24867 "                      char *const *words);\n"
24868 "\n"
24869 msgstr ""
24870
24871 #. type: textblock
24872 #: ../src/guestfs-actions.pod:1422
24873 msgid "See also C<guestfs_ping_daemon>."
24874 msgstr ""
24875
24876 #. type: textblock
24877 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
24878 #: ../src/guestfs-actions.pod:6453
24879 msgid "(Added in 1.0.69)"
24880 msgstr ""
24881
24882 #. type: =head2
24883 #: ../src/guestfs-actions.pod:1429
24884 msgid "guestfs_egrep"
24885 msgstr ""
24886
24887 #. type: verbatim
24888 #: ../src/guestfs-actions.pod:1431
24889 #, no-wrap
24890 msgid ""
24891 " char **\n"
24892 " guestfs_egrep (guestfs_h *g,\n"
24893 "                const char *regex,\n"
24894 "                const char *path);\n"
24895 "\n"
24896 msgstr ""
24897
24898 #. type: textblock
24899 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
24900 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
24901 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
24902 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2479
24903 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2507
24904 #: ../src/guestfs-actions.pod:2553 ../src/guestfs-actions.pod:2575
24905 #: ../src/guestfs-actions.pod:2588 ../src/guestfs-actions.pod:3857
24906 #: ../src/guestfs-actions.pod:3871 ../src/guestfs-actions.pod:3884
24907 #: ../src/guestfs-actions.pod:3898 ../src/guestfs-actions.pod:4899
24908 #: ../src/guestfs-actions.pod:5930 ../src/guestfs-actions.pod:5979
24909 #: ../src/guestfs-actions.pod:6849 ../src/guestfs-actions.pod:6861
24910 #: ../src/guestfs-actions.pod:6874 ../src/guestfs-actions.pod:6887
24911 #: ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6922
24912 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6948
24913 #: ../src/guestfs-actions.pod:7742 ../src/guestfs-actions.pod:7761
24914 #: ../src/guestfs-actions.pod:7855 ../src/guestfs-actions.pod:7874
24915 #: ../src/guestfs-actions.pod:7920 ../src/guestfs-actions.pod:7939
24916 msgid "(Added in 1.0.66)"
24917 msgstr ""
24918
24919 #. type: =head2
24920 #: ../src/guestfs-actions.pod:1448
24921 msgid "guestfs_egrepi"
24922 msgstr ""
24923
24924 #. type: verbatim
24925 #: ../src/guestfs-actions.pod:1450
24926 #, no-wrap
24927 msgid ""
24928 " char **\n"
24929 " guestfs_egrepi (guestfs_h *g,\n"
24930 "                 const char *regex,\n"
24931 "                 const char *path);\n"
24932 "\n"
24933 msgstr ""
24934
24935 #. type: =head2
24936 #: ../src/guestfs-actions.pod:1467
24937 msgid "guestfs_equal"
24938 msgstr ""
24939
24940 #. type: verbatim
24941 #: ../src/guestfs-actions.pod:1469
24942 #, no-wrap
24943 msgid ""
24944 " int\n"
24945 " guestfs_equal (guestfs_h *g,\n"
24946 "                const char *file1,\n"
24947 "                const char *file2);\n"
24948 "\n"
24949 msgstr ""
24950
24951 #. type: =head2
24952 #: ../src/guestfs-actions.pod:1483
24953 msgid "guestfs_exists"
24954 msgstr ""
24955
24956 #. type: verbatim
24957 #: ../src/guestfs-actions.pod:1485
24958 #, no-wrap
24959 msgid ""
24960 " int\n"
24961 " guestfs_exists (guestfs_h *g,\n"
24962 "                 const char *path);\n"
24963 "\n"
24964 msgstr ""
24965
24966 #. type: textblock
24967 #: ../src/guestfs-actions.pod:1492
24968 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
24969 msgstr ""
24970
24971 #. type: =head2
24972 #: ../src/guestfs-actions.pod:1498
24973 msgid "guestfs_fallocate"
24974 msgstr ""
24975
24976 #. type: verbatim
24977 #: ../src/guestfs-actions.pod:1500
24978 #, no-wrap
24979 msgid ""
24980 " int\n"
24981 " guestfs_fallocate (guestfs_h *g,\n"
24982 "                    const char *path,\n"
24983 "                    int len);\n"
24984 "\n"
24985 msgstr ""
24986
24987 #. type: textblock
24988 #: ../src/guestfs-actions.pod:1505
24989 msgid ""
24990 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
24991 "call instead."
24992 msgstr ""
24993
24994 #. type: =head2
24995 #: ../src/guestfs-actions.pod:1524
24996 msgid "guestfs_fallocate64"
24997 msgstr ""
24998
24999 #. type: verbatim
25000 #: ../src/guestfs-actions.pod:1526
25001 #, no-wrap
25002 msgid ""
25003 " int\n"
25004 " guestfs_fallocate64 (guestfs_h *g,\n"
25005 "                      const char *path,\n"
25006 "                      int64_t len);\n"
25007 "\n"
25008 msgstr ""
25009
25010 #. type: textblock
25011 #: ../src/guestfs-actions.pod:1535
25012 msgid ""
25013 "Note that this call allocates disk blocks for the file.  To create a sparse "
25014 "file use C<guestfs_truncate_size> instead."
25015 msgstr ""
25016
25017 #. type: textblock
25018 #: ../src/guestfs-actions.pod:1538
25019 msgid ""
25020 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
25021 "oversight it only allowed 30 bit lengths to be specified, effectively "
25022 "limiting the maximum size of files created through that call to 1GB."
25023 msgstr ""
25024
25025 #. type: textblock
25026 #: ../src/guestfs-actions.pod:1549
25027 msgid "(Added in 1.3.17)"
25028 msgstr ""
25029
25030 #. type: =head2
25031 #: ../src/guestfs-actions.pod:1551
25032 msgid "guestfs_fgrep"
25033 msgstr ""
25034
25035 #. type: verbatim
25036 #: ../src/guestfs-actions.pod:1553
25037 #, no-wrap
25038 msgid ""
25039 " char **\n"
25040 " guestfs_fgrep (guestfs_h *g,\n"
25041 "                const char *pattern,\n"
25042 "                const char *path);\n"
25043 "\n"
25044 msgstr ""
25045
25046 #. type: =head2
25047 #: ../src/guestfs-actions.pod:1570
25048 msgid "guestfs_fgrepi"
25049 msgstr ""
25050
25051 #. type: verbatim
25052 #: ../src/guestfs-actions.pod:1572
25053 #, no-wrap
25054 msgid ""
25055 " char **\n"
25056 " guestfs_fgrepi (guestfs_h *g,\n"
25057 "                 const char *pattern,\n"
25058 "                 const char *path);\n"
25059 "\n"
25060 msgstr ""
25061
25062 #. type: =head2
25063 #: ../src/guestfs-actions.pod:1589
25064 msgid "guestfs_file"
25065 msgstr ""
25066
25067 #. type: verbatim
25068 #: ../src/guestfs-actions.pod:1591
25069 #, no-wrap
25070 msgid ""
25071 " char *\n"
25072 " guestfs_file (guestfs_h *g,\n"
25073 "               const char *path);\n"
25074 "\n"
25075 msgstr ""
25076
25077 #. type: textblock
25078 #: ../src/guestfs-actions.pod:1609
25079 msgid ""
25080 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25081 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25082 msgstr ""
25083
25084 #. type: =head2
25085 #: ../src/guestfs-actions.pod:1617
25086 msgid "guestfs_file_architecture"
25087 msgstr ""
25088
25089 #. type: verbatim
25090 #: ../src/guestfs-actions.pod:1619
25091 #, no-wrap
25092 msgid ""
25093 " char *\n"
25094 " guestfs_file_architecture (guestfs_h *g,\n"
25095 "                            const char *filename);\n"
25096 "\n"
25097 msgstr ""
25098
25099 #. type: textblock
25100 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
25101 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2608
25102 #: ../src/guestfs-actions.pod:2698 ../src/guestfs-actions.pod:2764
25103 #: ../src/guestfs-actions.pod:2951 ../src/guestfs-actions.pod:2969
25104 #: ../src/guestfs-actions.pod:3009 ../src/guestfs-actions.pod:3084
25105 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3414
25106 #: ../src/guestfs-actions.pod:3546
25107 msgid "(Added in 1.5.3)"
25108 msgstr ""
25109
25110 #. type: =head2
25111 #: ../src/guestfs-actions.pod:1729
25112 msgid "guestfs_filesize"
25113 msgstr ""
25114
25115 #. type: verbatim
25116 #: ../src/guestfs-actions.pod:1731
25117 #, no-wrap
25118 msgid ""
25119 " int64_t\n"
25120 " guestfs_filesize (guestfs_h *g,\n"
25121 "                   const char *file);\n"
25122 "\n"
25123 msgstr ""
25124
25125 #. type: textblock
25126 #: ../src/guestfs-actions.pod:1737
25127 msgid ""
25128 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25129 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
25130 "devices, use C<guestfs_blockdev_getsize64>."
25131 msgstr ""
25132
25133 #. type: textblock
25134 #: ../src/guestfs-actions.pod:1743
25135 msgid "(Added in 1.0.82)"
25136 msgstr ""
25137
25138 #. type: =head2
25139 #: ../src/guestfs-actions.pod:1745
25140 msgid "guestfs_fill"
25141 msgstr ""
25142
25143 #. type: verbatim
25144 #: ../src/guestfs-actions.pod:1747
25145 #, no-wrap
25146 msgid ""
25147 " int\n"
25148 " guestfs_fill (guestfs_h *g,\n"
25149 "               int c,\n"
25150 "               int len,\n"
25151 "               const char *path);\n"
25152 "\n"
25153 msgstr ""
25154
25155 #. type: textblock
25156 #: ../src/guestfs-actions.pod:1757
25157 msgid ""
25158 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25159 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
25160 "bytes use C<guestfs_fill_pattern>."
25161 msgstr ""
25162
25163 #. type: textblock
25164 #: ../src/guestfs-actions.pod:1769
25165 msgid "(Added in 1.0.79)"
25166 msgstr ""
25167
25168 #. type: =head2
25169 #: ../src/guestfs-actions.pod:1771
25170 msgid "guestfs_fill_pattern"
25171 msgstr ""
25172
25173 #. type: verbatim
25174 #: ../src/guestfs-actions.pod:1773
25175 #, no-wrap
25176 msgid ""
25177 " int\n"
25178 " guestfs_fill_pattern (guestfs_h *g,\n"
25179 "                       const char *pattern,\n"
25180 "                       int len,\n"
25181 "                       const char *path);\n"
25182 "\n"
25183 msgstr ""
25184
25185 #. type: textblock
25186 #: ../src/guestfs-actions.pod:1779
25187 msgid ""
25188 "This function is like C<guestfs_fill> except that it creates a new file of "
25189 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
25190 "pattern is truncated if necessary to ensure the length of the file is "
25191 "exactly C<len> bytes."
25192 msgstr ""
25193
25194 #. type: textblock
25195 #: ../src/guestfs-actions.pod:1791
25196 msgid "(Added in 1.3.12)"
25197 msgstr ""
25198
25199 #. type: =head2
25200 #: ../src/guestfs-actions.pod:1793
25201 msgid "guestfs_find"
25202 msgstr ""
25203
25204 #. type: verbatim
25205 #: ../src/guestfs-actions.pod:1795
25206 #, no-wrap
25207 msgid ""
25208 " char **\n"
25209 " guestfs_find (guestfs_h *g,\n"
25210 "               const char *directory);\n"
25211 "\n"
25212 msgstr ""
25213
25214 #. type: textblock
25215 #: ../src/guestfs-actions.pod:1811
25216 msgid ""
25217 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25218 msgstr ""
25219
25220 #. type: textblock
25221 #: ../src/guestfs-actions.pod:1824
25222 msgid "See also C<guestfs_find0>."
25223 msgstr ""
25224
25225 #. type: textblock
25226 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4304
25227 #: ../src/guestfs-actions.pod:6014
25228 msgid "(Added in 1.0.27)"
25229 msgstr ""
25230
25231 #. type: =head2
25232 #: ../src/guestfs-actions.pod:1835
25233 msgid "guestfs_find0"
25234 msgstr ""
25235
25236 #. type: verbatim
25237 #: ../src/guestfs-actions.pod:1837
25238 #, no-wrap
25239 msgid ""
25240 " int\n"
25241 " guestfs_find0 (guestfs_h *g,\n"
25242 "                const char *directory,\n"
25243 "                const char *files);\n"
25244 "\n"
25245 msgstr ""
25246
25247 #. type: textblock
25248 #: ../src/guestfs-actions.pod:1846
25249 msgid ""
25250 "This command works the same way as C<guestfs_find> with the following "
25251 "exceptions:"
25252 msgstr ""
25253
25254 #. type: textblock
25255 #: ../src/guestfs-actions.pod:1873
25256 msgid "(Added in 1.0.74)"
25257 msgstr ""
25258
25259 #. type: =head2
25260 #: ../src/guestfs-actions.pod:1875
25261 msgid "guestfs_findfs_label"
25262 msgstr ""
25263
25264 #. type: verbatim
25265 #: ../src/guestfs-actions.pod:1877
25266 #, no-wrap
25267 msgid ""
25268 " char *\n"
25269 " guestfs_findfs_label (guestfs_h *g,\n"
25270 "                       const char *label);\n"
25271 "\n"
25272 msgstr ""
25273
25274 #. type: textblock
25275 #: ../src/guestfs-actions.pod:1885
25276 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25277 msgstr ""
25278
25279 #. type: =head2
25280 #: ../src/guestfs-actions.pod:1892
25281 msgid "guestfs_findfs_uuid"
25282 msgstr ""
25283
25284 #. type: verbatim
25285 #: ../src/guestfs-actions.pod:1894
25286 #, no-wrap
25287 msgid ""
25288 " char *\n"
25289 " guestfs_findfs_uuid (guestfs_h *g,\n"
25290 "                      const char *uuid);\n"
25291 "\n"
25292 msgstr ""
25293
25294 #. type: textblock
25295 #: ../src/guestfs-actions.pod:1902
25296 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25297 msgstr ""
25298
25299 #. type: =head2
25300 #: ../src/guestfs-actions.pod:1909
25301 msgid "guestfs_fsck"
25302 msgstr ""
25303
25304 #. type: verbatim
25305 #: ../src/guestfs-actions.pod:1911
25306 #, no-wrap
25307 msgid ""
25308 " int\n"
25309 " guestfs_fsck (guestfs_h *g,\n"
25310 "               const char *fstype,\n"
25311 "               const char *device);\n"
25312 "\n"
25313 msgstr ""
25314
25315 #. type: textblock
25316 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7789
25317 msgid "(Added in 1.0.16)"
25318 msgstr ""
25319
25320 #. type: =head2
25321 #: ../src/guestfs-actions.pod:1948
25322 msgid "guestfs_get_append"
25323 msgstr ""
25324
25325 #. type: verbatim
25326 #: ../src/guestfs-actions.pod:1950
25327 #, no-wrap
25328 msgid ""
25329 " const char *\n"
25330 " guestfs_get_append (guestfs_h *g);\n"
25331 "\n"
25332 msgstr ""
25333
25334 #. type: textblock
25335 #: ../src/guestfs-actions.pod:1958
25336 msgid ""
25337 "This function returns a string which may be NULL.  There is no way to return "
25338 "an error from this function.  The string is owned by the guest handle and "
25339 "must I<not> be freed."
25340 msgstr ""
25341
25342 #. type: textblock
25343 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5692
25344 #: ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6616
25345 #: ../src/guestfs-actions.pod:6635 ../src/guestfs-actions.pod:6651
25346 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:7429
25347 #: ../src/guestfs-actions.pod:7444 ../src/guestfs-actions.pod:7836
25348 msgid "(Added in 1.0.26)"
25349 msgstr ""
25350
25351 #. type: =head2
25352 #: ../src/guestfs-actions.pod:1964
25353 msgid "guestfs_get_attach_method"
25354 msgstr ""
25355
25356 #. type: verbatim
25357 #: ../src/guestfs-actions.pod:1966
25358 #, no-wrap
25359 msgid ""
25360 " char *\n"
25361 " guestfs_get_attach_method (guestfs_h *g);\n"
25362 "\n"
25363 msgstr ""
25364
25365 #. type: textblock
25366 #: ../src/guestfs-actions.pod:1969
25367 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
25368 msgstr ""
25369
25370 #. type: textblock
25371 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6204
25372 msgid "(Added in 1.9.8)"
25373 msgstr ""
25374
25375 #. type: =head2
25376 #: ../src/guestfs-actions.pod:1976
25377 msgid "guestfs_get_autosync"
25378 msgstr ""
25379
25380 #. type: verbatim
25381 #: ../src/guestfs-actions.pod:1978
25382 #, no-wrap
25383 msgid ""
25384 " int\n"
25385 " guestfs_get_autosync (guestfs_h *g);\n"
25386 "\n"
25387 msgstr ""
25388
25389 #. type: =head2
25390 #: ../src/guestfs-actions.pod:1987
25391 msgid "guestfs_get_direct"
25392 msgstr ""
25393
25394 #. type: verbatim
25395 #: ../src/guestfs-actions.pod:1989
25396 #, no-wrap
25397 msgid ""
25398 " int\n"
25399 " guestfs_get_direct (guestfs_h *g);\n"
25400 "\n"
25401 msgstr ""
25402
25403 #. type: textblock
25404 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6245
25405 msgid "(Added in 1.0.72)"
25406 msgstr ""
25407
25408 #. type: =head2
25409 #: ../src/guestfs-actions.pod:1998
25410 msgid "guestfs_get_e2label"
25411 msgstr ""
25412
25413 #. type: verbatim
25414 #: ../src/guestfs-actions.pod:2000
25415 #, no-wrap
25416 msgid ""
25417 " char *\n"
25418 " guestfs_get_e2label (guestfs_h *g,\n"
25419 "                      const char *device);\n"
25420 "\n"
25421 msgstr ""
25422
25423 #. type: textblock
25424 #: ../src/guestfs-actions.pod:2004
25425 msgid ""
25426 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
25427 "call instead."
25428 msgstr ""
25429
25430 #. type: textblock
25431 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
25432 #: ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
25433 msgid "(Added in 1.0.15)"
25434 msgstr ""
25435
25436 #. type: =head2
25437 #: ../src/guestfs-actions.pod:2019
25438 msgid "guestfs_get_e2uuid"
25439 msgstr ""
25440
25441 #. type: verbatim
25442 #: ../src/guestfs-actions.pod:2021
25443 #, no-wrap
25444 msgid ""
25445 " char *\n"
25446 " guestfs_get_e2uuid (guestfs_h *g,\n"
25447 "                     const char *device);\n"
25448 "\n"
25449 msgstr ""
25450
25451 #. type: textblock
25452 #: ../src/guestfs-actions.pod:2025
25453 msgid ""
25454 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
25455 "call instead."
25456 msgstr ""
25457
25458 #. type: =head2
25459 #: ../src/guestfs-actions.pod:2040
25460 msgid "guestfs_get_memsize"
25461 msgstr ""
25462
25463 #. type: verbatim
25464 #: ../src/guestfs-actions.pod:2042
25465 #, no-wrap
25466 msgid ""
25467 " int\n"
25468 " guestfs_get_memsize (guestfs_h *g);\n"
25469 "\n"
25470 msgstr ""
25471
25472 #. type: textblock
25473 #: ../src/guestfs-actions.pod:2048
25474 msgid ""
25475 "If C<guestfs_set_memsize> was not called on this handle, and if "
25476 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25477 "value for memsize."
25478 msgstr ""
25479
25480 #. type: textblock
25481 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4595
25482 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:4823
25483 #: ../src/guestfs-actions.pod:4842 ../src/guestfs-actions.pod:4854
25484 #: ../src/guestfs-actions.pod:4871 ../src/guestfs-actions.pod:4884
25485 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6303
25486 #: ../src/guestfs-actions.pod:6583 ../src/guestfs-actions.pod:7198
25487 msgid "(Added in 1.0.55)"
25488 msgstr ""
25489
25490 #. type: =head2
25491 #: ../src/guestfs-actions.pod:2059
25492 msgid "guestfs_get_network"
25493 msgstr ""
25494
25495 #. type: verbatim
25496 #: ../src/guestfs-actions.pod:2061
25497 #, no-wrap
25498 msgid ""
25499 " int\n"
25500 " guestfs_get_network (guestfs_h *g);\n"
25501 "\n"
25502 msgstr ""
25503
25504 #. type: textblock
25505 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6322
25506 msgid "(Added in 1.5.4)"
25507 msgstr ""
25508
25509 #. type: =head2
25510 #: ../src/guestfs-actions.pod:2070
25511 msgid "guestfs_get_path"
25512 msgstr ""
25513
25514 #. type: verbatim
25515 #: ../src/guestfs-actions.pod:2072
25516 #, no-wrap
25517 msgid ""
25518 " const char *\n"
25519 " guestfs_get_path (guestfs_h *g);\n"
25520 "\n"
25521 msgstr ""
25522
25523 #. type: textblock
25524 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
25525 msgid ""
25526 "This function returns a string, or NULL on error.  The string is owned by "
25527 "the guest handle and must I<not> be freed."
25528 msgstr ""
25529
25530 #. type: =head2
25531 #: ../src/guestfs-actions.pod:2085
25532 msgid "guestfs_get_pgroup"
25533 msgstr ""
25534
25535 #. type: verbatim
25536 #: ../src/guestfs-actions.pod:2087
25537 #, no-wrap
25538 msgid ""
25539 " int\n"
25540 " guestfs_get_pgroup (guestfs_h *g);\n"
25541 "\n"
25542 msgstr ""
25543
25544 #. type: textblock
25545 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6358
25546 #: ../src/guestfs-actions.pod:7690
25547 #, fuzzy
25548 #| msgid "(Added in 1.5.1)"
25549 msgid "(Added in 1.11.18)"
25550 msgstr "(Додано у 1.5.1)"
25551
25552 #. type: =head2
25553 #: ../src/guestfs-actions.pod:2096
25554 msgid "guestfs_get_pid"
25555 msgstr ""
25556
25557 #. type: verbatim
25558 #: ../src/guestfs-actions.pod:2098
25559 #, no-wrap
25560 msgid ""
25561 " int\n"
25562 " guestfs_get_pid (guestfs_h *g);\n"
25563 "\n"
25564 msgstr ""
25565
25566 #. type: textblock
25567 #: ../src/guestfs-actions.pod:2108
25568 msgid "(Added in 1.0.56)"
25569 msgstr ""
25570
25571 #. type: =head2
25572 #: ../src/guestfs-actions.pod:2110
25573 msgid "guestfs_get_qemu"
25574 msgstr ""
25575
25576 #. type: verbatim
25577 #: ../src/guestfs-actions.pod:2112
25578 #, no-wrap
25579 msgid ""
25580 " const char *\n"
25581 " guestfs_get_qemu (guestfs_h *g);\n"
25582 "\n"
25583 msgstr ""
25584
25585 #. type: textblock
25586 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6386
25587 msgid "(Added in 1.0.6)"
25588 msgstr ""
25589
25590 #. type: =head2
25591 #: ../src/guestfs-actions.pod:2125
25592 msgid "guestfs_get_recovery_proc"
25593 msgstr ""
25594
25595 #. type: verbatim
25596 #: ../src/guestfs-actions.pod:2127
25597 #, no-wrap
25598 msgid ""
25599 " int\n"
25600 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25601 "\n"
25602 msgstr ""
25603
25604 #. type: textblock
25605 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3668
25606 #: ../src/guestfs-actions.pod:3999 ../src/guestfs-actions.pod:4402
25607 #: ../src/guestfs-actions.pod:4434 ../src/guestfs-actions.pod:5622
25608 #: ../src/guestfs-actions.pod:5965 ../src/guestfs-actions.pod:6410
25609 #: ../src/guestfs-actions.pod:7101 ../src/guestfs-actions.pod:7121
25610 #: ../src/guestfs-actions.pod:7313
25611 msgid "(Added in 1.0.77)"
25612 msgstr ""
25613
25614 #. type: =head2
25615 #: ../src/guestfs-actions.pod:2136
25616 msgid "guestfs_get_selinux"
25617 msgstr ""
25618
25619 #. type: verbatim
25620 #: ../src/guestfs-actions.pod:2138
25621 #, no-wrap
25622 msgid ""
25623 " int\n"
25624 " guestfs_get_selinux (guestfs_h *g);\n"
25625 "\n"
25626 msgstr ""
25627
25628 #. type: textblock
25629 #: ../src/guestfs-actions.pod:2141
25630 msgid ""
25631 "This returns the current setting of the selinux flag which is passed to the "
25632 "appliance at boot time.  See C<guestfs_set_selinux>."
25633 msgstr ""
25634
25635 #. type: textblock
25636 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
25637 #: ../src/guestfs-actions.pod:6429 ../src/guestfs-actions.pod:6487
25638 msgid "(Added in 1.0.67)"
25639 msgstr ""
25640
25641 #. type: =head2
25642 #: ../src/guestfs-actions.pod:2151
25643 msgid "guestfs_get_state"
25644 msgstr ""
25645
25646 #. type: verbatim
25647 #: ../src/guestfs-actions.pod:2153
25648 #, no-wrap
25649 msgid ""
25650 " int\n"
25651 " guestfs_get_state (guestfs_h *g);\n"
25652 "\n"
25653 msgstr ""
25654
25655 #. type: =head2
25656 #: ../src/guestfs-actions.pod:2165
25657 msgid "guestfs_get_trace"
25658 msgstr ""
25659
25660 #. type: verbatim
25661 #: ../src/guestfs-actions.pod:2167
25662 #, no-wrap
25663 msgid ""
25664 " int\n"
25665 " guestfs_get_trace (guestfs_h *g);\n"
25666 "\n"
25667 msgstr ""
25668
25669 #. type: =head2
25670 #: ../src/guestfs-actions.pod:2176
25671 msgid "guestfs_get_umask"
25672 msgstr ""
25673
25674 #. type: verbatim
25675 #: ../src/guestfs-actions.pod:2178
25676 #, no-wrap
25677 msgid ""
25678 " int\n"
25679 " guestfs_get_umask (guestfs_h *g);\n"
25680 "\n"
25681 msgstr ""
25682
25683 #. type: textblock
25684 #: ../src/guestfs-actions.pod:2181
25685 msgid ""
25686 "Return the current umask.  By default the umask is C<022> unless it has been "
25687 "set by calling C<guestfs_umask>."
25688 msgstr ""
25689
25690 #. type: =head2
25691 #: ../src/guestfs-actions.pod:2188
25692 msgid "guestfs_get_verbose"
25693 msgstr ""
25694
25695 #. type: verbatim
25696 #: ../src/guestfs-actions.pod:2190
25697 #, no-wrap
25698 msgid ""
25699 " int\n"
25700 " guestfs_get_verbose (guestfs_h *g);\n"
25701 "\n"
25702 msgstr ""
25703
25704 #. type: =head2
25705 #: ../src/guestfs-actions.pod:2199
25706 msgid "guestfs_getcon"
25707 msgstr ""
25708
25709 #. type: verbatim
25710 #: ../src/guestfs-actions.pod:2201
25711 #, no-wrap
25712 msgid ""
25713 " char *\n"
25714 " guestfs_getcon (guestfs_h *g);\n"
25715 "\n"
25716 msgstr ""
25717
25718 #. type: textblock
25719 #: ../src/guestfs-actions.pod:2206
25720 msgid ""
25721 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
25722 msgstr ""
25723
25724 #. type: =head2
25725 #: ../src/guestfs-actions.pod:2214
25726 msgid "guestfs_getxattr"
25727 msgstr ""
25728
25729 #. type: verbatim
25730 #: ../src/guestfs-actions.pod:2216
25731 #, no-wrap
25732 msgid ""
25733 " char *\n"
25734 " guestfs_getxattr (guestfs_h *g,\n"
25735 "                   const char *path,\n"
25736 "                   const char *name,\n"
25737 "                   size_t *size_r);\n"
25738 "\n"
25739 msgstr ""
25740
25741 #. type: textblock
25742 #: ../src/guestfs-actions.pod:2222
25743 msgid ""
25744 "Get a single extended attribute from file C<path> named C<name>.  This call "
25745 "follows symlinks.  If you want to lookup an extended attribute for the "
25746 "symlink itself, use C<guestfs_lgetxattr>."
25747 msgstr ""
25748
25749 #. type: textblock
25750 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3682
25751 msgid ""
25752 "Normally it is better to get all extended attributes from a file in one go "
25753 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
25754 "implementations are buggy and do not provide a way to list out attributes.  "
25755 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
25756 "extended attributes you want in advance and call this function."
25757 msgstr ""
25758
25759 #. type: textblock
25760 #: ../src/guestfs-actions.pod:2236
25761 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
25762 msgstr ""
25763
25764 #. type: textblock
25765 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2429
25766 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:3694
25767 #: ../src/guestfs-actions.pod:5615 ../src/guestfs-actions.pod:5641
25768 #: ../src/guestfs-actions.pod:5822
25769 msgid ""
25770 "This function returns a buffer, or NULL on error.  The size of the returned "
25771 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
25772 "after use>."
25773 msgstr ""
25774
25775 #. type: textblock
25776 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3698
25777 msgid "(Added in 1.7.24)"
25778 msgstr ""
25779
25780 #. type: =head2
25781 #: ../src/guestfs-actions.pod:2244
25782 msgid "guestfs_getxattrs"
25783 msgstr ""
25784
25785 #. type: verbatim
25786 #: ../src/guestfs-actions.pod:2246
25787 #, no-wrap
25788 msgid ""
25789 " struct guestfs_xattr_list *\n"
25790 " guestfs_getxattrs (guestfs_h *g,\n"
25791 "                    const char *path);\n"
25792 "\n"
25793 msgstr ""
25794
25795 #. type: textblock
25796 #: ../src/guestfs-actions.pod:2256
25797 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
25798 msgstr ""
25799
25800 #. type: textblock
25801 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3710
25802 #: ../src/guestfs-actions.pod:4398
25803 msgid ""
25804 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
25805 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
25806 msgstr ""
25807
25808 #. type: textblock
25809 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3714
25810 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:3949
25811 #: ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6506
25812 #: ../src/guestfs-actions.pod:7901
25813 msgid "(Added in 1.0.59)"
25814 msgstr ""
25815
25816 #. type: =head2
25817 #: ../src/guestfs-actions.pod:2264
25818 msgid "guestfs_glob_expand"
25819 msgstr ""
25820
25821 #. type: verbatim
25822 #: ../src/guestfs-actions.pod:2266
25823 #, no-wrap
25824 msgid ""
25825 " char **\n"
25826 " guestfs_glob_expand (guestfs_h *g,\n"
25827 "                      const char *pattern);\n"
25828 "\n"
25829 msgstr ""
25830
25831 #. type: textblock
25832 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6699
25833 #: ../src/guestfs-actions.pod:6716
25834 msgid "(Added in 1.0.50)"
25835 msgstr ""
25836
25837 #. type: =head2
25838 #: ../src/guestfs-actions.pod:2287
25839 msgid "guestfs_grep"
25840 msgstr ""
25841
25842 #. type: verbatim
25843 #: ../src/guestfs-actions.pod:2289
25844 #, no-wrap
25845 msgid ""
25846 " char **\n"
25847 " guestfs_grep (guestfs_h *g,\n"
25848 "               const char *regex,\n"
25849 "               const char *path);\n"
25850 "\n"
25851 msgstr ""
25852
25853 #. type: =head2
25854 #: ../src/guestfs-actions.pod:2306
25855 msgid "guestfs_grepi"
25856 msgstr ""
25857
25858 #. type: verbatim
25859 #: ../src/guestfs-actions.pod:2308
25860 #, no-wrap
25861 msgid ""
25862 " char **\n"
25863 " guestfs_grepi (guestfs_h *g,\n"
25864 "                const char *regex,\n"
25865 "                const char *path);\n"
25866 "\n"
25867 msgstr ""
25868
25869 #. type: =head2
25870 #: ../src/guestfs-actions.pod:2325
25871 msgid "guestfs_grub_install"
25872 msgstr ""
25873
25874 #. type: verbatim
25875 #: ../src/guestfs-actions.pod:2327
25876 #, no-wrap
25877 msgid ""
25878 " int\n"
25879 " guestfs_grub_install (guestfs_h *g,\n"
25880 "                       const char *root,\n"
25881 "                       const char *device);\n"
25882 "\n"
25883 msgstr ""
25884
25885 #. type: textblock
25886 #: ../src/guestfs-actions.pod:2348
25887 msgid "(Added in 1.0.17)"
25888 msgstr ""
25889
25890 #. type: =head2
25891 #: ../src/guestfs-actions.pod:2350
25892 msgid "guestfs_head"
25893 msgstr ""
25894
25895 #. type: verbatim
25896 #: ../src/guestfs-actions.pod:2352
25897 #, no-wrap
25898 msgid ""
25899 " char **\n"
25900 " guestfs_head (guestfs_h *g,\n"
25901 "               const char *path);\n"
25902 "\n"
25903 msgstr ""
25904
25905 #. type: =head2
25906 #: ../src/guestfs-actions.pod:2368
25907 msgid "guestfs_head_n"
25908 msgstr ""
25909
25910 #. type: verbatim
25911 #: ../src/guestfs-actions.pod:2370
25912 #, no-wrap
25913 msgid ""
25914 " char **\n"
25915 " guestfs_head_n (guestfs_h *g,\n"
25916 "                 int nrlines,\n"
25917 "                 const char *path);\n"
25918 "\n"
25919 msgstr ""
25920
25921 #. type: =head2
25922 #: ../src/guestfs-actions.pod:2392
25923 msgid "guestfs_hexdump"
25924 msgstr ""
25925
25926 #. type: verbatim
25927 #: ../src/guestfs-actions.pod:2394
25928 #, no-wrap
25929 msgid ""
25930 " char *\n"
25931 " guestfs_hexdump (guestfs_h *g,\n"
25932 "                  const char *path);\n"
25933 "\n"
25934 msgstr ""
25935
25936 #. type: textblock
25937 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6780
25938 #: ../src/guestfs-actions.pod:6835
25939 msgid "(Added in 1.0.22)"
25940 msgstr ""
25941
25942 #. type: =head2
25943 #: ../src/guestfs-actions.pod:2409
25944 msgid "guestfs_initrd_cat"
25945 msgstr ""
25946
25947 #. type: verbatim
25948 #: ../src/guestfs-actions.pod:2411
25949 #, no-wrap
25950 msgid ""
25951 " char *\n"
25952 " guestfs_initrd_cat (guestfs_h *g,\n"
25953 "                     const char *initrdpath,\n"
25954 "                     const char *filename,\n"
25955 "                     size_t *size_r);\n"
25956 "\n"
25957 msgstr ""
25958
25959 #. type: textblock
25960 #: ../src/guestfs-actions.pod:2427
25961 msgid "See also C<guestfs_initrd_list>."
25962 msgstr ""
25963
25964 #. type: =head2
25965 #: ../src/guestfs-actions.pod:2438
25966 msgid "guestfs_initrd_list"
25967 msgstr ""
25968
25969 #. type: verbatim
25970 #: ../src/guestfs-actions.pod:2440
25971 #, no-wrap
25972 msgid ""
25973 " char **\n"
25974 " guestfs_initrd_list (guestfs_h *g,\n"
25975 "                      const char *path);\n"
25976 "\n"
25977 msgstr ""
25978
25979 #. type: =head2
25980 #: ../src/guestfs-actions.pod:2460
25981 msgid "guestfs_inotify_add_watch"
25982 msgstr ""
25983
25984 #. type: verbatim
25985 #: ../src/guestfs-actions.pod:2462
25986 #, no-wrap
25987 msgid ""
25988 " int64_t\n"
25989 " guestfs_inotify_add_watch (guestfs_h *g,\n"
25990 "                            const char *path,\n"
25991 "                            int mask);\n"
25992 "\n"
25993 msgstr ""
25994
25995 #. type: =head2
25996 #: ../src/guestfs-actions.pod:2481
25997 msgid "guestfs_inotify_close"
25998 msgstr ""
25999
26000 #. type: verbatim
26001 #: ../src/guestfs-actions.pod:2483
26002 #, no-wrap
26003 msgid ""
26004 " int\n"
26005 " guestfs_inotify_close (guestfs_h *g);\n"
26006 "\n"
26007 msgstr ""
26008
26009 #. type: =head2
26010 #: ../src/guestfs-actions.pod:2494
26011 msgid "guestfs_inotify_files"
26012 msgstr ""
26013
26014 #. type: verbatim
26015 #: ../src/guestfs-actions.pod:2496
26016 #, no-wrap
26017 msgid ""
26018 " char **\n"
26019 " guestfs_inotify_files (guestfs_h *g);\n"
26020 "\n"
26021 msgstr ""
26022
26023 #. type: textblock
26024 #: ../src/guestfs-actions.pod:2499
26025 msgid ""
26026 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26027 "returns a list of pathnames of objects that were touched.  The returned "
26028 "pathnames are sorted and deduplicated."
26029 msgstr ""
26030
26031 #. type: =head2
26032 #: ../src/guestfs-actions.pod:2509
26033 msgid "guestfs_inotify_init"
26034 msgstr ""
26035
26036 #. type: verbatim
26037 #: ../src/guestfs-actions.pod:2511
26038 #, no-wrap
26039 msgid ""
26040 " int\n"
26041 " guestfs_inotify_init (guestfs_h *g,\n"
26042 "                       int maxevents);\n"
26043 "\n"
26044 msgstr ""
26045
26046 #. type: textblock
26047 #: ../src/guestfs-actions.pod:2519
26048 msgid ""
26049 "C<maxevents> is the maximum number of events which will be queued up between "
26050 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
26051 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
26052 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
26053 "throws away events, but records the fact that it threw them away by setting "
26054 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
26055 "C<guestfs_inotify_read>)."
26056 msgstr ""
26057
26058 #. type: textblock
26059 #: ../src/guestfs-actions.pod:2529
26060 msgid ""
26061 "Before any events are generated, you have to add some watches to the "
26062 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
26063 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26064 msgstr ""
26065
26066 #. type: textblock
26067 #: ../src/guestfs-actions.pod:2535
26068 msgid ""
26069 "Queued up events should be read periodically by calling "
26070 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26071 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
26072 "often enough then you risk the internal queue overflowing."
26073 msgstr ""
26074
26075 #. type: textblock
26076 #: ../src/guestfs-actions.pod:2542
26077 msgid ""
26078 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
26079 "This also removes any watches automatically."
26080 msgstr ""
26081
26082 #. type: =head2
26083 #: ../src/guestfs-actions.pod:2555
26084 msgid "guestfs_inotify_read"
26085 msgstr ""
26086
26087 #. type: verbatim
26088 #: ../src/guestfs-actions.pod:2557
26089 #, no-wrap
26090 msgid ""
26091 " struct guestfs_inotify_event_list *\n"
26092 " guestfs_inotify_read (guestfs_h *g);\n"
26093 "\n"
26094 msgstr ""
26095
26096 #. type: textblock
26097 #: ../src/guestfs-actions.pod:2571
26098 msgid ""
26099 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26100 "there was an error.  I<The caller must call "
26101 "C<guestfs_free_inotify_event_list> after use>."
26102 msgstr ""
26103
26104 #. type: =head2
26105 #: ../src/guestfs-actions.pod:2577
26106 msgid "guestfs_inotify_rm_watch"
26107 msgstr ""
26108
26109 #. type: verbatim
26110 #: ../src/guestfs-actions.pod:2579
26111 #, no-wrap
26112 msgid ""
26113 " int\n"
26114 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26115 "                           int wd);\n"
26116 "\n"
26117 msgstr ""
26118
26119 #. type: textblock
26120 #: ../src/guestfs-actions.pod:2583
26121 msgid ""
26122 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
26123 msgstr ""
26124
26125 #. type: =head2
26126 #: ../src/guestfs-actions.pod:2590
26127 msgid "guestfs_inspect_get_arch"
26128 msgstr ""
26129
26130 #. type: verbatim
26131 #: ../src/guestfs-actions.pod:2592
26132 #, no-wrap
26133 msgid ""
26134 " char *\n"
26135 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26136 "                           const char *root);\n"
26137 "\n"
26138 msgstr ""
26139
26140 #. type: textblock
26141 #: ../src/guestfs-actions.pod:2596
26142 msgid ""
26143 "This returns the architecture of the inspected operating system.  The "
26144 "possible return values are listed under C<guestfs_file_architecture>."
26145 msgstr ""
26146
26147 #. type: =head2
26148 #: ../src/guestfs-actions.pod:2610
26149 msgid "guestfs_inspect_get_distro"
26150 msgstr ""
26151
26152 #. type: verbatim
26153 #: ../src/guestfs-actions.pod:2612
26154 #, no-wrap
26155 msgid ""
26156 " char *\n"
26157 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26158 "                             const char *root);\n"
26159 "\n"
26160 msgstr ""
26161
26162 #. type: =head2
26163 #: ../src/guestfs-actions.pod:2700
26164 msgid "guestfs_inspect_get_drive_mappings"
26165 msgstr ""
26166
26167 #. type: verbatim
26168 #: ../src/guestfs-actions.pod:2702
26169 #, no-wrap
26170 msgid ""
26171 " char **\n"
26172 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26173 "                                     const char *root);\n"
26174 "\n"
26175 msgstr ""
26176
26177 #. type: textblock
26178 #: ../src/guestfs-actions.pod:2731
26179 msgid ""
26180 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26181 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26182 msgstr ""
26183
26184 #. type: textblock
26185 #: ../src/guestfs-actions.pod:2735 ../src/guestfs-actions.pod:3003
26186 #: ../src/guestfs-actions.pod:3801 ../src/guestfs-actions.pod:5083
26187 #: ../src/guestfs-actions.pod:7137
26188 msgid ""
26189 "This function returns a NULL-terminated array of strings, or NULL if there "
26190 "was an error.  The array of strings will always have length C<2n+1>, where "
26191 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26192 "caller must free the strings and the array after use>."
26193 msgstr ""
26194
26195 #. type: textblock
26196 #: ../src/guestfs-actions.pod:2741 ../src/guestfs-actions.pod:3197
26197 msgid "(Added in 1.9.17)"
26198 msgstr ""
26199
26200 #. type: =head2
26201 #: ../src/guestfs-actions.pod:2743
26202 msgid "guestfs_inspect_get_filesystems"
26203 msgstr ""
26204
26205 #. type: verbatim
26206 #: ../src/guestfs-actions.pod:2745
26207 #, no-wrap
26208 msgid ""
26209 " char **\n"
26210 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26211 "                                  const char *root);\n"
26212 "\n"
26213 msgstr ""
26214
26215 #. type: textblock
26216 #: ../src/guestfs-actions.pod:2757
26217 msgid ""
26218 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26219 "C<guestfs_inspect_get_mountpoints>."
26220 msgstr ""
26221
26222 #. type: =head2
26223 #: ../src/guestfs-actions.pod:2766
26224 msgid "guestfs_inspect_get_format"
26225 msgstr ""
26226
26227 #. type: verbatim
26228 #: ../src/guestfs-actions.pod:2768
26229 #, no-wrap
26230 msgid ""
26231 " char *\n"
26232 " guestfs_inspect_get_format (guestfs_h *g,\n"
26233 "                             const char *root);\n"
26234 "\n"
26235 msgstr ""
26236
26237 #. type: textblock
26238 #: ../src/guestfs-actions.pod:2802 ../src/guestfs-actions.pod:3233
26239 #: ../src/guestfs-actions.pod:3249 ../src/guestfs-actions.pod:3267
26240 #: ../src/guestfs-actions.pod:6033
26241 msgid "(Added in 1.9.4)"
26242 msgstr ""
26243
26244 #. type: =head2
26245 #: ../src/guestfs-actions.pod:2804
26246 msgid "guestfs_inspect_get_hostname"
26247 msgstr ""
26248
26249 #. type: verbatim
26250 #: ../src/guestfs-actions.pod:2806
26251 #, no-wrap
26252 msgid ""
26253 " char *\n"
26254 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26255 "                               const char *root);\n"
26256 "\n"
26257 msgstr ""
26258
26259 #. type: textblock
26260 #: ../src/guestfs-actions.pod:2821
26261 msgid "(Added in 1.7.9)"
26262 msgstr ""
26263
26264 #. type: =head2
26265 #: ../src/guestfs-actions.pod:2823
26266 msgid "guestfs_inspect_get_icon"
26267 msgstr ""
26268
26269 #. type: verbatim
26270 #: ../src/guestfs-actions.pod:2825
26271 #, no-wrap
26272 msgid ""
26273 " char *\n"
26274 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26275 "                           const char *root,\n"
26276 "                           size_t *size_r,\n"
26277 "                           ...);\n"
26278 "\n"
26279 msgstr ""
26280
26281 #. type: verbatim
26282 #: ../src/guestfs-actions.pod:2836
26283 #, no-wrap
26284 msgid ""
26285 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26286 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26287 "\n"
26288 msgstr ""
26289
26290 #. type: textblock
26291 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3728
26292 #: ../src/guestfs-actions.pod:4982
26293 msgid "(Added in 1.11.12)"
26294 msgstr ""
26295
26296 #. type: =head2
26297 #: ../src/guestfs-actions.pod:2905
26298 msgid "guestfs_inspect_get_icon_va"
26299 msgstr ""
26300
26301 #. type: verbatim
26302 #: ../src/guestfs-actions.pod:2907
26303 #, no-wrap
26304 msgid ""
26305 " char *\n"
26306 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26307 "                              const char *root,\n"
26308 "                              size_t *size_r,\n"
26309 "                              va_list args);\n"
26310 "\n"
26311 msgstr ""
26312
26313 #. type: textblock
26314 #: ../src/guestfs-actions.pod:2913
26315 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26316 msgstr ""
26317
26318 #. type: =head2
26319 #: ../src/guestfs-actions.pod:2917
26320 msgid "guestfs_inspect_get_icon_argv"
26321 msgstr ""
26322
26323 #. type: verbatim
26324 #: ../src/guestfs-actions.pod:2919
26325 #, no-wrap
26326 msgid ""
26327 " char *\n"
26328 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26329 "                                const char *root,\n"
26330 "                                size_t *size_r,\n"
26331 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
26332 "\n"
26333 msgstr ""
26334
26335 #. type: textblock
26336 #: ../src/guestfs-actions.pod:2925
26337 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26338 msgstr ""
26339
26340 #. type: =head2
26341 #: ../src/guestfs-actions.pod:2929
26342 msgid "guestfs_inspect_get_major_version"
26343 msgstr ""
26344
26345 #. type: verbatim
26346 #: ../src/guestfs-actions.pod:2931
26347 #, no-wrap
26348 msgid ""
26349 " int\n"
26350 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26351 "                                    const char *root);\n"
26352 "\n"
26353 msgstr ""
26354
26355 #. type: =head2
26356 #: ../src/guestfs-actions.pod:2953
26357 msgid "guestfs_inspect_get_minor_version"
26358 msgstr ""
26359
26360 #. type: verbatim
26361 #: ../src/guestfs-actions.pod:2955
26362 #, no-wrap
26363 msgid ""
26364 " int\n"
26365 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26366 "                                    const char *root);\n"
26367 "\n"
26368 msgstr ""
26369
26370 #. type: textblock
26371 #: ../src/guestfs-actions.pod:2964
26372 msgid ""
26373 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26374 "C<guestfs_inspect_get_major_version>."
26375 msgstr ""
26376
26377 #. type: =head2
26378 #: ../src/guestfs-actions.pod:2971
26379 msgid "guestfs_inspect_get_mountpoints"
26380 msgstr ""
26381
26382 #. type: verbatim
26383 #: ../src/guestfs-actions.pod:2973
26384 #, no-wrap
26385 msgid ""
26386 " char **\n"
26387 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26388 "                                  const char *root);\n"
26389 "\n"
26390 msgstr ""
26391
26392 #. type: textblock
26393 #: ../src/guestfs-actions.pod:2994
26394 msgid ""
26395 "For operating systems like Windows which still use drive letters, this call "
26396 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26397 "information about the mapping of drive letters to partitions, see "
26398 "C<guestfs_inspect_get_drive_mappings>."
26399 msgstr ""
26400
26401 #. type: textblock
26402 #: ../src/guestfs-actions.pod:3000
26403 msgid ""
26404 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26405 "C<guestfs_inspect_get_filesystems>."
26406 msgstr ""
26407
26408 #. type: =head2
26409 #: ../src/guestfs-actions.pod:3011
26410 msgid "guestfs_inspect_get_package_format"
26411 msgstr ""
26412
26413 #. type: verbatim
26414 #: ../src/guestfs-actions.pod:3013
26415 #, no-wrap
26416 msgid ""
26417 " char *\n"
26418 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26419 "                                     const char *root);\n"
26420 "\n"
26421 msgstr ""
26422
26423 #. type: textblock
26424 #: ../src/guestfs-actions.pod:3017
26425 msgid ""
26426 "This function and C<guestfs_inspect_get_package_management> return the "
26427 "package format and package management tool used by the inspected operating "
26428 "system.  For example for Fedora these functions would return C<rpm> (package "
26429 "format) and C<yum> (package management)."
26430 msgstr ""
26431
26432 #. type: textblock
26433 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3063
26434 msgid "(Added in 1.7.5)"
26435 msgstr ""
26436
26437 #. type: =head2
26438 #: ../src/guestfs-actions.pod:3037
26439 msgid "guestfs_inspect_get_package_management"
26440 msgstr ""
26441
26442 #. type: verbatim
26443 #: ../src/guestfs-actions.pod:3039
26444 #, no-wrap
26445 msgid ""
26446 " char *\n"
26447 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26448 "                                         const char *root);\n"
26449 "\n"
26450 msgstr ""
26451
26452 #. type: textblock
26453 #: ../src/guestfs-actions.pod:3043
26454 msgid ""
26455 "C<guestfs_inspect_get_package_format> and this function return the package "
26456 "format and package management tool used by the inspected operating system.  "
26457 "For example for Fedora these functions would return C<rpm> (package format) "
26458 "and C<yum> (package management)."
26459 msgstr ""
26460
26461 #. type: =head2
26462 #: ../src/guestfs-actions.pod:3065
26463 msgid "guestfs_inspect_get_product_name"
26464 msgstr ""
26465
26466 #. type: verbatim
26467 #: ../src/guestfs-actions.pod:3067
26468 #, no-wrap
26469 msgid ""
26470 " char *\n"
26471 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26472 "                                   const char *root);\n"
26473 "\n"
26474 msgstr ""
26475
26476 #. type: =head2
26477 #: ../src/guestfs-actions.pod:3086
26478 msgid "guestfs_inspect_get_product_variant"
26479 msgstr ""
26480
26481 #. type: verbatim
26482 #: ../src/guestfs-actions.pod:3088
26483 #, no-wrap
26484 msgid ""
26485 " char *\n"
26486 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26487 "                                      const char *root);\n"
26488 "\n"
26489 msgstr ""
26490
26491 #. type: textblock
26492 #: ../src/guestfs-actions.pod:3111
26493 msgid ""
26494 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26495 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26496 msgstr ""
26497
26498 #. type: textblock
26499 #: ../src/guestfs-actions.pod:3118
26500 msgid "(Added in 1.9.13)"
26501 msgstr ""
26502
26503 #. type: =head2
26504 #: ../src/guestfs-actions.pod:3120
26505 msgid "guestfs_inspect_get_roots"
26506 msgstr ""
26507
26508 #. type: verbatim
26509 #: ../src/guestfs-actions.pod:3122
26510 #, no-wrap
26511 msgid ""
26512 " char **\n"
26513 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26514 "\n"
26515 msgstr ""
26516
26517 #. type: textblock
26518 #: ../src/guestfs-actions.pod:3125
26519 msgid ""
26520 "This function is a convenient way to get the list of root devices, as "
26521 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26522 "the whole inspection process."
26523 msgstr ""
26524
26525 #. type: textblock
26526 #: ../src/guestfs-actions.pod:3129
26527 msgid ""
26528 "This returns an empty list if either no root devices were found or the "
26529 "caller has not called C<guestfs_inspect_os>."
26530 msgstr ""
26531
26532 #. type: textblock
26533 #: ../src/guestfs-actions.pod:3138
26534 msgid "(Added in 1.7.3)"
26535 msgstr ""
26536
26537 #. type: =head2
26538 #: ../src/guestfs-actions.pod:3140
26539 msgid "guestfs_inspect_get_type"
26540 msgstr ""
26541
26542 #. type: verbatim
26543 #: ../src/guestfs-actions.pod:3142
26544 #, no-wrap
26545 msgid ""
26546 " char *\n"
26547 " guestfs_inspect_get_type (guestfs_h *g,\n"
26548 "                           const char *root);\n"
26549 "\n"
26550 msgstr ""
26551
26552 #. type: =head2
26553 #: ../src/guestfs-actions.pod:3179
26554 msgid "guestfs_inspect_get_windows_current_control_set"
26555 msgstr ""
26556
26557 #. type: verbatim
26558 #: ../src/guestfs-actions.pod:3181
26559 #, no-wrap
26560 msgid ""
26561 " char *\n"
26562 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26563 "                                                  const char *root);\n"
26564 "\n"
26565 msgstr ""
26566
26567 #. type: =head2
26568 #: ../src/guestfs-actions.pod:3199
26569 msgid "guestfs_inspect_get_windows_systemroot"
26570 msgstr ""
26571
26572 #. type: verbatim
26573 #: ../src/guestfs-actions.pod:3201
26574 #, no-wrap
26575 msgid ""
26576 " char *\n"
26577 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26578 "                                         const char *root);\n"
26579 "\n"
26580 msgstr ""
26581
26582 #. type: textblock
26583 #: ../src/guestfs-actions.pod:3217
26584 msgid "(Added in 1.5.25)"
26585 msgstr ""
26586
26587 #. type: =head2
26588 #: ../src/guestfs-actions.pod:3219
26589 msgid "guestfs_inspect_is_live"
26590 msgstr ""
26591
26592 #. type: verbatim
26593 #: ../src/guestfs-actions.pod:3221
26594 #, no-wrap
26595 msgid ""
26596 " int\n"
26597 " guestfs_inspect_is_live (guestfs_h *g,\n"
26598 "                          const char *root);\n"
26599 "\n"
26600 msgstr ""
26601
26602 #. type: textblock
26603 #: ../src/guestfs-actions.pod:3225
26604 msgid ""
26605 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26606 "disk), then this returns true if a live image was detected on the disk."
26607 msgstr ""
26608
26609 #. type: =head2
26610 #: ../src/guestfs-actions.pod:3235
26611 msgid "guestfs_inspect_is_multipart"
26612 msgstr ""
26613
26614 #. type: verbatim
26615 #: ../src/guestfs-actions.pod:3237
26616 #, no-wrap
26617 msgid ""
26618 " int\n"
26619 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26620 "                               const char *root);\n"
26621 "\n"
26622 msgstr ""
26623
26624 #. type: textblock
26625 #: ../src/guestfs-actions.pod:3241
26626 msgid ""
26627 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26628 "disk), then this returns true if the disk is part of a set."
26629 msgstr ""
26630
26631 #. type: =head2
26632 #: ../src/guestfs-actions.pod:3251
26633 msgid "guestfs_inspect_is_netinst"
26634 msgstr ""
26635
26636 #. type: verbatim
26637 #: ../src/guestfs-actions.pod:3253
26638 #, no-wrap
26639 msgid ""
26640 " int\n"
26641 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26642 "                             const char *root);\n"
26643 "\n"
26644 msgstr ""
26645
26646 #. type: textblock
26647 #: ../src/guestfs-actions.pod:3257
26648 msgid ""
26649 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26650 "disk), then this returns true if the disk is a network installer, ie. not a "
26651 "self-contained install CD but one which is likely to require network access "
26652 "to complete the install."
26653 msgstr ""
26654
26655 #. type: =head2
26656 #: ../src/guestfs-actions.pod:3269
26657 msgid "guestfs_inspect_list_applications"
26658 msgstr ""
26659
26660 #. type: verbatim
26661 #: ../src/guestfs-actions.pod:3271
26662 #, no-wrap
26663 msgid ""
26664 " struct guestfs_application_list *\n"
26665 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26666 "                                    const char *root);\n"
26667 "\n"
26668 msgstr ""
26669
26670 #. type: textblock
26671 #: ../src/guestfs-actions.pod:3277
26672 msgid ""
26673 "I<Note:> This call works differently from other parts of the inspection "
26674 "API.  You have to call C<guestfs_inspect_os>, then "
26675 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26676 "this.  Listing applications is a significantly more difficult operation "
26677 "which requires access to the full filesystem.  Also note that unlike the "
26678 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26679 "the libguestfs handle, this call actually reads parts of the mounted "
26680 "filesystems during the call."
26681 msgstr ""
26682
26683 #. type: textblock
26684 #: ../src/guestfs-actions.pod:3367
26685 msgid ""
26686 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26687 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
26688 "after use>."
26689 msgstr ""
26690
26691 #. type: textblock
26692 #: ../src/guestfs-actions.pod:3371
26693 msgid "(Added in 1.7.8)"
26694 msgstr ""
26695
26696 #. type: =head2
26697 #: ../src/guestfs-actions.pod:3373
26698 msgid "guestfs_inspect_os"
26699 msgstr ""
26700
26701 #. type: verbatim
26702 #: ../src/guestfs-actions.pod:3375
26703 #, no-wrap
26704 msgid ""
26705 " char **\n"
26706 " guestfs_inspect_os (guestfs_h *g);\n"
26707 "\n"
26708 msgstr ""
26709
26710 #. type: textblock
26711 #: ../src/guestfs-actions.pod:3391
26712 msgid ""
26713 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
26714 "functions in order to query further information about each operating system, "
26715 "such as the name and version."
26716 msgstr ""
26717
26718 #. type: textblock
26719 #: ../src/guestfs-actions.pod:3396
26720 msgid ""
26721 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
26722 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
26723 "the contents.  This should be called with no disks currently mounted.  The "
26724 "function may also use Augeas, so any existing Augeas handle will be closed."
26725 msgstr ""
26726
26727 #. type: textblock
26728 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3739
26729 #: ../src/guestfs-actions.pod:3821
26730 msgid "See also C<guestfs_list_filesystems>."
26731 msgstr ""
26732
26733 #. type: =head2
26734 #: ../src/guestfs-actions.pod:3416
26735 msgid "guestfs_is_blockdev"
26736 msgstr ""
26737
26738 #. type: verbatim
26739 #: ../src/guestfs-actions.pod:3418
26740 #, no-wrap
26741 msgid ""
26742 " int\n"
26743 " guestfs_is_blockdev (guestfs_h *g,\n"
26744 "                      const char *path);\n"
26745 "\n"
26746 msgstr ""
26747
26748 #. type: textblock
26749 #: ../src/guestfs-actions.pod:3425 ../src/guestfs-actions.pod:3454
26750 #: ../src/guestfs-actions.pod:3484 ../src/guestfs-actions.pod:3499
26751 #: ../src/guestfs-actions.pod:3515 ../src/guestfs-actions.pod:3571
26752 #: ../src/guestfs-actions.pod:3586
26753 msgid "See also C<guestfs_stat>."
26754 msgstr ""
26755
26756 #. type: textblock
26757 #: ../src/guestfs-actions.pod:3429 ../src/guestfs-actions.pod:3458
26758 #: ../src/guestfs-actions.pod:3503 ../src/guestfs-actions.pod:3575
26759 #: ../src/guestfs-actions.pod:3590
26760 msgid "(Added in 1.5.10)"
26761 msgstr ""
26762
26763 #. type: =head2
26764 #: ../src/guestfs-actions.pod:3431
26765 msgid "guestfs_is_busy"
26766 msgstr ""
26767
26768 #. type: verbatim
26769 #: ../src/guestfs-actions.pod:3433
26770 #, no-wrap
26771 msgid ""
26772 " int\n"
26773 " guestfs_is_busy (guestfs_h *g);\n"
26774 "\n"
26775 msgstr ""
26776
26777 #. type: =head2
26778 #: ../src/guestfs-actions.pod:3445
26779 msgid "guestfs_is_chardev"
26780 msgstr ""
26781
26782 #. type: verbatim
26783 #: ../src/guestfs-actions.pod:3447
26784 #, no-wrap
26785 msgid ""
26786 " int\n"
26787 " guestfs_is_chardev (guestfs_h *g,\n"
26788 "                     const char *path);\n"
26789 "\n"
26790 msgstr ""
26791
26792 #. type: =head2
26793 #: ../src/guestfs-actions.pod:3460
26794 msgid "guestfs_is_config"
26795 msgstr ""
26796
26797 #. type: verbatim
26798 #: ../src/guestfs-actions.pod:3462
26799 #, no-wrap
26800 msgid ""
26801 " int\n"
26802 " guestfs_is_config (guestfs_h *g);\n"
26803 "\n"
26804 msgstr ""
26805
26806 #. type: =head2
26807 #: ../src/guestfs-actions.pod:3474
26808 msgid "guestfs_is_dir"
26809 msgstr ""
26810
26811 #. type: verbatim
26812 #: ../src/guestfs-actions.pod:3476
26813 #, no-wrap
26814 msgid ""
26815 " int\n"
26816 " guestfs_is_dir (guestfs_h *g,\n"
26817 "                 const char *path);\n"
26818 "\n"
26819 msgstr ""
26820
26821 #. type: =head2
26822 #: ../src/guestfs-actions.pod:3490
26823 msgid "guestfs_is_fifo"
26824 msgstr ""
26825
26826 #. type: verbatim
26827 #: ../src/guestfs-actions.pod:3492
26828 #, no-wrap
26829 msgid ""
26830 " int\n"
26831 " guestfs_is_fifo (guestfs_h *g,\n"
26832 "                  const char *path);\n"
26833 "\n"
26834 msgstr ""
26835
26836 #. type: =head2
26837 #: ../src/guestfs-actions.pod:3505
26838 msgid "guestfs_is_file"
26839 msgstr ""
26840
26841 #. type: verbatim
26842 #: ../src/guestfs-actions.pod:3507
26843 #, no-wrap
26844 msgid ""
26845 " int\n"
26846 " guestfs_is_file (guestfs_h *g,\n"
26847 "                  const char *path);\n"
26848 "\n"
26849 msgstr ""
26850
26851 #. type: =head2
26852 #: ../src/guestfs-actions.pod:3521
26853 msgid "guestfs_is_launching"
26854 msgstr ""
26855
26856 #. type: verbatim
26857 #: ../src/guestfs-actions.pod:3523
26858 #, no-wrap
26859 msgid ""
26860 " int\n"
26861 " guestfs_is_launching (guestfs_h *g);\n"
26862 "\n"
26863 msgstr ""
26864
26865 #. type: =head2
26866 #: ../src/guestfs-actions.pod:3535
26867 msgid "guestfs_is_lv"
26868 msgstr ""
26869
26870 #. type: verbatim
26871 #: ../src/guestfs-actions.pod:3537
26872 #, no-wrap
26873 msgid ""
26874 " int\n"
26875 " guestfs_is_lv (guestfs_h *g,\n"
26876 "                const char *device);\n"
26877 "\n"
26878 msgstr ""
26879
26880 #. type: =head2
26881 #: ../src/guestfs-actions.pod:3548
26882 msgid "guestfs_is_ready"
26883 msgstr ""
26884
26885 #. type: verbatim
26886 #: ../src/guestfs-actions.pod:3550
26887 #, no-wrap
26888 msgid ""
26889 " int\n"
26890 " guestfs_is_ready (guestfs_h *g);\n"
26891 "\n"
26892 msgstr ""
26893
26894 #. type: =head2
26895 #: ../src/guestfs-actions.pod:3562
26896 msgid "guestfs_is_socket"
26897 msgstr ""
26898
26899 #. type: verbatim
26900 #: ../src/guestfs-actions.pod:3564
26901 #, no-wrap
26902 msgid ""
26903 " int\n"
26904 " guestfs_is_socket (guestfs_h *g,\n"
26905 "                    const char *path);\n"
26906 "\n"
26907 msgstr ""
26908
26909 #. type: =head2
26910 #: ../src/guestfs-actions.pod:3577
26911 msgid "guestfs_is_symlink"
26912 msgstr ""
26913
26914 #. type: verbatim
26915 #: ../src/guestfs-actions.pod:3579
26916 #, no-wrap
26917 msgid ""
26918 " int\n"
26919 " guestfs_is_symlink (guestfs_h *g,\n"
26920 "                     const char *path);\n"
26921 "\n"
26922 msgstr ""
26923
26924 #. type: =head2
26925 #: ../src/guestfs-actions.pod:3592
26926 msgid "guestfs_is_zero"
26927 msgstr ""
26928
26929 #. type: verbatim
26930 #: ../src/guestfs-actions.pod:3594
26931 #, no-wrap
26932 msgid ""
26933 " int\n"
26934 " guestfs_is_zero (guestfs_h *g,\n"
26935 "                  const char *path);\n"
26936 "\n"
26937 msgstr ""
26938
26939 #. type: textblock
26940 #: ../src/guestfs-actions.pod:3603 ../src/guestfs-actions.pod:3617
26941 msgid "(Added in 1.11.8)"
26942 msgstr ""
26943
26944 #. type: =head2
26945 #: ../src/guestfs-actions.pod:3605
26946 msgid "guestfs_is_zero_device"
26947 msgstr ""
26948
26949 #. type: verbatim
26950 #: ../src/guestfs-actions.pod:3607
26951 #, no-wrap
26952 msgid ""
26953 " int\n"
26954 " guestfs_is_zero_device (guestfs_h *g,\n"
26955 "                         const char *device);\n"
26956 "\n"
26957 msgstr ""
26958
26959 #. type: =head2
26960 #: ../src/guestfs-actions.pod:3619
26961 msgid "guestfs_kill_subprocess"
26962 msgstr ""
26963
26964 #. type: verbatim
26965 #: ../src/guestfs-actions.pod:3621
26966 #, no-wrap
26967 msgid ""
26968 " int\n"
26969 " guestfs_kill_subprocess (guestfs_h *g);\n"
26970 "\n"
26971 msgstr ""
26972
26973 #. type: =head2
26974 #: ../src/guestfs-actions.pod:3630
26975 msgid "guestfs_launch"
26976 msgstr ""
26977
26978 #. type: verbatim
26979 #: ../src/guestfs-actions.pod:3632
26980 #, no-wrap
26981 msgid ""
26982 " int\n"
26983 " guestfs_launch (guestfs_h *g);\n"
26984 "\n"
26985 msgstr ""
26986
26987 #. type: =head2
26988 #: ../src/guestfs-actions.pod:3650
26989 msgid "guestfs_lchown"
26990 msgstr ""
26991
26992 #. type: verbatim
26993 #: ../src/guestfs-actions.pod:3652
26994 #, no-wrap
26995 msgid ""
26996 " int\n"
26997 " guestfs_lchown (guestfs_h *g,\n"
26998 "                 int owner,\n"
26999 "                 int group,\n"
27000 "                 const char *path);\n"
27001 "\n"
27002 msgstr ""
27003
27004 #. type: textblock
27005 #: ../src/guestfs-actions.pod:3658
27006 msgid ""
27007 "Change the file owner to C<owner> and group to C<group>.  This is like "
27008 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27009 "changed, not the target."
27010 msgstr ""
27011
27012 #. type: =head2
27013 #: ../src/guestfs-actions.pod:3670
27014 msgid "guestfs_lgetxattr"
27015 msgstr ""
27016
27017 #. type: verbatim
27018 #: ../src/guestfs-actions.pod:3672
27019 #, no-wrap
27020 msgid ""
27021 " char *\n"
27022 " guestfs_lgetxattr (guestfs_h *g,\n"
27023 "                    const char *path,\n"
27024 "                    const char *name,\n"
27025 "                    size_t *size_r);\n"
27026 "\n"
27027 msgstr ""
27028
27029 #. type: textblock
27030 #: ../src/guestfs-actions.pod:3692
27031 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27032 msgstr ""
27033
27034 #. type: =head2
27035 #: ../src/guestfs-actions.pod:3700
27036 msgid "guestfs_lgetxattrs"
27037 msgstr ""
27038
27039 #. type: verbatim
27040 #: ../src/guestfs-actions.pod:3702
27041 #, no-wrap
27042 msgid ""
27043 " struct guestfs_xattr_list *\n"
27044 " guestfs_lgetxattrs (guestfs_h *g,\n"
27045 "                     const char *path);\n"
27046 "\n"
27047 msgstr ""
27048
27049 #. type: textblock
27050 #: ../src/guestfs-actions.pod:3706
27051 msgid ""
27052 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
27053 "then it returns the extended attributes of the link itself."
27054 msgstr ""
27055
27056 #. type: =head2
27057 #: ../src/guestfs-actions.pod:3716
27058 msgid "guestfs_list_9p"
27059 msgstr ""
27060
27061 #. type: verbatim
27062 #: ../src/guestfs-actions.pod:3718
27063 #, no-wrap
27064 msgid ""
27065 " char **\n"
27066 " guestfs_list_9p (guestfs_h *g);\n"
27067 "\n"
27068 msgstr ""
27069
27070 #. type: =head2
27071 #: ../src/guestfs-actions.pod:3730
27072 msgid "guestfs_list_devices"
27073 msgstr ""
27074
27075 #. type: verbatim
27076 #: ../src/guestfs-actions.pod:3732
27077 #, no-wrap
27078 msgid ""
27079 " char **\n"
27080 " guestfs_list_devices (guestfs_h *g);\n"
27081 "\n"
27082 msgstr ""
27083
27084 #. type: =head2
27085 #: ../src/guestfs-actions.pod:3747
27086 msgid "guestfs_list_dm_devices"
27087 msgstr ""
27088
27089 #. type: verbatim
27090 #: ../src/guestfs-actions.pod:3749
27091 #, no-wrap
27092 msgid ""
27093 " char **\n"
27094 " guestfs_list_dm_devices (guestfs_h *g);\n"
27095 "\n"
27096 msgstr ""
27097
27098 #. type: textblock
27099 #: ../src/guestfs-actions.pod:3754
27100 msgid ""
27101 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27102 "previous call to C<guestfs_luks_open>."
27103 msgstr ""
27104
27105 #. type: textblock
27106 #: ../src/guestfs-actions.pod:3757
27107 msgid ""
27108 "Device mapper devices which correspond to logical volumes are I<not> "
27109 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
27110 "volumes."
27111 msgstr ""
27112
27113 #. type: textblock
27114 #: ../src/guestfs-actions.pod:3765 ../src/guestfs-actions.pod:5221
27115 msgid "(Added in 1.11.15)"
27116 msgstr ""
27117
27118 #. type: =head2
27119 #: ../src/guestfs-actions.pod:3767
27120 msgid "guestfs_list_filesystems"
27121 msgstr ""
27122
27123 #. type: verbatim
27124 #: ../src/guestfs-actions.pod:3769
27125 #, no-wrap
27126 msgid ""
27127 " char **\n"
27128 " guestfs_list_filesystems (guestfs_h *g);\n"
27129 "\n"
27130 msgstr ""
27131
27132 #. type: textblock
27133 #: ../src/guestfs-actions.pod:3789
27134 msgid ""
27135 "This command runs other libguestfs commands, which might include "
27136 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27137 "soon after launch and only when nothing is mounted."
27138 msgstr ""
27139
27140 #. type: textblock
27141 #: ../src/guestfs-actions.pod:3793
27142 msgid ""
27143 "Not all of the filesystems returned will be mountable.  In particular, swap "
27144 "partitions are returned in the list.  Also this command does not check that "
27145 "each filesystem found is valid and mountable, and some filesystems might be "
27146 "mountable but require special options.  Filesystems may not all belong to a "
27147 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
27148 msgstr ""
27149
27150 #. type: textblock
27151 #: ../src/guestfs-actions.pod:3807 ../src/guestfs-actions.pod:5582
27152 msgid "(Added in 1.5.15)"
27153 msgstr ""
27154
27155 #. type: =head2
27156 #: ../src/guestfs-actions.pod:3809
27157 msgid "guestfs_list_partitions"
27158 msgstr "guestfs_list_partitions"
27159
27160 #. type: verbatim
27161 #: ../src/guestfs-actions.pod:3811
27162 #, no-wrap
27163 msgid ""
27164 " char **\n"
27165 " guestfs_list_partitions (guestfs_h *g);\n"
27166 "\n"
27167 msgstr ""
27168 " char **\n"
27169 " guestfs_list_partitions (guestfs_h *g);\n"
27170 "\n"
27171
27172 #. type: textblock
27173 #: ../src/guestfs-actions.pod:3818
27174 msgid ""
27175 "This does not return logical volumes.  For that you will need to call "
27176 "C<guestfs_lvs>."
27177 msgstr ""
27178
27179 #. type: =head2
27180 #: ../src/guestfs-actions.pod:3829
27181 msgid "guestfs_ll"
27182 msgstr "guestfs_ll"
27183
27184 #. type: verbatim
27185 #: ../src/guestfs-actions.pod:3831
27186 #, no-wrap
27187 msgid ""
27188 " char *\n"
27189 " guestfs_ll (guestfs_h *g,\n"
27190 "             const char *directory);\n"
27191 "\n"
27192 msgstr ""
27193 " char *\n"
27194 " guestfs_ll (guestfs_h *g,\n"
27195 "             const char *directory);\n"
27196 "\n"
27197
27198 #. type: =head2
27199 #: ../src/guestfs-actions.pod:3846
27200 msgid "guestfs_ln"
27201 msgstr "guestfs_ln"
27202
27203 #. type: verbatim
27204 #: ../src/guestfs-actions.pod:3848
27205 #, no-wrap
27206 msgid ""
27207 " int\n"
27208 " guestfs_ln (guestfs_h *g,\n"
27209 "             const char *target,\n"
27210 "             const char *linkname);\n"
27211 "\n"
27212 msgstr ""
27213 " int\n"
27214 " guestfs_ln (guestfs_h *g,\n"
27215 "             const char *target,\n"
27216 "             const char *linkname);\n"
27217 "\n"
27218
27219 #. type: =head2
27220 #: ../src/guestfs-actions.pod:3859
27221 msgid "guestfs_ln_f"
27222 msgstr "guestfs_ln_f"
27223
27224 #. type: verbatim
27225 #: ../src/guestfs-actions.pod:3861
27226 #, no-wrap
27227 msgid ""
27228 " int\n"
27229 " guestfs_ln_f (guestfs_h *g,\n"
27230 "               const char *target,\n"
27231 "               const char *linkname);\n"
27232 "\n"
27233 msgstr ""
27234 " int\n"
27235 " guestfs_ln_f (guestfs_h *g,\n"
27236 "               const char *target,\n"
27237 "               const char *linkname);\n"
27238 "\n"
27239
27240 #. type: =head2
27241 #: ../src/guestfs-actions.pod:3873
27242 msgid "guestfs_ln_s"
27243 msgstr "guestfs_ln_s"
27244
27245 #. type: verbatim
27246 #: ../src/guestfs-actions.pod:3875
27247 #, no-wrap
27248 msgid ""
27249 " int\n"
27250 " guestfs_ln_s (guestfs_h *g,\n"
27251 "               const char *target,\n"
27252 "               const char *linkname);\n"
27253 "\n"
27254 msgstr ""
27255 " int\n"
27256 " guestfs_ln_s (guestfs_h *g,\n"
27257 "               const char *target,\n"
27258 "               const char *linkname);\n"
27259 "\n"
27260
27261 #. type: =head2
27262 #: ../src/guestfs-actions.pod:3886
27263 msgid "guestfs_ln_sf"
27264 msgstr "guestfs_ln_sf"
27265
27266 #. type: verbatim
27267 #: ../src/guestfs-actions.pod:3888
27268 #, no-wrap
27269 msgid ""
27270 " int\n"
27271 " guestfs_ln_sf (guestfs_h *g,\n"
27272 "                const char *target,\n"
27273 "                const char *linkname);\n"
27274 "\n"
27275 msgstr ""
27276 " int\n"
27277 " guestfs_ln_sf (guestfs_h *g,\n"
27278 "                const char *target,\n"
27279 "                const char *linkname);\n"
27280 "\n"
27281
27282 #. type: =head2
27283 #: ../src/guestfs-actions.pod:3900
27284 msgid "guestfs_lremovexattr"
27285 msgstr "guestfs_lremovexattr"
27286
27287 #. type: verbatim
27288 #: ../src/guestfs-actions.pod:3902
27289 #, no-wrap
27290 msgid ""
27291 " int\n"
27292 " guestfs_lremovexattr (guestfs_h *g,\n"
27293 "                       const char *xattr,\n"
27294 "                       const char *path);\n"
27295 "\n"
27296 msgstr ""
27297 " int\n"
27298 " guestfs_lremovexattr (guestfs_h *g,\n"
27299 "                       const char *xattr,\n"
27300 "                       const char *path);\n"
27301 "\n"
27302
27303 #. type: textblock
27304 #: ../src/guestfs-actions.pod:3907
27305 msgid ""
27306 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27307 "link, then it removes an extended attribute of the link itself."
27308 msgstr ""
27309
27310 #. type: =head2
27311 #: ../src/guestfs-actions.pod:3915
27312 msgid "guestfs_ls"
27313 msgstr "guestfs_ls"
27314
27315 #. type: verbatim
27316 #: ../src/guestfs-actions.pod:3917
27317 #, no-wrap
27318 msgid ""
27319 " char **\n"
27320 " guestfs_ls (guestfs_h *g,\n"
27321 "             const char *directory);\n"
27322 "\n"
27323 msgstr ""
27324 " char **\n"
27325 " guestfs_ls (guestfs_h *g,\n"
27326 "             const char *directory);\n"
27327 "\n"
27328
27329 #. type: textblock
27330 #: ../src/guestfs-actions.pod:3925
27331 msgid ""
27332 "This command is mostly useful for interactive sessions.  Programs should "
27333 "probably use C<guestfs_readdir> instead."
27334 msgstr ""
27335
27336 #. type: =head2
27337 #: ../src/guestfs-actions.pod:3934
27338 msgid "guestfs_lsetxattr"
27339 msgstr "guestfs_lsetxattr"
27340
27341 #. type: verbatim
27342 #: ../src/guestfs-actions.pod:3936
27343 #, no-wrap
27344 msgid ""
27345 " int\n"
27346 " guestfs_lsetxattr (guestfs_h *g,\n"
27347 "                    const char *xattr,\n"
27348 "                    const char *val,\n"
27349 "                    int vallen,\n"
27350 "                    const char *path);\n"
27351 "\n"
27352 msgstr ""
27353 " int\n"
27354 " guestfs_lsetxattr (guestfs_h *g,\n"
27355 "                    const char *xattr,\n"
27356 "                    const char *val,\n"
27357 "                    int vallen,\n"
27358 "                    const char *path);\n"
27359 "\n"
27360
27361 #. type: textblock
27362 #: ../src/guestfs-actions.pod:3943
27363 msgid ""
27364 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27365 "then it sets an extended attribute of the link itself."
27366 msgstr ""
27367
27368 #. type: =head2
27369 #: ../src/guestfs-actions.pod:3951
27370 msgid "guestfs_lstat"
27371 msgstr "guestfs_lstat"
27372
27373 #. type: verbatim
27374 #: ../src/guestfs-actions.pod:3953
27375 #, no-wrap
27376 msgid ""
27377 " struct guestfs_stat *\n"
27378 " guestfs_lstat (guestfs_h *g,\n"
27379 "                const char *path);\n"
27380 "\n"
27381 msgstr ""
27382 " struct guestfs_stat *\n"
27383 " guestfs_lstat (guestfs_h *g,\n"
27384 "                const char *path);\n"
27385 "\n"
27386
27387 #. type: textblock
27388 #: ../src/guestfs-actions.pod:3959
27389 msgid ""
27390 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27391 "link, then the link is stat-ed, not the file it refers to."
27392 msgstr ""
27393
27394 #. type: textblock
27395 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:6740
27396 msgid ""
27397 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27398 "error.  I<The caller must call C<guestfs_free_stat> after use>."
27399 msgstr ""
27400
27401 #. type: textblock
27402 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:6744
27403 #: ../src/guestfs-actions.pod:6762 ../src/guestfs-actions.pod:7143
27404 msgid "(Added in 0.9.2)"
27405 msgstr "(Додано у 0.9.2)"
27406
27407 #. type: =head2
27408 #: ../src/guestfs-actions.pod:3971
27409 msgid "guestfs_lstatlist"
27410 msgstr "guestfs_lstatlist"
27411
27412 #. type: verbatim
27413 #: ../src/guestfs-actions.pod:3973
27414 #, no-wrap
27415 msgid ""
27416 " struct guestfs_stat_list *\n"
27417 " guestfs_lstatlist (guestfs_h *g,\n"
27418 "                    const char *path,\n"
27419 "                    char *const *names);\n"
27420 "\n"
27421 msgstr ""
27422 " struct guestfs_stat_list *\n"
27423 " guestfs_lstatlist (guestfs_h *g,\n"
27424 "                    const char *path,\n"
27425 "                    char *const *names);\n"
27426 "\n"
27427
27428 #. type: textblock
27429 #: ../src/guestfs-actions.pod:3978
27430 msgid ""
27431 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27432 "files, where all files are in the directory C<path>.  C<names> is the list "
27433 "of files from this directory."
27434 msgstr ""
27435
27436 #. type: textblock
27437 #: ../src/guestfs-actions.pod:3987
27438 msgid ""
27439 "This call is intended for programs that want to efficiently list a directory "
27440 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
27441 "for a similarly efficient call for getting extended attributes.  Very long "
27442 "directory listings might cause the protocol message size to be exceeded, "
27443 "causing this call to fail.  The caller must split up such requests into "
27444 "smaller groups of names."
27445 msgstr ""
27446
27447 #. type: textblock
27448 #: ../src/guestfs-actions.pod:3995
27449 msgid ""
27450 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27451 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
27452 msgstr ""
27453
27454 #. type: =head2
27455 #: ../src/guestfs-actions.pod:4001
27456 msgid "guestfs_luks_add_key"
27457 msgstr "guestfs_luks_add_key"
27458
27459 #. type: verbatim
27460 #: ../src/guestfs-actions.pod:4003
27461 #, no-wrap
27462 msgid ""
27463 " int\n"
27464 " guestfs_luks_add_key (guestfs_h *g,\n"
27465 "                       const char *device,\n"
27466 "                       const char *key,\n"
27467 "                       const char *newkey,\n"
27468 "                       int keyslot);\n"
27469 "\n"
27470 msgstr ""
27471 " int\n"
27472 " guestfs_luks_add_key (guestfs_h *g,\n"
27473 "                       const char *device,\n"
27474 "                       const char *key,\n"
27475 "                       const char *newkey,\n"
27476 "                       int keyslot);\n"
27477 "\n"
27478
27479 #. type: textblock
27480 #: ../src/guestfs-actions.pod:4015
27481 msgid ""
27482 "Note that if C<keyslot> already contains a key, then this command will "
27483 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
27484 msgstr ""
27485
27486 #. type: textblock
27487 #: ../src/guestfs-actions.pod:4021 ../src/guestfs-actions.pod:4061
27488 #: ../src/guestfs-actions.pod:4084 ../src/guestfs-actions.pod:4104
27489 #: ../src/guestfs-actions.pod:4139 ../src/guestfs-actions.pod:4158
27490 msgid ""
27491 "This function takes a key or passphrase parameter which could contain "
27492 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
27493 "information."
27494 msgstr ""
27495
27496 #. type: textblock
27497 #: ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4065
27498 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4108
27499 msgid "(Added in 1.5.2)"
27500 msgstr "(Додано у 1.5.2)"
27501
27502 #. type: =head2
27503 #: ../src/guestfs-actions.pod:4027
27504 msgid "guestfs_luks_close"
27505 msgstr "guestfs_luks_close"
27506
27507 #. type: verbatim
27508 #: ../src/guestfs-actions.pod:4029
27509 #, no-wrap
27510 msgid ""
27511 " int\n"
27512 " guestfs_luks_close (guestfs_h *g,\n"
27513 "                     const char *device);\n"
27514 "\n"
27515 msgstr ""
27516 " int\n"
27517 " guestfs_luks_close (guestfs_h *g,\n"
27518 "                     const char *device);\n"
27519 "\n"
27520
27521 #. type: textblock
27522 #: ../src/guestfs-actions.pod:4033
27523 msgid ""
27524 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27525 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
27526 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27527 "underlying block device."
27528 msgstr ""
27529
27530 #. type: textblock
27531 #: ../src/guestfs-actions.pod:4041 ../src/guestfs-actions.pod:4143
27532 #: ../src/guestfs-actions.pod:4162 ../src/guestfs-actions.pod:4212
27533 #: ../src/guestfs-actions.pod:4260
27534 msgid "(Added in 1.5.1)"
27535 msgstr "(Додано у 1.5.1)"
27536
27537 #. type: =head2
27538 #: ../src/guestfs-actions.pod:4043
27539 msgid "guestfs_luks_format"
27540 msgstr "guestfs_luks_format"
27541
27542 #. type: verbatim
27543 #: ../src/guestfs-actions.pod:4045
27544 #, no-wrap
27545 msgid ""
27546 " int\n"
27547 " guestfs_luks_format (guestfs_h *g,\n"
27548 "                      const char *device,\n"
27549 "                      const char *key,\n"
27550 "                      int keyslot);\n"
27551 "\n"
27552 msgstr ""
27553 " int\n"
27554 " guestfs_luks_format (guestfs_h *g,\n"
27555 "                      const char *device,\n"
27556 "                      const char *key,\n"
27557 "                      int keyslot);\n"
27558 "\n"
27559
27560 #. type: =head2
27561 #: ../src/guestfs-actions.pod:4067
27562 msgid "guestfs_luks_format_cipher"
27563 msgstr "guestfs_luks_format_cipher"
27564
27565 #. type: verbatim
27566 #: ../src/guestfs-actions.pod:4069
27567 #, no-wrap
27568 msgid ""
27569 " int\n"
27570 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27571 "                             const char *device,\n"
27572 "                             const char *key,\n"
27573 "                             int keyslot,\n"
27574 "                             const char *cipher);\n"
27575 "\n"
27576 msgstr ""
27577 " int\n"
27578 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27579 "                             const char *device,\n"
27580 "                             const char *key,\n"
27581 "                             int keyslot,\n"
27582 "                             const char *cipher);\n"
27583 "\n"
27584
27585 #. type: textblock
27586 #: ../src/guestfs-actions.pod:4076
27587 msgid ""
27588 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27589 "set the C<cipher> used."
27590 msgstr ""
27591
27592 #. type: =head2
27593 #: ../src/guestfs-actions.pod:4090
27594 msgid "guestfs_luks_kill_slot"
27595 msgstr "guestfs_luks_kill_slot"
27596
27597 #. type: verbatim
27598 #: ../src/guestfs-actions.pod:4092
27599 #, no-wrap
27600 msgid ""
27601 " int\n"
27602 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27603 "                         const char *device,\n"
27604 "                         const char *key,\n"
27605 "                         int keyslot);\n"
27606 "\n"
27607 msgstr ""
27608 " int\n"
27609 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27610 "                         const char *device,\n"
27611 "                         const char *key,\n"
27612 "                         int keyslot);\n"
27613 "\n"
27614
27615 #. type: =head2
27616 #: ../src/guestfs-actions.pod:4110
27617 msgid "guestfs_luks_open"
27618 msgstr "guestfs_luks_open"
27619
27620 #. type: verbatim
27621 #: ../src/guestfs-actions.pod:4112
27622 #, no-wrap
27623 msgid ""
27624 " int\n"
27625 " guestfs_luks_open (guestfs_h *g,\n"
27626 "                    const char *device,\n"
27627 "                    const char *key,\n"
27628 "                    const char *mapname);\n"
27629 "\n"
27630 msgstr ""
27631 " int\n"
27632 " guestfs_luks_open (guestfs_h *g,\n"
27633 "                    const char *device,\n"
27634 "                    const char *key,\n"
27635 "                    const char *mapname);\n"
27636 "\n"
27637
27638 #. type: textblock
27639 #: ../src/guestfs-actions.pod:4130
27640 msgid ""
27641 "If this block device contains LVM volume groups, then calling "
27642 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27643 "visible."
27644 msgstr ""
27645
27646 #. type: textblock
27647 #: ../src/guestfs-actions.pod:4134
27648 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27649 msgstr ""
27650
27651 #. type: =head2
27652 #: ../src/guestfs-actions.pod:4145
27653 msgid "guestfs_luks_open_ro"
27654 msgstr "guestfs_luks_open_ro"
27655
27656 #. type: verbatim
27657 #: ../src/guestfs-actions.pod:4147
27658 #, no-wrap
27659 msgid ""
27660 " int\n"
27661 " guestfs_luks_open_ro (guestfs_h *g,\n"
27662 "                       const char *device,\n"
27663 "                       const char *key,\n"
27664 "                       const char *mapname);\n"
27665 "\n"
27666 msgstr ""
27667 " int\n"
27668 " guestfs_luks_open_ro (guestfs_h *g,\n"
27669 "                       const char *device,\n"
27670 "                       const char *key,\n"
27671 "                       const char *mapname);\n"
27672 "\n"
27673
27674 #. type: textblock
27675 #: ../src/guestfs-actions.pod:4153
27676 msgid ""
27677 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27678 "created."
27679 msgstr ""
27680
27681 #. type: =head2
27682 #: ../src/guestfs-actions.pod:4164
27683 msgid "guestfs_lvcreate"
27684 msgstr "guestfs_lvcreate"
27685
27686 #. type: verbatim
27687 #: ../src/guestfs-actions.pod:4166
27688 #, no-wrap
27689 msgid ""
27690 " int\n"
27691 " guestfs_lvcreate (guestfs_h *g,\n"
27692 "                   const char *logvol,\n"
27693 "                   const char *volgroup,\n"
27694 "                   int mbytes);\n"
27695 "\n"
27696 msgstr ""
27697 " int\n"
27698 " guestfs_lvcreate (guestfs_h *g,\n"
27699 "                   const char *logvol,\n"
27700 "                   const char *volgroup,\n"
27701 "                   int mbytes);\n"
27702 "\n"
27703
27704 #. type: =head2
27705 #: ../src/guestfs-actions.pod:4179
27706 msgid "guestfs_lvm_canonical_lv_name"
27707 msgstr "guestfs_lvm_canonical_lv_name"
27708
27709 #. type: verbatim
27710 #: ../src/guestfs-actions.pod:4181
27711 #, no-wrap
27712 msgid ""
27713 " char *\n"
27714 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27715 "                                const char *lvname);\n"
27716 "\n"
27717 msgstr ""
27718 " char *\n"
27719 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
27720 "                                const char *lvname);\n"
27721 "\n"
27722
27723 #. type: textblock
27724 #: ../src/guestfs-actions.pod:4192
27725 msgid "See also C<guestfs_is_lv>."
27726 msgstr ""
27727
27728 #. type: textblock
27729 #: ../src/guestfs-actions.pod:4197
27730 msgid "(Added in 1.5.24)"
27731 msgstr "(Додано у 1.5.24)"
27732
27733 #. type: =head2
27734 #: ../src/guestfs-actions.pod:4199
27735 msgid "guestfs_lvm_clear_filter"
27736 msgstr "guestfs_lvm_clear_filter"
27737
27738 #. type: verbatim
27739 #: ../src/guestfs-actions.pod:4201
27740 #, no-wrap
27741 msgid ""
27742 " int\n"
27743 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27744 "\n"
27745 msgstr ""
27746 " int\n"
27747 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
27748 "\n"
27749
27750 #. type: textblock
27751 #: ../src/guestfs-actions.pod:4204
27752 msgid ""
27753 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
27754 "see every block device."
27755 msgstr ""
27756
27757 #. type: =head2
27758 #: ../src/guestfs-actions.pod:4214
27759 msgid "guestfs_lvm_remove_all"
27760 msgstr "guestfs_lvm_remove_all"
27761
27762 #. type: verbatim
27763 #: ../src/guestfs-actions.pod:4216
27764 #, no-wrap
27765 msgid ""
27766 " int\n"
27767 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27768 "\n"
27769 msgstr ""
27770 " int\n"
27771 " guestfs_lvm_remove_all (guestfs_h *g);\n"
27772 "\n"
27773
27774 #. type: =head2
27775 #: ../src/guestfs-actions.pod:4229
27776 msgid "guestfs_lvm_set_filter"
27777 msgstr "guestfs_lvm_set_filter"
27778
27779 #. type: verbatim
27780 #: ../src/guestfs-actions.pod:4231
27781 #, no-wrap
27782 msgid ""
27783 " int\n"
27784 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27785 "                         char *const *devices);\n"
27786 "\n"
27787 msgstr ""
27788 " int\n"
27789 " guestfs_lvm_set_filter (guestfs_h *g,\n"
27790 "                         char *const *devices);\n"
27791 "\n"
27792
27793 #. type: =head2
27794 #: ../src/guestfs-actions.pod:4262
27795 msgid "guestfs_lvremove"
27796 msgstr "guestfs_lvremove"
27797
27798 #. type: verbatim
27799 #: ../src/guestfs-actions.pod:4264
27800 #, no-wrap
27801 msgid ""
27802 " int\n"
27803 " guestfs_lvremove (guestfs_h *g,\n"
27804 "                   const char *device);\n"
27805 "\n"
27806 msgstr ""
27807 " int\n"
27808 " guestfs_lvremove (guestfs_h *g,\n"
27809 "                   const char *device);\n"
27810 "\n"
27811
27812 #. type: textblock
27813 #: ../src/guestfs-actions.pod:4276 ../src/guestfs-actions.pod:5679
27814 #: ../src/guestfs-actions.pod:7513
27815 msgid "(Added in 1.0.13)"
27816 msgstr "(Додано у 1.0.13)"
27817
27818 #. type: =head2
27819 #: ../src/guestfs-actions.pod:4278
27820 msgid "guestfs_lvrename"
27821 msgstr "guestfs_lvrename"
27822
27823 #. type: verbatim
27824 #: ../src/guestfs-actions.pod:4280
27825 #, no-wrap
27826 msgid ""
27827 " int\n"
27828 " guestfs_lvrename (guestfs_h *g,\n"
27829 "                   const char *logvol,\n"
27830 "                   const char *newlogvol);\n"
27831 "\n"
27832 msgstr ""
27833 " int\n"
27834 " guestfs_lvrename (guestfs_h *g,\n"
27835 "                   const char *logvol,\n"
27836 "                   const char *newlogvol);\n"
27837 "\n"
27838
27839 #. type: textblock
27840 #: ../src/guestfs-actions.pod:4289 ../src/guestfs-actions.pod:7526
27841 msgid "(Added in 1.0.83)"
27842 msgstr "(Додано у 1.0.83)"
27843
27844 #. type: =head2
27845 #: ../src/guestfs-actions.pod:4291
27846 msgid "guestfs_lvresize"
27847 msgstr "guestfs_lvresize"
27848
27849 #. type: verbatim
27850 #: ../src/guestfs-actions.pod:4293
27851 #, no-wrap
27852 msgid ""
27853 " int\n"
27854 " guestfs_lvresize (guestfs_h *g,\n"
27855 "                   const char *device,\n"
27856 "                   int mbytes);\n"
27857 "\n"
27858 msgstr ""
27859 " int\n"
27860 " guestfs_lvresize (guestfs_h *g,\n"
27861 "                   const char *device,\n"
27862 "                   int mbytes);\n"
27863 "\n"
27864
27865 #. type: =head2
27866 #: ../src/guestfs-actions.pod:4306
27867 msgid "guestfs_lvresize_free"
27868 msgstr "guestfs_lvresize_free"
27869
27870 #. type: verbatim
27871 #: ../src/guestfs-actions.pod:4308
27872 #, no-wrap
27873 msgid ""
27874 " int\n"
27875 " guestfs_lvresize_free (guestfs_h *g,\n"
27876 "                        const char *lv,\n"
27877 "                        int percent);\n"
27878 "\n"
27879 msgstr ""
27880 " int\n"
27881 " guestfs_lvresize_free (guestfs_h *g,\n"
27882 "                        const char *lv,\n"
27883 "                        int percent);\n"
27884 "\n"
27885
27886 #. type: textblock
27887 #: ../src/guestfs-actions.pod:4321
27888 msgid "(Added in 1.3.3)"
27889 msgstr "(Додано у 1.3.3)"
27890
27891 #. type: =head2
27892 #: ../src/guestfs-actions.pod:4323
27893 msgid "guestfs_lvs"
27894 msgstr "guestfs_lvs"
27895
27896 #. type: verbatim
27897 #: ../src/guestfs-actions.pod:4325
27898 #, no-wrap
27899 msgid ""
27900 " char **\n"
27901 " guestfs_lvs (guestfs_h *g);\n"
27902 "\n"
27903 msgstr ""
27904 " char **\n"
27905 " guestfs_lvs (guestfs_h *g);\n"
27906 "\n"
27907
27908 #. type: textblock
27909 #: ../src/guestfs-actions.pod:4334
27910 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
27911 msgstr ""
27912
27913 #. type: =head2
27914 #: ../src/guestfs-actions.pod:4342
27915 msgid "guestfs_lvs_full"
27916 msgstr "guestfs_lvs_full"
27917
27918 #. type: verbatim
27919 #: ../src/guestfs-actions.pod:4344
27920 #, no-wrap
27921 msgid ""
27922 " struct guestfs_lvm_lv_list *\n"
27923 " guestfs_lvs_full (guestfs_h *g);\n"
27924 "\n"
27925 msgstr ""
27926 " struct guestfs_lvm_lv_list *\n"
27927 " guestfs_lvs_full (guestfs_h *g);\n"
27928 "\n"
27929
27930 #. type: textblock
27931 #: ../src/guestfs-actions.pod:4350
27932 msgid ""
27933 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
27934 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
27935 msgstr ""
27936
27937 #. type: =head2
27938 #: ../src/guestfs-actions.pod:4356
27939 msgid "guestfs_lvuuid"
27940 msgstr "guestfs_lvuuid"
27941
27942 #. type: verbatim
27943 #: ../src/guestfs-actions.pod:4358
27944 #, no-wrap
27945 msgid ""
27946 " char *\n"
27947 " guestfs_lvuuid (guestfs_h *g,\n"
27948 "                 const char *device);\n"
27949 "\n"
27950 msgstr ""
27951 " char *\n"
27952 " guestfs_lvuuid (guestfs_h *g,\n"
27953 "                 const char *device);\n"
27954 "\n"
27955
27956 #. type: =head2
27957 #: ../src/guestfs-actions.pod:4369
27958 msgid "guestfs_lxattrlist"
27959 msgstr "guestfs_lxattrlist"
27960
27961 #. type: verbatim
27962 #: ../src/guestfs-actions.pod:4371
27963 #, no-wrap
27964 msgid ""
27965 " struct guestfs_xattr_list *\n"
27966 " guestfs_lxattrlist (guestfs_h *g,\n"
27967 "                     const char *path,\n"
27968 "                     char *const *names);\n"
27969 "\n"
27970 msgstr ""
27971 " struct guestfs_xattr_list *\n"
27972 " guestfs_lxattrlist (guestfs_h *g,\n"
27973 "                     const char *path,\n"
27974 "                     char *const *names);\n"
27975 "\n"
27976
27977 #. type: textblock
27978 #: ../src/guestfs-actions.pod:4390
27979 msgid ""
27980 "This call is intended for programs that want to efficiently list a directory "
27981 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
27982 "a similarly efficient call for getting standard stats.  Very long directory "
27983 "listings might cause the protocol message size to be exceeded, causing this "
27984 "call to fail.  The caller must split up such requests into smaller groups of "
27985 "names."
27986 msgstr ""
27987
27988 #. type: =head2
27989 #: ../src/guestfs-actions.pod:4404
27990 msgid "guestfs_mkdir"
27991 msgstr "guestfs_mkdir"
27992
27993 #. type: verbatim
27994 #: ../src/guestfs-actions.pod:4406
27995 #, no-wrap
27996 msgid ""
27997 " int\n"
27998 " guestfs_mkdir (guestfs_h *g,\n"
27999 "                const char *path);\n"
28000 "\n"
28001 msgstr ""
28002 " int\n"
28003 " guestfs_mkdir (guestfs_h *g,\n"
28004 "                const char *path);\n"
28005 "\n"
28006
28007 #. type: =head2
28008 #: ../src/guestfs-actions.pod:4416
28009 msgid "guestfs_mkdir_mode"
28010 msgstr "guestfs_mkdir_mode"
28011
28012 #. type: verbatim
28013 #: ../src/guestfs-actions.pod:4418
28014 #, no-wrap
28015 msgid ""
28016 " int\n"
28017 " guestfs_mkdir_mode (guestfs_h *g,\n"
28018 "                     const char *path,\n"
28019 "                     int mode);\n"
28020 "\n"
28021 msgstr ""
28022 " int\n"
28023 " guestfs_mkdir_mode (guestfs_h *g,\n"
28024 "                     const char *path,\n"
28025 "                     int mode);\n"
28026 "\n"
28027
28028 #. type: textblock
28029 #: ../src/guestfs-actions.pod:4430
28030 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
28031 msgstr ""
28032
28033 #. type: =head2
28034 #: ../src/guestfs-actions.pod:4436
28035 msgid "guestfs_mkdir_p"
28036 msgstr "guestfs_mkdir_p"
28037
28038 #. type: verbatim
28039 #: ../src/guestfs-actions.pod:4438
28040 #, no-wrap
28041 msgid ""
28042 " int\n"
28043 " guestfs_mkdir_p (guestfs_h *g,\n"
28044 "                  const char *path);\n"
28045 "\n"
28046 msgstr ""
28047 " int\n"
28048 " guestfs_mkdir_p (guestfs_h *g,\n"
28049 "                  const char *path);\n"
28050 "\n"
28051
28052 #. type: =head2
28053 #: ../src/guestfs-actions.pod:4449
28054 msgid "guestfs_mkdtemp"
28055 msgstr "guestfs_mkdtemp"
28056
28057 #. type: verbatim
28058 #: ../src/guestfs-actions.pod:4451
28059 #, no-wrap
28060 msgid ""
28061 " char *\n"
28062 " guestfs_mkdtemp (guestfs_h *g,\n"
28063 "                  const char *template);\n"
28064 "\n"
28065 msgstr ""
28066 " char *\n"
28067 " guestfs_mkdtemp (guestfs_h *g,\n"
28068 "                  const char *template);\n"
28069 "\n"
28070
28071 #. type: =head2
28072 #: ../src/guestfs-actions.pod:4479
28073 msgid "guestfs_mke2fs_J"
28074 msgstr "guestfs_mke2fs_J"
28075
28076 #. type: verbatim
28077 #: ../src/guestfs-actions.pod:4481
28078 #, no-wrap
28079 msgid ""
28080 " int\n"
28081 " guestfs_mke2fs_J (guestfs_h *g,\n"
28082 "                   const char *fstype,\n"
28083 "                   int blocksize,\n"
28084 "                   const char *device,\n"
28085 "                   const char *journal);\n"
28086 "\n"
28087 msgstr ""
28088 " int\n"
28089 " guestfs_mke2fs_J (guestfs_h *g,\n"
28090 "                   const char *fstype,\n"
28091 "                   int blocksize,\n"
28092 "                   const char *device,\n"
28093 "                   const char *journal);\n"
28094 "\n"
28095
28096 #. type: textblock
28097 #: ../src/guestfs-actions.pod:4494
28098 msgid "See also C<guestfs_mke2journal>."
28099 msgstr ""
28100
28101 #. type: textblock
28102 #: ../src/guestfs-actions.pod:4498 ../src/guestfs-actions.pod:4516
28103 #: ../src/guestfs-actions.pod:4534 ../src/guestfs-actions.pod:4550
28104 #: ../src/guestfs-actions.pod:4564 ../src/guestfs-actions.pod:4578
28105 #: ../src/guestfs-actions.pod:4637 ../src/guestfs-actions.pod:4914
28106 msgid "(Added in 1.0.68)"
28107 msgstr "(Додано у 1.0.68)"
28108
28109 #. type: =head2
28110 #: ../src/guestfs-actions.pod:4500
28111 msgid "guestfs_mke2fs_JL"
28112 msgstr "guestfs_mke2fs_JL"
28113
28114 #. type: verbatim
28115 #: ../src/guestfs-actions.pod:4502
28116 #, no-wrap
28117 msgid ""
28118 " int\n"
28119 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28120 "                    const char *fstype,\n"
28121 "                    int blocksize,\n"
28122 "                    const char *device,\n"
28123 "                    const char *label);\n"
28124 "\n"
28125 msgstr ""
28126 " int\n"
28127 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28128 "                    const char *fstype,\n"
28129 "                    int blocksize,\n"
28130 "                    const char *device,\n"
28131 "                    const char *label);\n"
28132 "\n"
28133
28134 #. type: textblock
28135 #: ../src/guestfs-actions.pod:4512
28136 msgid "See also C<guestfs_mke2journal_L>."
28137 msgstr ""
28138
28139 #. type: =head2
28140 #: ../src/guestfs-actions.pod:4518
28141 msgid "guestfs_mke2fs_JU"
28142 msgstr "guestfs_mke2fs_JU"
28143
28144 #. type: verbatim
28145 #: ../src/guestfs-actions.pod:4520
28146 #, no-wrap
28147 msgid ""
28148 " int\n"
28149 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28150 "                    const char *fstype,\n"
28151 "                    int blocksize,\n"
28152 "                    const char *device,\n"
28153 "                    const char *uuid);\n"
28154 "\n"
28155 msgstr ""
28156 " int\n"
28157 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28158 "                    const char *fstype,\n"
28159 "                    int blocksize,\n"
28160 "                    const char *device,\n"
28161 "                    const char *uuid);\n"
28162 "\n"
28163
28164 #. type: textblock
28165 #: ../src/guestfs-actions.pod:4530
28166 msgid "See also C<guestfs_mke2journal_U>."
28167 msgstr ""
28168
28169 #. type: =head2
28170 #: ../src/guestfs-actions.pod:4536
28171 msgid "guestfs_mke2journal"
28172 msgstr "guestfs_mke2journal"
28173
28174 #. type: verbatim
28175 #: ../src/guestfs-actions.pod:4538
28176 #, no-wrap
28177 msgid ""
28178 " int\n"
28179 " guestfs_mke2journal (guestfs_h *g,\n"
28180 "                      int blocksize,\n"
28181 "                      const char *device);\n"
28182 "\n"
28183 msgstr ""
28184 " int\n"
28185 " guestfs_mke2journal (guestfs_h *g,\n"
28186 "                      int blocksize,\n"
28187 "                      const char *device);\n"
28188 "\n"
28189
28190 #. type: =head2
28191 #: ../src/guestfs-actions.pod:4552
28192 msgid "guestfs_mke2journal_L"
28193 msgstr "guestfs_mke2journal_L"
28194
28195 #. type: verbatim
28196 #: ../src/guestfs-actions.pod:4554
28197 #, no-wrap
28198 msgid ""
28199 " int\n"
28200 " guestfs_mke2journal_L (guestfs_h *g,\n"
28201 "                        int blocksize,\n"
28202 "                        const char *label,\n"
28203 "                        const char *device);\n"
28204 "\n"
28205 msgstr ""
28206 " int\n"
28207 " guestfs_mke2journal_L (guestfs_h *g,\n"
28208 "                        int blocksize,\n"
28209 "                        const char *label,\n"
28210 "                        const char *device);\n"
28211 "\n"
28212
28213 #. type: =head2
28214 #: ../src/guestfs-actions.pod:4566
28215 msgid "guestfs_mke2journal_U"
28216 msgstr "guestfs_mke2journal_U"
28217
28218 #. type: verbatim
28219 #: ../src/guestfs-actions.pod:4568
28220 #, no-wrap
28221 msgid ""
28222 " int\n"
28223 " guestfs_mke2journal_U (guestfs_h *g,\n"
28224 "                        int blocksize,\n"
28225 "                        const char *uuid,\n"
28226 "                        const char *device);\n"
28227 "\n"
28228 msgstr ""
28229 " int\n"
28230 " guestfs_mke2journal_U (guestfs_h *g,\n"
28231 "                        int blocksize,\n"
28232 "                        const char *uuid,\n"
28233 "                        const char *device);\n"
28234 "\n"
28235
28236 #. type: =head2
28237 #: ../src/guestfs-actions.pod:4580
28238 msgid "guestfs_mkfifo"
28239 msgstr "guestfs_mkfifo"
28240
28241 #. type: verbatim
28242 #: ../src/guestfs-actions.pod:4582
28243 #, no-wrap
28244 msgid ""
28245 " int\n"
28246 " guestfs_mkfifo (guestfs_h *g,\n"
28247 "                 int mode,\n"
28248 "                 const char *path);\n"
28249 "\n"
28250 msgstr ""
28251 " int\n"
28252 " guestfs_mkfifo (guestfs_h *g,\n"
28253 "                 int mode,\n"
28254 "                 const char *path);\n"
28255 "\n"
28256
28257 #. type: textblock
28258 #: ../src/guestfs-actions.pod:4587
28259 msgid ""
28260 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28261 "is just a convenient wrapper around C<guestfs_mknod>."
28262 msgstr ""
28263
28264 #. type: =head2
28265 #: ../src/guestfs-actions.pod:4597
28266 msgid "guestfs_mkfs"
28267 msgstr "guestfs_mkfs"
28268
28269 #. type: verbatim
28270 #: ../src/guestfs-actions.pod:4599
28271 #, no-wrap
28272 msgid ""
28273 " int\n"
28274 " guestfs_mkfs (guestfs_h *g,\n"
28275 "               const char *fstype,\n"
28276 "               const char *device);\n"
28277 "\n"
28278 msgstr ""
28279 " int\n"
28280 " guestfs_mkfs (guestfs_h *g,\n"
28281 "               const char *fstype,\n"
28282 "               const char *device);\n"
28283 "\n"
28284
28285 #. type: =head2
28286 #: ../src/guestfs-actions.pod:4612
28287 msgid "guestfs_mkfs_b"
28288 msgstr "guestfs_mkfs_b"
28289
28290 #. type: verbatim
28291 #: ../src/guestfs-actions.pod:4614
28292 #, no-wrap
28293 msgid ""
28294 " int\n"
28295 " guestfs_mkfs_b (guestfs_h *g,\n"
28296 "                 const char *fstype,\n"
28297 "                 int blocksize,\n"
28298 "                 const char *device);\n"
28299 "\n"
28300 msgstr ""
28301 " int\n"
28302 " guestfs_mkfs_b (guestfs_h *g,\n"
28303 "                 const char *fstype,\n"
28304 "                 int blocksize,\n"
28305 "                 const char *device);\n"
28306 "\n"
28307
28308 #. type: textblock
28309 #: ../src/guestfs-actions.pod:4620
28310 msgid ""
28311 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
28312 "call instead."
28313 msgstr ""
28314
28315 #. type: textblock
28316 #: ../src/guestfs-actions.pod:4627
28317 msgid ""
28318 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28319 "block size of the resulting filesystem.  Supported block sizes depend on the "
28320 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28321 msgstr ""
28322
28323 #. type: =head2
28324 #: ../src/guestfs-actions.pod:4639
28325 msgid "guestfs_mkfs_opts"
28326 msgstr "guestfs_mkfs_opts"
28327
28328 #. type: verbatim
28329 #: ../src/guestfs-actions.pod:4641
28330 #, no-wrap
28331 msgid ""
28332 " int\n"
28333 " guestfs_mkfs_opts (guestfs_h *g,\n"
28334 "                    const char *fstype,\n"
28335 "                    const char *device,\n"
28336 "                    ...);\n"
28337 "\n"
28338 msgstr ""
28339 " int\n"
28340 " guestfs_mkfs_opts (guestfs_h *g,\n"
28341 "                    const char *fstype,\n"
28342 "                    const char *device,\n"
28343 "                    ...);\n"
28344 "\n"
28345
28346 #. type: verbatim
28347 #: ../src/guestfs-actions.pod:4652
28348 #, no-wrap
28349 msgid ""
28350 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28351 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28352 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28353 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28354 "\n"
28355 msgstr ""
28356
28357 #. type: textblock
28358 #: ../src/guestfs-actions.pod:4700
28359 msgid "(Added in 1.7.19)"
28360 msgstr "(Додано у 1.7.19)"
28361
28362 #. type: =head2
28363 #: ../src/guestfs-actions.pod:4702
28364 msgid "guestfs_mkfs_opts_va"
28365 msgstr "guestfs_mkfs_opts_va"
28366
28367 #. type: verbatim
28368 #: ../src/guestfs-actions.pod:4704
28369 #, no-wrap
28370 msgid ""
28371 " int\n"
28372 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28373 "                       const char *fstype,\n"
28374 "                       const char *device,\n"
28375 "                       va_list args);\n"
28376 "\n"
28377 msgstr ""
28378 " int\n"
28379 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28380 "                       const char *fstype,\n"
28381 "                       const char *device,\n"
28382 "                       va_list args);\n"
28383 "\n"
28384
28385 #. type: textblock
28386 #: ../src/guestfs-actions.pod:4710
28387 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28388 msgstr ""
28389
28390 #. type: =head2
28391 #: ../src/guestfs-actions.pod:4714
28392 msgid "guestfs_mkfs_opts_argv"
28393 msgstr "guestfs_mkfs_opts_argv"
28394
28395 #. type: verbatim
28396 #: ../src/guestfs-actions.pod:4716
28397 #, no-wrap
28398 msgid ""
28399 " int\n"
28400 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28401 "                         const char *fstype,\n"
28402 "                         const char *device,\n"
28403 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28404 "\n"
28405 msgstr ""
28406 " int\n"
28407 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28408 "                         const char *fstype,\n"
28409 "                         const char *device,\n"
28410 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28411 "\n"
28412
28413 #. type: textblock
28414 #: ../src/guestfs-actions.pod:4722
28415 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28416 msgstr ""
28417
28418 #. type: =head2
28419 #: ../src/guestfs-actions.pod:4726
28420 msgid "guestfs_mkmountpoint"
28421 msgstr "guestfs_mkmountpoint"
28422
28423 #. type: verbatim
28424 #: ../src/guestfs-actions.pod:4728
28425 #, no-wrap
28426 msgid ""
28427 " int\n"
28428 " guestfs_mkmountpoint (guestfs_h *g,\n"
28429 "                       const char *exemptpath);\n"
28430 "\n"
28431 msgstr ""
28432 " int\n"
28433 " guestfs_mkmountpoint (guestfs_h *g,\n"
28434 "                       const char *exemptpath);\n"
28435 "\n"
28436
28437 #. type: textblock
28438 #: ../src/guestfs-actions.pod:4732
28439 msgid ""
28440 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28441 "that can be used to create extra mountpoints before mounting the first "
28442 "filesystem."
28443 msgstr ""
28444
28445 #. type: textblock
28446 #: ../src/guestfs-actions.pod:4756
28447 msgid ""
28448 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
28449 "may get unexpected errors if you try to mix these calls.  It is safest to "
28450 "manually unmount filesystems and remove mountpoints after use."
28451 msgstr ""
28452
28453 #. type: textblock
28454 #: ../src/guestfs-actions.pod:4760
28455 msgid ""
28456 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28457 "first, so for this to work for manual mountpoints, you must ensure that the "
28458 "innermost mountpoints have the longest pathnames, as in the example code "
28459 "above."
28460 msgstr ""
28461
28462 #. type: textblock
28463 #: ../src/guestfs-actions.pod:4767
28464 msgid ""
28465 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28466 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28467 "can also trigger these issues."
28468 msgstr ""
28469
28470 #. type: textblock
28471 #: ../src/guestfs-actions.pod:4773 ../src/guestfs-actions.pod:5089
28472 #: ../src/guestfs-actions.pod:6099
28473 msgid "(Added in 1.0.62)"
28474 msgstr "(Додано у 1.0.62)"
28475
28476 #. type: =head2
28477 #: ../src/guestfs-actions.pod:4775
28478 msgid "guestfs_mknod"
28479 msgstr ""
28480
28481 #. type: verbatim
28482 #: ../src/guestfs-actions.pod:4777
28483 #, no-wrap
28484 msgid ""
28485 " int\n"
28486 " guestfs_mknod (guestfs_h *g,\n"
28487 "                int mode,\n"
28488 "                int devmajor,\n"
28489 "                int devminor,\n"
28490 "                const char *path);\n"
28491 "\n"
28492 msgstr ""
28493
28494 #. type: textblock
28495 #: ../src/guestfs-actions.pod:4792
28496 msgid ""
28497 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28498 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28499 "regular file).  These constants are available in the standard Linux header "
28500 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28501 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28502 "the appropriate constant for you."
28503 msgstr ""
28504
28505 #. type: =head2
28506 #: ../src/guestfs-actions.pod:4806
28507 msgid "guestfs_mknod_b"
28508 msgstr ""
28509
28510 #. type: verbatim
28511 #: ../src/guestfs-actions.pod:4808
28512 #, no-wrap
28513 msgid ""
28514 " int\n"
28515 " guestfs_mknod_b (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:4815
28525 msgid ""
28526 "This call creates a block device node called C<path> with mode C<mode> and "
28527 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28528 "wrapper around C<guestfs_mknod>."
28529 msgstr ""
28530
28531 #. type: =head2
28532 #: ../src/guestfs-actions.pod:4825
28533 msgid "guestfs_mknod_c"
28534 msgstr ""
28535
28536 #. type: verbatim
28537 #: ../src/guestfs-actions.pod:4827
28538 #, no-wrap
28539 msgid ""
28540 " int\n"
28541 " guestfs_mknod_c (guestfs_h *g,\n"
28542 "                  int mode,\n"
28543 "                  int devmajor,\n"
28544 "                  int devminor,\n"
28545 "                  const char *path);\n"
28546 "\n"
28547 msgstr ""
28548
28549 #. type: textblock
28550 #: ../src/guestfs-actions.pod:4834
28551 msgid ""
28552 "This call creates a char device node called C<path> with mode C<mode> and "
28553 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28554 "wrapper around C<guestfs_mknod>."
28555 msgstr ""
28556
28557 #. type: =head2
28558 #: ../src/guestfs-actions.pod:4844
28559 msgid "guestfs_mkswap"
28560 msgstr ""
28561
28562 #. type: verbatim
28563 #: ../src/guestfs-actions.pod:4846
28564 #, no-wrap
28565 msgid ""
28566 " int\n"
28567 " guestfs_mkswap (guestfs_h *g,\n"
28568 "                 const char *device);\n"
28569 "\n"
28570 msgstr ""
28571
28572 #. type: =head2
28573 #: ../src/guestfs-actions.pod:4856
28574 msgid "guestfs_mkswap_L"
28575 msgstr ""
28576
28577 #. type: verbatim
28578 #: ../src/guestfs-actions.pod:4858
28579 #, no-wrap
28580 msgid ""
28581 " int\n"
28582 " guestfs_mkswap_L (guestfs_h *g,\n"
28583 "                   const char *label,\n"
28584 "                   const char *device);\n"
28585 "\n"
28586 msgstr ""
28587
28588 #. type: =head2
28589 #: ../src/guestfs-actions.pod:4873
28590 msgid "guestfs_mkswap_U"
28591 msgstr ""
28592
28593 #. type: verbatim
28594 #: ../src/guestfs-actions.pod:4875
28595 #, no-wrap
28596 msgid ""
28597 " int\n"
28598 " guestfs_mkswap_U (guestfs_h *g,\n"
28599 "                   const char *uuid,\n"
28600 "                   const char *device);\n"
28601 "\n"
28602 msgstr ""
28603
28604 #. type: =head2
28605 #: ../src/guestfs-actions.pod:4886
28606 msgid "guestfs_mkswap_file"
28607 msgstr ""
28608
28609 #. type: verbatim
28610 #: ../src/guestfs-actions.pod:4888
28611 #, no-wrap
28612 msgid ""
28613 " int\n"
28614 " guestfs_mkswap_file (guestfs_h *g,\n"
28615 "                      const char *path);\n"
28616 "\n"
28617 msgstr ""
28618
28619 #. type: textblock
28620 #: ../src/guestfs-actions.pod:4894
28621 msgid ""
28622 "This command just writes a swap file signature to an existing file.  To "
28623 "create the file itself, use something like C<guestfs_fallocate>."
28624 msgstr ""
28625
28626 #. type: =head2
28627 #: ../src/guestfs-actions.pod:4901
28628 msgid "guestfs_modprobe"
28629 msgstr ""
28630
28631 #. type: verbatim
28632 #: ../src/guestfs-actions.pod:4903
28633 #, no-wrap
28634 msgid ""
28635 " int\n"
28636 " guestfs_modprobe (guestfs_h *g,\n"
28637 "                   const char *modulename);\n"
28638 "\n"
28639 msgstr ""
28640
28641 #. type: =head2
28642 #: ../src/guestfs-actions.pod:4916
28643 msgid "guestfs_mount"
28644 msgstr ""
28645
28646 #. type: verbatim
28647 #: ../src/guestfs-actions.pod:4918
28648 #, no-wrap
28649 msgid ""
28650 " int\n"
28651 " guestfs_mount (guestfs_h *g,\n"
28652 "                const char *device,\n"
28653 "                const char *mountpoint);\n"
28654 "\n"
28655 msgstr ""
28656
28657 #. type: textblock
28658 #: ../src/guestfs-actions.pod:4923
28659 msgid ""
28660 "I<This function is deprecated.> In new code, use the L</"
28661 "guestfs_mount_options> call instead."
28662 msgstr ""
28663
28664 #. type: textblock
28665 #: ../src/guestfs-actions.pod:4944
28666 msgid ""
28667 "B<Important note:> When you use this call, the filesystem options C<sync> "
28668 "and C<noatime> are set implicitly.  This was originally done because we "
28669 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28670 "very large negative performance impact and negligible effect on "
28671 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
28672 "in any code that needs performance, and instead use C<guestfs_mount_options> "
28673 "(use an empty string for the first parameter if you don't want any options)."
28674 msgstr ""
28675
28676 #. type: =head2
28677 #: ../src/guestfs-actions.pod:4958
28678 msgid "guestfs_mount_9p"
28679 msgstr ""
28680
28681 #. type: verbatim
28682 #: ../src/guestfs-actions.pod:4960
28683 #, no-wrap
28684 msgid ""
28685 " int\n"
28686 " guestfs_mount_9p (guestfs_h *g,\n"
28687 "                   const char *mounttag,\n"
28688 "                   const char *mountpoint,\n"
28689 "                   ...);\n"
28690 "\n"
28691 msgstr ""
28692
28693 #. type: verbatim
28694 #: ../src/guestfs-actions.pod:4971
28695 #, no-wrap
28696 msgid ""
28697 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
28698 "\n"
28699 msgstr ""
28700
28701 #. type: =head2
28702 #: ../src/guestfs-actions.pod:4984
28703 msgid "guestfs_mount_9p_va"
28704 msgstr ""
28705
28706 #. type: verbatim
28707 #: ../src/guestfs-actions.pod:4986
28708 #, no-wrap
28709 msgid ""
28710 " int\n"
28711 " guestfs_mount_9p_va (guestfs_h *g,\n"
28712 "                      const char *mounttag,\n"
28713 "                      const char *mountpoint,\n"
28714 "                      va_list args);\n"
28715 "\n"
28716 msgstr ""
28717
28718 #. type: textblock
28719 #: ../src/guestfs-actions.pod:4992
28720 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
28721 msgstr ""
28722
28723 #. type: =head2
28724 #: ../src/guestfs-actions.pod:4996
28725 msgid "guestfs_mount_9p_argv"
28726 msgstr ""
28727
28728 #. type: verbatim
28729 #: ../src/guestfs-actions.pod:4998
28730 #, no-wrap
28731 msgid ""
28732 " int\n"
28733 " guestfs_mount_9p_argv (guestfs_h *g,\n"
28734 "                        const char *mounttag,\n"
28735 "                        const char *mountpoint,\n"
28736 "                        const struct guestfs_mount_9p_argv *optargs);\n"
28737 "\n"
28738 msgstr ""
28739
28740 #. type: textblock
28741 #: ../src/guestfs-actions.pod:5004
28742 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
28743 msgstr ""
28744
28745 #. type: =head2
28746 #: ../src/guestfs-actions.pod:5008
28747 msgid "guestfs_mount_loop"
28748 msgstr ""
28749
28750 #. type: verbatim
28751 #: ../src/guestfs-actions.pod:5010
28752 #, no-wrap
28753 msgid ""
28754 " int\n"
28755 " guestfs_mount_loop (guestfs_h *g,\n"
28756 "                     const char *file,\n"
28757 "                     const char *mountpoint);\n"
28758 "\n"
28759 msgstr ""
28760
28761 #. type: =head2
28762 #: ../src/guestfs-actions.pod:5023
28763 msgid "guestfs_mount_options"
28764 msgstr ""
28765
28766 #. type: verbatim
28767 #: ../src/guestfs-actions.pod:5025
28768 #, no-wrap
28769 msgid ""
28770 " int\n"
28771 " guestfs_mount_options (guestfs_h *g,\n"
28772 "                        const char *options,\n"
28773 "                        const char *device,\n"
28774 "                        const char *mountpoint);\n"
28775 "\n"
28776 msgstr ""
28777
28778 #. type: textblock
28779 #: ../src/guestfs-actions.pod:5031
28780 msgid ""
28781 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28782 "the mount options as for the L<mount(8)> I<-o> flag."
28783 msgstr ""
28784
28785 #. type: textblock
28786 #: ../src/guestfs-actions.pod:5041 ../src/guestfs-actions.pod:5055
28787 #: ../src/guestfs-actions.pod:5072
28788 msgid "(Added in 1.0.10)"
28789 msgstr ""
28790
28791 #. type: =head2
28792 #: ../src/guestfs-actions.pod:5043
28793 msgid "guestfs_mount_ro"
28794 msgstr ""
28795
28796 #. type: verbatim
28797 #: ../src/guestfs-actions.pod:5045
28798 #, no-wrap
28799 msgid ""
28800 " int\n"
28801 " guestfs_mount_ro (guestfs_h *g,\n"
28802 "                   const char *device,\n"
28803 "                   const char *mountpoint);\n"
28804 "\n"
28805 msgstr ""
28806
28807 #. type: textblock
28808 #: ../src/guestfs-actions.pod:5050
28809 msgid ""
28810 "This is the same as the C<guestfs_mount> command, but it mounts the "
28811 "filesystem with the read-only (I<-o ro>) flag."
28812 msgstr ""
28813
28814 #. type: =head2
28815 #: ../src/guestfs-actions.pod:5057
28816 msgid "guestfs_mount_vfs"
28817 msgstr ""
28818
28819 #. type: verbatim
28820 #: ../src/guestfs-actions.pod:5059
28821 #, no-wrap
28822 msgid ""
28823 " int\n"
28824 " guestfs_mount_vfs (guestfs_h *g,\n"
28825 "                    const char *options,\n"
28826 "                    const char *vfstype,\n"
28827 "                    const char *device,\n"
28828 "                    const char *mountpoint);\n"
28829 "\n"
28830 msgstr ""
28831
28832 #. type: textblock
28833 #: ../src/guestfs-actions.pod:5066
28834 msgid ""
28835 "This is the same as the C<guestfs_mount> command, but it allows you to set "
28836 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
28837 "t> flags."
28838 msgstr ""
28839
28840 #. type: =head2
28841 #: ../src/guestfs-actions.pod:5074
28842 msgid "guestfs_mountpoints"
28843 msgstr ""
28844
28845 #. type: verbatim
28846 #: ../src/guestfs-actions.pod:5076
28847 #, no-wrap
28848 msgid ""
28849 " char **\n"
28850 " guestfs_mountpoints (guestfs_h *g);\n"
28851 "\n"
28852 msgstr ""
28853
28854 #. type: textblock
28855 #: ../src/guestfs-actions.pod:5079
28856 msgid ""
28857 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
28858 "devices.  This one returns a hash table (map) of device name to directory "
28859 "where the device is mounted."
28860 msgstr ""
28861
28862 #. type: =head2
28863 #: ../src/guestfs-actions.pod:5091
28864 msgid "guestfs_mounts"
28865 msgstr ""
28866
28867 #. type: verbatim
28868 #: ../src/guestfs-actions.pod:5093
28869 #, no-wrap
28870 msgid ""
28871 " char **\n"
28872 " guestfs_mounts (guestfs_h *g);\n"
28873 "\n"
28874 msgstr ""
28875
28876 #. type: textblock
28877 #: ../src/guestfs-actions.pod:5101
28878 msgid "See also: C<guestfs_mountpoints>"
28879 msgstr ""
28880
28881 #. type: =head2
28882 #: ../src/guestfs-actions.pod:5109
28883 msgid "guestfs_mv"
28884 msgstr ""
28885
28886 #. type: verbatim
28887 #: ../src/guestfs-actions.pod:5111
28888 #, no-wrap
28889 msgid ""
28890 " int\n"
28891 " guestfs_mv (guestfs_h *g,\n"
28892 "             const char *src,\n"
28893 "             const char *dest);\n"
28894 "\n"
28895 msgstr ""
28896
28897 #. type: =head2
28898 #: ../src/guestfs-actions.pod:5123
28899 msgid "guestfs_ntfs_3g_probe"
28900 msgstr ""
28901
28902 #. type: verbatim
28903 #: ../src/guestfs-actions.pod:5125
28904 #, no-wrap
28905 msgid ""
28906 " int\n"
28907 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
28908 "                        int rw,\n"
28909 "                        const char *device);\n"
28910 "\n"
28911 msgstr ""
28912
28913 #. type: textblock
28914 #: ../src/guestfs-actions.pod:5144
28915 msgid "(Added in 1.0.43)"
28916 msgstr ""
28917
28918 #. type: =head2
28919 #: ../src/guestfs-actions.pod:5146
28920 msgid "guestfs_ntfsresize"
28921 msgstr ""
28922
28923 #. type: verbatim
28924 #: ../src/guestfs-actions.pod:5148
28925 #, no-wrap
28926 msgid ""
28927 " int\n"
28928 " guestfs_ntfsresize (guestfs_h *g,\n"
28929 "                     const char *device);\n"
28930 "\n"
28931 msgstr ""
28932
28933 #. type: textblock
28934 #: ../src/guestfs-actions.pod:5152 ../src/guestfs-actions.pod:5252
28935 msgid ""
28936 "I<This function is deprecated.> In new code, use the L</"
28937 "guestfs_ntfsresize_opts> call instead."
28938 msgstr ""
28939
28940 #. type: =head2
28941 #: ../src/guestfs-actions.pod:5176
28942 msgid "guestfs_ntfsresize_opts"
28943 msgstr ""
28944
28945 #. type: verbatim
28946 #: ../src/guestfs-actions.pod:5178
28947 #, no-wrap
28948 msgid ""
28949 " int\n"
28950 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
28951 "                          const char *device,\n"
28952 "                          ...);\n"
28953 "\n"
28954 msgstr ""
28955
28956 #. type: verbatim
28957 #: ../src/guestfs-actions.pod:5188
28958 #, no-wrap
28959 msgid ""
28960 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
28961 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
28962 "\n"
28963 msgstr ""
28964
28965 #. type: textblock
28966 #: ../src/guestfs-actions.pod:5208
28967 msgid ""
28968 "After the resize operation, the filesystem is always marked as requiring a "
28969 "consistency check (for safety).  You have to boot into Windows to perform "
28970 "this check and clear this condition.  If you I<don't> set the C<force> "
28971 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
28972 "times on a single filesystem without booting into Windows between each "
28973 "resize."
28974 msgstr ""
28975
28976 #. type: =head2
28977 #: ../src/guestfs-actions.pod:5223
28978 msgid "guestfs_ntfsresize_opts_va"
28979 msgstr ""
28980
28981 #. type: verbatim
28982 #: ../src/guestfs-actions.pod:5225
28983 #, no-wrap
28984 msgid ""
28985 " int\n"
28986 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
28987 "                             const char *device,\n"
28988 "                             va_list args);\n"
28989 "\n"
28990 msgstr ""
28991
28992 #. type: textblock
28993 #: ../src/guestfs-actions.pod:5230
28994 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
28995 msgstr ""
28996
28997 #. type: =head2
28998 #: ../src/guestfs-actions.pod:5234
28999 msgid "guestfs_ntfsresize_opts_argv"
29000 msgstr ""
29001
29002 #. type: verbatim
29003 #: ../src/guestfs-actions.pod:5236
29004 #, no-wrap
29005 msgid ""
29006 " int\n"
29007 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
29008 "                               const char *device,\n"
29009 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
29010 "\n"
29011 msgstr ""
29012
29013 #. type: textblock
29014 #: ../src/guestfs-actions.pod:5241
29015 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
29016 msgstr ""
29017
29018 #. type: =head2
29019 #: ../src/guestfs-actions.pod:5245
29020 msgid "guestfs_ntfsresize_size"
29021 msgstr ""
29022
29023 #. type: verbatim
29024 #: ../src/guestfs-actions.pod:5247
29025 #, no-wrap
29026 msgid ""
29027 " int\n"
29028 " guestfs_ntfsresize_size (guestfs_h *g,\n"
29029 "                          const char *device,\n"
29030 "                          int64_t size);\n"
29031 "\n"
29032 msgstr ""
29033
29034 #. type: textblock
29035 #: ../src/guestfs-actions.pod:5259
29036 msgid ""
29037 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
29038 "to specify the new size (in bytes) explicitly."
29039 msgstr ""
29040
29041 #. type: textblock
29042 #: ../src/guestfs-actions.pod:5264 ../src/guestfs-actions.pod:5706
29043 #: ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:6047
29044 #: ../src/guestfs-actions.pod:7670
29045 msgid "(Added in 1.3.14)"
29046 msgstr ""
29047
29048 #. type: =head2
29049 #: ../src/guestfs-actions.pod:5266
29050 msgid "guestfs_part_add"
29051 msgstr ""
29052
29053 #. type: verbatim
29054 #: ../src/guestfs-actions.pod:5268
29055 #, no-wrap
29056 msgid ""
29057 " int\n"
29058 " guestfs_part_add (guestfs_h *g,\n"
29059 "                   const char *device,\n"
29060 "                   const char *prlogex,\n"
29061 "                   int64_t startsect,\n"
29062 "                   int64_t endsect);\n"
29063 "\n"
29064 msgstr ""
29065
29066 #. type: textblock
29067 #: ../src/guestfs-actions.pod:5275
29068 msgid ""
29069 "This command adds a partition to C<device>.  If there is no partition table "
29070 "on the device, call C<guestfs_part_init> first."
29071 msgstr ""
29072
29073 #. type: textblock
29074 #: ../src/guestfs-actions.pod:5287
29075 msgid ""
29076 "Creating a partition which covers the whole disk is not so easy.  Use "
29077 "C<guestfs_part_disk> to do that."
29078 msgstr ""
29079
29080 #. type: textblock
29081 #: ../src/guestfs-actions.pod:5292 ../src/guestfs-actions.pod:5330
29082 #: ../src/guestfs-actions.pod:5383 ../src/guestfs-actions.pod:5467
29083 #: ../src/guestfs-actions.pod:5505 ../src/guestfs-actions.pod:5524
29084 #: ../src/guestfs-actions.pod:5564
29085 msgid "(Added in 1.0.78)"
29086 msgstr ""
29087
29088 #. type: =head2
29089 #: ../src/guestfs-actions.pod:5294
29090 msgid "guestfs_part_del"
29091 msgstr ""
29092
29093 #. type: verbatim
29094 #: ../src/guestfs-actions.pod:5296
29095 #, no-wrap
29096 msgid ""
29097 " int\n"
29098 " guestfs_part_del (guestfs_h *g,\n"
29099 "                   const char *device,\n"
29100 "                   int partnum);\n"
29101 "\n"
29102 msgstr ""
29103
29104 #. type: =head2
29105 #: ../src/guestfs-actions.pod:5311
29106 msgid "guestfs_part_disk"
29107 msgstr ""
29108
29109 #. type: verbatim
29110 #: ../src/guestfs-actions.pod:5313
29111 #, no-wrap
29112 msgid ""
29113 " int\n"
29114 " guestfs_part_disk (guestfs_h *g,\n"
29115 "                    const char *device,\n"
29116 "                    const char *parttype);\n"
29117 "\n"
29118 msgstr ""
29119
29120 #. type: textblock
29121 #: ../src/guestfs-actions.pod:5318
29122 msgid ""
29123 "This command is simply a combination of C<guestfs_part_init> followed by "
29124 "C<guestfs_part_add> to create a single primary partition covering the whole "
29125 "disk."
29126 msgstr ""
29127
29128 #. type: textblock
29129 #: ../src/guestfs-actions.pod:5322
29130 msgid ""
29131 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29132 "possible values are described in C<guestfs_part_init>."
29133 msgstr ""
29134
29135 #. type: =head2
29136 #: ../src/guestfs-actions.pod:5332
29137 msgid "guestfs_part_get_bootable"
29138 msgstr ""
29139
29140 #. type: verbatim
29141 #: ../src/guestfs-actions.pod:5334
29142 #, no-wrap
29143 msgid ""
29144 " int\n"
29145 " guestfs_part_get_bootable (guestfs_h *g,\n"
29146 "                            const char *device,\n"
29147 "                            int partnum);\n"
29148 "\n"
29149 msgstr ""
29150
29151 #. type: textblock
29152 #: ../src/guestfs-actions.pod:5342
29153 msgid "See also C<guestfs_part_set_bootable>."
29154 msgstr ""
29155
29156 #. type: =head2
29157 #: ../src/guestfs-actions.pod:5348
29158 msgid "guestfs_part_get_mbr_id"
29159 msgstr ""
29160
29161 #. type: verbatim
29162 #: ../src/guestfs-actions.pod:5350
29163 #, no-wrap
29164 msgid ""
29165 " int\n"
29166 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29167 "                          const char *device,\n"
29168 "                          int partnum);\n"
29169 "\n"
29170 msgstr ""
29171
29172 #. type: textblock
29173 #: ../src/guestfs-actions.pod:5358 ../src/guestfs-actions.pod:5540
29174 msgid ""
29175 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29176 "undefined results for other partition table types (see "
29177 "C<guestfs_part_get_parttype>)."
29178 msgstr ""
29179
29180 #. type: =head2
29181 #: ../src/guestfs-actions.pod:5366
29182 msgid "guestfs_part_get_parttype"
29183 msgstr ""
29184
29185 #. type: verbatim
29186 #: ../src/guestfs-actions.pod:5368
29187 #, no-wrap
29188 msgid ""
29189 " char *\n"
29190 " guestfs_part_get_parttype (guestfs_h *g,\n"
29191 "                            const char *device);\n"
29192 "\n"
29193 msgstr ""
29194
29195 #. type: textblock
29196 #: ../src/guestfs-actions.pod:5375
29197 msgid ""
29198 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29199 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29200 "possible, although unusual.  See C<guestfs_part_init> for a full list."
29201 msgstr ""
29202
29203 #. type: =head2
29204 #: ../src/guestfs-actions.pod:5385
29205 msgid "guestfs_part_init"
29206 msgstr ""
29207
29208 #. type: verbatim
29209 #: ../src/guestfs-actions.pod:5387
29210 #, no-wrap
29211 msgid ""
29212 " int\n"
29213 " guestfs_part_init (guestfs_h *g,\n"
29214 "                    const char *device,\n"
29215 "                    const char *parttype);\n"
29216 "\n"
29217 msgstr ""
29218
29219 #. type: textblock
29220 #: ../src/guestfs-actions.pod:5396
29221 msgid ""
29222 "Initially there are no partitions.  Following this, you should call "
29223 "C<guestfs_part_add> for each partition required."
29224 msgstr ""
29225
29226 #. type: =head2
29227 #: ../src/guestfs-actions.pod:5469
29228 msgid "guestfs_part_list"
29229 msgstr "guestfs_part_list"
29230
29231 #. type: verbatim
29232 #: ../src/guestfs-actions.pod:5471
29233 #, no-wrap
29234 msgid ""
29235 " struct guestfs_partition_list *\n"
29236 " guestfs_part_list (guestfs_h *g,\n"
29237 "                    const char *device);\n"
29238 "\n"
29239 msgstr ""
29240 " struct guestfs_partition_list *\n"
29241 " guestfs_part_list (guestfs_h *g,\n"
29242 "                    const char *device);\n"
29243 "\n"
29244
29245 #. type: textblock
29246 #: ../src/guestfs-actions.pod:5488
29247 msgid ""
29248 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29249 "the device's sector size, see C<guestfs_blockdev_getss>."
29250 msgstr ""
29251
29252 #. type: textblock
29253 #: ../src/guestfs-actions.pod:5501
29254 msgid ""
29255 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29256 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
29257 "use>."
29258 msgstr ""
29259
29260 #. type: =head2
29261 #: ../src/guestfs-actions.pod:5507
29262 msgid "guestfs_part_set_bootable"
29263 msgstr ""
29264
29265 #. type: verbatim
29266 #: ../src/guestfs-actions.pod:5509
29267 #, no-wrap
29268 msgid ""
29269 " int\n"
29270 " guestfs_part_set_bootable (guestfs_h *g,\n"
29271 "                            const char *device,\n"
29272 "                            int partnum,\n"
29273 "                            int bootable);\n"
29274 "\n"
29275 msgstr ""
29276
29277 #. type: =head2
29278 #: ../src/guestfs-actions.pod:5526
29279 msgid "guestfs_part_set_mbr_id"
29280 msgstr ""
29281
29282 #. type: verbatim
29283 #: ../src/guestfs-actions.pod:5528
29284 #, no-wrap
29285 msgid ""
29286 " int\n"
29287 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29288 "                          const char *device,\n"
29289 "                          int partnum,\n"
29290 "                          int idbyte);\n"
29291 "\n"
29292 msgstr ""
29293
29294 #. type: =head2
29295 #: ../src/guestfs-actions.pod:5548
29296 msgid "guestfs_part_set_name"
29297 msgstr ""
29298
29299 #. type: verbatim
29300 #: ../src/guestfs-actions.pod:5550
29301 #, no-wrap
29302 msgid ""
29303 " int\n"
29304 " guestfs_part_set_name (guestfs_h *g,\n"
29305 "                        const char *device,\n"
29306 "                        int partnum,\n"
29307 "                        const char *name);\n"
29308 "\n"
29309 msgstr ""
29310
29311 #. type: =head2
29312 #: ../src/guestfs-actions.pod:5566
29313 msgid "guestfs_part_to_dev"
29314 msgstr ""
29315
29316 #. type: verbatim
29317 #: ../src/guestfs-actions.pod:5568
29318 #, no-wrap
29319 msgid ""
29320 " char *\n"
29321 " guestfs_part_to_dev (guestfs_h *g,\n"
29322 "                      const char *partition);\n"
29323 "\n"
29324 msgstr ""
29325
29326 #. type: textblock
29327 #: ../src/guestfs-actions.pod:5576
29328 msgid ""
29329 "The named partition must exist, for example as a string returned from "
29330 "C<guestfs_list_partitions>."
29331 msgstr ""
29332
29333 #. type: =head2
29334 #: ../src/guestfs-actions.pod:5584
29335 msgid "guestfs_ping_daemon"
29336 msgstr ""
29337
29338 #. type: verbatim
29339 #: ../src/guestfs-actions.pod:5586
29340 #, no-wrap
29341 msgid ""
29342 " int\n"
29343 " guestfs_ping_daemon (guestfs_h *g);\n"
29344 "\n"
29345 msgstr ""
29346
29347 #. type: =head2
29348 #: ../src/guestfs-actions.pod:5598
29349 msgid "guestfs_pread"
29350 msgstr ""
29351
29352 #. type: verbatim
29353 #: ../src/guestfs-actions.pod:5600
29354 #, no-wrap
29355 msgid ""
29356 " char *\n"
29357 " guestfs_pread (guestfs_h *g,\n"
29358 "                const char *path,\n"
29359 "                int count,\n"
29360 "                int64_t offset,\n"
29361 "                size_t *size_r);\n"
29362 "\n"
29363 msgstr ""
29364
29365 #. type: textblock
29366 #: ../src/guestfs-actions.pod:5613
29367 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29368 msgstr ""
29369
29370 #. type: =head2
29371 #: ../src/guestfs-actions.pod:5624
29372 msgid "guestfs_pread_device"
29373 msgstr ""
29374
29375 #. type: verbatim
29376 #: ../src/guestfs-actions.pod:5626
29377 #, no-wrap
29378 msgid ""
29379 " char *\n"
29380 " guestfs_pread_device (guestfs_h *g,\n"
29381 "                       const char *device,\n"
29382 "                       int count,\n"
29383 "                       int64_t offset,\n"
29384 "                       size_t *size_r);\n"
29385 "\n"
29386 msgstr ""
29387
29388 #. type: textblock
29389 #: ../src/guestfs-actions.pod:5639
29390 msgid "See also C<guestfs_pread>."
29391 msgstr ""
29392
29393 #. type: textblock
29394 #: ../src/guestfs-actions.pod:5648
29395 msgid "(Added in 1.5.21)"
29396 msgstr ""
29397
29398 #. type: =head2
29399 #: ../src/guestfs-actions.pod:5650
29400 msgid "guestfs_pvcreate"
29401 msgstr ""
29402
29403 #. type: verbatim
29404 #: ../src/guestfs-actions.pod:5652
29405 #, no-wrap
29406 msgid ""
29407 " int\n"
29408 " guestfs_pvcreate (guestfs_h *g,\n"
29409 "                   const char *device);\n"
29410 "\n"
29411 msgstr ""
29412
29413 #. type: =head2
29414 #: ../src/guestfs-actions.pod:5664
29415 msgid "guestfs_pvremove"
29416 msgstr ""
29417
29418 #. type: verbatim
29419 #: ../src/guestfs-actions.pod:5666
29420 #, no-wrap
29421 msgid ""
29422 " int\n"
29423 " guestfs_pvremove (guestfs_h *g,\n"
29424 "                   const char *device);\n"
29425 "\n"
29426 msgstr ""
29427
29428 #. type: =head2
29429 #: ../src/guestfs-actions.pod:5681
29430 msgid "guestfs_pvresize"
29431 msgstr ""
29432
29433 #. type: verbatim
29434 #: ../src/guestfs-actions.pod:5683
29435 #, no-wrap
29436 msgid ""
29437 " int\n"
29438 " guestfs_pvresize (guestfs_h *g,\n"
29439 "                   const char *device);\n"
29440 "\n"
29441 msgstr ""
29442
29443 #. type: =head2
29444 #: ../src/guestfs-actions.pod:5694
29445 msgid "guestfs_pvresize_size"
29446 msgstr ""
29447
29448 #. type: verbatim
29449 #: ../src/guestfs-actions.pod:5696
29450 #, no-wrap
29451 msgid ""
29452 " int\n"
29453 " guestfs_pvresize_size (guestfs_h *g,\n"
29454 "                        const char *device,\n"
29455 "                        int64_t size);\n"
29456 "\n"
29457 msgstr ""
29458
29459 #. type: textblock
29460 #: ../src/guestfs-actions.pod:5701
29461 msgid ""
29462 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29463 "specify the new size (in bytes) explicitly."
29464 msgstr ""
29465
29466 #. type: =head2
29467 #: ../src/guestfs-actions.pod:5708
29468 msgid "guestfs_pvs"
29469 msgstr ""
29470
29471 #. type: verbatim
29472 #: ../src/guestfs-actions.pod:5710
29473 #, no-wrap
29474 msgid ""
29475 " char **\n"
29476 " guestfs_pvs (guestfs_h *g);\n"
29477 "\n"
29478 msgstr ""
29479
29480 #. type: textblock
29481 #: ../src/guestfs-actions.pod:5719
29482 msgid "See also C<guestfs_pvs_full>."
29483 msgstr ""
29484
29485 #. type: =head2
29486 #: ../src/guestfs-actions.pod:5727
29487 msgid "guestfs_pvs_full"
29488 msgstr ""
29489
29490 #. type: verbatim
29491 #: ../src/guestfs-actions.pod:5729
29492 #, no-wrap
29493 msgid ""
29494 " struct guestfs_lvm_pv_list *\n"
29495 " guestfs_pvs_full (guestfs_h *g);\n"
29496 "\n"
29497 msgstr ""
29498
29499 #. type: textblock
29500 #: ../src/guestfs-actions.pod:5735
29501 msgid ""
29502 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29503 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
29504 msgstr ""
29505
29506 #. type: =head2
29507 #: ../src/guestfs-actions.pod:5741
29508 msgid "guestfs_pvuuid"
29509 msgstr ""
29510
29511 #. type: verbatim
29512 #: ../src/guestfs-actions.pod:5743
29513 #, no-wrap
29514 msgid ""
29515 " char *\n"
29516 " guestfs_pvuuid (guestfs_h *g,\n"
29517 "                 const char *device);\n"
29518 "\n"
29519 msgstr ""
29520
29521 #. type: =head2
29522 #: ../src/guestfs-actions.pod:5754
29523 msgid "guestfs_pwrite"
29524 msgstr ""
29525
29526 #. type: verbatim
29527 #: ../src/guestfs-actions.pod:5756
29528 #, no-wrap
29529 msgid ""
29530 " int\n"
29531 " guestfs_pwrite (guestfs_h *g,\n"
29532 "                 const char *path,\n"
29533 "                 const char *content,\n"
29534 "                 size_t content_size,\n"
29535 "                 int64_t offset);\n"
29536 "\n"
29537 msgstr ""
29538
29539 #. type: textblock
29540 #: ../src/guestfs-actions.pod:5772
29541 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29542 msgstr ""
29543
29544 #. type: =head2
29545 #: ../src/guestfs-actions.pod:5781
29546 msgid "guestfs_pwrite_device"
29547 msgstr ""
29548
29549 #. type: verbatim
29550 #: ../src/guestfs-actions.pod:5783
29551 #, no-wrap
29552 msgid ""
29553 " int\n"
29554 " guestfs_pwrite_device (guestfs_h *g,\n"
29555 "                        const char *device,\n"
29556 "                        const char *content,\n"
29557 "                        size_t content_size,\n"
29558 "                        int64_t offset);\n"
29559 "\n"
29560 msgstr ""
29561
29562 #. type: textblock
29563 #: ../src/guestfs-actions.pod:5798
29564 msgid "See also C<guestfs_pwrite>."
29565 msgstr ""
29566
29567 #. type: textblock
29568 #: ../src/guestfs-actions.pod:5805
29569 msgid "(Added in 1.5.20)"
29570 msgstr ""
29571
29572 #. type: =head2
29573 #: ../src/guestfs-actions.pod:5807
29574 msgid "guestfs_read_file"
29575 msgstr ""
29576
29577 #. type: verbatim
29578 #: ../src/guestfs-actions.pod:5809
29579 #, no-wrap
29580 msgid ""
29581 " char *\n"
29582 " guestfs_read_file (guestfs_h *g,\n"
29583 "                    const char *path,\n"
29584 "                    size_t *size_r);\n"
29585 "\n"
29586 msgstr ""
29587
29588 #. type: textblock
29589 #: ../src/guestfs-actions.pod:5817
29590 msgid ""
29591 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29592 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
29593 "function is limited in the total size of file that can be handled."
29594 msgstr ""
29595
29596 #. type: textblock
29597 #: ../src/guestfs-actions.pod:5829
29598 msgid "(Added in 1.0.63)"
29599 msgstr ""
29600
29601 #. type: =head2
29602 #: ../src/guestfs-actions.pod:5831
29603 msgid "guestfs_read_lines"
29604 msgstr ""
29605
29606 #. type: verbatim
29607 #: ../src/guestfs-actions.pod:5833
29608 #, no-wrap
29609 msgid ""
29610 " char **\n"
29611 " guestfs_read_lines (guestfs_h *g,\n"
29612 "                     const char *path);\n"
29613 "\n"
29614 msgstr ""
29615
29616 #. type: textblock
29617 #: ../src/guestfs-actions.pod:5842
29618 msgid ""
29619 "Note that this function cannot correctly handle binary files (specifically, "
29620 "files containing C<\\0> character which is treated as end of line).  For "
29621 "those you need to use the C<guestfs_read_file> function which has a more "
29622 "complex interface."
29623 msgstr ""
29624
29625 #. type: =head2
29626 #: ../src/guestfs-actions.pod:5853
29627 msgid "guestfs_readdir"
29628 msgstr ""
29629
29630 #. type: verbatim
29631 #: ../src/guestfs-actions.pod:5855
29632 #, no-wrap
29633 msgid ""
29634 " struct guestfs_dirent_list *\n"
29635 " guestfs_readdir (guestfs_h *g,\n"
29636 "                  const char *dir);\n"
29637 "\n"
29638 msgstr ""
29639
29640 #. type: textblock
29641 #: ../src/guestfs-actions.pod:5909
29642 msgid ""
29643 "This function is primarily intended for use by programs.  To get a simple "
29644 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
29645 "consumption, use C<guestfs_ll>."
29646 msgstr ""
29647
29648 #. type: textblock
29649 #: ../src/guestfs-actions.pod:5913
29650 msgid ""
29651 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29652 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
29653 msgstr ""
29654
29655 #. type: =head2
29656 #: ../src/guestfs-actions.pod:5919
29657 msgid "guestfs_readlink"
29658 msgstr ""
29659
29660 #. type: verbatim
29661 #: ../src/guestfs-actions.pod:5921
29662 #, no-wrap
29663 msgid ""
29664 " char *\n"
29665 " guestfs_readlink (guestfs_h *g,\n"
29666 "                   const char *path);\n"
29667 "\n"
29668 msgstr ""
29669
29670 #. type: =head2
29671 #: ../src/guestfs-actions.pod:5932
29672 msgid "guestfs_readlinklist"
29673 msgstr ""
29674
29675 #. type: verbatim
29676 #: ../src/guestfs-actions.pod:5934
29677 #, no-wrap
29678 msgid ""
29679 " char **\n"
29680 " guestfs_readlinklist (guestfs_h *g,\n"
29681 "                       const char *path,\n"
29682 "                       char *const *names);\n"
29683 "\n"
29684 msgstr ""
29685
29686 #. type: =head2
29687 #: ../src/guestfs-actions.pod:5967
29688 msgid "guestfs_realpath"
29689 msgstr ""
29690
29691 #. type: verbatim
29692 #: ../src/guestfs-actions.pod:5969
29693 #, no-wrap
29694 msgid ""
29695 " char *\n"
29696 " guestfs_realpath (guestfs_h *g,\n"
29697 "                   const char *path);\n"
29698 "\n"
29699 msgstr ""
29700
29701 #. type: =head2
29702 #: ../src/guestfs-actions.pod:5981
29703 msgid "guestfs_removexattr"
29704 msgstr ""
29705
29706 #. type: verbatim
29707 #: ../src/guestfs-actions.pod:5983
29708 #, no-wrap
29709 msgid ""
29710 " int\n"
29711 " guestfs_removexattr (guestfs_h *g,\n"
29712 "                      const char *xattr,\n"
29713 "                      const char *path);\n"
29714 "\n"
29715 msgstr ""
29716
29717 #. type: textblock
29718 #: ../src/guestfs-actions.pod:5991
29719 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
29720 msgstr ""
29721
29722 #. type: =head2
29723 #: ../src/guestfs-actions.pod:5997
29724 msgid "guestfs_resize2fs"
29725 msgstr ""
29726
29727 #. type: verbatim
29728 #: ../src/guestfs-actions.pod:5999
29729 #, no-wrap
29730 msgid ""
29731 " int\n"
29732 " guestfs_resize2fs (guestfs_h *g,\n"
29733 "                    const char *device);\n"
29734 "\n"
29735 msgstr ""
29736
29737 #. type: textblock
29738 #: ../src/guestfs-actions.pod:6006
29739 msgid ""
29740 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
29741 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
29742 "sometimes gives an error about this and sometimes not.  In any case, it is "
29743 "always safe to call C<guestfs_e2fsck_f> before calling this function."
29744 msgstr ""
29745
29746 #. type: =head2
29747 #: ../src/guestfs-actions.pod:6016
29748 msgid "guestfs_resize2fs_M"
29749 msgstr ""
29750
29751 #. type: verbatim
29752 #: ../src/guestfs-actions.pod:6018
29753 #, no-wrap
29754 msgid ""
29755 " int\n"
29756 " guestfs_resize2fs_M (guestfs_h *g,\n"
29757 "                      const char *device);\n"
29758 "\n"
29759 msgstr ""
29760
29761 #. type: textblock
29762 #: ../src/guestfs-actions.pod:6022
29763 msgid ""
29764 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
29765 "resized to its minimum size.  This works like the I<-M> option to the "
29766 "C<resize2fs> command."
29767 msgstr ""
29768
29769 #. type: textblock
29770 #: ../src/guestfs-actions.pod:6026
29771 msgid ""
29772 "To get the resulting size of the filesystem you should call "
29773 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
29774 "These two numbers, multiplied together, give the resulting size of the "
29775 "minimal filesystem in bytes."
29776 msgstr ""
29777
29778 #. type: =head2
29779 #: ../src/guestfs-actions.pod:6035
29780 msgid "guestfs_resize2fs_size"
29781 msgstr ""
29782
29783 #. type: verbatim
29784 #: ../src/guestfs-actions.pod:6037
29785 #, no-wrap
29786 msgid ""
29787 " int\n"
29788 " guestfs_resize2fs_size (guestfs_h *g,\n"
29789 "                         const char *device,\n"
29790 "                         int64_t size);\n"
29791 "\n"
29792 msgstr ""
29793
29794 #. type: textblock
29795 #: ../src/guestfs-actions.pod:6042
29796 msgid ""
29797 "This command is the same as C<guestfs_resize2fs> except that it allows you "
29798 "to specify the new size (in bytes) explicitly."
29799 msgstr ""
29800
29801 #. type: =head2
29802 #: ../src/guestfs-actions.pod:6049
29803 msgid "guestfs_rm"
29804 msgstr ""
29805
29806 #. type: verbatim
29807 #: ../src/guestfs-actions.pod:6051
29808 #, no-wrap
29809 msgid ""
29810 " int\n"
29811 " guestfs_rm (guestfs_h *g,\n"
29812 "             const char *path);\n"
29813 "\n"
29814 msgstr ""
29815
29816 #. type: =head2
29817 #: ../src/guestfs-actions.pod:6061
29818 msgid "guestfs_rm_rf"
29819 msgstr ""
29820
29821 #. type: verbatim
29822 #: ../src/guestfs-actions.pod:6063
29823 #, no-wrap
29824 msgid ""
29825 " int\n"
29826 " guestfs_rm_rf (guestfs_h *g,\n"
29827 "                const char *path);\n"
29828 "\n"
29829 msgstr ""
29830
29831 #. type: =head2
29832 #: ../src/guestfs-actions.pod:6075
29833 msgid "guestfs_rmdir"
29834 msgstr ""
29835
29836 #. type: verbatim
29837 #: ../src/guestfs-actions.pod:6077
29838 #, no-wrap
29839 msgid ""
29840 " int\n"
29841 " guestfs_rmdir (guestfs_h *g,\n"
29842 "                const char *path);\n"
29843 "\n"
29844 msgstr ""
29845
29846 #. type: =head2
29847 #: ../src/guestfs-actions.pod:6087
29848 msgid "guestfs_rmmountpoint"
29849 msgstr ""
29850
29851 #. type: verbatim
29852 #: ../src/guestfs-actions.pod:6089
29853 #, no-wrap
29854 msgid ""
29855 " int\n"
29856 " guestfs_rmmountpoint (guestfs_h *g,\n"
29857 "                       const char *exemptpath);\n"
29858 "\n"
29859 msgstr ""
29860
29861 #. type: textblock
29862 #: ../src/guestfs-actions.pod:6093
29863 msgid ""
29864 "This calls removes a mountpoint that was previously created with "
29865 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
29866 msgstr ""
29867
29868 #. type: =head2
29869 #: ../src/guestfs-actions.pod:6101
29870 msgid "guestfs_scrub_device"
29871 msgstr ""
29872
29873 #. type: verbatim
29874 #: ../src/guestfs-actions.pod:6103
29875 #, no-wrap
29876 msgid ""
29877 " int\n"
29878 " guestfs_scrub_device (guestfs_h *g,\n"
29879 "                       const char *device);\n"
29880 "\n"
29881 msgstr ""
29882
29883 #. type: textblock
29884 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6136
29885 #: ../src/guestfs-actions.pod:6155
29886 msgid "(Added in 1.0.52)"
29887 msgstr ""
29888
29889 #. type: =head2
29890 #: ../src/guestfs-actions.pod:6120
29891 msgid "guestfs_scrub_file"
29892 msgstr ""
29893
29894 #. type: verbatim
29895 #: ../src/guestfs-actions.pod:6122
29896 #, no-wrap
29897 msgid ""
29898 " int\n"
29899 " guestfs_scrub_file (guestfs_h *g,\n"
29900 "                     const char *file);\n"
29901 "\n"
29902 msgstr ""
29903
29904 #. type: =head2
29905 #: ../src/guestfs-actions.pod:6138
29906 msgid "guestfs_scrub_freespace"
29907 msgstr ""
29908
29909 #. type: verbatim
29910 #: ../src/guestfs-actions.pod:6140
29911 #, no-wrap
29912 msgid ""
29913 " int\n"
29914 " guestfs_scrub_freespace (guestfs_h *g,\n"
29915 "                          const char *dir);\n"
29916 "\n"
29917 msgstr ""
29918
29919 #. type: textblock
29920 #: ../src/guestfs-actions.pod:6144
29921 msgid ""
29922 "This command creates the directory C<dir> and then fills it with files until "
29923 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
29924 "and deletes them.  The intention is to scrub any free space on the partition "
29925 "containing C<dir>."
29926 msgstr ""
29927
29928 #. type: =head2
29929 #: ../src/guestfs-actions.pod:6157
29930 msgid "guestfs_set_append"
29931 msgstr ""
29932
29933 #. type: verbatim
29934 #: ../src/guestfs-actions.pod:6159
29935 #, no-wrap
29936 msgid ""
29937 " int\n"
29938 " guestfs_set_append (guestfs_h *g,\n"
29939 "                     const char *append);\n"
29940 "\n"
29941 msgstr ""
29942
29943 #. type: =head2
29944 #: ../src/guestfs-actions.pod:6176
29945 msgid "guestfs_set_attach_method"
29946 msgstr ""
29947
29948 #. type: verbatim
29949 #: ../src/guestfs-actions.pod:6178
29950 #, no-wrap
29951 msgid ""
29952 " int\n"
29953 " guestfs_set_attach_method (guestfs_h *g,\n"
29954 "                            const char *attachmethod);\n"
29955 "\n"
29956 msgstr ""
29957
29958 #. type: =head2
29959 #: ../src/guestfs-actions.pod:6206
29960 msgid "guestfs_set_autosync"
29961 msgstr ""
29962
29963 #. type: verbatim
29964 #: ../src/guestfs-actions.pod:6208
29965 #, no-wrap
29966 msgid ""
29967 " int\n"
29968 " guestfs_set_autosync (guestfs_h *g,\n"
29969 "                       int autosync);\n"
29970 "\n"
29971 msgstr ""
29972
29973 #. type: =head2
29974 #: ../src/guestfs-actions.pod:6224
29975 msgid "guestfs_set_direct"
29976 msgstr ""
29977
29978 #. type: verbatim
29979 #: ../src/guestfs-actions.pod:6226
29980 #, no-wrap
29981 msgid ""
29982 " int\n"
29983 " guestfs_set_direct (guestfs_h *g,\n"
29984 "                     int direct);\n"
29985 "\n"
29986 msgstr ""
29987
29988 #. type: textblock
29989 #: ../src/guestfs-actions.pod:6234
29990 msgid ""
29991 "One consequence of this is that log messages aren't caught by the library "
29992 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
29993 "stdout."
29994 msgstr ""
29995
29996 #. type: =head2
29997 #: ../src/guestfs-actions.pod:6247
29998 msgid "guestfs_set_e2label"
29999 msgstr ""
30000
30001 #. type: verbatim
30002 #: ../src/guestfs-actions.pod:6249
30003 #, no-wrap
30004 msgid ""
30005 " int\n"
30006 " guestfs_set_e2label (guestfs_h *g,\n"
30007 "                      const char *device,\n"
30008 "                      const char *label);\n"
30009 "\n"
30010 msgstr ""
30011
30012 #. type: textblock
30013 #: ../src/guestfs-actions.pod:6258
30014 msgid ""
30015 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
30016 "the existing label on a filesystem."
30017 msgstr ""
30018
30019 #. type: =head2
30020 #: ../src/guestfs-actions.pod:6265
30021 msgid "guestfs_set_e2uuid"
30022 msgstr ""
30023
30024 #. type: verbatim
30025 #: ../src/guestfs-actions.pod:6267
30026 #, no-wrap
30027 msgid ""
30028 " int\n"
30029 " guestfs_set_e2uuid (guestfs_h *g,\n"
30030 "                     const char *device,\n"
30031 "                     const char *uuid);\n"
30032 "\n"
30033 msgstr ""
30034
30035 #. type: textblock
30036 #: ../src/guestfs-actions.pod:6277
30037 msgid ""
30038 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
30039 "the existing UUID of a filesystem."
30040 msgstr ""
30041
30042 #. type: =head2
30043 #: ../src/guestfs-actions.pod:6284
30044 msgid "guestfs_set_memsize"
30045 msgstr ""
30046
30047 #. type: verbatim
30048 #: ../src/guestfs-actions.pod:6286
30049 #, no-wrap
30050 msgid ""
30051 " int\n"
30052 " guestfs_set_memsize (guestfs_h *g,\n"
30053 "                      int memsize);\n"
30054 "\n"
30055 msgstr ""
30056
30057 #. type: textblock
30058 #: ../src/guestfs-actions.pod:6290
30059 msgid ""
30060 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
30061 "This only has any effect if called before C<guestfs_launch>."
30062 msgstr ""
30063
30064 #. type: =head2
30065 #: ../src/guestfs-actions.pod:6305
30066 msgid "guestfs_set_network"
30067 msgstr ""
30068
30069 #. type: verbatim
30070 #: ../src/guestfs-actions.pod:6307
30071 #, no-wrap
30072 msgid ""
30073 " int\n"
30074 " guestfs_set_network (guestfs_h *g,\n"
30075 "                      int network);\n"
30076 "\n"
30077 msgstr ""
30078
30079 #. type: textblock
30080 #: ../src/guestfs-actions.pod:6317
30081 msgid ""
30082 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30083 "effect."
30084 msgstr ""
30085
30086 #. type: =head2
30087 #: ../src/guestfs-actions.pod:6324
30088 msgid "guestfs_set_path"
30089 msgstr ""
30090
30091 #. type: verbatim
30092 #: ../src/guestfs-actions.pod:6326
30093 #, no-wrap
30094 msgid ""
30095 " int\n"
30096 " guestfs_set_path (guestfs_h *g,\n"
30097 "                   const char *searchpath);\n"
30098 "\n"
30099 msgstr ""
30100
30101 #. type: =head2
30102 #: ../src/guestfs-actions.pod:6341
30103 msgid "guestfs_set_pgroup"
30104 msgstr ""
30105
30106 #. type: verbatim
30107 #: ../src/guestfs-actions.pod:6343
30108 #, no-wrap
30109 msgid ""
30110 " int\n"
30111 " guestfs_set_pgroup (guestfs_h *g,\n"
30112 "                     int pgroup);\n"
30113 "\n"
30114 msgstr ""
30115
30116 #. type: =head2
30117 #: ../src/guestfs-actions.pod:6360
30118 msgid "guestfs_set_qemu"
30119 msgstr ""
30120
30121 #. type: verbatim
30122 #: ../src/guestfs-actions.pod:6362
30123 #, no-wrap
30124 msgid ""
30125 " int\n"
30126 " guestfs_set_qemu (guestfs_h *g,\n"
30127 "                   const char *qemu);\n"
30128 "\n"
30129 msgstr ""
30130
30131 #. type: =head2
30132 #: ../src/guestfs-actions.pod:6388
30133 msgid "guestfs_set_recovery_proc"
30134 msgstr ""
30135
30136 #. type: verbatim
30137 #: ../src/guestfs-actions.pod:6390
30138 #, no-wrap
30139 msgid ""
30140 " int\n"
30141 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30142 "                            int recoveryproc);\n"
30143 "\n"
30144 msgstr ""
30145
30146 #. type: textblock
30147 #: ../src/guestfs-actions.pod:6394
30148 msgid ""
30149 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30150 "not create a recovery process.  The purpose of the recovery process is to "
30151 "stop runaway qemu processes in the case where the main program aborts "
30152 "abruptly."
30153 msgstr ""
30154
30155 #. type: textblock
30156 #: ../src/guestfs-actions.pod:6399
30157 msgid ""
30158 "This only has any effect if called before C<guestfs_launch>, and the default "
30159 "is true."
30160 msgstr ""
30161
30162 #. type: =head2
30163 #: ../src/guestfs-actions.pod:6412
30164 msgid "guestfs_set_selinux"
30165 msgstr ""
30166
30167 #. type: verbatim
30168 #: ../src/guestfs-actions.pod:6414
30169 #, no-wrap
30170 msgid ""
30171 " int\n"
30172 " guestfs_set_selinux (guestfs_h *g,\n"
30173 "                      int selinux);\n"
30174 "\n"
30175 msgstr ""
30176
30177 #. type: =head2
30178 #: ../src/guestfs-actions.pod:6431
30179 msgid "guestfs_set_trace"
30180 msgstr ""
30181
30182 #. type: verbatim
30183 #: ../src/guestfs-actions.pod:6433
30184 #, no-wrap
30185 msgid ""
30186 " int\n"
30187 " guestfs_set_trace (guestfs_h *g,\n"
30188 "                    int trace);\n"
30189 "\n"
30190 msgstr ""
30191
30192 #. type: textblock
30193 #: ../src/guestfs-actions.pod:6447
30194 msgid ""
30195 "Trace messages are normally sent to C<stderr>, unless you register a "
30196 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30197 msgstr ""
30198
30199 #. type: =head2
30200 #: ../src/guestfs-actions.pod:6455
30201 msgid "guestfs_set_verbose"
30202 msgstr ""
30203
30204 #. type: verbatim
30205 #: ../src/guestfs-actions.pod:6457
30206 #, no-wrap
30207 msgid ""
30208 " int\n"
30209 " guestfs_set_verbose (guestfs_h *g,\n"
30210 "                      int verbose);\n"
30211 "\n"
30212 msgstr ""
30213
30214 #. type: textblock
30215 #: ../src/guestfs-actions.pod:6466
30216 msgid ""
30217 "Verbose messages are normally sent to C<stderr>, unless you register a "
30218 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30219 msgstr ""
30220
30221 #. type: =head2
30222 #: ../src/guestfs-actions.pod:6474
30223 msgid "guestfs_setcon"
30224 msgstr ""
30225
30226 #. type: verbatim
30227 #: ../src/guestfs-actions.pod:6476
30228 #, no-wrap
30229 msgid ""
30230 " int\n"
30231 " guestfs_setcon (guestfs_h *g,\n"
30232 "                 const char *context);\n"
30233 "\n"
30234 msgstr ""
30235
30236 #. type: =head2
30237 #: ../src/guestfs-actions.pod:6489
30238 msgid "guestfs_setxattr"
30239 msgstr ""
30240
30241 #. type: verbatim
30242 #: ../src/guestfs-actions.pod:6491
30243 #, no-wrap
30244 msgid ""
30245 " int\n"
30246 " guestfs_setxattr (guestfs_h *g,\n"
30247 "                   const char *xattr,\n"
30248 "                   const char *val,\n"
30249 "                   int vallen,\n"
30250 "                   const char *path);\n"
30251 "\n"
30252 msgstr ""
30253
30254 #. type: textblock
30255 #: ../src/guestfs-actions.pod:6502
30256 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30257 msgstr ""
30258
30259 #. type: =head2
30260 #: ../src/guestfs-actions.pod:6508
30261 msgid "guestfs_sfdisk"
30262 msgstr ""
30263
30264 #. type: verbatim
30265 #: ../src/guestfs-actions.pod:6510
30266 #, no-wrap
30267 msgid ""
30268 " int\n"
30269 " guestfs_sfdisk (guestfs_h *g,\n"
30270 "                 const char *device,\n"
30271 "                 int cyls,\n"
30272 "                 int heads,\n"
30273 "                 int sectors,\n"
30274 "                 char *const *lines);\n"
30275 "\n"
30276 msgstr ""
30277
30278 #. type: textblock
30279 #: ../src/guestfs-actions.pod:6518 ../src/guestfs-actions.pod:6562
30280 #: ../src/guestfs-actions.pod:6596
30281 msgid ""
30282 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
30283 "call instead."
30284 msgstr ""
30285
30286 #. type: textblock
30287 #: ../src/guestfs-actions.pod:6545
30288 msgid ""
30289 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30290 msgstr ""
30291
30292 #. type: =head2
30293 #: ../src/guestfs-actions.pod:6555
30294 msgid "guestfs_sfdiskM"
30295 msgstr ""
30296
30297 #. type: verbatim
30298 #: ../src/guestfs-actions.pod:6557
30299 #, no-wrap
30300 msgid ""
30301 " int\n"
30302 " guestfs_sfdiskM (guestfs_h *g,\n"
30303 "                  const char *device,\n"
30304 "                  char *const *lines);\n"
30305 "\n"
30306 msgstr ""
30307
30308 #. type: textblock
30309 #: ../src/guestfs-actions.pod:6569
30310 msgid ""
30311 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30312 "partition sizes are specified in megabytes only (rounded to the nearest "
30313 "cylinder) and you don't need to specify the cyls, heads and sectors "
30314 "parameters which were rarely if ever used anyway."
30315 msgstr ""
30316
30317 #. type: textblock
30318 #: ../src/guestfs-actions.pod:6575
30319 msgid ""
30320 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30321 "C<guestfs_part_disk>"
30322 msgstr ""
30323
30324 #. type: =head2
30325 #: ../src/guestfs-actions.pod:6585
30326 msgid "guestfs_sfdisk_N"
30327 msgstr ""
30328
30329 #. type: verbatim
30330 #: ../src/guestfs-actions.pod:6587
30331 #, no-wrap
30332 msgid ""
30333 " int\n"
30334 " guestfs_sfdisk_N (guestfs_h *g,\n"
30335 "                   const char *device,\n"
30336 "                   int partnum,\n"
30337 "                   int cyls,\n"
30338 "                   int heads,\n"
30339 "                   int sectors,\n"
30340 "                   const char *line);\n"
30341 "\n"
30342 msgstr ""
30343
30344 #. type: textblock
30345 #: ../src/guestfs-actions.pod:6606
30346 msgid ""
30347 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
30348 "for the cyls/heads/sectors parameters."
30349 msgstr ""
30350
30351 #. type: textblock
30352 #: ../src/guestfs-actions.pod:6609
30353 msgid "See also: C<guestfs_part_add>"
30354 msgstr ""
30355
30356 #. type: =head2
30357 #: ../src/guestfs-actions.pod:6618
30358 msgid "guestfs_sfdisk_disk_geometry"
30359 msgstr ""
30360
30361 #. type: verbatim
30362 #: ../src/guestfs-actions.pod:6620
30363 #, no-wrap
30364 msgid ""
30365 " char *\n"
30366 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30367 "                               const char *device);\n"
30368 "\n"
30369 msgstr ""
30370
30371 #. type: textblock
30372 #: ../src/guestfs-actions.pod:6624
30373 msgid ""
30374 "This displays the disk geometry of C<device> read from the partition table.  "
30375 "Especially in the case where the underlying block device has been resized, "
30376 "this can be different from the kernel's idea of the geometry (see "
30377 "C<guestfs_sfdisk_kernel_geometry>)."
30378 msgstr ""
30379
30380 #. type: =head2
30381 #: ../src/guestfs-actions.pod:6637
30382 msgid "guestfs_sfdisk_kernel_geometry"
30383 msgstr ""
30384
30385 #. type: verbatim
30386 #: ../src/guestfs-actions.pod:6639
30387 #, no-wrap
30388 msgid ""
30389 " char *\n"
30390 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30391 "                                 const char *device);\n"
30392 "\n"
30393 msgstr ""
30394
30395 #. type: =head2
30396 #: ../src/guestfs-actions.pod:6653
30397 msgid "guestfs_sfdisk_l"
30398 msgstr ""
30399
30400 #. type: verbatim
30401 #: ../src/guestfs-actions.pod:6655
30402 #, no-wrap
30403 msgid ""
30404 " char *\n"
30405 " guestfs_sfdisk_l (guestfs_h *g,\n"
30406 "                   const char *device);\n"
30407 "\n"
30408 msgstr ""
30409
30410 #. type: textblock
30411 #: ../src/guestfs-actions.pod:6659
30412 msgid ""
30413 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
30414 "call instead."
30415 msgstr ""
30416
30417 #. type: textblock
30418 #: ../src/guestfs-actions.pod:6670
30419 msgid "See also: C<guestfs_part_list>"
30420 msgstr ""
30421
30422 #. type: =head2
30423 #: ../src/guestfs-actions.pod:6677
30424 msgid "guestfs_sh"
30425 msgstr ""
30426
30427 #. type: verbatim
30428 #: ../src/guestfs-actions.pod:6679
30429 #, no-wrap
30430 msgid ""
30431 " char *\n"
30432 " guestfs_sh (guestfs_h *g,\n"
30433 "             const char *command);\n"
30434 "\n"
30435 msgstr ""
30436
30437 #. type: textblock
30438 #: ../src/guestfs-actions.pod:6686
30439 msgid "This is like C<guestfs_command>, but passes the command to:"
30440 msgstr ""
30441
30442 #. type: textblock
30443 #: ../src/guestfs-actions.pod:6694
30444 msgid "All the provisos about C<guestfs_command> apply to this call."
30445 msgstr ""
30446
30447 #. type: =head2
30448 #: ../src/guestfs-actions.pod:6701
30449 msgid "guestfs_sh_lines"
30450 msgstr ""
30451
30452 #. type: verbatim
30453 #: ../src/guestfs-actions.pod:6703
30454 #, no-wrap
30455 msgid ""
30456 " char **\n"
30457 " guestfs_sh_lines (guestfs_h *g,\n"
30458 "                   const char *command);\n"
30459 "\n"
30460 msgstr ""
30461
30462 #. type: textblock
30463 #: ../src/guestfs-actions.pod:6707
30464 msgid ""
30465 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30466 "lines."
30467 msgstr ""
30468
30469 #. type: textblock
30470 #: ../src/guestfs-actions.pod:6710
30471 msgid "See also: C<guestfs_command_lines>"
30472 msgstr ""
30473
30474 #. type: =head2
30475 #: ../src/guestfs-actions.pod:6718
30476 msgid "guestfs_sleep"
30477 msgstr ""
30478
30479 #. type: verbatim
30480 #: ../src/guestfs-actions.pod:6720
30481 #, no-wrap
30482 msgid ""
30483 " int\n"
30484 " guestfs_sleep (guestfs_h *g,\n"
30485 "                int secs);\n"
30486 "\n"
30487 msgstr ""
30488
30489 #. type: textblock
30490 #: ../src/guestfs-actions.pod:6728
30491 msgid "(Added in 1.0.41)"
30492 msgstr ""
30493
30494 #. type: =head2
30495 #: ../src/guestfs-actions.pod:6730 ../src/guestfs-structs.pod:109
30496 msgid "guestfs_stat"
30497 msgstr ""
30498
30499 #. type: verbatim
30500 #: ../src/guestfs-actions.pod:6732
30501 #, no-wrap
30502 msgid ""
30503 " struct guestfs_stat *\n"
30504 " guestfs_stat (guestfs_h *g,\n"
30505 "               const char *path);\n"
30506 "\n"
30507 msgstr ""
30508
30509 #. type: =head2
30510 #: ../src/guestfs-actions.pod:6746 ../src/guestfs-structs.pod:135
30511 msgid "guestfs_statvfs"
30512 msgstr ""
30513
30514 #. type: verbatim
30515 #: ../src/guestfs-actions.pod:6748
30516 #, no-wrap
30517 msgid ""
30518 " struct guestfs_statvfs *\n"
30519 " guestfs_statvfs (guestfs_h *g,\n"
30520 "                  const char *path);\n"
30521 "\n"
30522 msgstr ""
30523
30524 #. type: textblock
30525 #: ../src/guestfs-actions.pod:6758
30526 msgid ""
30527 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30528 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
30529 msgstr ""
30530
30531 #. type: =head2
30532 #: ../src/guestfs-actions.pod:6764
30533 msgid "guestfs_strings"
30534 msgstr ""
30535
30536 #. type: verbatim
30537 #: ../src/guestfs-actions.pod:6766
30538 #, no-wrap
30539 msgid ""
30540 " char **\n"
30541 " guestfs_strings (guestfs_h *g,\n"
30542 "                  const char *path);\n"
30543 "\n"
30544 msgstr ""
30545
30546 #. type: =head2
30547 #: ../src/guestfs-actions.pod:6782
30548 msgid "guestfs_strings_e"
30549 msgstr ""
30550
30551 #. type: verbatim
30552 #: ../src/guestfs-actions.pod:6784
30553 #, no-wrap
30554 msgid ""
30555 " char **\n"
30556 " guestfs_strings_e (guestfs_h *g,\n"
30557 "                    const char *encoding,\n"
30558 "                    const char *path);\n"
30559 "\n"
30560 msgstr ""
30561
30562 #. type: textblock
30563 #: ../src/guestfs-actions.pod:6789
30564 msgid ""
30565 "This is like the C<guestfs_strings> command, but allows you to specify the "
30566 "encoding of strings that are looked for in the source file C<path>."
30567 msgstr ""
30568
30569 #. type: textblock
30570 #: ../src/guestfs-actions.pod:6799
30571 msgid ""
30572 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30573 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30574 msgstr ""
30575
30576 #. type: =head2
30577 #: ../src/guestfs-actions.pod:6837
30578 msgid "guestfs_swapoff_device"
30579 msgstr ""
30580
30581 #. type: verbatim
30582 #: ../src/guestfs-actions.pod:6839
30583 #, no-wrap
30584 msgid ""
30585 " int\n"
30586 " guestfs_swapoff_device (guestfs_h *g,\n"
30587 "                         const char *device);\n"
30588 "\n"
30589 msgstr ""
30590
30591 #. type: textblock
30592 #: ../src/guestfs-actions.pod:6843
30593 msgid ""
30594 "This command disables the libguestfs appliance swap device or partition "
30595 "named C<device>.  See C<guestfs_swapon_device>."
30596 msgstr ""
30597
30598 #. type: =head2
30599 #: ../src/guestfs-actions.pod:6851
30600 msgid "guestfs_swapoff_file"
30601 msgstr ""
30602
30603 #. type: verbatim
30604 #: ../src/guestfs-actions.pod:6853
30605 #, no-wrap
30606 msgid ""
30607 " int\n"
30608 " guestfs_swapoff_file (guestfs_h *g,\n"
30609 "                       const char *file);\n"
30610 "\n"
30611 msgstr ""
30612
30613 #. type: =head2
30614 #: ../src/guestfs-actions.pod:6863
30615 msgid "guestfs_swapoff_label"
30616 msgstr ""
30617
30618 #. type: verbatim
30619 #: ../src/guestfs-actions.pod:6865
30620 #, no-wrap
30621 msgid ""
30622 " int\n"
30623 " guestfs_swapoff_label (guestfs_h *g,\n"
30624 "                        const char *label);\n"
30625 "\n"
30626 msgstr ""
30627
30628 #. type: =head2
30629 #: ../src/guestfs-actions.pod:6876
30630 msgid "guestfs_swapoff_uuid"
30631 msgstr ""
30632
30633 #. type: verbatim
30634 #: ../src/guestfs-actions.pod:6878
30635 #, no-wrap
30636 msgid ""
30637 " int\n"
30638 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30639 "                       const char *uuid);\n"
30640 "\n"
30641 msgstr ""
30642
30643 #. type: =head2
30644 #: ../src/guestfs-actions.pod:6889
30645 msgid "guestfs_swapon_device"
30646 msgstr ""
30647
30648 #. type: verbatim
30649 #: ../src/guestfs-actions.pod:6891
30650 #, no-wrap
30651 msgid ""
30652 " int\n"
30653 " guestfs_swapon_device (guestfs_h *g,\n"
30654 "                        const char *device);\n"
30655 "\n"
30656 msgstr ""
30657
30658 #. type: textblock
30659 #: ../src/guestfs-actions.pod:6895
30660 msgid ""
30661 "This command enables the libguestfs appliance to use the swap device or "
30662 "partition named C<device>.  The increased memory is made available for all "
30663 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30664 msgstr ""
30665
30666 #. type: =head2
30667 #: ../src/guestfs-actions.pod:6911
30668 msgid "guestfs_swapon_file"
30669 msgstr ""
30670
30671 #. type: verbatim
30672 #: ../src/guestfs-actions.pod:6913
30673 #, no-wrap
30674 msgid ""
30675 " int\n"
30676 " guestfs_swapon_file (guestfs_h *g,\n"
30677 "                      const char *file);\n"
30678 "\n"
30679 msgstr ""
30680
30681 #. type: textblock
30682 #: ../src/guestfs-actions.pod:6917
30683 msgid ""
30684 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
30685 "notes."
30686 msgstr ""
30687
30688 #. type: =head2
30689 #: ../src/guestfs-actions.pod:6924
30690 msgid "guestfs_swapon_label"
30691 msgstr ""
30692
30693 #. type: verbatim
30694 #: ../src/guestfs-actions.pod:6926
30695 #, no-wrap
30696 msgid ""
30697 " int\n"
30698 " guestfs_swapon_label (guestfs_h *g,\n"
30699 "                       const char *label);\n"
30700 "\n"
30701 msgstr ""
30702
30703 #. type: textblock
30704 #: ../src/guestfs-actions.pod:6930
30705 msgid ""
30706 "This command enables swap to a labeled swap partition.  See "
30707 "C<guestfs_swapon_device> for other notes."
30708 msgstr ""
30709
30710 #. type: =head2
30711 #: ../src/guestfs-actions.pod:6937
30712 msgid "guestfs_swapon_uuid"
30713 msgstr ""
30714
30715 #. type: verbatim
30716 #: ../src/guestfs-actions.pod:6939
30717 #, no-wrap
30718 msgid ""
30719 " int\n"
30720 " guestfs_swapon_uuid (guestfs_h *g,\n"
30721 "                      const char *uuid);\n"
30722 "\n"
30723 msgstr ""
30724
30725 #. type: textblock
30726 #: ../src/guestfs-actions.pod:6943
30727 msgid ""
30728 "This command enables swap to a swap partition with the given UUID.  See "
30729 "C<guestfs_swapon_device> for other notes."
30730 msgstr ""
30731
30732 #. type: =head2
30733 #: ../src/guestfs-actions.pod:6950
30734 msgid "guestfs_sync"
30735 msgstr ""
30736
30737 #. type: verbatim
30738 #: ../src/guestfs-actions.pod:6952
30739 #, no-wrap
30740 msgid ""
30741 " int\n"
30742 " guestfs_sync (guestfs_h *g);\n"
30743 "\n"
30744 msgstr ""
30745
30746 #. type: =head2
30747 #: ../src/guestfs-actions.pod:6965
30748 msgid "guestfs_tail"
30749 msgstr ""
30750
30751 #. type: verbatim
30752 #: ../src/guestfs-actions.pod:6967
30753 #, no-wrap
30754 msgid ""
30755 " char **\n"
30756 " guestfs_tail (guestfs_h *g,\n"
30757 "               const char *path);\n"
30758 "\n"
30759 msgstr ""
30760
30761 #. type: =head2
30762 #: ../src/guestfs-actions.pod:6983
30763 msgid "guestfs_tail_n"
30764 msgstr ""
30765
30766 #. type: verbatim
30767 #: ../src/guestfs-actions.pod:6985
30768 #, no-wrap
30769 msgid ""
30770 " char **\n"
30771 " guestfs_tail_n (guestfs_h *g,\n"
30772 "                 int nrlines,\n"
30773 "                 const char *path);\n"
30774 "\n"
30775 msgstr ""
30776
30777 #. type: =head2
30778 #: ../src/guestfs-actions.pod:7007
30779 msgid "guestfs_tar_in"
30780 msgstr ""
30781
30782 #. type: verbatim
30783 #: ../src/guestfs-actions.pod:7009
30784 #, no-wrap
30785 msgid ""
30786 " int\n"
30787 " guestfs_tar_in (guestfs_h *g,\n"
30788 "                 const char *tarfile,\n"
30789 "                 const char *directory);\n"
30790 "\n"
30791 msgstr ""
30792
30793 #. type: textblock
30794 #: ../src/guestfs-actions.pod:7017
30795 msgid ""
30796 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
30797 msgstr ""
30798
30799 #. type: textblock
30800 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7039
30801 #: ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7071
30802 msgid "(Added in 1.0.3)"
30803 msgstr ""
30804
30805 #. type: =head2
30806 #: ../src/guestfs-actions.pod:7024
30807 msgid "guestfs_tar_out"
30808 msgstr ""
30809
30810 #. type: verbatim
30811 #: ../src/guestfs-actions.pod:7026
30812 #, no-wrap
30813 msgid ""
30814 " int\n"
30815 " guestfs_tar_out (guestfs_h *g,\n"
30816 "                  const char *directory,\n"
30817 "                  const char *tarfile);\n"
30818 "\n"
30819 msgstr ""
30820
30821 #. type: textblock
30822 #: ../src/guestfs-actions.pod:7034
30823 msgid ""
30824 "To download a compressed tarball, use C<guestfs_tgz_out> or "
30825 "C<guestfs_txz_out>."
30826 msgstr ""
30827
30828 #. type: =head2
30829 #: ../src/guestfs-actions.pod:7041
30830 msgid "guestfs_tgz_in"
30831 msgstr ""
30832
30833 #. type: verbatim
30834 #: ../src/guestfs-actions.pod:7043
30835 #, no-wrap
30836 msgid ""
30837 " int\n"
30838 " guestfs_tgz_in (guestfs_h *g,\n"
30839 "                 const char *tarball,\n"
30840 "                 const char *directory);\n"
30841 "\n"
30842 msgstr ""
30843
30844 #. type: textblock
30845 #: ../src/guestfs-actions.pod:7051
30846 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
30847 msgstr ""
30848
30849 #. type: =head2
30850 #: ../src/guestfs-actions.pod:7057
30851 msgid "guestfs_tgz_out"
30852 msgstr ""
30853
30854 #. type: verbatim
30855 #: ../src/guestfs-actions.pod:7059
30856 #, no-wrap
30857 msgid ""
30858 " int\n"
30859 " guestfs_tgz_out (guestfs_h *g,\n"
30860 "                  const char *directory,\n"
30861 "                  const char *tarball);\n"
30862 "\n"
30863 msgstr ""
30864
30865 #. type: textblock
30866 #: ../src/guestfs-actions.pod:7067
30867 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
30868 msgstr ""
30869
30870 #. type: =head2
30871 #: ../src/guestfs-actions.pod:7073
30872 msgid "guestfs_touch"
30873 msgstr ""
30874
30875 #. type: verbatim
30876 #: ../src/guestfs-actions.pod:7075
30877 #, no-wrap
30878 msgid ""
30879 " int\n"
30880 " guestfs_touch (guestfs_h *g,\n"
30881 "                const char *path);\n"
30882 "\n"
30883 msgstr ""
30884
30885 #. type: =head2
30886 #: ../src/guestfs-actions.pod:7090
30887 msgid "guestfs_truncate"
30888 msgstr ""
30889
30890 #. type: verbatim
30891 #: ../src/guestfs-actions.pod:7092
30892 #, no-wrap
30893 msgid ""
30894 " int\n"
30895 " guestfs_truncate (guestfs_h *g,\n"
30896 "                   const char *path);\n"
30897 "\n"
30898 msgstr ""
30899
30900 #. type: =head2
30901 #: ../src/guestfs-actions.pod:7103
30902 msgid "guestfs_truncate_size"
30903 msgstr ""
30904
30905 #. type: verbatim
30906 #: ../src/guestfs-actions.pod:7105
30907 #, no-wrap
30908 msgid ""
30909 " int\n"
30910 " guestfs_truncate_size (guestfs_h *g,\n"
30911 "                        const char *path,\n"
30912 "                        int64_t size);\n"
30913 "\n"
30914 msgstr ""
30915
30916 #. type: textblock
30917 #: ../src/guestfs-actions.pod:7113
30918 msgid ""
30919 "If the current file size is less than C<size> then the file is extended to "
30920 "the required size with zero bytes.  This creates a sparse file (ie. disk "
30921 "blocks are not allocated for the file until you write to it).  To create a "
30922 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
30923 msgstr ""
30924
30925 #. type: =head2
30926 #: ../src/guestfs-actions.pod:7123
30927 msgid "guestfs_tune2fs_l"
30928 msgstr ""
30929
30930 #. type: verbatim
30931 #: ../src/guestfs-actions.pod:7125
30932 #, no-wrap
30933 msgid ""
30934 " char **\n"
30935 " guestfs_tune2fs_l (guestfs_h *g,\n"
30936 "                    const char *device);\n"
30937 "\n"
30938 msgstr ""
30939
30940 #. type: =head2
30941 #: ../src/guestfs-actions.pod:7145
30942 msgid "guestfs_txz_in"
30943 msgstr ""
30944
30945 #. type: verbatim
30946 #: ../src/guestfs-actions.pod:7147
30947 #, no-wrap
30948 msgid ""
30949 " int\n"
30950 " guestfs_txz_in (guestfs_h *g,\n"
30951 "                 const char *tarball,\n"
30952 "                 const char *directory);\n"
30953 "\n"
30954 msgstr ""
30955
30956 #. type: =head2
30957 #: ../src/guestfs-actions.pod:7159
30958 msgid "guestfs_txz_out"
30959 msgstr ""
30960
30961 #. type: verbatim
30962 #: ../src/guestfs-actions.pod:7161
30963 #, no-wrap
30964 msgid ""
30965 " int\n"
30966 " guestfs_txz_out (guestfs_h *g,\n"
30967 "                  const char *directory,\n"
30968 "                  const char *tarball);\n"
30969 "\n"
30970 msgstr ""
30971
30972 #. type: =head2
30973 #: ../src/guestfs-actions.pod:7173
30974 msgid "guestfs_umask"
30975 msgstr ""
30976
30977 #. type: verbatim
30978 #: ../src/guestfs-actions.pod:7175
30979 #, no-wrap
30980 msgid ""
30981 " int\n"
30982 " guestfs_umask (guestfs_h *g,\n"
30983 "                int mask);\n"
30984 "\n"
30985 msgstr ""
30986
30987 #. type: textblock
30988 #: ../src/guestfs-actions.pod:7191
30989 msgid ""
30990 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
30991 "C<guestfs_mkdir>."
30992 msgstr ""
30993
30994 #. type: =head2
30995 #: ../src/guestfs-actions.pod:7200
30996 msgid "guestfs_umount"
30997 msgstr ""
30998
30999 #. type: verbatim
31000 #: ../src/guestfs-actions.pod:7202
31001 #, no-wrap
31002 msgid ""
31003 " int\n"
31004 " guestfs_umount (guestfs_h *g,\n"
31005 "                 const char *pathordevice);\n"
31006 "\n"
31007 msgstr ""
31008
31009 #. type: =head2
31010 #: ../src/guestfs-actions.pod:7214
31011 msgid "guestfs_umount_all"
31012 msgstr ""
31013
31014 #. type: verbatim
31015 #: ../src/guestfs-actions.pod:7216
31016 #, no-wrap
31017 msgid ""
31018 " int\n"
31019 " guestfs_umount_all (guestfs_h *g);\n"
31020 "\n"
31021 msgstr ""
31022
31023 #. type: =head2
31024 #: ../src/guestfs-actions.pod:7227
31025 msgid "guestfs_upload"
31026 msgstr ""
31027
31028 #. type: verbatim
31029 #: ../src/guestfs-actions.pod:7229
31030 #, no-wrap
31031 msgid ""
31032 " int\n"
31033 " guestfs_upload (guestfs_h *g,\n"
31034 "                 const char *filename,\n"
31035 "                 const char *remotefilename);\n"
31036 "\n"
31037 msgstr ""
31038
31039 #. type: textblock
31040 #: ../src/guestfs-actions.pod:7239
31041 msgid "See also C<guestfs_download>."
31042 msgstr ""
31043
31044 #. type: =head2
31045 #: ../src/guestfs-actions.pod:7250
31046 msgid "guestfs_upload_offset"
31047 msgstr ""
31048
31049 #. type: verbatim
31050 #: ../src/guestfs-actions.pod:7252
31051 #, no-wrap
31052 msgid ""
31053 " int\n"
31054 " guestfs_upload_offset (guestfs_h *g,\n"
31055 "                        const char *filename,\n"
31056 "                        const char *remotefilename,\n"
31057 "                        int64_t offset);\n"
31058 "\n"
31059 msgstr ""
31060
31061 #. type: textblock
31062 #: ../src/guestfs-actions.pod:7268
31063 msgid ""
31064 "Note that there is no limit on the amount of data that can be uploaded with "
31065 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31066 "full amount unless an error occurs."
31067 msgstr ""
31068
31069 #. type: textblock
31070 #: ../src/guestfs-actions.pod:7273
31071 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31072 msgstr ""
31073
31074 #. type: =head2
31075 #: ../src/guestfs-actions.pod:7284
31076 msgid "guestfs_utimens"
31077 msgstr ""
31078
31079 #. type: verbatim
31080 #: ../src/guestfs-actions.pod:7286
31081 #, no-wrap
31082 msgid ""
31083 " int\n"
31084 " guestfs_utimens (guestfs_h *g,\n"
31085 "                  const char *path,\n"
31086 "                  int64_t atsecs,\n"
31087 "                  int64_t atnsecs,\n"
31088 "                  int64_t mtsecs,\n"
31089 "                  int64_t mtnsecs);\n"
31090 "\n"
31091 msgstr ""
31092
31093 #. type: =head2
31094 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-structs.pod:175
31095 msgid "guestfs_version"
31096 msgstr ""
31097
31098 #. type: verbatim
31099 #: ../src/guestfs-actions.pod:7317
31100 #, no-wrap
31101 msgid ""
31102 " struct guestfs_version *\n"
31103 " guestfs_version (guestfs_h *g);\n"
31104 "\n"
31105 msgstr ""
31106
31107 #. type: textblock
31108 #: ../src/guestfs-actions.pod:7345
31109 msgid ""
31110 "I<Note:> Don't use this call to test for availability of features.  In "
31111 "enterprise distributions we backport features from later versions into "
31112 "earlier versions, making this an unreliable way to test for features.  Use "
31113 "C<guestfs_available> instead."
31114 msgstr ""
31115
31116 #. type: textblock
31117 #: ../src/guestfs-actions.pod:7351
31118 msgid ""
31119 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31120 "error.  I<The caller must call C<guestfs_free_version> after use>."
31121 msgstr ""
31122
31123 #. type: textblock
31124 #: ../src/guestfs-actions.pod:7355
31125 msgid "(Added in 1.0.58)"
31126 msgstr ""
31127
31128 #. type: =head2
31129 #: ../src/guestfs-actions.pod:7357
31130 msgid "guestfs_vfs_label"
31131 msgstr ""
31132
31133 #. type: verbatim
31134 #: ../src/guestfs-actions.pod:7359
31135 #, no-wrap
31136 msgid ""
31137 " char *\n"
31138 " guestfs_vfs_label (guestfs_h *g,\n"
31139 "                    const char *device);\n"
31140 "\n"
31141 msgstr ""
31142
31143 #. type: textblock
31144 #: ../src/guestfs-actions.pod:7368
31145 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31146 msgstr ""
31147
31148 #. type: textblock
31149 #: ../src/guestfs-actions.pod:7373 ../src/guestfs-actions.pod:7410
31150 msgid "(Added in 1.3.18)"
31151 msgstr ""
31152
31153 #. type: =head2
31154 #: ../src/guestfs-actions.pod:7375
31155 msgid "guestfs_vfs_type"
31156 msgstr ""
31157
31158 #. type: verbatim
31159 #: ../src/guestfs-actions.pod:7377
31160 #, no-wrap
31161 msgid ""
31162 " char *\n"
31163 " guestfs_vfs_type (guestfs_h *g,\n"
31164 "                   const char *device);\n"
31165 "\n"
31166 msgstr ""
31167
31168 #. type: =head2
31169 #: ../src/guestfs-actions.pod:7394
31170 msgid "guestfs_vfs_uuid"
31171 msgstr ""
31172
31173 #. type: verbatim
31174 #: ../src/guestfs-actions.pod:7396
31175 #, no-wrap
31176 msgid ""
31177 " char *\n"
31178 " guestfs_vfs_uuid (guestfs_h *g,\n"
31179 "                   const char *device);\n"
31180 "\n"
31181 msgstr ""
31182
31183 #. type: textblock
31184 #: ../src/guestfs-actions.pod:7405
31185 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31186 msgstr ""
31187
31188 #. type: =head2
31189 #: ../src/guestfs-actions.pod:7412
31190 msgid "guestfs_vg_activate"
31191 msgstr ""
31192
31193 #. type: verbatim
31194 #: ../src/guestfs-actions.pod:7414
31195 #, no-wrap
31196 msgid ""
31197 " int\n"
31198 " guestfs_vg_activate (guestfs_h *g,\n"
31199 "                      int activate,\n"
31200 "                      char *const *volgroups);\n"
31201 "\n"
31202 msgstr ""
31203
31204 #. type: =head2
31205 #: ../src/guestfs-actions.pod:7431
31206 msgid "guestfs_vg_activate_all"
31207 msgstr ""
31208
31209 #. type: verbatim
31210 #: ../src/guestfs-actions.pod:7433
31211 #, no-wrap
31212 msgid ""
31213 " int\n"
31214 " guestfs_vg_activate_all (guestfs_h *g,\n"
31215 "                          int activate);\n"
31216 "\n"
31217 msgstr ""
31218
31219 #. type: =head2
31220 #: ../src/guestfs-actions.pod:7446
31221 msgid "guestfs_vgcreate"
31222 msgstr ""
31223
31224 #. type: verbatim
31225 #: ../src/guestfs-actions.pod:7448
31226 #, no-wrap
31227 msgid ""
31228 " int\n"
31229 " guestfs_vgcreate (guestfs_h *g,\n"
31230 "                   const char *volgroup,\n"
31231 "                   char *const *physvols);\n"
31232 "\n"
31233 msgstr ""
31234
31235 #. type: =head2
31236 #: ../src/guestfs-actions.pod:7460
31237 msgid "guestfs_vglvuuids"
31238 msgstr ""
31239
31240 #. type: verbatim
31241 #: ../src/guestfs-actions.pod:7462
31242 #, no-wrap
31243 msgid ""
31244 " char **\n"
31245 " guestfs_vglvuuids (guestfs_h *g,\n"
31246 "                    const char *vgname);\n"
31247 "\n"
31248 msgstr ""
31249
31250 #. type: textblock
31251 #: ../src/guestfs-actions.pod:7469
31252 msgid ""
31253 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31254 "associate logical volumes and volume groups."
31255 msgstr ""
31256
31257 #. type: textblock
31258 #: ../src/guestfs-actions.pod:7472
31259 msgid "See also C<guestfs_vgpvuuids>."
31260 msgstr ""
31261
31262 #. type: =head2
31263 #: ../src/guestfs-actions.pod:7480
31264 msgid "guestfs_vgpvuuids"
31265 msgstr ""
31266
31267 #. type: verbatim
31268 #: ../src/guestfs-actions.pod:7482
31269 #, no-wrap
31270 msgid ""
31271 " char **\n"
31272 " guestfs_vgpvuuids (guestfs_h *g,\n"
31273 "                    const char *vgname);\n"
31274 "\n"
31275 msgstr ""
31276
31277 #. type: textblock
31278 #: ../src/guestfs-actions.pod:7489
31279 msgid ""
31280 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31281 "associate physical volumes and volume groups."
31282 msgstr ""
31283
31284 #. type: textblock
31285 #: ../src/guestfs-actions.pod:7492
31286 msgid "See also C<guestfs_vglvuuids>."
31287 msgstr ""
31288
31289 #. type: =head2
31290 #: ../src/guestfs-actions.pod:7500
31291 msgid "guestfs_vgremove"
31292 msgstr ""
31293
31294 #. type: verbatim
31295 #: ../src/guestfs-actions.pod:7502
31296 #, no-wrap
31297 msgid ""
31298 " int\n"
31299 " guestfs_vgremove (guestfs_h *g,\n"
31300 "                   const char *vgname);\n"
31301 "\n"
31302 msgstr ""
31303
31304 #. type: =head2
31305 #: ../src/guestfs-actions.pod:7515
31306 msgid "guestfs_vgrename"
31307 msgstr ""
31308
31309 #. type: verbatim
31310 #: ../src/guestfs-actions.pod:7517
31311 #, no-wrap
31312 msgid ""
31313 " int\n"
31314 " guestfs_vgrename (guestfs_h *g,\n"
31315 "                   const char *volgroup,\n"
31316 "                   const char *newvolgroup);\n"
31317 "\n"
31318 msgstr ""
31319
31320 #. type: =head2
31321 #: ../src/guestfs-actions.pod:7528
31322 msgid "guestfs_vgs"
31323 msgstr ""
31324
31325 #. type: verbatim
31326 #: ../src/guestfs-actions.pod:7530
31327 #, no-wrap
31328 msgid ""
31329 " char **\n"
31330 " guestfs_vgs (guestfs_h *g);\n"
31331 "\n"
31332 msgstr ""
31333
31334 #. type: textblock
31335 #: ../src/guestfs-actions.pod:7539
31336 msgid "See also C<guestfs_vgs_full>."
31337 msgstr ""
31338
31339 #. type: =head2
31340 #: ../src/guestfs-actions.pod:7547
31341 msgid "guestfs_vgs_full"
31342 msgstr ""
31343
31344 #. type: verbatim
31345 #: ../src/guestfs-actions.pod:7549
31346 #, no-wrap
31347 msgid ""
31348 " struct guestfs_lvm_vg_list *\n"
31349 " guestfs_vgs_full (guestfs_h *g);\n"
31350 "\n"
31351 msgstr ""
31352
31353 #. type: textblock
31354 #: ../src/guestfs-actions.pod:7555
31355 msgid ""
31356 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31357 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
31358 msgstr ""
31359
31360 #. type: =head2
31361 #: ../src/guestfs-actions.pod:7561
31362 msgid "guestfs_vgscan"
31363 msgstr ""
31364
31365 #. type: verbatim
31366 #: ../src/guestfs-actions.pod:7563
31367 #, no-wrap
31368 msgid ""
31369 " int\n"
31370 " guestfs_vgscan (guestfs_h *g);\n"
31371 "\n"
31372 msgstr ""
31373
31374 #. type: =head2
31375 #: ../src/guestfs-actions.pod:7573
31376 msgid "guestfs_vguuid"
31377 msgstr ""
31378
31379 #. type: verbatim
31380 #: ../src/guestfs-actions.pod:7575
31381 #, no-wrap
31382 msgid ""
31383 " char *\n"
31384 " guestfs_vguuid (guestfs_h *g,\n"
31385 "                 const char *vgname);\n"
31386 "\n"
31387 msgstr ""
31388
31389 #. type: =head2
31390 #: ../src/guestfs-actions.pod:7586
31391 msgid "guestfs_wait_ready"
31392 msgstr ""
31393
31394 #. type: verbatim
31395 #: ../src/guestfs-actions.pod:7588
31396 #, no-wrap
31397 msgid ""
31398 " int\n"
31399 " guestfs_wait_ready (guestfs_h *g);\n"
31400 "\n"
31401 msgstr ""
31402
31403 #. type: textblock
31404 #: ../src/guestfs-actions.pod:7591
31405 msgid ""
31406 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
31407 "instead."
31408 msgstr ""
31409
31410 #. type: textblock
31411 #: ../src/guestfs-actions.pod:7598
31412 msgid "This function is a no op."
31413 msgstr ""
31414
31415 #. type: textblock
31416 #: ../src/guestfs-actions.pod:7600
31417 msgid ""
31418 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31419 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
31420 "is no longer necessary because C<guestfs_launch> now does the waiting."
31421 msgstr ""
31422
31423 #. type: textblock
31424 #: ../src/guestfs-actions.pod:7605
31425 msgid ""
31426 "If you see any calls to this function in code then you can just remove them, "
31427 "unless you want to retain compatibility with older versions of the API."
31428 msgstr ""
31429
31430 #. type: =head2
31431 #: ../src/guestfs-actions.pod:7613
31432 msgid "guestfs_wc_c"
31433 msgstr ""
31434
31435 #. type: verbatim
31436 #: ../src/guestfs-actions.pod:7615
31437 #, no-wrap
31438 msgid ""
31439 " int\n"
31440 " guestfs_wc_c (guestfs_h *g,\n"
31441 "               const char *path);\n"
31442 "\n"
31443 msgstr ""
31444
31445 #. type: =head2
31446 #: ../src/guestfs-actions.pod:7626
31447 msgid "guestfs_wc_l"
31448 msgstr ""
31449
31450 #. type: verbatim
31451 #: ../src/guestfs-actions.pod:7628
31452 #, no-wrap
31453 msgid ""
31454 " int\n"
31455 " guestfs_wc_l (guestfs_h *g,\n"
31456 "               const char *path);\n"
31457 "\n"
31458 msgstr ""
31459
31460 #. type: =head2
31461 #: ../src/guestfs-actions.pod:7639
31462 msgid "guestfs_wc_w"
31463 msgstr ""
31464
31465 #. type: verbatim
31466 #: ../src/guestfs-actions.pod:7641
31467 #, no-wrap
31468 msgid ""
31469 " int\n"
31470 " guestfs_wc_w (guestfs_h *g,\n"
31471 "               const char *path);\n"
31472 "\n"
31473 msgstr ""
31474
31475 #. type: =head2
31476 #: ../src/guestfs-actions.pod:7652
31477 msgid "guestfs_write"
31478 msgstr ""
31479
31480 #. type: verbatim
31481 #: ../src/guestfs-actions.pod:7654
31482 #, no-wrap
31483 msgid ""
31484 " int\n"
31485 " guestfs_write (guestfs_h *g,\n"
31486 "                const char *path,\n"
31487 "                const char *content,\n"
31488 "                size_t content_size);\n"
31489 "\n"
31490 msgstr ""
31491
31492 #. type: textblock
31493 #: ../src/guestfs-actions.pod:7663
31494 msgid "See also C<guestfs_write_append>."
31495 msgstr ""
31496
31497 #. type: =head2
31498 #: ../src/guestfs-actions.pod:7672
31499 msgid "guestfs_write_append"
31500 msgstr ""
31501
31502 #. type: verbatim
31503 #: ../src/guestfs-actions.pod:7674
31504 #, no-wrap
31505 msgid ""
31506 " int\n"
31507 " guestfs_write_append (guestfs_h *g,\n"
31508 "                       const char *path,\n"
31509 "                       const char *content,\n"
31510 "                       size_t content_size);\n"
31511 "\n"
31512 msgstr ""
31513
31514 #. type: textblock
31515 #: ../src/guestfs-actions.pod:7683
31516 msgid "See also C<guestfs_write>."
31517 msgstr ""
31518
31519 #. type: =head2
31520 #: ../src/guestfs-actions.pod:7692
31521 msgid "guestfs_write_file"
31522 msgstr "guestfs_write_file"
31523
31524 #. type: verbatim
31525 #: ../src/guestfs-actions.pod:7694
31526 #, no-wrap
31527 msgid ""
31528 " int\n"
31529 " guestfs_write_file (guestfs_h *g,\n"
31530 "                     const char *path,\n"
31531 "                     const char *content,\n"
31532 "                     int size);\n"
31533 "\n"
31534 msgstr ""
31535 " int\n"
31536 " guestfs_write_file (guestfs_h *g,\n"
31537 "                     const char *path,\n"
31538 "                     const char *content,\n"
31539 "                     int size);\n"
31540 "\n"
31541
31542 #. type: textblock
31543 #: ../src/guestfs-actions.pod:7700
31544 msgid ""
31545 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
31546 "instead."
31547 msgstr ""
31548
31549 #. type: =head2
31550 #: ../src/guestfs-actions.pod:7725
31551 msgid "guestfs_zegrep"
31552 msgstr "guestfs_zegrep"
31553
31554 #. type: verbatim
31555 #: ../src/guestfs-actions.pod:7727
31556 #, no-wrap
31557 msgid ""
31558 " char **\n"
31559 " guestfs_zegrep (guestfs_h *g,\n"
31560 "                 const char *regex,\n"
31561 "                 const char *path);\n"
31562 "\n"
31563 msgstr ""
31564 " char **\n"
31565 " guestfs_zegrep (guestfs_h *g,\n"
31566 "                 const char *regex,\n"
31567 "                 const char *path);\n"
31568 "\n"
31569
31570 #. type: =head2
31571 #: ../src/guestfs-actions.pod:7744
31572 msgid "guestfs_zegrepi"
31573 msgstr "guestfs_zegrepi"
31574
31575 #. type: verbatim
31576 #: ../src/guestfs-actions.pod:7746
31577 #, no-wrap
31578 msgid ""
31579 " char **\n"
31580 " guestfs_zegrepi (guestfs_h *g,\n"
31581 "                  const char *regex,\n"
31582 "                  const char *path);\n"
31583 "\n"
31584 msgstr ""
31585 " char **\n"
31586 " guestfs_zegrepi (guestfs_h *g,\n"
31587 "                  const char *regex,\n"
31588 "                  const char *path);\n"
31589 "\n"
31590
31591 #. type: =head2
31592 #: ../src/guestfs-actions.pod:7763
31593 msgid "guestfs_zero"
31594 msgstr "guestfs_zero"
31595
31596 #. type: verbatim
31597 #: ../src/guestfs-actions.pod:7765
31598 #, no-wrap
31599 msgid ""
31600 " int\n"
31601 " guestfs_zero (guestfs_h *g,\n"
31602 "               const char *device);\n"
31603 "\n"
31604 msgstr ""
31605 " int\n"
31606 " guestfs_zero (guestfs_h *g,\n"
31607 "               const char *device);\n"
31608 "\n"
31609
31610 #. type: textblock
31611 #: ../src/guestfs-actions.pod:7779
31612 msgid ""
31613 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31614 "C<guestfs_is_zero_device>"
31615 msgstr ""
31616
31617 #. type: =head2
31618 #: ../src/guestfs-actions.pod:7791
31619 msgid "guestfs_zero_device"
31620 msgstr "guestfs_zero_device"
31621
31622 #. type: verbatim
31623 #: ../src/guestfs-actions.pod:7793
31624 #, no-wrap
31625 msgid ""
31626 " int\n"
31627 " guestfs_zero_device (guestfs_h *g,\n"
31628 "                      const char *device);\n"
31629 "\n"
31630 msgstr ""
31631 " int\n"
31632 " guestfs_zero_device (guestfs_h *g,\n"
31633 "                      const char *device);\n"
31634 "\n"
31635
31636 #. type: textblock
31637 #: ../src/guestfs-actions.pod:7797
31638 msgid ""
31639 "This command writes zeroes over the entire C<device>.  Compare with "
31640 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31641 msgstr ""
31642
31643 #. type: textblock
31644 #: ../src/guestfs-actions.pod:7815
31645 msgid "(Added in 1.3.1)"
31646 msgstr "(Додано у 1.3.1)"
31647
31648 #. type: =head2
31649 #: ../src/guestfs-actions.pod:7817
31650 msgid "guestfs_zerofree"
31651 msgstr "guestfs_zerofree"
31652
31653 #. type: verbatim
31654 #: ../src/guestfs-actions.pod:7819
31655 #, no-wrap
31656 msgid ""
31657 " int\n"
31658 " guestfs_zerofree (guestfs_h *g,\n"
31659 "                   const char *device);\n"
31660 "\n"
31661 msgstr ""
31662 " int\n"
31663 " guestfs_zerofree (guestfs_h *g,\n"
31664 "                   const char *device);\n"
31665 "\n"
31666
31667 #. type: =head2
31668 #: ../src/guestfs-actions.pod:7838
31669 msgid "guestfs_zfgrep"
31670 msgstr "guestfs_zfgrep"
31671
31672 #. type: verbatim
31673 #: ../src/guestfs-actions.pod:7840
31674 #, no-wrap
31675 msgid ""
31676 " char **\n"
31677 " guestfs_zfgrep (guestfs_h *g,\n"
31678 "                 const char *pattern,\n"
31679 "                 const char *path);\n"
31680 "\n"
31681 msgstr ""
31682 " char **\n"
31683 " guestfs_zfgrep (guestfs_h *g,\n"
31684 "                 const char *pattern,\n"
31685 "                 const char *path);\n"
31686 "\n"
31687
31688 #. type: =head2
31689 #: ../src/guestfs-actions.pod:7857
31690 msgid "guestfs_zfgrepi"
31691 msgstr "guestfs_zfgrepi"
31692
31693 #. type: verbatim
31694 #: ../src/guestfs-actions.pod:7859
31695 #, no-wrap
31696 msgid ""
31697 " char **\n"
31698 " guestfs_zfgrepi (guestfs_h *g,\n"
31699 "                  const char *pattern,\n"
31700 "                  const char *path);\n"
31701 "\n"
31702 msgstr ""
31703 " char **\n"
31704 " guestfs_zfgrepi (guestfs_h *g,\n"
31705 "                  const char *pattern,\n"
31706 "                  const char *path);\n"
31707 "\n"
31708
31709 #. type: =head2
31710 #: ../src/guestfs-actions.pod:7876
31711 msgid "guestfs_zfile"
31712 msgstr "guestfs_zfile"
31713
31714 #. type: verbatim
31715 #: ../src/guestfs-actions.pod:7878
31716 #, no-wrap
31717 msgid ""
31718 " char *\n"
31719 " guestfs_zfile (guestfs_h *g,\n"
31720 "                const char *meth,\n"
31721 "                const char *path);\n"
31722 "\n"
31723 msgstr ""
31724 " char *\n"
31725 " guestfs_zfile (guestfs_h *g,\n"
31726 "                const char *meth,\n"
31727 "                const char *path);\n"
31728 "\n"
31729
31730 #. type: textblock
31731 #: ../src/guestfs-actions.pod:7883
31732 msgid ""
31733 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
31734 "instead."
31735 msgstr ""
31736
31737 #. type: textblock
31738 #: ../src/guestfs-actions.pod:7895
31739 msgid ""
31740 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
31741 "files."
31742 msgstr ""
31743
31744 #. type: =head2
31745 #: ../src/guestfs-actions.pod:7903
31746 msgid "guestfs_zgrep"
31747 msgstr "guestfs_zgrep"
31748
31749 #. type: verbatim
31750 #: ../src/guestfs-actions.pod:7905
31751 #, no-wrap
31752 msgid ""
31753 " char **\n"
31754 " guestfs_zgrep (guestfs_h *g,\n"
31755 "                const char *regex,\n"
31756 "                const char *path);\n"
31757 "\n"
31758 msgstr ""
31759 " char **\n"
31760 " guestfs_zgrep (guestfs_h *g,\n"
31761 "                const char *regex,\n"
31762 "                const char *path);\n"
31763 "\n"
31764
31765 #. type: =head2
31766 #: ../src/guestfs-actions.pod:7922
31767 msgid "guestfs_zgrepi"
31768 msgstr "guestfs_zgrepi"
31769
31770 #. type: verbatim
31771 #: ../src/guestfs-actions.pod:7924
31772 #, no-wrap
31773 msgid ""
31774 " char **\n"
31775 " guestfs_zgrepi (guestfs_h *g,\n"
31776 "                 const char *regex,\n"
31777 "                 const char *path);\n"
31778 "\n"
31779 msgstr ""
31780 " char **\n"
31781 " guestfs_zgrepi (guestfs_h *g,\n"
31782 "                 const char *regex,\n"
31783 "                 const char *path);\n"
31784 "\n"
31785
31786 #. type: =item
31787 #: ../src/guestfs-availability.pod:3
31788 msgid "B<augeas>"
31789 msgstr "B<augeas>"
31790
31791 #. type: textblock
31792 #: ../src/guestfs-availability.pod:5
31793 msgid ""
31794 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
31795 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
31796 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
31797 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
31798 "L</guestfs_aug_save> L</guestfs_aug_set>"
31799 msgstr ""
31800
31801 #. type: =item
31802 #: ../src/guestfs-availability.pod:21
31803 msgid "B<btrfs>"
31804 msgstr ""
31805
31806 #. type: textblock
31807 #: ../src/guestfs-availability.pod:23
31808 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
31809 msgstr ""
31810
31811 #. type: =item
31812 #: ../src/guestfs-availability.pod:26
31813 msgid "B<inotify>"
31814 msgstr "B<inotify>"
31815
31816 #. type: textblock
31817 #: ../src/guestfs-availability.pod:28
31818 msgid ""
31819 "The following functions: L</guestfs_inotify_add_watch> L</"
31820 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
31821 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
31822 msgstr ""
31823
31824 #. type: =item
31825 #: ../src/guestfs-availability.pod:36
31826 msgid "B<linuxfsuuid>"
31827 msgstr "B<linuxfsuuid>"
31828
31829 #. type: textblock
31830 #: ../src/guestfs-availability.pod:38
31831 msgid ""
31832 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
31833 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
31834 msgstr ""
31835
31836 #. type: =item
31837 #: ../src/guestfs-availability.pod:45
31838 msgid "B<linuxmodules>"
31839 msgstr "B<linuxmodules>"
31840
31841 #. type: textblock
31842 #: ../src/guestfs-availability.pod:47
31843 msgid "The following functions: L</guestfs_modprobe>"
31844 msgstr ""
31845
31846 #. type: =item
31847 #: ../src/guestfs-availability.pod:50
31848 msgid "B<linuxxattrs>"
31849 msgstr "B<linuxxattrs>"
31850
31851 #. type: textblock
31852 #: ../src/guestfs-availability.pod:52
31853 msgid ""
31854 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
31855 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
31856 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
31857 "guestfs_setxattr>"
31858 msgstr ""
31859
31860 #. type: =item
31861 #: ../src/guestfs-availability.pod:63
31862 msgid "B<luks>"
31863 msgstr "B<luks>"
31864
31865 #. type: textblock
31866 #: ../src/guestfs-availability.pod:65
31867 msgid ""
31868 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
31869 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
31870 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
31871 msgstr ""
31872
31873 #. type: =item
31874 #: ../src/guestfs-availability.pod:74
31875 msgid "B<lvm2>"
31876 msgstr "B<lvm2>"
31877
31878 #. type: textblock
31879 #: ../src/guestfs-availability.pod:76
31880 msgid ""
31881 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
31882 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
31883 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
31884 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
31885 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
31886 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
31887 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
31888 msgstr ""
31889
31890 #. type: =item
31891 #: ../src/guestfs-availability.pod:99
31892 msgid "B<mknod>"
31893 msgstr "B<mknod>"
31894
31895 #. type: textblock
31896 #: ../src/guestfs-availability.pod:101
31897 msgid ""
31898 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
31899 "guestfs_mknod_b> L</guestfs_mknod_c>"
31900 msgstr ""
31901
31902 #. type: =item
31903 #: ../src/guestfs-availability.pod:107
31904 msgid "B<ntfs3g>"
31905 msgstr "B<ntfs3g>"
31906
31907 #. type: textblock
31908 #: ../src/guestfs-availability.pod:109
31909 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
31910 msgstr ""
31911
31912 #. type: =item
31913 #: ../src/guestfs-availability.pod:112
31914 msgid "B<ntfsprogs>"
31915 msgstr "B<ntfsprogs>"
31916
31917 #. type: textblock
31918 #: ../src/guestfs-availability.pod:114
31919 msgid ""
31920 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
31921 "L</guestfs_ntfsresize_size>"
31922 msgstr ""
31923
31924 #. type: =item
31925 #: ../src/guestfs-availability.pod:119
31926 msgid "B<realpath>"
31927 msgstr "B<realpath>"
31928
31929 #. type: textblock
31930 #: ../src/guestfs-availability.pod:121
31931 msgid "The following functions: L</guestfs_realpath>"
31932 msgstr ""
31933
31934 #. type: =item
31935 #: ../src/guestfs-availability.pod:124
31936 msgid "B<scrub>"
31937 msgstr "B<scrub>"
31938
31939 #. type: textblock
31940 #: ../src/guestfs-availability.pod:126
31941 msgid ""
31942 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
31943 "guestfs_scrub_freespace>"
31944 msgstr ""
31945
31946 #. type: =item
31947 #: ../src/guestfs-availability.pod:131
31948 msgid "B<selinux>"
31949 msgstr "B<selinux>"
31950
31951 #. type: textblock
31952 #: ../src/guestfs-availability.pod:133
31953 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
31954 msgstr ""
31955
31956 #. type: =item
31957 #: ../src/guestfs-availability.pod:137
31958 msgid "B<xz>"
31959 msgstr "B<xz>"
31960
31961 #. type: textblock
31962 #: ../src/guestfs-availability.pod:139
31963 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
31964 msgstr ""
31965
31966 #. type: =item
31967 #: ../src/guestfs-availability.pod:143
31968 msgid "B<zerofree>"
31969 msgstr "B<zerofree>"
31970
31971 #. type: textblock
31972 #: ../src/guestfs-availability.pod:145
31973 msgid "The following functions: L</guestfs_zerofree>"
31974 msgstr ""
31975
31976 #. type: =head2
31977 #: ../src/guestfs-structs.pod:1
31978 msgid "guestfs_int_bool"
31979 msgstr ""
31980
31981 #. type: verbatim
31982 #: ../src/guestfs-structs.pod:3
31983 #, no-wrap
31984 msgid ""
31985 " struct guestfs_int_bool {\n"
31986 "   int32_t i;\n"
31987 "   int32_t b;\n"
31988 " };\n"
31989 " \n"
31990 msgstr ""
31991
31992 #. type: verbatim
31993 #: ../src/guestfs-structs.pod:8
31994 #, no-wrap
31995 msgid ""
31996 " struct guestfs_int_bool_list {\n"
31997 "   uint32_t len; /* Number of elements in list. */\n"
31998 "   struct guestfs_int_bool *val; /* Elements. */\n"
31999 " };\n"
32000 " \n"
32001 msgstr ""
32002
32003 #. type: verbatim
32004 #: ../src/guestfs-structs.pod:13
32005 #, no-wrap
32006 msgid ""
32007 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
32008 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
32009 "\n"
32010 msgstr ""
32011
32012 #. type: =head2
32013 #: ../src/guestfs-structs.pod:16
32014 msgid "guestfs_lvm_pv"
32015 msgstr ""
32016
32017 #. type: verbatim
32018 #: ../src/guestfs-structs.pod:18
32019 #, no-wrap
32020 msgid ""
32021 " struct guestfs_lvm_pv {\n"
32022 "   char *pv_name;\n"
32023 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32024 "   char pv_uuid[32];\n"
32025 "   char *pv_fmt;\n"
32026 "   uint64_t pv_size;\n"
32027 "   uint64_t dev_size;\n"
32028 "   uint64_t pv_free;\n"
32029 "   uint64_t pv_used;\n"
32030 "   char *pv_attr;\n"
32031 "   int64_t pv_pe_count;\n"
32032 "   int64_t pv_pe_alloc_count;\n"
32033 "   char *pv_tags;\n"
32034 "   uint64_t pe_start;\n"
32035 "   int64_t pv_mda_count;\n"
32036 "   uint64_t pv_mda_free;\n"
32037 " };\n"
32038 " \n"
32039 msgstr ""
32040
32041 #. type: verbatim
32042 #: ../src/guestfs-structs.pod:36
32043 #, no-wrap
32044 msgid ""
32045 " struct guestfs_lvm_pv_list {\n"
32046 "   uint32_t len; /* Number of elements in list. */\n"
32047 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
32048 " };\n"
32049 " \n"
32050 msgstr ""
32051
32052 #. type: verbatim
32053 #: ../src/guestfs-structs.pod:41
32054 #, no-wrap
32055 msgid ""
32056 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32057 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32058 "\n"
32059 msgstr ""
32060
32061 #. type: =head2
32062 #: ../src/guestfs-structs.pod:44
32063 msgid "guestfs_lvm_vg"
32064 msgstr ""
32065
32066 #. type: verbatim
32067 #: ../src/guestfs-structs.pod:46
32068 #, no-wrap
32069 msgid ""
32070 " struct guestfs_lvm_vg {\n"
32071 "   char *vg_name;\n"
32072 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32073 "   char vg_uuid[32];\n"
32074 "   char *vg_fmt;\n"
32075 "   char *vg_attr;\n"
32076 "   uint64_t vg_size;\n"
32077 "   uint64_t vg_free;\n"
32078 "   char *vg_sysid;\n"
32079 "   uint64_t vg_extent_size;\n"
32080 "   int64_t vg_extent_count;\n"
32081 "   int64_t vg_free_count;\n"
32082 "   int64_t max_lv;\n"
32083 "   int64_t max_pv;\n"
32084 "   int64_t pv_count;\n"
32085 "   int64_t lv_count;\n"
32086 "   int64_t snap_count;\n"
32087 "   int64_t vg_seqno;\n"
32088 "   char *vg_tags;\n"
32089 "   int64_t vg_mda_count;\n"
32090 "   uint64_t vg_mda_free;\n"
32091 " };\n"
32092 " \n"
32093 msgstr ""
32094
32095 #. type: verbatim
32096 #: ../src/guestfs-structs.pod:69
32097 #, no-wrap
32098 msgid ""
32099 " struct guestfs_lvm_vg_list {\n"
32100 "   uint32_t len; /* Number of elements in list. */\n"
32101 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
32102 " };\n"
32103 " \n"
32104 msgstr ""
32105
32106 #. type: verbatim
32107 #: ../src/guestfs-structs.pod:74
32108 #, no-wrap
32109 msgid ""
32110 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32111 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32112 "\n"
32113 msgstr ""
32114
32115 #. type: =head2
32116 #: ../src/guestfs-structs.pod:77
32117 msgid "guestfs_lvm_lv"
32118 msgstr ""
32119
32120 #. type: verbatim
32121 #: ../src/guestfs-structs.pod:79
32122 #, no-wrap
32123 msgid ""
32124 " struct guestfs_lvm_lv {\n"
32125 "   char *lv_name;\n"
32126 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32127 "   char lv_uuid[32];\n"
32128 "   char *lv_attr;\n"
32129 "   int64_t lv_major;\n"
32130 "   int64_t lv_minor;\n"
32131 "   int64_t lv_kernel_major;\n"
32132 "   int64_t lv_kernel_minor;\n"
32133 "   uint64_t lv_size;\n"
32134 "   int64_t seg_count;\n"
32135 "   char *origin;\n"
32136 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32137 "   float snap_percent;\n"
32138 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32139 "   float copy_percent;\n"
32140 "   char *move_pv;\n"
32141 "   char *lv_tags;\n"
32142 "   char *mirror_log;\n"
32143 "   char *modules;\n"
32144 " };\n"
32145 " \n"
32146 msgstr ""
32147
32148 #. type: verbatim
32149 #: ../src/guestfs-structs.pod:101
32150 #, no-wrap
32151 msgid ""
32152 " struct guestfs_lvm_lv_list {\n"
32153 "   uint32_t len; /* Number of elements in list. */\n"
32154 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
32155 " };\n"
32156 " \n"
32157 msgstr ""
32158
32159 #. type: verbatim
32160 #: ../src/guestfs-structs.pod:106
32161 #, no-wrap
32162 msgid ""
32163 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32164 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32165 "\n"
32166 msgstr ""
32167
32168 #. type: verbatim
32169 #: ../src/guestfs-structs.pod:111
32170 #, no-wrap
32171 msgid ""
32172 " struct guestfs_stat {\n"
32173 "   int64_t dev;\n"
32174 "   int64_t ino;\n"
32175 "   int64_t mode;\n"
32176 "   int64_t nlink;\n"
32177 "   int64_t uid;\n"
32178 "   int64_t gid;\n"
32179 "   int64_t rdev;\n"
32180 "   int64_t size;\n"
32181 "   int64_t blksize;\n"
32182 "   int64_t blocks;\n"
32183 "   int64_t atime;\n"
32184 "   int64_t mtime;\n"
32185 "   int64_t ctime;\n"
32186 " };\n"
32187 " \n"
32188 msgstr ""
32189
32190 #. type: verbatim
32191 #: ../src/guestfs-structs.pod:127
32192 #, no-wrap
32193 msgid ""
32194 " struct guestfs_stat_list {\n"
32195 "   uint32_t len; /* Number of elements in list. */\n"
32196 "   struct guestfs_stat *val; /* Elements. */\n"
32197 " };\n"
32198 " \n"
32199 msgstr ""
32200
32201 #. type: verbatim
32202 #: ../src/guestfs-structs.pod:132
32203 #, no-wrap
32204 msgid ""
32205 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32206 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32207 "\n"
32208 msgstr ""
32209
32210 #. type: verbatim
32211 #: ../src/guestfs-structs.pod:137
32212 #, no-wrap
32213 msgid ""
32214 " struct guestfs_statvfs {\n"
32215 "   int64_t bsize;\n"
32216 "   int64_t frsize;\n"
32217 "   int64_t blocks;\n"
32218 "   int64_t bfree;\n"
32219 "   int64_t bavail;\n"
32220 "   int64_t files;\n"
32221 "   int64_t ffree;\n"
32222 "   int64_t favail;\n"
32223 "   int64_t fsid;\n"
32224 "   int64_t flag;\n"
32225 "   int64_t namemax;\n"
32226 " };\n"
32227 " \n"
32228 msgstr ""
32229
32230 #. type: verbatim
32231 #: ../src/guestfs-structs.pod:151
32232 #, no-wrap
32233 msgid ""
32234 " struct guestfs_statvfs_list {\n"
32235 "   uint32_t len; /* Number of elements in list. */\n"
32236 "   struct guestfs_statvfs *val; /* Elements. */\n"
32237 " };\n"
32238 " \n"
32239 msgstr ""
32240
32241 #. type: verbatim
32242 #: ../src/guestfs-structs.pod:156
32243 #, no-wrap
32244 msgid ""
32245 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32246 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32247 "\n"
32248 msgstr ""
32249
32250 #. type: =head2
32251 #: ../src/guestfs-structs.pod:159
32252 msgid "guestfs_dirent"
32253 msgstr ""
32254
32255 #. type: verbatim
32256 #: ../src/guestfs-structs.pod:161
32257 #, no-wrap
32258 msgid ""
32259 " struct guestfs_dirent {\n"
32260 "   int64_t ino;\n"
32261 "   char ftyp;\n"
32262 "   char *name;\n"
32263 " };\n"
32264 " \n"
32265 msgstr ""
32266
32267 #. type: verbatim
32268 #: ../src/guestfs-structs.pod:167
32269 #, no-wrap
32270 msgid ""
32271 " struct guestfs_dirent_list {\n"
32272 "   uint32_t len; /* Number of elements in list. */\n"
32273 "   struct guestfs_dirent *val; /* Elements. */\n"
32274 " };\n"
32275 " \n"
32276 msgstr ""
32277
32278 #. type: verbatim
32279 #: ../src/guestfs-structs.pod:172
32280 #, no-wrap
32281 msgid ""
32282 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32283 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32284 "\n"
32285 msgstr ""
32286
32287 #. type: verbatim
32288 #: ../src/guestfs-structs.pod:177
32289 #, no-wrap
32290 msgid ""
32291 " struct guestfs_version {\n"
32292 "   int64_t major;\n"
32293 "   int64_t minor;\n"
32294 "   int64_t release;\n"
32295 "   char *extra;\n"
32296 " };\n"
32297 " \n"
32298 msgstr ""
32299
32300 #. type: verbatim
32301 #: ../src/guestfs-structs.pod:184
32302 #, no-wrap
32303 msgid ""
32304 " struct guestfs_version_list {\n"
32305 "   uint32_t len; /* Number of elements in list. */\n"
32306 "   struct guestfs_version *val; /* Elements. */\n"
32307 " };\n"
32308 " \n"
32309 msgstr ""
32310
32311 #. type: verbatim
32312 #: ../src/guestfs-structs.pod:189
32313 #, no-wrap
32314 msgid ""
32315 " void guestfs_free_version (struct guestfs_free_version *);\n"
32316 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32317 "\n"
32318 msgstr ""
32319
32320 #. type: =head2
32321 #: ../src/guestfs-structs.pod:192
32322 msgid "guestfs_xattr"
32323 msgstr ""
32324
32325 #. type: verbatim
32326 #: ../src/guestfs-structs.pod:194
32327 #, no-wrap
32328 msgid ""
32329 " struct guestfs_xattr {\n"
32330 "   char *attrname;\n"
32331 "   /* The next two fields describe a byte array. */\n"
32332 "   uint32_t attrval_len;\n"
32333 "   char *attrval;\n"
32334 " };\n"
32335 " \n"
32336 msgstr ""
32337
32338 #. type: verbatim
32339 #: ../src/guestfs-structs.pod:201
32340 #, no-wrap
32341 msgid ""
32342 " struct guestfs_xattr_list {\n"
32343 "   uint32_t len; /* Number of elements in list. */\n"
32344 "   struct guestfs_xattr *val; /* Elements. */\n"
32345 " };\n"
32346 " \n"
32347 msgstr ""
32348
32349 #. type: verbatim
32350 #: ../src/guestfs-structs.pod:206
32351 #, no-wrap
32352 msgid ""
32353 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32354 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32355 "\n"
32356 msgstr ""
32357
32358 #. type: =head2
32359 #: ../src/guestfs-structs.pod:209
32360 msgid "guestfs_inotify_event"
32361 msgstr ""
32362
32363 #. type: verbatim
32364 #: ../src/guestfs-structs.pod:211
32365 #, no-wrap
32366 msgid ""
32367 " struct guestfs_inotify_event {\n"
32368 "   int64_t in_wd;\n"
32369 "   uint32_t in_mask;\n"
32370 "   uint32_t in_cookie;\n"
32371 "   char *in_name;\n"
32372 " };\n"
32373 " \n"
32374 msgstr ""
32375
32376 #. type: verbatim
32377 #: ../src/guestfs-structs.pod:218
32378 #, no-wrap
32379 msgid ""
32380 " struct guestfs_inotify_event_list {\n"
32381 "   uint32_t len; /* Number of elements in list. */\n"
32382 "   struct guestfs_inotify_event *val; /* Elements. */\n"
32383 " };\n"
32384 " \n"
32385 msgstr ""
32386
32387 #. type: verbatim
32388 #: ../src/guestfs-structs.pod:223
32389 #, no-wrap
32390 msgid ""
32391 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32392 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
32393 "\n"
32394 msgstr ""
32395
32396 #. type: =head2
32397 #: ../src/guestfs-structs.pod:226
32398 msgid "guestfs_partition"
32399 msgstr ""
32400
32401 #. type: verbatim
32402 #: ../src/guestfs-structs.pod:228
32403 #, no-wrap
32404 msgid ""
32405 " struct guestfs_partition {\n"
32406 "   int32_t part_num;\n"
32407 "   uint64_t part_start;\n"
32408 "   uint64_t part_end;\n"
32409 "   uint64_t part_size;\n"
32410 " };\n"
32411 " \n"
32412 msgstr ""
32413
32414 #. type: verbatim
32415 #: ../src/guestfs-structs.pod:235
32416 #, no-wrap
32417 msgid ""
32418 " struct guestfs_partition_list {\n"
32419 "   uint32_t len; /* Number of elements in list. */\n"
32420 "   struct guestfs_partition *val; /* Elements. */\n"
32421 " };\n"
32422 " \n"
32423 msgstr ""
32424
32425 #. type: verbatim
32426 #: ../src/guestfs-structs.pod:240
32427 #, no-wrap
32428 msgid ""
32429 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32430 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32431 "\n"
32432 msgstr ""
32433
32434 #. type: =head2
32435 #: ../src/guestfs-structs.pod:243
32436 msgid "guestfs_application"
32437 msgstr ""
32438
32439 #. type: verbatim
32440 #: ../src/guestfs-structs.pod:245
32441 #, no-wrap
32442 msgid ""
32443 " struct guestfs_application {\n"
32444 "   char *app_name;\n"
32445 "   char *app_display_name;\n"
32446 "   int32_t app_epoch;\n"
32447 "   char *app_version;\n"
32448 "   char *app_release;\n"
32449 "   char *app_install_path;\n"
32450 "   char *app_trans_path;\n"
32451 "   char *app_publisher;\n"
32452 "   char *app_url;\n"
32453 "   char *app_source_package;\n"
32454 "   char *app_summary;\n"
32455 "   char *app_description;\n"
32456 " };\n"
32457 " \n"
32458 msgstr ""
32459
32460 #. type: verbatim
32461 #: ../src/guestfs-structs.pod:260
32462 #, no-wrap
32463 msgid ""
32464 " struct guestfs_application_list {\n"
32465 "   uint32_t len; /* Number of elements in list. */\n"
32466 "   struct guestfs_application *val; /* Elements. */\n"
32467 " };\n"
32468 " \n"
32469 msgstr ""
32470
32471 #. type: verbatim
32472 #: ../src/guestfs-structs.pod:265
32473 #, no-wrap
32474 msgid ""
32475 " void guestfs_free_application (struct guestfs_free_application *);\n"
32476 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
32477 "\n"
32478 msgstr ""
32479
32480 #. type: textblock
32481 #: ../src/guestfs.pod:5
32482 msgid "guestfs - Library for accessing and modifying virtual machine images"
32483 msgstr ""
32484 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
32485 "машин"
32486
32487 #. type: verbatim
32488 #: ../src/guestfs.pod:11
32489 #, no-wrap
32490 msgid ""
32491 " guestfs_h *g = guestfs_create ();\n"
32492 " guestfs_add_drive (g, \"guest.img\");\n"
32493 " guestfs_launch (g);\n"
32494 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32495 " guestfs_touch (g, \"/hello\");\n"
32496 " guestfs_umount (g, \"/\");\n"
32497 " guestfs_close (g);\n"
32498 "\n"
32499 msgstr ""
32500 " guestfs_h *g = guestfs_create ();\n"
32501 " guestfs_add_drive (g, \"guest.img\");\n"
32502 " guestfs_launch (g);\n"
32503 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32504 " guestfs_touch (g, \"/hello\");\n"
32505 " guestfs_umount (g, \"/\");\n"
32506 " guestfs_close (g);\n"
32507 "\n"
32508
32509 #. type: textblock
32510 #: ../src/guestfs.pod:25
32511 msgid ""
32512 "Libguestfs is a library for accessing and modifying guest disk images.  "
32513 "Amongst the things this is good for: making batch configuration changes to "
32514 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32515 "between virtualization systems (see also: virt-p2v), performing partial "
32516 "backups, performing partial guest clones, cloning guests and changing "
32517 "registry/UUID/hostname info, and much else besides."
32518 msgstr ""
32519
32520 #. type: textblock
32521 #: ../src/guestfs.pod:33
32522 msgid ""
32523 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32524 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32525 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32526 "qcow2, vmdk."
32527 msgstr ""
32528
32529 #. type: textblock
32530 #: ../src/guestfs.pod:38
32531 msgid ""
32532 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32533 "what filesystem is in each LV, etc.).  It can also run commands in the "
32534 "context of the guest.  Also you can access filesystems over FUSE."
32535 msgstr ""
32536
32537 #. type: textblock
32538 #: ../src/guestfs.pod:43
32539 msgid ""
32540 "Libguestfs is a library that can be linked with C and C++ management "
32541 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32542 "PHP, Haskell or C#).  You can also use it from shell scripts or the command "
32543 "line."
32544 msgstr ""
32545
32546 #. type: textblock
32547 #: ../src/guestfs.pod:48
32548 msgid ""
32549 "You don't need to be root to use libguestfs, although obviously you do need "
32550 "enough permissions to access the disk images."
32551 msgstr ""
32552
32553 #. type: textblock
32554 #: ../src/guestfs.pod:51
32555 msgid ""
32556 "Libguestfs is a large API because it can do many things.  For a gentle "
32557 "introduction, please read the L</API OVERVIEW> section next."
32558 msgstr ""
32559
32560 #. type: textblock
32561 #: ../src/guestfs.pod:54
32562 msgid ""
32563 "There are also some example programs in the L<guestfs-examples(3)> manual "
32564 "page."
32565 msgstr ""
32566
32567 #. type: =head1
32568 #: ../src/guestfs.pod:57
32569 msgid "API OVERVIEW"
32570 msgstr "ОГЛЯД API"
32571
32572 #. type: textblock
32573 #: ../src/guestfs.pod:59
32574 msgid ""
32575 "This section provides a gentler overview of the libguestfs API.  We also try "
32576 "to group API calls together, where that may not be obvious from reading "
32577 "about the individual calls in the main section of this manual."
32578 msgstr ""
32579
32580 #. type: =head2
32581 #: ../src/guestfs.pod:64
32582 msgid "HANDLES"
32583 msgstr "ОБРОБНИКИ"
32584
32585 #. type: textblock
32586 #: ../src/guestfs.pod:66
32587 msgid ""
32588 "Before you can use libguestfs calls, you have to create a handle.  Then you "
32589 "must add at least one disk image to the handle, followed by launching the "
32590 "handle, then performing whatever operations you want, and finally closing "
32591 "the handle.  By convention we use the single letter C<g> for the name of the "
32592 "handle variable, although of course you can use any name you want."
32593 msgstr ""
32594
32595 #. type: textblock
32596 #: ../src/guestfs.pod:73
32597 msgid "The general structure of all libguestfs-using programs looks like this:"
32598 msgstr ""
32599
32600 #. type: verbatim
32601 #: ../src/guestfs.pod:76
32602 #, no-wrap
32603 msgid ""
32604 " guestfs_h *g = guestfs_create ();\n"
32605 " \n"
32606 msgstr ""
32607 " guestfs_h *g = guestfs_create ();\n"
32608 " \n"
32609
32610 #. type: verbatim
32611 #: ../src/guestfs.pod:78
32612 #, no-wrap
32613 msgid ""
32614 " /* Call guestfs_add_drive additional times if there are\n"
32615 "  * multiple disk images.\n"
32616 "  */\n"
32617 " guestfs_add_drive (g, \"guest.img\");\n"
32618 " \n"
32619 msgstr ""
32620
32621 #. type: verbatim
32622 #: ../src/guestfs.pod:83
32623 #, no-wrap
32624 msgid ""
32625 " /* Most manipulation calls won't work until you've launched\n"
32626 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
32627 "  * and _before_ other commands.\n"
32628 "  */\n"
32629 " guestfs_launch (g);\n"
32630 " \n"
32631 msgstr ""
32632
32633 #. type: verbatim
32634 #: ../src/guestfs.pod:89
32635 #, no-wrap
32636 msgid ""
32637 " /* Now you can examine what partitions, LVs etc are available.\n"
32638 "  */\n"
32639 " char **partitions = guestfs_list_partitions (g);\n"
32640 " char **logvols = guestfs_lvs (g);\n"
32641 " \n"
32642 msgstr ""
32643 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
32644 "  */\n"
32645 " char **partitions = guestfs_list_partitions (g);\n"
32646 " char **logvols = guestfs_lvs (g);\n"
32647 " \n"
32648
32649 #. type: verbatim
32650 #: ../src/guestfs.pod:94
32651 #, no-wrap
32652 msgid ""
32653 " /* To access a filesystem in the image, you must mount it.\n"
32654 "  */\n"
32655 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32656 " \n"
32657 msgstr ""
32658 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
32659 "  */\n"
32660 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32661 " \n"
32662
32663 #. type: verbatim
32664 #: ../src/guestfs.pod:98
32665 #, no-wrap
32666 msgid ""
32667 " /* Now you can perform filesystem actions on the guest\n"
32668 "  * disk image.\n"
32669 "  */\n"
32670 " guestfs_touch (g, \"/hello\");\n"
32671 " \n"
32672 msgstr ""
32673
32674 #. type: verbatim
32675 #: ../src/guestfs.pod:103
32676 #, no-wrap
32677 msgid ""
32678 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
32679 "  * it is done automatically when you close the handle.  See\n"
32680 "  * discussion of autosync in this page.\n"
32681 "  */\n"
32682 " guestfs_sync (g);\n"
32683 " \n"
32684 msgstr ""
32685
32686 #. type: verbatim
32687 #: ../src/guestfs.pod:109
32688 #, no-wrap
32689 msgid ""
32690 " /* Close the handle 'g'. */\n"
32691 " guestfs_close (g);\n"
32692 "\n"
32693 msgstr ""
32694 " /* Закрити дескриптор 'g'. */\n"
32695 " guestfs_close (g);\n"
32696 "\n"
32697
32698 #. type: textblock
32699 #: ../src/guestfs.pod:112
32700 msgid ""
32701 "The code above doesn't include any error checking.  In real code you should "
32702 "check return values carefully for errors.  In general all functions that "
32703 "return integers return C<-1> on error, and all functions that return "
32704 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
32705 "how to handle errors, and consult the documentation for each function call "
32706 "below to see precisely how they return error indications.  See L<guestfs-"
32707 "examples(3)> for fully worked examples."
32708 msgstr ""
32709
32710 #. type: =head2
32711 #: ../src/guestfs.pod:121
32712 msgid "DISK IMAGES"
32713 msgstr "ОБРАЗИ ДИСКІВ"
32714
32715 #. type: textblock
32716 #: ../src/guestfs.pod:123
32717 msgid ""
32718 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
32719 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
32720 "actual block device, or simply an empty file of zeroes that you have created "
32721 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
32722 "of these."
32723 msgstr ""
32724
32725 #. type: textblock
32726 #: ../src/guestfs.pod:129
32727 msgid ""
32728 "The call you should use in modern code for adding drives is L</"
32729 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
32730 "specifying that the format is raw, do:"
32731 msgstr ""
32732
32733 #. type: verbatim
32734 #: ../src/guestfs.pod:133
32735 #, no-wrap
32736 msgid ""
32737 " guestfs_add_drive_opts (g, filename,\n"
32738 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32739 "                         -1);\n"
32740 "\n"
32741 msgstr ""
32742 " guestfs_add_drive_opts (g, filename,\n"
32743 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32744 "                         -1);\n"
32745 "\n"
32746
32747 #. type: textblock
32748 #: ../src/guestfs.pod:137
32749 msgid "You can add a disk read-only using:"
32750 msgstr "Ви можете додати диск у режимі лише читання:"
32751
32752 #. type: verbatim
32753 #: ../src/guestfs.pod:139
32754 #, no-wrap
32755 msgid ""
32756 " guestfs_add_drive_opts (g, filename,\n"
32757 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32758 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32759 "                         -1);\n"
32760 "\n"
32761 msgstr ""
32762 " guestfs_add_drive_opts (g, filename,\n"
32763 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
32764 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
32765 "                         -1);\n"
32766 "\n"
32767
32768 #. type: textblock
32769 #: ../src/guestfs.pod:144
32770 msgid ""
32771 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
32772 "libguestfs won't modify the file."
32773 msgstr ""
32774
32775 #. type: textblock
32776 #: ../src/guestfs.pod:147
32777 msgid ""
32778 "Be extremely cautious if the disk image is in use, eg. if it is being used "
32779 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
32780 "corruption, but adding it read-only is safe."
32781 msgstr ""
32782
32783 #. type: textblock
32784 #: ../src/guestfs.pod:151
32785 msgid ""
32786 "You must add at least one disk image, and you may add multiple disk images.  "
32787 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
32788 "first one you added), C</dev/sdb> (for the second one you added), etc."
32789 msgstr ""
32790
32791 #. type: textblock
32792 #: ../src/guestfs.pod:156
32793 msgid ""
32794 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
32795 "can call L</guestfs_list_devices> to get a list of the device names, in the "
32796 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
32797 msgstr ""
32798
32799 #. type: =head2
32800 #: ../src/guestfs.pod:161
32801 msgid "MOUNTING"
32802 msgstr "МОНТУВАННЯ"
32803
32804 #. type: textblock
32805 #: ../src/guestfs.pod:163
32806 msgid ""
32807 "Before you can read or write files, create directories and so on in a disk "
32808 "image that contains filesystems, you have to mount those filesystems using "
32809 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
32810 "a disk image contains (for example) one partition with a filesystem on that "
32811 "partition, then you can mount it directly:"
32812 msgstr ""
32813
32814 #. type: verbatim
32815 #: ../src/guestfs.pod:170
32816 #, no-wrap
32817 msgid ""
32818 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32819 "\n"
32820 msgstr ""
32821 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
32822 "\n"
32823
32824 #. type: textblock
32825 #: ../src/guestfs.pod:172
32826 msgid ""
32827 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
32828 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
32829 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
32830 "that these are libguestfs virtual devices, and are nothing to do with host "
32831 "devices."
32832 msgstr ""
32833
32834 #. type: textblock
32835 #: ../src/guestfs.pod:178
32836 msgid ""
32837 "If you are given a disk image and you don't know what it contains then you "
32838 "have to find out.  Libguestfs can do that too: use L</"
32839 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
32840 "LVs, and either try mounting each to see what is mountable, or else examine "
32841 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
32842 "filesystems, use L</guestfs_list_filesystems>."
32843 msgstr ""
32844
32845 #. type: textblock
32846 #: ../src/guestfs.pod:186
32847 msgid ""
32848 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
32849 "L</INSPECTION> below).  But you might find it easier to look at higher level "
32850 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
32851 msgstr ""
32852
32853 #. type: textblock
32854 #: ../src/guestfs.pod:191
32855 msgid ""
32856 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
32857 "several other variations of the C<guestfs_mount_*> call."
32858 msgstr ""
32859
32860 #. type: =head2
32861 #: ../src/guestfs.pod:194
32862 msgid "FILESYSTEM ACCESS AND MODIFICATION"
32863 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
32864
32865 #. type: textblock
32866 #: ../src/guestfs.pod:196
32867 msgid ""
32868 "The majority of the libguestfs API consists of fairly low-level calls for "
32869 "accessing and modifying the files, directories, symlinks etc on mounted "
32870 "filesystems.  There are over a hundred such calls which you can find listed "
32871 "in detail below in this man page, and we don't even pretend to cover them "
32872 "all in this overview."
32873 msgstr ""
32874
32875 #. type: textblock
32876 #: ../src/guestfs.pod:202
32877 msgid ""
32878 "Specify filenames as full paths, starting with C<\"/\"> and including the "
32879 "mount point."
32880 msgstr ""
32881 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
32882 "точкою монтування."
32883
32884 #. type: textblock
32885 #: ../src/guestfs.pod:205
32886 msgid ""
32887 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
32888 "the file called C<\"etc/passwd\"> then you could do:"
32889 msgstr ""
32890 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
32891 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
32892 "таким кодом:"
32893
32894 #. type: verbatim
32895 #: ../src/guestfs.pod:208
32896 #, no-wrap
32897 msgid ""
32898 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32899 "\n"
32900 msgstr ""
32901 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
32902 "\n"
32903
32904 #. type: textblock
32905 #: ../src/guestfs.pod:210
32906 msgid ""
32907 "This would return C<data> as a newly allocated buffer containing the full "
32908 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
32909 "or C<NULL> if there was an error."
32910 msgstr ""
32911
32912 #. type: textblock
32913 #: ../src/guestfs.pod:214
32914 msgid ""
32915 "As another example, to create a top-level directory on that filesystem "
32916 "called C<\"var\"> you would do:"
32917 msgstr ""
32918
32919 #. type: verbatim
32920 #: ../src/guestfs.pod:217
32921 #, no-wrap
32922 msgid ""
32923 " guestfs_mkdir (g, \"/var\");\n"
32924 "\n"
32925 msgstr ""
32926 " guestfs_mkdir (g, \"/var\");\n"
32927 "\n"
32928
32929 #. type: textblock
32930 #: ../src/guestfs.pod:219
32931 msgid "To create a symlink you could do:"
32932 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
32933
32934 #. type: verbatim
32935 #: ../src/guestfs.pod:221
32936 #, no-wrap
32937 msgid ""
32938 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32939 "               \"/etc/rc3.d/S30portmap\");\n"
32940 "\n"
32941 msgstr ""
32942 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
32943 "               \"/etc/rc3.d/S30portmap\");\n"
32944 "\n"
32945
32946 #. type: textblock
32947 #: ../src/guestfs.pod:224
32948 msgid ""
32949 "Libguestfs will reject attempts to use relative paths and there is no "
32950 "concept of a current working directory."
32951 msgstr ""
32952
32953 #. type: textblock
32954 #: ../src/guestfs.pod:227
32955 msgid ""
32956 "Libguestfs can return errors in many situations: for example if the "
32957 "filesystem isn't writable, or if a file or directory that you requested "
32958 "doesn't exist.  If you are using the C API (documented here)  you have to "
32959 "check for those error conditions after each call.  (Other language bindings "
32960 "turn these errors into exceptions)."
32961 msgstr ""
32962
32963 #. type: textblock
32964 #: ../src/guestfs.pod:233
32965 msgid ""
32966 "File writes are affected by the per-handle umask, set by calling L</"
32967 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
32968 msgstr ""
32969
32970 #. type: =head2
32971 #: ../src/guestfs.pod:236
32972 msgid "PARTITIONING"
32973 msgstr "ПОДІЛ НА РОЗДІЛИ"
32974
32975 #. type: textblock
32976 #: ../src/guestfs.pod:238
32977 msgid ""
32978 "Libguestfs contains API calls to read, create and modify partition tables on "
32979 "disk images."
32980 msgstr ""
32981
32982 #. type: textblock
32983 #: ../src/guestfs.pod:241
32984 msgid ""
32985 "In the common case where you want to create a single partition covering the "
32986 "whole disk, you should use the L</guestfs_part_disk> call:"
32987 msgstr ""
32988
32989 #. type: verbatim
32990 #: ../src/guestfs.pod:245
32991 #, no-wrap
32992 msgid ""
32993 " const char *parttype = \"mbr\";\n"
32994 " if (disk_is_larger_than_2TB)\n"
32995 "   parttype = \"gpt\";\n"
32996 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
32997 "\n"
32998 msgstr ""
32999 " const char *parttype = \"mbr\";\n"
33000 " if (disk_is_larger_than_2TB)\n"
33001 "   parttype = \"gpt\";\n"
33002 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33003 "\n"
33004
33005 #. type: textblock
33006 #: ../src/guestfs.pod:250
33007 msgid ""
33008 "Obviously this effectively wipes anything that was on that disk image before."
33009 msgstr ""
33010
33011 #. type: =head2
33012 #: ../src/guestfs.pod:253
33013 msgid "LVM2"
33014 msgstr "LVM2"
33015
33016 #. type: textblock
33017 #: ../src/guestfs.pod:255
33018 msgid ""
33019 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
33020 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
33021 "you familiarize yourself with the concepts of physical volumes, volume "
33022 "groups and logical volumes."
33023 msgstr ""
33024
33025 #. type: textblock
33026 #: ../src/guestfs.pod:260
33027 msgid ""
33028 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
33029 "tldp.org/HOWTO/LVM-HOWTO/>."
33030 msgstr ""
33031
33032 #. type: =head2
33033 #: ../src/guestfs.pod:263
33034 msgid "DOWNLOADING"
33035 msgstr "ОТРИМАННЯ ДАНИХ"
33036
33037 #. type: textblock
33038 #: ../src/guestfs.pod:265
33039 msgid ""
33040 "Use L</guestfs_cat> to download small, text only files.  This call is "
33041 "limited to files which are less than 2 MB and which cannot contain any ASCII "
33042 "NUL (C<\\0>) characters.  However the API is very simple to use."
33043 msgstr ""
33044
33045 #. type: textblock
33046 #: ../src/guestfs.pod:269
33047 msgid ""
33048 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
33049 "bit data, since it returns a (pointer, size) pair.  However it is still "
33050 "limited to \"small\" files, less than 2 MB."
33051 msgstr ""
33052
33053 #. type: textblock
33054 #: ../src/guestfs.pod:273
33055 msgid ""
33056 "L</guestfs_download> can be used to download any file, with no limits on "
33057 "content or size (even files larger than 4 GB)."
33058 msgstr ""
33059
33060 #. type: textblock
33061 #: ../src/guestfs.pod:276
33062 msgid ""
33063 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
33064 msgstr ""
33065
33066 #. type: =head2
33067 #: ../src/guestfs.pod:279
33068 msgid "UPLOADING"
33069 msgstr "ВИВАНТАЖЕННЯ"
33070
33071 #. type: textblock
33072 #: ../src/guestfs.pod:281
33073 msgid ""
33074 "It's often the case that you want to write a file or files to the disk image."
33075 msgstr ""
33076
33077 #. type: textblock
33078 #: ../src/guestfs.pod:284
33079 msgid ""
33080 "To write a small file with fixed content, use L</guestfs_write>.  To create "
33081 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
33082 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
33083 "of other functions for creating test files, for example L</guestfs_fill> and "
33084 "L</guestfs_fill_pattern>."
33085 msgstr ""
33086
33087 #. type: textblock
33088 #: ../src/guestfs.pod:290
33089 msgid ""
33090 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
33091 "file content or size (even files larger than 4 GB)."
33092 msgstr ""
33093
33094 #. type: textblock
33095 #: ../src/guestfs.pod:293
33096 msgid ""
33097 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33098 msgstr ""
33099
33100 #. type: textblock
33101 #: ../src/guestfs.pod:295
33102 msgid ""
33103 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33104 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
33105 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
33106 "in a predictable way (eg. adding it last after all other drives) then you "
33107 "can get the device name from L</guestfs_list_devices> and mount it directly "
33108 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
33109 "portable between kernel versions, and they don't support labels or UUIDs.  "
33110 "If you want to pre-build an image or you need to mount it using a label or "
33111 "UUID, use an ISO image instead."
33112 msgstr ""
33113
33114 #. type: =head2
33115 #: ../src/guestfs.pod:306
33116 msgid "COPYING"
33117 msgstr "КОПІЮВАННЯ"
33118
33119 #. type: textblock
33120 #: ../src/guestfs.pod:308
33121 msgid ""
33122 "There are various different commands for copying between files and devices "
33123 "and in and out of the guest filesystem.  These are summarised in the table "
33124 "below."
33125 msgstr ""
33126
33127 #. type: =item
33128 #: ../src/guestfs.pod:314
33129 msgid "B<file> to B<file>"
33130 msgstr "B<файл> у B<файл>"
33131
33132 #. type: textblock
33133 #: ../src/guestfs.pod:316
33134 msgid ""
33135 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33136 "directories recursively."
33137 msgstr ""
33138
33139 #. type: =item
33140 #: ../src/guestfs.pod:319
33141 msgid "B<file or device> to B<file or device>"
33142 msgstr "B<файл або пристрій> у B<файл або пристрій>"
33143
33144 #. type: textblock
33145 #: ../src/guestfs.pod:321
33146 msgid ""
33147 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33148 "devices in the guest."
33149 msgstr ""
33150
33151 #. type: textblock
33152 #: ../src/guestfs.pod:324
33153 msgid "Example: duplicate the contents of an LV:"
33154 msgstr ""
33155
33156 #. type: verbatim
33157 #: ../src/guestfs.pod:326
33158 #, no-wrap
33159 msgid ""
33160 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33161 "\n"
33162 msgstr ""
33163 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33164 "\n"
33165
33166 #. type: textblock
33167 #: ../src/guestfs.pod:328
33168 msgid ""
33169 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33170 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
33171 "guestfs_copy_size>."
33172 msgstr ""
33173
33174 #. type: =item
33175 #: ../src/guestfs.pod:332
33176 msgid "B<file on the host> to B<file or device>"
33177 msgstr ""
33178
33179 #. type: textblock
33180 #: ../src/guestfs.pod:334
33181 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
33182 msgstr ""
33183
33184 #. type: =item
33185 #: ../src/guestfs.pod:336
33186 msgid "B<file or device> to B<file on the host>"
33187 msgstr ""
33188
33189 #. type: textblock
33190 #: ../src/guestfs.pod:338
33191 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
33192 msgstr ""
33193
33194 #. type: =head2
33195 #: ../src/guestfs.pod:342
33196 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33197 msgstr ""
33198
33199 #. type: textblock
33200 #: ../src/guestfs.pod:344
33201 msgid ""
33202 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33203 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33204 "appears you can only upload and download to files.  However many Un*x-like "
33205 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33206 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33207 "and arbitrary file descriptor N."
33208 msgstr ""
33209
33210 #. type: textblock
33211 #: ../src/guestfs.pod:352
33212 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33213 msgstr ""
33214
33215 #. type: verbatim
33216 #: ../src/guestfs.pod:355
33217 #, no-wrap
33218 msgid ""
33219 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33220 "\n"
33221 msgstr ""
33222 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33223 "\n"
33224
33225 #. type: textblock
33226 #: ../src/guestfs.pod:357
33227 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33228 msgstr ""
33229
33230 #. type: verbatim
33231 #: ../src/guestfs.pod:359
33232 #, no-wrap
33233 msgid ""
33234 " char devfd[64];\n"
33235 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33236 " guestfs_tar_out (g, \"/\", devfd);\n"
33237 "\n"
33238 msgstr ""
33239 " char devfd[64];\n"
33240 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33241 " guestfs_tar_out (g, \"/\", devfd);\n"
33242 "\n"
33243
33244 #. type: =head2
33245 #: ../src/guestfs.pod:363
33246 msgid "LISTING FILES"
33247 msgstr "СПИСКИ ФАЙЛІВ"
33248
33249 #. type: textblock
33250 #: ../src/guestfs.pod:365
33251 msgid ""
33252 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33253 "L<guestfish(1)>-equivalent command C<ll>)."
33254 msgstr ""
33255
33256 #. type: textblock
33257 #: ../src/guestfs.pod:368
33258 msgid ""
33259 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33260 "programs, as a flat list of strings."
33261 msgstr ""
33262
33263 #. type: textblock
33264 #: ../src/guestfs.pod:371
33265 msgid ""
33266 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33267 "directory, plus additional information about each one.  It is more "
33268 "equivalent to using the L<readdir(3)> call on a local filesystem."
33269 msgstr ""
33270
33271 #. type: textblock
33272 #: ../src/guestfs.pod:375
33273 msgid ""
33274 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
33275 msgstr ""
33276
33277 #. type: =head2
33278 #: ../src/guestfs.pod:378
33279 msgid "RUNNING COMMANDS"
33280 msgstr "ВИКОНАННЯ КОМАНД"
33281
33282 #. type: textblock
33283 #: ../src/guestfs.pod:380
33284 msgid ""
33285 "Although libguestfs is primarily an API for manipulating files inside guest "
33286 "images, we also provide some limited facilities for running commands inside "
33287 "guests."
33288 msgstr ""
33289
33290 #. type: textblock
33291 #: ../src/guestfs.pod:384
33292 msgid "There are many limitations to this:"
33293 msgstr ""
33294
33295 #. type: textblock
33296 #: ../src/guestfs.pod:390
33297 msgid ""
33298 "The kernel version that the command runs under will be different from what "
33299 "it expects."
33300 msgstr ""
33301
33302 #. type: textblock
33303 #: ../src/guestfs.pod:395
33304 msgid ""
33305 "If the command needs to communicate with daemons, then most likely they "
33306 "won't be running."
33307 msgstr ""
33308
33309 #. type: textblock
33310 #: ../src/guestfs.pod:400
33311 msgid "The command will be running in limited memory."
33312 msgstr ""
33313
33314 #. type: textblock
33315 #: ../src/guestfs.pod:404
33316 msgid ""
33317 "The network may not be available unless you enable it (see L</"
33318 "guestfs_set_network>)."
33319 msgstr ""
33320
33321 #. type: textblock
33322 #: ../src/guestfs.pod:409
33323 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33324 msgstr ""
33325
33326 #. type: textblock
33327 #: ../src/guestfs.pod:413
33328 msgid ""
33329 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33330 msgstr ""
33331
33332 #. type: textblock
33333 #: ../src/guestfs.pod:418
33334 msgid ""
33335 "For SELinux guests, you may need to enable SELinux and load policy first.  "
33336 "See L</SELINUX> in this manpage."
33337 msgstr ""
33338
33339 #. type: textblock
33340 #: ../src/guestfs.pod:423
33341 msgid ""
33342 "I<Security:> It is not safe to run commands from untrusted, possibly "
33343 "malicious guests.  These commands may attempt to exploit your program by "
33344 "sending unexpected output.  They could also try to exploit the Linux kernel "
33345 "or qemu provided by the libguestfs appliance.  They could use the network "
33346 "provided by the libguestfs appliance to bypass ordinary network partitions "
33347 "and firewalls.  They could use the elevated privileges or different SELinux "
33348 "context of your program to their advantage."
33349 msgstr ""
33350
33351 #. type: textblock
33352 #: ../src/guestfs.pod:432
33353 msgid ""
33354 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33355 "(a script which runs when the guest next boots normally), and to have this "
33356 "script run the commands you want in the normal context of the running guest, "
33357 "network security and so on.  For information about other security issues, "
33358 "see L</SECURITY>."
33359 msgstr ""
33360
33361 #. type: textblock
33362 #: ../src/guestfs.pod:440
33363 msgid ""
33364 "The two main API calls to run commands are L</guestfs_command> and L</"
33365 "guestfs_sh> (there are also variations)."
33366 msgstr ""
33367
33368 #. type: textblock
33369 #: ../src/guestfs.pod:443
33370 msgid ""
33371 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33372 "shell globs, redirections, etc will work."
33373 msgstr ""
33374
33375 #. type: =head2
33376 #: ../src/guestfs.pod:446
33377 msgid "CONFIGURATION FILES"
33378 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
33379
33380 #. type: textblock
33381 #: ../src/guestfs.pod:448
33382 msgid ""
33383 "To read and write configuration files in Linux guest filesystems, we "
33384 "strongly recommend using Augeas.  For example, Augeas understands how to "
33385 "read and write, say, a Linux shadow password file or X.org configuration "
33386 "file, and so avoids you having to write that code."
33387 msgstr ""
33388
33389 #. type: textblock
33390 #: ../src/guestfs.pod:453
33391 msgid ""
33392 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
33393 "document Augeas itself here because there is excellent documentation on the "
33394 "L<http://augeas.net/> website."
33395 msgstr ""
33396
33397 #. type: textblock
33398 #: ../src/guestfs.pod:457
33399 msgid ""
33400 "If you don't want to use Augeas (you fool!) then try calling L</"
33401 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33402 "over."
33403 msgstr ""
33404
33405 #. type: =head2
33406 #: ../src/guestfs.pod:461
33407 msgid "SELINUX"
33408 msgstr "SELINUX"
33409
33410 #. type: textblock
33411 #: ../src/guestfs.pod:463
33412 msgid ""
33413 "We support SELinux guests.  To ensure that labeling happens correctly in "
33414 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33415 msgstr ""
33416
33417 #. type: textblock
33418 #: ../src/guestfs.pod:471
33419 msgid "Before launching, do:"
33420 msgstr ""
33421
33422 #. type: verbatim
33423 #: ../src/guestfs.pod:473
33424 #, no-wrap
33425 msgid ""
33426 " guestfs_set_selinux (g, 1);\n"
33427 "\n"
33428 msgstr ""
33429 " guestfs_set_selinux (g, 1);\n"
33430 "\n"
33431
33432 #. type: textblock
33433 #: ../src/guestfs.pod:477
33434 msgid ""
33435 "After mounting the guest's filesystem(s), load the policy.  This is best "
33436 "done by running the L<load_policy(8)> command in the guest itself:"
33437 msgstr ""
33438
33439 #. type: verbatim
33440 #: ../src/guestfs.pod:481
33441 #, no-wrap
33442 msgid ""
33443 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33444 "\n"
33445 msgstr ""
33446 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33447 "\n"
33448
33449 #. type: textblock
33450 #: ../src/guestfs.pod:483
33451 msgid ""
33452 "(Older versions of C<load_policy> require you to specify the name of the "
33453 "policy file)."
33454 msgstr ""
33455
33456 #. type: textblock
33457 #: ../src/guestfs.pod:488
33458 msgid ""
33459 "Optionally, set the security context for the API.  The correct security "
33460 "context to use can only be known by inspecting the guest.  As an example:"
33461 msgstr ""
33462
33463 #. type: verbatim
33464 #: ../src/guestfs.pod:492
33465 #, no-wrap
33466 msgid ""
33467 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33468 "\n"
33469 msgstr ""
33470 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33471 "\n"
33472
33473 #. type: textblock
33474 #: ../src/guestfs.pod:496
33475 msgid "This will work for running commands and editing existing files."
33476 msgstr ""
33477
33478 #. type: textblock
33479 #: ../src/guestfs.pod:498
33480 msgid ""
33481 "When new files are created, you may need to label them explicitly, for "
33482 "example by running the external command C<restorecon pathname>."
33483 msgstr ""
33484
33485 #. type: =head2
33486 #: ../src/guestfs.pod:502
33487 msgid "UMASK"
33488 msgstr "UMASK"
33489
33490 #. type: textblock
33491 #: ../src/guestfs.pod:504
33492 msgid ""
33493 "Certain calls are affected by the current file mode creation mask (the "
33494 "\"umask\").  In particular ones which create files or directories, such as "
33495 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
33496 "either the default mode that the file is created with or modifies the mode "
33497 "that you supply."
33498 msgstr ""
33499
33500 #. type: textblock
33501 #: ../src/guestfs.pod:510
33502 msgid ""
33503 "The default umask is C<022>, so files are created with modes such as C<0644> "
33504 "and directories with C<0755>."
33505 msgstr ""
33506
33507 #. type: textblock
33508 #: ../src/guestfs.pod:513
33509 msgid ""
33510 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
33511 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
33512 "guestfs_chmod> after creating each file or directory."
33513 msgstr ""
33514
33515 #. type: textblock
33516 #: ../src/guestfs.pod:517
33517 msgid "For more information about umask, see L<umask(2)>."
33518 msgstr ""
33519
33520 #. type: textblock
33521 #: ../src/guestfs.pod:521
33522 msgid ""
33523 "Libguestfs allows you to access Linux guests which have been encrypted using "
33524 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33525 "standard.  This includes nearly all whole disk encryption systems used by "
33526 "modern Linux guests."
33527 msgstr ""
33528
33529 #. type: textblock
33530 #: ../src/guestfs.pod:527
33531 msgid ""
33532 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33533 "returns the string C<crypto_LUKS>)."
33534 msgstr ""
33535
33536 #. type: textblock
33537 #: ../src/guestfs.pod:530
33538 msgid ""
33539 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
33540 "will require the passphrase!"
33541 msgstr ""
33542
33543 #. type: textblock
33544 #: ../src/guestfs.pod:533
33545 msgid ""
33546 "Opening a LUKS device creates a new device mapper device called C</dev/"
33547 "mapper/mapname> (where C<mapname> is the string you supply to L</"
33548 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
33549 "from and encrypted to the underlying block device respectively."
33550 msgstr ""
33551
33552 #. type: textblock
33553 #: ../src/guestfs.pod:539
33554 msgid ""
33555 "LVM volume groups on the device can be made visible by calling L</"
33556 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
33557 "(s) can now be mounted in the usual way."
33558 msgstr ""
33559
33560 #. type: textblock
33561 #: ../src/guestfs.pod:543
33562 msgid ""
33563 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
33564 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33565 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
33566 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33567 "underlying encrypted block device)."
33568 msgstr ""
33569
33570 #. type: =head2
33571 #: ../src/guestfs.pod:550
33572 msgid "INSPECTION"
33573 msgstr "ПЕРЕВІРКА"
33574
33575 #. type: textblock
33576 #: ../src/guestfs.pod:552
33577 msgid ""
33578 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33579 "contains operating systems, an install CD or a live CD.  (These APIs used to "
33580 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33581 "version 1.5.3 the most frequently used part of this library has been "
33582 "rewritten in C and moved into the core code)."
33583 msgstr ""
33584
33585 #. type: textblock
33586 #: ../src/guestfs.pod:559
33587 msgid ""
33588 "Add all disks belonging to the unknown virtual machine and call L</"
33589 "guestfs_launch> in the usual way."
33590 msgstr ""
33591
33592 #. type: textblock
33593 #: ../src/guestfs.pod:562
33594 msgid ""
33595 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
33596 "and certain heuristics, and returns a list of operating systems that were "
33597 "found.  An empty list means none were found.  A single element is the root "
33598 "filesystem of the operating system.  For dual- or multi-boot guests, "
33599 "multiple roots can be returned, each one corresponding to a separate "
33600 "operating system.  (Multi-boot virtual machines are extremely rare in the "
33601 "world of virtualization, but since this scenario can happen, we have built "
33602 "libguestfs to deal with it.)"
33603 msgstr ""
33604
33605 #. type: textblock
33606 #: ../src/guestfs.pod:571
33607 msgid ""
33608 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33609 "to get additional details about that operating system.  For example, call L</"
33610 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33611 "Windows and Linux-based operating systems respectively."
33612 msgstr ""
33613
33614 #. type: textblock
33615 #: ../src/guestfs.pod:577
33616 msgid ""
33617 "Un*x-like and Linux-based operating systems usually consist of several "
33618 "filesystems which are mounted at boot time (for example, a separate boot "
33619 "partition mounted on C</boot>).  The inspection rules are able to detect how "
33620 "filesystems correspond to mount points.  Call "
33621 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
33622 "hash table like this example:"
33623 msgstr ""
33624
33625 #. type: verbatim
33626 #: ../src/guestfs.pod:584
33627 #, no-wrap
33628 msgid ""
33629 " /boot => /dev/sda1\n"
33630 " /     => /dev/vg_guest/lv_root\n"
33631 " /usr  => /dev/vg_guest/lv_usr\n"
33632 "\n"
33633 msgstr ""
33634 " /boot => /dev/sda1\n"
33635 " /     => /dev/vg_guest/lv_root\n"
33636 " /usr  => /dev/vg_guest/lv_usr\n"
33637 "\n"
33638
33639 #. type: textblock
33640 #: ../src/guestfs.pod:588
33641 msgid ""
33642 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33643 "filesystems as suggested."
33644 msgstr ""
33645
33646 #. type: textblock
33647 #: ../src/guestfs.pod:591
33648 msgid ""
33649 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33650 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
33651 msgstr ""
33652
33653 #. type: textblock
33654 #: ../src/guestfs.pod:595
33655 msgid ""
33656 "Inspection currently only works for some common operating systems.  "
33657 "Contributors are welcome to send patches for other operating systems that we "
33658 "currently cannot detect."
33659 msgstr ""
33660
33661 #. type: textblock
33662 #: ../src/guestfs.pod:599
33663 msgid ""
33664 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
33665 "for more details.  The L</guestfs_inspect_os> function just ignores any "
33666 "encrypted devices."
33667 msgstr ""
33668
33669 #. type: textblock
33670 #: ../src/guestfs.pod:603
33671 msgid ""
33672 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33673 "inspection and caches the results in the guest handle.  Subsequent calls to "
33674 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33675 "read the disks.  If you change the content of the guest disks, you can redo "
33676 "inspection by calling L</guestfs_inspect_os> again.  (L</"
33677 "guestfs_inspect_list_applications> works a little differently from the other "
33678 "calls and does read the disks.  See documentation for that function for "
33679 "details)."
33680 msgstr ""
33681
33682 #. type: =head3
33683 #: ../src/guestfs.pod:612
33684 msgid "INSPECTING INSTALL DISKS"
33685 msgstr ""
33686
33687 #. type: textblock
33688 #: ../src/guestfs.pod:614
33689 msgid ""
33690 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
33691 "CDs and more."
33692 msgstr ""
33693
33694 #. type: textblock
33695 #: ../src/guestfs.pod:617
33696 msgid ""
33697 "Call L</guestfs_inspect_get_format> to return the format of the operating "
33698 "system, which currently can be C<installed> (a regular operating system) or "
33699 "C<installer> (some sort of install disk)."
33700 msgstr ""
33701
33702 #. type: textblock
33703 #: ../src/guestfs.pod:621
33704 msgid ""
33705 "Further information is available about the operating system that can be "
33706 "installed using the regular inspection APIs like L</"
33707 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
33708 msgstr ""
33709
33710 #. type: textblock
33711 #: ../src/guestfs.pod:626
33712 msgid ""
33713 "Some additional information specific to installer disks is also available "
33714 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
33715 "guestfs_inspect_is_multipart> calls."
33716 msgstr ""
33717
33718 #. type: =head2
33719 #: ../src/guestfs.pod:631
33720 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
33721 msgstr ""
33722
33723 #. type: textblock
33724 #: ../src/guestfs.pod:633
33725 msgid ""
33726 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
33727 "ntfs-3g.org/> driver."
33728 msgstr ""
33729
33730 #. type: =head3
33731 #: ../src/guestfs.pod:636
33732 msgid "DRIVE LETTERS AND PATHS"
33733 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
33734
33735 #. type: textblock
33736 #: ../src/guestfs.pod:638
33737 msgid ""
33738 "DOS and Windows still use drive letters, and the filesystems are always "
33739 "treated as case insensitive by Windows itself, and therefore you might find "
33740 "a Windows configuration file referring to a path like C<c:\\windows"
33741 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
33742 "might be referred to as C</WINDOWS/System32>."
33743 msgstr ""
33744
33745 #. type: textblock
33746 #: ../src/guestfs.pod:644
33747 msgid ""
33748 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
33749 "L</guestfs_inspect_get_drive_mappings>)"
33750 msgstr ""
33751
33752 #. type: textblock
33753 #: ../src/guestfs.pod:647
33754 msgid ""
33755 "Dealing with separator characters (backslash vs forward slash) is outside "
33756 "the scope of libguestfs, but usually a simple character replacement will "
33757 "work."
33758 msgstr ""
33759
33760 #. type: textblock
33761 #: ../src/guestfs.pod:651
33762 msgid ""
33763 "To resolve the case insensitivity of paths, call L</"
33764 "guestfs_case_sensitive_path>."
33765 msgstr ""
33766
33767 #. type: =head3
33768 #: ../src/guestfs.pod:654
33769 msgid "ACCESSING THE WINDOWS REGISTRY"
33770 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
33771
33772 #. type: textblock
33773 #: ../src/guestfs.pod:656
33774 msgid ""
33775 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
33776 "files, through the library C<hivex> which is part of the libguestfs project "
33777 "although ships as a separate tarball.  You have to locate and download the "
33778 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
33779 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
33780 "reg(1)> for more help on this issue."
33781 msgstr ""
33782
33783 #. type: =head3
33784 #: ../src/guestfs.pod:664
33785 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
33786 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
33787
33788 #. type: textblock
33789 #: ../src/guestfs.pod:666
33790 msgid ""
33791 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
33792 "provide something which looks like a Linux symlink.  The way it tries to do "
33793 "the rewriting is described here:"
33794 msgstr ""
33795
33796 #. type: textblock
33797 #: ../src/guestfs.pod:670
33798 msgid ""
33799 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33800 "symbolic-links/>"
33801 msgstr ""
33802 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
33803 "symbolic-links/>"
33804
33805 #. type: textblock
33806 #: ../src/guestfs.pod:672
33807 msgid ""
33808 "The essential problem is that ntfs-3g simply does not have enough "
33809 "information to do a correct job.  NTFS links can contain drive letters and "
33810 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
33811 "It is almost certainly the case that libguestfs callers should ignore what "
33812 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
33813 msgstr ""
33814
33815 #. type: textblock
33816 #: ../src/guestfs.pod:679
33817 msgid ""
33818 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
33819 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
33820 "attribute, and read the raw reparse data from that (you can find the format "
33821 "documented in various places around the web)."
33822 msgstr ""
33823
33824 #. type: =head3
33825 #: ../src/guestfs.pod:684
33826 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
33827 msgstr ""
33828
33829 #. type: textblock
33830 #: ../src/guestfs.pod:686
33831 msgid ""
33832 "There are other useful extended attributes that can be read from ntfs-3g "
33833 "filesystems (using L</guestfs_getxattr>).  See:"
33834 msgstr ""
33835
33836 #. type: textblock
33837 #: ../src/guestfs.pod:689
33838 msgid ""
33839 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33840 msgstr ""
33841 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
33842
33843 #. type: =head2
33844 #: ../src/guestfs.pod:691
33845 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
33846 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
33847
33848 #. type: textblock
33849 #: ../src/guestfs.pod:693
33850 msgid ""
33851 "Although we don't want to discourage you from using the C API, we will "
33852 "mention here that the same API is also available in other languages."
33853 msgstr ""
33854
33855 #. type: textblock
33856 #: ../src/guestfs.pod:696
33857 msgid ""
33858 "The API is broadly identical in all supported languages.  This means that "
33859 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
33860 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
33861 "OCaml.  In other words, a straightforward, predictable isomorphism between "
33862 "each language."
33863 msgstr ""
33864
33865 #. type: textblock
33866 #: ../src/guestfs.pod:702
33867 msgid ""
33868 "Error messages are automatically transformed into exceptions if the language "
33869 "supports it."
33870 msgstr ""
33871
33872 #. type: textblock
33873 #: ../src/guestfs.pod:705
33874 msgid ""
33875 "We don't try to \"object orientify\" parts of the API in OO languages, "
33876 "although contributors are welcome to write higher level APIs above what we "
33877 "provide in their favourite languages if they wish."
33878 msgstr ""
33879
33880 #. type: =item
33881 #: ../src/guestfs.pod:711
33882 msgid "B<C++>"
33883 msgstr "B<C++>"
33884
33885 #. type: textblock
33886 #: ../src/guestfs.pod:713
33887 msgid ""
33888 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
33889 "identical to the C API.  C++ classes and exceptions are not used."
33890 msgstr ""
33891
33892 #. type: =item
33893 #: ../src/guestfs.pod:717
33894 msgid "B<C#>"
33895 msgstr "B<C#>"
33896
33897 #. type: textblock
33898 #: ../src/guestfs.pod:719
33899 msgid ""
33900 "The C# bindings are highly experimental.  Please read the warnings at the "
33901 "top of C<csharp/Libguestfs.cs>."
33902 msgstr ""
33903
33904 #. type: =item
33905 #: ../src/guestfs.pod:722
33906 msgid "B<Haskell>"
33907 msgstr "B<Haskell>"
33908
33909 #. type: textblock
33910 #: ../src/guestfs.pod:724
33911 msgid ""
33912 "This is the only language binding that is working but incomplete.  Only "
33913 "calls which return simple integers have been bound in Haskell, and we are "
33914 "looking for help to complete this binding."
33915 msgstr ""
33916
33917 #. type: =item
33918 #: ../src/guestfs.pod:728
33919 msgid "B<Java>"
33920 msgstr "B<Java>"
33921
33922 #. type: textblock
33923 #: ../src/guestfs.pod:730
33924 msgid ""
33925 "Full documentation is contained in the Javadoc which is distributed with "
33926 "libguestfs.  For examples, see L<guestfs-java(3)>."
33927 msgstr ""
33928
33929 #. type: =item
33930 #: ../src/guestfs.pod:733
33931 msgid "B<OCaml>"
33932 msgstr "B<OCaml>"
33933
33934 #. type: textblock
33935 #: ../src/guestfs.pod:735
33936 msgid "See L<guestfs-ocaml(3)>."
33937 msgstr "Див. L<guestfs-ocaml(3)>."
33938
33939 #. type: =item
33940 #: ../src/guestfs.pod:737
33941 msgid "B<Perl>"
33942 msgstr "B<Perl>"
33943
33944 #. type: textblock
33945 #: ../src/guestfs.pod:739
33946 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
33947 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
33948
33949 #. type: =item
33950 #: ../src/guestfs.pod:741
33951 msgid "B<PHP>"
33952 msgstr "B<PHP>"
33953
33954 #. type: textblock
33955 #: ../src/guestfs.pod:743
33956 msgid ""
33957 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
33958 "the php-libguestfs package for your distribution."
33959 msgstr ""
33960
33961 #. type: textblock
33962 #: ../src/guestfs.pod:746
33963 msgid "The PHP binding only works correctly on 64 bit machines."
33964 msgstr ""
33965
33966 #. type: =item
33967 #: ../src/guestfs.pod:748
33968 msgid "B<Python>"
33969 msgstr "B<Python>"
33970
33971 #. type: textblock
33972 #: ../src/guestfs.pod:750
33973 msgid "See L<guestfs-python(3)>."
33974 msgstr "Див. L<guestfs-python(3)>."
33975
33976 #. type: =item
33977 #: ../src/guestfs.pod:752
33978 msgid "B<Ruby>"
33979 msgstr "B<Ruby>"
33980
33981 #. type: textblock
33982 #: ../src/guestfs.pod:754
33983 msgid "See L<guestfs-ruby(3)>."
33984 msgstr "Див. L<guestfs-ruby(3)>."
33985
33986 #. type: =item
33987 #: ../src/guestfs.pod:756
33988 msgid "B<shell scripts>"
33989 msgstr "B<скрипти оболонки>"
33990
33991 #. type: textblock
33992 #: ../src/guestfs.pod:758
33993 msgid "See L<guestfish(1)>."
33994 msgstr "Див. L<guestfish(1)>."
33995
33996 #. type: =head2
33997 #: ../src/guestfs.pod:762
33998 msgid "LIBGUESTFS GOTCHAS"
33999 msgstr ""
34000
34001 #. type: textblock
34002 #: ../src/guestfs.pod:764
34003 msgid ""
34004 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
34005 "system [...] that works in the way it is documented but is counterintuitive "
34006 "and almost invites mistakes.\""
34007 msgstr ""
34008
34009 #. type: textblock
34010 #: ../src/guestfs.pod:768
34011 msgid ""
34012 "Since we developed libguestfs and the associated tools, there are several "
34013 "things we would have designed differently, but are now stuck with for "
34014 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
34015 "release, you can expect these to change.  Beware of them."
34016 msgstr ""
34017
34018 #. type: =item
34019 #: ../src/guestfs.pod:776
34020 msgid "Autosync / forgetting to sync."
34021 msgstr ""
34022
34023 #. type: textblock
34024 #: ../src/guestfs.pod:778
34025 msgid ""
34026 "I<Update:> Autosync is enabled by default for all API users starting from "
34027 "libguestfs 1.5.24.  This section only applies to older versions."
34028 msgstr ""
34029
34030 #. type: textblock
34031 #: ../src/guestfs.pod:781
34032 msgid ""
34033 "When modifying a filesystem from C or another language, you B<must> unmount "
34034 "all filesystems and call L</guestfs_sync> explicitly before you close the "
34035 "libguestfs handle.  You can also call:"
34036 msgstr ""
34037
34038 #. type: verbatim
34039 #: ../src/guestfs.pod:785
34040 #, no-wrap
34041 msgid ""
34042 " guestfs_set_autosync (g, 1);\n"
34043 "\n"
34044 msgstr ""
34045 " guestfs_set_autosync (g, 1);\n"
34046 "\n"
34047
34048 #. type: textblock
34049 #: ../src/guestfs.pod:787
34050 msgid ""
34051 "to have the unmount/sync done automatically for you when the handle 'g' is "
34052 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
34053 msgstr ""
34054
34055 #. type: textblock
34056 #: ../src/guestfs.pod:791
34057 msgid ""
34058 "If you forget to do this, then it is entirely possible that your changes "
34059 "won't be written out, or will be partially written, or (very rarely) that "
34060 "you'll get disk corruption."
34061 msgstr ""
34062
34063 #. type: textblock
34064 #: ../src/guestfs.pod:795
34065 msgid ""
34066 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
34067 "guestfish scripts that forget to sync will work just fine, which can make "
34068 "this very puzzling if you are trying to debug a problem."
34069 msgstr ""
34070
34071 #. type: =item
34072 #: ../src/guestfs.pod:799
34073 msgid "Mount option C<-o sync> should not be the default."
34074 msgstr ""
34075
34076 #. type: textblock
34077 #: ../src/guestfs.pod:801
34078 msgid ""
34079 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
34080 "However C<-o sync> does not add any reliability benefit, but does have a "
34081 "very large performance impact."
34082 msgstr ""
34083
34084 #. type: textblock
34085 #: ../src/guestfs.pod:805
34086 msgid ""
34087 "The work around is to use L</guestfs_mount_options> and set the mount "
34088 "options that you actually want to use."
34089 msgstr ""
34090
34091 #. type: =item
34092 #: ../src/guestfs.pod:808
34093 msgid "Read-only should be the default."
34094 msgstr ""
34095
34096 #. type: textblock
34097 #: ../src/guestfs.pod:810
34098 msgid ""
34099 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34100 "specify I<--rw> if you want to make changes to the image."
34101 msgstr ""
34102
34103 #. type: textblock
34104 #: ../src/guestfs.pod:813
34105 msgid "This would reduce the potential to corrupt live VM images."
34106 msgstr ""
34107
34108 #. type: textblock
34109 #: ../src/guestfs.pod:815
34110 msgid ""
34111 "Note that many filesystems change the disk when you just mount and unmount, "
34112 "even if you didn't perform any writes.  You need to use L</"
34113 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
34114 msgstr ""
34115
34116 #. type: =item
34117 #: ../src/guestfs.pod:819
34118 msgid "guestfish command line is hard to use."
34119 msgstr ""
34120
34121 #. type: textblock
34122 #: ../src/guestfs.pod:821
34123 msgid ""
34124 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34125 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
34126 "exist, so it fails.  In earlier versions of guestfish the error message was "
34127 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
34128 "we should have used C<guestfish -c command> to run commands."
34129 msgstr ""
34130
34131 #. type: =item
34132 #: ../src/guestfs.pod:828
34133 msgid "guestfish megabyte modifiers don't work right on all commands"
34134 msgstr ""
34135
34136 #. type: textblock
34137 #: ../src/guestfs.pod:830
34138 msgid ""
34139 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34140 "other modifiers).  What guestfish actually does is to multiply the number "
34141 "part by the modifier part and pass the result to the C API.  However this "
34142 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34143 "expecting some other unit (eg. megabytes)."
34144 msgstr ""
34145
34146 #. type: textblock
34147 #: ../src/guestfs.pod:837
34148 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
34149 msgstr ""
34150
34151 #. type: verbatim
34152 #: ../src/guestfs.pod:839
34153 #, no-wrap
34154 msgid ""
34155 " lvcreate LV VG 100M\n"
34156 "\n"
34157 msgstr ""
34158 " lvcreate LV VG 100M\n"
34159 "\n"
34160
34161 #. type: textblock
34162 #: ../src/guestfs.pod:841
34163 msgid ""
34164 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
34165 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34166 "megabytes * megabytes) logical volume.  The error message you get from this "
34167 "is also a little obscure."
34168 msgstr ""
34169
34170 #. type: textblock
34171 #: ../src/guestfs.pod:846
34172 msgid ""
34173 "This could be fixed in the generator by specially marking parameters and "
34174 "return values which take bytes or other units."
34175 msgstr ""
34176
34177 #. type: =item
34178 #: ../src/guestfs.pod:849
34179 msgid "Ambiguity between devices and paths"
34180 msgstr ""
34181
34182 #. type: textblock
34183 #: ../src/guestfs.pod:851
34184 msgid ""
34185 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34186 "sdb2>) and a similar pathname.  A file might just happen to be called "
34187 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34188 msgstr ""
34189
34190 #. type: textblock
34191 #: ../src/guestfs.pod:856
34192 msgid ""
34193 "In the current API we usually resolve this ambiguity by having two separate "
34194 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
34195 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34196 "detecting if the path supplied begins with C</dev/>."
34197 msgstr ""
34198
34199 #. type: textblock
34200 #: ../src/guestfs.pod:862
34201 msgid ""
34202 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34203 "make paths/devices into structured names.  One way to do this would be to "
34204 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34205 "aspect of grub.  Another way would be to use a structured type, equivalent "
34206 "to this OCaml type:"
34207 msgstr ""
34208
34209 #. type: verbatim
34210 #: ../src/guestfs.pod:868
34211 #, no-wrap
34212 msgid ""
34213 " type path = Path of string | Device of int | Partition of int * int\n"
34214 "\n"
34215 msgstr ""
34216
34217 #. type: textblock
34218 #: ../src/guestfs.pod:870
34219 msgid "which would allow you to pass arguments like:"
34220 msgstr ""
34221
34222 #. type: verbatim
34223 #: ../src/guestfs.pod:872
34224 #, no-wrap
34225 msgid ""
34226 " Path \"/foo/bar\"\n"
34227 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
34228 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34229 " Path \"/dev/sdb2\"    (* not a device *)\n"
34230 "\n"
34231 msgstr ""
34232
34233 #. type: textblock
34234 #: ../src/guestfs.pod:877
34235 msgid ""
34236 "As you can see there are still problems to resolve even with this "
34237 "representation.  Also consider how it might work in guestfish."
34238 msgstr ""
34239
34240 #. type: =head2
34241 #: ../src/guestfs.pod:882
34242 msgid "KEYS AND PASSPHRASES"
34243 msgstr "КЛЮЧІ І ПАРОЛІ"
34244
34245 #. type: textblock
34246 #: ../src/guestfs.pod:884
34247 msgid ""
34248 "Certain libguestfs calls take a parameter that contains sensitive key "
34249 "material, passed in as a C string."
34250 msgstr ""
34251
34252 #. type: textblock
34253 #: ../src/guestfs.pod:887
34254 msgid ""
34255 "In the future we would hope to change the libguestfs implementation so that "
34256 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34257 "swap.  However this is I<not> done at the moment, because of the complexity "
34258 "of such an implementation."
34259 msgstr ""
34260
34261 #. type: textblock
34262 #: ../src/guestfs.pod:892
34263 msgid ""
34264 "Therefore you should be aware that any key parameter you pass to libguestfs "
34265 "might end up being written out to the swap partition.  If this is a concern, "
34266 "scrub the swap partition or don't use libguestfs on encrypted devices."
34267 msgstr ""
34268
34269 #. type: =head2
34270 #: ../src/guestfs.pod:897
34271 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34272 msgstr ""
34273
34274 #. type: textblock
34275 #: ../src/guestfs.pod:899
34276 msgid ""
34277 "All high-level libguestfs actions are synchronous.  If you want to use "
34278 "libguestfs asynchronously then you must create a thread."
34279 msgstr ""
34280
34281 #. type: textblock
34282 #: ../src/guestfs.pod:902
34283 msgid ""
34284 "Only use the handle from a single thread.  Either use the handle exclusively "
34285 "from one thread, or provide your own mutex so that two threads cannot issue "
34286 "calls on the same handle at the same time."
34287 msgstr ""
34288
34289 #. type: textblock
34290 #: ../src/guestfs.pod:906
34291 msgid ""
34292 "See the graphical program guestfs-browser for one possible architecture for "
34293 "multithreaded programs using libvirt and libguestfs."
34294 msgstr ""
34295
34296 #. type: =head2
34297 #: ../src/guestfs.pod:909
34298 msgid "PATH"
34299 msgstr "ШЛЯХ"
34300
34301 #. type: textblock
34302 #: ../src/guestfs.pod:911
34303 msgid ""
34304 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34305 "internal path."
34306 msgstr ""
34307
34308 #. type: textblock
34309 #: ../src/guestfs.pod:914
34310 msgid ""
34311 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34312 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34313 msgstr ""
34314
34315 #. type: textblock
34316 #: ../src/guestfs.pod:917
34317 msgid ""
34318 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34319 "to change the directories that libguestfs will search in.  The value is a "
34320 "colon-separated list of paths.  The current directory is I<not> searched "
34321 "unless the path contains an empty element or C<.>.  For example "
34322 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34323 "then C</usr/lib/guestfs>."
34324 msgstr ""
34325
34326 #. type: =head2
34327 #: ../src/guestfs.pod:924
34328 msgid "QEMU WRAPPERS"
34329 msgstr ""
34330
34331 #. type: textblock
34332 #: ../src/guestfs.pod:926
34333 msgid ""
34334 "If you want to compile your own qemu, run qemu from a non-standard location, "
34335 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34336 "around qemu."
34337 msgstr ""
34338
34339 #. type: textblock
34340 #: ../src/guestfs.pod:930
34341 msgid ""
34342 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34343 "last command in the shell script (so that qemu replaces the shell and "
34344 "becomes the direct child of the libguestfs-using program).  If you don't do "
34345 "this, then the qemu process won't be cleaned up correctly."
34346 msgstr ""
34347
34348 #. type: textblock
34349 #: ../src/guestfs.pod:935
34350 msgid ""
34351 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34352 "source:"
34353 msgstr ""
34354
34355 #. type: verbatim
34356 #: ../src/guestfs.pod:938
34357 #, no-wrap
34358 msgid ""
34359 " #!/bin/sh -\n"
34360 " qemudir=/home/rjones/d/qemu\n"
34361 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34362 "\n"
34363 msgstr ""
34364 " #!/bin/sh -\n"
34365 " qemudir=/home/rjones/d/qemu\n"
34366 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34367 "\n"
34368
34369 #. type: textblock
34370 #: ../src/guestfs.pod:942
34371 msgid ""
34372 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34373 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
34374 "example:"
34375 msgstr ""
34376
34377 #. type: verbatim
34378 #: ../src/guestfs.pod:946
34379 #, no-wrap
34380 msgid ""
34381 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34382 "\n"
34383 msgstr ""
34384 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34385 "\n"
34386
34387 #. type: textblock
34388 #: ../src/guestfs.pod:948
34389 msgid ""
34390 "Note that libguestfs also calls qemu with the -help and -version options in "
34391 "order to determine features."
34392 msgstr ""
34393
34394 #. type: =head2
34395 #: ../src/guestfs.pod:951
34396 msgid "ATTACHING TO RUNNING DAEMONS"
34397 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
34398
34399 #. type: textblock
34400 #: ../src/guestfs.pod:953
34401 msgid ""
34402 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34403 "babies.  Use with caution."
34404 msgstr ""
34405
34406 #. type: textblock
34407 #: ../src/guestfs.pod:956
34408 msgid ""
34409 "I<Note (2):> This section explains how to attach to a running daemon from a "
34410 "low level perspective.  For most users, simply using virt tools such as "
34411 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34412 msgstr ""
34413
34414 #. type: =head3
34415 #: ../src/guestfs.pod:960
34416 msgid "Using guestfs_set_attach_method"
34417 msgstr "За допомогою guestfs_set_attach_method"
34418
34419 #. type: textblock
34420 #: ../src/guestfs.pod:962
34421 msgid ""
34422 "By calling L</guestfs_set_attach_method> you can change how the library "
34423 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
34424 "ARCHITECTURE> for some background)."
34425 msgstr ""
34426
34427 #. type: textblock
34428 #: ../src/guestfs.pod:966
34429 msgid ""
34430 "The normal attach method is C<appliance>, where a small appliance is created "
34431 "containing the daemon, and then the library connects to this."
34432 msgstr ""
34433
34434 #. type: textblock
34435 #: ../src/guestfs.pod:969
34436 msgid ""
34437 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34438 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34439 "daemon over the Unix domain socket."
34440 msgstr ""
34441
34442 #. type: textblock
34443 #: ../src/guestfs.pod:973
34444 msgid ""
34445 "The normal use for this is to connect to a running virtual machine that "
34446 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34447 "files inside the live virtual machine."
34448 msgstr ""
34449
34450 #. type: =head3
34451 #: ../src/guestfs.pod:977
34452 msgid "Using guestfs_add_domain with live flag"
34453 msgstr "За допомогою guestfs_add_domain з прапорцем live"
34454
34455 #. type: textblock
34456 #: ../src/guestfs.pod:979
34457 msgid ""
34458 "L</guestfs_add_domain> provides some help for getting the correct attach "
34459 "method.  If you pass the C<live> option to this function, then (if the "
34460 "virtual machine is running) it will examine the libvirt XML looking for a "
34461 "virtio-serial channel to connect to:"
34462 msgstr ""
34463
34464 #. type: verbatim
34465 #: ../src/guestfs.pod:985
34466 #, no-wrap
34467 msgid ""
34468 " <domain>\n"
34469 "   ...\n"
34470 "   <devices>\n"
34471 "     ...\n"
34472 "     <channel type='unix'>\n"
34473 "       <source mode='bind' path='/path/to/socket'/>\n"
34474 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34475 "     </channel>\n"
34476 "     ...\n"
34477 "   </devices>\n"
34478 " </domain>\n"
34479 "\n"
34480 msgstr ""
34481 " <domain>\n"
34482 "   ...\n"
34483 "   <devices>\n"
34484 "     ...\n"
34485 "     <channel type='unix'>\n"
34486 "       <source mode='bind' path='/path/to/socket'/>\n"
34487 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34488 "     </channel>\n"
34489 "     ...\n"
34490 "   </devices>\n"
34491 " </domain>\n"
34492 "\n"
34493
34494 #. type: textblock
34495 #: ../src/guestfs.pod:997
34496 msgid ""
34497 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34498 "method to C<unix:/path/to/socket>."
34499 msgstr ""
34500
34501 #. type: textblock
34502 #: ../src/guestfs.pod:1000
34503 msgid ""
34504 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34505 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34506 "to attach to and modify live virtual machines."
34507 msgstr ""
34508
34509 #. type: textblock
34510 #: ../src/guestfs.pod:1004
34511 msgid ""
34512 "The virtual machine needs to have been set up beforehand so that it has the "
34513 "virtio-serial channel and so that guestfsd is running inside it."
34514 msgstr ""
34515
34516 #. type: =head2
34517 #: ../src/guestfs.pod:1008
34518 msgid "ABI GUARANTEE"
34519 msgstr "ГАРАНТІЯ ЩОДО ABI"
34520
34521 #. type: textblock
34522 #: ../src/guestfs.pod:1010
34523 msgid ""
34524 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34525 "actions as outlined in this section.  Although we will deprecate some "
34526 "actions, for example if they get replaced by newer calls, we will keep the "
34527 "old actions forever.  This allows you the developer to program in confidence "
34528 "against the libguestfs API."
34529 msgstr ""
34530
34531 #. type: =head2
34532 #: ../src/guestfs.pod:1016
34533 msgid "BLOCK DEVICE NAMING"
34534 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
34535
34536 #. type: textblock
34537 #: ../src/guestfs.pod:1018
34538 msgid ""
34539 "In the kernel there is now quite a profusion of schemata for naming block "
34540 "devices (in this context, by I<block device> I mean a physical or virtual "
34541 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
34542 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
34543 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
34544 "for the old IDE driver (particularly for SATA devices) those devices also "
34545 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
34546 "paravirtualized drivers.  This has created several different naming systems, "
34547 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
34548 msgstr ""
34549
34550 #. type: textblock
34551 #: ../src/guestfs.pod:1030
34552 msgid ""
34553 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34554 "Linux kernel to access block devices.  We can run a variety of appliances "
34555 "based on a variety of Linux kernels."
34556 msgstr ""
34557
34558 #. type: textblock
34559 #: ../src/guestfs.pod:1034
34560 msgid ""
34561 "This causes a problem for libguestfs because many API calls use device or "
34562 "partition names.  Working scripts and the recipe (example) scripts that we "
34563 "make available over the internet could fail if the naming scheme changes."
34564 msgstr ""
34565
34566 #. type: textblock
34567 #: ../src/guestfs.pod:1039
34568 msgid ""
34569 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
34570 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34571 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34572 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34573 msgstr ""
34574
34575 #. type: textblock
34576 #: ../src/guestfs.pod:1045
34577 msgid ""
34578 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
34579 "L</guestfs_list_partitions> and similar calls return the true names of the "
34580 "devices and partitions as known to the appliance."
34581 msgstr ""
34582
34583 #. type: =head3
34584 #: ../src/guestfs.pod:1050
34585 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34586 msgstr ""
34587
34588 #. type: textblock
34589 #: ../src/guestfs.pod:1052
34590 msgid ""
34591 "Usually this translation is transparent.  However in some (very rare)  cases "
34592 "you may need to know the exact algorithm.  Such cases include where you use "
34593 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34594 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34595 msgstr ""
34596
34597 #. type: textblock
34598 #: ../src/guestfs.pod:1058
34599 msgid ""
34600 "The algorithm is applied only to I<parameters> which are known to be either "
34601 "device or partition names.  Return values from functions such as L</"
34602 "guestfs_list_devices> are never changed."
34603 msgstr ""
34604
34605 #. type: textblock
34606 #: ../src/guestfs.pod:1066
34607 msgid "Is the string a parameter which is a device or partition name?"
34608 msgstr ""
34609
34610 #. type: textblock
34611 #: ../src/guestfs.pod:1070
34612 msgid "Does the string begin with C</dev/sd>?"
34613 msgstr "Чи починається рядок з C</dev/sd>?"
34614
34615 #. type: textblock
34616 #: ../src/guestfs.pod:1074
34617 msgid ""
34618 "Does the named device exist? If so, we use that device.  However if I<not> "
34619 "then we continue with this algorithm."
34620 msgstr ""
34621
34622 #. type: textblock
34623 #: ../src/guestfs.pod:1079
34624 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34625 msgstr ""
34626
34627 #. type: textblock
34628 #: ../src/guestfs.pod:1081
34629 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34630 msgstr ""
34631
34632 #. type: textblock
34633 #: ../src/guestfs.pod:1083
34634 msgid "If that named device exists, use it.  If not, continue."
34635 msgstr ""
34636
34637 #. type: textblock
34638 #: ../src/guestfs.pod:1087
34639 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34640 msgstr ""
34641
34642 #. type: textblock
34643 #: ../src/guestfs.pod:1089
34644 msgid "If that named device exists, use it.  If not, return an error."
34645 msgstr ""
34646
34647 #. type: =head3
34648 #: ../src/guestfs.pod:1093
34649 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34650 msgstr ""
34651
34652 #. type: textblock
34653 #: ../src/guestfs.pod:1095
34654 msgid ""
34655 "Although the standard naming scheme and automatic translation is useful for "
34656 "simple programs and guestfish scripts, for larger programs it is best not to "
34657 "rely on this mechanism."
34658 msgstr ""
34659
34660 #. type: textblock
34661 #: ../src/guestfs.pod:1099
34662 msgid ""
34663 "Where possible for maximum future portability programs using libguestfs "
34664 "should use these future-proof techniques:"
34665 msgstr ""
34666
34667 #. type: textblock
34668 #: ../src/guestfs.pod:1106
34669 msgid ""
34670 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34671 "device names, and then use those names directly."
34672 msgstr ""
34673
34674 #. type: textblock
34675 #: ../src/guestfs.pod:1109
34676 msgid ""
34677 "Since those device names exist by definition, they will never be translated."
34678 msgstr ""
34679
34680 #. type: textblock
34681 #: ../src/guestfs.pod:1114
34682 msgid ""
34683 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
34684 "filesystem labels."
34685 msgstr ""
34686
34687 #. type: =head1
34688 #: ../src/guestfs.pod:1119
34689 msgid "SECURITY"
34690 msgstr "БЕЗПЕКА"
34691
34692 #. type: textblock
34693 #: ../src/guestfs.pod:1121
34694 msgid ""
34695 "This section discusses security implications of using libguestfs, "
34696 "particularly with untrusted or malicious guests or disk images."
34697 msgstr ""
34698
34699 #. type: =head2
34700 #: ../src/guestfs.pod:1124
34701 msgid "GENERAL SECURITY CONSIDERATIONS"
34702 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
34703
34704 #. type: textblock
34705 #: ../src/guestfs.pod:1126
34706 msgid ""
34707 "Be careful with any files or data that you download from a guest (by "
34708 "\"download\" we mean not just the L</guestfs_download> command but any "
34709 "command that reads files, filenames, directories or anything else from a "
34710 "disk image).  An attacker could manipulate the data to fool your program "
34711 "into doing the wrong thing.  Consider cases such as:"
34712 msgstr ""
34713
34714 #. type: textblock
34715 #: ../src/guestfs.pod:1136
34716 msgid "the data (file etc) not being present"
34717 msgstr ""
34718
34719 #. type: textblock
34720 #: ../src/guestfs.pod:1140
34721 msgid "being present but empty"
34722 msgstr ""
34723
34724 #. type: textblock
34725 #: ../src/guestfs.pod:1144
34726 msgid "being much larger than normal"
34727 msgstr ""
34728
34729 #. type: textblock
34730 #: ../src/guestfs.pod:1148
34731 msgid "containing arbitrary 8 bit data"
34732 msgstr ""
34733
34734 #. type: textblock
34735 #: ../src/guestfs.pod:1152
34736 msgid "being in an unexpected character encoding"
34737 msgstr ""
34738
34739 #. type: textblock
34740 #: ../src/guestfs.pod:1156
34741 msgid "containing homoglyphs."
34742 msgstr ""
34743
34744 #. type: =head2
34745 #: ../src/guestfs.pod:1160
34746 msgid "SECURITY OF MOUNTING FILESYSTEMS"
34747 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
34748
34749 #. type: textblock
34750 #: ../src/guestfs.pod:1162
34751 msgid ""
34752 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
34753 "(VFS) module can sometimes be escalated into exploits by deliberately "
34754 "creating a malicious, malformed filesystem.  These exploits are very severe "
34755 "for two reasons.  Firstly there are very many filesystem drivers in the "
34756 "kernel, and many of them are infrequently used and not much developer "
34757 "attention has been paid to the code.  Linux userspace helps potential "
34758 "crackers by detecting the filesystem type and automatically choosing the "
34759 "right VFS driver, even if that filesystem type is obscure or unexpected for "
34760 "the administrator.  Secondly, a kernel-level exploit is like a local root "
34761 "exploit (worse in some ways), giving immediate and total access to the "
34762 "system right down to the hardware level."
34763 msgstr ""
34764
34765 #. type: textblock
34766 #: ../src/guestfs.pod:1175
34767 msgid ""
34768 "That explains why you should never mount a filesystem from an untrusted "
34769 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
34770 "inside a qemu virtual machine, usually running as a non-root user.  The "
34771 "attacker would need to write a filesystem which first exploited the kernel, "
34772 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
34773 "the libguestfs protocol, and finally to be as serious as the host kernel "
34774 "exploit it would need to escalate its privileges to root.  This multi-step "
34775 "escalation, performed by a static piece of data, is thought to be extremely "
34776 "hard to do, although we never say 'never' about security issues."
34777 msgstr ""
34778
34779 #. type: textblock
34780 #: ../src/guestfs.pod:1186
34781 msgid ""
34782 "In any case callers can reduce the attack surface by forcing the filesystem "
34783 "type when mounting (use L</guestfs_mount_vfs>)."
34784 msgstr ""
34785
34786 #. type: =head2
34787 #: ../src/guestfs.pod:1189
34788 msgid "PROTOCOL SECURITY"
34789 msgstr "ЗАХИСТ ПРОТОКОЛУ"
34790
34791 #. type: textblock
34792 #: ../src/guestfs.pod:1191
34793 msgid ""
34794 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
34795 "defined upper message size.  However a program that uses libguestfs must "
34796 "also take care - for example you can write a program that downloads a binary "
34797 "from a disk image and executes it locally, and no amount of protocol "
34798 "security will save you from the consequences."
34799 msgstr ""
34800
34801 #. type: =head2
34802 #: ../src/guestfs.pod:1197
34803 msgid "INSPECTION SECURITY"
34804 msgstr ""
34805
34806 #. type: textblock
34807 #: ../src/guestfs.pod:1199
34808 msgid ""
34809 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
34810 "directly from the guest, and these could contain any 8 bit data.  Callers "
34811 "should be careful to escape these before printing them to a structured file "
34812 "(for example, use HTML escaping if creating a web page)."
34813 msgstr ""
34814
34815 #. type: textblock
34816 #: ../src/guestfs.pod:1205
34817 msgid ""
34818 "Guest configuration may be altered in unusual ways by the administrator of "
34819 "the virtual machine, and may not reflect reality (particularly for untrusted "
34820 "or actively malicious guests).  For example we parse the hostname from "
34821 "configuration files like C</etc/sysconfig/network> that we find in the "
34822 "guest, but the guest administrator can easily manipulate these files to "
34823 "provide the wrong hostname."
34824 msgstr ""
34825
34826 #. type: textblock
34827 #: ../src/guestfs.pod:1213
34828 msgid ""
34829 "The inspection API parses guest configuration using two external libraries: "
34830 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
34831 "designed to be robust in the face of malicious data, although denial of "
34832 "service attacks are still possible, for example with oversized configuration "
34833 "files."
34834 msgstr ""
34835
34836 #. type: =head2
34837 #: ../src/guestfs.pod:1219
34838 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
34839 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
34840
34841 #. type: textblock
34842 #: ../src/guestfs.pod:1221
34843 msgid ""
34844 "Be very cautious about running commands from the guest.  By running a "
34845 "command in the guest, you are giving CPU time to a binary that you do not "
34846 "control, under the same user account as the library, albeit wrapped in qemu "
34847 "virtualization.  More information and alternatives can be found in the "
34848 "section L</RUNNING COMMANDS>."
34849 msgstr ""
34850
34851 #. type: =head2
34852 #: ../src/guestfs.pod:1227
34853 msgid "CVE-2010-3851"
34854 msgstr "CVE-2010-3851"
34855
34856 #. type: textblock
34857 #: ../src/guestfs.pod:1229
34858 msgid "https://bugzilla.redhat.com/642934"
34859 msgstr "https://bugzilla.redhat.com/642934"
34860
34861 #. type: textblock
34862 #: ../src/guestfs.pod:1231
34863 msgid ""
34864 "This security bug concerns the automatic disk format detection that qemu "
34865 "does on disk images."
34866 msgstr ""
34867
34868 #. type: textblock
34869 #: ../src/guestfs.pod:1234
34870 msgid ""
34871 "A raw disk image is just the raw bytes, there is no header.  Other disk "
34872 "images like qcow2 contain a special header.  Qemu deals with this by looking "
34873 "for one of the known headers, and if none is found then assuming the disk "
34874 "image must be raw."
34875 msgstr ""
34876
34877 #. type: textblock
34878 #: ../src/guestfs.pod:1239
34879 msgid ""
34880 "This allows a guest which has been given a raw disk image to write some "
34881 "other header.  At next boot (or when the disk image is accessed by "
34882 "libguestfs) qemu would do autodetection and think the disk image format was, "
34883 "say, qcow2 based on the header written by the guest."
34884 msgstr ""
34885
34886 #. type: textblock
34887 #: ../src/guestfs.pod:1244
34888 msgid ""
34889 "This in itself would not be a problem, but qcow2 offers many features, one "
34890 "of which is to allow a disk image to refer to another image (called the "
34891 "\"backing disk\").  It does this by placing the path to the backing disk "
34892 "into the qcow2 header.  This path is not validated and could point to any "
34893 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
34894 "\"holes\" in the qcow2 disk image, which of course is completely under the "
34895 "control of the attacker."
34896 msgstr ""
34897
34898 #. type: textblock
34899 #: ../src/guestfs.pod:1252
34900 msgid ""
34901 "In libguestfs this is rather hard to exploit except under two circumstances:"
34902 msgstr ""
34903
34904 #. type: textblock
34905 #: ../src/guestfs.pod:1259
34906 msgid "You have enabled the network or have opened the disk in write mode."
34907 msgstr ""
34908
34909 #. type: textblock
34910 #: ../src/guestfs.pod:1263
34911 msgid ""
34912 "You are also running untrusted code from the guest (see L</RUNNING "
34913 "COMMANDS>)."
34914 msgstr ""
34915
34916 #. type: textblock
34917 #: ../src/guestfs.pod:1268
34918 msgid ""
34919 "The way to avoid this is to specify the expected disk format when adding "
34920 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
34921 "should always do this if the disk is raw format, and it's a good idea for "
34922 "other cases too."
34923 msgstr ""
34924
34925 #. type: textblock
34926 #: ../src/guestfs.pod:1273
34927 msgid ""
34928 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
34929 "format is fetched from libvirt and passed through."
34930 msgstr ""
34931
34932 #. type: textblock
34933 #: ../src/guestfs.pod:1276
34934 msgid ""
34935 "For libguestfs tools, use the I<--format> command line parameter as "
34936 "appropriate."
34937 msgstr ""
34938
34939 #. type: =head1
34940 #: ../src/guestfs.pod:1279
34941 msgid "CONNECTION MANAGEMENT"
34942 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
34943
34944 #. type: =head2
34945 #: ../src/guestfs.pod:1281
34946 msgid "guestfs_h *"
34947 msgstr "guestfs_h *"
34948
34949 #. type: textblock
34950 #: ../src/guestfs.pod:1283
34951 msgid ""
34952 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
34953 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
34954 "handle and release all resources used."
34955 msgstr ""
34956
34957 #. type: textblock
34958 #: ../src/guestfs.pod:1287
34959 msgid ""
34960 "For information on using multiple handles and threads, see the section L</"
34961 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
34962 msgstr ""
34963
34964 #. type: =head2
34965 #: ../src/guestfs.pod:1290
34966 msgid "guestfs_create"
34967 msgstr "guestfs_create"
34968
34969 #. type: verbatim
34970 #: ../src/guestfs.pod:1292
34971 #, no-wrap
34972 msgid ""
34973 " guestfs_h *guestfs_create (void);\n"
34974 "\n"
34975 msgstr ""
34976 " guestfs_h *guestfs_create (void);\n"
34977 "\n"
34978
34979 #. type: textblock
34980 #: ../src/guestfs.pod:1294
34981 msgid "Create a connection handle."
34982 msgstr "Створити дескриптор з’єднання."
34983
34984 #. type: textblock
34985 #: ../src/guestfs.pod:1296
34986 msgid ""
34987 "On success this returns a non-NULL pointer to a handle.  On error it returns "
34988 "NULL."
34989 msgstr ""
34990
34991 #. type: textblock
34992 #: ../src/guestfs.pod:1299
34993 msgid ""
34994 "You have to \"configure\" the handle after creating it.  This includes "
34995 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
34996 "handle at least once."
34997 msgstr ""
34998
34999 #. type: textblock
35000 #: ../src/guestfs.pod:1303
35001 msgid "After configuring the handle, you have to call L</guestfs_launch>."
35002 msgstr ""
35003
35004 #. type: textblock
35005 #: ../src/guestfs.pod:1305
35006 msgid ""
35007 "You may also want to configure error handling for the handle.  See the L</"
35008 "ERROR HANDLING> section below."
35009 msgstr ""
35010
35011 #. type: =head2
35012 #: ../src/guestfs.pod:1308
35013 msgid "guestfs_close"
35014 msgstr "guestfs_close"
35015
35016 #. type: verbatim
35017 #: ../src/guestfs.pod:1310
35018 #, no-wrap
35019 msgid ""
35020 " void guestfs_close (guestfs_h *g);\n"
35021 "\n"
35022 msgstr ""
35023 " void guestfs_close (guestfs_h *g);\n"
35024 "\n"
35025
35026 #. type: textblock
35027 #: ../src/guestfs.pod:1312
35028 msgid "This closes the connection handle and frees up all resources used."
35029 msgstr ""
35030
35031 #. type: textblock
35032 #: ../src/guestfs.pod:1314
35033 msgid ""
35034 "If autosync was set on the handle and the handle was launched, then this "
35035 "implicitly calls various functions to unmount filesystems and sync the "
35036 "disk.  See L</guestfs_set_autosync> for more details."
35037 msgstr ""
35038
35039 #. type: textblock
35040 #: ../src/guestfs.pod:1318
35041 msgid "If a close callback was set on the handle, then it is called."
35042 msgstr ""
35043
35044 #. type: =head1
35045 #: ../src/guestfs.pod:1320
35046 msgid "ERROR HANDLING"
35047 msgstr "ОБРОБКА ПОМИЛОК"
35048
35049 #. type: textblock
35050 #: ../src/guestfs.pod:1322
35051 msgid ""
35052 "API functions can return errors.  For example, almost all functions that "
35053 "return C<int> will return C<-1> to indicate an error."
35054 msgstr ""
35055
35056 #. type: textblock
35057 #: ../src/guestfs.pod:1325
35058 msgid ""
35059 "Additional information is available for errors: an error message string and "
35060 "optionally an error number (errno) if the thing that failed was a system "
35061 "call."
35062 msgstr ""
35063
35064 #. type: textblock
35065 #: ../src/guestfs.pod:1329
35066 msgid ""
35067 "You can get at the additional information about the last error on the handle "
35068 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
35069 "up an error handler with L</guestfs_set_error_handler>."
35070 msgstr ""
35071
35072 #. type: textblock
35073 #: ../src/guestfs.pod:1334
35074 msgid ""
35075 "When the handle is created, a default error handler is installed which "
35076 "prints the error message string to C<stderr>.  For small short-running "
35077 "command line programs it is sufficient to do:"
35078 msgstr ""
35079
35080 #. type: verbatim
35081 #: ../src/guestfs.pod:1338
35082 #, no-wrap
35083 msgid ""
35084 " if (guestfs_launch (g) == -1)\n"
35085 "   exit (EXIT_FAILURE);\n"
35086 "\n"
35087 msgstr ""
35088 " if (guestfs_launch (g) == -1)\n"
35089 "   exit (EXIT_FAILURE);\n"
35090 "\n"
35091
35092 #. type: textblock
35093 #: ../src/guestfs.pod:1341
35094 msgid ""
35095 "since the default error handler will ensure that an error message has been "
35096 "printed to C<stderr> before the program exits."
35097 msgstr ""
35098
35099 #. type: textblock
35100 #: ../src/guestfs.pod:1344
35101 msgid ""
35102 "For other programs the caller will almost certainly want to install an "
35103 "alternate error handler or do error handling in-line like this:"
35104 msgstr ""
35105
35106 #. type: verbatim
35107 #: ../src/guestfs.pod:1347
35108 #, no-wrap
35109 msgid ""
35110 " /* This disables the default behaviour of printing errors\n"
35111 "    on stderr. */\n"
35112 " guestfs_set_error_handler (g, NULL, NULL);\n"
35113 " \n"
35114 msgstr ""
35115
35116 #. type: verbatim
35117 #: ../src/guestfs.pod:1351
35118 #, fuzzy, no-wrap
35119 #| msgid ""
35120 #| " if (guestfs_launch (g) == -1) {\n"
35121 #| "   /* Examine the error message and print it etc. */\n"
35122 #| "   char *msg = guestfs_last_error (g);\n"
35123 #| "   int errnum = guestfs_last_errno (g);\n"
35124 #| "   fprintf (stderr, \"%s\\n\", msg);\n"
35125 #| "   /* ... */\n"
35126 #| "  }\n"
35127 #| "\n"
35128 msgid ""
35129 " if (guestfs_launch (g) == -1) {\n"
35130 "   /* Examine the error message and print it etc. */\n"
35131 "   char *msg = guestfs_last_error (g);\n"
35132 "   int errnum = guestfs_last_errno (g);\n"
35133 "   fprintf (stderr, \"%s\", msg);\n"
35134 "   if (errnum != 0)\n"
35135 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
35136 "   fprintf (stderr, \"\\n\");\n"
35137 "   /* ... */\n"
35138 " }\n"
35139 "\n"
35140 msgstr ""
35141 " if (guestfs_launch (g) == -1) {\n"
35142 "   /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
35143 "   char *msg = guestfs_last_error (g);\n"
35144 "   int errnum = guestfs_last_errno (g);\n"
35145 "   fprintf (stderr, \"%s\\n\", msg);\n"
35146 "   /* ... */\n"
35147 "  }\n"
35148 "\n"
35149
35150 #. type: textblock
35151 #: ../src/guestfs.pod:1362
35152 msgid ""
35153 "Out of memory errors are handled differently.  The default action is to call "
35154 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
35155 "guestfs_set_out_of_memory_handler>."
35156 msgstr ""
35157
35158 #. type: textblock
35159 #: ../src/guestfs.pod:1366
35160 msgid ""
35161 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35162 "because there is no handle if this happens there is no way to get additional "
35163 "error information.  However L</guestfs_create> is supposed to be a "
35164 "lightweight operation which can only fail because of insufficient memory (it "
35165 "returns NULL in this case)."
35166 msgstr ""
35167
35168 #. type: =head2
35169 #: ../src/guestfs.pod:1372
35170 msgid "guestfs_last_error"
35171 msgstr "guestfs_last_error"
35172
35173 #. type: verbatim
35174 #: ../src/guestfs.pod:1374
35175 #, no-wrap
35176 msgid ""
35177 " const char *guestfs_last_error (guestfs_h *g);\n"
35178 "\n"
35179 msgstr ""
35180 " const char *guestfs_last_error (guestfs_h *g);\n"
35181 "\n"
35182
35183 #. type: textblock
35184 #: ../src/guestfs.pod:1376
35185 msgid ""
35186 "This returns the last error message that happened on C<g>.  If there has not "
35187 "been an error since the handle was created, then this returns C<NULL>."
35188 msgstr ""
35189
35190 #. type: textblock
35191 #: ../src/guestfs.pod:1380
35192 msgid ""
35193 "The lifetime of the returned string is until the next error occurs, or L</"
35194 "guestfs_close> is called."
35195 msgstr ""
35196
35197 #. type: =head2
35198 #: ../src/guestfs.pod:1383
35199 msgid "guestfs_last_errno"
35200 msgstr "guestfs_last_errno"
35201
35202 #. type: verbatim
35203 #: ../src/guestfs.pod:1385
35204 #, no-wrap
35205 msgid ""
35206 " int guestfs_last_errno (guestfs_h *g);\n"
35207 "\n"
35208 msgstr ""
35209 " int guestfs_last_errno (guestfs_h *g);\n"
35210 "\n"
35211
35212 #. type: textblock
35213 #: ../src/guestfs.pod:1387
35214 msgid "This returns the last error number (errno) that happened on C<g>."
35215 msgstr ""
35216
35217 #. type: textblock
35218 #: ../src/guestfs.pod:1389
35219 msgid "If successful, an errno integer not equal to zero is returned."
35220 msgstr ""
35221
35222 #. type: textblock
35223 #: ../src/guestfs.pod:1391
35224 msgid ""
35225 "If no error, this returns 0.  This call can return 0 in three situations:"
35226 msgstr ""
35227
35228 #. type: textblock
35229 #: ../src/guestfs.pod:1398
35230 msgid "There has not been any error on the handle."
35231 msgstr ""
35232
35233 #. type: textblock
35234 #: ../src/guestfs.pod:1402
35235 msgid ""
35236 "There has been an error but the errno was meaningless.  This corresponds to "
35237 "the case where the error did not come from a failed system call, but for "
35238 "some other reason."
35239 msgstr ""
35240
35241 #. type: textblock
35242 #: ../src/guestfs.pod:1408
35243 msgid ""
35244 "There was an error from a failed system call, but for some reason the errno "
35245 "was not captured and returned.  This usually indicates a bug in libguestfs."
35246 msgstr ""
35247
35248 #. type: textblock
35249 #: ../src/guestfs.pod:1414
35250 msgid ""
35251 "Libguestfs tries to convert the errno from inside the applicance into a "
35252 "corresponding errno for the caller (not entirely trivial: the appliance "
35253 "might be running a completely different operating system from the library "
35254 "and error numbers are not standardized across Un*xen).  If this could not be "
35255 "done, then the error is translated to C<EINVAL>.  In practice this should "
35256 "only happen in very rare circumstances."
35257 msgstr ""
35258
35259 #. type: =head2
35260 #: ../src/guestfs.pod:1422
35261 msgid "guestfs_set_error_handler"
35262 msgstr "guestfs_set_error_handler"
35263
35264 #. type: verbatim
35265 #: ../src/guestfs.pod:1424
35266 #, no-wrap
35267 msgid ""
35268 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35269 "                                           void *opaque,\n"
35270 "                                           const char *msg);\n"
35271 " void guestfs_set_error_handler (guestfs_h *g,\n"
35272 "                                 guestfs_error_handler_cb cb,\n"
35273 "                                 void *opaque);\n"
35274 "\n"
35275 msgstr ""
35276 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35277 "                                           void *opaque,\n"
35278 "                                           const char *msg);\n"
35279 " void guestfs_set_error_handler (guestfs_h *g,\n"
35280 "                                 guestfs_error_handler_cb cb,\n"
35281 "                                 void *opaque);\n"
35282 "\n"
35283
35284 #. type: textblock
35285 #: ../src/guestfs.pod:1431
35286 msgid ""
35287 "The callback C<cb> will be called if there is an error.  The parameters "
35288 "passed to the callback are an opaque data pointer and the error message "
35289 "string."
35290 msgstr ""
35291
35292 #. type: textblock
35293 #: ../src/guestfs.pod:1435
35294 msgid ""
35295 "C<errno> is not passed to the callback.  To get that the callback must call "
35296 "L</guestfs_last_errno>."
35297 msgstr ""
35298
35299 #. type: textblock
35300 #: ../src/guestfs.pod:1438
35301 msgid ""
35302 "Note that the message string C<msg> is freed as soon as the callback "
35303 "function returns, so if you want to stash it somewhere you must make your "
35304 "own copy."
35305 msgstr ""
35306
35307 #. type: textblock
35308 #: ../src/guestfs.pod:1442
35309 msgid "The default handler prints messages on C<stderr>."
35310 msgstr ""
35311
35312 #. type: textblock
35313 #: ../src/guestfs.pod:1444
35314 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35315 msgstr ""
35316
35317 #. type: =head2
35318 #: ../src/guestfs.pod:1446
35319 msgid "guestfs_get_error_handler"
35320 msgstr "guestfs_get_error_handler"
35321
35322 #. type: verbatim
35323 #: ../src/guestfs.pod:1448
35324 #, no-wrap
35325 msgid ""
35326 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35327 "                                                     void **opaque_rtn);\n"
35328 "\n"
35329 msgstr ""
35330 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35331 "                                                     void **opaque_rtn);\n"
35332 "\n"
35333
35334 #. type: textblock
35335 #: ../src/guestfs.pod:1451
35336 msgid "Returns the current error handler callback."
35337 msgstr ""
35338
35339 #. type: =head2
35340 #: ../src/guestfs.pod:1453
35341 msgid "guestfs_set_out_of_memory_handler"
35342 msgstr "guestfs_set_out_of_memory_handler"
35343
35344 #. type: verbatim
35345 #: ../src/guestfs.pod:1455
35346 #, fuzzy, no-wrap
35347 #| msgid ""
35348 #| " typedef void (*guestfs_abort_cb) (void);\n"
35349 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35350 #| "                                        guestfs_abort_cb);\n"
35351 #| "\n"
35352 msgid ""
35353 " typedef void (*guestfs_abort_cb) (void);\n"
35354 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35355 "                                         guestfs_abort_cb);\n"
35356 "\n"
35357 msgstr ""
35358 " typedef void (*guestfs_abort_cb) (void);\n"
35359 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35360 "                                        guestfs_abort_cb);\n"
35361 "\n"
35362
35363 #. type: textblock
35364 #: ../src/guestfs.pod:1459
35365 msgid ""
35366 "The callback C<cb> will be called if there is an out of memory situation.  "
35367 "I<Note this callback must not return>."
35368 msgstr ""
35369
35370 #. type: textblock
35371 #: ../src/guestfs.pod:1462
35372 msgid "The default is to call L<abort(3)>."
35373 msgstr ""
35374
35375 #. type: textblock
35376 #: ../src/guestfs.pod:1464
35377 msgid ""
35378 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
35379 msgstr ""
35380
35381 #. type: =head2
35382 #: ../src/guestfs.pod:1467
35383 msgid "guestfs_get_out_of_memory_handler"
35384 msgstr "guestfs_get_out_of_memory_handler"
35385
35386 #. type: verbatim
35387 #: ../src/guestfs.pod:1469
35388 #, no-wrap
35389 msgid ""
35390 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35391 "\n"
35392 msgstr ""
35393 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35394 "\n"
35395
35396 #. type: textblock
35397 #: ../src/guestfs.pod:1471
35398 msgid "This returns the current out of memory handler."
35399 msgstr ""
35400
35401 #. type: =head1
35402 #: ../src/guestfs.pod:1473
35403 msgid "API CALLS"
35404 msgstr "ВИКЛИКИ API"
35405
35406 #. type: =head1
35407 #: ../src/guestfs.pod:1477
35408 msgid "STRUCTURES"
35409 msgstr "СТРУКТУРИ"
35410
35411 #. type: textblock
35412 #: ../src/guestfs.pod:1479
35413 msgid "@STRUCTS@"
35414 msgstr "@STRUCTS@"
35415
35416 #. type: =head1
35417 #: ../src/guestfs.pod:1481
35418 msgid "AVAILABILITY"
35419 msgstr "ДОСТУПНІСТЬ"
35420
35421 #. type: =head2
35422 #: ../src/guestfs.pod:1483
35423 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35424 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
35425
35426 #. type: textblock
35427 #: ../src/guestfs.pod:1485
35428 msgid ""
35429 "Using L</guestfs_available> you can test availability of the following "
35430 "groups of functions.  This test queries the appliance to see if the "
35431 "appliance you are currently using supports the functionality."
35432 msgstr ""
35433
35434 #. type: textblock
35435 #: ../src/guestfs.pod:1490
35436 msgid "@AVAILABILITY@"
35437 msgstr "@AVAILABILITY@"
35438
35439 #. type: =head2
35440 #: ../src/guestfs.pod:1492
35441 msgid "GUESTFISH supported COMMAND"
35442 msgstr ""
35443
35444 #. type: textblock
35445 #: ../src/guestfs.pod:1494
35446 msgid ""
35447 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35448 "prints out the available groups and whether they are supported by this build "
35449 "of libguestfs.  Note however that you have to do C<run> first."
35450 msgstr ""
35451
35452 #. type: =head2
35453 #: ../src/guestfs.pod:1499
35454 msgid "SINGLE CALLS AT COMPILE TIME"
35455 msgstr ""
35456
35457 #. type: textblock
35458 #: ../src/guestfs.pod:1501
35459 msgid ""
35460 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35461 "function, such as:"
35462 msgstr ""
35463
35464 #. type: verbatim
35465 #: ../src/guestfs.pod:1504
35466 #, no-wrap
35467 msgid ""
35468 " #define LIBGUESTFS_HAVE_DD 1\n"
35469 "\n"
35470 msgstr ""
35471 " #define LIBGUESTFS_HAVE_DD 1\n"
35472 "\n"
35473
35474 #. type: textblock
35475 #: ../src/guestfs.pod:1506
35476 msgid "if L</guestfs_dd> is available."
35477 msgstr ""
35478
35479 #. type: textblock
35480 #: ../src/guestfs.pod:1508
35481 msgid ""
35482 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35483 "function is available at compile time, we recommended using build tools such "
35484 "as autoconf or cmake.  For example in autotools you could use:"
35485 msgstr ""
35486
35487 #. type: verbatim
35488 #: ../src/guestfs.pod:1513
35489 #, no-wrap
35490 msgid ""
35491 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35492 " AC_CHECK_FUNCS([guestfs_dd])\n"
35493 "\n"
35494 msgstr ""
35495 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35496 " AC_CHECK_FUNCS([guestfs_dd])\n"
35497 "\n"
35498
35499 #. type: textblock
35500 #: ../src/guestfs.pod:1516
35501 msgid ""
35502 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35503 "in your program."
35504 msgstr ""
35505
35506 #. type: =head2
35507 #: ../src/guestfs.pod:1519
35508 msgid "SINGLE CALLS AT RUN TIME"
35509 msgstr ""
35510
35511 #. type: textblock
35512 #: ../src/guestfs.pod:1521
35513 msgid ""
35514 "Testing at compile time doesn't guarantee that a function really exists in "
35515 "the library.  The reason is that you might be dynamically linked against a "
35516 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
35517 "This situation unfortunately results in a segmentation fault, which is a "
35518 "shortcoming of the C dynamic linking system itself."
35519 msgstr ""
35520
35521 #. type: textblock
35522 #: ../src/guestfs.pod:1528
35523 msgid ""
35524 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35525 "in this example program (note that you still need the compile time check as "
35526 "well):"
35527 msgstr ""
35528
35529 #. type: verbatim
35530 #: ../src/guestfs.pod:1532
35531 #, no-wrap
35532 msgid ""
35533 " #include <stdio.h>\n"
35534 " #include <stdlib.h>\n"
35535 " #include <unistd.h>\n"
35536 " #include <dlfcn.h>\n"
35537 " #include <guestfs.h>\n"
35538 " \n"
35539 msgstr ""
35540 " #include <stdio.h>\n"
35541 " #include <stdlib.h>\n"
35542 " #include <unistd.h>\n"
35543 " #include <dlfcn.h>\n"
35544 " #include <guestfs.h>\n"
35545 " \n"
35546
35547 #. type: verbatim
35548 #: ../src/guestfs.pod:1538
35549 #, no-wrap
35550 msgid ""
35551 " main ()\n"
35552 " {\n"
35553 " #ifdef LIBGUESTFS_HAVE_DD\n"
35554 "   void *dl;\n"
35555 "   int has_function;\n"
35556 " \n"
35557 msgstr ""
35558 " main ()\n"
35559 " {\n"
35560 " #ifdef LIBGUESTFS_HAVE_DD\n"
35561 "   void *dl;\n"
35562 "   int has_function;\n"
35563 " \n"
35564
35565 #. type: verbatim
35566 #: ../src/guestfs.pod:1544
35567 #, no-wrap
35568 msgid ""
35569 "   /* Test if the function guestfs_dd is really available. */\n"
35570 "   dl = dlopen (NULL, RTLD_LAZY);\n"
35571 "   if (!dl) {\n"
35572 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35573 "     exit (EXIT_FAILURE);\n"
35574 "   }\n"
35575 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35576 "   dlclose (dl);\n"
35577 " \n"
35578 msgstr ""
35579
35580 #. type: verbatim
35581 #: ../src/guestfs.pod:1553
35582 #, no-wrap
35583 msgid ""
35584 "   if (!has_function)\n"
35585 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35586 "   else {\n"
35587 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35588 "     /* Now it's safe to call\n"
35589 "     guestfs_dd (g, \"foo\", \"bar\");\n"
35590 "     */\n"
35591 "   }\n"
35592 " #else\n"
35593 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35594 " #endif\n"
35595 "  }\n"
35596 "\n"
35597 msgstr ""
35598
35599 #. type: textblock
35600 #: ../src/guestfs.pod:1566
35601 msgid ""
35602 "You may think the above is an awful lot of hassle, and it is.  There are "
35603 "other ways outside of the C linking system to ensure that this kind of "
35604 "incompatibility never arises, such as using package versioning:"
35605 msgstr ""
35606
35607 #. type: verbatim
35608 #: ../src/guestfs.pod:1571
35609 #, no-wrap
35610 msgid ""
35611 " Requires: libguestfs >= 1.0.80\n"
35612 "\n"
35613 msgstr ""
35614
35615 #. type: =head1
35616 #: ../src/guestfs.pod:1573
35617 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35618 msgstr ""
35619
35620 #. type: textblock
35621 #: ../src/guestfs.pod:1575
35622 msgid ""
35623 "A recent feature of the API is the introduction of calls which take optional "
35624 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
35625 "takes variable arguments (ie. C<...>), as in this example:"
35626 msgstr ""
35627
35628 #. type: verbatim
35629 #: ../src/guestfs.pod:1580
35630 #, no-wrap
35631 msgid ""
35632 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35633 "\n"
35634 msgstr ""
35635 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35636 "\n"
35637
35638 #. type: textblock
35639 #: ../src/guestfs.pod:1582
35640 msgid ""
35641 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
35642 "call with no optional arguments specified:"
35643 msgstr ""
35644
35645 #. type: verbatim
35646 #: ../src/guestfs.pod:1585
35647 #, no-wrap
35648 msgid ""
35649 " guestfs_add_drive_opts (g, filename, -1);\n"
35650 "\n"
35651 msgstr ""
35652 " guestfs_add_drive_opts (g, filename, -1);\n"
35653 "\n"
35654
35655 #. type: textblock
35656 #: ../src/guestfs.pod:1587
35657 msgid "With a single optional argument:"
35658 msgstr ""
35659
35660 #. type: verbatim
35661 #: ../src/guestfs.pod:1589
35662 #, no-wrap
35663 msgid ""
35664 " guestfs_add_drive_opts (g, filename,\n"
35665 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35666 "                         -1);\n"
35667 "\n"
35668 msgstr ""
35669 " guestfs_add_drive_opts (g, filename,\n"
35670 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35671 "                         -1);\n"
35672 "\n"
35673
35674 #. type: textblock
35675 #: ../src/guestfs.pod:1593
35676 msgid "With two:"
35677 msgstr ""
35678
35679 #. type: verbatim
35680 #: ../src/guestfs.pod:1595
35681 #, no-wrap
35682 msgid ""
35683 " guestfs_add_drive_opts (g, filename,\n"
35684 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35685 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35686 "                         -1);\n"
35687 "\n"
35688 msgstr ""
35689 " guestfs_add_drive_opts (g, filename,\n"
35690 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35691 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
35692 "                         -1);\n"
35693 "\n"
35694
35695 #. type: textblock
35696 #: ../src/guestfs.pod:1600
35697 msgid ""
35698 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
35699 "happen!"
35700 msgstr ""
35701
35702 #. type: =head2
35703 #: ../src/guestfs.pod:1603
35704 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
35705 msgstr ""
35706
35707 #. type: textblock
35708 #: ../src/guestfs.pod:1605
35709 msgid ""
35710 "The second variant has the same name with the suffix C<_va>, which works the "
35711 "same way but takes a C<va_list>.  See the C manual for details.  For the "
35712 "example function, this is declared:"
35713 msgstr ""
35714
35715 #. type: verbatim
35716 #: ../src/guestfs.pod:1609
35717 #, no-wrap
35718 msgid ""
35719 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35720 "                                va_list args);\n"
35721 "\n"
35722 msgstr ""
35723 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
35724 "                                va_list args);\n"
35725 "\n"
35726
35727 #. type: =head2
35728 #: ../src/guestfs.pod:1612
35729 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
35730 msgstr ""
35731
35732 #. type: textblock
35733 #: ../src/guestfs.pod:1614
35734 msgid ""
35735 "The third variant is useful where you need to construct these calls.  You "
35736 "pass in a structure where you fill in the optional fields.  The structure "
35737 "has a bitmask as the first element which you must set to indicate which "
35738 "fields you have filled in.  For our example function the structure and call "
35739 "are declared:"
35740 msgstr ""
35741
35742 #. type: verbatim
35743 #: ../src/guestfs.pod:1620
35744 #, no-wrap
35745 msgid ""
35746 " struct guestfs_add_drive_opts_argv {\n"
35747 "   uint64_t bitmask;\n"
35748 "   int readonly;\n"
35749 "   const char *format;\n"
35750 "   /* ... */\n"
35751 " };\n"
35752 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35753 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35754 "\n"
35755 msgstr ""
35756 " struct guestfs_add_drive_opts_argv {\n"
35757 "   uint64_t bitmask;\n"
35758 "   int readonly;\n"
35759 "   const char *format;\n"
35760 "   /* ... */\n"
35761 " };\n"
35762 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
35763 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
35764 "\n"
35765
35766 #. type: textblock
35767 #: ../src/guestfs.pod:1629
35768 msgid "You could call it like this:"
35769 msgstr ""
35770
35771 #. type: verbatim
35772 #: ../src/guestfs.pod:1631
35773 #, no-wrap
35774 msgid ""
35775 " struct guestfs_add_drive_opts_argv optargs = {\n"
35776 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35777 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35778 "   .readonly = 1,\n"
35779 "   .format = \"qcow2\"\n"
35780 " };\n"
35781 " \n"
35782 msgstr ""
35783 " struct guestfs_add_drive_opts_argv optargs = {\n"
35784 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
35785 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
35786 "   .readonly = 1,\n"
35787 "   .format = \"qcow2\"\n"
35788 " };\n"
35789 " \n"
35790
35791 #. type: verbatim
35792 #: ../src/guestfs.pod:1638
35793 #, no-wrap
35794 msgid ""
35795 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35796 "\n"
35797 msgstr ""
35798 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
35799 "\n"
35800
35801 #. type: textblock
35802 #: ../src/guestfs.pod:1646
35803 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
35804 msgstr ""
35805
35806 #. type: textblock
35807 #: ../src/guestfs.pod:1651
35808 msgid "You do not need to fill in all fields of the structure."
35809 msgstr ""
35810
35811 #. type: textblock
35812 #: ../src/guestfs.pod:1655
35813 msgid ""
35814 "There must be a one-to-one correspondence between fields of the structure "
35815 "that are filled in, and bits set in the bitmask."
35816 msgstr ""
35817
35818 #. type: =head2
35819 #: ../src/guestfs.pod:1660
35820 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
35821 msgstr ""
35822
35823 #. type: textblock
35824 #: ../src/guestfs.pod:1662
35825 msgid ""
35826 "In other languages, optional arguments are expressed in the way that is "
35827 "natural for that language.  We refer you to the language-specific "
35828 "documentation for more details on that."
35829 msgstr ""
35830
35831 #. type: textblock
35832 #: ../src/guestfs.pod:1666
35833 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
35834 msgstr ""
35835
35836 #. type: =head2
35837 #: ../src/guestfs.pod:1668
35838 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
35839 msgstr ""
35840
35841 #. type: textblock
35842 #: ../src/guestfs.pod:1670
35843 msgid ""
35844 "B<Note:> This section documents the generic event mechanism introduced in "
35845 "libguestfs 1.10, which you should use in new code if possible.  The old "
35846 "functions C<guestfs_set_log_message_callback>, "
35847 "C<guestfs_set_subprocess_quit_callback>, "
35848 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
35849 "C<guestfs_set_progress_callback> are no longer documented in this manual "
35850 "page.  Because of the ABI guarantee, the old functions continue to work."
35851 msgstr ""
35852
35853 #. type: textblock
35854 #: ../src/guestfs.pod:1679
35855 msgid ""
35856 "Handles generate events when certain things happen, such as log messages "
35857 "being generated, progress messages during long-running operations, or the "
35858 "handle being closed.  The API calls described below let you register a "
35859 "callback to be called when events happen.  You can register multiple "
35860 "callbacks (for the same, different or overlapping sets of events), and "
35861 "individually remove callbacks.  If callbacks are not removed, then they "
35862 "remain in force until the handle is closed."
35863 msgstr ""
35864
35865 #. type: textblock
35866 #: ../src/guestfs.pod:1687
35867 msgid ""
35868 "In the current implementation, events are only generated synchronously: that "
35869 "means that events (and hence callbacks) can only happen while you are in the "
35870 "middle of making another libguestfs call.  The callback is called in the "
35871 "same thread."
35872 msgstr ""
35873
35874 #. type: textblock
35875 #: ../src/guestfs.pod:1692
35876 msgid ""
35877 "Events may contain a payload, usually nothing (void), an array of 64 bit "
35878 "unsigned integers, or a message buffer.  Payloads are discussed later on."
35879 msgstr ""
35880
35881 #. type: =head3
35882 #: ../src/guestfs.pod:1696
35883 msgid "CLASSES OF EVENTS"
35884 msgstr ""
35885
35886 #. type: =item
35887 #: ../src/guestfs.pod:1700
35888 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
35889 msgstr ""
35890
35891 #. type: textblock
35892 #: ../src/guestfs.pod:1703
35893 msgid ""
35894 "The callback function will be called while the handle is being closed "
35895 "(synchronously from L</guestfs_close>)."
35896 msgstr ""
35897
35898 #. type: textblock
35899 #: ../src/guestfs.pod:1706
35900 msgid ""
35901 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
35902 "handles that are open when the program exits.  This means that this callback "
35903 "might be called indirectly from L<exit(3)>, which can cause unexpected "
35904 "problems in higher-level languages (eg. if your HLL interpreter has already "
35905 "been cleaned up by the time this is called, and if your callback then jumps "
35906 "into some HLL function)."
35907 msgstr ""
35908
35909 #. type: textblock
35910 #: ../src/guestfs.pod:1713
35911 msgid ""
35912 "If no callback is registered: the handle is closed without any callback "
35913 "being invoked."
35914 msgstr ""
35915
35916 #. type: =item
35917 #: ../src/guestfs.pod:1716
35918 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
35919 msgstr ""
35920
35921 #. type: textblock
35922 #: ../src/guestfs.pod:1719
35923 msgid ""
35924 "The callback function will be called when the child process quits, either "
35925 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
35926 "corresponds to a transition from any state to the CONFIG state)."
35927 msgstr ""
35928
35929 #. type: textblock
35930 #: ../src/guestfs.pod:1723 ../src/guestfs.pod:1732 ../src/guestfs.pod:1849
35931 msgid "If no callback is registered: the event is ignored."
35932 msgstr ""
35933
35934 #. type: =item
35935 #: ../src/guestfs.pod:1725
35936 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
35937 msgstr ""
35938
35939 #. type: textblock
35940 #: ../src/guestfs.pod:1728
35941 msgid ""
35942 "The callback function will be called when the child process becomes ready "
35943 "first time after it has been launched.  (This corresponds to a transition "
35944 "from LAUNCHING to the READY state)."
35945 msgstr ""
35946
35947 #. type: =item
35948 #: ../src/guestfs.pod:1734
35949 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
35950 msgstr ""
35951
35952 #. type: textblock
35953 #: ../src/guestfs.pod:1737
35954 msgid ""
35955 "Some long-running operations can generate progress messages.  If this "
35956 "callback is registered, then it will be called each time a progress message "
35957 "is generated (usually two seconds after the operation started, and three "
35958 "times per second thereafter until it completes, although the frequency may "
35959 "change in future versions)."
35960 msgstr ""
35961
35962 #. type: textblock
35963 #: ../src/guestfs.pod:1743
35964 msgid ""
35965 "The callback receives in the payload four unsigned 64 bit numbers which are "
35966 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
35967 msgstr ""
35968
35969 #. type: textblock
35970 #: ../src/guestfs.pod:1746
35971 msgid ""
35972 "The units of C<total> are not defined, although for some operations C<total> "
35973 "may relate in some way to the amount of data to be transferred (eg. in bytes "
35974 "or megabytes), and C<position> may be the portion which has been transferred."
35975 msgstr ""
35976
35977 #. type: textblock
35978 #: ../src/guestfs.pod:1751
35979 msgid "The only defined and stable parts of the API are:"
35980 msgstr ""
35981
35982 #. type: textblock
35983 #: ../src/guestfs.pod:1757
35984 msgid ""
35985 "The callback can display to the user some type of progress bar or indicator "
35986 "which shows the ratio of C<position>:C<total>."
35987 msgstr ""
35988
35989 #. type: textblock
35990 #: ../src/guestfs.pod:1762
35991 msgid "0 E<lt>= C<position> E<lt>= C<total>"
35992 msgstr ""
35993
35994 #. type: textblock
35995 #: ../src/guestfs.pod:1766
35996 msgid ""
35997 "If any progress notification is sent during a call, then a final progress "
35998 "notification is always sent when C<position> = C<total> (I<unless> the call "
35999 "fails with an error)."
36000 msgstr ""
36001
36002 #. type: textblock
36003 #: ../src/guestfs.pod:1770
36004 msgid ""
36005 "This is to simplify caller code, so callers can easily set the progress "
36006 "indicator to \"100%\" at the end of the operation, without requiring special "
36007 "code to detect this case."
36008 msgstr ""
36009
36010 #. type: textblock
36011 #: ../src/guestfs.pod:1776
36012 msgid ""
36013 "For some calls we are unable to estimate the progress of the call, but we "
36014 "can still generate progress messages to indicate activity.  This is known as "
36015 "\"pulse mode\", and is directly supported by certain progress bar "
36016 "implementations (eg. GtkProgressBar)."
36017 msgstr ""
36018
36019 #. type: textblock
36020 #: ../src/guestfs.pod:1781
36021 msgid ""
36022 "For these calls, zero or more progress messages are generated with "
36023 "C<position = 0> and C<total = 1>, followed by a final message with "
36024 "C<position = total = 1>."
36025 msgstr ""
36026
36027 #. type: textblock
36028 #: ../src/guestfs.pod:1785
36029 msgid ""
36030 "As noted above, if the call fails with an error then the final message may "
36031 "not be generated."
36032 msgstr ""
36033
36034 #. type: textblock
36035 #: ../src/guestfs.pod:1790
36036 msgid ""
36037 "The callback also receives the procedure number (C<proc_nr>) and serial "
36038 "number (C<serial>) of the call.  These are only useful for debugging "
36039 "protocol issues, and the callback can normally ignore them.  The callback "
36040 "may want to print these numbers in error messages or debugging messages."
36041 msgstr ""
36042
36043 #. type: textblock
36044 #: ../src/guestfs.pod:1796
36045 msgid "If no callback is registered: progress messages are discarded."
36046 msgstr ""
36047
36048 #. type: =item
36049 #: ../src/guestfs.pod:1798
36050 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
36051 msgstr ""
36052
36053 #. type: textblock
36054 #: ../src/guestfs.pod:1801
36055 msgid ""
36056 "The callback function is called whenever a log message is generated by qemu, "
36057 "the appliance kernel, guestfsd (daemon), or utility programs."
36058 msgstr ""
36059
36060 #. type: textblock
36061 #: ../src/guestfs.pod:1804
36062 msgid ""
36063 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
36064 "guestfs_launch>) then additional debug messages are generated."
36065 msgstr ""
36066
36067 #. type: textblock
36068 #: ../src/guestfs.pod:1807 ../src/guestfs.pod:1821
36069 msgid ""
36070 "If no callback is registered: the messages are discarded unless the verbose "
36071 "flag is set in which case they are sent to stderr.  You can override the "
36072 "printing of verbose messages to stderr by setting up a callback."
36073 msgstr ""
36074
36075 #. type: =item
36076 #: ../src/guestfs.pod:1812
36077 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
36078 msgstr ""
36079
36080 #. type: textblock
36081 #: ../src/guestfs.pod:1815
36082 msgid ""
36083 "The callback function is called whenever a log message is generated by the "
36084 "library part of libguestfs."
36085 msgstr ""
36086
36087 #. type: textblock
36088 #: ../src/guestfs.pod:1818
36089 msgid ""
36090 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
36091 "messages are generated."
36092 msgstr ""
36093
36094 #. type: =item
36095 #: ../src/guestfs.pod:1826
36096 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
36097 msgstr ""
36098
36099 #. type: textblock
36100 #: ../src/guestfs.pod:1829
36101 msgid ""
36102 "The callback function is called whenever a trace message is generated.  This "
36103 "only applies if the trace flag (L</guestfs_set_trace>) is set."
36104 msgstr ""
36105
36106 #. type: textblock
36107 #: ../src/guestfs.pod:1832
36108 msgid ""
36109 "If no callback is registered: the messages are sent to stderr.  You can "
36110 "override the printing of trace messages to stderr by setting up a callback."
36111 msgstr ""
36112
36113 #. type: =item
36114 #: ../src/guestfs.pod:1836
36115 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
36116 msgstr ""
36117
36118 #. type: textblock
36119 #: ../src/guestfs.pod:1839
36120 msgid ""
36121 "The callback function is called whenever a libguestfs function is entered."
36122 msgstr ""
36123
36124 #. type: textblock
36125 #: ../src/guestfs.pod:1842
36126 msgid ""
36127 "The payload is a string which contains the name of the function that we are "
36128 "entering (not including C<guestfs_> prefix)."
36129 msgstr ""
36130
36131 #. type: textblock
36132 #: ../src/guestfs.pod:1845
36133 msgid ""
36134 "Note that libguestfs functions can call themselves, so you may see many "
36135 "events from a single call.  A few libguestfs functions do not generate this "
36136 "event."
36137 msgstr ""
36138
36139 #. type: =head3
36140 #: ../src/guestfs.pod:1853
36141 msgid "guestfs_set_event_callback"
36142 msgstr ""
36143
36144 #. type: verbatim
36145 #: ../src/guestfs.pod:1855
36146 #, no-wrap
36147 msgid ""
36148 " int guestfs_set_event_callback (guestfs_h *g,\n"
36149 "                                 guestfs_event_callback cb,\n"
36150 "                                 uint64_t event_bitmask,\n"
36151 "                                 int flags,\n"
36152 "                                 void *opaque);\n"
36153 "\n"
36154 msgstr ""
36155
36156 #. type: textblock
36157 #: ../src/guestfs.pod:1861
36158 msgid ""
36159 "This function registers a callback (C<cb>) for all event classes in the "
36160 "C<event_bitmask>."
36161 msgstr ""
36162
36163 #. type: textblock
36164 #: ../src/guestfs.pod:1864
36165 msgid ""
36166 "For example, to register for all log message events, you could call this "
36167 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
36168 "To register a single callback for all possible classes of events, use "
36169 "C<GUESTFS_EVENT_ALL>."
36170 msgstr ""
36171
36172 #. type: textblock
36173 #: ../src/guestfs.pod:1870
36174 msgid "C<flags> should always be passed as 0."
36175 msgstr ""
36176
36177 #. type: textblock
36178 #: ../src/guestfs.pod:1872
36179 msgid ""
36180 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
36181 "it for any purpose."
36182 msgstr ""
36183
36184 #. type: textblock
36185 #: ../src/guestfs.pod:1875
36186 msgid ""
36187 "The return value is the event handle (an integer) which you can use to "
36188 "delete the callback (see below)."
36189 msgstr ""
36190
36191 #. type: textblock
36192 #: ../src/guestfs.pod:1878
36193 msgid ""
36194 "If there is an error, this function returns C<-1>, and sets the error in the "
36195 "handle in the usual way (see L</guestfs_last_error> etc.)"
36196 msgstr ""
36197
36198 #. type: textblock
36199 #: ../src/guestfs.pod:1881
36200 msgid ""
36201 "Callbacks remain in effect until they are deleted, or until the handle is "
36202 "closed."
36203 msgstr ""
36204
36205 #. type: textblock
36206 #: ../src/guestfs.pod:1884
36207 msgid ""
36208 "In the case where multiple callbacks are registered for a particular event "
36209 "class, all of the callbacks are called.  The order in which multiple "
36210 "callbacks are called is not defined."
36211 msgstr ""
36212
36213 #. type: =head3
36214 #: ../src/guestfs.pod:1888
36215 msgid "guestfs_delete_event_callback"
36216 msgstr ""
36217
36218 #. type: verbatim
36219 #: ../src/guestfs.pod:1890
36220 #, no-wrap
36221 msgid ""
36222 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36223 "\n"
36224 msgstr ""
36225
36226 #. type: textblock
36227 #: ../src/guestfs.pod:1892
36228 msgid ""
36229 "Delete a callback that was previously registered.  C<event_handle> should be "
36230 "the integer that was returned by a previous call to "
36231 "C<guestfs_set_event_callback> on the same handle."
36232 msgstr ""
36233
36234 #. type: =head3
36235 #: ../src/guestfs.pod:1896
36236 msgid "guestfs_event_callback"
36237 msgstr ""
36238
36239 #. type: verbatim
36240 #: ../src/guestfs.pod:1898
36241 #, no-wrap
36242 msgid ""
36243 " typedef void (*guestfs_event_callback) (\n"
36244 "                  guestfs_h *g,\n"
36245 "                  void *opaque,\n"
36246 "                  uint64_t event,\n"
36247 "                  int event_handle,\n"
36248 "                  int flags,\n"
36249 "                  const char *buf, size_t buf_len,\n"
36250 "                  const uint64_t *array, size_t array_len);\n"
36251 "\n"
36252 msgstr ""
36253
36254 #. type: textblock
36255 #: ../src/guestfs.pod:1907
36256 msgid ""
36257 "This is the type of the event callback function that you have to provide."
36258 msgstr ""
36259
36260 #. type: textblock
36261 #: ../src/guestfs.pod:1910
36262 msgid ""
36263 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36264 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36265 "handle, and C<flags> which in the current API you should ignore."
36266 msgstr ""
36267
36268 #. type: textblock
36269 #: ../src/guestfs.pod:1914
36270 msgid ""
36271 "The remaining parameters contain the event payload (if any).  Each event may "
36272 "contain a payload, which usually relates to the event class, but for future "
36273 "proofing your code should be written to handle any payload for any event "
36274 "class."
36275 msgstr ""
36276
36277 #. type: textblock
36278 #: ../src/guestfs.pod:1919
36279 msgid ""
36280 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36281 "there is no message buffer).  Note that this message buffer can contain "
36282 "arbitrary 8 bit data, including NUL bytes."
36283 msgstr ""
36284
36285 #. type: textblock
36286 #: ../src/guestfs.pod:1923
36287 msgid ""
36288 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
36289 "moment this is only used for progress messages."
36290 msgstr ""
36291
36292 #. type: =head3
36293 #: ../src/guestfs.pod:1926
36294 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36295 msgstr ""
36296
36297 #. type: textblock
36298 #: ../src/guestfs.pod:1928
36299 msgid ""
36300 "One motivation for the generic event API was to allow GUI programs to "
36301 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
36302 "unconditionally to C<stderr>."
36303 msgstr ""
36304
36305 #. type: textblock
36306 #: ../src/guestfs.pod:1932
36307 msgid ""
36308 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36309 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
36310 "messages are not events; you must capture error messages separately)."
36311 msgstr ""
36312
36313 #. type: textblock
36314 #: ../src/guestfs.pod:1937
36315 msgid ""
36316 "Programs have to set up a callback to capture the classes of events of "
36317 "interest:"
36318 msgstr ""
36319
36320 #. type: verbatim
36321 #: ../src/guestfs.pod:1940
36322 #, no-wrap
36323 msgid ""
36324 " int eh =\n"
36325 "   guestfs_set_event_callback\n"
36326 "     (g, message_callback,\n"
36327 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36328 "      GUESTFS_EVENT_TRACE,\n"
36329 "      0, NULL) == -1)\n"
36330 " if (eh == -1) {\n"
36331 "   // handle error in the usual way\n"
36332 " }\n"
36333 "\n"
36334 msgstr ""
36335
36336 #. type: textblock
36337 #: ../src/guestfs.pod:1950
36338 msgid ""
36339 "The callback can then direct messages to the appropriate place.  In this "
36340 "example, messages are directed to syslog:"
36341 msgstr ""
36342
36343 #. type: verbatim
36344 #: ../src/guestfs.pod:1953
36345 #, no-wrap
36346 msgid ""
36347 " static void\n"
36348 " message_callback (\n"
36349 "         guestfs_h *g,\n"
36350 "         void *opaque,\n"
36351 "         uint64_t event,\n"
36352 "         int event_handle,\n"
36353 "         int flags,\n"
36354 "         const char *buf, size_t buf_len,\n"
36355 "         const uint64_t *array, size_t array_len)\n"
36356 " {\n"
36357 "   const int priority = LOG_USER|LOG_INFO;\n"
36358 "   if (buf_len > 0)\n"
36359 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36360 " }\n"
36361 "\n"
36362 msgstr ""
36363
36364 #. type: =head1
36365 #: ../src/guestfs.pod:1968
36366 msgid "CANCELLING LONG TRANSFERS"
36367 msgstr ""
36368
36369 #. type: textblock
36370 #: ../src/guestfs.pod:1970
36371 msgid ""
36372 "Some operations can be cancelled by the caller while they are in progress.  "
36373 "Currently only operations that involve uploading or downloading data can be "
36374 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36375 "parameters in the generator)."
36376 msgstr ""
36377
36378 #. type: =head2
36379 #: ../src/guestfs.pod:1975
36380 msgid "guestfs_user_cancel"
36381 msgstr ""
36382
36383 #. type: verbatim
36384 #: ../src/guestfs.pod:1977
36385 #, no-wrap
36386 msgid ""
36387 " void guestfs_user_cancel (guestfs_h *g);\n"
36388 "\n"
36389 msgstr ""
36390
36391 #. type: textblock
36392 #: ../src/guestfs.pod:1979
36393 msgid ""
36394 "C<guestfs_user_cancel> cancels the current upload or download operation."
36395 msgstr ""
36396
36397 #. type: textblock
36398 #: ../src/guestfs.pod:1982
36399 msgid ""
36400 "Unlike most other libguestfs calls, this function is signal safe and thread "
36401 "safe.  You can call it from a signal handler or from another thread, without "
36402 "needing to do any locking."
36403 msgstr ""
36404
36405 #. type: textblock
36406 #: ../src/guestfs.pod:1986
36407 msgid ""
36408 "The transfer that was in progress (if there is one) will stop shortly "
36409 "afterwards, and will return an error.  The errno (see L</"
36410 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36411 "out if the operation was cancelled or failed because of another error."
36412 msgstr ""
36413
36414 #. type: textblock
36415 #: ../src/guestfs.pod:1992
36416 msgid ""
36417 "No cleanup is performed: for example, if a file was being uploaded then "
36418 "after cancellation there may be a partially uploaded file.  It is the "
36419 "caller's responsibility to clean up if necessary."
36420 msgstr ""
36421
36422 #. type: textblock
36423 #: ../src/guestfs.pod:1996
36424 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36425 msgstr ""
36426
36427 #. type: textblock
36428 #: ../src/guestfs.pod:1998
36429 msgid ""
36430 "In an interactive text-based program, you might call it from a C<SIGINT> "
36431 "signal handler so that pressing C<^C> cancels the current operation.  (You "
36432 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36433 "receive the C<^C> signal)."
36434 msgstr ""
36435
36436 #. type: textblock
36437 #: ../src/guestfs.pod:2003
36438 msgid ""
36439 "In a graphical program, when the main thread is displaying a progress bar "
36440 "with a cancel button, wire up the cancel button to call this function."
36441 msgstr ""
36442
36443 #. type: =head1
36444 #: ../src/guestfs.pod:2007
36445 msgid "PRIVATE DATA AREA"
36446 msgstr ""
36447
36448 #. type: textblock
36449 #: ../src/guestfs.pod:2009
36450 msgid ""
36451 "You can attach named pieces of private data to the libguestfs handle, fetch "
36452 "them by name, and walk over them, for the lifetime of the handle.  This is "
36453 "called the private data area and is only available from the C API."
36454 msgstr ""
36455
36456 #. type: textblock
36457 #: ../src/guestfs.pod:2014
36458 msgid "To attach a named piece of data, use the following call:"
36459 msgstr ""
36460
36461 #. type: verbatim
36462 #: ../src/guestfs.pod:2016
36463 #, no-wrap
36464 msgid ""
36465 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36466 "\n"
36467 msgstr ""
36468 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36469 "\n"
36470
36471 #. type: textblock
36472 #: ../src/guestfs.pod:2018
36473 msgid ""
36474 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36475 "pointer (which can be C<NULL>).  Any previous item with the same key is "
36476 "overwritten."
36477 msgstr ""
36478
36479 #. type: textblock
36480 #: ../src/guestfs.pod:2022
36481 msgid ""
36482 "You can use any C<key> you want, but your key should I<not> start with an "
36483 "underscore character.  Keys beginning with an underscore character are "
36484 "reserved for internal libguestfs purposes (eg. for implementing language "
36485 "bindings).  It is recommended that you prefix the key with some unique "
36486 "string to avoid collisions with other users."
36487 msgstr ""
36488
36489 #. type: textblock
36490 #: ../src/guestfs.pod:2028
36491 msgid "To retrieve the pointer, use:"
36492 msgstr ""
36493
36494 #. type: verbatim
36495 #: ../src/guestfs.pod:2030
36496 #, no-wrap
36497 msgid ""
36498 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36499 "\n"
36500 msgstr ""
36501 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36502 "\n"
36503
36504 #. type: textblock
36505 #: ../src/guestfs.pod:2032
36506 msgid ""
36507 "This function returns C<NULL> if either no data is found associated with "
36508 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36509 "C<NULL>."
36510 msgstr ""
36511
36512 #. type: textblock
36513 #: ../src/guestfs.pod:2036
36514 msgid ""
36515 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36516 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
36517 "all.  In particular, libguestfs does I<not> try to free the data when the "
36518 "handle is closed.  If the data must be freed, then the caller must either "
36519 "free it before calling L</guestfs_close> or must set up a close callback to "
36520 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36521 msgstr ""
36522
36523 #. type: textblock
36524 #: ../src/guestfs.pod:2043
36525 msgid "To walk over all entries, use these two functions:"
36526 msgstr ""
36527
36528 #. type: verbatim
36529 #: ../src/guestfs.pod:2045
36530 #, no-wrap
36531 msgid ""
36532 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36533 "\n"
36534 msgstr ""
36535
36536 #. type: verbatim
36537 #: ../src/guestfs.pod:2047
36538 #, no-wrap
36539 msgid ""
36540 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36541 "\n"
36542 msgstr ""
36543
36544 #. type: textblock
36545 #: ../src/guestfs.pod:2049
36546 msgid ""
36547 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36548 "not have any particular meaning -- keys are not returned in any defined "
36549 "order).  A pointer to the key is returned in C<*key_rtn> and the "
36550 "corresponding data pointer is returned from the function.  C<NULL> is "
36551 "returned if there are no keys stored in the handle."
36552 msgstr ""
36553
36554 #. type: textblock
36555 #: ../src/guestfs.pod:2055
36556 msgid ""
36557 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
36558 "value of this function is also C<NULL> is there are no further entries to "
36559 "return."
36560 msgstr ""
36561
36562 #. type: textblock
36563 #: ../src/guestfs.pod:2059
36564 msgid "Notes about walking over entries:"
36565 msgstr ""
36566
36567 #. type: textblock
36568 #: ../src/guestfs.pod:2065
36569 msgid ""
36570 "You must not call C<guestfs_set_private> while walking over the entries."
36571 msgstr ""
36572
36573 #. type: textblock
36574 #: ../src/guestfs.pod:2070
36575 msgid ""
36576 "The handle maintains an internal iterator which is reset when you call "
36577 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
36578 "call C<guestfs_set_private>."
36579 msgstr ""
36580
36581 #. type: textblock
36582 #: ../src/guestfs.pod:2076
36583 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36584 msgstr ""
36585
36586 #. type: verbatim
36587 #: ../src/guestfs.pod:2078
36588 #, no-wrap
36589 msgid ""
36590 " guestfs_set_private (g, key, NULL);\n"
36591 "\n"
36592 msgstr ""
36593
36594 #. type: textblock
36595 #: ../src/guestfs.pod:2080
36596 msgid "then that C<key> is not returned when walking."
36597 msgstr ""
36598
36599 #. type: textblock
36600 #: ../src/guestfs.pod:2084
36601 msgid ""
36602 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36603 "C<guestfs_next_private> or C<guestfs_set_private>."
36604 msgstr ""
36605
36606 #. type: textblock
36607 #: ../src/guestfs.pod:2090
36608 msgid ""
36609 "The following example code shows how to print all keys and data pointers "
36610 "that are associated with the handle C<g>:"
36611 msgstr ""
36612
36613 #. type: verbatim
36614 #: ../src/guestfs.pod:2093
36615 #, no-wrap
36616 msgid ""
36617 " const char *key;\n"
36618 " void *data = guestfs_first_private (g, &key);\n"
36619 " while (data != NULL)\n"
36620 "   {\n"
36621 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
36622 "     data = guestfs_next_private (g, &key);\n"
36623 "   }\n"
36624 "\n"
36625 msgstr ""
36626
36627 #. type: textblock
36628 #: ../src/guestfs.pod:2101
36629 msgid ""
36630 "More commonly you are only interested in keys that begin with an application-"
36631 "specific prefix C<foo_>.  Modify the loop like so:"
36632 msgstr ""
36633
36634 #. type: verbatim
36635 #: ../src/guestfs.pod:2104
36636 #, no-wrap
36637 msgid ""
36638 " const char *key;\n"
36639 " void *data = guestfs_first_private (g, &key);\n"
36640 " while (data != NULL)\n"
36641 "   {\n"
36642 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36643 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
36644 "     data = guestfs_next_private (g, &key);\n"
36645 "   }\n"
36646 "\n"
36647 msgstr ""
36648
36649 #. type: textblock
36650 #: ../src/guestfs.pod:2113
36651 msgid ""
36652 "If you need to modify keys while walking, then you have to jump back to the "
36653 "beginning of the loop.  For example, to delete all keys prefixed with "
36654 "C<foo_>:"
36655 msgstr ""
36656
36657 #. type: verbatim
36658 #: ../src/guestfs.pod:2117
36659 #, no-wrap
36660 msgid ""
36661 "  const char *key;\n"
36662 "  void *data;\n"
36663 " again:\n"
36664 "  data = guestfs_first_private (g, &key);\n"
36665 "  while (data != NULL)\n"
36666 "    {\n"
36667 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36668 "        {\n"
36669 "          guestfs_set_private (g, key, NULL);\n"
36670 "          /* note that 'key' pointer is now invalid, and so is\n"
36671 "             the internal iterator */\n"
36672 "          goto again;\n"
36673 "        }\n"
36674 "      data = guestfs_next_private (g, &key);\n"
36675 "    }\n"
36676 "\n"
36677 msgstr ""
36678
36679 #. type: textblock
36680 #: ../src/guestfs.pod:2133
36681 msgid ""
36682 "Note that the above loop is guaranteed to terminate because the keys are "
36683 "being deleted, but other manipulations of keys within the loop might not "
36684 "terminate unless you also maintain an indication of which keys have been "
36685 "visited."
36686 msgstr ""
36687
36688 #. type: =end
36689 #: ../src/guestfs.pod:2138 ../src/guestfs.pod:2143
36690 msgid "html"
36691 msgstr "html"
36692
36693 #. type: textblock
36694 #: ../src/guestfs.pod:2140
36695 msgid ""
36696 "<!-- old anchor for the next section --> <a name="
36697 "\"state_machine_and_low_level_event_api\"/>"
36698 msgstr ""
36699 "<!-- old anchor for the next section --> <a name="
36700 "\"state_machine_and_low_level_event_api\"/>"
36701
36702 #. type: =head1
36703 #: ../src/guestfs.pod:2145
36704 msgid "ARCHITECTURE"
36705 msgstr "АРХІТЕКТУРА"
36706
36707 #. type: textblock
36708 #: ../src/guestfs.pod:2147
36709 msgid ""
36710 "Internally, libguestfs is implemented by running an appliance (a special "
36711 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
36712 "process of the main program."
36713 msgstr ""
36714
36715 #. type: verbatim
36716 #: ../src/guestfs.pod:2151
36717 #, no-wrap
36718 msgid ""
36719 "  ___________________\n"
36720 " /                   \\\n"
36721 " | main program      |\n"
36722 " |                   |\n"
36723 " |                   |           child process / appliance\n"
36724 " |                   |           __________________________\n"
36725 " |                   |          / qemu                     \\\n"
36726 " +-------------------+   RPC    |      +-----------------+ |\n"
36727 " | libguestfs     <--------------------> guestfsd        | |\n"
36728 " |                   |          |      +-----------------+ |\n"
36729 " \\___________________/          |      | Linux kernel    | |\n"
36730 "                                |      +--^--------------+ |\n"
36731 "                                \\_________|________________/\n"
36732 "                                          |\n"
36733 "                                   _______v______\n"
36734 "                                  /              \\\n"
36735 "                                  | Device or    |\n"
36736 "                                  | disk image   |\n"
36737 "                                  \\______________/\n"
36738 "\n"
36739 msgstr ""
36740
36741 #. type: textblock
36742 #: ../src/guestfs.pod:2171
36743 msgid ""
36744 "The library, linked to the main program, creates the child process and hence "
36745 "the appliance in the L</guestfs_launch> function."
36746 msgstr ""
36747
36748 #. type: textblock
36749 #: ../src/guestfs.pod:2174
36750 msgid ""
36751 "Inside the appliance is a Linux kernel and a complete stack of userspace "
36752 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
36753 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
36754 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
36755 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
36756 "attached to the qemu process which translates device access by the "
36757 "appliance's Linux kernel into accesses to the image."
36758 msgstr ""
36759
36760 #. type: textblock
36761 #: ../src/guestfs.pod:2183
36762 msgid ""
36763 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
36764 "Although the disk image you are attached to might also be used by some "
36765 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
36766 "care if both libguestfs's qemu process and your virtual machine are trying "
36767 "to update the disk image at the same time, since these usually results in "
36768 "massive disk corruption)."
36769 msgstr ""
36770
36771 #. type: =head1
36772 #: ../src/guestfs.pod:2190
36773 msgid "STATE MACHINE"
36774 msgstr "СКІНЧЕННИЙ АВТОМАТ"
36775
36776 #. type: textblock
36777 #: ../src/guestfs.pod:2192
36778 msgid "libguestfs uses a state machine to model the child process:"
36779 msgstr ""
36780
36781 #. type: verbatim
36782 #: ../src/guestfs.pod:2194
36783 #, no-wrap
36784 msgid ""
36785 "                         |\n"
36786 "                    guestfs_create\n"
36787 "                         |\n"
36788 "                         |\n"
36789 "                     ____V_____\n"
36790 "                    /          \\\n"
36791 "                    |  CONFIG  |\n"
36792 "                    \\__________/\n"
36793 "                     ^ ^   ^  \\\n"
36794 "                    /  |    \\  \\ guestfs_launch\n"
36795 "                   /   |    _\\__V______\n"
36796 "                  /    |   /           \\\n"
36797 "                 /     |   | LAUNCHING |\n"
36798 "                /      |   \\___________/\n"
36799 "               /       |       /\n"
36800 "              /        |  guestfs_launch\n"
36801 "             /         |     /\n"
36802 "    ______  /        __|____V\n"
36803 "   /      \\ ------> /        \\\n"
36804 "   | BUSY |         | READY  |\n"
36805 "   \\______/ <------ \\________/\n"
36806 "\n"
36807 msgstr ""
36808
36809 #. type: textblock
36810 #: ../src/guestfs.pod:2216
36811 msgid ""
36812 "The normal transitions are (1) CONFIG (when the handle is created, but there "
36813 "is no child process), (2) LAUNCHING (when the child process is booting up), "
36814 "(3) alternating between READY and BUSY as commands are issued to, and "
36815 "carried out by, the child process."
36816 msgstr ""
36817
36818 #. type: textblock
36819 #: ../src/guestfs.pod:2221
36820 msgid ""
36821 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
36822 "asynchronously at any time (eg. due to some internal error), and that causes "
36823 "the state to transition back to CONFIG."
36824 msgstr ""
36825
36826 #. type: textblock
36827 #: ../src/guestfs.pod:2225
36828 msgid ""
36829 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
36830 "issued when in the CONFIG state."
36831 msgstr ""
36832
36833 #. type: textblock
36834 #: ../src/guestfs.pod:2228
36835 msgid ""
36836 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
36837 "L</guestfs_launch> blocks until the child process is READY to accept "
36838 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
36839 "moves the state from CONFIG to LAUNCHING while it is running."
36840 msgstr ""
36841
36842 #. type: textblock
36843 #: ../src/guestfs.pod:2234
36844 msgid ""
36845 "API actions such as L</guestfs_mount> can only be issued when in the READY "
36846 "state.  These API calls block waiting for the command to be carried out (ie. "
36847 "the state to transition to BUSY and then back to READY).  There are no non-"
36848 "blocking versions, and no way to issue more than one command per handle at "
36849 "the same time."
36850 msgstr ""
36851
36852 #. type: textblock
36853 #: ../src/guestfs.pod:2240
36854 msgid ""
36855 "Finally, the child process sends asynchronous messages back to the main "
36856 "program, such as kernel log messages.  You can register a callback to "
36857 "receive these messages."
36858 msgstr ""
36859
36860 #. type: =head1
36861 #: ../src/guestfs.pod:2244
36862 msgid "INTERNALS"
36863 msgstr ""
36864
36865 #. type: =head2
36866 #: ../src/guestfs.pod:2246
36867 msgid "COMMUNICATION PROTOCOL"
36868 msgstr ""
36869
36870 #. type: textblock
36871 #: ../src/guestfs.pod:2248
36872 msgid ""
36873 "Don't rely on using this protocol directly.  This section documents how it "
36874 "currently works, but it may change at any time."
36875 msgstr ""
36876
36877 #. type: textblock
36878 #: ../src/guestfs.pod:2251
36879 msgid ""
36880 "The protocol used to talk between the library and the daemon running inside "
36881 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
36882 "1014, RFC 1832, RFC 4506)."
36883 msgstr ""
36884
36885 #. type: textblock
36886 #: ../src/guestfs.pod:2255
36887 msgid ""
36888 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
36889 "this file is automatically generated)."
36890 msgstr ""
36891
36892 #. type: textblock
36893 #: ../src/guestfs.pod:2258
36894 msgid ""
36895 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
36896 "and C<FileOut> parameters, which are handled with very simple request/reply "
36897 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
36898 "parameters, which use the same request and reply messages, but they may also "
36899 "be followed by files sent using a chunked encoding."
36900 msgstr ""
36901
36902 #. type: =head3
36903 #: ../src/guestfs.pod:2265
36904 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
36905 msgstr ""
36906
36907 #. type: textblock
36908 #: ../src/guestfs.pod:2267
36909 msgid "For ordinary functions, the request message is:"
36910 msgstr ""
36911
36912 #. type: verbatim
36913 #: ../src/guestfs.pod:2269
36914 #, no-wrap
36915 msgid ""
36916 " total length (header + arguments,\n"
36917 "      but not including the length word itself)\n"
36918 " struct guestfs_message_header (encoded as XDR)\n"
36919 " struct guestfs_<foo>_args (encoded as XDR)\n"
36920 "\n"
36921 msgstr ""
36922
36923 #. type: textblock
36924 #: ../src/guestfs.pod:2274
36925 msgid ""
36926 "The total length field allows the daemon to allocate a fixed size buffer "
36927 "into which it slurps the rest of the message.  As a result, the total length "
36928 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
36929 "effective size of any request is limited to somewhere under this size."
36930 msgstr ""
36931
36932 #. type: textblock
36933 #: ../src/guestfs.pod:2280
36934 msgid ""
36935 "Note also that many functions don't take any arguments, in which case the "
36936 "C<guestfs_I<foo>_args> is completely omitted."
36937 msgstr ""
36938
36939 #. type: textblock
36940 #: ../src/guestfs.pod:2283
36941 msgid ""
36942 "The header contains the procedure number (C<guestfs_proc>) which is how the "
36943 "receiver knows what type of args structure to expect, or none at all."
36944 msgstr ""
36945
36946 #. type: textblock
36947 #: ../src/guestfs.pod:2287
36948 msgid ""
36949 "For functions that take optional arguments, the optional arguments are "
36950 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
36951 "arguments.  A bitmask in the header indicates which optional arguments are "
36952 "meaningful.  The bitmask is also checked to see if it contains bits set "
36953 "which the daemon does not know about (eg. if more optional arguments were "
36954 "added in a later version of the library), and this causes the call to be "
36955 "rejected."
36956 msgstr ""
36957
36958 #. type: textblock
36959 #: ../src/guestfs.pod:2295
36960 msgid "The reply message for ordinary functions is:"
36961 msgstr ""
36962
36963 #. type: verbatim
36964 #: ../src/guestfs.pod:2297
36965 #, no-wrap
36966 msgid ""
36967 " total length (header + ret,\n"
36968 "      but not including the length word itself)\n"
36969 " struct guestfs_message_header (encoded as XDR)\n"
36970 " struct guestfs_<foo>_ret (encoded as XDR)\n"
36971 "\n"
36972 msgstr ""
36973
36974 #. type: textblock
36975 #: ../src/guestfs.pod:2302
36976 msgid ""
36977 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
36978 "functions that return no formal return values."
36979 msgstr ""
36980
36981 #. type: textblock
36982 #: ../src/guestfs.pod:2305
36983 msgid ""
36984 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
36985 msgstr ""
36986
36987 #. type: textblock
36988 #: ../src/guestfs.pod:2308
36989 msgid ""
36990 "In the case of an error, a flag is set in the header, and the reply message "
36991 "is slightly changed:"
36992 msgstr ""
36993
36994 #. type: verbatim
36995 #: ../src/guestfs.pod:2311
36996 #, no-wrap
36997 msgid ""
36998 " total length (header + error,\n"
36999 "      but not including the length word itself)\n"
37000 " struct guestfs_message_header (encoded as XDR)\n"
37001 " struct guestfs_message_error (encoded as XDR)\n"
37002 "\n"
37003 msgstr ""
37004
37005 #. type: textblock
37006 #: ../src/guestfs.pod:2316
37007 msgid ""
37008 "The C<guestfs_message_error> structure contains the error message as a "
37009 "string."
37010 msgstr ""
37011
37012 #. type: =head3
37013 #: ../src/guestfs.pod:2319
37014 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
37015 msgstr ""
37016
37017 #. type: textblock
37018 #: ../src/guestfs.pod:2321
37019 msgid ""
37020 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
37021 "The normal request message is sent (see above).  However this is followed by "
37022 "a sequence of file chunks."
37023 msgstr ""
37024
37025 #. type: verbatim
37026 #: ../src/guestfs.pod:2325
37027 #, no-wrap
37028 msgid ""
37029 " total length (header + arguments,\n"
37030 "      but not including the length word itself,\n"
37031 "      and not including the chunks)\n"
37032 " struct guestfs_message_header (encoded as XDR)\n"
37033 " struct guestfs_<foo>_args (encoded as XDR)\n"
37034 " sequence of chunks for FileIn param #0\n"
37035 " sequence of chunks for FileIn param #1 etc.\n"
37036 "\n"
37037 msgstr ""
37038
37039 #. type: textblock
37040 #: ../src/guestfs.pod:2333
37041 msgid "The \"sequence of chunks\" is:"
37042 msgstr ""
37043
37044 #. type: verbatim
37045 #: ../src/guestfs.pod:2335
37046 #, no-wrap
37047 msgid ""
37048 " length of chunk (not including length word itself)\n"
37049 " struct guestfs_chunk (encoded as XDR)\n"
37050 " length of chunk\n"
37051 " struct guestfs_chunk (encoded as XDR)\n"
37052 "   ...\n"
37053 " length of chunk\n"
37054 " struct guestfs_chunk (with data.data_len == 0)\n"
37055 "\n"
37056 msgstr ""
37057
37058 #. type: textblock
37059 #: ../src/guestfs.pod:2343
37060 msgid ""
37061 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
37062 "is set in the final chunk to indicate either successful completion or early "
37063 "cancellation."
37064 msgstr ""
37065
37066 #. type: textblock
37067 #: ../src/guestfs.pod:2347
37068 msgid ""
37069 "At time of writing there are no functions that have more than one FileIn "
37070 "parameter.  However this is (theoretically) supported, by sending the "
37071 "sequence of chunks for each FileIn parameter one after another (from left to "
37072 "right)."
37073 msgstr ""
37074
37075 #. type: textblock
37076 #: ../src/guestfs.pod:2352
37077 msgid ""
37078 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
37079 "transfer.  The library does this by sending a chunk with a special flag set "
37080 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
37081 "RPC, does I<not> send any reply, and goes back to reading the next request."
37082 msgstr ""
37083
37084 #. type: textblock
37085 #: ../src/guestfs.pod:2358
37086 msgid ""
37087 "The daemon may also cancel.  It does this by writing a special word "
37088 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
37089 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
37090 "cancel chunk).  The special word is chosen so that even if cancellation "
37091 "happens right at the end of the transfer (after the library has finished "
37092 "writing and has started listening for the reply), the \"spurious\" cancel "
37093 "flag will not be confused with the reply message."
37094 msgstr ""
37095
37096 #. type: textblock
37097 #: ../src/guestfs.pod:2367
37098 msgid ""
37099 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
37100 "limit), and also files where the size is not known in advance (eg. from "
37101 "pipes or sockets).  However the chunks are rather small "
37102 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
37103 "to keep much in memory."
37104 msgstr ""
37105
37106 #. type: =head3
37107 #: ../src/guestfs.pod:2373
37108 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
37109 msgstr ""
37110
37111 #. type: textblock
37112 #: ../src/guestfs.pod:2375
37113 msgid ""
37114 "The protocol for FileOut parameters is exactly the same as for FileIn "
37115 "parameters, but with the roles of daemon and library reversed."
37116 msgstr ""
37117
37118 #. type: verbatim
37119 #: ../src/guestfs.pod:2378
37120 #, no-wrap
37121 msgid ""
37122 " total length (header + ret,\n"
37123 "      but not including the length word itself,\n"
37124 "      and not including the chunks)\n"
37125 " struct guestfs_message_header (encoded as XDR)\n"
37126 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37127 " sequence of chunks for FileOut param #0\n"
37128 " sequence of chunks for FileOut param #1 etc.\n"
37129 "\n"
37130 msgstr ""
37131
37132 #. type: =head3
37133 #: ../src/guestfs.pod:2386
37134 msgid "INITIAL MESSAGE"
37135 msgstr ""
37136
37137 #. type: textblock
37138 #: ../src/guestfs.pod:2388
37139 msgid ""
37140 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
37141 "which indicates that the guest and daemon is alive.  This is what L</"
37142 "guestfs_launch> waits for."
37143 msgstr ""
37144
37145 #. type: =head3
37146 #: ../src/guestfs.pod:2392
37147 msgid "PROGRESS NOTIFICATION MESSAGES"
37148 msgstr ""
37149
37150 #. type: textblock
37151 #: ../src/guestfs.pod:2394
37152 msgid ""
37153 "The daemon may send progress notification messages at any time.  These are "
37154 "distinguished by the normal length word being replaced by "
37155 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
37156 msgstr ""
37157
37158 #. type: textblock
37159 #: ../src/guestfs.pod:2398
37160 msgid ""
37161 "The library turns them into progress callbacks (see L</"
37162 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
37163 "if not."
37164 msgstr ""
37165
37166 #. type: textblock
37167 #: ../src/guestfs.pod:2402
37168 msgid ""
37169 "The daemon self-limits the frequency of progress messages it sends (see "
37170 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
37171 "messages."
37172 msgstr ""
37173
37174 #. type: =head1
37175 #: ../src/guestfs.pod:2406
37176 msgid "LIBGUESTFS VERSION NUMBERS"
37177 msgstr ""
37178
37179 #. type: textblock
37180 #: ../src/guestfs.pod:2408
37181 msgid ""
37182 "Since April 2010, libguestfs has started to make separate development and "
37183 "stable releases, along with corresponding branches in our git repository.  "
37184 "These separate releases can be identified by version number:"
37185 msgstr ""
37186
37187 #. type: verbatim
37188 #: ../src/guestfs.pod:2413
37189 #, no-wrap
37190 msgid ""
37191 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
37192 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
37193 "       |\n"
37194 "       v\n"
37195 " 1  .  3  .  5\n"
37196 " ^           ^\n"
37197 " |           |\n"
37198 " |           `-------- sub-version\n"
37199 " |\n"
37200 " `------ always '1' because we don't change the ABI\n"
37201 "\n"
37202 msgstr ""
37203
37204 #. type: textblock
37205 #: ../src/guestfs.pod:2424
37206 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37207 msgstr ""
37208
37209 #. type: textblock
37210 #: ../src/guestfs.pod:2426
37211 msgid ""
37212 "As time passes we cherry pick fixes from the development branch and backport "
37213 "those into the stable branch, the effect being that the stable branch should "
37214 "get more stable and less buggy over time.  So the stable releases are ideal "
37215 "for people who don't need new features but would just like the software to "
37216 "work."
37217 msgstr ""
37218
37219 #. type: textblock
37220 #: ../src/guestfs.pod:2432
37221 msgid "Our criteria for backporting changes are:"
37222 msgstr ""
37223
37224 #. type: textblock
37225 #: ../src/guestfs.pod:2438
37226 msgid ""
37227 "Documentation changes which don't affect any code are backported unless the "
37228 "documentation refers to a future feature which is not in stable."
37229 msgstr ""
37230
37231 #. type: textblock
37232 #: ../src/guestfs.pod:2444
37233 msgid ""
37234 "Bug fixes which are not controversial, fix obvious problems, and have been "
37235 "well tested are backported."
37236 msgstr ""
37237
37238 #. type: textblock
37239 #: ../src/guestfs.pod:2449
37240 msgid ""
37241 "Simple rearrangements of code which shouldn't affect how it works get "
37242 "backported.  This is so that the code in the two branches doesn't get too "
37243 "far out of step, allowing us to backport future fixes more easily."
37244 msgstr ""
37245
37246 #. type: textblock
37247 #: ../src/guestfs.pod:2455
37248 msgid ""
37249 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37250 "exceptional case: the new feature is required in order to implement an "
37251 "important bug fix."
37252 msgstr ""
37253
37254 #. type: textblock
37255 #: ../src/guestfs.pod:2461
37256 msgid ""
37257 "A new stable branch starts when we think the new features in development are "
37258 "substantial and compelling enough over the current stable branch to warrant "
37259 "it.  When that happens we create new stable and development versions 1.N.0 "
37260 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
37261 "stable at this point, but by backporting fixes from development, that branch "
37262 "will stabilize over time."
37263 msgstr ""
37264
37265 #. type: =head1
37266 #: ../src/guestfs.pod:2469
37267 msgid "EXTENDING LIBGUESTFS"
37268 msgstr ""
37269
37270 #. type: =head2
37271 #: ../src/guestfs.pod:2471
37272 msgid "ADDING A NEW API ACTION"
37273 msgstr ""
37274
37275 #. type: textblock
37276 #: ../src/guestfs.pod:2473
37277 msgid ""
37278 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37279 "documentation) are generated, and this makes it easy to extend the "
37280 "libguestfs API."
37281 msgstr ""
37282
37283 #. type: textblock
37284 #: ../src/guestfs.pod:2477
37285 msgid "To add a new API action there are two changes:"
37286 msgstr ""
37287
37288 #. type: textblock
37289 #: ../src/guestfs.pod:2483
37290 msgid ""
37291 "You need to add a description of the call (name, parameters, return type, "
37292 "tests, documentation) to C<generator/generator_actions.ml>."
37293 msgstr ""
37294
37295 #. type: textblock
37296 #: ../src/guestfs.pod:2486
37297 msgid ""
37298 "There are two sorts of API action, depending on whether the call goes "
37299 "through to the daemon in the appliance, or is serviced entirely by the "
37300 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
37301 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
37302 "an example of the latter, since a trace flag is maintained in the handle and "
37303 "all tracing is done on the library side."
37304 msgstr ""
37305
37306 #. type: textblock
37307 #: ../src/guestfs.pod:2494
37308 msgid ""
37309 "Most new actions are of the first type, and get added to the "
37310 "C<daemon_functions> list.  Each function has a unique procedure number used "
37311 "in the RPC protocol which is assigned to that action when we publish "
37312 "libguestfs and cannot be reused.  Take the latest procedure number and "
37313 "increment it."
37314 msgstr ""
37315
37316 #. type: textblock
37317 #: ../src/guestfs.pod:2500
37318 msgid ""
37319 "For library-only actions of the second type, add to the "
37320 "C<non_daemon_functions> list.  Since these functions are serviced by the "
37321 "library and do not travel over the RPC mechanism to the daemon, these "
37322 "functions do not need a procedure number, and so the procedure number is set "
37323 "to C<-1>."
37324 msgstr ""
37325
37326 #. type: textblock
37327 #: ../src/guestfs.pod:2508
37328 msgid "Implement the action (in C):"
37329 msgstr ""
37330
37331 #. type: textblock
37332 #: ../src/guestfs.pod:2510
37333 msgid ""
37334 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37335 "C<daemon/> directory."
37336 msgstr ""
37337
37338 #. type: textblock
37339 #: ../src/guestfs.pod:2513
37340 msgid ""
37341 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37342 "(note: double underscore) in the C<src/> directory."
37343 msgstr ""
37344
37345 #. type: textblock
37346 #: ../src/guestfs.pod:2516
37347 msgid "In either case, use another function as an example of what to do."
37348 msgstr ""
37349
37350 #. type: textblock
37351 #: ../src/guestfs.pod:2520
37352 msgid "After making these changes, use C<make> to compile."
37353 msgstr ""
37354
37355 #. type: textblock
37356 #: ../src/guestfs.pod:2522
37357 msgid ""
37358 "Note that you don't need to implement the RPC, language bindings, manual "
37359 "pages or anything else.  It's all automatically generated from the OCaml "
37360 "description."
37361 msgstr ""
37362
37363 #. type: =head2
37364 #: ../src/guestfs.pod:2526
37365 msgid "ADDING TESTS FOR AN API ACTION"
37366 msgstr ""
37367
37368 #. type: textblock
37369 #: ../src/guestfs.pod:2528
37370 msgid ""
37371 "You can supply zero or as many tests as you want per API call.  The tests "
37372 "can either be added as part of the API description (C<generator/"
37373 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
37374 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
37375 "slower, so if possible use the first method."
37376 msgstr ""
37377
37378 #. type: textblock
37379 #: ../src/guestfs.pod:2534
37380 msgid ""
37381 "The following describes the test environment used when you add an API test "
37382 "in C<generator_actions.ml>."
37383 msgstr ""
37384
37385 #. type: textblock
37386 #: ../src/guestfs.pod:2537
37387 msgid "The test environment has 4 block devices:"
37388 msgstr ""
37389
37390 #. type: =item
37391 #: ../src/guestfs.pod:2541
37392 msgid "C</dev/sda> 500MB"
37393 msgstr "C</dev/sda> 500 МБ"
37394
37395 #. type: textblock
37396 #: ../src/guestfs.pod:2543
37397 msgid "General block device for testing."
37398 msgstr ""
37399
37400 #. type: =item
37401 #: ../src/guestfs.pod:2545
37402 msgid "C</dev/sdb> 50MB"
37403 msgstr "C</dev/sdb> 50 МБ"
37404
37405 #. type: textblock
37406 #: ../src/guestfs.pod:2547
37407 msgid ""
37408 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37409 "operations."
37410 msgstr ""
37411
37412 #. type: =item
37413 #: ../src/guestfs.pod:2550
37414 msgid "C</dev/sdc> 10MB"
37415 msgstr "C</dev/sdc> 10 МБ"
37416
37417 #. type: textblock
37418 #: ../src/guestfs.pod:2552
37419 msgid "Used in a few tests where two block devices are needed."
37420 msgstr ""
37421
37422 #. type: =item
37423 #: ../src/guestfs.pod:2554
37424 msgid "C</dev/sdd>"
37425 msgstr "C</dev/sdd>"
37426
37427 #. type: textblock
37428 #: ../src/guestfs.pod:2556
37429 msgid "ISO with fixed content (see C<images/test.iso>)."
37430 msgstr ""
37431
37432 #. type: textblock
37433 #: ../src/guestfs.pod:2560
37434 msgid ""
37435 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37436 "appliance and block devices are reused between tests.  So don't try testing "
37437 "L</guestfs_kill_subprocess> :-x"
37438 msgstr ""
37439
37440 #. type: textblock
37441 #: ../src/guestfs.pod:2564
37442 msgid ""
37443 "Each test starts with an initial scenario, selected using one of the "
37444 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
37445 "initialize the disks mentioned above in a particular way as documented in "
37446 "C<generator_types.ml>.  You should not assume anything about the previous "
37447 "contents of other disks that are not initialized."
37448 msgstr ""
37449
37450 #. type: textblock
37451 #: ../src/guestfs.pod:2570
37452 msgid ""
37453 "You can add a prerequisite clause to any individual test.  This is a run-"
37454 "time check, which, if it fails, causes the test to be skipped.  Useful if "
37455 "testing a command which might not work on all variations of libguestfs "
37456 "builds.  A test that has prerequisite of C<Always> means to run "
37457 "unconditionally."
37458 msgstr ""
37459
37460 #. type: textblock
37461 #: ../src/guestfs.pod:2576
37462 msgid ""
37463 "In addition, packagers can skip individual tests by setting environment "
37464 "variables before running C<make check>."
37465 msgstr ""
37466
37467 #. type: verbatim
37468 #: ../src/guestfs.pod:2579
37469 #, no-wrap
37470 msgid ""
37471 " SKIP_TEST_<CMD>_<NUM>=1\n"
37472 "\n"
37473 msgstr ""
37474
37475 #. type: textblock
37476 #: ../src/guestfs.pod:2581
37477 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
37478 msgstr ""
37479
37480 #. type: textblock
37481 #: ../src/guestfs.pod:2583
37482 msgid "or:"
37483 msgstr "або:"
37484
37485 #. type: verbatim
37486 #: ../src/guestfs.pod:2585
37487 #, no-wrap
37488 msgid ""
37489 " SKIP_TEST_<CMD>=1\n"
37490 "\n"
37491 msgstr ""
37492
37493 #. type: textblock
37494 #: ../src/guestfs.pod:2587
37495 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
37496 msgstr ""
37497
37498 #. type: textblock
37499 #: ../src/guestfs.pod:2589
37500 msgid "Packagers can run only certain tests by setting for example:"
37501 msgstr ""
37502
37503 #. type: verbatim
37504 #: ../src/guestfs.pod:2591
37505 #, no-wrap
37506 msgid ""
37507 " TEST_ONLY=\"vfs_type zerofree\"\n"
37508 "\n"
37509 msgstr ""
37510
37511 #. type: textblock
37512 #: ../src/guestfs.pod:2593
37513 msgid ""
37514 "See C<capitests/tests.c> for more details of how these environment variables "
37515 "work."
37516 msgstr ""
37517
37518 #. type: =head2
37519 #: ../src/guestfs.pod:2596
37520 msgid "DEBUGGING NEW API ACTIONS"
37521 msgstr ""
37522
37523 #. type: textblock
37524 #: ../src/guestfs.pod:2598
37525 msgid "Test new actions work before submitting them."
37526 msgstr ""
37527
37528 #. type: textblock
37529 #: ../src/guestfs.pod:2600
37530 msgid "You can use guestfish to try out new commands."
37531 msgstr ""
37532
37533 #. type: textblock
37534 #: ../src/guestfs.pod:2602
37535 msgid ""
37536 "Debugging the daemon is a problem because it runs inside a minimal "
37537 "environment.  However you can fprintf messages in the daemon to stderr, and "
37538 "they will show up if you use C<guestfish -v>."
37539 msgstr ""
37540
37541 #. type: =head2
37542 #: ../src/guestfs.pod:2606
37543 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
37544 msgstr ""
37545
37546 #. type: textblock
37547 #: ../src/guestfs.pod:2608
37548 msgid ""
37549 "Our C source code generally adheres to some basic code-formatting "
37550 "conventions.  The existing code base is not totally consistent on this "
37551 "front, but we do prefer that contributed code be formatted similarly.  In "
37552 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
37553 "indentation level, and other than that, follow the K&R style."
37554 msgstr ""
37555
37556 #. type: textblock
37557 #: ../src/guestfs.pod:2614
37558 msgid ""
37559 "If you use Emacs, add the following to one of one of your start-up files (e."
37560 "g., ~/.emacs), to help ensure that you get indentation right:"
37561 msgstr ""
37562
37563 #. type: verbatim
37564 #: ../src/guestfs.pod:2617
37565 #, no-wrap
37566 msgid ""
37567 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
37568 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
37569 " (add-hook 'find-file-hook\n"
37570 "     '(lambda () (if (and buffer-file-name\n"
37571 "                          (string-match \"/libguestfs\\\\>\"\n"
37572 "                              (buffer-file-name))\n"
37573 "                          (not (string-equal mode-name \"Change Log\"))\n"
37574 "                          (not (string-equal mode-name \"Makefile\")))\n"
37575 "                     (setq indent-tabs-mode nil))))\n"
37576 " \n"
37577 msgstr ""
37578
37579 #. type: verbatim
37580 #: ../src/guestfs.pod:2627
37581 #, no-wrap
37582 msgid ""
37583 " ;;; When editing C sources in libguestfs, use this style.\n"
37584 " (defun libguestfs-c-mode ()\n"
37585 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
37586 "   (interactive)\n"
37587 "   (c-set-style \"K&R\")\n"
37588 "   (setq c-indent-level 2)\n"
37589 "   (setq c-basic-offset 2))\n"
37590 " (add-hook 'c-mode-hook\n"
37591 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
37592 "                               (buffer-file-name))\n"
37593 "                           (libguestfs-c-mode))))\n"
37594 "\n"
37595 msgstr ""
37596
37597 #. type: textblock
37598 #: ../src/guestfs.pod:2639
37599 msgid "Enable warnings when compiling (and fix any problems this finds):"
37600 msgstr ""
37601
37602 #. type: verbatim
37603 #: ../src/guestfs.pod:2642
37604 #, no-wrap
37605 msgid ""
37606 " ./configure --enable-gcc-warnings\n"
37607 "\n"
37608 msgstr ""
37609 " ./configure --enable-gcc-warnings\n"
37610 "\n"
37611
37612 #. type: textblock
37613 #: ../src/guestfs.pod:2644
37614 msgid "Useful targets are:"
37615 msgstr ""
37616
37617 #. type: verbatim
37618 #: ../src/guestfs.pod:2646
37619 #, no-wrap
37620 msgid ""
37621 " make syntax-check  # checks the syntax of the C code\n"
37622 " make check         # runs the test suite\n"
37623 "\n"
37624 msgstr ""
37625
37626 #. type: =head2
37627 #: ../src/guestfs.pod:2649
37628 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
37629 msgstr ""
37630
37631 #. type: textblock
37632 #: ../src/guestfs.pod:2651
37633 msgid ""
37634 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
37635 "which are used to do shell quoting."
37636 msgstr ""
37637
37638 #. type: =item
37639 #: ../src/guestfs.pod:2656
37640 msgid "%Q"
37641 msgstr "%Q"
37642
37643 #. type: textblock
37644 #: ../src/guestfs.pod:2658
37645 msgid ""
37646 "Simple shell quoted string.  Any spaces or other shell characters are "
37647 "escaped for you."
37648 msgstr ""
37649
37650 #. type: =item
37651 #: ../src/guestfs.pod:2661
37652 msgid "%R"
37653 msgstr "%R"
37654
37655 #. type: textblock
37656 #: ../src/guestfs.pod:2663
37657 msgid ""
37658 "Same as C<%Q> except the string is treated as a path which is prefixed by "
37659 "the sysroot."
37660 msgstr ""
37661
37662 #. type: verbatim
37663 #: ../src/guestfs.pod:2670
37664 #, no-wrap
37665 msgid ""
37666 " asprintf (&cmd, \"cat %R\", path);\n"
37667 "\n"
37668 msgstr ""
37669
37670 #. type: textblock
37671 #: ../src/guestfs.pod:2672
37672 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
37673 msgstr ""
37674
37675 #. type: textblock
37676 #: ../src/guestfs.pod:2674
37677 msgid ""
37678 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
37679 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
37680 "they are not passed via the shell (instead, straight to exec).  You probably "
37681 "want to use the C<sysroot_path()> function however."
37682 msgstr ""
37683
37684 #. type: =head2
37685 #: ../src/guestfs.pod:2680
37686 msgid "SUBMITTING YOUR NEW API ACTIONS"
37687 msgstr ""
37688
37689 #. type: textblock
37690 #: ../src/guestfs.pod:2682
37691 msgid ""
37692 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
37693 "libguestfs> and CC to L<rjones@redhat.com>."
37694 msgstr ""
37695
37696 #. type: =head2
37697 #: ../src/guestfs.pod:2686
37698 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
37699 msgstr ""
37700
37701 #. type: textblock
37702 #: ../src/guestfs.pod:2688
37703 msgid "We support i18n (gettext anyhow) in the library."
37704 msgstr ""
37705
37706 #. type: textblock
37707 #: ../src/guestfs.pod:2690
37708 msgid ""
37709 "However many messages come from the daemon, and we don't translate those at "
37710 "the moment.  One reason is that the appliance generally has all locale files "
37711 "removed from it, because they take up a lot of space.  So we'd have to readd "
37712 "some of those, as well as copying our PO files into the appliance."
37713 msgstr ""
37714
37715 #. type: textblock
37716 #: ../src/guestfs.pod:2696
37717 msgid ""
37718 "Debugging messages are never translated, since they are intended for the "
37719 "programmers."
37720 msgstr ""
37721
37722 #. type: =head2
37723 #: ../src/guestfs.pod:2699
37724 msgid "SOURCE CODE SUBDIRECTORIES"
37725 msgstr ""
37726
37727 #. type: textblock
37728 #: ../src/guestfs.pod:2705
37729 msgid "The libguestfs appliance, build scripts and so on."
37730 msgstr ""
37731
37732 #. type: =item
37733 #: ../src/guestfs.pod:2707
37734 msgid "C<capitests>"
37735 msgstr "C<capitests>"
37736
37737 #. type: textblock
37738 #: ../src/guestfs.pod:2709
37739 msgid "Automated tests of the C API."
37740 msgstr ""
37741
37742 #. type: =item
37743 #: ../src/guestfs.pod:2711
37744 msgid "C<cat>"
37745 msgstr "C<cat>"
37746
37747 #. type: textblock
37748 #: ../src/guestfs.pod:2713
37749 msgid ""
37750 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
37751 "documentation."
37752 msgstr ""
37753
37754 #. type: =item
37755 #: ../src/guestfs.pod:2716
37756 msgid "C<caution>"
37757 msgstr ""
37758
37759 #. type: textblock
37760 #: ../src/guestfs.pod:2718
37761 msgid ""
37762 "Safety and liveness tests of components that libguestfs depends upon (not of "
37763 "libguestfs itself).  Mainly this is for qemu and the kernel."
37764 msgstr ""
37765
37766 #. type: =item
37767 #: ../src/guestfs.pod:2721
37768 msgid "C<contrib>"
37769 msgstr "C<contrib>"
37770
37771 #. type: textblock
37772 #: ../src/guestfs.pod:2723
37773 msgid "Outside contributions, experimental parts."
37774 msgstr ""
37775
37776 #. type: =item
37777 #: ../src/guestfs.pod:2725
37778 msgid "C<daemon>"
37779 msgstr "C<daemon>"
37780
37781 #. type: textblock
37782 #: ../src/guestfs.pod:2727
37783 msgid ""
37784 "The daemon that runs inside the libguestfs appliance and carries out actions."
37785 msgstr ""
37786
37787 #. type: =item
37788 #: ../src/guestfs.pod:2730
37789 msgid "C<df>"
37790 msgstr "C<df>"
37791
37792 #. type: textblock
37793 #: ../src/guestfs.pod:2732
37794 msgid "L<virt-df(1)> command and documentation."
37795 msgstr ""
37796
37797 #. type: =item
37798 #: ../src/guestfs.pod:2734
37799 msgid "C<edit>"
37800 msgstr ""
37801
37802 #. type: textblock
37803 #: ../src/guestfs.pod:2736
37804 msgid "L<virt-edit(1)> command and documentation."
37805 msgstr ""
37806
37807 #. type: =item
37808 #: ../src/guestfs.pod:2738
37809 msgid "C<examples>"
37810 msgstr "C<examples>"
37811
37812 #. type: textblock
37813 #: ../src/guestfs.pod:2740
37814 msgid "C API example code."
37815 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
37816
37817 #. type: =item
37818 #: ../src/guestfs.pod:2742
37819 msgid "C<fish>"
37820 msgstr "C<fish>"
37821
37822 #. type: textblock
37823 #: ../src/guestfs.pod:2744
37824 msgid ""
37825 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
37826 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
37827 "L<virt-tar-out(1)>."
37828 msgstr ""
37829
37830 #. type: =item
37831 #: ../src/guestfs.pod:2748
37832 msgid "C<fuse>"
37833 msgstr "C<fuse>"
37834
37835 #. type: textblock
37836 #: ../src/guestfs.pod:2750
37837 msgid ""
37838 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
37839 msgstr ""
37840
37841 #. type: =item
37842 #: ../src/guestfs.pod:2752
37843 msgid "C<generator>"
37844 msgstr "C<generator>"
37845
37846 #. type: textblock
37847 #: ../src/guestfs.pod:2754
37848 msgid ""
37849 "The crucially important generator, used to automatically generate large "
37850 "amounts of boilerplate C code for things like RPC and bindings."
37851 msgstr ""
37852
37853 #. type: =item
37854 #: ../src/guestfs.pod:2757
37855 msgid "C<images>"
37856 msgstr "C<images>"
37857
37858 #. type: textblock
37859 #: ../src/guestfs.pod:2759
37860 msgid "Files used by the test suite."
37861 msgstr ""
37862
37863 #. type: textblock
37864 #: ../src/guestfs.pod:2761
37865 msgid "Some \"phony\" guest images which we test against."
37866 msgstr ""
37867
37868 #. type: =item
37869 #: ../src/guestfs.pod:2763
37870 msgid "C<inspector>"
37871 msgstr "C<inspector>"
37872
37873 #. type: textblock
37874 #: ../src/guestfs.pod:2765
37875 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
37876 msgstr ""
37877
37878 #. type: =item
37879 #: ../src/guestfs.pod:2767
37880 msgid "C<logo>"
37881 msgstr "C<logo>"
37882
37883 #. type: textblock
37884 #: ../src/guestfs.pod:2769
37885 msgid "Logo used on the website.  The fish is called Arthur by the way."
37886 msgstr ""
37887
37888 #. type: =item
37889 #: ../src/guestfs.pod:2771
37890 msgid "C<m4>"
37891 msgstr "C<m4>"
37892
37893 #. type: textblock
37894 #: ../src/guestfs.pod:2773
37895 msgid "M4 macros used by autoconf."
37896 msgstr ""
37897
37898 #. type: =item
37899 #: ../src/guestfs.pod:2775
37900 msgid "C<po>"
37901 msgstr "C<po>"
37902
37903 #. type: textblock
37904 #: ../src/guestfs.pod:2777
37905 msgid "Translations of simple gettext strings."
37906 msgstr "Переклади простих рядків gettext."
37907
37908 #. type: =item
37909 #: ../src/guestfs.pod:2779
37910 msgid "C<po-docs>"
37911 msgstr "C<po-docs>"
37912
37913 #. type: textblock
37914 #: ../src/guestfs.pod:2781
37915 msgid ""
37916 "The build infrastructure and PO files for translations of manpages and POD "
37917 "files.  Eventually this will be combined with the C<po> directory, but that "
37918 "is rather complicated."
37919 msgstr ""
37920
37921 #. type: =item
37922 #: ../src/guestfs.pod:2785
37923 msgid "C<regressions>"
37924 msgstr "C<regressions>"
37925
37926 #. type: textblock
37927 #: ../src/guestfs.pod:2787
37928 msgid "Regression tests."
37929 msgstr "Тести на регресії."
37930
37931 #. type: =item
37932 #: ../src/guestfs.pod:2789
37933 msgid "C<rescue>"
37934 msgstr "C<rescue>"
37935
37936 #. type: textblock
37937 #: ../src/guestfs.pod:2791
37938 msgid "L<virt-rescue(1)> command and documentation."
37939 msgstr ""
37940
37941 #. type: =item
37942 #: ../src/guestfs.pod:2793
37943 msgid "C<src>"
37944 msgstr "C<src>"
37945
37946 #. type: textblock
37947 #: ../src/guestfs.pod:2795
37948 msgid "Source code to the C library."
37949 msgstr ""
37950
37951 #. type: =item
37952 #: ../src/guestfs.pod:2797
37953 msgid "C<tools>"
37954 msgstr "C<tools>"
37955
37956 #. type: textblock
37957 #: ../src/guestfs.pod:2799
37958 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
37959 msgstr ""
37960
37961 #. type: =item
37962 #: ../src/guestfs.pod:2801
37963 msgid "C<test-tool>"
37964 msgstr "C<test-tool>"
37965
37966 #. type: textblock
37967 #: ../src/guestfs.pod:2803
37968 msgid ""
37969 "Test tool for end users to test if their qemu/kernel combination will work "
37970 "with libguestfs."
37971 msgstr ""
37972
37973 #. type: =item
37974 #: ../src/guestfs.pod:2806
37975 msgid "C<csharp>"
37976 msgstr "C<csharp>"
37977
37978 #. type: =item
37979 #: ../src/guestfs.pod:2808
37980 msgid "C<haskell>"
37981 msgstr "C<haskell>"
37982
37983 #. type: =item
37984 #: ../src/guestfs.pod:2810
37985 msgid "C<java>"
37986 msgstr "C<java>"
37987
37988 #. type: =item
37989 #: ../src/guestfs.pod:2812
37990 msgid "C<ocaml>"
37991 msgstr "C<ocaml>"
37992
37993 #. type: =item
37994 #: ../src/guestfs.pod:2814
37995 msgid "C<php>"
37996 msgstr "C<php>"
37997
37998 #. type: =item
37999 #: ../src/guestfs.pod:2816
38000 msgid "C<perl>"
38001 msgstr "C<perl>"
38002
38003 #. type: =item
38004 #: ../src/guestfs.pod:2818
38005 msgid "C<python>"
38006 msgstr "C<python>"
38007
38008 #. type: =item
38009 #: ../src/guestfs.pod:2820
38010 msgid "C<ruby>"
38011 msgstr "C<ruby>"
38012
38013 #. type: textblock
38014 #: ../src/guestfs.pod:2822
38015 msgid "Language bindings."
38016 msgstr "Прив’язки до мов програмування."
38017
38018 #. type: =head2
38019 #: ../src/guestfs.pod:2826
38020 msgid "MAKING A STABLE RELEASE"
38021 msgstr ""
38022
38023 #. type: textblock
38024 #: ../src/guestfs.pod:2828
38025 msgid ""
38026 "When we make a stable release, there are several steps documented here.  See "
38027 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
38028 "branch policy."
38029 msgstr ""
38030
38031 #. type: textblock
38032 #: ../src/guestfs.pod:2836
38033 msgid ""
38034 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
38035 msgstr ""
38036
38037 #. type: textblock
38038 #: ../src/guestfs.pod:2841
38039 msgid "Finalize RELEASE-NOTES."
38040 msgstr ""
38041
38042 #. type: textblock
38043 #: ../src/guestfs.pod:2845
38044 msgid "Update ROADMAP."
38045 msgstr ""
38046
38047 #. type: textblock
38048 #: ../src/guestfs.pod:2849
38049 msgid "Run C<src/api-support/update-from-tarballs.sh>."
38050 msgstr ""
38051
38052 #. type: textblock
38053 #: ../src/guestfs.pod:2853
38054 msgid "Push and pull from Transifex."
38055 msgstr ""
38056
38057 #. type: textblock
38058 #: ../src/guestfs.pod:2855
38059 msgid "Run:"
38060 msgstr ""
38061
38062 #. type: verbatim
38063 #: ../src/guestfs.pod:2857
38064 #, no-wrap
38065 msgid ""
38066 " tx push -s\n"
38067 "\n"
38068 msgstr ""
38069
38070 #. type: textblock
38071 #: ../src/guestfs.pod:2859
38072 msgid "to push the latest POT files to Transifex.  Then run:"
38073 msgstr ""
38074
38075 #. type: verbatim
38076 #: ../src/guestfs.pod:2861
38077 #, no-wrap
38078 msgid ""
38079 " ./tx-pull.sh\n"
38080 "\n"
38081 msgstr ""
38082
38083 #. type: textblock
38084 #: ../src/guestfs.pod:2863
38085 msgid "which is a wrapper to pull the latest translated C<*.po> files."
38086 msgstr ""
38087
38088 #. type: textblock
38089 #: ../src/guestfs.pod:2867
38090 msgid ""
38091 "Create new stable and development directories under L<http://libguestfs.org/"
38092 "download>."
38093 msgstr ""
38094
38095 #. type: textblock
38096 #: ../src/guestfs.pod:2872
38097 msgid "Create the branch in git:"
38098 msgstr ""
38099
38100 #. type: verbatim
38101 #: ../src/guestfs.pod:2874
38102 #, no-wrap
38103 msgid ""
38104 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
38105 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
38106 " git branch stable-1.XX\n"
38107 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
38108 "\n"
38109 msgstr ""
38110
38111 #. type: =head1
38112 #: ../src/guestfs.pod:2881
38113 msgid "LIMITS"
38114 msgstr ""
38115
38116 #. type: =head2
38117 #: ../src/guestfs.pod:2883
38118 msgid "PROTOCOL LIMITS"
38119 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
38120
38121 #. type: textblock
38122 #: ../src/guestfs.pod:2885
38123 msgid ""
38124 "Internally libguestfs uses a message-based protocol to pass API calls and "
38125 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
38126 "plenty more detail about this).  The maximum message size used by the "
38127 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
38128 "aware of this limit.  The API calls which may be affected are individually "
38129 "documented, with a link back to this section of the documentation."
38130 msgstr ""
38131
38132 #. type: textblock
38133 #: ../src/guestfs.pod:2893
38134 msgid ""
38135 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
38136 "a simple string.  Because this string is at some point internally encoded as "
38137 "a message, the maximum size that it can return is slightly under 4 MB.  If "
38138 "the requested file is larger than this then you will get an error."
38139 msgstr ""
38140
38141 #. type: textblock
38142 #: ../src/guestfs.pod:2899
38143 msgid ""
38144 "In order to transfer large files into and out of the guest filesystem, you "
38145 "need to use particular calls that support this.  The sections L</UPLOADING> "
38146 "and L</DOWNLOADING> document how to do this."
38147 msgstr ""
38148
38149 #. type: textblock
38150 #: ../src/guestfs.pod:2903
38151 msgid ""
38152 "You might also consider mounting the disk image using our FUSE filesystem "
38153 "support (L<guestmount(1)>)."
38154 msgstr ""
38155
38156 #. type: =head2
38157 #: ../src/guestfs.pod:2906
38158 msgid "MAXIMUM NUMBER OF DISKS"
38159 msgstr ""
38160
38161 #. type: textblock
38162 #: ../src/guestfs.pod:2908
38163 msgid "When using virtio disks (the default) the current limit is B<25> disks."
38164 msgstr ""
38165
38166 #. type: textblock
38167 #: ../src/guestfs.pod:2911
38168 msgid ""
38169 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
38170 "slots.  However febootstrap only understands disks with names C</dev/vda> "
38171 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
38172 "purposes."
38173 msgstr ""
38174
38175 #. type: textblock
38176 #: ../src/guestfs.pod:2916
38177 msgid ""
38178 "We are working to substantially raise this limit in future versions but it "
38179 "requires complex changes to qemu."
38180 msgstr ""
38181
38182 #. type: textblock
38183 #: ../src/guestfs.pod:2919
38184 msgid ""
38185 "In future versions of libguestfs it should also be possible to \"hot plug\" "
38186 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
38187 "requires changes to qemu."
38188 msgstr ""
38189
38190 #. type: =head2
38191 #: ../src/guestfs.pod:2923
38192 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
38193 msgstr ""
38194
38195 #. type: textblock
38196 #: ../src/guestfs.pod:2925
38197 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38198 msgstr ""
38199
38200 #. type: textblock
38201 #: ../src/guestfs.pod:2927
38202 msgid ""
38203 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
38204 "vda>, and C</dev/vda1> through C</dev/vda15>)."
38205 msgstr ""
38206
38207 #. type: textblock
38208 #: ../src/guestfs.pod:2930
38209 msgid ""
38210 "If you attach a disk with more than 15 partitions, the extra partitions are "
38211 "ignored by libguestfs."
38212 msgstr ""
38213
38214 #. type: =head2
38215 #: ../src/guestfs.pod:2933
38216 msgid "MAXIMUM SIZE OF A DISK"
38217 msgstr ""
38218
38219 #. type: textblock
38220 #: ../src/guestfs.pod:2935
38221 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38222 msgstr ""
38223
38224 #. type: textblock
38225 #: ../src/guestfs.pod:2937
38226 msgid ""
38227 "We have tested block devices up to 1 exabyte (2**60 or "
38228 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38229 "filesystem."
38230 msgstr ""
38231
38232 #. type: textblock
38233 #: ../src/guestfs.pod:2941
38234 msgid ""
38235 "Although libguestfs probably does not impose any limit, the underlying host "
38236 "storage will.  If you store disk images on a host ext4 filesystem, then the "
38237 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38238 "TB).  If you store disk images as host logical volumes then you are limited "
38239 "by the maximum size of an LV."
38240 msgstr ""
38241
38242 #. type: textblock
38243 #: ../src/guestfs.pod:2947
38244 msgid ""
38245 "For the hugest disk image files, we recommend using XFS on the host for "
38246 "storage."
38247 msgstr ""
38248
38249 #. type: =head2
38250 #: ../src/guestfs.pod:2950
38251 msgid "MAXIMUM SIZE OF A PARTITION"
38252 msgstr ""
38253
38254 #. type: textblock
38255 #: ../src/guestfs.pod:2952
38256 msgid ""
38257 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38258 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
38259 "address a partition located beyond 2 TB on the disk."
38260 msgstr ""
38261
38262 #. type: textblock
38263 #: ../src/guestfs.pod:2956
38264 msgid ""
38265 "It is recommended that you use GPT partitions on disks which are larger than "
38266 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
38267 "which are theoretically larger than the largest disk we could support."
38268 msgstr ""
38269
38270 #. type: =head2
38271 #: ../src/guestfs.pod:2961
38272 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38273 msgstr ""
38274
38275 #. type: textblock
38276 #: ../src/guestfs.pod:2963
38277 msgid ""
38278 "This depends on the filesystem type.  libguestfs itself does not impose any "
38279 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
38280 "what these limits are."
38281 msgstr ""
38282
38283 #. type: =head2
38284 #: ../src/guestfs.pod:2967
38285 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38286 msgstr ""
38287
38288 #. type: textblock
38289 #: ../src/guestfs.pod:2969
38290 msgid ""
38291 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
38292 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38293 "uploads and downloads."
38294 msgstr ""
38295
38296 #. type: =head2
38297 #: ../src/guestfs.pod:2973
38298 msgid "INSPECTION LIMITS"
38299 msgstr ""
38300
38301 #. type: textblock
38302 #: ../src/guestfs.pod:2975
38303 msgid ""
38304 "The inspection code has several arbitrary limits on things like the size of "
38305 "Windows Registry hive it will read, and the length of product name.  These "
38306 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38307 "memory and disk space on the host, and should not be reached in practice.  "
38308 "See the source code for more information."
38309 msgstr ""
38310
38311 #. type: textblock
38312 #: ../src/guestfs.pod:3001
38313 msgid ""
38314 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
38315 "effect as calling C<guestfs_set_verbose (g, 1)>."
38316 msgstr ""
38317
38318 #. type: textblock
38319 #: ../src/guestfs.pod:3013
38320 msgid ""
38321 "Set the path that libguestfs uses to search for a supermin appliance.  See "
38322 "the discussion of paths in section L</PATH> above."
38323 msgstr ""
38324
38325 #. type: textblock
38326 #: ../src/guestfs.pod:3022
38327 msgid "See also L</QEMU WRAPPERS> above."
38328 msgstr ""
38329
38330 #. type: textblock
38331 #: ../src/guestfs.pod:3026
38332 msgid ""
38333 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
38334 "effect as calling C<guestfs_set_trace (g, 1)>."
38335 msgstr ""
38336
38337 #. type: textblock
38338 #: ../src/guestfs.pod:3044
38339 msgid ""
38340 "L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-"
38341 "perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, L<guestfish(1)>, "
38342 "L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
38343 "L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)"
38344 ">, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, "
38345 "L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, L<virt-tar-in(1)>, "
38346 "L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
38347 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
38348 msgstr ""
38349
38350 #. type: textblock
38351 #: ../src/guestfs.pod:3074
38352 msgid ""
38353 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
38354 "(8)>, L<disktype(1)>."
38355 msgstr ""
38356
38357 #. type: =head1
38358 #: ../src/guestfs.pod:3081 ../tools/virt-make-fs.pl:553
38359 #: ../tools/virt-win-reg.pl:761
38360 msgid "BUGS"
38361 msgstr "ВАДИ"
38362
38363 #. type: textblock
38364 #: ../src/guestfs.pod:3083
38365 msgid "To get a list of bugs against libguestfs use this link:"
38366 msgstr ""
38367 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
38368 "посиланням:"
38369
38370 #. type: textblock
38371 #: ../src/guestfs.pod:3085
38372 msgid ""
38373 "L<https://bugzilla.redhat.com/buglist.cgi?"
38374 "component=libguestfs&product=Virtualization+Tools>"
38375 msgstr ""
38376 "L<https://bugzilla.redhat.com/buglist.cgi?"
38377 "component=libguestfs&product=Virtualization+Tools>"
38378
38379 #. type: textblock
38380 #: ../src/guestfs.pod:3087
38381 msgid "To report a new bug against libguestfs use this link:"
38382 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
38383
38384 #. type: textblock
38385 #: ../src/guestfs.pod:3089
38386 msgid ""
38387 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38388 "component=libguestfs&product=Virtualization+Tools>"
38389 msgstr ""
38390 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38391 "component=libguestfs&product=Virtualization+Tools>"
38392
38393 #. type: textblock
38394 #: ../src/guestfs.pod:3091
38395 msgid "When reporting a bug, please check:"
38396 msgstr ""
38397
38398 #. type: textblock
38399 #: ../src/guestfs.pod:3097
38400 msgid "That the bug hasn't been reported already."
38401 msgstr ""
38402
38403 #. type: textblock
38404 #: ../src/guestfs.pod:3101
38405 msgid "That you are testing a recent version."
38406 msgstr ""
38407
38408 #. type: textblock
38409 #: ../src/guestfs.pod:3105
38410 msgid "Describe the bug accurately, and give a way to reproduce it."
38411 msgstr ""
38412
38413 #. type: textblock
38414 #: ../src/guestfs.pod:3109
38415 msgid ""
38416 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38417 "bug report."
38418 msgstr ""
38419
38420 #. type: textblock
38421 #: ../test-tool/libguestfs-test-tool.pod:5
38422 msgid "libguestfs-test-tool - End user tests for libguestfs"
38423 msgstr ""
38424
38425 #. type: verbatim
38426 #: ../test-tool/libguestfs-test-tool.pod:9
38427 #, no-wrap
38428 msgid ""
38429 " libguestfs-test-tool [--options]\n"
38430 "\n"
38431 msgstr ""
38432
38433 #. type: textblock
38434 #: ../test-tool/libguestfs-test-tool.pod:13
38435 msgid ""
38436 "libguestfs-test-tool is a test program shipped with libguestfs to end users "
38437 "and developers, to allow them to check basic libguestfs functionality is "
38438 "working.  This is needed because libguestfs occasionally breaks for reasons "
38439 "beyond our control: usually because of changes in the underlying qemu or "
38440 "kernel packages, or the host environment."
38441 msgstr ""
38442
38443 #. type: textblock
38444 #: ../test-tool/libguestfs-test-tool.pod:20
38445 msgid "If you suspect a problem in libguestfs, then just run:"
38446 msgstr ""
38447
38448 #. type: verbatim
38449 #: ../test-tool/libguestfs-test-tool.pod:22
38450 #, no-wrap
38451 msgid ""
38452 " libguestfs-test-tool\n"
38453 "\n"
38454 msgstr ""
38455
38456 #. type: textblock
38457 #: ../test-tool/libguestfs-test-tool.pod:24
38458 msgid "It will print lots of diagnostic messages."
38459 msgstr ""
38460
38461 #. type: textblock
38462 #: ../test-tool/libguestfs-test-tool.pod:26
38463 msgid "If it runs to completion successfully, you will see this near the end:"
38464 msgstr ""
38465
38466 #. type: verbatim
38467 #: ../test-tool/libguestfs-test-tool.pod:28
38468 #, no-wrap
38469 msgid ""
38470 " ===== TEST FINISHED OK =====\n"
38471 "\n"
38472 msgstr ""
38473
38474 #. type: textblock
38475 #: ../test-tool/libguestfs-test-tool.pod:30
38476 msgid "and the test tool will exit with code 0."
38477 msgstr ""
38478
38479 #. type: textblock
38480 #: ../test-tool/libguestfs-test-tool.pod:32
38481 msgid ""
38482 "If it fails (and/or exits with non-zero error code), please paste the "
38483 "B<complete, unedited> output of the test tool into a bug report.  More "
38484 "information about reporting bugs can be found on the L<http://libguestfs.org/"
38485 "> website."
38486 msgstr ""
38487
38488 #. type: =item
38489 #: ../test-tool/libguestfs-test-tool.pod:41
38490 msgid "I<--help>"
38491 msgstr "I<--help>"
38492
38493 #. type: textblock
38494 #: ../test-tool/libguestfs-test-tool.pod:43
38495 msgid "Display short usage information and exit."
38496 msgstr ""
38497
38498 #. type: =item
38499 #: ../test-tool/libguestfs-test-tool.pod:45
38500 msgid "I<--qemu qemu_binary>"
38501 msgstr "I<--qemu виконуваний_файл_qemu>"
38502
38503 #. type: textblock
38504 #: ../test-tool/libguestfs-test-tool.pod:47
38505 msgid ""
38506 "If you have downloaded another qemu binary, point this option at the full "
38507 "path of the binary to try it."
38508 msgstr ""
38509
38510 #. type: =item
38511 #: ../test-tool/libguestfs-test-tool.pod:50
38512 msgid "I<--qemudir qemu_source_dir>"
38513 msgstr ""
38514
38515 #. type: textblock
38516 #: ../test-tool/libguestfs-test-tool.pod:52
38517 msgid ""
38518 "If you have compiled qemu from source, point this option at the source "
38519 "directory to try it."
38520 msgstr ""
38521
38522 #. type: =item
38523 #: ../test-tool/libguestfs-test-tool.pod:55
38524 msgid "I<--timeout N>"
38525 msgstr "I<--timeout N>"
38526
38527 #. type: textblock
38528 #: ../test-tool/libguestfs-test-tool.pod:57
38529 msgid ""
38530 "Set the launch timeout to C<N> seconds.  The default is 120 seconds which "
38531 "does not usually need to be adjusted unless your machine is very slow."
38532 msgstr ""
38533
38534 #. type: =head1
38535 #: ../test-tool/libguestfs-test-tool.pod:63
38536 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
38537 msgstr ""
38538
38539 #. type: textblock
38540 #: ../test-tool/libguestfs-test-tool.pod:65
38541 msgid ""
38542 "If you have compiled another version of qemu from source and would like to "
38543 "try that, then you can use the I<--qemudir> option to point to the qemu "
38544 "source directory."
38545 msgstr ""
38546
38547 #. type: textblock
38548 #: ../test-tool/libguestfs-test-tool.pod:69
38549 msgid ""
38550 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
38551 "option to point to the binary."
38552 msgstr ""
38553
38554 #. type: textblock
38555 #: ../test-tool/libguestfs-test-tool.pod:72
38556 msgid ""
38557 "When using an alternate qemu with libguestfs, usually you would need to "
38558 "write a qemu wrapper script (see section I<QEMU WRAPPERS> in L<guestfs(3)"
38559 ">).  libguestfs-test-tool writes a temporary qemu wrapper script when you "
38560 "use either of the I<--qemudir> or I<--qemu> options."
38561 msgstr ""
38562
38563 #. type: textblock
38564 #: ../test-tool/libguestfs-test-tool.pod:79
38565 msgid ""
38566 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
38567 "I<1> if there was an error."
38568 msgstr ""
38569
38570 #. type: textblock
38571 #: ../test-tool/libguestfs-test-tool.pod:84
38572 msgid ""
38573 "For the full list of environment variables which may affect libguestfs, "
38574 "please see the L<guestfs(3)> manual page."
38575 msgstr ""
38576
38577 #. type: textblock
38578 #: ../test-tool/libguestfs-test-tool.pod:89
38579 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
38580 msgstr ""
38581
38582 #. type: textblock
38583 #: ../tools/virt-list-filesystems.pl:32
38584 msgid ""
38585 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
38586 msgstr ""
38587
38588 #. type: verbatim
38589 #: ../tools/virt-list-filesystems.pl:36
38590 #, no-wrap
38591 msgid ""
38592 " virt-list-filesystems [--options] domname\n"
38593 "\n"
38594 msgstr ""
38595
38596 #. type: verbatim
38597 #: ../tools/virt-list-filesystems.pl:38
38598 #, no-wrap
38599 msgid ""
38600 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
38601 "\n"
38602 msgstr ""
38603
38604 #. type: textblock
38605 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
38606 msgid ""
38607 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
38608 "replacement."
38609 msgstr ""
38610
38611 #. type: textblock
38612 #: ../tools/virt-list-filesystems.pl:45
38613 msgid ""
38614 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
38615 "are contained in a virtual machine or disk image."
38616 msgstr ""
38617
38618 #. type: textblock
38619 #: ../tools/virt-list-filesystems.pl:49
38620 msgid ""
38621 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
38622 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38623 "> tool."
38624 msgstr ""
38625
38626 #. type: textblock
38627 #: ../tools/virt-list-filesystems.pl:112
38628 msgid ""
38629 "With this option, C<virt-list-filesystems> displays the type of each "
38630 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
38631 msgstr ""
38632
38633 #. type: =item
38634 #: ../tools/virt-list-filesystems.pl:119
38635 #, fuzzy
38636 #| msgid "B<-a image>"
38637 msgid "B<-a>"
38638 msgstr "B<-a образ>"
38639
38640 #. type: textblock
38641 #: ../tools/virt-list-filesystems.pl:123
38642 msgid ""
38643 "Normally we only show mountable filesystems.  If this option is given then "
38644 "swap devices are shown too."
38645 msgstr ""
38646
38647 #. type: textblock
38648 #: ../tools/virt-list-filesystems.pl:197
38649 msgid ""
38650 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38651 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38652 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38653 msgstr ""
38654 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
38655 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
38656 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38657
38658 #. type: textblock
38659 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
38660 msgid "Copyright (C) 2009 Red Hat Inc."
38661 msgstr "© Red Hat Inc., 2009"
38662
38663 #. type: textblock
38664 #: ../tools/virt-list-partitions.pl:32
38665 msgid ""
38666 "virt-list-partitions - List partitions in a virtual machine or disk image"
38667 msgstr ""
38668
38669 #. type: verbatim
38670 #: ../tools/virt-list-partitions.pl:36
38671 #, no-wrap
38672 msgid ""
38673 " virt-list-partitions [--options] domname\n"
38674 "\n"
38675 msgstr ""
38676 " virt-list-partitions [--параметри] назва_домену\n"
38677 "\n"
38678
38679 #. type: verbatim
38680 #: ../tools/virt-list-partitions.pl:38
38681 #, no-wrap
38682 msgid ""
38683 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
38684 "\n"
38685 msgstr ""
38686 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
38687 "\n"
38688
38689 #. type: textblock
38690 #: ../tools/virt-list-partitions.pl:45
38691 msgid ""
38692 "C<virt-list-partitions> is a command line tool to list the partitions that "
38693 "are contained in a virtual machine or disk image.  It is mainly useful as a "
38694 "first step to using L<virt-resize(1)>."
38695 msgstr ""
38696
38697 #. type: textblock
38698 #: ../tools/virt-list-partitions.pl:50
38699 msgid ""
38700 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
38701 "functionality.  For more complex cases you should look at the L<guestfish(1)"
38702 "> tool."
38703 msgstr ""
38704
38705 #. type: textblock
38706 #: ../tools/virt-list-partitions.pl:113
38707 msgid "Show sizes in human-readable form (eg. \"1G\")."
38708 msgstr ""
38709
38710 #. type: textblock
38711 #: ../tools/virt-list-partitions.pl:123
38712 msgid ""
38713 "With this option, C<virt-list-partitions> displays the type and size of each "
38714 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
38715 msgstr ""
38716
38717 #. type: =item
38718 #: ../tools/virt-list-partitions.pl:130
38719 msgid "B<-t>"
38720 msgstr ""
38721
38722 #. type: =item
38723 #: ../tools/virt-list-partitions.pl:132
38724 #, fuzzy
38725 #| msgid "B<-t> | B<--total>"
38726 msgid "B<--total>"
38727 msgstr "B<-t> | B<--total>"
38728
38729 #. type: textblock
38730 #: ../tools/virt-list-partitions.pl:134
38731 msgid ""
38732 "Display the total size of each block device (as a separate row or rows)."
38733 msgstr ""
38734
38735 #. type: textblock
38736 #: ../tools/virt-list-partitions.pl:267
38737 msgid ""
38738 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38739 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38740 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38741 msgstr ""
38742 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
38743 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
38744 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
38745
38746 #. type: textblock
38747 #: ../tools/virt-list-partitions.pl:283
38748 msgid "Copyright (C) 2009-2010 Red Hat Inc."
38749 msgstr "© Red Hat Inc., 2009–2010"
38750
38751 #. type: textblock
38752 #: ../tools/virt-make-fs.pl:37
38753 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
38754 msgstr ""
38755
38756 #. type: verbatim
38757 #: ../tools/virt-make-fs.pl:41
38758 #, no-wrap
38759 msgid ""
38760 " virt-make-fs [--options] input.tar output.img\n"
38761 "\n"
38762 msgstr ""
38763
38764 #. type: verbatim
38765 #: ../tools/virt-make-fs.pl:43
38766 #, no-wrap
38767 msgid ""
38768 " virt-make-fs [--options] input.tar.gz output.img\n"
38769 "\n"
38770 msgstr ""
38771
38772 #. type: verbatim
38773 #: ../tools/virt-make-fs.pl:45
38774 #, no-wrap
38775 msgid ""
38776 " virt-make-fs [--options] directory output.img\n"
38777 "\n"
38778 msgstr ""
38779
38780 #. type: textblock
38781 #: ../tools/virt-make-fs.pl:49
38782 msgid ""
38783 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
38784 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
38785 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
38786 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
38787 "you want to attach these filesystems to existing virtual machines (eg. to "
38788 "import large amounts of read-only data to a VM)."
38789 msgstr ""
38790
38791 #. type: textblock
38792 #: ../tools/virt-make-fs.pl:57
38793 msgid "Basic usage is:"
38794 msgstr ""
38795
38796 #. type: verbatim
38797 #: ../tools/virt-make-fs.pl:59
38798 #, no-wrap
38799 msgid ""
38800 " virt-make-fs input output\n"
38801 "\n"
38802 msgstr ""
38803
38804 #. type: textblock
38805 #: ../tools/virt-make-fs.pl:61
38806 msgid ""
38807 "where C<input> is either a directory containing files that you want to add, "
38808 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
38809 "C<output> is a disk image.  The input type is detected automatically.  The "
38810 "output disk image defaults to a raw ext2 image unless you specify extra "
38811 "flags (see L</OPTIONS> below)."
38812 msgstr ""
38813
38814 #. type: =head2
38815 #: ../tools/virt-make-fs.pl:67
38816 msgid "EXTRA SPACE"
38817 msgstr ""
38818
38819 #. type: textblock
38820 #: ../tools/virt-make-fs.pl:69
38821 msgid ""
38822 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
38823 "the files that it contains, but might have extra space.  Depending on how "
38824 "you are going to use the output, you might think this extra space is wasted "
38825 "and want to minimize it, or you might want to leave space so that more files "
38826 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
38827 "but you can use the I<--size> flag to leave space in the filesystem if you "
38828 "want it."
38829 msgstr ""
38830
38831 #. type: textblock
38832 #: ../tools/virt-make-fs.pl:77
38833 msgid ""
38834 "An alternative way to leave extra space but not make the output image any "
38835 "bigger is to use an alternative disk image format (instead of the default "
38836 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
38837 "image format (check your hypervisor supports this before using it).  This "
38838 "allows you to choose a large I<--size> but the extra space won't actually be "
38839 "allocated in the image until you try to store something in it."
38840 msgstr ""
38841
38842 #. type: textblock
38843 #: ../tools/virt-make-fs.pl:85
38844 msgid ""
38845 "Don't forget that you can also use local commands including L<resize2fs(8)> "
38846 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
38847 "to build another image from scratch."
38848 msgstr ""
38849
38850 #. type: =head3
38851 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
38852 #: ../tools/virt-make-fs.pl:142
38853 msgid "EXAMPLE"
38854 msgstr "ПРИКЛАД"
38855
38856 #. type: verbatim
38857 #: ../tools/virt-make-fs.pl:91
38858 #, no-wrap
38859 msgid ""
38860 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38861 "\n"
38862 msgstr ""
38863 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
38864 "\n"
38865
38866 #. type: =head2
38867 #: ../tools/virt-make-fs.pl:93
38868 msgid "FILESYSTEM TYPE"
38869 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
38870
38871 #. type: textblock
38872 #: ../tools/virt-make-fs.pl:95
38873 msgid ""
38874 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
38875 "libguestfs supports can be used (but I<not> read-only formats like "
38876 "ISO9660).  Here are some of the more common choices:"
38877 msgstr ""
38878
38879 #. type: =item
38880 #: ../tools/virt-make-fs.pl:101
38881 msgid "I<ext3>"
38882 msgstr "I<ext3>"
38883
38884 #. type: textblock
38885 #: ../tools/virt-make-fs.pl:103
38886 msgid ""
38887 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
38888 "you are not going to use the filesystem in a way that requires the journal, "
38889 "then this is just wasted overhead."
38890 msgstr ""
38891
38892 #. type: =item
38893 #: ../tools/virt-make-fs.pl:107
38894 msgid "I<ntfs> or I<vfat>"
38895 msgstr "I<ntfs> або I<vfat>"
38896
38897 #. type: textblock
38898 #: ../tools/virt-make-fs.pl:109
38899 msgid "Useful if exporting data to a Windows guest."
38900 msgstr ""
38901
38902 #. type: textblock
38903 #: ../tools/virt-make-fs.pl:111
38904 msgid ""
38905 "I<Note for vfat>: The tar archive or local directory must only contain files "
38906 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
38907 "program running within libguestfs is unable to change the ownership of non-"
38908 "root files, since vfat itself does not support this."
38909 msgstr ""
38910
38911 #. type: =item
38912 #: ../tools/virt-make-fs.pl:116
38913 msgid "I<minix>"
38914 msgstr "I<minix>"
38915
38916 #. type: textblock
38917 #: ../tools/virt-make-fs.pl:118
38918 msgid ""
38919 "Lower overhead than C<ext2>, but certain limitations on filename length and "
38920 "total filesystem size."
38921 msgstr ""
38922
38923 #. type: verbatim
38924 #: ../tools/virt-make-fs.pl:125
38925 #, no-wrap
38926 msgid ""
38927 " virt-make-fs --type=minix input minixfs.img\n"
38928 "\n"
38929 msgstr ""
38930
38931 #. type: =head2
38932 #: ../tools/virt-make-fs.pl:127
38933 msgid "TO PARTITION OR NOT TO PARTITION"
38934 msgstr ""
38935
38936 #. type: textblock
38937 #: ../tools/virt-make-fs.pl:129
38938 msgid "Optionally virt-make-fs can add a partition table to the output disk."
38939 msgstr ""
38940
38941 #. type: textblock
38942 #: ../tools/virt-make-fs.pl:131
38943 msgid ""
38944 "Adding a partition can make the disk image more compatible with certain "
38945 "virtualized operating systems which don't expect to see a filesystem "
38946 "directly located on a block device (Linux doesn't care and will happily "
38947 "handle both types)."
38948 msgstr ""
38949
38950 #. type: textblock
38951 #: ../tools/virt-make-fs.pl:136
38952 msgid ""
38953 "On the other hand, if you have a partition table then the output image is no "
38954 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
38955 "directly on a partitioned disk image.  (However libguestfs tools such as "
38956 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
38957 msgstr ""
38958
38959 #. type: textblock
38960 #: ../tools/virt-make-fs.pl:144
38961 msgid "Add an MBR partition:"
38962 msgstr ""
38963
38964 #. type: verbatim
38965 #: ../tools/virt-make-fs.pl:146
38966 #, no-wrap
38967 msgid ""
38968 " virt-make-fs --partition -- input disk.img\n"
38969 "\n"
38970 msgstr ""
38971
38972 #. type: textblock
38973 #: ../tools/virt-make-fs.pl:148
38974 msgid ""
38975 "If the output disk image could be terabyte-sized or larger, it's better to "
38976 "use an EFI/GPT-compatible partition table:"
38977 msgstr ""
38978
38979 #. type: verbatim
38980 #: ../tools/virt-make-fs.pl:151
38981 #, no-wrap
38982 msgid ""
38983 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
38984 "\n"
38985 msgstr ""
38986
38987 #. type: textblock
38988 #: ../tools/virt-make-fs.pl:179
38989 msgid "Enable debugging information."
38990 msgstr "Увімкнути виведення діагностичних даних."
38991
38992 #. type: =item
38993 #: ../tools/virt-make-fs.pl:185
38994 msgid "B<--size=E<lt>NE<gt>>"
38995 msgstr "B<--size=E<lt>NE<gt>>"
38996
38997 #. type: =item
38998 #: ../tools/virt-make-fs.pl:187
38999 msgid "B<--size=+E<lt>NE<gt>>"
39000 msgstr "B<--size=+E<lt>NE<gt>>"
39001
39002 #. type: =item
39003 #: ../tools/virt-make-fs.pl:189
39004 msgid "B<-s E<lt>NE<gt>>"
39005 msgstr "B<-s E<lt>NE<gt>>"
39006
39007 #. type: =item
39008 #: ../tools/virt-make-fs.pl:191
39009 msgid "B<-s +E<lt>NE<gt>>"
39010 msgstr "B<-s +E<lt>NE<gt>>"
39011
39012 #. type: textblock
39013 #: ../tools/virt-make-fs.pl:193
39014 msgid ""
39015 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
39016 msgstr ""
39017
39018 #. type: textblock
39019 #: ../tools/virt-make-fs.pl:196
39020 msgid ""
39021 "If this option is I<not> given, then the output image will be just large "
39022 "enough to contain all the files, with not much wasted space."
39023 msgstr ""
39024
39025 #. type: textblock
39026 #: ../tools/virt-make-fs.pl:199
39027 msgid ""
39028 "To choose a fixed size output disk, specify an absolute number followed by b/"
39029 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39030 "Petabytes or Exabytes.  This must be large enough to contain all the input "
39031 "files, else you will get an error."
39032 msgstr ""
39033
39034 #. type: textblock
39035 #: ../tools/virt-make-fs.pl:204
39036 msgid ""
39037 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
39038 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39039 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
39040 "the input files, and (approximately) an extra 200 MB free space."
39041 msgstr ""
39042
39043 #. type: textblock
39044 #: ../tools/virt-make-fs.pl:210
39045 msgid ""
39046 "Note that virt-make-fs estimates free space, and therefore will not produce "
39047 "filesystems containing precisely the free space requested.  (It is much more "
39048 "expensive and time-consuming to produce a filesystem which has precisely the "
39049 "desired free space)."
39050 msgstr ""
39051
39052 #. type: =item
39053 #: ../tools/virt-make-fs.pl:219
39054 msgid "B<--format=E<lt>fmtE<gt>>"
39055 msgstr ""
39056
39057 #. type: =item
39058 #: ../tools/virt-make-fs.pl:221
39059 msgid "B<-F E<lt>fmtE<gt>>"
39060 msgstr ""
39061
39062 #. type: textblock
39063 #: ../tools/virt-make-fs.pl:223
39064 msgid "Choose the output disk image format."
39065 msgstr ""
39066
39067 #. type: textblock
39068 #: ../tools/virt-make-fs.pl:225
39069 msgid "The default is C<raw> (raw disk image)."
39070 msgstr ""
39071
39072 #. type: textblock
39073 #: ../tools/virt-make-fs.pl:227
39074 msgid ""
39075 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
39076 "that would really make sense here is C<qcow2>."
39077 msgstr ""
39078
39079 #. type: =item
39080 #: ../tools/virt-make-fs.pl:234
39081 msgid "B<--type=E<lt>fsE<gt>>"
39082 msgstr ""
39083
39084 #. type: =item
39085 #: ../tools/virt-make-fs.pl:236
39086 msgid "B<-t E<lt>fsE<gt>>"
39087 msgstr ""
39088
39089 #. type: textblock
39090 #: ../tools/virt-make-fs.pl:238
39091 msgid "Choose the output filesystem type."
39092 msgstr ""
39093
39094 #. type: textblock
39095 #: ../tools/virt-make-fs.pl:240
39096 msgid "The default is C<ext2>."
39097 msgstr "Типовим значенням є C<ext2>."
39098
39099 #. type: textblock
39100 #: ../tools/virt-make-fs.pl:242
39101 msgid ""
39102 "Any filesystem which is supported read-write by libguestfs can be used here."
39103 msgstr ""
39104
39105 #. type: =item
39106 #: ../tools/virt-make-fs.pl:249
39107 msgid "B<--partition>"
39108 msgstr "B<--partition>"
39109
39110 #. type: =item
39111 #: ../tools/virt-make-fs.pl:251
39112 msgid "B<--partition=E<lt>parttypeE<gt>>"
39113 msgstr ""
39114
39115 #. type: textblock
39116 #: ../tools/virt-make-fs.pl:253
39117 msgid ""
39118 "If specified, this flag adds an MBR partition table to the output disk image."
39119 msgstr ""
39120
39121 #. type: textblock
39122 #: ../tools/virt-make-fs.pl:256
39123 msgid ""
39124 "You can change the partition table type, eg. I<--partition=gpt> for large "
39125 "disks."
39126 msgstr ""
39127
39128 #. type: textblock
39129 #: ../tools/virt-make-fs.pl:259
39130 msgid ""
39131 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
39132 "might consider the next parameter to be the partition type.  For example:"
39133 msgstr ""
39134
39135 #. type: verbatim
39136 #: ../tools/virt-make-fs.pl:263
39137 #, no-wrap
39138 msgid ""
39139 " virt-make-fs --partition input.tar ...\n"
39140 "\n"
39141 msgstr ""
39142
39143 #. type: textblock
39144 #: ../tools/virt-make-fs.pl:265
39145 msgid ""
39146 "would cause virt-make-fs to think you wanted to use a partition type of "
39147 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
39148 "dash) between options and the input file argument:"
39149 msgstr ""
39150
39151 #. type: verbatim
39152 #: ../tools/virt-make-fs.pl:269
39153 #, no-wrap
39154 msgid ""
39155 " virt-make-fs --partition -- input.tar ...\n"
39156 "\n"
39157 msgstr ""
39158 " virt-make-fs --partition -- input.tar ...\n"
39159 "\n"
39160
39161 #. type: textblock
39162 #: ../tools/virt-make-fs.pl:541
39163 msgid ""
39164 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39165 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39166 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39167 msgstr ""
39168 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39169 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39170 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39171
39172 #. type: textblock
39173 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
39174 msgid ""
39175 "When reporting bugs, please enable debugging and capture the I<complete> "
39176 "output:"
39177 msgstr ""
39178
39179 #. type: verbatim
39180 #: ../tools/virt-make-fs.pl:558
39181 #, no-wrap
39182 msgid ""
39183 " export LIBGUESTFS_DEBUG=1\n"
39184 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39185 "\n"
39186 msgstr ""
39187 " export LIBGUESTFS_DEBUG=1\n"
39188 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39189 "\n"
39190
39191 #. type: textblock
39192 #: ../tools/virt-make-fs.pl:561
39193 msgid ""
39194 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
39195 "redhat.com/>"
39196 msgstr ""
39197
39198 #. type: textblock
39199 #: ../tools/virt-tar.pl:33
39200 msgid "virt-tar - Extract or upload files to a virtual machine"
39201 msgstr ""
39202
39203 #. type: verbatim
39204 #: ../tools/virt-tar.pl:37
39205 #, no-wrap
39206 msgid ""
39207 " virt-tar [--options] -x domname directory tarball\n"
39208 "\n"
39209 msgstr ""
39210
39211 #. type: verbatim
39212 #: ../tools/virt-tar.pl:39
39213 #, no-wrap
39214 msgid ""
39215 " virt-tar [--options] -u domname tarball directory\n"
39216 "\n"
39217 msgstr ""
39218
39219 #. type: verbatim
39220 #: ../tools/virt-tar.pl:41
39221 #, no-wrap
39222 msgid ""
39223 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39224 "\n"
39225 msgstr ""
39226
39227 #. type: verbatim
39228 #: ../tools/virt-tar.pl:43
39229 #, no-wrap
39230 msgid ""
39231 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39232 "\n"
39233 msgstr ""
39234
39235 #. type: =head2
39236 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39237 msgid "NOTE"
39238 msgstr "ПРИМІТКА"
39239
39240 #. type: textblock
39241 #: ../tools/virt-tar.pl:47
39242 msgid ""
39243 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
39244 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
39245 msgstr ""
39246
39247 #. type: textblock
39248 #: ../tools/virt-tar.pl:52
39249 msgid "Download C</home> from the VM into a local tarball:"
39250 msgstr ""
39251
39252 #. type: verbatim
39253 #: ../tools/virt-tar.pl:54
39254 #, no-wrap
39255 msgid ""
39256 " virt-tar -x domname /home home.tar\n"
39257 "\n"
39258 msgstr ""
39259
39260 #. type: verbatim
39261 #: ../tools/virt-tar.pl:56
39262 #, no-wrap
39263 msgid ""
39264 " virt-tar -zx domname /home home.tar.gz\n"
39265 "\n"
39266 msgstr ""
39267
39268 #. type: textblock
39269 #: ../tools/virt-tar.pl:58
39270 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39271 msgstr ""
39272
39273 #. type: verbatim
39274 #: ../tools/virt-tar.pl:60
39275 #, no-wrap
39276 msgid ""
39277 " virt-tar -u domname uploadstuff.tar /tmp\n"
39278 "\n"
39279 msgstr ""
39280
39281 #. type: verbatim
39282 #: ../tools/virt-tar.pl:62
39283 #, no-wrap
39284 msgid ""
39285 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39286 "\n"
39287 msgstr ""
39288
39289 #. type: textblock
39290 #: ../tools/virt-tar.pl:66
39291 msgid ""
39292 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39293 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
39294 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39295 msgstr ""
39296
39297 #. type: textblock
39298 #: ../tools/virt-tar.pl:71
39299 msgid ""
39300 "You can use I<-x> (extract) on live virtual machines, but you might get "
39301 "inconsistent results or errors if there is filesystem activity inside the "
39302 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
39303 "work, but the only way to guarantee consistent results is if the virtual "
39304 "machine is shut down."
39305 msgstr ""
39306
39307 #. type: textblock
39308 #: ../tools/virt-tar.pl:79
39309 msgid ""
39310 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39311 "parts of a guest filesystem.  There are many possibilities: making backups, "
39312 "uploading data files, snooping on guest activity, fixing or customizing "
39313 "guests, etc."
39314 msgstr ""
39315
39316 #. type: textblock
39317 #: ../tools/virt-tar.pl:84
39318 msgid ""
39319 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
39320 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
39321 "should look at the L<guestfish(1)> tool."
39322 msgstr ""
39323
39324 #. type: textblock
39325 #: ../tools/virt-tar.pl:88
39326 msgid ""
39327 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39328 "its contents (recursively) from the virtual machine into a local tarball.  "
39329 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39330 "virtual machine.  You cannot use these two options together."
39331 msgstr ""
39332
39333 #. type: textblock
39334 #: ../tools/virt-tar.pl:94
39335 msgid ""
39336 "In addition, you may need to use the I<-z> (gZip) option to enable "
39337 "compression.  When uploading, you have to specify I<-z> if the upload file "
39338 "is compressed because virt-tar won't detect this on its own."
39339 msgstr ""
39340
39341 #. type: textblock
39342 #: ../tools/virt-tar.pl:98
39343 msgid ""
39344 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
39345 "example it cannot do PKZip files or bzip2 compression.  If you want that "
39346 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
39347 "the L<libguestfs(3)> API)."
39348 msgstr ""
39349
39350 #. type: =item
39351 #: ../tools/virt-tar.pl:160
39352 #, fuzzy
39353 #| msgid "B<--format>"
39354 msgid "B<--extract>"
39355 msgstr "B<--format>"
39356
39357 #. type: =item
39358 #: ../tools/virt-tar.pl:162
39359 #, fuzzy
39360 #| msgid "download"
39361 msgid "B<--download>"
39362 msgstr "download"
39363
39364 #. type: =item
39365 #: ../tools/virt-tar.pl:164
39366 msgid "B<-u>"
39367 msgstr ""
39368
39369 #. type: =item
39370 #: ../tools/virt-tar.pl:166
39371 #, fuzzy
39372 #| msgid "B<-u> | B<--upload>"
39373 msgid "B<--upload>"
39374 msgstr "B<-u> | B<--upload>"
39375
39376 #. type: textblock
39377 #: ../tools/virt-tar.pl:168
39378 msgid ""
39379 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39380 "local tarball."
39381 msgstr ""
39382
39383 #. type: textblock
39384 #: ../tools/virt-tar.pl:171
39385 msgid ""
39386 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
39387 "Please read the L</WARNING> section above before using this option."
39388 msgstr ""
39389
39390 #. type: textblock
39391 #: ../tools/virt-tar.pl:175
39392 msgid "You must specify exactly one of these options."
39393 msgstr ""
39394
39395 #. type: =item
39396 #: ../tools/virt-tar.pl:181
39397 msgid "B<-z>"
39398 msgstr ""
39399
39400 #. type: =item
39401 #: ../tools/virt-tar.pl:183
39402 #, fuzzy
39403 #| msgid "B<-z> | B<--gzip>"
39404 msgid "B<--gzip>"
39405 msgstr "B<-z> | B<--gzip>"
39406
39407 #. type: textblock
39408 #: ../tools/virt-tar.pl:185
39409 msgid "Specify that the input or output tarball is gzip-compressed."
39410 msgstr ""
39411
39412 #. type: textblock
39413 #: ../tools/virt-tar.pl:298
39414 msgid ""
39415 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39416 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39417 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39418 "org/>."
39419 msgstr ""
39420 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39421 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39422 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39423 "org/>."
39424
39425 #. type: textblock
39426 #: ../tools/virt-win-reg.pl:37
39427 msgid ""
39428 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
39429 msgstr ""
39430
39431 #. type: verbatim
39432 #: ../tools/virt-win-reg.pl:41
39433 #, no-wrap
39434 msgid ""
39435 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
39436 "\n"
39437 msgstr ""
39438
39439 #. type: verbatim
39440 #: ../tools/virt-win-reg.pl:43
39441 #, no-wrap
39442 msgid ""
39443 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
39444 "\n"
39445 msgstr ""
39446
39447 #. type: verbatim
39448 #: ../tools/virt-win-reg.pl:45
39449 #, no-wrap
39450 msgid ""
39451 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
39452 "\n"
39453 msgstr ""
39454
39455 #. type: verbatim
39456 #: ../tools/virt-win-reg.pl:47
39457 #, no-wrap
39458 msgid ""
39459 " virt-win-reg --merge domname [input.reg ...]\n"
39460 "\n"
39461 msgstr ""
39462
39463 #. type: verbatim
39464 #: ../tools/virt-win-reg.pl:49
39465 #, no-wrap
39466 msgid ""
39467 " virt-win-reg [--options] disk.img ... # instead of domname\n"
39468 "\n"
39469 msgstr ""
39470
39471 #. type: textblock
39472 #: ../tools/virt-win-reg.pl:53
39473 msgid ""
39474 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
39475 "virtual machines.  If you do this, you I<will> get irreversible disk "
39476 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
39477 "but doesn't catch all cases."
39478 msgstr ""
39479
39480 #. type: textblock
39481 #: ../tools/virt-win-reg.pl:58
39482 msgid ""
39483 "Modifying the Windows Registry is an inherently risky operation.  The format "
39484 "is deliberately obscure and undocumented, and Registry changes can leave the "
39485 "system unbootable.  Therefore when using the I<--merge> option, make sure "
39486 "you have a reliable backup first."
39487 msgstr ""
39488
39489 #. type: textblock
39490 #: ../tools/virt-win-reg.pl:65
39491 msgid ""
39492 "This program can export and merge Windows Registry entries from a Windows "
39493 "guest."
39494 msgstr ""
39495
39496 #. type: textblock
39497 #: ../tools/virt-win-reg.pl:68
39498 msgid ""
39499 "The first parameter is the libvirt guest name or the raw disk image of a "
39500 "Windows guest."
39501 msgstr ""
39502
39503 #. type: textblock
39504 #: ../tools/virt-win-reg.pl:71
39505 msgid ""
39506 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
39507 "exported (recursively).  For example:"
39508 msgstr ""
39509
39510 #. type: verbatim
39511 #: ../tools/virt-win-reg.pl:74
39512 #, no-wrap
39513 msgid ""
39514 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
39515 "\n"
39516 msgstr ""
39517
39518 #. type: textblock
39519 #: ../tools/virt-win-reg.pl:76
39520 msgid ""
39521 "You can also display single values from within registry keys, for example:"
39522 msgstr ""
39523
39524 #. type: verbatim
39525 #: ../tools/virt-win-reg.pl:79
39526 #, no-wrap
39527 msgid ""
39528 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
39529 " $ virt-win-reg Windows7 $cvkey ProductName\n"
39530 " Windows 7 Enterprise\n"
39531 "\n"
39532 msgstr ""
39533
39534 #. type: textblock
39535 #: ../tools/virt-win-reg.pl:83
39536 msgid ""
39537 "With I<--merge>, you can merge a textual regedit file into the Windows "
39538 "Registry:"
39539 msgstr ""
39540
39541 #. type: verbatim
39542 #: ../tools/virt-win-reg.pl:86
39543 #, no-wrap
39544 msgid ""
39545 " $ virt-win-reg --merge Windows7 changes.reg\n"
39546 "\n"
39547 msgstr ""
39548
39549 #. type: textblock
39550 #: ../tools/virt-win-reg.pl:90
39551 msgid ""
39552 "This program is only meant for simple access to the registry.  If you want "
39553 "to do complicated things with the registry, we suggest you download the "
39554 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
39555 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
39556 "L<hivexregedit(1)>."
39557 msgstr ""
39558
39559 #. type: =item
39560 #: ../tools/virt-win-reg.pl:159
39561 msgid "B<--merge>"
39562 msgstr "B<--merge>"
39563
39564 #. type: textblock
39565 #: ../tools/virt-win-reg.pl:161
39566 msgid ""
39567 "In merge mode, this merges a textual regedit file into the Windows Registry "
39568 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
39569 "displays or exports Registry entries instead."
39570 msgstr ""
39571
39572 #. type: textblock
39573 #: ../tools/virt-win-reg.pl:165
39574 msgid ""
39575 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
39576 "result in disk corruption.  However exporting (without this flag)  is always "
39577 "safe."
39578 msgstr ""
39579
39580 #. type: =item
39581 #: ../tools/virt-win-reg.pl:173
39582 msgid "B<--encoding> UTF-16LE|ASCII"
39583 msgstr ""
39584
39585 #. type: textblock
39586 #: ../tools/virt-win-reg.pl:175
39587 msgid ""
39588 "When merging (only), you may need to specify the encoding for strings to be "
39589 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
39590 "(3)/ENCODING STRINGS>."
39591 msgstr ""
39592
39593 #. type: textblock
39594 #: ../tools/virt-win-reg.pl:179
39595 msgid ""
39596 "The default is to use UTF-16LE, which should work with recent versions of "
39597 "Windows."
39598 msgstr ""
39599
39600 #. type: =item
39601 #: ../tools/virt-win-reg.pl:186
39602 msgid "B<--unsafe-printable-strings>"
39603 msgstr ""
39604
39605 #. type: textblock
39606 #: ../tools/virt-win-reg.pl:188
39607 msgid ""
39608 "When exporting (only), assume strings are UTF-16LE and print them as strings "
39609 "instead of hex sequences.  Remove the final zero codepoint from strings if "
39610 "present."
39611 msgstr ""
39612
39613 #. type: textblock
39614 #: ../tools/virt-win-reg.pl:192
39615 msgid ""
39616 "This is unsafe and does not preserve the fidelity of strings in the original "
39617 "Registry for various reasons:"
39618 msgstr ""
39619
39620 #. type: textblock
39621 #: ../tools/virt-win-reg.pl:199
39622 msgid ""
39623 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
39624 "other encodings will be corrupted by this transformation."
39625 msgstr ""
39626
39627 #. type: textblock
39628 #: ../tools/virt-win-reg.pl:204
39629 msgid ""
39630 "Assumes that everything which has type 1 or 2 is really a string and that "
39631 "everything else is not a string, but the type field in real Registries is "
39632 "not reliable."
39633 msgstr ""
39634
39635 #. type: textblock
39636 #: ../tools/virt-win-reg.pl:210
39637 msgid ""
39638 "Loses information about whether a zero codepoint followed the string in the "
39639 "Registry or not."
39640 msgstr ""
39641
39642 #. type: textblock
39643 #: ../tools/virt-win-reg.pl:215
39644 msgid ""
39645 "This all happens because the Registry itself contains no information about "
39646 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
39647 msgstr ""
39648
39649 #. type: textblock
39650 #: ../tools/virt-win-reg.pl:219
39651 msgid ""
39652 "You should only use this option for quick hacking and debugging of the "
39653 "Registry contents, and I<never> use it if the output is going to be passed "
39654 "into another program or stored in another Registry."
39655 msgstr ""
39656
39657 #. type: =head1
39658 #: ../tools/virt-win-reg.pl:556
39659 msgid "SUPPORTED SYSTEMS"
39660 msgstr ""
39661
39662 #. type: textblock
39663 #: ../tools/virt-win-reg.pl:558
39664 msgid ""
39665 "The program currently supports Windows NT-derived guests starting with "
39666 "Windows XP through to at least Windows 7."
39667 msgstr ""
39668
39669 #. type: textblock
39670 #: ../tools/virt-win-reg.pl:561
39671 msgid "The following Registry keys are supported:"
39672 msgstr ""
39673
39674 #. type: =item
39675 #: ../tools/virt-win-reg.pl:565
39676 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
39677 msgstr ""
39678
39679 #. type: =item
39680 #: ../tools/virt-win-reg.pl:567
39681 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
39682 msgstr ""
39683
39684 #. type: =item
39685 #: ../tools/virt-win-reg.pl:569
39686 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
39687 msgstr ""
39688
39689 #. type: =item
39690 #: ../tools/virt-win-reg.pl:571
39691 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
39692 msgstr ""
39693
39694 #. type: =item
39695 #: ../tools/virt-win-reg.pl:573
39696 msgid "C<HKEY_USERS\\.DEFAULT>"
39697 msgstr ""
39698
39699 #. type: =item
39700 #: ../tools/virt-win-reg.pl:575
39701 msgid "C<HKEY_USERS\\I<SID>>"
39702 msgstr ""
39703
39704 #. type: textblock
39705 #: ../tools/virt-win-reg.pl:577
39706 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
39707 msgstr ""
39708
39709 #. type: =item
39710 #: ../tools/virt-win-reg.pl:579
39711 msgid "C<HKEY_USERS\\I<username>>"
39712 msgstr ""
39713
39714 #. type: textblock
39715 #: ../tools/virt-win-reg.pl:581
39716 msgid ""
39717 "where I<username> is a local user name (this is a libguestfs extension)."
39718 msgstr ""
39719
39720 #. type: textblock
39721 #: ../tools/virt-win-reg.pl:585
39722 msgid ""
39723 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
39724 "C<HKEY_USERS>."
39725 msgstr ""
39726
39727 #. type: textblock
39728 #: ../tools/virt-win-reg.pl:588
39729 msgid ""
39730 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
39731 "supported (there is no \"current user\")."
39732 msgstr ""
39733
39734 #. type: =head1
39735 #: ../tools/virt-win-reg.pl:591
39736 msgid "ENCODING"
39737 msgstr "КОДУВАННЯ"
39738
39739 #. type: textblock
39740 #: ../tools/virt-win-reg.pl:593
39741 msgid ""
39742 "C<virt-win-reg> expects that regedit files have already been reencoded in "
39743 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
39744 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
39745 "Windows-style line endings, you may need to reencode the whole file before "
39746 "or after processing."
39747 msgstr ""
39748
39749 #. type: textblock
39750 #: ../tools/virt-win-reg.pl:599
39751 msgid ""
39752 "To reencode a file from Windows format to Linux (before processing it with "
39753 "the I<--merge> option), you would do something like this:"
39754 msgstr ""
39755
39756 #. type: verbatim
39757 #: ../tools/virt-win-reg.pl:602
39758 #, no-wrap
39759 msgid ""
39760 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
39761 "\n"
39762 msgstr ""
39763
39764 #. type: textblock
39765 #: ../tools/virt-win-reg.pl:604
39766 msgid ""
39767 "To go in the opposite direction, after exporting and before sending the file "
39768 "to a Windows user, do something like this:"
39769 msgstr ""
39770
39771 #. type: verbatim
39772 #: ../tools/virt-win-reg.pl:607
39773 #, no-wrap
39774 msgid ""
39775 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
39776 "\n"
39777 msgstr ""
39778
39779 #. type: textblock
39780 #: ../tools/virt-win-reg.pl:609
39781 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
39782 msgstr ""
39783
39784 #. type: textblock
39785 #: ../tools/virt-win-reg.pl:611
39786 msgid ""
39787 "If you are unsure about the current encoding, use the L<file(1)> command.  "
39788 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
39789 "style (CRLF) line endings, like this:"
39790 msgstr ""
39791
39792 #. type: verbatim
39793 #: ../tools/virt-win-reg.pl:615
39794 #, no-wrap
39795 msgid ""
39796 " $ file software.reg\n"
39797 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
39798 " with CRLF line terminators\n"
39799 "\n"
39800 msgstr ""
39801
39802 #. type: textblock
39803 #: ../tools/virt-win-reg.pl:619
39804 msgid "This file would need conversion before you could I<--merge> it."
39805 msgstr ""
39806
39807 #. type: =head1
39808 #: ../tools/virt-win-reg.pl:621
39809 msgid "CurrentControlSet etc."
39810 msgstr ""
39811
39812 #. type: textblock
39813 #: ../tools/virt-win-reg.pl:623
39814 msgid ""
39815 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
39816 "Registry at the level of the hive file, and therefore you cannot modify "
39817 "these."
39818 msgstr ""
39819
39820 #. type: textblock
39821 #: ../tools/virt-win-reg.pl:627
39822 msgid ""
39823 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
39824 "circumstances it might refer to another control set.  The way to find out is "
39825 "to look at the C<HKLM\\SYSTEM\\Select> key:"
39826 msgstr ""
39827
39828 #. type: verbatim
39829 #: ../tools/virt-win-reg.pl:631
39830 #, no-wrap
39831 msgid ""
39832 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
39833 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
39834 " \"Current\"=dword:00000001\n"
39835 " \"Default\"=dword:00000001\n"
39836 " \"Failed\"=dword:00000000\n"
39837 " \"LastKnownGood\"=dword:00000002\n"
39838 "\n"
39839 msgstr ""
39840
39841 #. type: textblock
39842 #: ../tools/virt-win-reg.pl:638
39843 msgid "\"Current\" is the one which Windows will choose when it boots."
39844 msgstr ""
39845
39846 #. type: textblock
39847 #: ../tools/virt-win-reg.pl:640
39848 msgid ""
39849 "Similarly, other C<Current...> keys in the path may need to be replaced."
39850 msgstr ""
39851
39852 #. type: =head1
39853 #: ../tools/virt-win-reg.pl:643
39854 msgid "WINDOWS TIPS"
39855 msgstr ""
39856
39857 #. type: textblock
39858 #: ../tools/virt-win-reg.pl:645
39859 msgid ""
39860 "Note that some of these tips modify the guest disk image.  The guest I<must> "
39861 "be shut off, else you will get disk corruption."
39862 msgstr ""
39863
39864 #. type: =head2
39865 #: ../tools/virt-win-reg.pl:648
39866 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
39867 msgstr ""
39868
39869 #. type: textblock
39870 #: ../tools/virt-win-reg.pl:650
39871 msgid ""
39872 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
39873 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
39874 "is uploaded into C<C:\\>:"
39875 msgstr ""
39876
39877 #. type: verbatim
39878 #: ../tools/virt-win-reg.pl:654
39879 #, no-wrap
39880 msgid ""
39881 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
39882 "\n"
39883 msgstr ""
39884
39885 #. type: textblock
39886 #: ../tools/virt-win-reg.pl:656
39887 msgid "Prepare a regedit file containing the registry change:"
39888 msgstr ""
39889
39890 #. type: verbatim
39891 #: ../tools/virt-win-reg.pl:658
39892 #, no-wrap
39893 msgid ""
39894 " cat > test.reg <<'EOF'\n"
39895 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
39896 " \"Test\"=\"c:\\\\test.bat\"\n"
39897 " EOF\n"
39898 "\n"
39899 msgstr ""
39900
39901 #. type: textblock
39902 #: ../tools/virt-win-reg.pl:663
39903 msgid ""
39904 "In this example we use the key C<RunOnce> which means that the script will "
39905 "run precisely once when the first user logs in.  If you want it to run every "
39906 "time a user logs in, replace C<RunOnce> with C<Run>."
39907 msgstr ""
39908
39909 #. type: textblock
39910 #: ../tools/virt-win-reg.pl:667
39911 msgid "Now update the registry:"
39912 msgstr ""
39913
39914 #. type: verbatim
39915 #: ../tools/virt-win-reg.pl:669
39916 #, no-wrap
39917 msgid ""
39918 " virt-win-reg --merge WindowsGuest test.reg\n"
39919 "\n"
39920 msgstr ""
39921
39922 #. type: =head2
39923 #: ../tools/virt-win-reg.pl:671
39924 msgid "INSTALLING A SERVICE"
39925 msgstr ""
39926
39927 #. type: textblock
39928 #: ../tools/virt-win-reg.pl:673
39929 msgid ""
39930 "This section assumes you are familiar with Windows services, and you either "
39931 "have a program which handles the Windows Service Control Protocol directly "
39932 "or you want to run any program using a service wrapper like SrvAny or the "
39933 "free RHSrvAny."
39934 msgstr ""
39935
39936 #. type: textblock
39937 #: ../tools/virt-win-reg.pl:678
39938 msgid ""
39939 "First upload the program and optionally the service wrapper.  In this case "
39940 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
39941 msgstr ""
39942
39943 #. type: verbatim
39944 #: ../tools/virt-win-reg.pl:682
39945 #, no-wrap
39946 msgid ""
39947 " guestfish -i -d WindowsGuest <<EOF\n"
39948 "   upload rhsrvany.exe /rhsrvany.exe\n"
39949 "   upload test.exe /test.exe\n"
39950 " EOF\n"
39951 "\n"
39952 msgstr ""
39953
39954 #. type: textblock
39955 #: ../tools/virt-win-reg.pl:687
39956 msgid ""
39957 "Prepare a regedit file containing the registry changes.  In this example, "
39958 "the first registry change is needed for the service itself or the service "
39959 "wrapper (if used).  The second registry change is only needed because I am "
39960 "using the RHSrvAny service wrapper."
39961 msgstr ""
39962
39963 #. type: verbatim
39964 #: ../tools/virt-win-reg.pl:692
39965 #, no-wrap
39966 msgid ""
39967 " cat > service.reg <<'EOF'\n"
39968 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
39969 " \"Type\"=dword:00000010\n"
39970 " \"Start\"=dword:00000002\n"
39971 " \"ErrorControl\"=dword:00000001\n"
39972 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
39973 " \"DisplayName\"=\"RHSrvAny\"\n"
39974 " \"ObjectName\"=\"NetworkService\"\n"
39975 " \n"
39976 msgstr ""
39977
39978 #. type: verbatim
39979 #: ../tools/virt-win-reg.pl:701
39980 #, no-wrap
39981 msgid ""
39982 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
39983 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
39984 " \"PWD\"=\"c:\\\\Temp\"\n"
39985 " EOF\n"
39986 "\n"
39987 msgstr ""
39988
39989 #. type: textblock
39990 #: ../tools/virt-win-reg.pl:712
39991 msgid ""
39992 "For use of C<ControlSet001> see the section above in this manual page.  You "
39993 "may need to adjust this according to the control set that is in use by the "
39994 "guest."
39995 msgstr ""
39996
39997 #. type: textblock
39998 #: ../tools/virt-win-reg.pl:718
39999 msgid ""
40000 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
40001 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
40002 "privileged account."
40003 msgstr ""
40004
40005 #. type: textblock
40006 #: ../tools/virt-win-reg.pl:724
40007 msgid ""
40008 "For the meaning of the magic numbers, see this Microsoft KB article: "
40009 "L<http://support.microsoft.com/kb/103000>."
40010 msgstr ""
40011
40012 #. type: textblock
40013 #: ../tools/virt-win-reg.pl:729
40014 msgid "Update the registry:"
40015 msgstr ""
40016
40017 #. type: verbatim
40018 #: ../tools/virt-win-reg.pl:731
40019 #, no-wrap
40020 msgid ""
40021 " virt-win-reg --merge WindowsGuest service.reg\n"
40022 "\n"
40023 msgstr ""
40024
40025 #. type: textblock
40026 #: ../tools/virt-win-reg.pl:735
40027 msgid ""
40028 "Be careful when passing parameters containing C<\\> (backslash) in the "
40029 "shell.  Usually you will have to use 'single quotes' or double backslashes "
40030 "(but not both) to protect them from the shell."
40031 msgstr ""
40032
40033 #. type: textblock
40034 #: ../tools/virt-win-reg.pl:739
40035 msgid "Paths and value names are case-insensitive."
40036 msgstr ""
40037
40038 #. type: textblock
40039 #: ../tools/virt-win-reg.pl:748
40040 msgid ""
40041 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
40042 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
40043 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40044 msgstr ""
40045
40046 #. type: verbatim
40047 #: ../tools/virt-win-reg.pl:766
40048 #, no-wrap
40049 msgid ""
40050 " export LIBGUESTFS_DEBUG=1\n"
40051 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
40052 "\n"
40053 msgstr ""
40054
40055 #. type: textblock
40056 #: ../tools/virt-win-reg.pl:769
40057 msgid ""
40058 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
40059 "redhat.com/>"
40060 msgstr ""
40061
40062 #~ msgid ""
40063 #~ " g = guestfs_create ();\n"
40064 #~ " \n"
40065 #~ msgstr ""
40066 #~ " g = guestfs_create ();\n"
40067 #~ " \n"
40068
40069 #~ msgid "B<-a> | B<--all>"
40070 #~ msgstr "B<-a> | B<--all>"
40071
40072 #~ msgid "B<-x> | B<--extract> | B<--download>"
40073 #~ msgstr "B<-x> | B<--extract> | B<--download>"