Version 1.13.15.
[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-09-28 21:49+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 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
25 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
26 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
27 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
28 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
29 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
30 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
31 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
32 #: ../ruby/examples/guestfs-ruby.pod:3 ../src/guestfs.pod:3
33 #: ../test-tool/libguestfs-test-tool.pod:3
34 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
35 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
36 #: ../tools/virt-win-reg.pl:35
37 msgid "NAME"
38 msgstr "НАЗВА"
39
40 #. type: textblock
41 #: ../cat/virt-cat.pod:5
42 msgid "virt-cat - Display files in a virtual machine"
43 msgstr ""
44
45 #. type: =head1
46 #: ../cat/virt-cat.pod:7 ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
47 #: ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
48 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
49 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
50 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
51 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
52 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
53 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
54 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
55 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
56 #: ../src/guestfs.pod:7 ../test-tool/libguestfs-test-tool.pod:7
57 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
58 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
59 #: ../tools/virt-win-reg.pl:39
60 msgid "SYNOPSIS"
61 msgstr "КОРОТКИЙ ОПИС"
62
63 #. type: verbatim
64 #: ../cat/virt-cat.pod:9
65 #, fuzzy, no-wrap
66 #| msgid ""
67 #| " virt-list-partitions [--options] domname\n"
68 #| "\n"
69 msgid ""
70 " virt-cat [--options] -d domname file [file ...]\n"
71 "\n"
72 msgstr ""
73 " virt-list-partitions [--параметри] назва_домену\n"
74 "\n"
75
76 #. type: verbatim
77 #: ../cat/virt-cat.pod:11
78 #, fuzzy, no-wrap
79 #| msgid ""
80 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
81 #| "\n"
82 msgid ""
83 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
84 "\n"
85 msgstr ""
86 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
87 "\n"
88
89 #. type: textblock
90 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
91 #: ../inspector/virt-inspector.pod:13
92 msgid "Old-style:"
93 msgstr ""
94
95 #. type: verbatim
96 #: ../cat/virt-cat.pod:15
97 #, no-wrap
98 msgid ""
99 " virt-cat domname file\n"
100 "\n"
101 msgstr ""
102
103 #. type: verbatim
104 #: ../cat/virt-cat.pod:17
105 #, no-wrap
106 msgid ""
107 " virt-cat disk.img file\n"
108 "\n"
109 msgstr ""
110
111 #. type: =head1
112 #: ../cat/virt-cat.pod:19 ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
113 #: ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
114 #: ../erlang/examples/guestfs-erlang.pod:16
115 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
116 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
117 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
118 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
119 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
120 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
121 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
122 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
123 #: ../src/guestfs.pod:23 ../test-tool/libguestfs-test-tool.pod:11
124 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
125 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
126 #: ../tools/virt-win-reg.pl:63
127 msgid "DESCRIPTION"
128 msgstr "ОПИС"
129
130 #. type: textblock
131 #: ../cat/virt-cat.pod:21
132 msgid ""
133 "C<virt-cat> is a command line tool to display the contents of C<file> where "
134 "C<file> exists in the named virtual machine (or disk image)."
135 msgstr ""
136
137 #. type: textblock
138 #: ../cat/virt-cat.pod:24
139 msgid ""
140 "Multiple filenames can be given, in which case they are concatenated "
141 "together.  Each filename must be a full path, starting at the root directory "
142 "(starting with '/')."
143 msgstr ""
144
145 #. type: textblock
146 #: ../cat/virt-cat.pod:28
147 msgid ""
148 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
149 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
150 "(see L</USING GUESTFISH> below)."
151 msgstr ""
152
153 #. type: =head1
154 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
155 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
156 #: ../fish/guestfish.pod:1018 ../fish/virt-copy-in.pod:29
157 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
158 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
159 #: ../resize/virt-resize.pod:27 ../tools/virt-tar.pl:50
160 msgid "EXAMPLES"
161 msgstr "ПРИКЛАДИ"
162
163 #. type: textblock
164 #: ../cat/virt-cat.pod:34
165 msgid ""
166 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
167 msgstr ""
168
169 #. type: verbatim
170 #: ../cat/virt-cat.pod:37
171 #, no-wrap
172 msgid ""
173 " virt-cat -d mydomain /etc/fstab\n"
174 "\n"
175 msgstr ""
176
177 #. type: textblock
178 #: ../cat/virt-cat.pod:39
179 msgid "List syslog messages from a VM disk image file:"
180 msgstr ""
181
182 #. type: verbatim
183 #: ../cat/virt-cat.pod:41
184 #, no-wrap
185 msgid ""
186 " virt-cat -a disk.img /var/log/messages | tail\n"
187 "\n"
188 msgstr ""
189
190 #. type: textblock
191 #: ../cat/virt-cat.pod:43
192 msgid "Find out what DHCP IP address a VM acquired:"
193 msgstr ""
194
195 #. type: verbatim
196 #: ../cat/virt-cat.pod:45
197 #, no-wrap
198 msgid ""
199 " virt-cat -d mydomain /var/log/messages | \\\n"
200 "   grep 'dhclient: bound to' | tail\n"
201 "\n"
202 msgstr ""
203
204 #. type: textblock
205 #: ../cat/virt-cat.pod:48
206 msgid "Find out what packages were recently installed:"
207 msgstr ""
208
209 #. type: verbatim
210 #: ../cat/virt-cat.pod:50
211 #, no-wrap
212 msgid ""
213 " virt-cat -d mydomain /var/log/yum.log | tail\n"
214 "\n"
215 msgstr ""
216
217 #. type: textblock
218 #: ../cat/virt-cat.pod:52
219 msgid "Find out who is logged on inside a virtual machine:"
220 msgstr ""
221
222 #. type: verbatim
223 #: ../cat/virt-cat.pod:54
224 #, no-wrap
225 msgid ""
226 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
227 " who /tmp/utmp\n"
228 "\n"
229 msgstr ""
230
231 #. type: textblock
232 #: ../cat/virt-cat.pod:57
233 msgid "or who was logged on:"
234 msgstr ""
235
236 #. type: verbatim
237 #: ../cat/virt-cat.pod:59
238 #, no-wrap
239 msgid ""
240 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
241 " last -f /tmp/wtmp\n"
242 "\n"
243 msgstr ""
244
245 #. type: =head1
246 #: ../cat/virt-cat.pod:62 ../cat/virt-filesystems.pod:91
247 #: ../cat/virt-ls.pod:261 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
248 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
249 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
250 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:83
251 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
252 #: ../resize/virt-resize.pod:241 ../test-tool/libguestfs-test-tool.pod:36
253 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
254 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
255 #: ../tools/virt-win-reg.pl:96
256 msgid "OPTIONS"
257 msgstr "ПАРАМЕТРИ"
258
259 #. type: =item
260 #: ../cat/virt-cat.pod:66 ../cat/virt-filesystems.pod:95
261 #: ../cat/virt-ls.pod:265 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
262 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:151
263 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
264 #: ../resize/virt-resize.pod:245 ../test-tool/libguestfs-test-tool.pod:40
265 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
266 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
267 #: ../tools/virt-win-reg.pl:104
268 msgid "B<--help>"
269 msgstr "B<--help>"
270
271 #. type: textblock
272 #: ../cat/virt-cat.pod:68 ../cat/virt-filesystems.pod:97
273 #: ../cat/virt-ls.pod:267 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
274 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
275 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
276 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
277 #: ../tools/virt-win-reg.pl:106
278 msgid "Display brief help."
279 msgstr ""
280
281 #. type: =item
282 #: ../cat/virt-cat.pod:70 ../cat/virt-filesystems.pod:99
283 #: ../cat/virt-ls.pod:269 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
284 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
285 #, fuzzy
286 #| msgid "B<-f file>"
287 msgid "B<-a> file"
288 msgstr "B<-f файл>"
289
290 #. type: =item
291 #: ../cat/virt-cat.pod:72 ../cat/virt-filesystems.pod:101
292 #: ../cat/virt-ls.pod:271 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
293 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
294 #, fuzzy
295 #| msgid "B<--add image>"
296 msgid "B<--add> file"
297 msgstr "B<--add образ>"
298
299 #. type: textblock
300 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
301 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
302 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
303 msgid ""
304 "Add I<file> which should be a disk image from a virtual machine.  If the "
305 "virtual machine has multiple block devices, you must supply all of them with "
306 "separate I<-a> options."
307 msgstr ""
308
309 #. type: textblock
310 #: ../cat/virt-cat.pod:78 ../cat/virt-filesystems.pod:107
311 #: ../cat/virt-ls.pod:277 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
312 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:93
313 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
314 msgid ""
315 "The format of the disk image is auto-detected.  To override this and force a "
316 "particular format use the I<--format=..> option."
317 msgstr ""
318
319 #. type: =item
320 #: ../cat/virt-cat.pod:81 ../cat/virt-filesystems.pod:125
321 #: ../cat/virt-ls.pod:291 ../df/virt-df.pod:78 ../rescue/virt-rescue.pod:107
322 #, fuzzy
323 #| msgid "B<-c URI>"
324 msgid "B<-c> URI"
325 msgstr "B<-c адреса>"
326
327 #. type: =item
328 #: ../cat/virt-cat.pod:83 ../cat/virt-filesystems.pod:127
329 #: ../cat/virt-ls.pod:293 ../df/virt-df.pod:80 ../rescue/virt-rescue.pod:109
330 #, fuzzy
331 #| msgid "B<--connect URI>"
332 msgid "B<--connect> URI"
333 msgstr "B<--connect адреса>"
334
335 #. type: textblock
336 #: ../cat/virt-cat.pod:85 ../cat/virt-filesystems.pod:129
337 #: ../cat/virt-ls.pod:295 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
338 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
339 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
340 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
341 msgid ""
342 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
343 "to the default libvirt hypervisor."
344 msgstr ""
345
346 #. type: textblock
347 #: ../cat/virt-cat.pod:88 ../cat/virt-filesystems.pod:132
348 #: ../cat/virt-ls.pod:298 ../df/virt-df.pod:85 ../rescue/virt-rescue.pod:114
349 msgid ""
350 "If you specify guest block devices directly (I<-a>), then libvirt is not "
351 "used at all."
352 msgstr ""
353
354 #. type: =item
355 #: ../cat/virt-cat.pod:91 ../cat/virt-filesystems.pod:141
356 #: ../cat/virt-ls.pod:307 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
357 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
358 msgid "B<-d> guest"
359 msgstr ""
360
361 #. type: =item
362 #: ../cat/virt-cat.pod:93 ../cat/virt-filesystems.pod:143
363 #: ../cat/virt-ls.pod:309 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
364 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
365 msgid "B<--domain> guest"
366 msgstr ""
367
368 #. type: textblock
369 #: ../cat/virt-cat.pod:95 ../cat/virt-filesystems.pod:145
370 #: ../cat/virt-ls.pod:311 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
371 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
372 msgid ""
373 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
374 "instead of names."
375 msgstr ""
376
377 #. type: =item
378 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
379 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
380 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
381 msgid "B<--echo-keys>"
382 msgstr "B<--echo-keys>"
383
384 #. type: textblock
385 #: ../cat/virt-cat.pod:100
386 msgid ""
387 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
388 "so you cannot see what you are typing.  If you are not worried about Tempest "
389 "attacks and there is no one else in the room you can specify this flag to "
390 "see what you are typing."
391 msgstr ""
392
393 #. type: =item
394 #: ../cat/virt-cat.pod:105 ../cat/virt-filesystems.pod:170
395 #: ../cat/virt-ls.pod:328 ../df/virt-df.pod:101 ../fish/guestfish.pod:233
396 #: ../fuse/guestmount.pod:133 ../inspector/virt-inspector.pod:99
397 #: ../rescue/virt-rescue.pod:124
398 msgid "B<--format=raw|qcow2|..>"
399 msgstr "B<--format=raw|qcow2|..>"
400
401 #. type: =item
402 #: ../cat/virt-cat.pod:107 ../cat/virt-filesystems.pod:172
403 #: ../cat/virt-ls.pod:330 ../df/virt-df.pod:103 ../edit/virt-edit.pod:134
404 #: ../fish/guestfish.pod:235 ../fuse/guestmount.pod:135
405 #: ../inspector/virt-inspector.pod:101 ../rescue/virt-rescue.pod:126
406 msgid "B<--format>"
407 msgstr "B<--format>"
408
409 #. type: textblock
410 #: ../cat/virt-cat.pod:109 ../cat/virt-filesystems.pod:174
411 #: ../cat/virt-ls.pod:332 ../df/virt-df.pod:105 ../edit/virt-edit.pod:136
412 #: ../fish/guestfish.pod:237 ../fuse/guestmount.pod:137
413 #: ../rescue/virt-rescue.pod:128
414 msgid ""
415 "The default for the I<-a> option is to auto-detect the format of the disk "
416 "image.  Using this forces the disk format for I<-a> options which follow on "
417 "the command line.  Using I<--format> with no argument switches back to auto-"
418 "detection for subsequent I<-a> options."
419 msgstr ""
420
421 #. type: textblock
422 #: ../cat/virt-cat.pod:114 ../cat/virt-filesystems.pod:179
423 #: ../cat/virt-ls.pod:337 ../df/virt-df.pod:110 ../edit/virt-edit.pod:141
424 #: ../fish/guestfish.pod:242 ../fish/guestfish.pod:673
425 #: ../inspector/virt-inspector.pod:336 ../rescue/virt-rescue.pod:133
426 #: ../src/guestfs.pod:2788
427 msgid "For example:"
428 msgstr "Приклад:"
429
430 #. type: verbatim
431 #: ../cat/virt-cat.pod:116
432 #, fuzzy, no-wrap
433 #| msgid ""
434 #| " guestfish --format=raw -a disk.img\n"
435 #| "\n"
436 msgid ""
437 " virt-cat --format=raw -a disk.img file\n"
438 "\n"
439 msgstr ""
440 " guestfish --format=raw -a disk.img\n"
441 "\n"
442
443 #. type: textblock
444 #: ../cat/virt-cat.pod:118 ../cat/virt-filesystems.pod:183
445 #: ../cat/virt-ls.pod:341 ../df/virt-df.pod:114 ../edit/virt-edit.pod:145
446 #: ../fish/guestfish.pod:246 ../rescue/virt-rescue.pod:137
447 msgid "forces raw format (no auto-detection) for C<disk.img>."
448 msgstr ""
449
450 #. type: verbatim
451 #: ../cat/virt-cat.pod:120
452 #, fuzzy, no-wrap
453 #| msgid ""
454 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
455 #| "\n"
456 msgid ""
457 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
458 "\n"
459 msgstr ""
460 " guestfish --format=raw -a disk.img --format -a another.img\n"
461 "\n"
462
463 #. type: textblock
464 #: ../cat/virt-cat.pod:122 ../cat/virt-filesystems.pod:187
465 #: ../cat/virt-ls.pod:345 ../df/virt-df.pod:118 ../edit/virt-edit.pod:149
466 #: ../fish/guestfish.pod:250 ../rescue/virt-rescue.pod:141
467 msgid ""
468 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
469 "detection for C<another.img>."
470 msgstr ""
471
472 #. type: textblock
473 #: ../cat/virt-cat.pod:125 ../cat/virt-filesystems.pod:190
474 #: ../cat/virt-ls.pod:348 ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
475 #: ../rescue/virt-rescue.pod:144
476 msgid ""
477 "If you have untrusted raw-format guest disk images, you should use this "
478 "option to specify the disk format.  This avoids a possible security problem "
479 "with malicious guests (CVE-2010-3851)."
480 msgstr ""
481
482 #. type: =item
483 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
484 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
485 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
486 msgid "B<--keys-from-stdin>"
487 msgstr "B<--keys-from-stdin>"
488
489 #. type: textblock
490 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
491 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
492 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
493 msgid ""
494 "Read key or passphrase parameters from stdin.  The default is to try to read "
495 "passphrases from the user by opening C</dev/tty>."
496 msgstr ""
497
498 #. type: =item
499 #: ../cat/virt-cat.pod:134 ../cat/virt-filesystems.pod:261
500 #: ../cat/virt-ls.pod:425 ../df/virt-df.pod:173 ../edit/virt-edit.pod:161
501 #: ../fish/guestfish.pod:390 ../fuse/guestmount.pod:257
502 #: ../inspector/virt-inspector.pod:119 ../rescue/virt-rescue.pod:182
503 msgid "B<-v>"
504 msgstr "B<-v>"
505
506 #. type: =item
507 #: ../cat/virt-cat.pod:136 ../cat/virt-filesystems.pod:263
508 #: ../cat/virt-ls.pod:427 ../df/virt-df.pod:175 ../edit/virt-edit.pod:163
509 #: ../fish/guestfish.pod:392 ../fuse/guestmount.pod:259
510 #: ../inspector/virt-inspector.pod:121 ../rescue/virt-rescue.pod:184
511 msgid "B<--verbose>"
512 msgstr "B<--verbose>"
513
514 #. type: textblock
515 #: ../cat/virt-cat.pod:138 ../cat/virt-filesystems.pod:265
516 #: ../cat/virt-ls.pod:429 ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
517 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186
518 msgid "Enable verbose messages for debugging."
519 msgstr ""
520
521 #. type: =item
522 #: ../cat/virt-cat.pod:140 ../cat/virt-filesystems.pod:267
523 #: ../cat/virt-ls.pod:431 ../df/virt-df.pod:179 ../edit/virt-edit.pod:167
524 #: ../fish/guestfish.pod:397 ../fuse/guestmount.pod:263
525 #: ../inspector/virt-inspector.pod:125 ../rescue/virt-rescue.pod:188
526 #: ../resize/virt-resize.pod:484
527 msgid "B<-V>"
528 msgstr "B<-V>"
529
530 #. type: =item
531 #: ../cat/virt-cat.pod:142 ../cat/virt-filesystems.pod:269
532 #: ../cat/virt-ls.pod:433 ../df/virt-df.pod:181 ../edit/virt-edit.pod:169
533 #: ../fish/guestfish.pod:399 ../fuse/guestmount.pod:265
534 #: ../inspector/virt-inspector.pod:127 ../rescue/virt-rescue.pod:190
535 #: ../resize/virt-resize.pod:486 ../tools/virt-list-filesystems.pl:69
536 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
537 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
538 msgid "B<--version>"
539 msgstr "B<--version>"
540
541 #. type: textblock
542 #: ../cat/virt-cat.pod:144 ../cat/virt-filesystems.pod:271
543 #: ../cat/virt-ls.pod:435 ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
544 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192
545 #: ../resize/virt-resize.pod:488 ../tools/virt-list-filesystems.pl:71
546 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
547 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
548 msgid "Display version number and exit."
549 msgstr "Показати дані щодо версії і завершити роботу."
550
551 #. type: =item
552 #: ../cat/virt-cat.pod:146 ../cat/virt-filesystems.pod:281
553 #: ../cat/virt-ls.pod:437 ../df/virt-df.pod:185 ../edit/virt-edit.pod:173
554 #: ../fish/guestfish.pod:412 ../fuse/guestmount.pod:278
555 #: ../inspector/virt-inspector.pod:131 ../rescue/virt-rescue.pod:203
556 #: ../tools/virt-tar.pl:158
557 msgid "B<-x>"
558 msgstr "B<-x>"
559
560 #. type: textblock
561 #: ../cat/virt-cat.pod:148 ../cat/virt-filesystems.pod:283
562 #: ../cat/virt-ls.pod:439 ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
563 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205
564 msgid "Enable tracing of libguestfs API calls."
565 msgstr ""
566
567 #. type: =head1
568 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
569 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
570 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
571 msgstr ""
572
573 #. type: textblock
574 #: ../cat/virt-cat.pod:154
575 msgid "Previous versions of virt-cat allowed you to write either:"
576 msgstr ""
577
578 #. type: verbatim
579 #: ../cat/virt-cat.pod:156
580 #, fuzzy, no-wrap
581 #| msgid ""
582 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
583 #| "\n"
584 msgid ""
585 " virt-cat disk.img [disk.img ...] file\n"
586 "\n"
587 msgstr ""
588 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
589 "\n"
590
591 #. type: textblock
592 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
593 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
594 #, fuzzy
595 #| msgid "or:"
596 msgid "or"
597 msgstr "або:"
598
599 #. type: verbatim
600 #: ../cat/virt-cat.pod:160
601 #, no-wrap
602 msgid ""
603 " virt-cat guestname file\n"
604 "\n"
605 msgstr ""
606
607 #. type: textblock
608 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
609 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
610 msgid ""
611 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
612 "the confusing case where a disk image might have the same name as a guest."
613 msgstr ""
614
615 #. type: textblock
616 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
617 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
618 msgid "For compatibility the old style is still supported."
619 msgstr ""
620
621 #. type: =head1
622 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
623 msgid "USING GUESTFISH"
624 msgstr ""
625
626 #. type: textblock
627 #: ../cat/virt-cat.pod:170
628 msgid ""
629 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
630 "C<virt-cat> doesn't work."
631 msgstr ""
632
633 #. type: textblock
634 #: ../cat/virt-cat.pod:173
635 msgid "Using C<virt-cat> is approximately equivalent to doing:"
636 msgstr ""
637
638 #. type: verbatim
639 #: ../cat/virt-cat.pod:175
640 #, fuzzy, no-wrap
641 #| msgid ""
642 #| " guestfish --ro -d myguest -i\n"
643 #| "\n"
644 msgid ""
645 " guestfish --ro -i -d domname download file -\n"
646 "\n"
647 msgstr ""
648 " guestfish --ro -d myguest -i\n"
649 "\n"
650
651 #. type: textblock
652 #: ../cat/virt-cat.pod:177
653 msgid ""
654 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
655 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
656 msgstr ""
657
658 #. type: textblock
659 #: ../cat/virt-cat.pod:181
660 msgid ""
661 "The command above uses libguestfs's guest inspection feature and so does not "
662 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
663 "disk images that don't contain guests.  To display a file from a disk image "
664 "directly, use:"
665 msgstr ""
666
667 #. type: verbatim
668 #: ../cat/virt-cat.pod:186
669 #, fuzzy, no-wrap
670 #| msgid ""
671 #| " guestfish [--ro] -i disk.img\n"
672 #| "\n"
673 msgid ""
674 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
675 "\n"
676 msgstr ""
677 " guestfish [--ro] -i disk.img\n"
678 "\n"
679
680 #. type: textblock
681 #: ../cat/virt-cat.pod:188
682 msgid ""
683 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
684 "the disk image, and C<file> is the full path to the file."
685 msgstr ""
686
687 #. type: =head1
688 #: ../cat/virt-cat.pod:191 ../cat/virt-filesystems.pod:365
689 #: ../cat/virt-ls.pod:483 ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
690 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:266
691 #: ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188
692 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
693 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
694 msgid "SHELL QUOTING"
695 msgstr ""
696
697 #. type: textblock
698 #: ../cat/virt-cat.pod:193 ../cat/virt-filesystems.pod:367
699 #: ../cat/virt-ls.pod:485 ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
700 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:268
701 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190
702 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
703 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
704 msgid ""
705 "Libvirt guest names can contain arbitrary characters, some of which have "
706 "meaning to the shell such as C<#> and space.  You may need to quote or "
707 "escape these characters on the command line.  See the shell manual page L<sh"
708 "(1)> for details."
709 msgstr ""
710
711 #. type: =head1
712 #: ../cat/virt-cat.pod:198 ../cat/virt-filesystems.pod:372
713 #: ../cat/virt-ls.pod:490 ../df/virt-df.pod:222 ../edit/virt-edit.pod:349
714 #: ../fish/guestfish.pod:1081 ../fuse/guestmount.pod:303
715 #: ../inspector/virt-inspector.pod:375 ../resize/virt-resize.pod:608
716 #: ../test-tool/libguestfs-test-tool.pod:90
717 msgid "EXIT STATUS"
718 msgstr ""
719
720 #. type: textblock
721 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
722 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
723 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
724 #: ../resize/virt-resize.pod:610
725 msgid ""
726 "This program returns 0 if successful, or non-zero if there was an error."
727 msgstr ""
728
729 #. type: =head1
730 #: ../cat/virt-cat.pod:203 ../cat/virt-filesystems.pod:377
731 #: ../cat/virt-ls.pod:495 ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
732 #: ../erlang/examples/guestfs-erlang.pod:97
733 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
734 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
735 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
736 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
737 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
738 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
739 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
740 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
741 #: ../src/guestfs.pod:3164 ../test-tool/libguestfs-test-tool.pod:100
742 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
743 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
744 #: ../tools/virt-win-reg.pl:746
745 msgid "SEE ALSO"
746 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
747
748 #. type: textblock
749 #: ../cat/virt-cat.pod:205
750 #, fuzzy
751 #| msgid ""
752 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
753 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
754 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
755 msgid ""
756 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
757 "tar-out(1)>, L<http://libguestfs.org/>."
758 msgstr ""
759 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
760 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
761 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
762
763 #. type: =head1
764 #: ../cat/virt-cat.pod:212 ../cat/virt-filesystems.pod:388
765 #: ../cat/virt-ls.pod:507 ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
766 #: ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:634
767 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
768 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
769 #: ../tools/virt-win-reg.pl:772
770 msgid "AUTHOR"
771 msgstr "АВТОР"
772
773 #. type: textblock
774 #: ../cat/virt-cat.pod:214 ../cat/virt-filesystems.pod:390
775 #: ../cat/virt-ls.pod:509 ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
776 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:298
777 #: ../resize/virt-resize.pod:636 ../tools/virt-list-filesystems.pl:210
778 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
779 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
780 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
781 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
782
783 #. type: =head1
784 #: ../cat/virt-cat.pod:216 ../cat/virt-filesystems.pod:392
785 #: ../cat/virt-ls.pod:511 ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
786 #: ../erlang/examples/guestfs-erlang.pod:114
787 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
788 #: ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:64
789 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
790 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
791 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
792 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
793 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
794 #: ../resize/virt-resize.pod:638 ../ruby/examples/guestfs-ruby.pod:52
795 #: ../src/guestfs.pod:3241 ../test-tool/libguestfs-test-tool.pod:110
796 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
797 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
798 #: ../tools/virt-win-reg.pl:776
799 msgid "COPYRIGHT"
800 msgstr "АВТОРСЬКІ ПРАВА"
801
802 #. type: textblock
803 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
804 #: ../resize/virt-resize.pod:640
805 #, fuzzy
806 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
807 msgid "Copyright (C) 2010-2011 Red Hat Inc."
808 msgstr "© Red Hat Inc., 2009–2010"
809
810 #. type: textblock
811 #: ../cat/virt-cat.pod:220 ../cat/virt-filesystems.pod:396
812 #: ../cat/virt-ls.pod:515 ../df/virt-df.pod:243 ../edit/virt-edit.pod:376
813 #: ../fish/guestfish.pod:1269 ../fish/virt-copy-in.pod:69
814 #: ../fish/virt-copy-out.pod:58 ../fish/virt-tar-in.pod:67
815 #: ../fish/virt-tar-out.pod:60 ../fuse/guestmount.pod:328
816 #: ../inspector/virt-inspector.pod:407 ../rescue/virt-rescue.pod:304
817 #: ../resize/virt-resize.pod:642 ../test-tool/libguestfs-test-tool.pod:115
818 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
819 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
820 #: ../tools/virt-win-reg.pl:780
821 msgid ""
822 "This program is free software; you can redistribute it and/or modify it "
823 "under the terms of the GNU General Public License as published by the Free "
824 "Software Foundation; either version 2 of the License, or (at your option) "
825 "any later version."
826 msgstr ""
827
828 #. type: textblock
829 #: ../cat/virt-cat.pod:225 ../cat/virt-filesystems.pod:401
830 #: ../cat/virt-ls.pod:520 ../df/virt-df.pod:248 ../edit/virt-edit.pod:381
831 #: ../fish/guestfish.pod:1274 ../fish/virt-copy-in.pod:74
832 #: ../fish/virt-copy-out.pod:63 ../fish/virt-tar-in.pod:72
833 #: ../fish/virt-tar-out.pod:65 ../fuse/guestmount.pod:333
834 #: ../inspector/virt-inspector.pod:412 ../rescue/virt-rescue.pod:309
835 #: ../resize/virt-resize.pod:647 ../test-tool/libguestfs-test-tool.pod:120
836 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
837 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
838 #: ../tools/virt-win-reg.pl:785
839 msgid ""
840 "This program is distributed in the hope that it will be useful, but WITHOUT "
841 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
842 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
843 "more details."
844 msgstr ""
845 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
846 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
847 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
848 "дізнатися з GNU General Public License."
849
850 #. type: textblock
851 #: ../cat/virt-cat.pod:230 ../cat/virt-filesystems.pod:406
852 #: ../cat/virt-ls.pod:525 ../df/virt-df.pod:253 ../edit/virt-edit.pod:386
853 #: ../fish/guestfish.pod:1279 ../fish/virt-copy-in.pod:79
854 #: ../fish/virt-copy-out.pod:68 ../fish/virt-tar-in.pod:77
855 #: ../fish/virt-tar-out.pod:70 ../fuse/guestmount.pod:338
856 #: ../inspector/virt-inspector.pod:417 ../rescue/virt-rescue.pod:314
857 #: ../resize/virt-resize.pod:652 ../test-tool/libguestfs-test-tool.pod:125
858 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
859 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
860 #: ../tools/virt-win-reg.pl:790
861 msgid ""
862 "You should have received a copy of the GNU General Public License along with "
863 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
864 "Ave, Cambridge, MA 02139, USA."
865 msgstr ""
866
867 #. type: textblock
868 #: ../cat/virt-filesystems.pod:5
869 msgid ""
870 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
871 "virtual machine or disk image"
872 msgstr ""
873
874 #. type: verbatim
875 #: ../cat/virt-filesystems.pod:9
876 #, fuzzy, no-wrap
877 #| msgid ""
878 #| " virt-list-partitions [--options] domname\n"
879 #| "\n"
880 msgid ""
881 " virt-filesystems [--options] -d domname\n"
882 "\n"
883 msgstr ""
884 " virt-list-partitions [--параметри] назва_домену\n"
885 "\n"
886
887 #. type: verbatim
888 #: ../cat/virt-filesystems.pod:11
889 #, fuzzy, no-wrap
890 #| msgid ""
891 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
892 #| "\n"
893 msgid ""
894 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
895 "\n"
896 msgstr ""
897 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
898 "\n"
899
900 #. type: textblock
901 #: ../cat/virt-filesystems.pod:15
902 msgid ""
903 "This tool allows you to discover filesystems, partitions, logical volumes, "
904 "and their sizes in a disk image or virtual machine.  It is a replacement for "
905 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
906 msgstr ""
907
908 #. type: textblock
909 #: ../cat/virt-filesystems.pod:20
910 msgid ""
911 "One use for this tool is from shell scripts to iterate over all filesystems "
912 "from a disk image:"
913 msgstr ""
914
915 #. type: verbatim
916 #: ../cat/virt-filesystems.pod:23
917 #, no-wrap
918 msgid ""
919 " for fs in $(virt-filesystems -a disk.img); do\n"
920 "   # ...\n"
921 " done\n"
922 "\n"
923 msgstr ""
924
925 #. type: textblock
926 #: ../cat/virt-filesystems.pod:27
927 msgid ""
928 "Another use is to list partitions before using another tool to modify those "
929 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
930 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
931 msgstr ""
932
933 #. type: textblock
934 #: ../cat/virt-filesystems.pod:32
935 msgid ""
936 "Various command line options control what this program displays.  You need "
937 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
938 "guest respectively.  If you just specify that then the program shows "
939 "filesystems found, one per line, like this:"
940 msgstr ""
941
942 #. type: verbatim
943 #: ../cat/virt-filesystems.pod:37
944 #, no-wrap
945 msgid ""
946 " $ virt-filesystems -a disk.img\n"
947 " /dev/sda1\n"
948 " /dev/vg_guest/lv_root\n"
949 "\n"
950 msgstr ""
951
952 #. type: textblock
953 #: ../cat/virt-filesystems.pod:41
954 msgid ""
955 "If you add I<-l> or I<--long> then the output includes extra information:"
956 msgstr ""
957
958 #. type: verbatim
959 #: ../cat/virt-filesystems.pod:44
960 #, no-wrap
961 msgid ""
962 " $ virt-filesystems -a disk.img -l\n"
963 " Name                   Type         VFS   Label  Size\n"
964 " /dev/sda1              filesystem   ext4  boot   524288000\n"
965 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
966 "\n"
967 msgstr ""
968
969 #. type: textblock
970 #: ../cat/virt-filesystems.pod:49
971 msgid ""
972 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
973 "shown as well:"
974 msgstr ""
975
976 #. type: verbatim
977 #: ../cat/virt-filesystems.pod:52
978 #, no-wrap
979 msgid ""
980 " $ virt-filesystems -a disk.img --extra\n"
981 " /dev/sda1\n"
982 " /dev/vg_guest/lv_root\n"
983 " /dev/vg_guest/lv_swap\n"
984 " /dev/vg_guest/lv_data\n"
985 "\n"
986 msgstr ""
987
988 #. type: textblock
989 #: ../cat/virt-filesystems.pod:58
990 msgid ""
991 "If you add I<--partitions> then partitions are shown instead of filesystems:"
992 msgstr ""
993
994 #. type: verbatim
995 #: ../cat/virt-filesystems.pod:60
996 #, no-wrap
997 msgid ""
998 " $ virt-filesystems -a disk.img --partitions\n"
999 " /dev/sda1\n"
1000 " /dev/sda2\n"
1001 "\n"
1002 msgstr ""
1003
1004 #. type: textblock
1005 #: ../cat/virt-filesystems.pod:64
1006 msgid ""
1007 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1008 "volumes>, I<--block-devices> to list those items."
1009 msgstr ""
1010
1011 #. type: textblock
1012 #: ../cat/virt-filesystems.pod:67
1013 msgid ""
1014 "You can use these options in combination as well (if you want a combination "
1015 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1016 "items fall into several categories (eg. C</dev/sda1> might be both a "
1017 "partition and a filesystem).  These items are listed several times.  To get "
1018 "a list which includes absolutely everything that virt-filesystems knows "
1019 "about, use the I<--all> option."
1020 msgstr ""
1021
1022 #. type: textblock
1023 #: ../cat/virt-filesystems.pod:74
1024 msgid ""
1025 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1026 "uuid> option to display device and filesystem UUIDs in the long output."
1027 msgstr ""
1028
1029 #. type: textblock
1030 #: ../cat/virt-filesystems.pod:78
1031 msgid ""
1032 "I<--all --long --uuid> is a useful combination to display all possible "
1033 "information about everything."
1034 msgstr ""
1035
1036 #. type: verbatim
1037 #: ../cat/virt-filesystems.pod:81
1038 #, no-wrap
1039 msgid ""
1040 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1041 " Name      Type       VFS  Label           Size Parent   UUID\n"
1042 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1043 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1044 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1045 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1046 " /dev/sda  device     -    -               20G  -        -\n"
1047 "\n"
1048 msgstr ""
1049
1050 #. type: textblock
1051 #: ../cat/virt-filesystems.pod:89
1052 msgid ""
1053 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1054 msgstr ""
1055
1056 #. type: =item
1057 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1058 #, fuzzy
1059 #| msgid "B<--help>"
1060 msgid "B<--all>"
1061 msgstr "B<--help>"
1062
1063 #. type: textblock
1064 #: ../cat/virt-filesystems.pod:112
1065 msgid ""
1066 "Display everything.  This is currently the same as specifying these options: "
1067 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1068 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1069 "added to this list in future)."
1070 msgstr ""
1071
1072 #. type: textblock
1073 #: ../cat/virt-filesystems.pod:117
1074 #, fuzzy
1075 #| msgid "See also L</is-lv>."
1076 msgid "See also I<--long>."
1077 msgstr "Див. також L</is-lv>."
1078
1079 #. type: =item
1080 #: ../cat/virt-filesystems.pod:119
1081 #, fuzzy
1082 #| msgid "B<--live>"
1083 msgid "B<--blkdevs>"
1084 msgstr "B<--live>"
1085
1086 #. type: =item
1087 #: ../cat/virt-filesystems.pod:121
1088 #, fuzzy
1089 #| msgid "is-blockdev"
1090 msgid "B<--block-devices>"
1091 msgstr "is-blockdev"
1092
1093 #. type: textblock
1094 #: ../cat/virt-filesystems.pod:123
1095 #, fuzzy
1096 #| msgid "is-blockdev"
1097 msgid "Display block devices."
1098 msgstr "is-blockdev"
1099
1100 #. type: =item
1101 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1102 #, fuzzy
1103 #| msgid "B<--csh>"
1104 msgid "B<--csv>"
1105 msgstr "B<--csh>"
1106
1107 #. type: textblock
1108 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1109 msgid ""
1110 "Write out the results in CSV format (comma-separated values).  This format "
1111 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1112 "ABOUT CSV FORMAT> below."
1113 msgstr ""
1114
1115 #. type: textblock
1116 #: ../cat/virt-filesystems.pod:150
1117 msgid ""
1118 "When prompting for keys and passphrases, virt-filesystems normally turns "
1119 "echoing off so you cannot see what you are typing.  If you are not worried "
1120 "about Tempest attacks and there is no one else in the room you can specify "
1121 "this flag to see what you are typing."
1122 msgstr ""
1123
1124 #. type: =item
1125 #: ../cat/virt-filesystems.pod:155
1126 #, fuzzy
1127 #| msgid "B<--ro>"
1128 msgid "B<--extra>"
1129 msgstr "B<--ro>"
1130
1131 #. type: textblock
1132 #: ../cat/virt-filesystems.pod:157
1133 msgid ""
1134 "This causes filesystems that are not ordinary, mountable filesystems to be "
1135 "displayed.  This category includes swapspace, and filesystems that are empty "
1136 "or contain unknown data."
1137 msgstr ""
1138
1139 #. type: textblock
1140 #: ../cat/virt-filesystems.pod:161
1141 msgid "This option implies I<--filesystems>."
1142 msgstr ""
1143
1144 #. type: =item
1145 #: ../cat/virt-filesystems.pod:163
1146 #, fuzzy
1147 #| msgid "list-filesystems"
1148 msgid "B<--filesystems>"
1149 msgstr "list-filesystems"
1150
1151 #. type: textblock
1152 #: ../cat/virt-filesystems.pod:165
1153 msgid ""
1154 "Display mountable filesystems.  If no display option was selected then this "
1155 "option is implied."
1156 msgstr ""
1157
1158 #. type: textblock
1159 #: ../cat/virt-filesystems.pod:168
1160 msgid "With I<--extra>, non-mountable filesystems are shown too."
1161 msgstr ""
1162
1163 #. type: verbatim
1164 #: ../cat/virt-filesystems.pod:181
1165 #, fuzzy, no-wrap
1166 #| msgid ""
1167 #| " guestfish --format=raw -a disk.img\n"
1168 #| "\n"
1169 msgid ""
1170 " virt-filesystems --format=raw -a disk.img\n"
1171 "\n"
1172 msgstr ""
1173 " guestfish --format=raw -a disk.img\n"
1174 "\n"
1175
1176 #. type: verbatim
1177 #: ../cat/virt-filesystems.pod:185
1178 #, fuzzy, no-wrap
1179 #| msgid ""
1180 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1181 #| "\n"
1182 msgid ""
1183 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1184 "\n"
1185 msgstr ""
1186 " guestfish --format=raw -a disk.img --format -a another.img\n"
1187 "\n"
1188
1189 #. type: =item
1190 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1191 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1192 #: ../tools/virt-list-partitions.pl:109
1193 msgid "B<-h>"
1194 msgstr "B<-h>"
1195
1196 #. type: =item
1197 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1198 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1199 #, fuzzy
1200 #| msgid "B<-h> | B<--human-readable>"
1201 msgid "B<--human-readable>"
1202 msgstr "B<-h> | B<--human-readable>"
1203
1204 #. type: textblock
1205 #: ../cat/virt-filesystems.pod:198
1206 msgid "In I<--long> mode, display sizes in human-readable format."
1207 msgstr ""
1208
1209 #. type: =item
1210 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1211 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1212 msgid "B<-l>"
1213 msgstr ""
1214
1215 #. type: =item
1216 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1217 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1218 #, fuzzy
1219 #| msgid "B<--ro>"
1220 msgid "B<--long>"
1221 msgstr "B<--ro>"
1222
1223 #. type: textblock
1224 #: ../cat/virt-filesystems.pod:209
1225 msgid "Display extra columns of data (\"long format\")."
1226 msgstr ""
1227
1228 #. type: textblock
1229 #: ../cat/virt-filesystems.pod:211
1230 msgid "A title row is added unless you also specify I<--no-title>."
1231 msgstr ""
1232
1233 #. type: textblock
1234 #: ../cat/virt-filesystems.pod:213
1235 msgid ""
1236 "The extra columns displayed depend on what output you select, and the "
1237 "ordering of columns may change in future versions.  Use the title row, I<--"
1238 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1239 "programs."
1240 msgstr ""
1241
1242 #. type: textblock
1243 #: ../cat/virt-filesystems.pod:218
1244 msgid ""
1245 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1246 "default is to show raw numbers of I<bytes>."
1247 msgstr ""
1248
1249 #. type: textblock
1250 #: ../cat/virt-filesystems.pod:221
1251 msgid "Use I<--uuid> to display UUIDs too."
1252 msgstr ""
1253
1254 #. type: =item
1255 #: ../cat/virt-filesystems.pod:223
1256 #, fuzzy
1257 #| msgid "B<--live>"
1258 msgid "B<--lvs>"
1259 msgstr "B<--live>"
1260
1261 #. type: =item
1262 #: ../cat/virt-filesystems.pod:225
1263 #, fuzzy
1264 #| msgid "B<--live>"
1265 msgid "B<--logvols>"
1266 msgstr "B<--live>"
1267
1268 #. type: =item
1269 #: ../cat/virt-filesystems.pod:227
1270 #, fuzzy
1271 #| msgid "B<--live>"
1272 msgid "B<--logical-volumes>"
1273 msgstr "B<--live>"
1274
1275 #. type: textblock
1276 #: ../cat/virt-filesystems.pod:229
1277 msgid ""
1278 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1279 "of whether the LVs contain filesystems."
1280 msgstr ""
1281
1282 #. type: =item
1283 #: ../cat/virt-filesystems.pod:232
1284 #, fuzzy
1285 #| msgid "B<--listen>"
1286 msgid "B<--no-title>"
1287 msgstr "B<--listen>"
1288
1289 #. type: textblock
1290 #: ../cat/virt-filesystems.pod:234
1291 msgid "In I<--long> mode, don't add a title row."
1292 msgstr ""
1293
1294 #. type: textblock
1295 #: ../cat/virt-filesystems.pod:236
1296 msgid ""
1297 "Note that the order of the columns is not fixed, and may change in future "
1298 "versions of virt-filesystems, so using this option may give you unexpected "
1299 "surprises."
1300 msgstr ""
1301
1302 #. type: =item
1303 #: ../cat/virt-filesystems.pod:240
1304 #, fuzzy
1305 #| msgid "B<--partition>"
1306 msgid "B<--parts>"
1307 msgstr "B<--partition>"
1308
1309 #. type: =item
1310 #: ../cat/virt-filesystems.pod:242
1311 #, fuzzy
1312 #| msgid "B<--partition>"
1313 msgid "B<--partitions>"
1314 msgstr "B<--partition>"
1315
1316 #. type: textblock
1317 #: ../cat/virt-filesystems.pod:244
1318 msgid ""
1319 "Display partitions.  In this mode, these are displayed irrespective of "
1320 "whether the partitions contain filesystems."
1321 msgstr ""
1322
1323 #. type: =item
1324 #: ../cat/virt-filesystems.pod:247
1325 #, fuzzy
1326 #| msgid "B<--csh>"
1327 msgid "B<--pvs>"
1328 msgstr "B<--csh>"
1329
1330 #. type: =item
1331 #: ../cat/virt-filesystems.pod:249
1332 #, fuzzy
1333 #| msgid "B<--verbose>"
1334 msgid "B<--physvols>"
1335 msgstr "B<--verbose>"
1336
1337 #. type: =item
1338 #: ../cat/virt-filesystems.pod:251
1339 msgid "B<--physical-volumes>"
1340 msgstr ""
1341
1342 #. type: textblock
1343 #: ../cat/virt-filesystems.pod:253
1344 msgid "Display LVM physical volumes."
1345 msgstr ""
1346
1347 #. type: =item
1348 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1349 #, fuzzy
1350 #| msgid "B<--live>"
1351 msgid "B<--uuid>"
1352 msgstr "B<--live>"
1353
1354 #. type: =item
1355 #: ../cat/virt-filesystems.pod:257
1356 #, fuzzy
1357 #| msgid "B<--csh>"
1358 msgid "B<--uuids>"
1359 msgstr "B<--csh>"
1360
1361 #. type: textblock
1362 #: ../cat/virt-filesystems.pod:259
1363 msgid "In I<--long> mode, display UUIDs as well."
1364 msgstr ""
1365
1366 #. type: =item
1367 #: ../cat/virt-filesystems.pod:273
1368 #, fuzzy
1369 #| msgid "B<--csh>"
1370 msgid "B<--vgs>"
1371 msgstr "B<--csh>"
1372
1373 #. type: =item
1374 #: ../cat/virt-filesystems.pod:275
1375 #, fuzzy
1376 #| msgid "B<--verbose>"
1377 msgid "B<--volgroups>"
1378 msgstr "B<--verbose>"
1379
1380 #. type: =item
1381 #: ../cat/virt-filesystems.pod:277
1382 #, fuzzy
1383 #| msgid "B<--verbose>"
1384 msgid "B<--volume-groups>"
1385 msgstr "B<--verbose>"
1386
1387 #. type: textblock
1388 #: ../cat/virt-filesystems.pod:279
1389 msgid "Display LVM volume groups."
1390 msgstr ""
1391
1392 #. type: =head1
1393 #: ../cat/virt-filesystems.pod:287
1394 msgid "COLUMNS"
1395 msgstr ""
1396
1397 #. type: textblock
1398 #: ../cat/virt-filesystems.pod:289
1399 msgid ""
1400 "Note that columns in the output are subject to reordering and change in "
1401 "future versions of this tool."
1402 msgstr ""
1403
1404 #. type: =item
1405 #: ../cat/virt-filesystems.pod:294
1406 msgid "B<Name>"
1407 msgstr ""
1408
1409 #. type: textblock
1410 #: ../cat/virt-filesystems.pod:296
1411 msgid "The filesystem, partition, block device or LVM name."
1412 msgstr ""
1413
1414 #. type: textblock
1415 #: ../cat/virt-filesystems.pod:298
1416 msgid ""
1417 "For device and partition names these are displayed as canonical libguestfs "
1418 "names, so that for example C</dev/sda2> is the second partition on the first "
1419 "device."
1420 msgstr ""
1421
1422 #. type: textblock
1423 #: ../cat/virt-filesystems.pod:302
1424 msgid ""
1425 "If the I<--long> option is B<not> specified, then only the name column is "
1426 "shown in the output."
1427 msgstr ""
1428
1429 #. type: =item
1430 #: ../cat/virt-filesystems.pod:305
1431 #, fuzzy
1432 #| msgid "B<-N type>"
1433 msgid "B<Type>"
1434 msgstr "B<-N тип>"
1435
1436 #. type: textblock
1437 #: ../cat/virt-filesystems.pod:307
1438 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1439 msgstr ""
1440
1441 #. type: =item
1442 #: ../cat/virt-filesystems.pod:309
1443 msgid "B<VFS>"
1444 msgstr ""
1445
1446 #. type: textblock
1447 #: ../cat/virt-filesystems.pod:311
1448 msgid ""
1449 "If there is a filesystem, then this column displays the filesystem type if "
1450 "one could be detected, eg. C<ext4>."
1451 msgstr ""
1452
1453 #. type: =item
1454 #: ../cat/virt-filesystems.pod:314
1455 msgid "B<Label>"
1456 msgstr ""
1457
1458 #. type: textblock
1459 #: ../cat/virt-filesystems.pod:316
1460 msgid ""
1461 "If the object has a label (used for identifying and mounting filesystems) "
1462 "then this column contains the label."
1463 msgstr ""
1464
1465 #. type: =item
1466 #: ../cat/virt-filesystems.pod:319
1467 #, fuzzy
1468 #| msgid "B<part_size>"
1469 msgid "B<Size>"
1470 msgstr "B<part_size>"
1471
1472 #. type: textblock
1473 #: ../cat/virt-filesystems.pod:321
1474 msgid ""
1475 "The size of the object in bytes.  If the I<--human> option is used then the "
1476 "size is displayed in a human-readable form."
1477 msgstr ""
1478
1479 #. type: =item
1480 #: ../cat/virt-filesystems.pod:324
1481 msgid "B<Parent>"
1482 msgstr ""
1483
1484 #. type: textblock
1485 #: ../cat/virt-filesystems.pod:326
1486 msgid ""
1487 "The parent column records the parent relationship between objects.  For "
1488 "example, if the object is a partition, then this column contains the name of "
1489 "the containing device.  If the object is a logical volume, then this column "
1490 "is the name of the volume group."
1491 msgstr ""
1492
1493 #. type: =item
1494 #: ../cat/virt-filesystems.pod:331
1495 msgid "B<UUID>"
1496 msgstr ""
1497
1498 #. type: textblock
1499 #: ../cat/virt-filesystems.pod:333
1500 msgid ""
1501 "If the object has a UUID (used for identifying and mounting filesystems and "
1502 "block devices) then this column contains the UUID as a string."
1503 msgstr ""
1504
1505 #. type: textblock
1506 #: ../cat/virt-filesystems.pod:337
1507 msgid "The UUID is only displayed if the I<--uuid> option is given."
1508 msgstr ""
1509
1510 #. type: =head1
1511 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1512 #: ../df/virt-df.pod:191
1513 msgid "NOTE ABOUT CSV FORMAT"
1514 msgstr ""
1515
1516 #. type: textblock
1517 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1518 #: ../df/virt-df.pod:193
1519 msgid ""
1520 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1521 "should be easy to parse, but it is definitely not easy to parse."
1522 msgstr ""
1523
1524 #. type: textblock
1525 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1526 #: ../df/virt-df.pod:196
1527 msgid ""
1528 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1529 "reliably.  This example has two columns:"
1530 msgstr ""
1531
1532 #. type: verbatim
1533 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1534 #: ../df/virt-df.pod:199
1535 #, no-wrap
1536 msgid ""
1537 " \"foo,bar\",baz\n"
1538 "\n"
1539 msgstr ""
1540
1541 #. type: textblock
1542 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1543 #: ../df/virt-df.pod:201
1544 msgid ""
1545 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1546 "reliably.  This example has one row:"
1547 msgstr ""
1548
1549 #. type: verbatim
1550 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1551 #: ../df/virt-df.pod:204
1552 #, no-wrap
1553 msgid ""
1554 " \"foo\n"
1555 " bar\",baz\n"
1556 "\n"
1557 msgstr ""
1558
1559 #. type: textblock
1560 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1561 #: ../df/virt-df.pod:207
1562 msgid ""
1563 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1564 "packaged in major Linux distributions)."
1565 msgstr ""
1566
1567 #. type: textblock
1568 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1569 #: ../df/virt-df.pod:210
1570 msgid ""
1571 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1572 "or Python's built-in csv library)."
1573 msgstr ""
1574
1575 #. type: textblock
1576 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1577 #: ../df/virt-df.pod:213
1578 msgid "Most spreadsheets and databases can import CSV directly."
1579 msgstr ""
1580
1581 #. type: textblock
1582 #: ../cat/virt-filesystems.pod:379
1583 #, fuzzy
1584 #| msgid ""
1585 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1586 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1587 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1588 msgid ""
1589 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1590 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1591 "libguestfs.org/>."
1592 msgstr ""
1593 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1594 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1595 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1596
1597 #. type: textblock
1598 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1599 #: ../tools/virt-win-reg.pl:778
1600 msgid "Copyright (C) 2010 Red Hat Inc."
1601 msgstr ""
1602
1603 #. type: textblock
1604 #: ../cat/virt-ls.pod:5
1605 msgid "virt-ls - List files in a virtual machine"
1606 msgstr ""
1607
1608 #. type: verbatim
1609 #: ../cat/virt-ls.pod:9
1610 #, no-wrap
1611 msgid ""
1612 " virt-ls [--options] -d domname directory [directory ...]\n"
1613 "\n"
1614 msgstr ""
1615
1616 #. type: verbatim
1617 #: ../cat/virt-ls.pod:11
1618 #, fuzzy, no-wrap
1619 #| msgid ""
1620 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1621 #| "\n"
1622 msgid ""
1623 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1624 "\n"
1625 msgstr ""
1626 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1627 "\n"
1628
1629 #. type: textblock
1630 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
1631 msgid "Old style:"
1632 msgstr ""
1633
1634 #. type: verbatim
1635 #: ../cat/virt-ls.pod:15
1636 #, fuzzy, no-wrap
1637 #| msgid ""
1638 #| " virt-list-partitions [--options] domname\n"
1639 #| "\n"
1640 msgid ""
1641 " virt-ls [--options] domname directory\n"
1642 "\n"
1643 msgstr ""
1644 " virt-list-partitions [--параметри] назва_домену\n"
1645 "\n"
1646
1647 #. type: verbatim
1648 #: ../cat/virt-ls.pod:17
1649 #, fuzzy, no-wrap
1650 #| msgid ""
1651 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1652 #| "\n"
1653 msgid ""
1654 " virt-ls [--options] disk.img [disk.img ...] directory\n"
1655 "\n"
1656 msgstr ""
1657 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1658 "\n"
1659
1660 #. type: textblock
1661 #: ../cat/virt-ls.pod:21
1662 msgid ""
1663 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
1664 "more from a virtual machine or disk image."
1665 msgstr ""
1666
1667 #. type: textblock
1668 #: ../cat/virt-ls.pod:24
1669 msgid ""
1670 "Multiple directory names can be given, in which case the output from each is "
1671 "concatenated."
1672 msgstr ""
1673
1674 #. type: textblock
1675 #: ../cat/virt-ls.pod:27
1676 msgid ""
1677 "To list directories from a libvirt guest use the I<-d> option to specify the "
1678 "name of the guest.  For a disk image, use the I<-a> option."
1679 msgstr ""
1680
1681 #. type: textblock
1682 #: ../cat/virt-ls.pod:31
1683 msgid ""
1684 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
1685 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
1686 "(3)> API."
1687 msgstr ""
1688
1689 #. type: textblock
1690 #: ../cat/virt-ls.pod:37
1691 msgid "Get a list of all files and directories in a virtual machine:"
1692 msgstr ""
1693
1694 #. type: verbatim
1695 #: ../cat/virt-ls.pod:39
1696 #, fuzzy, no-wrap
1697 #| msgid ""
1698 #| " guestfish --ro -d myguest -i\n"
1699 #| "\n"
1700 msgid ""
1701 " virt-ls -R -d guest /\n"
1702 "\n"
1703 msgstr ""
1704 " guestfish --ro -d myguest -i\n"
1705 "\n"
1706
1707 #. type: textblock
1708 #: ../cat/virt-ls.pod:41
1709 msgid "List all setuid or setgid programs in a Linux virtual machine:"
1710 msgstr ""
1711
1712 #. type: verbatim
1713 #: ../cat/virt-ls.pod:43
1714 #, no-wrap
1715 msgid ""
1716 " virt-ls -lR -d guest / | grep '^- [42]'\n"
1717 "\n"
1718 msgstr ""
1719
1720 #. type: textblock
1721 #: ../cat/virt-ls.pod:45
1722 msgid "List all public-writable directories in a Linux virtual machine:"
1723 msgstr ""
1724
1725 #. type: verbatim
1726 #: ../cat/virt-ls.pod:47
1727 #, no-wrap
1728 msgid ""
1729 " virt-ls -lR -d guest / | grep '^d ...7'\n"
1730 "\n"
1731 msgstr ""
1732
1733 #. type: textblock
1734 #: ../cat/virt-ls.pod:49
1735 msgid "List all Unix domain sockets in a Linux virtual machine:"
1736 msgstr ""
1737
1738 #. type: verbatim
1739 #: ../cat/virt-ls.pod:51
1740 #, no-wrap
1741 msgid ""
1742 " virt-ls -lR -d guest / | grep '^s'\n"
1743 "\n"
1744 msgstr ""
1745
1746 #. type: textblock
1747 #: ../cat/virt-ls.pod:53
1748 msgid "List all regular files with filenames ending in '.png':"
1749 msgstr ""
1750
1751 #. type: verbatim
1752 #: ../cat/virt-ls.pod:55
1753 #, no-wrap
1754 msgid ""
1755 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
1756 "\n"
1757 msgstr ""
1758
1759 #. type: textblock
1760 #: ../cat/virt-ls.pod:57
1761 msgid "To display files larger than 10MB in home directories:"
1762 msgstr ""
1763
1764 #. type: verbatim
1765 #: ../cat/virt-ls.pod:59
1766 #, no-wrap
1767 msgid ""
1768 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
1769 "\n"
1770 msgstr ""
1771
1772 #. type: textblock
1773 #: ../cat/virt-ls.pod:61
1774 msgid "Find everything modified in the last 7 days:"
1775 msgstr ""
1776
1777 #. type: verbatim
1778 #: ../cat/virt-ls.pod:63
1779 #, no-wrap
1780 msgid ""
1781 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
1782 "\n"
1783 msgstr ""
1784
1785 #. type: textblock
1786 #: ../cat/virt-ls.pod:65
1787 msgid "Find regular files modified in the last 24 hours:"
1788 msgstr ""
1789
1790 #. type: verbatim
1791 #: ../cat/virt-ls.pod:67
1792 #, no-wrap
1793 msgid ""
1794 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
1795 "\n"
1796 msgstr ""
1797
1798 #. type: =head2
1799 #: ../cat/virt-ls.pod:69
1800 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
1801 msgstr ""
1802
1803 #. type: textblock
1804 #: ../cat/virt-ls.pod:71
1805 msgid ""
1806 "Find the differences between files in a guest and an earlier snapshot of the "
1807 "same guest."
1808 msgstr ""
1809
1810 #. type: verbatim
1811 #: ../cat/virt-ls.pod:74
1812 #, no-wrap
1813 msgid ""
1814 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
1815 " virt-ls -lR -a current.img / --uids --time-t > new\n"
1816 " diff -u old new | less\n"
1817 "\n"
1818 msgstr ""
1819
1820 #. type: textblock
1821 #: ../cat/virt-ls.pod:78
1822 msgid ""
1823 "The commands above won't find files where the content has changed but the "
1824 "metadata (eg. file size and modification date) is the same.  To do that, you "
1825 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
1826 "checksum> can be quite slow since it has to read and compute a checksum of "
1827 "every regular file in the virtual machine."
1828 msgstr ""
1829
1830 #. type: =head1
1831 #: ../cat/virt-ls.pod:84
1832 msgid "OUTPUT MODES"
1833 msgstr ""
1834
1835 #. type: textblock
1836 #: ../cat/virt-ls.pod:86
1837 msgid ""
1838 "C<virt-ls> has four output modes, controlled by different combinations of "
1839 "the I<-l> and I<-R> options."
1840 msgstr ""
1841
1842 #. type: =head2
1843 #: ../cat/virt-ls.pod:89
1844 msgid "SIMPLE LISTING"
1845 msgstr ""
1846
1847 #. type: textblock
1848 #: ../cat/virt-ls.pod:91
1849 msgid "A simple listing is like the ordinary L<ls(1)> command:"
1850 msgstr ""
1851
1852 #. type: verbatim
1853 #: ../cat/virt-ls.pod:93
1854 #, no-wrap
1855 msgid ""
1856 " $ virt-ls -d guest /\n"
1857 " bin\n"
1858 " boot\n"
1859 " [etc.]\n"
1860 "\n"
1861 msgstr ""
1862
1863 #. type: =head2
1864 #: ../cat/virt-ls.pod:98
1865 #, fuzzy
1866 #| msgid "MOUNTING"
1867 msgid "LONG LISTING"
1868 msgstr "МОНТУВАННЯ"
1869
1870 #. type: textblock
1871 #: ../cat/virt-ls.pod:100
1872 msgid ""
1873 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
1874 "(more specifically, like the C<guestfs_ll> function)."
1875 msgstr ""
1876
1877 #. type: verbatim
1878 #: ../cat/virt-ls.pod:103
1879 #, no-wrap
1880 msgid ""
1881 " $ virt-ls -l -d guest /\n"
1882 " total 204\n"
1883 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
1884 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
1885 " [etc.]\n"
1886 "\n"
1887 msgstr ""
1888
1889 #. type: textblock
1890 #: ../cat/virt-ls.pod:109
1891 msgid ""
1892 "Note that while this is useful for displaying a directory, do not try "
1893 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
1894 "instead."
1895 msgstr ""
1896
1897 #. type: =head2
1898 #: ../cat/virt-ls.pod:113
1899 msgid "RECURSIVE LISTING"
1900 msgstr ""
1901
1902 #. type: textblock
1903 #: ../cat/virt-ls.pod:115
1904 msgid ""
1905 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
1906 "and directories recursively:"
1907 msgstr ""
1908
1909 #. type: verbatim
1910 #: ../cat/virt-ls.pod:118
1911 #, no-wrap
1912 msgid ""
1913 " $ virt-ls -R -d guest /tmp\n"
1914 " foo\n"
1915 " foo/bar\n"
1916 " [etc.]\n"
1917 "\n"
1918 msgstr ""
1919
1920 #. type: textblock
1921 #: ../cat/virt-ls.pod:123
1922 msgid ""
1923 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
1924 "converts C<\\0> characters to C<\\n>."
1925 msgstr ""
1926
1927 #. type: =head2
1928 #: ../cat/virt-ls.pod:126
1929 msgid "RECURSIVE LONG LISTING"
1930 msgstr ""
1931
1932 #. type: textblock
1933 #: ../cat/virt-ls.pod:128
1934 msgid ""
1935 "Using I<-lR> options together changes the output to display directories "
1936 "recursively, with file stats, and optionally other features such as "
1937 "checksums and extended attributes."
1938 msgstr ""
1939
1940 #. type: textblock
1941 #: ../cat/virt-ls.pod:132
1942 msgid ""
1943 "Most of the interesting features of C<virt-ls> are only available when using "
1944 "I<-lR> mode."
1945 msgstr ""
1946
1947 #. type: textblock
1948 #: ../cat/virt-ls.pod:135
1949 msgid ""
1950 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
1951 "you cannot use the output in another program (because filenames can contain "
1952 "spaces and other unsafe characters).  If the guest was untrusted and someone "
1953 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
1954 "on you by creating filenames with embedded newline characters.  To B<safely> "
1955 "parse the output in another program, use the I<--csv> (Comma-Separated "
1956 "Values) option."
1957 msgstr ""
1958
1959 #. type: textblock
1960 #: ../cat/virt-ls.pod:143
1961 msgid ""
1962 "Note that this output format is completely unrelated to the C<ls -lR> "
1963 "command."
1964 msgstr ""
1965
1966 #. type: verbatim
1967 #: ../cat/virt-ls.pod:146
1968 #, no-wrap
1969 msgid ""
1970 " $ virt-ls -lR -d guest /bin\n"
1971 " d 0555       4096 /bin\n"
1972 " - 0755        123 /bin/alsaunmute\n"
1973 " - 0755      28328 /bin/arch\n"
1974 " l 0777          4 /bin/awk -> gawk\n"
1975 " - 0755      27216 /bin/basename\n"
1976 " - 0755     943360 /bin/bash\n"
1977 " [etc.]\n"
1978 "\n"
1979 msgstr ""
1980
1981 #. type: textblock
1982 #: ../cat/virt-ls.pod:155
1983 msgid "These basic fields are always shown:"
1984 msgstr ""
1985
1986 #. type: =item
1987 #: ../cat/virt-ls.pod:159
1988 #, fuzzy
1989 #| msgid "vfs-type"
1990 msgid "type"
1991 msgstr "vfs-type"
1992
1993 #. type: textblock
1994 #: ../cat/virt-ls.pod:161
1995 msgid ""
1996 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
1997 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
1998 "link), C<s> (socket) or C<u> (unknown)."
1999 msgstr ""
2000
2001 #. type: =item
2002 #: ../cat/virt-ls.pod:171
2003 #, fuzzy
2004 #| msgid "version"
2005 msgid "permissions"
2006 msgstr "version"
2007
2008 #. type: textblock
2009 #: ../cat/virt-ls.pod:173
2010 msgid "The Unix permissions, displayed as a 4 digit octal number."
2011 msgstr ""
2012
2013 #. type: =item
2014 #: ../cat/virt-ls.pod:175
2015 #, fuzzy
2016 #| msgid "filesize"
2017 msgid "size"
2018 msgstr "filesize"
2019
2020 #. type: textblock
2021 #: ../cat/virt-ls.pod:177
2022 msgid ""
2023 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2024 "readable> option is given, in which case this is shown as a human-readable "
2025 "number."
2026 msgstr ""
2027
2028 #. type: =head2
2029 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4255
2030 msgid "path"
2031 msgstr ""
2032
2033 #. type: textblock
2034 #: ../cat/virt-ls.pod:183
2035 msgid "The full path of the file or directory."
2036 msgstr ""
2037
2038 #. type: =item
2039 #: ../cat/virt-ls.pod:185
2040 #, fuzzy
2041 #| msgid "readlink"
2042 msgid "link"
2043 msgstr "readlink"
2044
2045 #. type: textblock
2046 #: ../cat/virt-ls.pod:187
2047 msgid "For symbolic links only, the link target."
2048 msgstr ""
2049
2050 #. type: textblock
2051 #: ../cat/virt-ls.pod:191
2052 msgid ""
2053 "In I<-lR> mode, additional command line options enable the display of more "
2054 "fields."
2055 msgstr ""
2056
2057 #. type: textblock
2058 #: ../cat/virt-ls.pod:194
2059 msgid ""
2060 "With the I<--uids> flag, these additional fields are displayed before the "
2061 "path:"
2062 msgstr ""
2063
2064 #. type: =item
2065 #: ../cat/virt-ls.pod:199
2066 #, fuzzy
2067 #| msgid "lvuuid"
2068 msgid "uid"
2069 msgstr "lvuuid"
2070
2071 #. type: =item
2072 #: ../cat/virt-ls.pod:201
2073 #, fuzzy
2074 #| msgid "vguuid"
2075 msgid "gid"
2076 msgstr "vguuid"
2077
2078 #. type: textblock
2079 #: ../cat/virt-ls.pod:203
2080 msgid ""
2081 "The UID and GID of the owner of the file (displayed numerically).  Note "
2082 "these only make sense in the context of a Unix-like guest."
2083 msgstr ""
2084
2085 #. type: textblock
2086 #: ../cat/virt-ls.pod:208
2087 msgid "With the I<--times> flag, these additional fields are displayed:"
2088 msgstr ""
2089
2090 #. type: =item
2091 #: ../cat/virt-ls.pod:212
2092 #, fuzzy
2093 #| msgid "time"
2094 msgid "atime"
2095 msgstr "time"
2096
2097 #. type: textblock
2098 #: ../cat/virt-ls.pod:214
2099 msgid "The time of last access."
2100 msgstr ""
2101
2102 #. type: =item
2103 #: ../cat/virt-ls.pod:216
2104 #, fuzzy
2105 #| msgid "time"
2106 msgid "mtime"
2107 msgstr "time"
2108
2109 #. type: textblock
2110 #: ../cat/virt-ls.pod:218
2111 msgid "The time of last modification."
2112 msgstr ""
2113
2114 #. type: =item
2115 #: ../cat/virt-ls.pod:220
2116 #, fuzzy
2117 #| msgid "time"
2118 msgid "ctime"
2119 msgstr "time"
2120
2121 #. type: textblock
2122 #: ../cat/virt-ls.pod:222
2123 msgid "The time of last status change."
2124 msgstr ""
2125
2126 #. type: textblock
2127 #: ../cat/virt-ls.pod:226
2128 msgid ""
2129 "The time fields are displayed as string dates and times, unless one of the "
2130 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2131 msgstr ""
2132
2133 #. type: textblock
2134 #: ../cat/virt-ls.pod:229
2135 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2136 msgstr ""
2137
2138 #. type: =item
2139 #: ../cat/virt-ls.pod:233
2140 #, fuzzy
2141 #| msgid "zero-device"
2142 msgid "device"
2143 msgstr "zero-device"
2144
2145 #. type: textblock
2146 #: ../cat/virt-ls.pod:235
2147 msgid ""
2148 "The device containing the file (displayed as major:minor).  This may not "
2149 "match devices as known to the guest."
2150 msgstr ""
2151
2152 #. type: =item
2153 #: ../cat/virt-ls.pod:238
2154 msgid "inode"
2155 msgstr ""
2156
2157 #. type: textblock
2158 #: ../cat/virt-ls.pod:240
2159 msgid "The inode number."
2160 msgstr ""
2161
2162 #. type: =item
2163 #: ../cat/virt-ls.pod:242
2164 #, fuzzy
2165 #| msgid "readlink"
2166 msgid "nlink"
2167 msgstr "readlink"
2168
2169 #. type: textblock
2170 #: ../cat/virt-ls.pod:244
2171 msgid "The number of hard links."
2172 msgstr ""
2173
2174 #. type: =item
2175 #: ../cat/virt-ls.pod:246
2176 msgid "rdev"
2177 msgstr ""
2178
2179 #. type: textblock
2180 #: ../cat/virt-ls.pod:248
2181 msgid ""
2182 "For block and char special files, the device (displayed as major:minor)."
2183 msgstr ""
2184
2185 #. type: =item
2186 #: ../cat/virt-ls.pod:251
2187 #, fuzzy
2188 #| msgid "C<blocksize>"
2189 msgid "blocks"
2190 msgstr "C<blocksize>"
2191
2192 #. type: textblock
2193 #: ../cat/virt-ls.pod:253
2194 msgid "The number of 512 byte blocks allocated to the file."
2195 msgstr ""
2196
2197 #. type: textblock
2198 #: ../cat/virt-ls.pod:257
2199 msgid ""
2200 "With the I<--checksum> flag, the checksum of the file contents is shown "
2201 "(only for regular files).  Computing file checksums can take a considerable "
2202 "amount of time."
2203 msgstr ""
2204
2205 #. type: =item
2206 #: ../cat/virt-ls.pod:280
2207 #, fuzzy
2208 #| msgid "checksum"
2209 msgid "B<--checksum>"
2210 msgstr "checksum"
2211
2212 #. type: =item
2213 #: ../cat/virt-ls.pod:282
2214 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2215 msgstr ""
2216
2217 #. type: textblock
2218 #: ../cat/virt-ls.pod:284
2219 msgid ""
2220 "Display checksum over file contents for regular files.  With no argument, "
2221 "this defaults to using I<md5>.  Using an argument, you can select the "
2222 "checksum type to use."
2223 msgstr ""
2224
2225 #. type: textblock
2226 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2227 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2228 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2229 msgid ""
2230 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2231 "LISTING> above."
2232 msgstr ""
2233
2234 #. type: textblock
2235 #: ../cat/virt-ls.pod:316
2236 msgid ""
2237 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2238 "so you cannot see what you are typing.  If you are not worried about Tempest "
2239 "attacks and there is no one else in the room you can specify this flag to "
2240 "see what you are typing."
2241 msgstr ""
2242
2243 #. type: =item
2244 #: ../cat/virt-ls.pod:321
2245 #, fuzzy
2246 #| msgid "B<--no-dest-paths>"
2247 msgid "B<--extra-stats>"
2248 msgstr "B<--no-dest-paths>"
2249
2250 #. type: textblock
2251 #: ../cat/virt-ls.pod:323
2252 msgid "Display extra stats."
2253 msgstr ""
2254
2255 #. type: verbatim
2256 #: ../cat/virt-ls.pod:339
2257 #, fuzzy, no-wrap
2258 #| msgid ""
2259 #| " guestfish --format=raw -a disk.img\n"
2260 #| "\n"
2261 msgid ""
2262 " virt-ls --format=raw -a disk.img /dir\n"
2263 "\n"
2264 msgstr ""
2265 " guestfish --format=raw -a disk.img\n"
2266 "\n"
2267
2268 #. type: verbatim
2269 #: ../cat/virt-ls.pod:343
2270 #, fuzzy, no-wrap
2271 #| msgid ""
2272 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2273 #| "\n"
2274 msgid ""
2275 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2276 "\n"
2277 msgstr ""
2278 " guestfish --format=raw -a disk.img --format -a another.img\n"
2279 "\n"
2280
2281 #. type: textblock
2282 #: ../cat/virt-ls.pod:356
2283 msgid "Display file sizes in human-readable format."
2284 msgstr ""
2285
2286 #. type: =item
2287 #: ../cat/virt-ls.pod:370
2288 msgid "B<-R>"
2289 msgstr ""
2290
2291 #. type: =item
2292 #: ../cat/virt-ls.pod:372
2293 #, fuzzy
2294 #| msgid "B<--live>"
2295 msgid "B<--recursive>"
2296 msgstr "B<--live>"
2297
2298 #. type: textblock
2299 #: ../cat/virt-ls.pod:374
2300 msgid ""
2301 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2302 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2303 "LISTING>."
2304 msgstr ""
2305
2306 #. type: textblock
2307 #: ../cat/virt-ls.pod:378
2308 msgid ""
2309 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2310 "LONG LISTING>."
2311 msgstr ""
2312
2313 #. type: textblock
2314 #: ../cat/virt-ls.pod:381
2315 msgid ""
2316 "C<virt-ls -R> produces a recursive list of files starting at the named "
2317 "directory.  See L</RECURSIVE LISTING>."
2318 msgstr ""
2319
2320 #. type: textblock
2321 #: ../cat/virt-ls.pod:384
2322 msgid ""
2323 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2324 "parsed.  See L</RECURSIVE LONG LISTING>."
2325 msgstr ""
2326
2327 #. type: =item
2328 #: ../cat/virt-ls.pod:387
2329 #, fuzzy
2330 #| msgid "B<--live>"
2331 msgid "B<--times>"
2332 msgstr "B<--live>"
2333
2334 #. type: textblock
2335 #: ../cat/virt-ls.pod:389
2336 msgid "Display time fields."
2337 msgstr ""
2338
2339 #. type: =item
2340 #: ../cat/virt-ls.pod:394
2341 #, fuzzy
2342 #| msgid "B<--echo-keys>"
2343 msgid "B<--time-days>"
2344 msgstr "B<--echo-keys>"
2345
2346 #. type: textblock
2347 #: ../cat/virt-ls.pod:396
2348 msgid "Display time fields as days before now (negative if in the future)."
2349 msgstr ""
2350
2351 #. type: textblock
2352 #: ../cat/virt-ls.pod:398
2353 msgid ""
2354 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2355 "of the file is between 0 and 86399 seconds."
2356 msgstr ""
2357
2358 #. type: =item
2359 #: ../cat/virt-ls.pod:404
2360 #, fuzzy
2361 #| msgid "B<--live>"
2362 msgid "B<--time-relative>"
2363 msgstr "B<--live>"
2364
2365 #. type: textblock
2366 #: ../cat/virt-ls.pod:406
2367 msgid "Display time fields as seconds before now (negative if in the future)."
2368 msgstr ""
2369
2370 #. type: =item
2371 #: ../cat/virt-ls.pod:411
2372 #, fuzzy
2373 #| msgid "I<--timeout N>"
2374 msgid "B<--time-t>"
2375 msgstr "I<--timeout N>"
2376
2377 #. type: textblock
2378 #: ../cat/virt-ls.pod:413
2379 msgid "Display time fields as seconds since the Unix epoch."
2380 msgstr ""
2381
2382 #. type: =item
2383 #: ../cat/virt-ls.pod:418
2384 #, fuzzy
2385 #| msgid "B<--csh>"
2386 msgid "B<--uids>"
2387 msgstr "B<--csh>"
2388
2389 #. type: textblock
2390 #: ../cat/virt-ls.pod:420
2391 msgid "Display UID and GID fields."
2392 msgstr ""
2393
2394 #. type: textblock
2395 #: ../cat/virt-ls.pod:445
2396 msgid "Previous versions of virt-ls allowed you to write either:"
2397 msgstr ""
2398
2399 #. type: verbatim
2400 #: ../cat/virt-ls.pod:447
2401 #, fuzzy, no-wrap
2402 #| msgid ""
2403 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2404 #| "\n"
2405 msgid ""
2406 " virt-ls disk.img [disk.img ...] /dir\n"
2407 "\n"
2408 msgstr ""
2409 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2410 "\n"
2411
2412 #. type: verbatim
2413 #: ../cat/virt-ls.pod:451
2414 #, fuzzy, no-wrap
2415 #| msgid ""
2416 #| " inspect-get-hostname root\n"
2417 #| "\n"
2418 msgid ""
2419 " virt-ls guestname /dir\n"
2420 "\n"
2421 msgstr ""
2422 " inspect-get-hostname корінь\n"
2423 "\n"
2424
2425 #. type: textblock
2426 #: ../cat/virt-ls.pod:497
2427 #, fuzzy
2428 #| msgid ""
2429 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2430 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2431 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2432 msgid ""
2433 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2434 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2435 "L<http://libguestfs.org/>."
2436 msgstr ""
2437 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2438 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2439 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2440
2441 #. type: textblock
2442 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2443 #: ../rescue/virt-rescue.pod:302
2444 #, fuzzy
2445 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2446 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2447 msgstr "© Red Hat Inc., 2009–2010"
2448
2449 #. type: textblock
2450 #: ../df/virt-df.pod:5
2451 msgid "virt-df - Display free space on virtual filesystems"
2452 msgstr ""
2453
2454 #. type: verbatim
2455 #: ../df/virt-df.pod:9
2456 #, fuzzy, no-wrap
2457 #| msgid ""
2458 #| " virt-list-partitions [--options] domname\n"
2459 #| "\n"
2460 msgid ""
2461 " virt-df [--options]\n"
2462 "\n"
2463 msgstr ""
2464 " virt-list-partitions [--параметри] назва_домену\n"
2465 "\n"
2466
2467 #. type: verbatim
2468 #: ../df/virt-df.pod:11
2469 #, fuzzy, no-wrap
2470 #| msgid ""
2471 #| " virt-list-partitions [--options] domname\n"
2472 #| "\n"
2473 msgid ""
2474 " virt-df [--options] -d domname\n"
2475 "\n"
2476 msgstr ""
2477 " virt-list-partitions [--параметри] назва_домену\n"
2478 "\n"
2479
2480 #. type: verbatim
2481 #: ../df/virt-df.pod:13
2482 #, fuzzy, no-wrap
2483 #| msgid ""
2484 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2485 #| "\n"
2486 msgid ""
2487 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2488 "\n"
2489 msgstr ""
2490 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2491 "\n"
2492
2493 #. type: verbatim
2494 #: ../df/virt-df.pod:17
2495 #, fuzzy, no-wrap
2496 #| msgid ""
2497 #| " virt-list-partitions [--options] domname\n"
2498 #| "\n"
2499 msgid ""
2500 " virt-df [--options] domname\n"
2501 "\n"
2502 msgstr ""
2503 " virt-list-partitions [--параметри] назва_домену\n"
2504 "\n"
2505
2506 #. type: verbatim
2507 #: ../df/virt-df.pod:19
2508 #, fuzzy, no-wrap
2509 #| msgid ""
2510 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2511 #| "\n"
2512 msgid ""
2513 " virt-df [--options] disk.img [disk.img ...]\n"
2514 "\n"
2515 msgstr ""
2516 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2517 "\n"
2518
2519 #. type: textblock
2520 #: ../df/virt-df.pod:23
2521 msgid ""
2522 "C<virt-df> is a command line tool to display free space on virtual machine "
2523 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2524 "allocated to a virtual machine, but can look inside disk images to see how "
2525 "much space is really being used."
2526 msgstr ""
2527
2528 #. type: textblock
2529 #: ../df/virt-df.pod:28
2530 msgid ""
2531 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2532 "to get a list of all active and inactive guests, and performs a C<df>-type "
2533 "operation on each one in turn, printing out the results."
2534 msgstr ""
2535
2536 #. type: textblock
2537 #: ../df/virt-df.pod:32
2538 msgid ""
2539 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2540 "type operation on either the single named libvirt domain, or on the disk "
2541 "image(s) listed on the command line (which must all belong to a single VM).  "
2542 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2543 "guest>.  If you want to run on multiple guests, then you have to invoke "
2544 "C<virt-df> multiple times."
2545 msgstr ""
2546
2547 #. type: textblock
2548 #: ../df/virt-df.pod:39
2549 msgid ""
2550 "Use the I<--csv> option to get a format which can be easily parsed by other "
2551 "programs.  Other options are similar to the standard L<df(1)> command."
2552 msgstr ""
2553
2554 #. type: textblock
2555 #: ../df/virt-df.pod:45
2556 msgid ""
2557 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2558 "output human-readable:"
2559 msgstr ""
2560
2561 #. type: verbatim
2562 #: ../df/virt-df.pod:48
2563 #, no-wrap
2564 msgid ""
2565 " # virt-df -d F14x64 -h\n"
2566 " Filesystem                       Size     Used  Available  Use%\n"
2567 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2568 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2569 "\n"
2570 msgstr ""
2571
2572 #. type: textblock
2573 #: ../df/virt-df.pod:53
2574 msgid "Show disk usage for a disk image file called C<test.img>:"
2575 msgstr ""
2576
2577 #. type: verbatim
2578 #: ../df/virt-df.pod:55
2579 #, no-wrap
2580 msgid ""
2581 " $ virt-df -a test1.img\n"
2582 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2583 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2584 "\n"
2585 msgstr ""
2586
2587 #. type: verbatim
2588 #: ../df/virt-df.pod:112
2589 #, fuzzy, no-wrap
2590 #| msgid ""
2591 #| " guestfish --format=raw -a disk.img\n"
2592 #| "\n"
2593 msgid ""
2594 " virt-df --format=raw -a disk.img\n"
2595 "\n"
2596 msgstr ""
2597 " guestfish --format=raw -a disk.img\n"
2598 "\n"
2599
2600 #. type: verbatim
2601 #: ../df/virt-df.pod:116
2602 #, fuzzy, no-wrap
2603 #| msgid ""
2604 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2605 #| "\n"
2606 msgid ""
2607 " virt-df --format=raw -a disk.img --format -a another.img\n"
2608 "\n"
2609 msgstr ""
2610 " guestfish --format=raw -a disk.img --format -a another.img\n"
2611 "\n"
2612
2613 #. type: textblock
2614 #: ../df/virt-df.pod:129
2615 msgid "Print sizes in human-readable format."
2616 msgstr ""
2617
2618 #. type: textblock
2619 #: ../df/virt-df.pod:131
2620 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2621 msgstr ""
2622
2623 #. type: =item
2624 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2625 msgid "B<-i>"
2626 msgstr "B<-i>"
2627
2628 #. type: =item
2629 #: ../df/virt-df.pod:135
2630 #, fuzzy
2631 #| msgid "B<--live>"
2632 msgid "B<--inodes>"
2633 msgstr "B<--live>"
2634
2635 #. type: textblock
2636 #: ../df/virt-df.pod:137
2637 msgid "Print inodes instead of blocks."
2638 msgstr ""
2639
2640 #. type: =item
2641 #: ../df/virt-df.pod:139
2642 #, fuzzy
2643 #| msgid "B<--merge>"
2644 msgid "B<--one-per-guest>"
2645 msgstr "B<--merge>"
2646
2647 #. type: textblock
2648 #: ../df/virt-df.pod:141
2649 msgid ""
2650 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
2651 "disks from several guests to a single libguestfs appliance."
2652 msgstr ""
2653
2654 #. type: textblock
2655 #: ../df/virt-df.pod:144
2656 msgid "You might use this option in the following circumstances:"
2657 msgstr ""
2658
2659 #. type: =item
2660 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
2661 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
2662 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
2663 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
2664 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
2665 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
2666 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
2667 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
2668 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
2669 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
2670 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
2671 #: ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143
2672 #: ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151
2673 #: ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163
2674 #: ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177
2675 #: ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185
2676 #: ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279
2677 #: ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289
2678 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
2679 #: ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596
2680 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610
2681 #: ../fish/guestfish-actions.pod:2005 ../fish/guestfish-actions.pod:2011
2682 #: ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2026
2683 #: ../fish/guestfish-actions.pod:2033 ../fish/guestfish.pod:445
2684 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
2685 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
2686 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
2687 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
2688 #: ../resize/virt-resize.pod:301 ../src/guestfs-actions.pod:22
2689 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:588
2690 #: ../src/guestfs-actions.pod:596 ../src/guestfs-actions.pod:603
2691 #: ../src/guestfs-actions.pod:610 ../src/guestfs-actions.pod:1774
2692 #: ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782
2693 #: ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1794
2694 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802
2695 #: ../src/guestfs-actions.pod:1812 ../src/guestfs-actions.pod:1816
2696 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1958
2697 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1967
2698 #: ../src/guestfs-actions.pod:1972 ../src/guestfs-actions.pod:2033
2699 #: ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2042
2700 #: ../src/guestfs-actions.pod:2455 ../src/guestfs-actions.pod:2462
2701 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:3006
2702 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3020
2703 #: ../src/guestfs-actions.pod:3027 ../src/guestfs-actions.pod:3034
2704 #: ../src/guestfs.pod:388 ../src/guestfs.pod:393 ../src/guestfs.pod:398
2705 #: ../src/guestfs.pod:402 ../src/guestfs.pod:407 ../src/guestfs.pod:411
2706 #: ../src/guestfs.pod:416 ../src/guestfs.pod:421 ../src/guestfs.pod:1091
2707 #: ../src/guestfs.pod:1095 ../src/guestfs.pod:1099 ../src/guestfs.pod:1104
2708 #: ../src/guestfs.pod:1112 ../src/guestfs.pod:1131 ../src/guestfs.pod:1139
2709 #: ../src/guestfs.pod:1161 ../src/guestfs.pod:1165 ../src/guestfs.pod:1169
2710 #: ../src/guestfs.pod:1173 ../src/guestfs.pod:1177 ../src/guestfs.pod:1181
2711 #: ../src/guestfs.pod:1671 ../src/guestfs.pod:1676 ../src/guestfs.pod:1680
2712 #: ../src/guestfs.pod:1782 ../src/guestfs.pod:1787 ../src/guestfs.pod:1791
2713 #: ../src/guestfs.pod:1801 ../src/guestfs.pod:2090 ../src/guestfs.pod:2095
2714 #: ../src/guestfs.pod:2101 ../src/guestfs.pod:2109 ../src/guestfs.pod:2556
2715 #: ../src/guestfs.pod:2562 ../src/guestfs.pod:2567 ../src/guestfs.pod:2573
2716 #: ../src/guestfs.pod:2956 ../src/guestfs.pod:2961 ../src/guestfs.pod:2965
2717 #: ../src/guestfs.pod:2969 ../src/guestfs.pod:2973 ../src/guestfs.pod:2987
2718 #: ../src/guestfs.pod:2992 ../src/guestfs.pod:3218 ../src/guestfs.pod:3222
2719 #: ../src/guestfs.pod:3226 ../src/guestfs.pod:3230
2720 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
2721 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:710
2722 #: ../tools/virt-win-reg.pl:716 ../tools/virt-win-reg.pl:722
2723 msgid "*"
2724 msgstr "*"
2725
2726 #. type: textblock
2727 #: ../df/virt-df.pod:150
2728 msgid ""
2729 "If you think an untrusted guest might actively try to exploit the libguestfs "
2730 "appliance kernel, then this prevents one guest from interfering with the "
2731 "stats printed for another guest."
2732 msgstr ""
2733
2734 #. type: textblock
2735 #: ../df/virt-df.pod:156
2736 msgid ""
2737 "If the kernel has a bug which stops it from accessing a filesystem in one "
2738 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
2739 "and report stats for further guests."
2740 msgstr ""
2741
2742 #. type: textblock
2743 #: ../df/virt-df.pod:165
2744 msgid ""
2745 "Print UUIDs instead of names.  This is useful for following a guest even "
2746 "when the guest is migrated or renamed, or when two guests happen to have the "
2747 "same name."
2748 msgstr ""
2749
2750 #. type: textblock
2751 #: ../df/virt-df.pod:169
2752 msgid ""
2753 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
2754 "images, we still print the disk image name even when this option is "
2755 "specified."
2756 msgstr ""
2757
2758 #. type: textblock
2759 #: ../df/virt-df.pod:229
2760 msgid ""
2761 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
2762 "libguestfs.org/>."
2763 msgstr ""
2764
2765 #. type: textblock
2766 #: ../edit/virt-edit.pod:5
2767 msgid "virt-edit - Edit a file in a virtual machine"
2768 msgstr ""
2769
2770 #. type: verbatim
2771 #: ../edit/virt-edit.pod:9
2772 #, fuzzy, no-wrap
2773 #| msgid ""
2774 #| " virt-list-partitions [--options] domname\n"
2775 #| "\n"
2776 msgid ""
2777 " virt-edit [--options] -d domname file [file ...]\n"
2778 "\n"
2779 msgstr ""
2780 " virt-list-partitions [--параметри] назва_домену\n"
2781 "\n"
2782
2783 #. type: verbatim
2784 #: ../edit/virt-edit.pod:11
2785 #, fuzzy, no-wrap
2786 #| msgid ""
2787 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2788 #| "\n"
2789 msgid ""
2790 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
2791 "\n"
2792 msgstr ""
2793 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2794 "\n"
2795
2796 #. type: verbatim
2797 #: ../edit/virt-edit.pod:13
2798 #, no-wrap
2799 msgid ""
2800 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
2801 "\n"
2802 msgstr ""
2803
2804 #. type: verbatim
2805 #: ../edit/virt-edit.pod:17
2806 #, no-wrap
2807 msgid ""
2808 " virt-edit domname file\n"
2809 "\n"
2810 msgstr ""
2811
2812 #. type: verbatim
2813 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
2814 #, fuzzy, no-wrap
2815 #| msgid ""
2816 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2817 #| "\n"
2818 msgid ""
2819 " virt-edit disk.img [disk.img ...] file\n"
2820 "\n"
2821 msgstr ""
2822 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2823 "\n"
2824
2825 #. type: =head1
2826 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
2827 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
2828 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
2829 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
2830 msgid "WARNING"
2831 msgstr "ПОПЕРЕДЖЕННЯ"
2832
2833 #. type: textblock
2834 #: ../edit/virt-edit.pod:23
2835 msgid ""
2836 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
2837 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
2838 "doing this, but doesn't catch all cases."
2839 msgstr ""
2840
2841 #. type: textblock
2842 #: ../edit/virt-edit.pod:29
2843 msgid ""
2844 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
2845 "exists in the named virtual machine (or disk image)."
2846 msgstr ""
2847
2848 #. type: textblock
2849 #: ../edit/virt-edit.pod:32
2850 msgid ""
2851 "Multiple filenames can be given, in which case they are each edited in "
2852 "turn.  Each filename must be a full path, starting at the root directory "
2853 "(starting with '/')."
2854 msgstr ""
2855
2856 #. type: textblock
2857 #: ../edit/virt-edit.pod:36
2858 msgid "If you want to just view a file, use L<virt-cat(1)>."
2859 msgstr ""
2860
2861 #. type: textblock
2862 #: ../edit/virt-edit.pod:38
2863 msgid ""
2864 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
2865 "USING GUESTFISH> below)."
2866 msgstr ""
2867
2868 #. type: textblock
2869 #: ../edit/virt-edit.pod:41
2870 msgid ""
2871 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
2872 "that and much more."
2873 msgstr ""
2874
2875 #. type: textblock
2876 #: ../edit/virt-edit.pod:46
2877 msgid "Edit the named files interactively:"
2878 msgstr ""
2879
2880 #. type: verbatim
2881 #: ../edit/virt-edit.pod:48
2882 #, no-wrap
2883 msgid ""
2884 " virt-edit -d mydomain /boot/grub/grub.conf\n"
2885 "\n"
2886 msgstr ""
2887
2888 #. type: verbatim
2889 #: ../edit/virt-edit.pod:50
2890 #, no-wrap
2891 msgid ""
2892 " virt-edit -d mydomain /etc/passwd\n"
2893 "\n"
2894 msgstr ""
2895
2896 #. type: textblock
2897 #: ../edit/virt-edit.pod:52
2898 msgid "For Windows guests, some Windows paths are understood:"
2899 msgstr ""
2900
2901 #. type: verbatim
2902 #: ../edit/virt-edit.pod:54
2903 #, no-wrap
2904 msgid ""
2905 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
2906 "\n"
2907 msgstr ""
2908
2909 #. type: textblock
2910 #: ../edit/virt-edit.pod:56
2911 msgid ""
2912 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
2913 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
2914 msgstr ""
2915
2916 #. type: verbatim
2917 #: ../edit/virt-edit.pod:60
2918 #, no-wrap
2919 msgid ""
2920 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
2921 "\n"
2922 msgstr ""
2923
2924 #. type: =item
2925 #: ../edit/virt-edit.pod:81
2926 msgid "B<-b> extension"
2927 msgstr ""
2928
2929 #. type: =item
2930 #: ../edit/virt-edit.pod:83
2931 msgid "B<--backup> extension"
2932 msgstr ""
2933
2934 #. type: textblock
2935 #: ../edit/virt-edit.pod:85
2936 msgid ""
2937 "Create a backup of the original file I<in the guest disk image>.  The backup "
2938 "has the original filename with C<extension> added."
2939 msgstr ""
2940
2941 #. type: textblock
2942 #: ../edit/virt-edit.pod:88
2943 msgid ""
2944 "Usually the first character of C<extension> would be a dot C<.> so you would "
2945 "write:"
2946 msgstr ""
2947
2948 #. type: verbatim
2949 #: ../edit/virt-edit.pod:91
2950 #, no-wrap
2951 msgid ""
2952 " virt-edit -b .orig [etc]\n"
2953 "\n"
2954 msgstr ""
2955
2956 #. type: textblock
2957 #: ../edit/virt-edit.pod:93
2958 msgid "By default, no backup file is made."
2959 msgstr ""
2960
2961 #. type: =item
2962 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
2963 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
2964 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
2965 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
2966 msgid "B<-c URI>"
2967 msgstr "B<-c адреса>"
2968
2969 #. type: =item
2970 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
2971 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
2972 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
2973 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
2974 msgid "B<--connect URI>"
2975 msgstr "B<--connect адреса>"
2976
2977 #. type: textblock
2978 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
2979 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
2980 #: ../tools/virt-win-reg.pl:135
2981 msgid ""
2982 "If you specify guest block devices directly, then libvirt is not used at all."
2983 msgstr ""
2984
2985 #. type: textblock
2986 #: ../edit/virt-edit.pod:114
2987 msgid ""
2988 "When prompting for keys and passphrases, virt-edit normally turns echoing "
2989 "off so you cannot see what you are typing.  If you are not worried about "
2990 "Tempest attacks and there is no one else in the room you can specify this "
2991 "flag to see what you are typing."
2992 msgstr ""
2993
2994 #. type: =item
2995 #: ../edit/virt-edit.pod:119
2996 msgid "B<-e> EXPR"
2997 msgstr ""
2998
2999 #. type: =item
3000 #: ../edit/virt-edit.pod:121
3001 #, fuzzy
3002 #| msgid "B<--help>"
3003 msgid "B<--expr> EXPR"
3004 msgstr "B<--help>"
3005
3006 #. type: textblock
3007 #: ../edit/virt-edit.pod:123
3008 msgid ""
3009 "Instead of launching the external editor, non-interactively apply the Perl "
3010 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3011 "EDITING> below."
3012 msgstr ""
3013
3014 #. type: textblock
3015 #: ../edit/virt-edit.pod:127
3016 msgid ""
3017 "Be careful to properly quote the expression to prevent it from being altered "
3018 "by the shell."
3019 msgstr ""
3020
3021 #. type: textblock
3022 #: ../edit/virt-edit.pod:130
3023 msgid "Note that this option is only available when Perl 5 is installed."
3024 msgstr ""
3025
3026 #. type: =item
3027 #: ../edit/virt-edit.pod:132
3028 #, fuzzy
3029 #| msgid "B<--format=raw|qcow2|..>"
3030 msgid "B<--format> raw|qcow2|..."
3031 msgstr "B<--format=raw|qcow2|..>"
3032
3033 #. type: verbatim
3034 #: ../edit/virt-edit.pod:143
3035 #, fuzzy, no-wrap
3036 #| msgid ""
3037 #| " guestfish --format=raw -a disk.img\n"
3038 #| "\n"
3039 msgid ""
3040 " virt-edit --format=raw -a disk.img file\n"
3041 "\n"
3042 msgstr ""
3043 " guestfish --format=raw -a disk.img\n"
3044 "\n"
3045
3046 #. type: verbatim
3047 #: ../edit/virt-edit.pod:147
3048 #, fuzzy, no-wrap
3049 #| msgid ""
3050 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3051 #| "\n"
3052 msgid ""
3053 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3054 "\n"
3055 msgstr ""
3056 " guestfish --format=raw -a disk.img --format -a another.img\n"
3057 "\n"
3058
3059 #. type: textblock
3060 #: ../edit/virt-edit.pod:181
3061 msgid "Previous versions of virt-edit allowed you to write either:"
3062 msgstr ""
3063
3064 #. type: verbatim
3065 #: ../edit/virt-edit.pod:187
3066 #, fuzzy, no-wrap
3067 #| msgid ""
3068 #| " edit filename\n"
3069 #| "\n"
3070 msgid ""
3071 " virt-edit guestname file\n"
3072 "\n"
3073 msgstr ""
3074 " edit назва_файла\n"
3075 "\n"
3076
3077 #. type: =head1
3078 #: ../edit/virt-edit.pod:195
3079 msgid "NON-INTERACTIVE EDITING"
3080 msgstr ""
3081
3082 #. type: textblock
3083 #: ../edit/virt-edit.pod:197
3084 msgid ""
3085 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3086 "administrator can interactively edit the file."
3087 msgstr ""
3088
3089 #. type: textblock
3090 #: ../edit/virt-edit.pod:200
3091 msgid ""
3092 "There are two ways also to use C<virt-edit> from scripts in order to make "
3093 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3094 "like this, it's less error-prone to write scripts directly using the "
3095 "libguestfs API and Augeas for configuration file editing.)"
3096 msgstr ""
3097
3098 #. type: textblock
3099 #: ../edit/virt-edit.pod:206
3100 msgid ""
3101 "The first method is to temporarily set C<$EDITOR> to any script or program "
3102 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3103 "update C<tmpfile> in place however it likes."
3104 msgstr ""
3105
3106 #. type: textblock
3107 #: ../edit/virt-edit.pod:210
3108 msgid ""
3109 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3110 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3111 "instances of C<foo> with C<bar> in a file:"
3112 msgstr ""
3113
3114 #. type: verbatim
3115 #: ../edit/virt-edit.pod:214
3116 #, no-wrap
3117 msgid ""
3118 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3119 "\n"
3120 msgstr ""
3121
3122 #. type: textblock
3123 #: ../edit/virt-edit.pod:216
3124 msgid ""
3125 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3126 "For example to delete root's password you could do:"
3127 msgstr ""
3128
3129 #. type: verbatim
3130 #: ../edit/virt-edit.pod:219
3131 #, no-wrap
3132 msgid ""
3133 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3134 "\n"
3135 msgstr ""
3136
3137 #. type: textblock
3138 #: ../edit/virt-edit.pod:221
3139 msgid ""
3140 "What really happens is that the snippet is evaluated as a Perl expression "
3141 "for each line of the file.  The line, including the final C<\\n>, is passed "
3142 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3143 msgstr ""
3144
3145 #. type: textblock
3146 #: ../edit/virt-edit.pod:226
3147 msgid ""
3148 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3149 "C<apache> user account from the password file you can do:"
3150 msgstr ""
3151
3152 #. type: verbatim
3153 #: ../edit/virt-edit.pod:229
3154 #, no-wrap
3155 msgid ""
3156 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3157 "\n"
3158 msgstr ""
3159
3160 #. type: textblock
3161 #: ../edit/virt-edit.pod:231
3162 msgid ""
3163 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
3164 "the end of the file is rather difficult this way since there is no concept "
3165 "of \"last line of the file\" - your expression just doesn't get called "
3166 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
3167 "want to do this."
3168 msgstr ""
3169
3170 #. type: textblock
3171 #: ../edit/virt-edit.pod:237
3172 msgid ""
3173 "The variable C<$lineno> contains the current line number.  As is "
3174 "traditional, the first line in the file is number C<1>."
3175 msgstr ""
3176
3177 #. type: textblock
3178 #: ../edit/virt-edit.pod:240
3179 msgid ""
3180 "The return value from the expression is ignored, but the expression may call "
3181 "C<die> in order to abort the whole program, leaving the original file "
3182 "untouched."
3183 msgstr ""
3184
3185 #. type: textblock
3186 #: ../edit/virt-edit.pod:244
3187 msgid ""
3188 "Remember when matching the end of a line that C<$_> may contain the final C<"
3189 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3190 "newline then neither of these.  Thus to match or substitute some text at the "
3191 "end of a line, use this regular expression:"
3192 msgstr ""
3193
3194 #. type: verbatim
3195 #: ../edit/virt-edit.pod:249
3196 #, no-wrap
3197 msgid ""
3198 " /some text(\\r?\\n)?$/\n"
3199 "\n"
3200 msgstr ""
3201
3202 #. type: textblock
3203 #: ../edit/virt-edit.pod:251
3204 msgid ""
3205 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3206 "$_> itself (since that would remove all newlines from the file):"
3207 msgstr ""
3208
3209 #. type: verbatim
3210 #: ../edit/virt-edit.pod:255
3211 #, no-wrap
3212 msgid ""
3213 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3214 "\n"
3215 msgstr ""
3216
3217 #. type: =head1
3218 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3219 msgid "WINDOWS PATHS"
3220 msgstr ""
3221
3222 #. type: textblock
3223 #: ../edit/virt-edit.pod:259
3224 msgid ""
3225 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3226 "paths (eg. C<E:\\foo\\bar.txt>)."
3227 msgstr ""
3228
3229 #. type: textblock
3230 #: ../edit/virt-edit.pod:262
3231 msgid "If and only if the guest is running Windows then:"
3232 msgstr ""
3233
3234 #. type: textblock
3235 #: ../edit/virt-edit.pod:268
3236 msgid ""
3237 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3238 "to the correct filesystem."
3239 msgstr ""
3240
3241 #. type: textblock
3242 #: ../edit/virt-edit.pod:273
3243 msgid ""
3244 "Any backslash (C<\\>) characters in the path are replaced with forward "
3245 "slashes so that libguestfs can process it."
3246 msgstr ""
3247
3248 #. type: textblock
3249 #: ../edit/virt-edit.pod:278
3250 msgid ""
3251 "The path is resolved case insensitively to locate the file that should be "
3252 "edited."
3253 msgstr ""
3254
3255 #. type: textblock
3256 #: ../edit/virt-edit.pod:283
3257 msgid "There are some known shortcomings:"
3258 msgstr ""
3259
3260 #. type: textblock
3261 #: ../edit/virt-edit.pod:289
3262 msgid "Some NTFS symbolic links may not be followed correctly."
3263 msgstr ""
3264
3265 #. type: textblock
3266 #: ../edit/virt-edit.pod:293
3267 msgid "NTFS junction points that cross filesystems are not followed."
3268 msgstr ""
3269
3270 #. type: textblock
3271 #: ../edit/virt-edit.pod:299
3272 msgid ""
3273 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3274 "C<virt-edit> doesn't work."
3275 msgstr ""
3276
3277 #. type: textblock
3278 #: ../edit/virt-edit.pod:302
3279 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3280 msgstr ""
3281
3282 #. type: verbatim
3283 #: ../edit/virt-edit.pod:304
3284 #, fuzzy, no-wrap
3285 #| msgid ""
3286 #| " guestfish --ro -d myguest -i\n"
3287 #| "\n"
3288 msgid ""
3289 " guestfish --rw -i -d domname edit /file\n"
3290 "\n"
3291 msgstr ""
3292 " guestfish --ro -d myguest -i\n"
3293 "\n"
3294
3295 #. type: textblock
3296 #: ../edit/virt-edit.pod:306
3297 msgid ""
3298 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3299 "path to the file."
3300 msgstr ""
3301
3302 #. type: textblock
3303 #: ../edit/virt-edit.pod:309
3304 msgid ""
3305 "The command above uses libguestfs's guest inspection feature and so does not "
3306 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3307 "disk images that don't contain guests.  To edit a file on a disk image "
3308 "directly, use:"
3309 msgstr ""
3310
3311 #. type: verbatim
3312 #: ../edit/virt-edit.pod:314
3313 #, fuzzy, no-wrap
3314 #| msgid ""
3315 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3316 #| "\n"
3317 msgid ""
3318 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3319 "\n"
3320 msgstr ""
3321 " guestfish --format=raw -a disk.img --format -a another.img\n"
3322 "\n"
3323
3324 #. type: textblock
3325 #: ../edit/virt-edit.pod:316
3326 msgid ""
3327 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3328 "the disk image to edit, and C</file> is the full path to the file."
3329 msgstr ""
3330
3331 #. type: textblock
3332 #: ../edit/virt-edit.pod:320
3333 msgid ""
3334 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3335 "C<write> or C<upload> instead:"
3336 msgstr ""
3337
3338 #. type: verbatim
3339 #: ../edit/virt-edit.pod:323
3340 #, fuzzy, no-wrap
3341 #| msgid ""
3342 #| " guestfish --ro -d myguest -i\n"
3343 #| "\n"
3344 msgid ""
3345 " guestfish --rw -i -d domname touch /newfile\n"
3346 "\n"
3347 msgstr ""
3348 " guestfish --ro -d myguest -i\n"
3349 "\n"
3350
3351 #. type: verbatim
3352 #: ../edit/virt-edit.pod:325
3353 #, no-wrap
3354 msgid ""
3355 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3356 "\n"
3357 msgstr ""
3358
3359 #. type: verbatim
3360 #: ../edit/virt-edit.pod:327
3361 #, no-wrap
3362 msgid ""
3363 " guestfish --rw -i -d domname upload localfile /newfile\n"
3364 "\n"
3365 msgstr ""
3366
3367 #. type: =head1
3368 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3369 #: ../rescue/virt-rescue.pod:261 ../src/guestfs.pod:3103
3370 #: ../test-tool/libguestfs-test-tool.pod:95
3371 msgid "ENVIRONMENT VARIABLES"
3372 msgstr "ЗМІННІ СЕРЕДОВИЩА"
3373
3374 #. type: =item
3375 #: ../edit/virt-edit.pod:333
3376 #, fuzzy
3377 #| msgid "EDITOR"
3378 msgid "C<EDITOR>"
3379 msgstr "РЕДАКТОР"
3380
3381 #. type: textblock
3382 #: ../edit/virt-edit.pod:335
3383 msgid ""
3384 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3385 "\"emacs -nw\">"
3386 msgstr ""
3387
3388 #. type: textblock
3389 #: ../edit/virt-edit.pod:338
3390 msgid "If not set, C<vi> is used."
3391 msgstr ""
3392
3393 #. type: textblock
3394 #: ../edit/virt-edit.pod:356
3395 #, fuzzy
3396 #| msgid ""
3397 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3398 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3399 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3400 msgid ""
3401 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3402 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3403 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3404 msgstr ""
3405 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3406 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3407 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3408
3409 #. type: textblock
3410 #: ../erlang/examples/guestfs-erlang.pod:5
3411 msgid "guestfs-erlang - How to use libguestfs from Erlang"
3412 msgstr ""
3413
3414 #. type: verbatim
3415 #: ../erlang/examples/guestfs-erlang.pod:9
3416 #, no-wrap
3417 msgid ""
3418 " {ok, G} = guestfs:create(),\n"
3419 " ok = guestfs:add_drive_opts(G, Disk,\n"
3420 "                             [{format, \"raw\"}, {readonly, true}]),\n"
3421 " ok = guestfs:launch(G),\n"
3422 " [Device] = guestfs:list_devices(G),\n"
3423 " ok = guestfs:close(G).\n"
3424 "\n"
3425 msgstr ""
3426
3427 #. type: textblock
3428 #: ../erlang/examples/guestfs-erlang.pod:18
3429 msgid ""
3430 "This manual page documents how to call libguestfs from the Erlang "
3431 "programming language.  This page just documents the differences from the C "
3432 "API and gives some examples.  If you are not familiar with using libguestfs, "
3433 "you also need to read L<guestfs(3)>."
3434 msgstr ""
3435
3436 #. type: =head2
3437 #: ../erlang/examples/guestfs-erlang.pod:23
3438 msgid "OPENING AND CLOSING THE HANDLE"
3439 msgstr ""
3440
3441 #. type: textblock
3442 #: ../erlang/examples/guestfs-erlang.pod:25
3443 msgid ""
3444 "The Erlang bindings are implemented using an external program called C<erl-"
3445 "guestfs>.  This program must be on the current PATH, or else you should "
3446 "specify the full path to the program:"
3447 msgstr ""
3448
3449 #. type: verbatim
3450 #: ../erlang/examples/guestfs-erlang.pod:29
3451 #, fuzzy, no-wrap
3452 #| msgid ""
3453 #| " g = guestfs_create ();\n"
3454 #| " \n"
3455 msgid ""
3456 " {ok, G} = guestfs:create().\n"
3457 "\n"
3458 msgstr ""
3459 " g = guestfs_create ();\n"
3460 " \n"
3461
3462 #. type: verbatim
3463 #: ../erlang/examples/guestfs-erlang.pod:31
3464 #, no-wrap
3465 msgid ""
3466 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
3467 "\n"
3468 msgstr ""
3469
3470 #. type: textblock
3471 #: ../erlang/examples/guestfs-erlang.pod:33
3472 msgid "C<G> is the libguestfs handle which you should pass to other functions."
3473 msgstr ""
3474
3475 #. type: textblock
3476 #: ../erlang/examples/guestfs-erlang.pod:36
3477 msgid "To close the handle:"
3478 msgstr ""
3479
3480 #. type: verbatim
3481 #: ../erlang/examples/guestfs-erlang.pod:38
3482 #, fuzzy, no-wrap
3483 #| msgid ""
3484 #| " g = guestfs_create ();\n"
3485 #| " \n"
3486 msgid ""
3487 " ok = guestfs:close(G).\n"
3488 "\n"
3489 msgstr ""
3490 " g = guestfs_create ();\n"
3491 " \n"
3492
3493 #. type: =head2
3494 #: ../erlang/examples/guestfs-erlang.pod:40
3495 #, fuzzy
3496 #| msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
3497 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
3498 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
3499
3500 #. type: textblock
3501 #: ../erlang/examples/guestfs-erlang.pod:42
3502 msgid ""
3503 "For functions that take optional arguments, the first arguments are the non-"
3504 "optional ones.  The last argument is a list of tuples supplying the "
3505 "remaining optional arguments."
3506 msgstr ""
3507
3508 #. type: verbatim
3509 #: ../erlang/examples/guestfs-erlang.pod:46
3510 #, fuzzy, no-wrap
3511 #| msgid ""
3512 #| " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3513 #| "                                va_list args);\n"
3514 #| "\n"
3515 msgid ""
3516 " ok = guestfs:add_drive_opts(G, Disk,\n"
3517 "                             [{format, \"raw\"}, {readonly, true}]).\n"
3518 "\n"
3519 msgstr ""
3520 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3521 "                                va_list args);\n"
3522 "\n"
3523
3524 #. type: textblock
3525 #: ../erlang/examples/guestfs-erlang.pod:49
3526 msgid "If the last argument would be an empty list, you can also omit it:"
3527 msgstr ""
3528
3529 #. type: verbatim
3530 #: ../erlang/examples/guestfs-erlang.pod:51
3531 #, fuzzy, no-wrap
3532 #| msgid ""
3533 #| " guestfs_add_drive_opts (g, filename, -1);\n"
3534 #| "\n"
3535 msgid ""
3536 " ok = guestfs:add_drive_opts(G, Disk).\n"
3537 "\n"
3538 msgstr ""
3539 " guestfs_add_drive_opts (g, filename, -1);\n"
3540 "\n"
3541
3542 #. type: =head2
3543 #: ../erlang/examples/guestfs-erlang.pod:53
3544 msgid "RETURN VALUES AND ERRORS"
3545 msgstr ""
3546
3547 #. type: textblock
3548 #: ../erlang/examples/guestfs-erlang.pod:55
3549 msgid ""
3550 "On success, most functions return a C<Result> term (which could be a list, "
3551 "string, tuple etc.).  If there is nothing for the function to return, then "
3552 "the atom C<ok> is returned."
3553 msgstr ""
3554
3555 #. type: textblock
3556 #: ../erlang/examples/guestfs-erlang.pod:59
3557 msgid "On error, you would see one of the following tuples:"
3558 msgstr ""
3559
3560 #. type: =item
3561 #: ../erlang/examples/guestfs-erlang.pod:63
3562 msgid "C<{error, Msg, Errno}>"
3563 msgstr ""
3564
3565 #. type: textblock
3566 #: ../erlang/examples/guestfs-erlang.pod:65
3567 msgid "This indicates an ordinary error from the function."
3568 msgstr ""
3569
3570 #. type: textblock
3571 #: ../erlang/examples/guestfs-erlang.pod:67
3572 msgid ""
3573 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
3574 "(integer)."
3575 msgstr ""
3576
3577 #. type: textblock
3578 #: ../erlang/examples/guestfs-erlang.pod:70
3579 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
3580 msgstr ""
3581
3582 #. type: =item
3583 #: ../erlang/examples/guestfs-erlang.pod:72
3584 msgid "C<{unknown, Function}>"
3585 msgstr ""
3586
3587 #. type: textblock
3588 #: ../erlang/examples/guestfs-erlang.pod:74
3589 msgid ""
3590 "This indicates that the function you called is not known.  Generally this "
3591 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
3592 "which you should not do."
3593 msgstr ""
3594
3595 #. type: textblock
3596 #: ../erlang/examples/guestfs-erlang.pod:78
3597 msgid "C<Function> is the name of the unknown function."
3598 msgstr ""
3599
3600 #. type: =item
3601 #: ../erlang/examples/guestfs-erlang.pod:80
3602 msgid "C<{unknownarg, Arg}>"
3603 msgstr ""
3604
3605 #. type: textblock
3606 #: ../erlang/examples/guestfs-erlang.pod:82
3607 msgid ""
3608 "This indicates that you called a function with optional arguments, with an "
3609 "unknown argument name."
3610 msgstr ""
3611
3612 #. type: textblock
3613 #: ../erlang/examples/guestfs-erlang.pod:85
3614 msgid "C<Arg> is the name of the unknown argument."
3615 msgstr ""
3616
3617 #. type: =head1
3618 #: ../erlang/examples/guestfs-erlang.pod:89
3619 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3620 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3621 #: ../python/examples/guestfs-python.pod:34
3622 #: ../ruby/examples/guestfs-ruby.pod:28
3623 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3624 msgstr ""
3625
3626 #. type: textblock
3627 #: ../erlang/examples/guestfs-erlang.pod:91
3628 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
3629 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
3630 #: ../python/examples/guestfs-python.pod:36
3631 #: ../ruby/examples/guestfs-ruby.pod:30
3632 #, fuzzy
3633 #| msgid "EXAMPLE"
3634 msgid "@EXAMPLE1@"
3635 msgstr "ПРИКЛАД"
3636
3637 #. type: =head1
3638 #: ../erlang/examples/guestfs-erlang.pod:93
3639 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
3640 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
3641 #: ../python/examples/guestfs-python.pod:38
3642 #: ../ruby/examples/guestfs-ruby.pod:32
3643 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
3644 msgstr ""
3645
3646 #. type: textblock
3647 #: ../erlang/examples/guestfs-erlang.pod:95
3648 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
3649 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
3650 #: ../python/examples/guestfs-python.pod:40
3651 #: ../ruby/examples/guestfs-ruby.pod:34
3652 #, fuzzy
3653 #| msgid "EXAMPLE"
3654 msgid "@EXAMPLE2@"
3655 msgstr "ПРИКЛАД"
3656
3657 #. type: textblock
3658 #: ../erlang/examples/guestfs-erlang.pod:99
3659 #, fuzzy
3660 #| msgid ""
3661 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3662 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3663 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3664 msgid ""
3665 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3666 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3667 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
3668 msgstr ""
3669 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3670 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3671 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3672
3673 #. type: =head1
3674 #: ../erlang/examples/guestfs-erlang.pod:110
3675 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
3676 #: ../fish/guestfish.pod:1260 ../fish/virt-copy-in.pod:60
3677 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
3678 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
3679 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
3680 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
3681 #: ../python/examples/guestfs-python.pod:54
3682 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3237
3683 #: ../test-tool/libguestfs-test-tool.pod:106
3684 msgid "AUTHORS"
3685 msgstr "АВТОРИ"
3686
3687 #. type: textblock
3688 #: ../erlang/examples/guestfs-erlang.pod:112
3689 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
3690 #: ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:62
3691 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
3692 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
3693 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
3694 #: ../perl/examples/guestfs-perl.pod:54
3695 #: ../python/examples/guestfs-python.pod:56
3696 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3239
3697 #: ../test-tool/libguestfs-test-tool.pod:108
3698 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
3699 msgstr ""
3700
3701 #. type: textblock
3702 #: ../erlang/examples/guestfs-erlang.pod:116
3703 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
3704 #, fuzzy
3705 #| msgid "Copyright (C) 2009 Red Hat Inc."
3706 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
3707 msgstr "© Red Hat Inc., 2009"
3708
3709 #. type: textblock
3710 #: ../erlang/examples/guestfs-erlang.pod:118
3711 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
3712 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
3713 #: ../perl/examples/guestfs-perl.pod:60
3714 #: ../python/examples/guestfs-python.pod:62
3715 #: ../ruby/examples/guestfs-ruby.pod:56
3716 msgid ""
3717 "The examples in this manual page may be freely copied, modified and "
3718 "distributed without any restrictions."
3719 msgstr ""
3720
3721 #. type: textblock
3722 #: ../erlang/examples/guestfs-erlang.pod:121
3723 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
3724 #: ../java/examples/guestfs-java.pod:69
3725 #: ../ocaml/examples/guestfs-ocaml.pod:102
3726 #: ../perl/examples/guestfs-perl.pod:63
3727 #: ../python/examples/guestfs-python.pod:65
3728 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3246
3729 msgid ""
3730 "This library is free software; you can redistribute it and/or modify it "
3731 "under the terms of the GNU Lesser General Public License as published by the "
3732 "Free Software Foundation; either version 2 of the License, or (at your "
3733 "option) any later version."
3734 msgstr ""
3735
3736 #. type: textblock
3737 #: ../erlang/examples/guestfs-erlang.pod:126
3738 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
3739 #: ../java/examples/guestfs-java.pod:74
3740 #: ../ocaml/examples/guestfs-ocaml.pod:107
3741 #: ../perl/examples/guestfs-perl.pod:68
3742 #: ../python/examples/guestfs-python.pod:70
3743 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3251
3744 msgid ""
3745 "This library is distributed in the hope that it will be useful, but WITHOUT "
3746 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
3747 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
3748 "for more details."
3749 msgstr ""
3750
3751 #. type: textblock
3752 #: ../erlang/examples/guestfs-erlang.pod:131
3753 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
3754 #: ../java/examples/guestfs-java.pod:79
3755 #: ../ocaml/examples/guestfs-ocaml.pod:112
3756 #: ../perl/examples/guestfs-perl.pod:73
3757 #: ../python/examples/guestfs-python.pod:75
3758 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3256
3759 msgid ""
3760 "You should have received a copy of the GNU Lesser General Public License "
3761 "along with this library; if not, write to the Free Software Foundation, "
3762 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
3763 msgstr ""
3764
3765 #. type: textblock
3766 #: ../examples/guestfs-examples.pod:5
3767 msgid "guestfs-examples - Examples of using libguestfs from C"
3768 msgstr ""
3769
3770 #. type: verbatim
3771 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
3772 #, no-wrap
3773 msgid ""
3774 " #include <guestfs.h>\n"
3775 " \n"
3776 msgstr ""
3777 " #include <guestfs.h>\n"
3778 " \n"
3779
3780 #. type: verbatim
3781 #: ../examples/guestfs-examples.pod:11
3782 #, no-wrap
3783 msgid ""
3784 " guestfs_h *g = guestfs_create ();\n"
3785 " guestfs_add_drive_ro (g, \"disk.img\");\n"
3786 " guestfs_launch (g);\n"
3787 "\n"
3788 msgstr ""
3789
3790 #. type: verbatim
3791 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
3792 #, no-wrap
3793 msgid ""
3794 " cc prog.c -o prog -lguestfs\n"
3795 "or:\n"
3796 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3797 "\n"
3798 msgstr ""
3799 " cc prog.c -o prog -lguestfs\n"
3800 "або:\n"
3801 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
3802 "\n"
3803
3804 #. type: textblock
3805 #: ../examples/guestfs-examples.pod:21
3806 msgid ""
3807 "This manual page contains examples of calling libguestfs from the C "
3808 "programming language.  If you are not familiar with using libguestfs, you "
3809 "also need to read L<guestfs(3)>."
3810 msgstr ""
3811
3812 #. type: textblock
3813 #: ../examples/guestfs-examples.pod:35
3814 #, fuzzy
3815 #| msgid ""
3816 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3817 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3818 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3819 msgid ""
3820 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
3821 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
3822 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
3823 msgstr ""
3824 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3825 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3826 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3827
3828 #. type: textblock
3829 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
3830 #: ../python/examples/guestfs-python.pod:60
3831 #: ../ruby/examples/guestfs-ruby.pod:54
3832 #, fuzzy
3833 #| msgid "Copyright (C) 2009 Red Hat Inc."
3834 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
3835 msgstr "© Red Hat Inc., 2009"
3836
3837 #. type: =end
3838 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
3839 msgid "comment"
3840 msgstr ""
3841
3842 #. type: textblock
3843 #: ../examples/guestfs-recipes.pod:5
3844 msgid ""
3845 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
3846 "here.  The only way which works for both sorts of output is to just write "
3847 "the URL directly.  Do NOT use L<...> for URLs."
3848 msgstr ""
3849
3850 #. type: textblock
3851 #: ../examples/guestfs-recipes.pod:9
3852 msgid ""
3853 "We break with tradition here and don't use ALL CAPS for the section "
3854 "headings, as this makes them much easier to read."
3855 msgstr ""
3856
3857 #. type: textblock
3858 #: ../examples/guestfs-recipes.pod:16
3859 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
3860 msgstr ""
3861
3862 #. type: textblock
3863 #: ../examples/guestfs-recipes.pod:20
3864 msgid ""
3865 "This page contains recipes for and links to things you can do using "
3866 "libguestfs, L<guestfish(1)> and the virt tools."
3867 msgstr ""
3868
3869 #. type: =head1
3870 #: ../examples/guestfs-recipes.pod:23
3871 msgid "Audit a virtual machine for setuid files"
3872 msgstr ""
3873
3874 #. type: textblock
3875 #: ../examples/guestfs-recipes.pod:25
3876 msgid ""
3877 "The link below contains a small program which can be used to audit a Linux "
3878 "virtual machine to see what setuid and setgid files it contains."
3879 msgstr ""
3880
3881 #. type: textblock
3882 #: ../examples/guestfs-recipes.pod:28
3883 msgid ""
3884 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
3885 "files/#content"
3886 msgstr ""
3887
3888 #. type: =head1
3889 #: ../examples/guestfs-recipes.pod:30
3890 msgid "Change the background image in a Windows XP VM"
3891 msgstr ""
3892
3893 #. type: textblock
3894 #: ../examples/guestfs-recipes.pod:32
3895 msgid ""
3896 "The links below explain how to use L<guestfish(1)> to change the background "
3897 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
3898 "be substantially different for each version of Windows."
3899 msgstr ""
3900
3901 #. type: textblock
3902 #: ../examples/guestfs-recipes.pod:37
3903 msgid ""
3904 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
3905 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
3906 msgstr ""
3907
3908 #. type: =head1
3909 #: ../examples/guestfs-recipes.pod:40
3910 msgid "Cloning a virtual machine (Linux)"
3911 msgstr ""
3912
3913 #. type: textblock
3914 #: ../examples/guestfs-recipes.pod:42
3915 msgid ""
3916 "The guestfish technique described in the link below works well for most "
3917 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
3918 "slightly."
3919 msgstr ""
3920
3921 #. type: textblock
3922 #: ../examples/guestfs-recipes.pod:46
3923 msgid ""
3924 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
3925 "vm/#content"
3926 msgstr ""
3927
3928 #. type: textblock
3929 #: ../examples/guestfs-recipes.pod:48
3930 msgid ""
3931 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
3932 "discussion."
3933 msgstr ""
3934
3935 #. type: textblock
3936 #: ../examples/guestfs-recipes.pod:51
3937 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
3938 msgstr ""
3939
3940 #. type: =head1
3941 #: ../examples/guestfs-recipes.pod:53
3942 msgid "Cloning a virtual machine (Windows)"
3943 msgstr ""
3944
3945 #. type: textblock
3946 #: ../examples/guestfs-recipes.pod:55
3947 msgid ""
3948 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
3949 "straightforward.  Currently there is code in the Aeolus Oz project which "
3950 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
3951 "we may add sysprepping ability."
3952 msgstr ""
3953
3954 #. type: textblock
3955 #: ../examples/guestfs-recipes.pod:60
3956 msgid ""
3957 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
3958 "list/2011-May/msg00019.html"
3959 msgstr ""
3960
3961 #. type: =head1
3962 #: ../examples/guestfs-recipes.pod:63
3963 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
3964 msgstr ""
3965
3966 #. type: textblock
3967 #: ../examples/guestfs-recipes.pod:65
3968 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
3969 msgstr ""
3970
3971 #. type: verbatim
3972 #: ../examples/guestfs-recipes.pod:67
3973 #, no-wrap
3974 msgid ""
3975 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
3976 "\n"
3977 msgstr ""
3978
3979 #. type: textblock
3980 #: ../examples/guestfs-recipes.pod:69
3981 msgid "To export just a subdirectory, eg. C</files>, do:"
3982 msgstr ""
3983
3984 #. type: verbatim
3985 #: ../examples/guestfs-recipes.pod:71
3986 #, no-wrap
3987 msgid ""
3988 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
3989 "\n"
3990 msgstr ""
3991
3992 #. type: =head1
3993 #: ../examples/guestfs-recipes.pod:73
3994 msgid "Create empty disk images"
3995 msgstr ""
3996
3997 #. type: textblock
3998 #: ../examples/guestfs-recipes.pod:75
3999 msgid ""
4000 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
4001 "The useful guide below explains the options available."
4002 msgstr ""
4003
4004 #. type: textblock
4005 #: ../examples/guestfs-recipes.pod:78
4006 msgid ""
4007 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
4008 "#content"
4009 msgstr ""
4010
4011 #. type: =head1
4012 #: ../examples/guestfs-recipes.pod:80
4013 msgid "Dump raw filesystem content from inside a disk image or VM"
4014 msgstr ""
4015
4016 #. type: textblock
4017 #: ../examples/guestfs-recipes.pod:82
4018 msgid ""
4019 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4020 "filesystem content from any filesystem in a disk image or a VM (even one "
4021 "which is encrypted or buried inside an LV):"
4022 msgstr ""
4023
4024 #. type: verbatim
4025 #: ../examples/guestfs-recipes.pod:86
4026 #, fuzzy, no-wrap
4027 #| msgid ""
4028 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4029 #| "\n"
4030 msgid ""
4031 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4032 "\n"
4033 msgstr ""
4034 " guestfish --format=raw -a disk.img --format -a another.img\n"
4035 "\n"
4036
4037 #. type: verbatim
4038 #: ../examples/guestfs-recipes.pod:88
4039 #, no-wrap
4040 msgid ""
4041 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4042 "\n"
4043 msgstr ""
4044
4045 #. type: textblock
4046 #: ../examples/guestfs-recipes.pod:90
4047 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4048 msgstr ""
4049
4050 #. type: =head1
4051 #: ../examples/guestfs-recipes.pod:92
4052 msgid "Edit grub configuration in a VM"
4053 msgstr ""
4054
4055 #. type: textblock
4056 #: ../examples/guestfs-recipes.pod:94
4057 msgid "You can use this to:"
4058 msgstr ""
4059
4060 #. type: textblock
4061 #: ../examples/guestfs-recipes.pod:100
4062 msgid "Fix a virtual machine that does not boot."
4063 msgstr ""
4064
4065 #. type: textblock
4066 #: ../examples/guestfs-recipes.pod:104
4067 msgid "Change which kernel is used to boot the VM."
4068 msgstr ""
4069
4070 #. type: textblock
4071 #: ../examples/guestfs-recipes.pod:108
4072 msgid "Change kernel command line options."
4073 msgstr ""
4074
4075 #. type: textblock
4076 #: ../examples/guestfs-recipes.pod:112
4077 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4078 msgstr ""
4079
4080 #. type: verbatim
4081 #: ../examples/guestfs-recipes.pod:114
4082 #, no-wrap
4083 msgid ""
4084 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4085 "\n"
4086 msgstr ""
4087
4088 #. type: textblock
4089 #: ../examples/guestfs-recipes.pod:116
4090 msgid ""
4091 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4092 "this:"
4093 msgstr ""
4094
4095 #. type: verbatim
4096 #: ../examples/guestfs-recipes.pod:119
4097 #, no-wrap
4098 msgid ""
4099 " virt-rescue -d BrokenGuest\n"
4100 "\n"
4101 msgstr ""
4102
4103 #. type: =head1
4104 #: ../examples/guestfs-recipes.pod:121
4105 msgid "Export any directory from a VM"
4106 msgstr ""
4107
4108 #. type: textblock
4109 #: ../examples/guestfs-recipes.pod:123
4110 msgid ""
4111 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4112 msgstr ""
4113
4114 #. type: verbatim
4115 #: ../examples/guestfs-recipes.pod:126
4116 #, fuzzy, no-wrap
4117 #| msgid ""
4118 #| " copy-out /home .\n"
4119 #| "\n"
4120 msgid ""
4121 " virt-copy-out -d Guest /home .\n"
4122 "\n"
4123 msgstr ""
4124 " copy-out /home .\n"
4125 "\n"
4126
4127 #. type: textblock
4128 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
4129 #: ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592
4130 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:18
4131 #: ../src/guestfs-actions.pod:2029 ../src/guestfs-actions.pod:2451
4132 #: ../src/guestfs-actions.pod:3002 ../src/guestfs.pod:1667
4133 #: ../tools/virt-win-reg.pl:706
4134 msgid "Notes:"
4135 msgstr "Нотатки:"
4136
4137 #. type: textblock
4138 #: ../examples/guestfs-recipes.pod:134
4139 msgid ""
4140 "The final dot of the command is not a printing error.  It means we want to "
4141 "copy out to the current directory."
4142 msgstr ""
4143
4144 #. type: textblock
4145 #: ../examples/guestfs-recipes.pod:139
4146 msgid "This creates a directory called C<home> under the current directory."
4147 msgstr ""
4148
4149 #. type: textblock
4150 #: ../examples/guestfs-recipes.pod:143
4151 msgid ""
4152 "If the guest is a Windows guest then you can use drive letters and "
4153 "backslashes, but you must prefix the path with C<win:> and quote it to "
4154 "protect it from the shell, like this:"
4155 msgstr ""
4156
4157 #. type: verbatim
4158 #: ../examples/guestfs-recipes.pod:147
4159 #, no-wrap
4160 msgid ""
4161 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4162 "\n"
4163 msgstr ""
4164
4165 #. type: textblock
4166 #: ../examples/guestfs-recipes.pod:149
4167 msgid "To get the output as a compressed tarball, do:"
4168 msgstr ""
4169
4170 #. type: verbatim
4171 #: ../examples/guestfs-recipes.pod:151
4172 #, no-wrap
4173 msgid ""
4174 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4175 "\n"
4176 msgstr ""
4177
4178 #. type: textblock
4179 #: ../examples/guestfs-recipes.pod:153
4180 msgid ""
4181 "Although it sounds tempting, this is usually not a reliable way to get a "
4182 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
4183 "org/FAQ.html#backup"
4184 msgstr ""
4185
4186 #. type: =head1
4187 #: ../examples/guestfs-recipes.pod:157
4188 msgid "Find out which user is using the most space"
4189 msgstr ""
4190
4191 #. type: textblock
4192 #: ../examples/guestfs-recipes.pod:159
4193 msgid ""
4194 "This simple script examines a Linux guest to find out which user is using "
4195 "the most space in their home directory:"
4196 msgstr ""
4197
4198 #. type: verbatim
4199 #: ../examples/guestfs-recipes.pod:162
4200 #, fuzzy, no-wrap
4201 #| msgid ""
4202 #| " #!/usr/bin/guestfish -f\n"
4203 #| "\n"
4204 msgid ""
4205 " #!/bin/sh -\n"
4206 " \n"
4207 msgstr ""
4208 " #!/usr/bin/guestfish -f\n"
4209 "\n"
4210
4211 #. type: verbatim
4212 #: ../examples/guestfs-recipes.pod:164
4213 #, fuzzy, no-wrap
4214 #| msgid ""
4215 #| " set-qemu qemu\n"
4216 #| "\n"
4217 msgid ""
4218 " set -e\n"
4219 " \n"
4220 msgstr ""
4221 " set-qemu qemu\n"
4222 "\n"
4223
4224 #. type: verbatim
4225 #: ../examples/guestfs-recipes.pod:166
4226 #, no-wrap
4227 msgid ""
4228 " vm=\"$1\"\n"
4229 " dir=/home\n"
4230 " \n"
4231 msgstr ""
4232
4233 #. type: verbatim
4234 #: ../examples/guestfs-recipes.pod:169
4235 #, fuzzy, no-wrap
4236 #| msgid ""
4237 #| " guestfish --ro -d myguest -i\n"
4238 #| "\n"
4239 msgid ""
4240 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4241 " \n"
4242 msgstr ""
4243 " guestfish --ro -d myguest -i\n"
4244 "\n"
4245
4246 #. type: verbatim
4247 #: ../examples/guestfs-recipes.pod:171
4248 #, no-wrap
4249 msgid ""
4250 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4251 "     echo -n \"$dir/$d\"\n"
4252 "     echo -ne '\\t'\n"
4253 "     guestfish --remote du \"$dir/$d\";\n"
4254 " done | sort -nr -k 2\n"
4255 " \n"
4256 msgstr ""
4257
4258 #. type: verbatim
4259 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4260 #, no-wrap
4261 msgid ""
4262 " guestfish --remote exit\n"
4263 "\n"
4264 msgstr ""
4265
4266 #. type: =head1
4267 #: ../examples/guestfs-recipes.pod:179
4268 msgid "Get DHCP address from a VM"
4269 msgstr ""
4270
4271 #. type: textblock
4272 #: ../examples/guestfs-recipes.pod:181
4273 msgid ""
4274 "The link below explains the many different possible techniques for getting "
4275 "the last assigned DHCP address of a virtual machine."
4276 msgstr ""
4277
4278 #. type: textblock
4279 #: ../examples/guestfs-recipes.pod:184
4280 msgid ""
4281 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4282 "a-virtual-machine-disk-image/#content"
4283 msgstr ""
4284
4285 #. type: textblock
4286 #: ../examples/guestfs-recipes.pod:186
4287 msgid ""
4288 "In the libguestfs source examples directory you will find the latest version "
4289 "of the C<virt-dhcp-address.c> program."
4290 msgstr ""
4291
4292 #. type: =head1
4293 #: ../examples/guestfs-recipes.pod:189
4294 msgid "Get the operating system product name string"
4295 msgstr ""
4296
4297 #. type: textblock
4298 #: ../examples/guestfs-recipes.pod:191
4299 msgid "Save the following script into a file called C<product-name.sh>:"
4300 msgstr ""
4301
4302 #. type: verbatim
4303 #: ../examples/guestfs-recipes.pod:193
4304 #, fuzzy, no-wrap
4305 #| msgid ""
4306 #| " eval \"`guestfish --listen`\"\n"
4307 #| " guestfish --remote add-ro disk.img\n"
4308 #| " guestfish --remote run\n"
4309 #| " guestfish --remote lvs\n"
4310 #| "\n"
4311 msgid ""
4312 " #!/bin/sh -\n"
4313 " set -e\n"
4314 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4315 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4316 " guestfish --remote inspect-get-product-name \"$root\"\n"
4317 " guestfish --remote exit\n"
4318 "\n"
4319 msgstr ""
4320 " eval \"`guestfish --listen`\"\n"
4321 " guestfish --remote add-ro disk.img\n"
4322 " guestfish --remote run\n"
4323 " guestfish --remote lvs\n"
4324 "\n"
4325
4326 #. type: textblock
4327 #: ../examples/guestfs-recipes.pod:200
4328 msgid "Make the script executable and run it on a named guest:"
4329 msgstr ""
4330
4331 #. type: verbatim
4332 #: ../examples/guestfs-recipes.pod:202
4333 #, no-wrap
4334 msgid ""
4335 " # product-name.sh RHEL60x64\n"
4336 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4337 "\n"
4338 msgstr ""
4339
4340 #. type: textblock
4341 #: ../examples/guestfs-recipes.pod:205
4342 msgid ""
4343 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4344 "C<xpath> command line tool or from your favourite programming language:"
4345 msgstr ""
4346
4347 #. type: verbatim
4348 #: ../examples/guestfs-recipes.pod:209
4349 #, no-wrap
4350 msgid ""
4351 " # virt-inspector RHEL60x64 > xml\n"
4352 " # xpath '//product_name' < xml\n"
4353 " Found 1 nodes:\n"
4354 " -- NODE --\n"
4355 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4356 "\n"
4357 msgstr ""
4358
4359 #. type: =head1
4360 #: ../examples/guestfs-recipes.pod:215
4361 msgid "Get the default boot kernel for a Linux VM"
4362 msgstr ""
4363
4364 #. type: textblock
4365 #: ../examples/guestfs-recipes.pod:217
4366 msgid ""
4367 "The link below contains a program to print the default boot kernel for a "
4368 "Linux VM."
4369 msgstr ""
4370
4371 #. type: textblock
4372 #: ../examples/guestfs-recipes.pod:220
4373 msgid ""
4374 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4375 "kernel-for-a-vm/#content"
4376 msgstr ""
4377
4378 #. type: textblock
4379 #: ../examples/guestfs-recipes.pod:222
4380 msgid ""
4381 "It uses Augeas, and the technique is generally applicable for many different "
4382 "tasks, such as:"
4383 msgstr ""
4384
4385 #. type: textblock
4386 #: ../examples/guestfs-recipes.pod:229
4387 msgid "listing the user accounts in the guest"
4388 msgstr ""
4389
4390 #. type: textblock
4391 #: ../examples/guestfs-recipes.pod:233
4392 msgid "what repositories is it configured to use"
4393 msgstr ""
4394
4395 #. type: textblock
4396 #: ../examples/guestfs-recipes.pod:237
4397 msgid "what NTP servers does it connect to"
4398 msgstr ""
4399
4400 #. type: textblock
4401 #: ../examples/guestfs-recipes.pod:241
4402 msgid "what were the boot messages last time it booted"
4403 msgstr ""
4404
4405 #. type: textblock
4406 #: ../examples/guestfs-recipes.pod:245
4407 msgid "listing who was logged in recently"
4408 msgstr ""
4409
4410 #. type: textblock
4411 #: ../examples/guestfs-recipes.pod:249
4412 msgid "http://augeas.net/"
4413 msgstr ""
4414
4415 #. type: =head1
4416 #: ../examples/guestfs-recipes.pod:251
4417 msgid "Install RPMs in a guest"
4418 msgstr ""
4419
4420 #. type: textblock
4421 #: ../examples/guestfs-recipes.pod:253
4422 msgid ""
4423 "The link below contains a method to install RPMs in a guest.  In fact the "
4424 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4425 "installs them next time the guest is booted.  You could use this technique "
4426 "to install vital security updates in an offline guest."
4427 msgstr ""
4428
4429 #. type: textblock
4430 #: ../examples/guestfs-recipes.pod:259
4431 msgid ""
4432 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4433 msgstr ""
4434
4435 #. type: =head1
4436 #: ../examples/guestfs-recipes.pod:261
4437 msgid "List applications installed in a VM"
4438 msgstr ""
4439
4440 #. type: textblock
4441 #: ../examples/guestfs-recipes.pod:263
4442 msgid "Save the following to a file C<list-apps.sh>:"
4443 msgstr ""
4444
4445 #. type: verbatim
4446 #: ../examples/guestfs-recipes.pod:265
4447 #, fuzzy, no-wrap
4448 #| msgid ""
4449 #| " eval \"`guestfish --listen`\"\n"
4450 #| " guestfish --remote add-ro disk.img\n"
4451 #| " guestfish --remote run\n"
4452 #| " guestfish --remote lvs\n"
4453 #| "\n"
4454 msgid ""
4455 " #!/bin/sh -\n"
4456 " set -e\n"
4457 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4458 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4459 " guestfish --remote inspect-list-applications \"$root\"\n"
4460 " guestfish --remote exit\n"
4461 "\n"
4462 msgstr ""
4463 " eval \"`guestfish --listen`\"\n"
4464 " guestfish --remote add-ro disk.img\n"
4465 " guestfish --remote run\n"
4466 " guestfish --remote lvs\n"
4467 "\n"
4468
4469 #. type: textblock
4470 #: ../examples/guestfs-recipes.pod:272
4471 msgid ""
4472 "Make the file executable and then you can run it on any named virtual "
4473 "machine:"
4474 msgstr ""
4475
4476 #. type: verbatim
4477 #: ../examples/guestfs-recipes.pod:275
4478 #, no-wrap
4479 msgid ""
4480 " # list-apps.sh WinGuest\n"
4481 " [0] = {\n"
4482 "   app_name: Mozilla Firefox (3.6.12)\n"
4483 "   app_display_name: Mozilla Firefox (3.6.12)\n"
4484 "   app_epoch: 0\n"
4485 "   app_version: 3.6.12 (en-GB)\n"
4486 "   app_release:\n"
4487 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4488 "   app_trans_path:\n"
4489 "   app_publisher: Mozilla\n"
4490 "   app_url: http://www.mozilla.com/en-GB/\n"
4491 "   app_source_package:\n"
4492 "   app_summary:\n"
4493 "   app_description: Mozilla Firefox\n"
4494 " }\n"
4495 " [1] = {\n"
4496 "   app_name: VLC media player\n"
4497 "   app_display_name: VLC media player 1.1.5\n"
4498 "   app_epoch: 0\n"
4499 "   app_version: 1.1.5\n"
4500 "   app_release:\n"
4501 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4502 "   app_trans_path:\n"
4503 "   app_publisher: VideoLAN\n"
4504 "   app_url: http://www.videolan.org/\n"
4505 "   app_source_package:\n"
4506 "   app_summary:\n"
4507 "   app_description:\n"
4508 " }\n"
4509 "\n"
4510 msgstr ""
4511
4512 #. type: textblock
4513 #: ../examples/guestfs-recipes.pod:305
4514 msgid ""
4515 "If you want to run the script on disk images (instead of libvirt virtual "
4516 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
4517 ">."
4518 msgstr ""
4519
4520 #. type: =head1
4521 #: ../examples/guestfs-recipes.pod:309
4522 msgid "List files and directories in a VM"
4523 msgstr ""
4524
4525 #. type: textblock
4526 #: ../examples/guestfs-recipes.pod:311
4527 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4528 msgstr ""
4529
4530 #. type: verbatim
4531 #: ../examples/guestfs-recipes.pod:313
4532 #, fuzzy, no-wrap
4533 #| msgid ""
4534 #| " guestfish --ro -d myguest -i\n"
4535 #| "\n"
4536 msgid ""
4537 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4538 "\n"
4539 msgstr ""
4540 " guestfish --ro -d myguest -i\n"
4541 "\n"
4542
4543 #. type: =head1
4544 #: ../examples/guestfs-recipes.pod:315
4545 msgid "List services in a Windows VM"
4546 msgstr ""
4547
4548 #. type: textblock
4549 #: ../examples/guestfs-recipes.pod:317
4550 msgid ""
4551 "The link below contains a script that can be used to list out the services "
4552 "from a Windows VM, and whether those services run at boot time or are loaded "
4553 "on demand."
4554 msgstr ""
4555
4556 #. type: textblock
4557 #: ../examples/guestfs-recipes.pod:321
4558 msgid ""
4559 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4560 "#content"
4561 msgstr ""
4562
4563 #. type: =head1
4564 #: ../examples/guestfs-recipes.pod:323
4565 msgid "Make a disk image sparse"
4566 msgstr ""
4567
4568 #. type: textblock
4569 #: ../examples/guestfs-recipes.pod:325
4570 msgid ""
4571 "The link below contains some guides for making a disk image sparse (or "
4572 "reintroducing sparseness)."
4573 msgstr ""
4574
4575 #. type: textblock
4576 #: ../examples/guestfs-recipes.pod:328
4577 msgid ""
4578 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4579 msgstr ""
4580
4581 #. type: =head1
4582 #: ../examples/guestfs-recipes.pod:330
4583 msgid "Monitor disk usage over time"
4584 msgstr ""
4585
4586 #. type: textblock
4587 #: ../examples/guestfs-recipes.pod:332
4588 msgid ""
4589 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
4590 "The link below contains a guide."
4591 msgstr ""
4592
4593 #. type: textblock
4594 #: ../examples/guestfs-recipes.pod:335
4595 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4596 msgstr ""
4597
4598 #. type: =head1
4599 #: ../examples/guestfs-recipes.pod:337
4600 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4601 msgstr ""
4602
4603 #. type: textblock
4604 #: ../examples/guestfs-recipes.pod:339
4605 msgid ""
4606 "L<guestfish(1)> plus the tools described in the link below can be used to "
4607 "read out the Windows Event Log from any virtual machine running Windows "
4608 "Vista or a later version."
4609 msgstr ""
4610
4611 #. type: textblock
4612 #: ../examples/guestfs-recipes.pod:343
4613 msgid ""
4614 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4615 "guestfish/#content"
4616 msgstr ""
4617
4618 #. type: =head1
4619 #: ../examples/guestfs-recipes.pod:345
4620 msgid "Remove root password (Linux)"
4621 msgstr ""
4622
4623 #. type: textblock
4624 #: ../examples/guestfs-recipes.pod:347
4625 msgid ""
4626 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
4627 "files.  One use is to remove the root password from a Linux guest:"
4628 msgstr ""
4629
4630 #. type: verbatim
4631 #: ../examples/guestfs-recipes.pod:350
4632 #, no-wrap
4633 msgid ""
4634 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4635 "\n"
4636 msgstr ""
4637
4638 #. type: =head1
4639 #: ../examples/guestfs-recipes.pod:352
4640 msgid "Remove Administrator password (Windows)"
4641 msgstr ""
4642
4643 #. type: textblock
4644 #: ../examples/guestfs-recipes.pod:354
4645 msgid ""
4646 "The link below contains one technique for removing the Administrator "
4647 "password from a Windows VM, or to be more precise, it gives you a command "
4648 "prompt the next time you log in which you can use to bypass any security:"
4649 msgstr ""
4650
4651 #. type: textblock
4652 #: ../examples/guestfs-recipes.pod:359
4653 msgid ""
4654 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
4655 "administrator-password-with-guestfish/"
4656 msgstr ""
4657
4658 #. type: =head1
4659 #: ../examples/guestfs-recipes.pod:361
4660 msgid "Unpack a live CD"
4661 msgstr ""
4662
4663 #. type: textblock
4664 #: ../examples/guestfs-recipes.pod:363
4665 msgid ""
4666 "Linux live CDs often contain multiple layers of disk images wrapped like a "
4667 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
4668 "layers, as outlined in the guide below."
4669 msgstr ""
4670
4671 #. type: textblock
4672 #: ../examples/guestfs-recipes.pod:367
4673 msgid ""
4674 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
4675 "cd/#content"
4676 msgstr ""
4677
4678 #. type: =head1
4679 #: ../examples/guestfs-recipes.pod:369
4680 msgid "Uploading and downloading files"
4681 msgstr ""
4682
4683 #. type: textblock
4684 #: ../examples/guestfs-recipes.pod:371
4685 msgid ""
4686 "The link below contains general tips on uploading (copying in)  and "
4687 "downloading (copying out) files from VMs."
4688 msgstr ""
4689
4690 #. type: textblock
4691 #: ../examples/guestfs-recipes.pod:374
4692 msgid ""
4693 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
4694 msgstr ""
4695
4696 #. type: =head1
4697 #: ../examples/guestfs-recipes.pod:376
4698 msgid "Use libguestfs tools on VMware ESX guests"
4699 msgstr ""
4700
4701 #. type: textblock
4702 #: ../examples/guestfs-recipes.pod:378
4703 msgid ""
4704 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
4705 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
4706 msgstr ""
4707
4708 #. type: textblock
4709 #: ../examples/guestfs-recipes.pod:382
4710 msgid ""
4711 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
4712 "guests/#content"
4713 msgstr ""
4714
4715 #. type: textblock
4716 #: ../examples/guestfs-recipes.pod:386
4717 #, fuzzy
4718 #| msgid ""
4719 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4720 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4721 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4722 msgid ""
4723 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
4724 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
4725 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4726 msgstr ""
4727 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4728 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4729 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4730
4731 #. type: textblock
4732 #: ../examples/guestfs-recipes.pod:403
4733 #, fuzzy
4734 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
4735 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
4736 msgstr "© Red Hat Inc., 2009–2010"
4737
4738 #. type: =head2
4739 #: ../fish/guestfish-actions.pod:1
4740 msgid "add-cdrom"
4741 msgstr ""
4742
4743 #. type: verbatim
4744 #: ../fish/guestfish-actions.pod:3
4745 #, no-wrap
4746 msgid ""
4747 " add-cdrom filename\n"
4748 "\n"
4749 msgstr ""
4750
4751 #. type: textblock
4752 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
4753 msgid "This function adds a virtual CD-ROM disk image to the guest."
4754 msgstr ""
4755
4756 #. type: textblock
4757 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
4758 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
4759 msgstr ""
4760
4761 #. type: textblock
4762 #: ../fish/guestfish-actions.pod:15
4763 msgid ""
4764 "This call checks for the existence of C<filename>.  This stops you from "
4765 "specifying other types of drive which are supported by qemu such as C<nbd:> "
4766 "and C<http:> URLs.  To specify those, use the general L</config> call "
4767 "instead."
4768 msgstr ""
4769
4770 #. type: textblock
4771 #: ../fish/guestfish-actions.pod:22
4772 msgid ""
4773 "If you just want to add an ISO file (often you use this as an efficient way "
4774 "to transfer large files into the guest), then you should probably use L</add-"
4775 "drive-ro> instead."
4776 msgstr ""
4777
4778 #. type: textblock
4779 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
4780 #: ../fish/guestfish-actions.pod:177
4781 msgid ""
4782 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
4783 "instead."
4784 msgstr ""
4785
4786 #. type: textblock
4787 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
4788 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026
4789 #: ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400
4790 #: ../fish/guestfish-actions.pod:3157 ../fish/guestfish-actions.pod:3364
4791 #: ../fish/guestfish-actions.pod:3478 ../fish/guestfish-actions.pod:3526
4792 #: ../fish/guestfish-actions.pod:4439 ../fish/guestfish-actions.pod:4462
4793 #: ../fish/guestfish-actions.pod:4484 ../fish/guestfish-actions.pod:4522
4794 #: ../fish/guestfish-actions.pod:5171 ../fish/guestfish-actions.pod:5277
4795 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252
4796 #: ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1615
4797 #: ../src/guestfs-actions.pod:2114 ../src/guestfs-actions.pod:2135
4798 #: ../src/guestfs-actions.pod:4765 ../src/guestfs-actions.pod:5068
4799 #: ../src/guestfs-actions.pod:5297 ../src/guestfs-actions.pod:5397
4800 #: ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6721
4801 #: ../src/guestfs-actions.pod:6755 ../src/guestfs-actions.pod:6818
4802 #: ../src/guestfs-actions.pod:7750 ../src/guestfs-actions.pod:7859
4803 #: ../src/guestfs-actions.pod:8042
4804 msgid ""
4805 "Deprecated functions will not be removed from the API, but the fact that "
4806 "they are deprecated indicates that there are problems with correct use of "
4807 "these functions."
4808 msgstr ""
4809
4810 #. type: =head2
4811 #: ../fish/guestfish-actions.pod:35
4812 msgid "add-domain"
4813 msgstr "add-domain"
4814
4815 #. type: =head2
4816 #: ../fish/guestfish-actions.pod:37
4817 msgid "domain"
4818 msgstr ""
4819
4820 #. type: verbatim
4821 #: ../fish/guestfish-actions.pod:39
4822 #, no-wrap
4823 msgid ""
4824 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4825 "\n"
4826 msgstr ""
4827
4828 #. type: textblock
4829 #: ../fish/guestfish-actions.pod:41
4830 msgid ""
4831 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4832 "It works by connecting to libvirt, requesting the domain and domain XML from "
4833 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4834 msgstr ""
4835
4836 #. type: textblock
4837 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4838 msgid ""
4839 "The number of disks added is returned.  This operation is atomic: if an "
4840 "error is returned, then no disks are added."
4841 msgstr ""
4842
4843 #. type: textblock
4844 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4845 msgid ""
4846 "This function does some minimal checks to make sure the libvirt domain is "
4847 "not running (unless C<readonly> is true).  In a future version we will try "
4848 "to acquire the libvirt lock on each disk."
4849 msgstr ""
4850
4851 #. type: textblock
4852 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4853 msgid ""
4854 "Disks must be accessible locally.  This often means that adding disks from a "
4855 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4856 "unless those disks are accessible via the same device path locally too."
4857 msgstr ""
4858
4859 #. type: textblock
4860 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4861 msgid ""
4862 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4863 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4864 "libvirt URI (or one set through an environment variable, see the libvirt "
4865 "documentation for full details)."
4866 msgstr ""
4867
4868 #. type: textblock
4869 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4870 msgid ""
4871 "The optional C<live> flag controls whether this call will try to connect to "
4872 "a running virtual machine C<guestfsd> process if it sees a suitable "
4873 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4874 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4875 "DAEMONS> for more information."
4876 msgstr ""
4877
4878 #. type: textblock
4879 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4880 msgid ""
4881 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4882 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4883 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4884 "as usual."
4885 msgstr ""
4886
4887 #. type: textblock
4888 #: ../fish/guestfish-actions.pod:76
4889 msgid ""
4890 "The other optional parameters are passed directly through to L</add-drive-"
4891 "opts>."
4892 msgstr ""
4893
4894 #. type: textblock
4895 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4896 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
4897 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040
4898 #: ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3379
4899 #: ../fish/guestfish-actions.pod:3514
4900 msgid ""
4901 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4902 msgstr ""
4903
4904 #. type: =head2
4905 #: ../fish/guestfish-actions.pod:81
4906 msgid "add-drive"
4907 msgstr "add-drive"
4908
4909 #. type: verbatim
4910 #: ../fish/guestfish-actions.pod:83
4911 #, no-wrap
4912 msgid ""
4913 " add-drive filename\n"
4914 "\n"
4915 msgstr ""
4916 " add-drive назва_файла\n"
4917 "\n"
4918
4919 #. type: textblock
4920 #: ../fish/guestfish-actions.pod:85
4921 msgid ""
4922 "This function is the equivalent of calling L</add-drive-opts> with no "
4923 "optional parameters, so the disk is added writable, with the format being "
4924 "detected automatically."
4925 msgstr ""
4926
4927 #. type: textblock
4928 #: ../fish/guestfish-actions.pod:89
4929 msgid ""
4930 "Automatic detection of the format opens you up to a potential security hole "
4931 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4932 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4933 "you should think about replacing calls to this function with calls to L</add-"
4934 "drive-opts>, and specifying the format."
4935 msgstr ""
4936
4937 #. type: =head2
4938 #: ../fish/guestfish-actions.pod:96
4939 msgid "add-drive-opts"
4940 msgstr "add-drive-opts"
4941
4942 #. type: =head2
4943 #: ../fish/guestfish-actions.pod:98
4944 msgid "add"
4945 msgstr "add"
4946
4947 #. type: verbatim
4948 #: ../fish/guestfish-actions.pod:100
4949 #, no-wrap
4950 msgid ""
4951 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4952 "\n"
4953 msgstr ""
4954
4955 #. type: textblock
4956 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4957 msgid ""
4958 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4959 "The first time you call this function, the disk appears as C</dev/sda>, the "
4960 "second time as C</dev/sdb>, and so on."
4961 msgstr ""
4962
4963 #. type: textblock
4964 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4965 msgid ""
4966 "You don't necessarily need to be root when using libguestfs.  However you "
4967 "obviously do need sufficient permissions to access the filename for whatever "
4968 "operations you want to perform (ie. read access if you just want to read the "
4969 "image or write access if you want to modify the image)."
4970 msgstr ""
4971
4972 #. type: textblock
4973 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4974 msgid "This call checks that C<filename> exists."
4975 msgstr ""
4976
4977 #. type: textblock
4978 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168
4979 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4802
4980 msgid "The optional arguments are:"
4981 msgstr ""
4982
4983 #. type: =item
4984 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4985 msgid "C<readonly>"
4986 msgstr "C<readonly>"
4987
4988 #. type: textblock
4989 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4990 msgid ""
4991 "If true then the image is treated as read-only.  Writes are still allowed, "
4992 "but they are stored in a temporary snapshot overlay which is discarded at "
4993 "the end.  The disk that you add is not modified."
4994 msgstr ""
4995
4996 #. type: =item
4997 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4998 msgid "C<format>"
4999 msgstr "C<format>"
5000
5001 #. type: textblock
5002 #: ../fish/guestfish-actions.pod:127
5003 msgid ""
5004 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
5005 "add-drive-ro>) then the format is automatically detected.  Possible formats "
5006 "include C<raw> and C<qcow2>."
5007 msgstr ""
5008
5009 #. type: textblock
5010 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
5011 msgid ""
5012 "Automatic detection of the format opens you up to a potential security hole "
5013 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5014 "RHBZ#642934.  Specifying the format closes this security hole."
5015 msgstr ""
5016
5017 #. type: =item
5018 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
5019 msgid "C<iface>"
5020 msgstr "C<iface>"
5021
5022 #. type: textblock
5023 #: ../fish/guestfish-actions.pod:138
5024 msgid ""
5025 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
5026 "add-drive-with-if> call (q.v.)"
5027 msgstr ""
5028
5029 #. type: =head2
5030 #: ../fish/guestfish-actions.pod:145
5031 msgid "add-drive-ro"
5032 msgstr "add-drive-ro"
5033
5034 #. type: =head2
5035 #: ../fish/guestfish-actions.pod:147
5036 msgid "add-ro"
5037 msgstr "add-ro"
5038
5039 #. type: verbatim
5040 #: ../fish/guestfish-actions.pod:149
5041 #, no-wrap
5042 msgid ""
5043 " add-drive-ro filename\n"
5044 "\n"
5045 msgstr ""
5046
5047 #. type: textblock
5048 #: ../fish/guestfish-actions.pod:151
5049 msgid ""
5050 "This function is the equivalent of calling L</add-drive-opts> with the "
5051 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
5052 "is added read-only, with the format being detected automatically."
5053 msgstr ""
5054
5055 #. type: =head2
5056 #: ../fish/guestfish-actions.pod:156
5057 msgid "add-drive-ro-with-if"
5058 msgstr ""
5059
5060 #. type: verbatim
5061 #: ../fish/guestfish-actions.pod:158
5062 #, no-wrap
5063 msgid ""
5064 " add-drive-ro-with-if filename iface\n"
5065 "\n"
5066 msgstr ""
5067
5068 #. type: textblock
5069 #: ../fish/guestfish-actions.pod:160
5070 msgid ""
5071 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
5072 "interface emulation to use at run time."
5073 msgstr ""
5074
5075 #. type: =head2
5076 #: ../fish/guestfish-actions.pod:170
5077 msgid "add-drive-with-if"
5078 msgstr ""
5079
5080 #. type: verbatim
5081 #: ../fish/guestfish-actions.pod:172
5082 #, no-wrap
5083 msgid ""
5084 " add-drive-with-if filename iface\n"
5085 "\n"
5086 msgstr ""
5087
5088 #. type: textblock
5089 #: ../fish/guestfish-actions.pod:174
5090 msgid ""
5091 "This is the same as L</add-drive> but it allows you to specify the QEMU "
5092 "interface emulation to use at run time."
5093 msgstr ""
5094
5095 #. type: =head2
5096 #: ../fish/guestfish-actions.pod:184
5097 msgid "aug-clear"
5098 msgstr ""
5099
5100 #. type: verbatim
5101 #: ../fish/guestfish-actions.pod:186
5102 #, no-wrap
5103 msgid ""
5104 " aug-clear augpath\n"
5105 "\n"
5106 msgstr ""
5107
5108 #. type: textblock
5109 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
5110 msgid ""
5111 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
5112 "L<augtool(1)> C<clear> command."
5113 msgstr ""
5114
5115 #. type: =head2
5116 #: ../fish/guestfish-actions.pod:191
5117 msgid "aug-close"
5118 msgstr ""
5119
5120 #. type: verbatim
5121 #: ../fish/guestfish-actions.pod:193
5122 #, no-wrap
5123 msgid ""
5124 " aug-close\n"
5125 "\n"
5126 msgstr ""
5127
5128 #. type: textblock
5129 #: ../fish/guestfish-actions.pod:195
5130 msgid ""
5131 "Close the current Augeas handle and free up any resources used by it.  After "
5132 "calling this, you have to call L</aug-init> again before you can use any "
5133 "other Augeas functions."
5134 msgstr ""
5135
5136 #. type: =head2
5137 #: ../fish/guestfish-actions.pod:200
5138 msgid "aug-defnode"
5139 msgstr ""
5140
5141 #. type: verbatim
5142 #: ../fish/guestfish-actions.pod:202
5143 #, no-wrap
5144 msgid ""
5145 " aug-defnode name expr val\n"
5146 "\n"
5147 msgstr ""
5148
5149 #. type: textblock
5150 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
5151 msgid ""
5152 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
5153 msgstr ""
5154
5155 #. type: textblock
5156 #: ../fish/guestfish-actions.pod:207
5157 msgid ""
5158 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
5159 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
5160 "containing that single node."
5161 msgstr ""
5162
5163 #. type: textblock
5164 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
5165 msgid ""
5166 "On success this returns a pair containing the number of nodes in the "
5167 "nodeset, and a boolean flag if a node was created."
5168 msgstr ""
5169
5170 #. type: =head2
5171 #: ../fish/guestfish-actions.pod:215
5172 msgid "aug-defvar"
5173 msgstr ""
5174
5175 #. type: verbatim
5176 #: ../fish/guestfish-actions.pod:217
5177 #, no-wrap
5178 msgid ""
5179 " aug-defvar name expr\n"
5180 "\n"
5181 msgstr ""
5182
5183 #. type: textblock
5184 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
5185 msgid ""
5186 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5187 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
5188 msgstr ""
5189
5190 #. type: textblock
5191 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
5192 msgid ""
5193 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5194 "evaluates to something which is not a nodeset."
5195 msgstr ""
5196
5197 #. type: =head2
5198 #: ../fish/guestfish-actions.pod:226
5199 msgid "aug-get"
5200 msgstr ""
5201
5202 #. type: verbatim
5203 #: ../fish/guestfish-actions.pod:228
5204 #, no-wrap
5205 msgid ""
5206 " aug-get augpath\n"
5207 "\n"
5208 msgstr ""
5209
5210 #. type: textblock
5211 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
5212 msgid ""
5213 "Look up the value associated with C<path>.  If C<path> matches exactly one "
5214 "node, the C<value> is returned."
5215 msgstr ""
5216
5217 #. type: =head2
5218 #: ../fish/guestfish-actions.pod:233
5219 msgid "aug-init"
5220 msgstr ""
5221
5222 #. type: verbatim
5223 #: ../fish/guestfish-actions.pod:235
5224 #, no-wrap
5225 msgid ""
5226 " aug-init root flags\n"
5227 "\n"
5228 msgstr ""
5229
5230 #. type: textblock
5231 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
5232 msgid ""
5233 "Create a new Augeas handle for editing configuration files.  If there was "
5234 "any previous Augeas handle associated with this guestfs session, then it is "
5235 "closed."
5236 msgstr ""
5237
5238 #. type: textblock
5239 #: ../fish/guestfish-actions.pod:241
5240 msgid "You must call this before using any other L</aug-*> commands."
5241 msgstr ""
5242
5243 #. type: textblock
5244 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
5245 msgid ""
5246 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5247 msgstr ""
5248
5249 #. type: textblock
5250 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
5251 msgid ""
5252 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5253 "logical I<or> of the following integers:"
5254 msgstr ""
5255
5256 #. type: =item
5257 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5258 msgid "C<AUG_SAVE_BACKUP> = 1"
5259 msgstr "C<AUG_SAVE_BACKUP> = 1"
5260
5261 #. type: textblock
5262 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5263 msgid "Keep the original file with a C<.augsave> extension."
5264 msgstr ""
5265
5266 #. type: =item
5267 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5268 msgid "C<AUG_SAVE_NEWFILE> = 2"
5269 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5270
5271 #. type: textblock
5272 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5273 msgid ""
5274 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5275 "original.  Overrides C<AUG_SAVE_BACKUP>."
5276 msgstr ""
5277
5278 #. type: =item
5279 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5280 msgid "C<AUG_TYPE_CHECK> = 4"
5281 msgstr "C<AUG_TYPE_CHECK> = 4"
5282
5283 #. type: textblock
5284 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5285 msgid "Typecheck lenses."
5286 msgstr ""
5287
5288 #. type: textblock
5289 #: ../fish/guestfish-actions.pod:266
5290 msgid ""
5291 "This option is only useful when debugging Augeas lenses.  Use of this option "
5292 "may require additional memory for the libguestfs appliance.  You may need to "
5293 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5294 msgstr ""
5295
5296 #. type: =item
5297 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5298 msgid "C<AUG_NO_STDINC> = 8"
5299 msgstr "C<AUG_NO_STDINC> = 8"
5300
5301 #. type: textblock
5302 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5303 msgid "Do not use standard load path for modules."
5304 msgstr ""
5305
5306 #. type: =item
5307 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5308 msgid "C<AUG_SAVE_NOOP> = 16"
5309 msgstr "C<AUG_SAVE_NOOP> = 16"
5310
5311 #. type: textblock
5312 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5313 msgid "Make save a no-op, just record what would have been changed."
5314 msgstr ""
5315
5316 #. type: =item
5317 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5318 msgid "C<AUG_NO_LOAD> = 32"
5319 msgstr "C<AUG_NO_LOAD> = 32"
5320
5321 #. type: textblock
5322 #: ../fish/guestfish-actions.pod:281
5323 msgid "Do not load the tree in L</aug-init>."
5324 msgstr ""
5325
5326 #. type: textblock
5327 #: ../fish/guestfish-actions.pod:285
5328 msgid "To close the handle, you can call L</aug-close>."
5329 msgstr ""
5330
5331 #. type: textblock
5332 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5333 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5334 msgstr ""
5335
5336 #. type: =head2
5337 #: ../fish/guestfish-actions.pod:289
5338 msgid "aug-insert"
5339 msgstr ""
5340
5341 #. type: verbatim
5342 #: ../fish/guestfish-actions.pod:291
5343 #, no-wrap
5344 msgid ""
5345 " aug-insert augpath label true|false\n"
5346 "\n"
5347 msgstr ""
5348
5349 #. type: textblock
5350 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5351 msgid ""
5352 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5353 "or after C<path> (depending on the boolean flag C<before>)."
5354 msgstr ""
5355
5356 #. type: textblock
5357 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5358 msgid ""
5359 "C<path> must match exactly one existing node in the tree, and C<label> must "
5360 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5361 msgstr ""
5362
5363 #. type: =head2
5364 #: ../fish/guestfish-actions.pod:301
5365 msgid "aug-load"
5366 msgstr ""
5367
5368 #. type: verbatim
5369 #: ../fish/guestfish-actions.pod:303
5370 #, no-wrap
5371 msgid ""
5372 " aug-load\n"
5373 "\n"
5374 msgstr ""
5375
5376 #. type: textblock
5377 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5378 msgid "Load files into the tree."
5379 msgstr "Завантажити файли до ієрархії."
5380
5381 #. type: textblock
5382 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5383 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5384 msgstr ""
5385
5386 #. type: =head2
5387 #: ../fish/guestfish-actions.pod:310
5388 msgid "aug-ls"
5389 msgstr ""
5390
5391 #. type: verbatim
5392 #: ../fish/guestfish-actions.pod:312
5393 #, no-wrap
5394 msgid ""
5395 " aug-ls augpath\n"
5396 "\n"
5397 msgstr ""
5398
5399 #. type: textblock
5400 #: ../fish/guestfish-actions.pod:314
5401 msgid ""
5402 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5403 "resulting nodes into alphabetical order."
5404 msgstr ""
5405
5406 #. type: =head2
5407 #: ../fish/guestfish-actions.pod:317
5408 msgid "aug-match"
5409 msgstr ""
5410
5411 #. type: verbatim
5412 #: ../fish/guestfish-actions.pod:319
5413 #, no-wrap
5414 msgid ""
5415 " aug-match augpath\n"
5416 "\n"
5417 msgstr ""
5418
5419 #. type: textblock
5420 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5421 msgid ""
5422 "Returns a list of paths which match the path expression C<path>.  The "
5423 "returned paths are sufficiently qualified so that they match exactly one "
5424 "node in the current tree."
5425 msgstr ""
5426
5427 #. type: =head2
5428 #: ../fish/guestfish-actions.pod:325
5429 msgid "aug-mv"
5430 msgstr ""
5431
5432 #. type: verbatim
5433 #: ../fish/guestfish-actions.pod:327
5434 #, no-wrap
5435 msgid ""
5436 " aug-mv src dest\n"
5437 "\n"
5438 msgstr ""
5439
5440 #. type: textblock
5441 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5442 msgid ""
5443 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5444 "C<dest> is overwritten if it exists."
5445 msgstr ""
5446
5447 #. type: =head2
5448 #: ../fish/guestfish-actions.pod:332
5449 msgid "aug-rm"
5450 msgstr ""
5451
5452 #. type: verbatim
5453 #: ../fish/guestfish-actions.pod:334
5454 #, no-wrap
5455 msgid ""
5456 " aug-rm augpath\n"
5457 "\n"
5458 msgstr ""
5459
5460 #. type: textblock
5461 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5462 msgid "Remove C<path> and all of its children."
5463 msgstr ""
5464
5465 #. type: textblock
5466 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5467 msgid "On success this returns the number of entries which were removed."
5468 msgstr ""
5469
5470 #. type: =head2
5471 #: ../fish/guestfish-actions.pod:340
5472 msgid "aug-save"
5473 msgstr ""
5474
5475 #. type: verbatim
5476 #: ../fish/guestfish-actions.pod:342
5477 #, no-wrap
5478 msgid ""
5479 " aug-save\n"
5480 "\n"
5481 msgstr ""
5482
5483 #. type: textblock
5484 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5485 msgid "This writes all pending changes to disk."
5486 msgstr ""
5487
5488 #. type: textblock
5489 #: ../fish/guestfish-actions.pod:346
5490 msgid ""
5491 "The flags which were passed to L</aug-init> affect exactly how files are "
5492 "saved."
5493 msgstr ""
5494
5495 #. type: =head2
5496 #: ../fish/guestfish-actions.pod:349
5497 msgid "aug-set"
5498 msgstr ""
5499
5500 #. type: verbatim
5501 #: ../fish/guestfish-actions.pod:351
5502 #, no-wrap
5503 msgid ""
5504 " aug-set augpath val\n"
5505 "\n"
5506 msgstr ""
5507
5508 #. type: textblock
5509 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5510 msgid "Set the value associated with C<path> to C<val>."
5511 msgstr ""
5512
5513 #. type: textblock
5514 #: ../fish/guestfish-actions.pod:355
5515 msgid ""
5516 "In the Augeas API, it is possible to clear a node by setting the value to "
5517 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5518 "this call.  Instead you must use the L</aug-clear> call."
5519 msgstr ""
5520
5521 #. type: =head2
5522 #: ../fish/guestfish-actions.pod:360
5523 msgid "available"
5524 msgstr ""
5525
5526 #. type: verbatim
5527 #: ../fish/guestfish-actions.pod:362
5528 #, no-wrap
5529 msgid ""
5530 " available 'groups ...'\n"
5531 "\n"
5532 msgstr ""
5533
5534 #. type: textblock
5535 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5536 msgid ""
5537 "This command is used to check the availability of some groups of "
5538 "functionality in the appliance, which not all builds of the libguestfs "
5539 "appliance will be able to provide."
5540 msgstr ""
5541
5542 #. type: textblock
5543 #: ../fish/guestfish-actions.pod:368
5544 msgid ""
5545 "The libguestfs groups, and the functions that those groups correspond to, "
5546 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5547 "runtime by calling L</available-all-groups>."
5548 msgstr ""
5549
5550 #. type: textblock
5551 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5552 msgid ""
5553 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5554 "\"]> would check for the availability of the Linux inotify functions and "
5555 "Augeas (configuration file editing) functions."
5556 msgstr ""
5557
5558 #. type: textblock
5559 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5560 msgid "The command returns no error if I<all> requested groups are available."
5561 msgstr ""
5562
5563 #. type: textblock
5564 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5565 msgid ""
5566 "It fails with an error if one or more of the requested groups is unavailable "
5567 "in the appliance."
5568 msgstr ""
5569
5570 #. type: textblock
5571 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5572 msgid ""
5573 "If an unknown group name is included in the list of groups then an error is "
5574 "always returned."
5575 msgstr ""
5576
5577 #. type: textblock
5578 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5579 msgid "I<Notes:>"
5580 msgstr "I<Нотатки:>"
5581
5582 #. type: textblock
5583 #: ../fish/guestfish-actions.pod:392
5584 msgid "You must call L</launch> before calling this function."
5585 msgstr ""
5586
5587 #. type: textblock
5588 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5589 msgid ""
5590 "The reason is because we don't know what groups are supported by the "
5591 "appliance/daemon until it is running and can be queried."
5592 msgstr ""
5593
5594 #. type: textblock
5595 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5596 msgid ""
5597 "If a group of functions is available, this does not necessarily mean that "
5598 "they will work.  You still have to check for errors when calling individual "
5599 "API functions even if they are available."
5600 msgstr ""
5601
5602 #. type: textblock
5603 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5604 msgid ""
5605 "It is usually the job of distro packagers to build complete functionality "
5606 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5607 "with all requirements satisfied, will support everything."
5608 msgstr ""
5609
5610 #. type: textblock
5611 #: ../fish/guestfish-actions.pod:414
5612 msgid ""
5613 "This call was added in version C<1.0.80>.  In previous versions of "
5614 "libguestfs all you could do would be to speculatively execute a command to "
5615 "find out if the daemon implemented it.  See also L</version>."
5616 msgstr ""
5617
5618 #. type: =head2
5619 #: ../fish/guestfish-actions.pod:421
5620 msgid "available-all-groups"
5621 msgstr ""
5622
5623 #. type: verbatim
5624 #: ../fish/guestfish-actions.pod:423
5625 #, no-wrap
5626 msgid ""
5627 " available-all-groups\n"
5628 "\n"
5629 msgstr ""
5630
5631 #. type: textblock
5632 #: ../fish/guestfish-actions.pod:425
5633 msgid ""
5634 "This command returns a list of all optional groups that this daemon knows "
5635 "about.  Note this returns both supported and unsupported groups.  To find "
5636 "out which ones the daemon can actually support you have to call L</"
5637 "available> on each member of the returned list."
5638 msgstr ""
5639
5640 #. type: textblock
5641 #: ../fish/guestfish-actions.pod:431
5642 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5643 msgstr ""
5644
5645 #. type: =head2
5646 #: ../fish/guestfish-actions.pod:433
5647 msgid "base64-in"
5648 msgstr ""
5649
5650 #. type: verbatim
5651 #: ../fish/guestfish-actions.pod:435
5652 #, no-wrap
5653 msgid ""
5654 " base64-in (base64file|-) filename\n"
5655 "\n"
5656 msgstr ""
5657
5658 #. type: textblock
5659 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5660 msgid ""
5661 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5662 msgstr ""
5663
5664 #. type: textblock
5665 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5666 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782
5667 #: ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902
5668 #: ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295
5669 #: ../fish/guestfish-actions.pod:4742 ../fish/guestfish-actions.pod:4754
5670 #: ../fish/guestfish-actions.pod:4765 ../fish/guestfish-actions.pod:4776
5671 #: ../fish/guestfish-actions.pod:4828 ../fish/guestfish-actions.pod:4837
5672 #: ../fish/guestfish-actions.pod:4891 ../fish/guestfish-actions.pod:4914
5673 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5674 msgstr ""
5675
5676 #. type: =head2
5677 #: ../fish/guestfish-actions.pod:442
5678 msgid "base64-out"
5679 msgstr ""
5680
5681 #. type: verbatim
5682 #: ../fish/guestfish-actions.pod:444
5683 #, no-wrap
5684 msgid ""
5685 " base64-out filename (base64file|-)\n"
5686 "\n"
5687 msgstr ""
5688
5689 #. type: textblock
5690 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5691 msgid ""
5692 "This command downloads the contents of C<filename>, writing it out to local "
5693 "file C<base64file> encoded as base64."
5694 msgstr ""
5695
5696 #. type: =head2
5697 #: ../fish/guestfish-actions.pod:451
5698 msgid "blockdev-flushbufs"
5699 msgstr ""
5700
5701 #. type: verbatim
5702 #: ../fish/guestfish-actions.pod:453
5703 #, no-wrap
5704 msgid ""
5705 " blockdev-flushbufs device\n"
5706 "\n"
5707 msgstr ""
5708
5709 #. type: textblock
5710 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5711 msgid ""
5712 "This tells the kernel to flush internal buffers associated with C<device>."
5713 msgstr ""
5714
5715 #. type: textblock
5716 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5717 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5718 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5719 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5720 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5721 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5722 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5723 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5724 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5725 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5726 msgid "This uses the L<blockdev(8)> command."
5727 msgstr ""
5728
5729 #. type: =head2
5730 #: ../fish/guestfish-actions.pod:460
5731 msgid "blockdev-getbsz"
5732 msgstr ""
5733
5734 #. type: verbatim
5735 #: ../fish/guestfish-actions.pod:462
5736 #, no-wrap
5737 msgid ""
5738 " blockdev-getbsz device\n"
5739 "\n"
5740 msgstr ""
5741
5742 #. type: textblock
5743 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5744 msgid "This returns the block size of a device."
5745 msgstr ""
5746
5747 #. type: textblock
5748 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5749 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5750 msgid ""
5751 "(Note this is different from both I<size in blocks> and I<filesystem block "
5752 "size>)."
5753 msgstr ""
5754
5755 #. type: =head2
5756 #: ../fish/guestfish-actions.pod:471
5757 msgid "blockdev-getro"
5758 msgstr ""
5759
5760 #. type: verbatim
5761 #: ../fish/guestfish-actions.pod:473
5762 #, no-wrap
5763 msgid ""
5764 " blockdev-getro device\n"
5765 "\n"
5766 msgstr ""
5767
5768 #. type: textblock
5769 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5770 msgid ""
5771 "Returns a boolean indicating if the block device is read-only (true if read-"
5772 "only, false if not)."
5773 msgstr ""
5774
5775 #. type: =head2
5776 #: ../fish/guestfish-actions.pod:480
5777 msgid "blockdev-getsize64"
5778 msgstr ""
5779
5780 #. type: verbatim
5781 #: ../fish/guestfish-actions.pod:482
5782 #, no-wrap
5783 msgid ""
5784 " blockdev-getsize64 device\n"
5785 "\n"
5786 msgstr ""
5787
5788 #. type: textblock
5789 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5790 msgid "This returns the size of the device in bytes."
5791 msgstr ""
5792
5793 #. type: textblock
5794 #: ../fish/guestfish-actions.pod:486
5795 msgid "See also L</blockdev-getsz>."
5796 msgstr ""
5797
5798 #. type: =head2
5799 #: ../fish/guestfish-actions.pod:490
5800 msgid "blockdev-getss"
5801 msgstr ""
5802
5803 #. type: verbatim
5804 #: ../fish/guestfish-actions.pod:492
5805 #, no-wrap
5806 msgid ""
5807 " blockdev-getss device\n"
5808 "\n"
5809 msgstr ""
5810
5811 #. type: textblock
5812 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5813 msgid ""
5814 "This returns the size of sectors on a block device.  Usually 512, but can be "
5815 "larger for modern devices."
5816 msgstr ""
5817
5818 #. type: textblock
5819 #: ../fish/guestfish-actions.pod:497
5820 msgid ""
5821 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5822 msgstr ""
5823
5824 #. type: =head2
5825 #: ../fish/guestfish-actions.pod:502
5826 msgid "blockdev-getsz"
5827 msgstr ""
5828
5829 #. type: verbatim
5830 #: ../fish/guestfish-actions.pod:504
5831 #, no-wrap
5832 msgid ""
5833 " blockdev-getsz device\n"
5834 "\n"
5835 msgstr ""
5836
5837 #. type: textblock
5838 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5839 msgid ""
5840 "This returns the size of the device in units of 512-byte sectors (even if "
5841 "the sectorsize isn't 512 bytes ... weird)."
5842 msgstr ""
5843
5844 #. type: textblock
5845 #: ../fish/guestfish-actions.pod:509
5846 msgid ""
5847 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5848 "blockdev-getsize64> for the more useful I<size in bytes>."
5849 msgstr ""
5850
5851 #. type: =head2
5852 #: ../fish/guestfish-actions.pod:515
5853 msgid "blockdev-rereadpt"
5854 msgstr ""
5855
5856 #. type: verbatim
5857 #: ../fish/guestfish-actions.pod:517
5858 #, no-wrap
5859 msgid ""
5860 " blockdev-rereadpt device\n"
5861 "\n"
5862 msgstr ""
5863
5864 #. type: textblock
5865 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5866 msgid "Reread the partition table on C<device>."
5867 msgstr ""
5868
5869 #. type: =head2
5870 #: ../fish/guestfish-actions.pod:523
5871 msgid "blockdev-setbsz"
5872 msgstr ""
5873
5874 #. type: verbatim
5875 #: ../fish/guestfish-actions.pod:525
5876 #, no-wrap
5877 msgid ""
5878 " blockdev-setbsz device blocksize\n"
5879 "\n"
5880 msgstr ""
5881
5882 #. type: textblock
5883 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5884 msgid "This sets the block size of a device."
5885 msgstr ""
5886
5887 #. type: =head2
5888 #: ../fish/guestfish-actions.pod:534
5889 msgid "blockdev-setro"
5890 msgstr ""
5891
5892 #. type: verbatim
5893 #: ../fish/guestfish-actions.pod:536
5894 #, no-wrap
5895 msgid ""
5896 " blockdev-setro device\n"
5897 "\n"
5898 msgstr ""
5899
5900 #. type: textblock
5901 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5902 msgid "Sets the block device named C<device> to read-only."
5903 msgstr ""
5904
5905 #. type: =head2
5906 #: ../fish/guestfish-actions.pod:542
5907 msgid "blockdev-setrw"
5908 msgstr ""
5909
5910 #. type: verbatim
5911 #: ../fish/guestfish-actions.pod:544
5912 #, no-wrap
5913 msgid ""
5914 " blockdev-setrw device\n"
5915 "\n"
5916 msgstr ""
5917
5918 #. type: textblock
5919 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5920 msgid "Sets the block device named C<device> to read-write."
5921 msgstr ""
5922
5923 #. type: =head2
5924 #: ../fish/guestfish-actions.pod:550
5925 msgid "btrfs-filesystem-resize"
5926 msgstr ""
5927
5928 #. type: verbatim
5929 #: ../fish/guestfish-actions.pod:552
5930 #, no-wrap
5931 msgid ""
5932 " btrfs-filesystem-resize mountpoint [size:..]\n"
5933 "\n"
5934 msgstr ""
5935
5936 #. type: textblock
5937 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5938 msgid "This command resizes a btrfs filesystem."
5939 msgstr ""
5940
5941 #. type: textblock
5942 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5943 msgid ""
5944 "Note that unlike other resize calls, the filesystem has to be mounted and "
5945 "the parameter is the mountpoint not the device (this is a requirement of "
5946 "btrfs itself)."
5947 msgstr ""
5948
5949 #. type: textblock
5950 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3489
5951 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5336
5952 msgid "The optional parameters are:"
5953 msgstr ""
5954
5955 #. type: =item
5956 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3493
5957 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5340
5958 msgid "C<size>"
5959 msgstr ""
5960
5961 #. type: textblock
5962 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5963 msgid ""
5964 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5965 "resized to the maximum size."
5966 msgstr ""
5967
5968 #. type: textblock
5969 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5970 msgid "See also L<btrfs(8)>."
5971 msgstr ""
5972
5973 #. type: =head2
5974 #: ../fish/guestfish-actions.pod:575
5975 msgid "case-sensitive-path"
5976 msgstr ""
5977
5978 #. type: verbatim
5979 #: ../fish/guestfish-actions.pod:577
5980 #, no-wrap
5981 msgid ""
5982 " case-sensitive-path path\n"
5983 "\n"
5984 msgstr ""
5985
5986 #. type: textblock
5987 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5988 msgid ""
5989 "This can be used to resolve case insensitive paths on a filesystem which is "
5990 "case sensitive.  The use case is to resolve paths which you have read from "
5991 "Windows configuration files or the Windows Registry, to the true path."
5992 msgstr ""
5993
5994 #. type: textblock
5995 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5996 msgid ""
5997 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5998 "(and probably others), which is that although the underlying filesystem is "
5999 "case-insensitive, the driver exports the filesystem to Linux as case-"
6000 "sensitive."
6001 msgstr ""
6002
6003 #. type: textblock
6004 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
6005 msgid ""
6006 "One consequence of this is that special directories such as C<c:\\windows> "
6007 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6008 "precise details of how they were created.  In Windows itself this would not "
6009 "be a problem."
6010 msgstr ""
6011
6012 #. type: textblock
6013 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
6014 msgid ""
6015 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
6016 "#posixfilenames1>"
6017 msgstr ""
6018
6019 #. type: textblock
6020 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
6021 msgid ""
6022 "This function resolves the true case of each element in the path and returns "
6023 "the case-sensitive path."
6024 msgstr ""
6025
6026 #. type: textblock
6027 #: ../fish/guestfish-actions.pod:601
6028 msgid ""
6029 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
6030 "WINDOWS/system32\"> (the exact return value would depend on details of how "
6031 "the directories were originally created under Windows)."
6032 msgstr ""
6033
6034 #. type: textblock
6035 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
6036 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6037 msgstr ""
6038
6039 #. type: textblock
6040 #: ../fish/guestfish-actions.pod:609
6041 msgid "See also L</realpath>."
6042 msgstr ""
6043
6044 #. type: =head2
6045 #: ../fish/guestfish-actions.pod:611
6046 msgid "cat"
6047 msgstr "cat"
6048
6049 #. type: verbatim
6050 #: ../fish/guestfish-actions.pod:613
6051 #, no-wrap
6052 msgid ""
6053 " cat path\n"
6054 "\n"
6055 msgstr ""
6056 " cat шлях\n"
6057 "\n"
6058
6059 #. type: textblock
6060 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3909
6061 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5979
6062 msgid "Return the contents of the file named C<path>."
6063 msgstr ""
6064
6065 #. type: textblock
6066 #: ../fish/guestfish-actions.pod:617
6067 msgid ""
6068 "Note that this function cannot correctly handle binary files (specifically, "
6069 "files containing C<\\0> character which is treated as end of string).  For "
6070 "those you need to use the L</read-file> or L</download> functions which have "
6071 "a more complex interface."
6072 msgstr ""
6073
6074 #. type: textblock
6075 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
6076 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980
6077 #: ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057
6078 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259
6079 #: ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582
6080 #: ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647
6081 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676
6082 #: ../fish/guestfish-actions.pod:3779 ../fish/guestfish-actions.pod:3794
6083 #: ../fish/guestfish-actions.pod:3870 ../fish/guestfish-actions.pod:3887
6084 #: ../fish/guestfish-actions.pod:3902 ../fish/guestfish-actions.pod:4583
6085 #: ../fish/guestfish-actions.pod:4629 ../fish/guestfish-actions.pod:4714
6086 #: ../fish/guestfish-actions.pod:4729 ../fish/guestfish-actions.pod:5135
6087 #: ../fish/guestfish-actions.pod:5147 ../fish/guestfish-actions.pod:5165
6088 #: ../fish/guestfish-actions.pod:5182 ../fish/guestfish-actions.pod:5192
6089 #: ../fish/guestfish-actions.pod:5249 ../fish/guestfish-actions.pod:5259
6090 #: ../fish/guestfish-actions.pod:5288 ../fish/guestfish-actions.pod:5298
6091 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
6092 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1550
6093 #: ../src/guestfs-actions.pod:1569 ../src/guestfs-actions.pod:1672
6094 #: ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1937
6095 #: ../src/guestfs-actions.pod:2417 ../src/guestfs-actions.pod:2436
6096 #: ../src/guestfs-actions.pod:2501 ../src/guestfs-actions.pod:2525
6097 #: ../src/guestfs-actions.pod:2542 ../src/guestfs-actions.pod:2571
6098 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:5787
6099 #: ../src/guestfs-actions.pod:5918 ../src/guestfs-actions.pod:5944
6100 #: ../src/guestfs-actions.pod:5968 ../src/guestfs-actions.pod:6933
6101 #: ../src/guestfs-actions.pod:6988 ../src/guestfs-actions.pod:7134
6102 #: ../src/guestfs-actions.pod:7158 ../src/guestfs-actions.pod:7823
6103 #: ../src/guestfs-actions.pod:7843 ../src/guestfs-actions.pod:7876
6104 #: ../src/guestfs-actions.pod:7895 ../src/guestfs-actions.pod:7914
6105 #: ../src/guestfs-actions.pod:8008 ../src/guestfs-actions.pod:8027
6106 #: ../src/guestfs-actions.pod:8073 ../src/guestfs-actions.pod:8092
6107 msgid ""
6108 "Because of the message protocol, there is a transfer limit of somewhere "
6109 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
6110 msgstr ""
6111
6112 #. type: =head2
6113 #: ../fish/guestfish-actions.pod:625
6114 msgid "checksum"
6115 msgstr "checksum"
6116
6117 #. type: verbatim
6118 #: ../fish/guestfish-actions.pod:627
6119 #, no-wrap
6120 msgid ""
6121 " checksum csumtype path\n"
6122 "\n"
6123 msgstr ""
6124
6125 #. type: textblock
6126 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
6127 msgid ""
6128 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6129 msgstr ""
6130
6131 #. type: textblock
6132 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
6133 msgid ""
6134 "The type of checksum to compute is given by the C<csumtype> parameter which "
6135 "must have one of the following values:"
6136 msgstr ""
6137
6138 #. type: =item
6139 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
6140 msgid "C<crc>"
6141 msgstr "C<crc>"
6142
6143 #. type: textblock
6144 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
6145 msgid ""
6146 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6147 "C<cksum> command."
6148 msgstr ""
6149
6150 #. type: =item
6151 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
6152 msgid "C<md5>"
6153 msgstr "C<md5>"
6154
6155 #. type: textblock
6156 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
6157 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6158 msgstr ""
6159
6160 #. type: =item
6161 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
6162 msgid "C<sha1>"
6163 msgstr "C<sha1>"
6164
6165 #. type: textblock
6166 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
6167 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6168 msgstr ""
6169
6170 #. type: =item
6171 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
6172 msgid "C<sha224>"
6173 msgstr "C<sha224>"
6174
6175 #. type: textblock
6176 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
6177 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6178 msgstr ""
6179
6180 #. type: =item
6181 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
6182 msgid "C<sha256>"
6183 msgstr "C<sha256>"
6184
6185 #. type: textblock
6186 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
6187 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6188 msgstr ""
6189
6190 #. type: =item
6191 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
6192 msgid "C<sha384>"
6193 msgstr "C<sha384>"
6194
6195 #. type: textblock
6196 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
6197 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6198 msgstr ""
6199
6200 #. type: =item
6201 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
6202 msgid "C<sha512>"
6203 msgstr "C<sha512>"
6204
6205 #. type: textblock
6206 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
6207 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6208 msgstr ""
6209
6210 #. type: textblock
6211 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
6212 msgid "The checksum is returned as a printable string."
6213 msgstr ""
6214
6215 #. type: textblock
6216 #: ../fish/guestfish-actions.pod:670
6217 msgid "To get the checksum for a device, use L</checksum-device>."
6218 msgstr ""
6219
6220 #. type: textblock
6221 #: ../fish/guestfish-actions.pod:672
6222 msgid "To get the checksums for many files, use L</checksums-out>."
6223 msgstr ""
6224
6225 #. type: =head2
6226 #: ../fish/guestfish-actions.pod:674
6227 msgid "checksum-device"
6228 msgstr "checksum-device"
6229
6230 #. type: verbatim
6231 #: ../fish/guestfish-actions.pod:676
6232 #, no-wrap
6233 msgid ""
6234 " checksum-device csumtype device\n"
6235 "\n"
6236 msgstr ""
6237
6238 #. type: textblock
6239 #: ../fish/guestfish-actions.pod:678
6240 msgid ""
6241 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6242 "device named C<device>.  For the types of checksums supported see the L</"
6243 "checksum> command."
6244 msgstr ""
6245
6246 #. type: =head2
6247 #: ../fish/guestfish-actions.pod:682
6248 msgid "checksums-out"
6249 msgstr ""
6250
6251 #. type: verbatim
6252 #: ../fish/guestfish-actions.pod:684
6253 #, no-wrap
6254 msgid ""
6255 " checksums-out csumtype directory (sumsfile|-)\n"
6256 "\n"
6257 msgstr ""
6258
6259 #. type: textblock
6260 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6261 msgid ""
6262 "This command computes the checksums of all regular files in C<directory> and "
6263 "then emits a list of those checksums to the local output file C<sumsfile>."
6264 msgstr ""
6265
6266 #. type: textblock
6267 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6268 msgid ""
6269 "This can be used for verifying the integrity of a virtual machine.  However "
6270 "to be properly secure you should pay attention to the output of the checksum "
6271 "command (it uses the ones from GNU coreutils).  In particular when the "
6272 "filename is not printable, coreutils uses a special backslash syntax.  For "
6273 "more information, see the GNU coreutils info file."
6274 msgstr ""
6275
6276 #. type: =head2
6277 #: ../fish/guestfish-actions.pod:700
6278 msgid "chmod"
6279 msgstr "chmod"
6280
6281 #. type: verbatim
6282 #: ../fish/guestfish-actions.pod:702
6283 #, no-wrap
6284 msgid ""
6285 " chmod mode path\n"
6286 "\n"
6287 msgstr ""
6288
6289 #. type: textblock
6290 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6291 msgid ""
6292 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6293 "supported."
6294 msgstr ""
6295
6296 #. type: textblock
6297 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6298 msgid ""
6299 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6300 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6301 "C<700>."
6302 msgstr ""
6303
6304 #. type: textblock
6305 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3132
6306 #: ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3281
6307 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:1064
6308 #: ../src/guestfs-actions.pod:4733 ../src/guestfs-actions.pod:4942
6309 #: ../src/guestfs-actions.pod:4961 ../src/guestfs-actions.pod:4980
6310 msgid "The mode actually set is affected by the umask."
6311 msgstr ""
6312
6313 #. type: =head2
6314 #: ../fish/guestfish-actions.pod:713
6315 msgid "chown"
6316 msgstr "chown"
6317
6318 #. type: verbatim
6319 #: ../fish/guestfish-actions.pod:715
6320 #, no-wrap
6321 msgid ""
6322 " chown owner group path\n"
6323 "\n"
6324 msgstr ""
6325
6326 #. type: textblock
6327 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6328 msgid "Change the file owner to C<owner> and group to C<group>."
6329 msgstr ""
6330
6331 #. type: textblock
6332 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567
6333 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3804
6334 msgid ""
6335 "Only numeric uid and gid are supported.  If you want to use names, you will "
6336 "need to locate and parse the password file yourself (Augeas support makes "
6337 "this relatively easy)."
6338 msgstr ""
6339
6340 #. type: =head2
6341 #: ../fish/guestfish-actions.pod:723
6342 msgid "command"
6343 msgstr ""
6344
6345 #. type: verbatim
6346 #: ../fish/guestfish-actions.pod:725
6347 #, no-wrap
6348 msgid ""
6349 " command 'arguments ...'\n"
6350 "\n"
6351 msgstr ""
6352
6353 #. type: textblock
6354 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6355 msgid ""
6356 "This call runs a command from the guest filesystem.  The filesystem must be "
6357 "mounted, and must contain a compatible operating system (ie. something "
6358 "Linux, with the same or compatible processor architecture)."
6359 msgstr ""
6360
6361 #. type: textblock
6362 #: ../fish/guestfish-actions.pod:732
6363 msgid ""
6364 "The single parameter is an argv-style list of arguments.  The first element "
6365 "is the name of the program to run.  Subsequent elements are parameters.  The "
6366 "list must be non-empty (ie. must contain a program name).  Note that the "
6367 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6368 msgstr ""
6369
6370 #. type: textblock
6371 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6372 msgid "The return value is anything printed to I<stdout> by the command."
6373 msgstr ""
6374
6375 #. type: textblock
6376 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6377 msgid ""
6378 "If the command returns a non-zero exit status, then this function returns an "
6379 "error message.  The error message string is the content of I<stderr> from "
6380 "the command."
6381 msgstr ""
6382
6383 #. type: textblock
6384 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6385 msgid ""
6386 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6387 "bin>.  If you require a program from another location, you should provide "
6388 "the full path in the first parameter."
6389 msgstr ""
6390
6391 #. type: textblock
6392 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6393 msgid ""
6394 "Shared libraries and data files required by the program must be available on "
6395 "filesystems which are mounted in the correct places.  It is the caller's "
6396 "responsibility to ensure all filesystems that are needed are mounted at the "
6397 "right locations."
6398 msgstr ""
6399
6400 #. type: =head2
6401 #: ../fish/guestfish-actions.pod:760
6402 msgid "command-lines"
6403 msgstr ""
6404
6405 #. type: verbatim
6406 #: ../fish/guestfish-actions.pod:762
6407 #, no-wrap
6408 msgid ""
6409 " command-lines 'arguments ...'\n"
6410 "\n"
6411 msgstr ""
6412
6413 #. type: textblock
6414 #: ../fish/guestfish-actions.pod:764
6415 msgid ""
6416 "This is the same as L</command>, but splits the result into a list of lines."
6417 msgstr ""
6418
6419 #. type: textblock
6420 #: ../fish/guestfish-actions.pod:767
6421 msgid "See also: L</sh-lines>"
6422 msgstr ""
6423
6424 #. type: =head2
6425 #: ../fish/guestfish-actions.pod:772
6426 #, fuzzy
6427 #| msgid "pread-device"
6428 msgid "compress-device-out"
6429 msgstr "pread-device"
6430
6431 #. type: verbatim
6432 #: ../fish/guestfish-actions.pod:774
6433 #, no-wrap
6434 msgid ""
6435 " compress-device-out ctype device (zdevice|-) [level:..]\n"
6436 "\n"
6437 msgstr ""
6438
6439 #. type: textblock
6440 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
6441 msgid ""
6442 "This command compresses C<device> and writes it out to the local file "
6443 "C<zdevice>."
6444 msgstr ""
6445
6446 #. type: textblock
6447 #: ../fish/guestfish-actions.pod:779
6448 msgid ""
6449 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
6450 "compress-out>."
6451 msgstr ""
6452
6453 #. type: =head2
6454 #: ../fish/guestfish-actions.pod:786
6455 #, fuzzy
6456 #| msgid "copy-out"
6457 msgid "compress-out"
6458 msgstr "copy-out"
6459
6460 #. type: verbatim
6461 #: ../fish/guestfish-actions.pod:788
6462 #, no-wrap
6463 msgid ""
6464 " compress-out ctype file (zfile|-) [level:..]\n"
6465 "\n"
6466 msgstr ""
6467
6468 #. type: textblock
6469 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1218
6470 msgid ""
6471 "This command compresses C<file> and writes it out to the local file C<zfile>."
6472 msgstr ""
6473
6474 #. type: textblock
6475 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1221
6476 msgid ""
6477 "The compression program used is controlled by the C<ctype> parameter.  "
6478 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
6479 "Some compression types may not be supported by particular builds of "
6480 "libguestfs, in which case you will get an error containing the substring "
6481 "\"not supported\"."
6482 msgstr ""
6483
6484 #. type: textblock
6485 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1227
6486 msgid ""
6487 "The optional C<level> parameter controls compression level.  The meaning and "
6488 "default for this parameter depends on the compression program being used."
6489 msgstr ""
6490
6491 #. type: =head2
6492 #: ../fish/guestfish-actions.pod:807
6493 msgid "config"
6494 msgstr ""
6495
6496 #. type: verbatim
6497 #: ../fish/guestfish-actions.pod:809
6498 #, no-wrap
6499 msgid ""
6500 " config qemuparam qemuvalue\n"
6501 "\n"
6502 msgstr ""
6503
6504 #. type: textblock
6505 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1266
6506 msgid ""
6507 "This can be used to add arbitrary qemu command line parameters of the form "
6508 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6509 "setting some parameters which would interfere with parameters that we use."
6510 msgstr ""
6511
6512 #. type: textblock
6513 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1271
6514 msgid "The first character of C<param> string must be a C<-> (dash)."
6515 msgstr ""
6516
6517 #. type: textblock
6518 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1273
6519 msgid "C<value> can be NULL."
6520 msgstr ""
6521
6522 #. type: =head2
6523 #: ../fish/guestfish-actions.pod:820
6524 msgid "copy-size"
6525 msgstr ""
6526
6527 #. type: verbatim
6528 #: ../fish/guestfish-actions.pod:822
6529 #, no-wrap
6530 msgid ""
6531 " copy-size src dest size\n"
6532 "\n"
6533 msgstr ""
6534
6535 #. type: textblock
6536 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1287
6537 msgid ""
6538 "This command copies exactly C<size> bytes from one source device or file "
6539 "C<src> to another destination device or file C<dest>."
6540 msgstr ""
6541
6542 #. type: textblock
6543 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1290
6544 msgid ""
6545 "Note this will fail if the source is too short or if the destination is not "
6546 "large enough."
6547 msgstr ""
6548
6549 #. type: =head2
6550 #: ../fish/guestfish-actions.pod:830
6551 msgid "cp"
6552 msgstr "cp"
6553
6554 #. type: verbatim
6555 #: ../fish/guestfish-actions.pod:832
6556 #, no-wrap
6557 msgid ""
6558 " cp src dest\n"
6559 "\n"
6560 msgstr ""
6561
6562 #. type: textblock
6563 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1309
6564 msgid ""
6565 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6566 "destination filename or destination directory."
6567 msgstr ""
6568
6569 #. type: =head2
6570 #: ../fish/guestfish-actions.pod:837
6571 msgid "cp-a"
6572 msgstr "cp-a"
6573
6574 #. type: verbatim
6575 #: ../fish/guestfish-actions.pod:839
6576 #, no-wrap
6577 msgid ""
6578 " cp-a src dest\n"
6579 "\n"
6580 msgstr ""
6581
6582 #. type: textblock
6583 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1323
6584 msgid ""
6585 "This copies a file or directory from C<src> to C<dest> recursively using the "
6586 "C<cp -a> command."
6587 msgstr ""
6588
6589 #. type: =head2
6590 #: ../fish/guestfish-actions.pod:844
6591 msgid "dd"
6592 msgstr "dd"
6593
6594 #. type: verbatim
6595 #: ../fish/guestfish-actions.pod:846
6596 #, no-wrap
6597 msgid ""
6598 " dd src dest\n"
6599 "\n"
6600 msgstr ""
6601
6602 #. type: textblock
6603 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1337
6604 msgid ""
6605 "This command copies from one source device or file C<src> to another "
6606 "destination device or file C<dest>.  Normally you would use this to copy to "
6607 "or from a device or partition, for example to duplicate a filesystem."
6608 msgstr ""
6609
6610 #. type: textblock
6611 #: ../fish/guestfish-actions.pod:853
6612 msgid ""
6613 "If the destination is a device, it must be as large or larger than the "
6614 "source file or device, otherwise the copy will fail.  This command cannot do "
6615 "partial copies (see L</copy-size>)."
6616 msgstr ""
6617
6618 #. type: =head2
6619 #: ../fish/guestfish-actions.pod:857
6620 msgid "df"
6621 msgstr "df"
6622
6623 #. type: verbatim
6624 #: ../fish/guestfish-actions.pod:859
6625 #, no-wrap
6626 msgid ""
6627 " df\n"
6628 "\n"
6629 msgstr ""
6630 " df\n"
6631 "\n"
6632
6633 #. type: textblock
6634 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1355
6635 msgid "This command runs the C<df> command to report disk space used."
6636 msgstr ""
6637
6638 #. type: textblock
6639 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
6640 msgid ""
6641 "This command is mostly useful for interactive sessions.  It is I<not> "
6642 "intended that you try to parse the output string.  Use L</statvfs> from "
6643 "programs."
6644 msgstr ""
6645
6646 #. type: =head2
6647 #: ../fish/guestfish-actions.pod:867
6648 msgid "df-h"
6649 msgstr "df-h"
6650
6651 #. type: verbatim
6652 #: ../fish/guestfish-actions.pod:869
6653 #, no-wrap
6654 msgid ""
6655 " df-h\n"
6656 "\n"
6657 msgstr ""
6658 " df-h\n"
6659 "\n"
6660
6661 #. type: textblock
6662 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1371
6663 msgid ""
6664 "This command runs the C<df -h> command to report disk space used in human-"
6665 "readable format."
6666 msgstr ""
6667
6668 #. type: =head2
6669 #: ../fish/guestfish-actions.pod:878
6670 msgid "dmesg"
6671 msgstr "dmesg"
6672
6673 #. type: verbatim
6674 #: ../fish/guestfish-actions.pod:880
6675 #, no-wrap
6676 msgid ""
6677 " dmesg\n"
6678 "\n"
6679 msgstr ""
6680 " dmesg\n"
6681 "\n"
6682
6683 #. type: textblock
6684 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1388
6685 msgid ""
6686 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6687 "This is sometimes useful for extended debugging of problems."
6688 msgstr ""
6689
6690 #. type: textblock
6691 #: ../fish/guestfish-actions.pod:886
6692 msgid ""
6693 "Another way to get the same information is to enable verbose messages with "
6694 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6695 "before running the program."
6696 msgstr ""
6697
6698 #. type: =head2
6699 #: ../fish/guestfish-actions.pod:891
6700 msgid "download"
6701 msgstr "download"
6702
6703 #. type: verbatim
6704 #: ../fish/guestfish-actions.pod:893
6705 #, no-wrap
6706 msgid ""
6707 " download remotefilename (filename|-)\n"
6708 "\n"
6709 msgstr ""
6710
6711 #. type: textblock
6712 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908
6713 #: ../src/guestfs-actions.pod:1409 ../src/guestfs-actions.pod:1434
6714 msgid ""
6715 "Download file C<remotefilename> and save it as C<filename> on the local "
6716 "machine."
6717 msgstr ""
6718
6719 #. type: textblock
6720 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4887
6721 #: ../src/guestfs-actions.pod:1412 ../src/guestfs-actions.pod:7393
6722 msgid "C<filename> can also be a named pipe."
6723 msgstr ""
6724
6725 #. type: textblock
6726 #: ../fish/guestfish-actions.pod:900
6727 msgid "See also L</upload>, L</cat>."
6728 msgstr ""
6729
6730 #. type: =head2
6731 #: ../fish/guestfish-actions.pod:904
6732 msgid "download-offset"
6733 msgstr "download-offset"
6734
6735 #. type: verbatim
6736 #: ../fish/guestfish-actions.pod:906
6737 #, no-wrap
6738 msgid ""
6739 " download-offset remotefilename (filename|-) offset size\n"
6740 "\n"
6741 msgstr ""
6742
6743 #. type: textblock
6744 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1437
6745 msgid ""
6746 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6747 "region must be within the file or device)."
6748 msgstr ""
6749
6750 #. type: textblock
6751 #: ../fish/guestfish-actions.pod:914
6752 msgid ""
6753 "Note that there is no limit on the amount of data that can be downloaded "
6754 "with this call, unlike with L</pread>, and this call always reads the full "
6755 "amount unless an error occurs."
6756 msgstr ""
6757
6758 #. type: textblock
6759 #: ../fish/guestfish-actions.pod:919
6760 msgid "See also L</download>, L</pread>."
6761 msgstr ""
6762
6763 #. type: =head2
6764 #: ../fish/guestfish-actions.pod:923
6765 msgid "drop-caches"
6766 msgstr ""
6767
6768 #. type: verbatim
6769 #: ../fish/guestfish-actions.pod:925
6770 #, no-wrap
6771 msgid ""
6772 " drop-caches whattodrop\n"
6773 "\n"
6774 msgstr ""
6775
6776 #. type: textblock
6777 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1462
6778 msgid ""
6779 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6780 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6781 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6782 msgstr ""
6783
6784 #. type: textblock
6785 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1467
6786 msgid "Setting C<whattodrop> to 3 should drop everything."
6787 msgstr ""
6788
6789 #. type: textblock
6790 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1469
6791 msgid ""
6792 "This automatically calls L<sync(2)> before the operation, so that the "
6793 "maximum guest memory is freed."
6794 msgstr ""
6795
6796 #. type: =head2
6797 #: ../fish/guestfish-actions.pod:937
6798 msgid "du"
6799 msgstr "du"
6800
6801 #. type: verbatim
6802 #: ../fish/guestfish-actions.pod:939
6803 #, no-wrap
6804 msgid ""
6805 " du path\n"
6806 "\n"
6807 msgstr ""
6808 " du шлях\n"
6809 "\n"
6810
6811 #. type: textblock
6812 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1482
6813 msgid ""
6814 "This command runs the C<du -s> command to estimate file space usage for "
6815 "C<path>."
6816 msgstr ""
6817
6818 #. type: textblock
6819 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1485
6820 msgid ""
6821 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6822 "estimate includes the contents of the directory and all subdirectories "
6823 "(recursively)."
6824 msgstr ""
6825
6826 #. type: textblock
6827 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1489
6828 msgid ""
6829 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6830 msgstr ""
6831
6832 #. type: =head2
6833 #: ../fish/guestfish-actions.pod:951
6834 msgid "e2fsck-f"
6835 msgstr "e2fsck-f"
6836
6837 #. type: verbatim
6838 #: ../fish/guestfish-actions.pod:953
6839 #, no-wrap
6840 msgid ""
6841 " e2fsck-f device\n"
6842 "\n"
6843 msgstr ""
6844
6845 #. type: textblock
6846 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1507
6847 msgid ""
6848 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6849 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6850 "clean (I<-f>)."
6851 msgstr ""
6852
6853 #. type: textblock
6854 #: ../fish/guestfish-actions.pod:959
6855 msgid ""
6856 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6857 "should use L</fsck>."
6858 msgstr ""
6859
6860 #. type: =head2
6861 #: ../fish/guestfish-actions.pod:962
6862 msgid "echo-daemon"
6863 msgstr ""
6864
6865 #. type: verbatim
6866 #: ../fish/guestfish-actions.pod:964
6867 #, no-wrap
6868 msgid ""
6869 " echo-daemon 'words ...'\n"
6870 "\n"
6871 msgstr ""
6872
6873 #. type: textblock
6874 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1524
6875 msgid ""
6876 "This command concatenates the list of C<words> passed with single spaces "
6877 "between them and returns the resulting string."
6878 msgstr ""
6879
6880 #. type: textblock
6881 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1527
6882 msgid "You can use this command to test the connection through to the daemon."
6883 msgstr ""
6884
6885 #. type: textblock
6886 #: ../fish/guestfish-actions.pod:971
6887 msgid "See also L</ping-daemon>."
6888 msgstr ""
6889
6890 #. type: =head2
6891 #: ../fish/guestfish-actions.pod:973
6892 msgid "egrep"
6893 msgstr "egrep"
6894
6895 #. type: verbatim
6896 #: ../fish/guestfish-actions.pod:975
6897 #, no-wrap
6898 msgid ""
6899 " egrep regex path\n"
6900 "\n"
6901 msgstr ""
6902
6903 #. type: textblock
6904 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1543
6905 msgid ""
6906 "This calls the external C<egrep> program and returns the matching lines."
6907 msgstr ""
6908
6909 #. type: =head2
6910 #: ../fish/guestfish-actions.pod:983
6911 msgid "egrepi"
6912 msgstr "egrepi"
6913
6914 #. type: verbatim
6915 #: ../fish/guestfish-actions.pod:985
6916 #, no-wrap
6917 msgid ""
6918 " egrepi regex path\n"
6919 "\n"
6920 msgstr ""
6921
6922 #. type: textblock
6923 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1562
6924 msgid ""
6925 "This calls the external C<egrep -i> program and returns the matching lines."
6926 msgstr ""
6927
6928 #. type: =head2
6929 #: ../fish/guestfish-actions.pod:993
6930 msgid "equal"
6931 msgstr "equal"
6932
6933 #. type: verbatim
6934 #: ../fish/guestfish-actions.pod:995
6935 #, no-wrap
6936 msgid ""
6937 " equal file1 file2\n"
6938 "\n"
6939 msgstr ""
6940 " equal файл1 файл2\n"
6941 "\n"
6942
6943 #. type: textblock
6944 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1581
6945 msgid ""
6946 "This compares the two files C<file1> and C<file2> and returns true if their "
6947 "content is exactly equal, or false otherwise."
6948 msgstr ""
6949
6950 #. type: textblock
6951 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1584
6952 msgid "The external L<cmp(1)> program is used for the comparison."
6953 msgstr ""
6954
6955 #. type: =head2
6956 #: ../fish/guestfish-actions.pod:1002
6957 msgid "exists"
6958 msgstr "exists"
6959
6960 #. type: verbatim
6961 #: ../fish/guestfish-actions.pod:1004
6962 #, no-wrap
6963 msgid ""
6964 " exists path\n"
6965 "\n"
6966 msgstr ""
6967 " exists шлях\n"
6968 "\n"
6969
6970 #. type: textblock
6971 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1596
6972 msgid ""
6973 "This returns C<true> if and only if there is a file, directory (or anything) "
6974 "with the given C<path> name."
6975 msgstr ""
6976
6977 #. type: textblock
6978 #: ../fish/guestfish-actions.pod:1009
6979 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6980 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6981
6982 #. type: =head2
6983 #: ../fish/guestfish-actions.pod:1011
6984 msgid "fallocate"
6985 msgstr "fallocate"
6986
6987 #. type: verbatim
6988 #: ../fish/guestfish-actions.pod:1013
6989 #, no-wrap
6990 msgid ""
6991 " fallocate path len\n"
6992 "\n"
6993 msgstr ""
6994 " fallocate шлях довжина\n"
6995 "\n"
6996
6997 #. type: textblock
6998 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034
6999 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:1638
7000 msgid ""
7001 "This command preallocates a file (containing zero bytes) named C<path> of "
7002 "size C<len> bytes.  If the file exists already, it is overwritten."
7003 msgstr ""
7004
7005 #. type: textblock
7006 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1623
7007 msgid ""
7008 "Do not confuse this with the guestfish-specific C<alloc> command which "
7009 "allocates a file in the host and attaches it as a device."
7010 msgstr ""
7011
7012 #. type: textblock
7013 #: ../fish/guestfish-actions.pod:1023
7014 msgid ""
7015 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7016 "instead."
7017 msgstr ""
7018
7019 #. type: =head2
7020 #: ../fish/guestfish-actions.pod:1030
7021 msgid "fallocate64"
7022 msgstr "fallocate64"
7023
7024 #. type: verbatim
7025 #: ../fish/guestfish-actions.pod:1032
7026 #, no-wrap
7027 msgid ""
7028 " fallocate64 path len\n"
7029 "\n"
7030 msgstr ""
7031 " fallocate64 шлях довжина\n"
7032 "\n"
7033
7034 #. type: textblock
7035 #: ../fish/guestfish-actions.pod:1038
7036 msgid ""
7037 "Note that this call allocates disk blocks for the file.  To create a sparse "
7038 "file use L</truncate-size> instead."
7039 msgstr ""
7040
7041 #. type: textblock
7042 #: ../fish/guestfish-actions.pod:1041
7043 msgid ""
7044 "The deprecated call L</fallocate> does the same, but owing to an oversight "
7045 "it only allowed 30 bit lengths to be specified, effectively limiting the "
7046 "maximum size of files created through that call to 1GB."
7047 msgstr ""
7048
7049 #. type: textblock
7050 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1650
7051 msgid ""
7052 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7053 "commands which create a file in the host and attach it as a device."
7054 msgstr ""
7055
7056 #. type: =head2
7057 #: ../fish/guestfish-actions.pod:1050
7058 msgid "fgrep"
7059 msgstr "fgrep"
7060
7061 #. type: verbatim
7062 #: ../fish/guestfish-actions.pod:1052
7063 #, no-wrap
7064 msgid ""
7065 " fgrep pattern path\n"
7066 "\n"
7067 msgstr ""
7068 " fgrep шаблон шлях\n"
7069 "\n"
7070
7071 #. type: textblock
7072 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1665
7073 msgid ""
7074 "This calls the external C<fgrep> program and returns the matching lines."
7075 msgstr ""
7076
7077 #. type: =head2
7078 #: ../fish/guestfish-actions.pod:1060
7079 msgid "fgrepi"
7080 msgstr "fgrepi"
7081
7082 #. type: verbatim
7083 #: ../fish/guestfish-actions.pod:1062
7084 #, no-wrap
7085 msgid ""
7086 " fgrepi pattern path\n"
7087 "\n"
7088 msgstr ""
7089 " fgrepi шаблон шлях\n"
7090 "\n"
7091
7092 #. type: textblock
7093 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1684
7094 msgid ""
7095 "This calls the external C<fgrep -i> program and returns the matching lines."
7096 msgstr ""
7097
7098 #. type: =head2
7099 #: ../fish/guestfish-actions.pod:1070
7100 msgid "file"
7101 msgstr "file"
7102
7103 #. type: verbatim
7104 #: ../fish/guestfish-actions.pod:1072
7105 #, no-wrap
7106 msgid ""
7107 " file path\n"
7108 "\n"
7109 msgstr ""
7110 " file шлях\n"
7111 "\n"
7112
7113 #. type: textblock
7114 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1702
7115 msgid ""
7116 "This call uses the standard L<file(1)> command to determine the type or "
7117 "contents of the file."
7118 msgstr ""
7119
7120 #. type: textblock
7121 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1705
7122 msgid ""
7123 "This call will also transparently look inside various types of compressed "
7124 "file."
7125 msgstr ""
7126
7127 #. type: textblock
7128 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1708
7129 msgid ""
7130 "The exact command which runs is C<file -zb path>.  Note in particular that "
7131 "the filename is not prepended to the output (the I<-b> option)."
7132 msgstr ""
7133
7134 #. type: textblock
7135 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1712
7136 msgid ""
7137 "The output depends on the output of the underlying L<file(1)> command and it "
7138 "can change in future in ways beyond our control.  In other words, the output "
7139 "is not guaranteed by the ABI."
7140 msgstr ""
7141
7142 #. type: textblock
7143 #: ../fish/guestfish-actions.pod:1088
7144 msgid ""
7145 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7146 "(etc), L</is-zero>."
7147 msgstr ""
7148
7149 #. type: =head2
7150 #: ../fish/guestfish-actions.pod:1091
7151 msgid "file-architecture"
7152 msgstr "file-architecture"
7153
7154 #. type: verbatim
7155 #: ../fish/guestfish-actions.pod:1093
7156 #, no-wrap
7157 msgid ""
7158 " file-architecture filename\n"
7159 "\n"
7160 msgstr ""
7161 " file-architecture назва_файла\n"
7162 "\n"
7163
7164 #. type: textblock
7165 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1730
7166 msgid ""
7167 "This detects the architecture of the binary C<filename>, and returns it if "
7168 "known."
7169 msgstr ""
7170
7171 #. type: textblock
7172 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1733
7173 msgid "Currently defined architectures are:"
7174 msgstr ""
7175
7176 #. type: =item
7177 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1737
7178 msgid "\"i386\""
7179 msgstr "\"i386\""
7180
7181 #. type: textblock
7182 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1739
7183 msgid ""
7184 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7185 "irrespective of the precise processor requirements of the binary."
7186 msgstr ""
7187
7188 #. type: =item
7189 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1742
7190 msgid "\"x86_64\""
7191 msgstr "\"x86_64\""
7192
7193 #. type: textblock
7194 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1744
7195 msgid "64 bit x86-64."
7196 msgstr ""
7197
7198 #. type: =item
7199 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1746
7200 msgid "\"sparc\""
7201 msgstr ""
7202
7203 #. type: textblock
7204 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1748
7205 msgid "32 bit SPARC."
7206 msgstr ""
7207
7208 #. type: =item
7209 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1750
7210 msgid "\"sparc64\""
7211 msgstr ""
7212
7213 #. type: textblock
7214 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1752
7215 msgid "64 bit SPARC V9 and above."
7216 msgstr ""
7217
7218 #. type: =item
7219 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1754
7220 msgid "\"ia64\""
7221 msgstr "\"ia64\""
7222
7223 #. type: textblock
7224 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1756
7225 msgid "Intel Itanium."
7226 msgstr "Intel Itanium."
7227
7228 #. type: =item
7229 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1758
7230 msgid "\"ppc\""
7231 msgstr ""
7232
7233 #. type: textblock
7234 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1760
7235 msgid "32 bit Power PC."
7236 msgstr ""
7237
7238 #. type: =item
7239 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1762
7240 msgid "\"ppc64\""
7241 msgstr ""
7242
7243 #. type: textblock
7244 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1764
7245 msgid "64 bit Power PC."
7246 msgstr ""
7247
7248 #. type: textblock
7249 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1768
7250 msgid "Libguestfs may return other architecture strings in future."
7251 msgstr ""
7252
7253 #. type: textblock
7254 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1770
7255 msgid "The function works on at least the following types of files:"
7256 msgstr ""
7257
7258 #. type: textblock
7259 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1776
7260 msgid "many types of Un*x and Linux binary"
7261 msgstr ""
7262
7263 #. type: textblock
7264 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1780
7265 msgid "many types of Un*x and Linux shared library"
7266 msgstr ""
7267
7268 #. type: textblock
7269 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1784
7270 msgid "Windows Win32 and Win64 binaries"
7271 msgstr ""
7272
7273 #. type: textblock
7274 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1788
7275 msgid "Windows Win32 and Win64 DLLs"
7276 msgstr ""
7277
7278 #. type: textblock
7279 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1790
7280 msgid "Win32 binaries and DLLs return C<i386>."
7281 msgstr ""
7282
7283 #. type: textblock
7284 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1792
7285 msgid "Win64 binaries and DLLs return C<x86_64>."
7286 msgstr ""
7287
7288 #. type: textblock
7289 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1796
7290 msgid "Linux kernel modules"
7291 msgstr ""
7292
7293 #. type: textblock
7294 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1800
7295 msgid "Linux new-style initrd images"
7296 msgstr ""
7297
7298 #. type: textblock
7299 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1804
7300 msgid "some non-x86 Linux vmlinuz kernels"
7301 msgstr ""
7302
7303 #. type: textblock
7304 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1808
7305 msgid "What it can't do currently:"
7306 msgstr ""
7307
7308 #. type: textblock
7309 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1814
7310 msgid "static libraries (libfoo.a)"
7311 msgstr ""
7312
7313 #. type: textblock
7314 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1818
7315 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7316 msgstr ""
7317
7318 #. type: textblock
7319 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1822
7320 msgid "x86 Linux vmlinuz kernels"
7321 msgstr ""
7322
7323 #. type: textblock
7324 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1824
7325 msgid ""
7326 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7327 "compressed code, and are horribly hard to unpack.  If you want to find the "
7328 "architecture of a kernel, use the architecture of the associated initrd or "
7329 "kernel module(s) instead."
7330 msgstr ""
7331
7332 #. type: =head2
7333 #: ../fish/guestfish-actions.pod:1196
7334 msgid "filesize"
7335 msgstr "filesize"
7336
7337 #. type: verbatim
7338 #: ../fish/guestfish-actions.pod:1198
7339 #, no-wrap
7340 msgid ""
7341 " filesize file\n"
7342 "\n"
7343 msgstr ""
7344 " filesize файл\n"
7345 "\n"
7346
7347 #. type: textblock
7348 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1842
7349 msgid "This command returns the size of C<file> in bytes."
7350 msgstr ""
7351
7352 #. type: textblock
7353 #: ../fish/guestfish-actions.pod:1202
7354 msgid ""
7355 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7356 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
7357 msgstr ""
7358
7359 #. type: =head2
7360 #: ../fish/guestfish-actions.pod:1206
7361 msgid "fill"
7362 msgstr "fill"
7363
7364 #. type: verbatim
7365 #: ../fish/guestfish-actions.pod:1208
7366 #, no-wrap
7367 msgid ""
7368 " fill c len path\n"
7369 "\n"
7370 msgstr ""
7371
7372 #. type: textblock
7373 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1860
7374 msgid ""
7375 "This command creates a new file called C<path>.  The initial content of the "
7376 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7377 "[0..255]>."
7378 msgstr ""
7379
7380 #. type: textblock
7381 #: ../fish/guestfish-actions.pod:1214
7382 msgid ""
7383 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7384 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7385 "L</fill-pattern>."
7386 msgstr ""
7387
7388 #. type: =head2
7389 #: ../fish/guestfish-actions.pod:1219
7390 msgid "fill-pattern"
7391 msgstr "fill-pattern"
7392
7393 #. type: verbatim
7394 #: ../fish/guestfish-actions.pod:1221
7395 #, no-wrap
7396 msgid ""
7397 " fill-pattern pattern len path\n"
7398 "\n"
7399 msgstr ""
7400
7401 #. type: textblock
7402 #: ../fish/guestfish-actions.pod:1223
7403 msgid ""
7404 "This function is like L</fill> except that it creates a new file of length "
7405 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7406 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7407 "bytes."
7408 msgstr ""
7409
7410 #. type: =head2
7411 #: ../fish/guestfish-actions.pod:1228
7412 msgid "find"
7413 msgstr "find"
7414
7415 #. type: verbatim
7416 #: ../fish/guestfish-actions.pod:1230
7417 #, no-wrap
7418 msgid ""
7419 " find directory\n"
7420 "\n"
7421 msgstr ""
7422 " find каталог\n"
7423 "\n"
7424
7425 #. type: textblock
7426 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1906
7427 msgid ""
7428 "This command lists out all files and directories, recursively, starting at "
7429 "C<directory>.  It is essentially equivalent to running the shell command "
7430 "C<find directory -print> but some post-processing happens on the output, "
7431 "described below."
7432 msgstr ""
7433
7434 #. type: textblock
7435 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1911
7436 msgid ""
7437 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7438 "structure was:"
7439 msgstr ""
7440
7441 #. type: verbatim
7442 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1914
7443 #, no-wrap
7444 msgid ""
7445 " /tmp/a\n"
7446 " /tmp/b\n"
7447 " /tmp/c/d\n"
7448 "\n"
7449 msgstr ""
7450
7451 #. type: textblock
7452 #: ../fish/guestfish-actions.pod:1244
7453 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7454 msgstr ""
7455
7456 #. type: verbatim
7457 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1921
7458 #, no-wrap
7459 msgid ""
7460 " a\n"
7461 " b\n"
7462 " c\n"
7463 " c/d\n"
7464 "\n"
7465 msgstr ""
7466
7467 #. type: textblock
7468 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1926
7469 msgid "If C<directory> is not a directory, then this command returns an error."
7470 msgstr ""
7471
7472 #. type: textblock
7473 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1929
7474 msgid "The returned list is sorted."
7475 msgstr ""
7476
7477 #. type: textblock
7478 #: ../fish/guestfish-actions.pod:1257
7479 msgid "See also L</find0>."
7480 msgstr "Див. також L</find0>."
7481
7482 #. type: =head2
7483 #: ../fish/guestfish-actions.pod:1262
7484 msgid "find0"
7485 msgstr "find0"
7486
7487 #. type: verbatim
7488 #: ../fish/guestfish-actions.pod:1264
7489 #, no-wrap
7490 msgid ""
7491 " find0 directory (files|-)\n"
7492 "\n"
7493 msgstr ""
7494 " find0 каталог (файли|-)\n"
7495 "\n"
7496
7497 #. type: textblock
7498 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1949
7499 msgid ""
7500 "This command lists out all files and directories, recursively, starting at "
7501 "C<directory>, placing the resulting list in the external file called "
7502 "C<files>."
7503 msgstr ""
7504
7505 #. type: textblock
7506 #: ../fish/guestfish-actions.pod:1270
7507 msgid ""
7508 "This command works the same way as L</find> with the following exceptions:"
7509 msgstr ""
7510
7511 #. type: textblock
7512 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1960
7513 msgid "The resulting list is written to an external file."
7514 msgstr ""
7515
7516 #. type: textblock
7517 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1964
7518 msgid ""
7519 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7520 "L<find(1)> option I<-print0>."
7521 msgstr ""
7522
7523 #. type: textblock
7524 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1969
7525 msgid "This command is not limited in the number of names that it can return."
7526 msgstr ""
7527
7528 #. type: textblock
7529 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1974
7530 msgid "The result list is not sorted."
7531 msgstr ""
7532
7533 #. type: =head2
7534 #: ../fish/guestfish-actions.pod:1297
7535 msgid "findfs-label"
7536 msgstr "findfs-label"
7537
7538 #. type: verbatim
7539 #: ../fish/guestfish-actions.pod:1299
7540 #, no-wrap
7541 msgid ""
7542 " findfs-label label\n"
7543 "\n"
7544 msgstr ""
7545 " findfs-label мітка\n"
7546 "\n"
7547
7548 #. type: textblock
7549 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1988
7550 msgid ""
7551 "This command searches the filesystems and returns the one which has the "
7552 "given label.  An error is returned if no such filesystem can be found."
7553 msgstr ""
7554
7555 #. type: textblock
7556 #: ../fish/guestfish-actions.pod:1305
7557 msgid "To find the label of a filesystem, use L</vfs-label>."
7558 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7559
7560 #. type: =head2
7561 #: ../fish/guestfish-actions.pod:1307
7562 msgid "findfs-uuid"
7563 msgstr "findfs-uuid"
7564
7565 #. type: verbatim
7566 #: ../fish/guestfish-actions.pod:1309
7567 #, no-wrap
7568 msgid ""
7569 " findfs-uuid uuid\n"
7570 "\n"
7571 msgstr ""
7572 " findfs-uuid uuid\n"
7573 "\n"
7574
7575 #. type: textblock
7576 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2005
7577 msgid ""
7578 "This command searches the filesystems and returns the one which has the "
7579 "given UUID.  An error is returned if no such filesystem can be found."
7580 msgstr ""
7581
7582 #. type: textblock
7583 #: ../fish/guestfish-actions.pod:1315
7584 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7585 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7586
7587 #. type: =head2
7588 #: ../fish/guestfish-actions.pod:1317
7589 msgid "fsck"
7590 msgstr "fsck"
7591
7592 #. type: verbatim
7593 #: ../fish/guestfish-actions.pod:1319
7594 #, no-wrap
7595 msgid ""
7596 " fsck fstype device\n"
7597 "\n"
7598 msgstr ""
7599 " fsck тип_файлової_системи пристрій\n"
7600 "\n"
7601
7602 #. type: textblock
7603 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2023
7604 msgid ""
7605 "This runs the filesystem checker (fsck) on C<device> which should have "
7606 "filesystem type C<fstype>."
7607 msgstr ""
7608
7609 #. type: textblock
7610 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2026
7611 msgid ""
7612 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7613 "codes from C<fsck>."
7614 msgstr ""
7615
7616 #. type: textblock
7617 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2035
7618 msgid "Multiple status codes can be summed together."
7619 msgstr ""
7620
7621 #. type: textblock
7622 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2039
7623 msgid ""
7624 "A non-zero return code can mean \"success\", for example if errors have been "
7625 "corrected on the filesystem."
7626 msgstr ""
7627
7628 #. type: textblock
7629 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2044
7630 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7631 msgstr ""
7632
7633 #. type: textblock
7634 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2049
7635 msgid ""
7636 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7637 msgstr ""
7638
7639 #. type: =head2
7640 #: ../fish/guestfish-actions.pod:1349
7641 msgid "get-append"
7642 msgstr "get-append"
7643
7644 #. type: verbatim
7645 #: ../fish/guestfish-actions.pod:1351
7646 #, no-wrap
7647 msgid ""
7648 " get-append\n"
7649 "\n"
7650 msgstr ""
7651 " get-append\n"
7652 "\n"
7653
7654 #. type: textblock
7655 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2060
7656 msgid ""
7657 "Return the additional kernel options which are added to the guest kernel "
7658 "command line."
7659 msgstr ""
7660
7661 #. type: textblock
7662 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2063
7663 msgid "If C<NULL> then no options are added."
7664 msgstr ""
7665
7666 #. type: =head2
7667 #: ../fish/guestfish-actions.pod:1358
7668 msgid "get-attach-method"
7669 msgstr "get-attach-method"
7670
7671 #. type: verbatim
7672 #: ../fish/guestfish-actions.pod:1360
7673 #, no-wrap
7674 msgid ""
7675 " get-attach-method\n"
7676 "\n"
7677 msgstr ""
7678 " get-attach-method\n"
7679 "\n"
7680
7681 #. type: textblock
7682 #: ../fish/guestfish-actions.pod:1362
7683 msgid "Return the current attach method.  See L</set-attach-method>."
7684 msgstr ""
7685
7686 #. type: =head2
7687 #: ../fish/guestfish-actions.pod:1364
7688 msgid "get-autosync"
7689 msgstr "get-autosync"
7690
7691 #. type: verbatim
7692 #: ../fish/guestfish-actions.pod:1366
7693 #, no-wrap
7694 msgid ""
7695 " get-autosync\n"
7696 "\n"
7697 msgstr ""
7698 " get-autosync\n"
7699 "\n"
7700
7701 #. type: textblock
7702 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2088
7703 msgid "Get the autosync flag."
7704 msgstr ""
7705
7706 #. type: =head2
7707 #: ../fish/guestfish-actions.pod:1370
7708 msgid "get-direct"
7709 msgstr "get-direct"
7710
7711 #. type: verbatim
7712 #: ../fish/guestfish-actions.pod:1372
7713 #, no-wrap
7714 msgid ""
7715 " get-direct\n"
7716 "\n"
7717 msgstr ""
7718 " get-direct\n"
7719 "\n"
7720
7721 #. type: textblock
7722 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2099
7723 msgid "Return the direct appliance mode flag."
7724 msgstr ""
7725
7726 #. type: =head2
7727 #: ../fish/guestfish-actions.pod:1376
7728 msgid "get-e2label"
7729 msgstr "get-e2label"
7730
7731 #. type: verbatim
7732 #: ../fish/guestfish-actions.pod:1378
7733 #, no-wrap
7734 msgid ""
7735 " get-e2label device\n"
7736 "\n"
7737 msgstr ""
7738 " get-e2label пристрій\n"
7739 "\n"
7740
7741 #. type: textblock
7742 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2118
7743 msgid ""
7744 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7745 msgstr ""
7746
7747 #. type: textblock
7748 #: ../fish/guestfish-actions.pod:1383
7749 msgid ""
7750 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7751 "instead."
7752 msgstr ""
7753
7754 #. type: =head2
7755 #: ../fish/guestfish-actions.pod:1390
7756 msgid "get-e2uuid"
7757 msgstr "get-e2uuid"
7758
7759 #. type: verbatim
7760 #: ../fish/guestfish-actions.pod:1392
7761 #, no-wrap
7762 msgid ""
7763 " get-e2uuid device\n"
7764 "\n"
7765 msgstr ""
7766 " get-e2uuid пристрій\n"
7767 "\n"
7768
7769 #. type: textblock
7770 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2139
7771 msgid ""
7772 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7773 msgstr ""
7774
7775 #. type: textblock
7776 #: ../fish/guestfish-actions.pod:1397
7777 msgid ""
7778 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7779 "instead."
7780 msgstr ""
7781
7782 #. type: =head2
7783 #: ../fish/guestfish-actions.pod:1404
7784 msgid "get-memsize"
7785 msgstr "get-memsize"
7786
7787 #. type: verbatim
7788 #: ../fish/guestfish-actions.pod:1406
7789 #, no-wrap
7790 msgid ""
7791 " get-memsize\n"
7792 "\n"
7793 msgstr ""
7794 " get-memsize\n"
7795 "\n"
7796
7797 #. type: textblock
7798 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2152
7799 msgid ""
7800 "This gets the memory size in megabytes allocated to the qemu subprocess."
7801 msgstr ""
7802
7803 #. type: textblock
7804 #: ../fish/guestfish-actions.pod:1411
7805 msgid ""
7806 "If L</set-memsize> was not called on this handle, and if "
7807 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7808 "value for memsize."
7809 msgstr ""
7810
7811 #. type: textblock
7812 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472
7813 #: ../fish/guestfish-actions.pod:4235 ../fish/guestfish-actions.pod:4337
7814 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:2251
7815 #: ../src/guestfs-actions.pod:6440 ../src/guestfs-actions.pod:6566
7816 msgid ""
7817 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7818 msgstr ""
7819
7820 #. type: =head2
7821 #: ../fish/guestfish-actions.pod:1418
7822 msgid "get-network"
7823 msgstr "get-network"
7824
7825 #. type: verbatim
7826 #: ../fish/guestfish-actions.pod:1420
7827 #, no-wrap
7828 msgid ""
7829 " get-network\n"
7830 "\n"
7831 msgstr ""
7832 " get-network\n"
7833 "\n"
7834
7835 #. type: textblock
7836 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2171
7837 msgid "This returns the enable network flag."
7838 msgstr ""
7839
7840 #. type: =head2
7841 #: ../fish/guestfish-actions.pod:1424
7842 msgid "get-path"
7843 msgstr "get-path"
7844
7845 #. type: verbatim
7846 #: ../fish/guestfish-actions.pod:1426
7847 #, no-wrap
7848 msgid ""
7849 " get-path\n"
7850 "\n"
7851 msgstr ""
7852 " get-path\n"
7853 "\n"
7854
7855 #. type: textblock
7856 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2182
7857 msgid "Return the current search path."
7858 msgstr ""
7859
7860 #. type: textblock
7861 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2184
7862 msgid ""
7863 "This is always non-NULL.  If it wasn't set already, then this will return "
7864 "the default path."
7865 msgstr ""
7866
7867 #. type: =head2
7868 #: ../fish/guestfish-actions.pod:1433
7869 msgid "get-pgroup"
7870 msgstr ""
7871
7872 #. type: verbatim
7873 #: ../fish/guestfish-actions.pod:1435
7874 #, no-wrap
7875 msgid ""
7876 " get-pgroup\n"
7877 "\n"
7878 msgstr ""
7879
7880 #. type: textblock
7881 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2197
7882 msgid "This returns the process group flag."
7883 msgstr ""
7884
7885 #. type: =head2
7886 #: ../fish/guestfish-actions.pod:1439
7887 msgid "get-pid"
7888 msgstr "get-pid"
7889
7890 #. type: =head2
7891 #: ../fish/guestfish-actions.pod:1441
7892 msgid "pid"
7893 msgstr ""
7894
7895 #. type: verbatim
7896 #: ../fish/guestfish-actions.pod:1443
7897 #, no-wrap
7898 msgid ""
7899 " get-pid\n"
7900 "\n"
7901 msgstr ""
7902 " get-pid\n"
7903 "\n"
7904
7905 #. type: textblock
7906 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2208
7907 msgid ""
7908 "Return the process ID of the qemu subprocess.  If there is no qemu "
7909 "subprocess, then this will return an error."
7910 msgstr ""
7911
7912 #. type: textblock
7913 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2211
7914 msgid "This is an internal call used for debugging and testing."
7915 msgstr ""
7916
7917 #. type: =head2
7918 #: ../fish/guestfish-actions.pod:1450
7919 msgid "get-qemu"
7920 msgstr "get-qemu"
7921
7922 #. type: verbatim
7923 #: ../fish/guestfish-actions.pod:1452
7924 #, no-wrap
7925 msgid ""
7926 " get-qemu\n"
7927 "\n"
7928 msgstr ""
7929 " get-qemu\n"
7930 "\n"
7931
7932 #. type: textblock
7933 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2222
7934 msgid "Return the current qemu binary."
7935 msgstr ""
7936
7937 #. type: textblock
7938 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2224
7939 msgid ""
7940 "This is always non-NULL.  If it wasn't set already, then this will return "
7941 "the default qemu binary name."
7942 msgstr ""
7943
7944 #. type: =head2
7945 #: ../fish/guestfish-actions.pod:1459
7946 msgid "get-recovery-proc"
7947 msgstr "get-recovery-proc"
7948
7949 #. type: verbatim
7950 #: ../fish/guestfish-actions.pod:1461
7951 #, no-wrap
7952 msgid ""
7953 " get-recovery-proc\n"
7954 "\n"
7955 msgstr ""
7956 " get-recovery-proc\n"
7957 "\n"
7958
7959 #. type: textblock
7960 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2237
7961 msgid "Return the recovery process enabled flag."
7962 msgstr ""
7963
7964 #. type: =head2
7965 #: ../fish/guestfish-actions.pod:1465
7966 msgid "get-selinux"
7967 msgstr "get-selinux"
7968
7969 #. type: verbatim
7970 #: ../fish/guestfish-actions.pod:1467
7971 #, no-wrap
7972 msgid ""
7973 " get-selinux\n"
7974 "\n"
7975 msgstr ""
7976 " get-selinux\n"
7977 "\n"
7978
7979 #. type: textblock
7980 #: ../fish/guestfish-actions.pod:1469
7981 msgid ""
7982 "This returns the current setting of the selinux flag which is passed to the "
7983 "appliance at boot time.  See L</set-selinux>."
7984 msgstr ""
7985
7986 #. type: =head2
7987 #: ../fish/guestfish-actions.pod:1475
7988 #, fuzzy
7989 #| msgid "get-pid"
7990 msgid "get-smp"
7991 msgstr "get-pid"
7992
7993 #. type: verbatim
7994 #: ../fish/guestfish-actions.pod:1477
7995 #, fuzzy, no-wrap
7996 #| msgid ""
7997 #| " get-pid\n"
7998 #| "\n"
7999 msgid ""
8000 " get-smp\n"
8001 "\n"
8002 msgstr ""
8003 " get-pid\n"
8004 "\n"
8005
8006 #. type: textblock
8007 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2263
8008 msgid "This returns the number of virtual CPUs assigned to the appliance."
8009 msgstr ""
8010
8011 #. type: =head2
8012 #: ../fish/guestfish-actions.pod:1481
8013 msgid "get-state"
8014 msgstr "get-state"
8015
8016 #. type: verbatim
8017 #: ../fish/guestfish-actions.pod:1483
8018 #, no-wrap
8019 msgid ""
8020 " get-state\n"
8021 "\n"
8022 msgstr ""
8023 " get-state\n"
8024 "\n"
8025
8026 #. type: textblock
8027 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2272
8028 msgid ""
8029 "This returns the current state as an opaque integer.  This is only useful "
8030 "for printing debug and internal error messages."
8031 msgstr ""
8032
8033 #. type: textblock
8034 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2434
8035 #: ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2490
8036 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:2275
8037 #: ../src/guestfs-actions.pod:3581 ../src/guestfs-actions.pod:3610
8038 #: ../src/guestfs-actions.pod:3671 ../src/guestfs-actions.pod:3698
8039 msgid "For more information on states, see L<guestfs(3)>."
8040 msgstr ""
8041
8042 #. type: =head2
8043 #: ../fish/guestfish-actions.pod:1490
8044 msgid "get-trace"
8045 msgstr "get-trace"
8046
8047 #. type: verbatim
8048 #: ../fish/guestfish-actions.pod:1492
8049 #, no-wrap
8050 msgid ""
8051 " get-trace\n"
8052 "\n"
8053 msgstr ""
8054 " get-trace\n"
8055 "\n"
8056
8057 #. type: textblock
8058 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2286
8059 msgid "Return the command trace flag."
8060 msgstr ""
8061
8062 #. type: =head2
8063 #: ../fish/guestfish-actions.pod:1496
8064 msgid "get-umask"
8065 msgstr "get-umask"
8066
8067 #. type: verbatim
8068 #: ../fish/guestfish-actions.pod:1498
8069 #, no-wrap
8070 msgid ""
8071 " get-umask\n"
8072 "\n"
8073 msgstr ""
8074 " get-umask\n"
8075 "\n"
8076
8077 #. type: textblock
8078 #: ../fish/guestfish-actions.pod:1500
8079 msgid ""
8080 "Return the current umask.  By default the umask is C<022> unless it has been "
8081 "set by calling L</umask>."
8082 msgstr ""
8083
8084 #. type: =head2
8085 #: ../fish/guestfish-actions.pod:1503
8086 msgid "get-verbose"
8087 msgstr "get-verbose"
8088
8089 #. type: verbatim
8090 #: ../fish/guestfish-actions.pod:1505
8091 #, no-wrap
8092 msgid ""
8093 " get-verbose\n"
8094 "\n"
8095 msgstr ""
8096 " get-verbose\n"
8097 "\n"
8098
8099 #. type: textblock
8100 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2309
8101 msgid "This returns the verbose messages flag."
8102 msgstr ""
8103
8104 #. type: =head2
8105 #: ../fish/guestfish-actions.pod:1509
8106 msgid "getcon"
8107 msgstr "getcon"
8108
8109 #. type: verbatim
8110 #: ../fish/guestfish-actions.pod:1511
8111 #, no-wrap
8112 msgid ""
8113 " getcon\n"
8114 "\n"
8115 msgstr ""
8116 " getcon\n"
8117 "\n"
8118
8119 #. type: textblock
8120 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2320
8121 msgid "This gets the SELinux security context of the daemon."
8122 msgstr ""
8123
8124 #. type: textblock
8125 #: ../fish/guestfish-actions.pod:1515
8126 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
8127 msgstr ""
8128
8129 #. type: =head2
8130 #: ../fish/guestfish-actions.pod:1518
8131 msgid "getxattr"
8132 msgstr "getxattr"
8133
8134 #. type: verbatim
8135 #: ../fish/guestfish-actions.pod:1520
8136 #, no-wrap
8137 msgid ""
8138 " getxattr path name\n"
8139 "\n"
8140 msgstr ""
8141 " getxattr шлях назва\n"
8142 "\n"
8143
8144 #. type: textblock
8145 #: ../fish/guestfish-actions.pod:1522
8146 msgid ""
8147 "Get a single extended attribute from file C<path> named C<name>.  This call "
8148 "follows symlinks.  If you want to lookup an extended attribute for the "
8149 "symlink itself, use L</lgetxattr>."
8150 msgstr ""
8151
8152 #. type: textblock
8153 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
8154 msgid ""
8155 "Normally it is better to get all extended attributes from a file in one go "
8156 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
8157 "buggy and do not provide a way to list out attributes.  For these "
8158 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
8159 "attributes you want in advance and call this function."
8160 msgstr ""
8161
8162 #. type: textblock
8163 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586
8164 #: ../src/guestfs-actions.pod:2349 ../src/guestfs-actions.pod:3831
8165 msgid ""
8166 "Extended attribute values are blobs of binary data.  If there is no extended "
8167 "attribute named C<name>, this returns an error."
8168 msgstr ""
8169
8170 #. type: textblock
8171 #: ../fish/guestfish-actions.pod:1536
8172 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8173 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8174
8175 #. type: =head2
8176 #: ../fish/guestfish-actions.pod:1538
8177 msgid "getxattrs"
8178 msgstr "getxattrs"
8179
8180 #. type: verbatim
8181 #: ../fish/guestfish-actions.pod:1540
8182 #, no-wrap
8183 msgid ""
8184 " getxattrs path\n"
8185 "\n"
8186 msgstr ""
8187 " getxattrs шлях\n"
8188 "\n"
8189
8190 #. type: textblock
8191 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2366
8192 msgid ""
8193 "This call lists the extended attributes of the file or directory C<path>."
8194 msgstr ""
8195
8196 #. type: textblock
8197 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2369
8198 msgid ""
8199 "At the system call level, this is a combination of the L<listxattr(2)> and "
8200 "L<getxattr(2)> calls."
8201 msgstr ""
8202
8203 #. type: textblock
8204 #: ../fish/guestfish-actions.pod:1548
8205 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8206 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
8207
8208 #. type: =head2
8209 #: ../fish/guestfish-actions.pod:1550
8210 msgid "glob-expand"
8211 msgstr "glob-expand"
8212
8213 #. type: verbatim
8214 #: ../fish/guestfish-actions.pod:1552
8215 #, no-wrap
8216 msgid ""
8217 " glob-expand pattern\n"
8218 "\n"
8219 msgstr ""
8220 " glob-expand шаблон\n"
8221 "\n"
8222
8223 #. type: textblock
8224 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2386
8225 msgid ""
8226 "This command searches for all the pathnames matching C<pattern> according to "
8227 "the wildcard expansion rules used by the shell."
8228 msgstr ""
8229
8230 #. type: textblock
8231 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2390
8232 msgid ""
8233 "If no paths match, then this returns an empty list (note: not an error)."
8234 msgstr ""
8235
8236 #. type: textblock
8237 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2393
8238 msgid ""
8239 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8240 "GLOB_BRACE>.  See that manual page for more details."
8241 msgstr ""
8242
8243 #. type: =head2
8244 #: ../fish/guestfish-actions.pod:1565
8245 msgid "grep"
8246 msgstr "grep"
8247
8248 #. type: verbatim
8249 #: ../fish/guestfish-actions.pod:1567
8250 #, no-wrap
8251 msgid ""
8252 " grep regex path\n"
8253 "\n"
8254 msgstr ""
8255 " grepi формальний_вираз шлях\n"
8256 "\n"
8257
8258 #. type: textblock
8259 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2410
8260 msgid "This calls the external C<grep> program and returns the matching lines."
8261 msgstr ""
8262
8263 #. type: =head2
8264 #: ../fish/guestfish-actions.pod:1575
8265 msgid "grepi"
8266 msgstr "grepi"
8267
8268 #. type: verbatim
8269 #: ../fish/guestfish-actions.pod:1577
8270 #, no-wrap
8271 msgid ""
8272 " grepi regex path\n"
8273 "\n"
8274 msgstr ""
8275 " grepi формальний_вираз шлях\n"
8276 "\n"
8277
8278 #. type: textblock
8279 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2429
8280 msgid ""
8281 "This calls the external C<grep -i> program and returns the matching lines."
8282 msgstr ""
8283
8284 #. type: =head2
8285 #: ../fish/guestfish-actions.pod:1585
8286 msgid "grub-install"
8287 msgstr "grub-install"
8288
8289 #. type: verbatim
8290 #: ../fish/guestfish-actions.pod:1587
8291 #, no-wrap
8292 msgid ""
8293 " grub-install root device\n"
8294 "\n"
8295 msgstr ""
8296 " grub-install кореневий пристрій\n"
8297 "\n"
8298
8299 #. type: textblock
8300 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2448
8301 msgid ""
8302 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8303 "with the root directory being C<root>."
8304 msgstr ""
8305
8306 #. type: textblock
8307 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2457
8308 msgid ""
8309 "There is currently no way in the API to install grub2, which is used by most "
8310 "modern Linux guests.  It is possible to run the grub2 command from the "
8311 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8312 msgstr ""
8313
8314 #. type: textblock
8315 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2464
8316 msgid ""
8317 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
8318 "compatible with itself, so this only works in rather narrow circumstances.  "
8319 "Careful testing with each guest version is advisable."
8320 msgstr ""
8321
8322 #. type: textblock
8323 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2471
8324 msgid ""
8325 "If grub-install reports the error \"No suitable drive was found in the "
8326 "generated device map.\" it may be that you need to create a C</boot/grub/"
8327 "device.map> file first that contains the mapping between grub device names "
8328 "and Linux device names.  It is usually sufficient to create a file "
8329 "containing:"
8330 msgstr ""
8331
8332 #. type: verbatim
8333 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2478
8334 #, no-wrap
8335 msgid ""
8336 " (hd0) /dev/vda\n"
8337 "\n"
8338 msgstr ""
8339
8340 #. type: textblock
8341 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2480
8342 msgid "replacing C</dev/vda> with the name of the installation device."
8343 msgstr ""
8344
8345 #. type: =head2
8346 #: ../fish/guestfish-actions.pod:1625
8347 msgid "head"
8348 msgstr "head"
8349
8350 #. type: verbatim
8351 #: ../fish/guestfish-actions.pod:1627
8352 #, no-wrap
8353 msgid ""
8354 " head path\n"
8355 "\n"
8356 msgstr ""
8357 " head шлях\n"
8358 "\n"
8359
8360 #. type: textblock
8361 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2494
8362 msgid ""
8363 "This command returns up to the first 10 lines of a file as a list of strings."
8364 msgstr ""
8365
8366 #. type: =head2
8367 #: ../fish/guestfish-actions.pod:1635
8368 msgid "head-n"
8369 msgstr "head-n"
8370
8371 #. type: verbatim
8372 #: ../fish/guestfish-actions.pod:1637
8373 #, no-wrap
8374 msgid ""
8375 " head-n nrlines path\n"
8376 "\n"
8377 msgstr ""
8378
8379 #. type: textblock
8380 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2513
8381 msgid ""
8382 "If the parameter C<nrlines> is a positive number, this returns the first "
8383 "C<nrlines> lines of the file C<path>."
8384 msgstr ""
8385
8386 #. type: textblock
8387 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2516
8388 msgid ""
8389 "If the parameter C<nrlines> is a negative number, this returns lines from "
8390 "the file C<path>, excluding the last C<nrlines> lines."
8391 msgstr ""
8392
8393 #. type: textblock
8394 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4727
8395 #: ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:7152
8396 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8397 msgstr ""
8398
8399 #. type: =head2
8400 #: ../fish/guestfish-actions.pod:1650
8401 msgid "hexdump"
8402 msgstr "hexdump"
8403
8404 #. type: verbatim
8405 #: ../fish/guestfish-actions.pod:1652
8406 #, no-wrap
8407 msgid ""
8408 " hexdump path\n"
8409 "\n"
8410 msgstr ""
8411 " hexdump шлях\n"
8412 "\n"
8413
8414 #. type: textblock
8415 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2536
8416 msgid ""
8417 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8418 "readable, canonical hex dump of the file."
8419 msgstr ""
8420
8421 #. type: =head2
8422 #: ../fish/guestfish-actions.pod:1660
8423 msgid "initrd-cat"
8424 msgstr "initrd-cat"
8425
8426 #. type: verbatim
8427 #: ../fish/guestfish-actions.pod:1662
8428 #, no-wrap
8429 msgid ""
8430 " initrd-cat initrdpath filename\n"
8431 "\n"
8432 msgstr ""
8433 " initrd-cat шлях_initrd назва_файла\n"
8434 "\n"
8435
8436 #. type: textblock
8437 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2555
8438 msgid ""
8439 "This command unpacks the file C<filename> from the initrd file called "
8440 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8441 "character."
8442 msgstr ""
8443
8444 #. type: textblock
8445 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2559
8446 msgid ""
8447 "For example, in guestfish you could use the following command to examine the "
8448 "boot script (usually called C</init>)  contained in a Linux initrd or "
8449 "initramfs image:"
8450 msgstr ""
8451
8452 #. type: verbatim
8453 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2563
8454 #, no-wrap
8455 msgid ""
8456 " initrd-cat /boot/initrd-<version>.img init\n"
8457 "\n"
8458 msgstr ""
8459
8460 #. type: textblock
8461 #: ../fish/guestfish-actions.pod:1674
8462 msgid "See also L</initrd-list>."
8463 msgstr "Див. також L</initrd-list>."
8464
8465 #. type: =head2
8466 #: ../fish/guestfish-actions.pod:1679
8467 msgid "initrd-list"
8468 msgstr "initrd-list"
8469
8470 #. type: verbatim
8471 #: ../fish/guestfish-actions.pod:1681
8472 #, no-wrap
8473 msgid ""
8474 " initrd-list path\n"
8475 "\n"
8476 msgstr ""
8477 " initrd-list шлях\n"
8478 "\n"
8479
8480 #. type: textblock
8481 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2582
8482 msgid "This command lists out files contained in an initrd."
8483 msgstr ""
8484
8485 #. type: textblock
8486 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2584
8487 msgid ""
8488 "The files are listed without any initial C</> character.  The files are "
8489 "listed in the order they appear (not necessarily alphabetical).  Directory "
8490 "names are listed as separate items."
8491 msgstr ""
8492
8493 #. type: textblock
8494 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2588
8495 msgid ""
8496 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8497 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8498 "files)."
8499 msgstr ""
8500
8501 #. type: =head2
8502 #: ../fish/guestfish-actions.pod:1693
8503 msgid "inotify-add-watch"
8504 msgstr "inotify-add-watch"
8505
8506 #. type: verbatim
8507 #: ../fish/guestfish-actions.pod:1695
8508 #, no-wrap
8509 msgid ""
8510 " inotify-add-watch path mask\n"
8511 "\n"
8512 msgstr ""
8513 " inotify-add-watch шлях маска\n"
8514 "\n"
8515
8516 #. type: textblock
8517 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2605
8518 msgid "Watch C<path> for the events listed in C<mask>."
8519 msgstr ""
8520
8521 #. type: textblock
8522 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2607
8523 msgid ""
8524 "Note that if C<path> is a directory then events within that directory are "
8525 "watched, but this does I<not> happen recursively (in subdirectories)."
8526 msgstr ""
8527
8528 #. type: textblock
8529 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2611
8530 msgid ""
8531 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8532 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8533 msgstr ""
8534
8535 #. type: =head2
8536 #: ../fish/guestfish-actions.pod:1707
8537 msgid "inotify-close"
8538 msgstr "inotify-close"
8539
8540 #. type: verbatim
8541 #: ../fish/guestfish-actions.pod:1709
8542 #, no-wrap
8543 msgid ""
8544 " inotify-close\n"
8545 "\n"
8546 msgstr ""
8547 " inotify-close\n"
8548 "\n"
8549
8550 #. type: textblock
8551 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2624
8552 msgid ""
8553 "This closes the inotify handle which was previously opened by inotify_init.  "
8554 "It removes all watches, throws away any pending events, and deallocates all "
8555 "resources."
8556 msgstr ""
8557
8558 #. type: =head2
8559 #: ../fish/guestfish-actions.pod:1715
8560 msgid "inotify-files"
8561 msgstr "inotify-files"
8562
8563 #. type: verbatim
8564 #: ../fish/guestfish-actions.pod:1717
8565 #, no-wrap
8566 msgid ""
8567 " inotify-files\n"
8568 "\n"
8569 msgstr ""
8570 " inotify-files\n"
8571 "\n"
8572
8573 #. type: textblock
8574 #: ../fish/guestfish-actions.pod:1719
8575 msgid ""
8576 "This function is a helpful wrapper around L</inotify-read> which just "
8577 "returns a list of pathnames of objects that were touched.  The returned "
8578 "pathnames are sorted and deduplicated."
8579 msgstr ""
8580
8581 #. type: =head2
8582 #: ../fish/guestfish-actions.pod:1723
8583 msgid "inotify-init"
8584 msgstr "inotify-init"
8585
8586 #. type: verbatim
8587 #: ../fish/guestfish-actions.pod:1725
8588 #, no-wrap
8589 msgid ""
8590 " inotify-init maxevents\n"
8591 "\n"
8592 msgstr ""
8593
8594 #. type: textblock
8595 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2653
8596 msgid ""
8597 "This command creates a new inotify handle.  The inotify subsystem can be "
8598 "used to notify events which happen to objects in the guest filesystem."
8599 msgstr ""
8600
8601 #. type: textblock
8602 #: ../fish/guestfish-actions.pod:1731
8603 msgid ""
8604 "C<maxevents> is the maximum number of events which will be queued up between "
8605 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8606 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8607 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8608 "but records the fact that it threw them away by setting a flag "
8609 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8610 msgstr ""
8611
8612 #. type: textblock
8613 #: ../fish/guestfish-actions.pod:1741
8614 msgid ""
8615 "Before any events are generated, you have to add some watches to the "
8616 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8617 "L</inotify-watch-all>."
8618 msgstr ""
8619
8620 #. type: textblock
8621 #: ../fish/guestfish-actions.pod:1747
8622 msgid ""
8623 "Queued up events should be read periodically by calling L</inotify-read> (or "
8624 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8625 "If you don't read the events out often enough then you risk the internal "
8626 "queue overflowing."
8627 msgstr ""
8628
8629 #. type: textblock
8630 #: ../fish/guestfish-actions.pod:1754
8631 msgid ""
8632 "The handle should be closed after use by calling L</inotify-close>.  This "
8633 "also removes any watches automatically."
8634 msgstr ""
8635
8636 #. type: textblock
8637 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2684
8638 msgid ""
8639 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8640 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8641 "that there is one global inotify handle per libguestfs instance."
8642 msgstr ""
8643
8644 #. type: =head2
8645 #: ../fish/guestfish-actions.pod:1763
8646 msgid "inotify-read"
8647 msgstr "inotify-read"
8648
8649 #. type: verbatim
8650 #: ../fish/guestfish-actions.pod:1765
8651 #, no-wrap
8652 msgid ""
8653 " inotify-read\n"
8654 "\n"
8655 msgstr ""
8656 " inotify-read\n"
8657 "\n"
8658
8659 #. type: textblock
8660 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2698
8661 msgid ""
8662 "Return the complete queue of events that have happened since the previous "
8663 "read call."
8664 msgstr ""
8665
8666 #. type: textblock
8667 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2701
8668 msgid "If no events have happened, this returns an empty list."
8669 msgstr ""
8670
8671 #. type: textblock
8672 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2703
8673 msgid ""
8674 "I<Note>: In order to make sure that all events have been read, you must call "
8675 "this function repeatedly until it returns an empty list.  The reason is that "
8676 "the call will read events up to the maximum appliance-to-host message size "
8677 "and leave remaining events in the queue."
8678 msgstr ""
8679
8680 #. type: =head2
8681 #: ../fish/guestfish-actions.pod:1778
8682 msgid "inotify-rm-watch"
8683 msgstr "inotify-rm-watch"
8684
8685 #. type: verbatim
8686 #: ../fish/guestfish-actions.pod:1780
8687 #, no-wrap
8688 msgid ""
8689 " inotify-rm-watch wd\n"
8690 "\n"
8691 msgstr ""
8692
8693 #. type: textblock
8694 #: ../fish/guestfish-actions.pod:1782
8695 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8696 msgstr ""
8697
8698 #. type: =head2
8699 #: ../fish/guestfish-actions.pod:1785
8700 msgid "inspect-get-arch"
8701 msgstr "inspect-get-arch"
8702
8703 #. type: verbatim
8704 #: ../fish/guestfish-actions.pod:1787
8705 #, no-wrap
8706 msgid ""
8707 " inspect-get-arch root\n"
8708 "\n"
8709 msgstr ""
8710 " inspect-get-arch корінь\n"
8711 "\n"
8712
8713 #. type: textblock
8714 #: ../fish/guestfish-actions.pod:1789
8715 msgid ""
8716 "This returns the architecture of the inspected operating system.  The "
8717 "possible return values are listed under L</file-architecture>."
8718 msgstr ""
8719
8720 #. type: textblock
8721 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2738
8722 msgid ""
8723 "If the architecture could not be determined, then the string C<unknown> is "
8724 "returned."
8725 msgstr ""
8726
8727 #. type: textblock
8728 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1883
8729 #: ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1974
8730 #: ../fish/guestfish-actions.pod:2058 ../fish/guestfish-actions.pod:2119
8731 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2154
8732 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2226
8733 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252
8734 #: ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:2272
8735 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2380
8736 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:2741
8737 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2939
8738 #: ../src/guestfs-actions.pod:2958 ../src/guestfs-actions.pod:3089
8739 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3200
8740 #: ../src/guestfs-actions.pod:3221 ../src/guestfs-actions.pod:3274
8741 #: ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3334
8742 #: ../src/guestfs-actions.pod:3354 ../src/guestfs-actions.pod:3371
8743 #: ../src/guestfs-actions.pod:3387 ../src/guestfs-actions.pod:3405
8744 #: ../src/guestfs-actions.pod:3507 ../src/guestfs-actions.pod:3548
8745 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8746 msgstr ""
8747
8748 #. type: =head2
8749 #: ../fish/guestfish-actions.pod:1798
8750 msgid "inspect-get-distro"
8751 msgstr "inspect-get-distro"
8752
8753 #. type: verbatim
8754 #: ../fish/guestfish-actions.pod:1800
8755 #, no-wrap
8756 msgid ""
8757 " inspect-get-distro root\n"
8758 "\n"
8759 msgstr ""
8760 " inspect-get-distro корінь\n"
8761 "\n"
8762
8763 #. type: textblock
8764 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2754
8765 msgid ""
8766 "This returns the distro (distribution) of the inspected operating system."
8767 msgstr ""
8768
8769 #. type: textblock
8770 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2757
8771 msgid "Currently defined distros are:"
8772 msgstr ""
8773
8774 #. type: =item
8775 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2761
8776 msgid "\"archlinux\""
8777 msgstr "\"archlinux\""
8778
8779 #. type: textblock
8780 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2763
8781 msgid "Arch Linux."
8782 msgstr "Arch Linux."
8783
8784 #. type: =item
8785 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2765
8786 msgid "\"centos\""
8787 msgstr ""
8788
8789 #. type: textblock
8790 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2767
8791 msgid "CentOS."
8792 msgstr ""
8793
8794 #. type: =item
8795 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2769
8796 msgid "\"debian\""
8797 msgstr "\"debian\""
8798
8799 #. type: textblock
8800 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2771
8801 msgid "Debian."
8802 msgstr "Debian."
8803
8804 #. type: =item
8805 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2773
8806 msgid "\"fedora\""
8807 msgstr "\"fedora\""
8808
8809 #. type: textblock
8810 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2775
8811 msgid "Fedora."
8812 msgstr "Fedora."
8813
8814 #. type: =item
8815 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2777
8816 msgid "\"gentoo\""
8817 msgstr "\"gentoo\""
8818
8819 #. type: textblock
8820 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2779
8821 msgid "Gentoo."
8822 msgstr "Gentoo."
8823
8824 #. type: =item
8825 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2781
8826 msgid "\"linuxmint\""
8827 msgstr "\"linuxmint\""
8828
8829 #. type: textblock
8830 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2783
8831 msgid "Linux Mint."
8832 msgstr "Linux Mint."
8833
8834 #. type: =item
8835 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2785
8836 msgid "\"mandriva\""
8837 msgstr "\"mandriva\""
8838
8839 #. type: textblock
8840 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2787
8841 msgid "Mandriva."
8842 msgstr "Mandriva."
8843
8844 #. type: =item
8845 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2789
8846 msgid "\"meego\""
8847 msgstr "\"meego\""
8848
8849 #. type: textblock
8850 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2791
8851 msgid "MeeGo."
8852 msgstr "MeeGo."
8853
8854 #. type: =item
8855 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2793
8856 msgid "\"pardus\""
8857 msgstr "\"pardus\""
8858
8859 #. type: textblock
8860 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2795
8861 msgid "Pardus."
8862 msgstr "Pardus."
8863
8864 #. type: =item
8865 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2797
8866 msgid "\"redhat-based\""
8867 msgstr "\"redhat-based\""
8868
8869 #. type: textblock
8870 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2799
8871 msgid "Some Red Hat-derived distro."
8872 msgstr "Дистрибутив, що походить від Red Hat."
8873
8874 #. type: =item
8875 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2801
8876 msgid "\"rhel\""
8877 msgstr "\"rhel\""
8878
8879 #. type: textblock
8880 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2803
8881 msgid "Red Hat Enterprise Linux."
8882 msgstr ""
8883
8884 #. type: =item
8885 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2805
8886 msgid "\"scientificlinux\""
8887 msgstr ""
8888
8889 #. type: textblock
8890 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2807
8891 msgid "Scientific Linux."
8892 msgstr ""
8893
8894 #. type: =item
8895 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2809
8896 msgid "\"slackware\""
8897 msgstr ""
8898
8899 #. type: textblock
8900 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2811
8901 msgid "Slackware."
8902 msgstr ""
8903
8904 #. type: =item
8905 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2813
8906 #, fuzzy
8907 #| msgid "\"linux\""
8908 msgid "\"ttylinux\""
8909 msgstr "\"linux\""
8910
8911 #. type: textblock
8912 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2815
8913 #, fuzzy
8914 #| msgid "\"linux\""
8915 msgid "ttylinux."
8916 msgstr "\"linux\""
8917
8918 #. type: =item
8919 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2817
8920 msgid "\"ubuntu\""
8921 msgstr "\"ubuntu\""
8922
8923 #. type: textblock
8924 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2819
8925 msgid "Ubuntu."
8926 msgstr "Ubuntu."
8927
8928 #. type: =item
8929 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953
8930 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2821
8931 #: ../src/guestfs-actions.pod:2930 ../src/guestfs-actions.pod:3305
8932 msgid "\"unknown\""
8933 msgstr "\"unknown\""
8934
8935 #. type: textblock
8936 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2823
8937 msgid "The distro could not be determined."
8938 msgstr "Дистрибутив, тип якого не вдалося визначити."
8939
8940 #. type: =item
8941 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209
8942 #: ../src/guestfs-actions.pod:2825 ../src/guestfs-actions.pod:3297
8943 msgid "\"windows\""
8944 msgstr "\"windows\""
8945
8946 #. type: textblock
8947 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2827
8948 msgid ""
8949 "Windows does not have distributions.  This string is returned if the OS type "
8950 "is Windows."
8951 msgstr ""
8952
8953 #. type: textblock
8954 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959
8955 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2832
8956 #: ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
8957 msgid ""
8958 "Future versions of libguestfs may return other strings here.  The caller "
8959 "should be prepared to handle any string."
8960 msgstr ""
8961
8962 #. type: =head2
8963 #: ../fish/guestfish-actions.pod:1885
8964 msgid "inspect-get-drive-mappings"
8965 msgstr ""
8966
8967 #. type: verbatim
8968 #: ../fish/guestfish-actions.pod:1887
8969 #, no-wrap
8970 msgid ""
8971 " inspect-get-drive-mappings root\n"
8972 "\n"
8973 msgstr ""
8974
8975 #. type: textblock
8976 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2848
8977 msgid ""
8978 "This call is useful for Windows which uses a primitive system of assigning "
8979 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8980 "Windows Registry to find out how disks/partitions are mapped to drive "
8981 "letters, and returns a hash table as in the example below:"
8982 msgstr ""
8983
8984 #. type: verbatim
8985 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2854
8986 #, no-wrap
8987 msgid ""
8988 " C      =>     /dev/vda2\n"
8989 " E      =>     /dev/vdb1\n"
8990 " F      =>     /dev/vdc1\n"
8991 "\n"
8992 msgstr ""
8993
8994 #. type: textblock
8995 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2858
8996 msgid ""
8997 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8998 "and just contains the drive letter, without the customary colon separator "
8999 "character."
9000 msgstr ""
9001
9002 #. type: textblock
9003 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2862
9004 msgid ""
9005 "In future we may support other operating systems that also used drive "
9006 "letters, but the keys for those might not be case insensitive and might be "
9007 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
9008 "C<h1> etc."
9009 msgstr ""
9010
9011 #. type: textblock
9012 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2867
9013 msgid ""
9014 "For Windows guests, currently only hard drive mappings are returned.  "
9015 "Removable disks (eg. DVD-ROMs) are ignored."
9016 msgstr ""
9017
9018 #. type: textblock
9019 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2870
9020 msgid ""
9021 "For guests that do not use drive mappings, or if the drive mappings could "
9022 "not be determined, this returns an empty hash table."
9023 msgstr ""
9024
9025 #. type: textblock
9026 #: ../fish/guestfish-actions.pod:1914
9027 msgid ""
9028 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9029 "get-mountpoints>, L</inspect-get-filesystems>."
9030 msgstr ""
9031
9032 #. type: =head2
9033 #: ../fish/guestfish-actions.pod:1918
9034 msgid "inspect-get-filesystems"
9035 msgstr "inspect-get-filesystems"
9036
9037 #. type: verbatim
9038 #: ../fish/guestfish-actions.pod:1920
9039 #, no-wrap
9040 msgid ""
9041 " inspect-get-filesystems root\n"
9042 "\n"
9043 msgstr ""
9044 " inspect-get-filesystems корінь\n"
9045 "\n"
9046
9047 #. type: textblock
9048 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2891
9049 msgid ""
9050 "This returns a list of all the filesystems that we think are associated with "
9051 "this operating system.  This includes the root filesystem, other ordinary "
9052 "filesystems, and non-mounted devices like swap partitions."
9053 msgstr ""
9054
9055 #. type: textblock
9056 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2896
9057 msgid ""
9058 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9059 "to be shared between operating systems."
9060 msgstr ""
9061
9062 #. type: textblock
9063 #: ../fish/guestfish-actions.pod:1930
9064 msgid ""
9065 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9066 "get-mountpoints>."
9067 msgstr ""
9068
9069 #. type: =head2
9070 #: ../fish/guestfish-actions.pod:1933
9071 msgid "inspect-get-format"
9072 msgstr "inspect-get-format"
9073
9074 #. type: verbatim
9075 #: ../fish/guestfish-actions.pod:1935
9076 #, no-wrap
9077 msgid ""
9078 " inspect-get-format root\n"
9079 "\n"
9080 msgstr ""
9081 " inspect-get-format корінь\n"
9082 "\n"
9083
9084 #. type: textblock
9085 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2914
9086 msgid ""
9087 "This returns the format of the inspected operating system.  You can use it "
9088 "to detect install images, live CDs and similar."
9089 msgstr ""
9090
9091 #. type: textblock
9092 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2917
9093 msgid "Currently defined formats are:"
9094 msgstr ""
9095
9096 #. type: =item
9097 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2921
9098 msgid "\"installed\""
9099 msgstr "\"installed\""
9100
9101 #. type: textblock
9102 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2923
9103 msgid "This is an installed operating system."
9104 msgstr "Це встановлена операційна система."
9105
9106 #. type: =item
9107 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2925
9108 msgid "\"installer\""
9109 msgstr ""
9110
9111 #. type: textblock
9112 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2927
9113 msgid ""
9114 "The disk image being inspected is not an installed operating system, but a "
9115 "I<bootable> install disk, live CD, or similar."
9116 msgstr ""
9117
9118 #. type: textblock
9119 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2932
9120 msgid "The format of this disk image is not known."
9121 msgstr ""
9122
9123 #. type: =head2
9124 #: ../fish/guestfish-actions.pod:1964
9125 msgid "inspect-get-hostname"
9126 msgstr "inspect-get-hostname"
9127
9128 #. type: verbatim
9129 #: ../fish/guestfish-actions.pod:1966
9130 #, no-wrap
9131 msgid ""
9132 " inspect-get-hostname root\n"
9133 "\n"
9134 msgstr ""
9135 " inspect-get-hostname корінь\n"
9136 "\n"
9137
9138 #. type: textblock
9139 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
9140 msgid ""
9141 "This function returns the hostname of the operating system as found by "
9142 "inspection of the guest's configuration files."
9143 msgstr ""
9144
9145 #. type: textblock
9146 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2955
9147 msgid ""
9148 "If the hostname could not be determined, then the string C<unknown> is "
9149 "returned."
9150 msgstr ""
9151
9152 #. type: =head2
9153 #: ../fish/guestfish-actions.pod:1976
9154 msgid "inspect-get-icon"
9155 msgstr ""
9156
9157 #. type: verbatim
9158 #: ../fish/guestfish-actions.pod:1978
9159 #, no-wrap
9160 msgid ""
9161 " inspect-get-icon root [favicon:..] [highquality:..]\n"
9162 "\n"
9163 msgstr ""
9164
9165 #. type: textblock
9166 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2981
9167 msgid ""
9168 "This function returns an icon corresponding to the inspected operating "
9169 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
9170 "to PNG if necessary)."
9171 msgstr ""
9172
9173 #. type: textblock
9174 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2985
9175 msgid ""
9176 "If it was not possible to get an icon this function returns a zero-length "
9177 "(non-NULL) buffer.  I<Callers must check for this case>."
9178 msgstr ""
9179
9180 #. type: textblock
9181 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2988
9182 msgid ""
9183 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
9184 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
9185 "this file will be returned.  You can disable favicons by passing the "
9186 "optional C<favicon> boolean as false (default is true)."
9187 msgstr ""
9188
9189 #. type: textblock
9190 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:2994
9191 msgid ""
9192 "If finding the favicon fails, then we look in other places in the guest for "
9193 "a suitable icon."
9194 msgstr ""
9195
9196 #. type: textblock
9197 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:2997
9198 msgid ""
9199 "If the optional C<highquality> boolean is true then only high quality icons "
9200 "are returned, which means only icons of high resolution with an alpha "
9201 "channel.  The default (false) is to return any icon we can, even if it is of "
9202 "substandard quality."
9203 msgstr ""
9204
9205 #. type: textblock
9206 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3008
9207 msgid ""
9208 "Unlike most other inspection API calls, the guest's disks must be mounted up "
9209 "before you call this, since it needs to read information from the guest "
9210 "filesystem during the call."
9211 msgstr ""
9212
9213 #. type: textblock
9214 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3014
9215 msgid ""
9216 "B<Security:> The icon data comes from the untrusted guest, and should be "
9217 "treated with caution.  PNG files have been known to contain exploits.  "
9218 "Ensure that libpng (or other relevant libraries) are fully up to date before "
9219 "trying to process or display the icon."
9220 msgstr ""
9221
9222 #. type: textblock
9223 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3022
9224 msgid ""
9225 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
9226 "tries to return the largest, highest quality icon available.  The "
9227 "application must scale the icon to the required size."
9228 msgstr ""
9229
9230 #. type: textblock
9231 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3029
9232 msgid ""
9233 "Extracting icons from Windows guests requires the external C<wrestool> "
9234 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
9235 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
9236 "installed separately."
9237 msgstr ""
9238
9239 #. type: textblock
9240 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3036
9241 msgid ""
9242 "Operating system icons are usually trademarks.  Seek legal advice before "
9243 "using trademarks in applications."
9244 msgstr ""
9245
9246 #. type: =head2
9247 #: ../fish/guestfish-actions.pod:2042
9248 msgid "inspect-get-major-version"
9249 msgstr "inspect-get-major-version"
9250
9251 #. type: verbatim
9252 #: ../fish/guestfish-actions.pod:2044
9253 #, no-wrap
9254 msgid ""
9255 " inspect-get-major-version root\n"
9256 "\n"
9257 msgstr ""
9258 " inspect-get-major-version корінь\n"
9259 "\n"
9260
9261 #. type: textblock
9262 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3077
9263 msgid ""
9264 "This returns the major version number of the inspected operating system."
9265 msgstr ""
9266
9267 #. type: textblock
9268 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3080
9269 msgid ""
9270 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9271 "popular public names used by the operating system.  Notably the operating "
9272 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9273 "1).  You can find out the real versions corresponding to releases of Windows "
9274 "by consulting Wikipedia or MSDN."
9275 msgstr ""
9276
9277 #. type: textblock
9278 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067
9279 #: ../src/guestfs-actions.pod:3087 ../src/guestfs-actions.pod:3104
9280 msgid "If the version could not be determined, then C<0> is returned."
9281 msgstr ""
9282
9283 #. type: =head2
9284 #: ../fish/guestfish-actions.pod:2060
9285 msgid "inspect-get-minor-version"
9286 msgstr "inspect-get-minor-version"
9287
9288 #. type: verbatim
9289 #: ../fish/guestfish-actions.pod:2062
9290 #, no-wrap
9291 msgid ""
9292 " inspect-get-minor-version root\n"
9293 "\n"
9294 msgstr ""
9295 " inspect-get-minor-version корінь\n"
9296 "\n"
9297
9298 #. type: textblock
9299 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3101
9300 msgid ""
9301 "This returns the minor version number of the inspected operating system."
9302 msgstr ""
9303
9304 #. type: textblock
9305 #: ../fish/guestfish-actions.pod:2069
9306 msgid ""
9307 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9308 "get-major-version>."
9309 msgstr ""
9310
9311 #. type: =head2
9312 #: ../fish/guestfish-actions.pod:2072
9313 msgid "inspect-get-mountpoints"
9314 msgstr "inspect-get-mountpoints"
9315
9316 #. type: verbatim
9317 #: ../fish/guestfish-actions.pod:2074
9318 #, no-wrap
9319 msgid ""
9320 " inspect-get-mountpoints root\n"
9321 "\n"
9322 msgstr ""
9323 " inspect-get-mountpoints корінь\n"
9324 "\n"
9325
9326 #. type: textblock
9327 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3119
9328 msgid ""
9329 "This returns a hash of where we think the filesystems associated with this "
9330 "operating system should be mounted.  Callers should note that this is at "
9331 "best an educated guess made by reading configuration files such as C</etc/"
9332 "fstab>.  I<In particular note> that this may return filesystems which are "
9333 "non-existent or not mountable and callers should be prepared to handle or "
9334 "ignore failures if they try to mount them."
9335 msgstr ""
9336
9337 #. type: textblock
9338 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3128
9339 msgid ""
9340 "Each element in the returned hashtable has a key which is the path of the "
9341 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9342 "mounted there (eg. C</dev/sda1>)."
9343 msgstr ""
9344
9345 #. type: textblock
9346 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3133
9347 msgid ""
9348 "Non-mounted devices such as swap devices are I<not> returned in this list."
9349 msgstr ""
9350
9351 #. type: textblock
9352 #: ../fish/guestfish-actions.pod:2093
9353 msgid ""
9354 "For operating systems like Windows which still use drive letters, this call "
9355 "will only return an entry for the first drive \"mounted on\" C</>.  For "
9356 "information about the mapping of drive letters to partitions, see L</inspect-"
9357 "get-drive-mappings>."
9358 msgstr ""
9359
9360 #. type: textblock
9361 #: ../fish/guestfish-actions.pod:2099
9362 msgid ""
9363 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9364 "get-filesystems>."
9365 msgstr ""
9366
9367 #. type: =head2
9368 #: ../fish/guestfish-actions.pod:2102
9369 msgid "inspect-get-package-format"
9370 msgstr "inspect-get-package-format"
9371
9372 #. type: verbatim
9373 #: ../fish/guestfish-actions.pod:2104
9374 #, no-wrap
9375 msgid ""
9376 " inspect-get-package-format root\n"
9377 "\n"
9378 msgstr ""
9379 " inspect-get-package-format корінь\n"
9380 "\n"
9381
9382 #. type: textblock
9383 #: ../fish/guestfish-actions.pod:2106
9384 msgid ""
9385 "This function and L</inspect-get-package-management> return the package "
9386 "format and package management tool used by the inspected operating system.  "
9387 "For example for Fedora these functions would return C<rpm> (package format) "
9388 "and C<yum> (package management)."
9389 msgstr ""
9390
9391 #. type: textblock
9392 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3165
9393 msgid ""
9394 "This returns the string C<unknown> if we could not determine the package "
9395 "format I<or> if the operating system does not have a real packaging system "
9396 "(eg. Windows)."
9397 msgstr ""
9398
9399 #. type: textblock
9400 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3169
9401 msgid ""
9402 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9403 "Future versions of libguestfs may return other strings."
9404 msgstr ""
9405
9406 #. type: =head2
9407 #: ../fish/guestfish-actions.pod:2121
9408 msgid "inspect-get-package-management"
9409 msgstr "inspect-get-package-management"
9410
9411 #. type: verbatim
9412 #: ../fish/guestfish-actions.pod:2123
9413 #, no-wrap
9414 msgid ""
9415 " inspect-get-package-management root\n"
9416 "\n"
9417 msgstr ""
9418 " inspect-get-package-management корінь\n"
9419 "\n"
9420
9421 #. type: textblock
9422 #: ../fish/guestfish-actions.pod:2125
9423 msgid ""
9424 "L</inspect-get-package-format> and this function return the package format "
9425 "and package management tool used by the inspected operating system.  For "
9426 "example for Fedora these functions would return C<rpm> (package format) and "
9427 "C<yum> (package management)."
9428 msgstr ""
9429
9430 #. type: textblock
9431 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3191
9432 msgid ""
9433 "This returns the string C<unknown> if we could not determine the package "
9434 "management tool I<or> if the operating system does not have a real packaging "
9435 "system (eg. Windows)."
9436 msgstr ""
9437
9438 #. type: textblock
9439 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3195
9440 msgid ""
9441 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9442 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9443 "libguestfs may return other strings."
9444 msgstr ""
9445
9446 #. type: =head2
9447 #: ../fish/guestfish-actions.pod:2142
9448 msgid "inspect-get-product-name"
9449 msgstr "inspect-get-product-name"
9450
9451 #. type: verbatim
9452 #: ../fish/guestfish-actions.pod:2144
9453 #, no-wrap
9454 msgid ""
9455 " inspect-get-product-name root\n"
9456 "\n"
9457 msgstr ""
9458 " inspect-get-product-name корінь\n"
9459 "\n"
9460
9461 #. type: textblock
9462 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3213
9463 msgid ""
9464 "This returns the product name of the inspected operating system.  The "
9465 "product name is generally some freeform string which can be displayed to the "
9466 "user, but should not be parsed by programs."
9467 msgstr ""
9468
9469 #. type: textblock
9470 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3218
9471 msgid ""
9472 "If the product name could not be determined, then the string C<unknown> is "
9473 "returned."
9474 msgstr ""
9475
9476 #. type: =head2
9477 #: ../fish/guestfish-actions.pod:2156
9478 msgid "inspect-get-product-variant"
9479 msgstr ""
9480
9481 #. type: verbatim
9482 #: ../fish/guestfish-actions.pod:2158
9483 #, no-wrap
9484 msgid ""
9485 " inspect-get-product-variant root\n"
9486 "\n"
9487 msgstr ""
9488
9489 #. type: textblock
9490 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
9491 msgid "This returns the product variant of the inspected operating system."
9492 msgstr ""
9493
9494 #. type: textblock
9495 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3237
9496 msgid ""
9497 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9498 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9499 "is usually a string such as C<Client> or C<Server> (other values are "
9500 "possible).  This can be used to distinguish consumer and enterprise versions "
9501 "of Windows that have the same version number (for example, Windows 7 and "
9502 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9503 "the latter is C<Server>)."
9504 msgstr ""
9505
9506 #. type: textblock
9507 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3246
9508 msgid ""
9509 "For enterprise Linux guests, in future we intend this to return the product "
9510 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9511 "implemented at present."
9512 msgstr ""
9513
9514 #. type: textblock
9515 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3250
9516 msgid ""
9517 "If the product variant could not be determined, then the string C<unknown> "
9518 "is returned."
9519 msgstr ""
9520
9521 #. type: textblock
9522 #: ../fish/guestfish-actions.pod:2179
9523 msgid ""
9524 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9525 "get-product-name>, L</inspect-get-major-version>."
9526 msgstr ""
9527
9528 #. type: =head2
9529 #: ../fish/guestfish-actions.pod:2183
9530 msgid "inspect-get-roots"
9531 msgstr "inspect-get-roots"
9532
9533 #. type: verbatim
9534 #: ../fish/guestfish-actions.pod:2185
9535 #, no-wrap
9536 msgid ""
9537 " inspect-get-roots\n"
9538 "\n"
9539 msgstr ""
9540 " inspect-get-roots\n"
9541 "\n"
9542
9543 #. type: textblock
9544 #: ../fish/guestfish-actions.pod:2187
9545 msgid ""
9546 "This function is a convenient way to get the list of root devices, as "
9547 "returned from a previous call to L</inspect-os>, but without redoing the "
9548 "whole inspection process."
9549 msgstr ""
9550
9551 #. type: textblock
9552 #: ../fish/guestfish-actions.pod:2191
9553 msgid ""
9554 "This returns an empty list if either no root devices were found or the "
9555 "caller has not called L</inspect-os>."
9556 msgstr ""
9557
9558 #. type: =head2
9559 #: ../fish/guestfish-actions.pod:2196
9560 msgid "inspect-get-type"
9561 msgstr "inspect-get-type"
9562
9563 #. type: verbatim
9564 #: ../fish/guestfish-actions.pod:2198
9565 #, no-wrap
9566 msgid ""
9567 " inspect-get-type root\n"
9568 "\n"
9569 msgstr ""
9570 " inspect-get-type корінь\n"
9571 "\n"
9572
9573 #. type: textblock
9574 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3288
9575 msgid ""
9576 "This returns the type of the inspected operating system.  Currently defined "
9577 "types are:"
9578 msgstr ""
9579
9580 #. type: =item
9581 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3293
9582 msgid "\"linux\""
9583 msgstr "\"linux\""
9584
9585 #. type: textblock
9586 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3295
9587 msgid "Any Linux-based operating system."
9588 msgstr ""
9589
9590 #. type: textblock
9591 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3299
9592 msgid "Any Microsoft Windows operating system."
9593 msgstr ""
9594
9595 #. type: =item
9596 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3301
9597 msgid "\"freebsd\""
9598 msgstr "\"freebsd\""
9599
9600 #. type: textblock
9601 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3303
9602 msgid "FreeBSD."
9603 msgstr "FreeBSD."
9604
9605 #. type: textblock
9606 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3307
9607 msgid "The operating system type could not be determined."
9608 msgstr ""
9609
9610 #. type: =head2
9611 #: ../fish/guestfish-actions.pod:2228
9612 msgid "inspect-get-windows-current-control-set"
9613 msgstr ""
9614
9615 #. type: verbatim
9616 #: ../fish/guestfish-actions.pod:2230
9617 #, no-wrap
9618 msgid ""
9619 " inspect-get-windows-current-control-set root\n"
9620 "\n"
9621 msgstr ""
9622
9623 #. type: textblock
9624 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3327
9625 msgid ""
9626 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9627 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9628 msgstr ""
9629
9630 #. type: textblock
9631 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3330
9632 msgid ""
9633 "This call assumes that the guest is Windows and that the Registry could be "
9634 "examined by inspection.  If this is not the case then an error is returned."
9635 msgstr ""
9636
9637 #. type: =head2
9638 #: ../fish/guestfish-actions.pod:2241
9639 msgid "inspect-get-windows-systemroot"
9640 msgstr "inspect-get-windows-systemroot"
9641
9642 #. type: verbatim
9643 #: ../fish/guestfish-actions.pod:2243
9644 #, no-wrap
9645 msgid ""
9646 " inspect-get-windows-systemroot root\n"
9647 "\n"
9648 msgstr ""
9649 " inspect-get-windows-systemroot корінь\n"
9650 "\n"
9651
9652 #. type: textblock
9653 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3347
9654 msgid ""
9655 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9656 "is a directory path such as C</WINDOWS>."
9657 msgstr ""
9658
9659 #. type: textblock
9660 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3350
9661 msgid ""
9662 "This call assumes that the guest is Windows and that the systemroot could be "
9663 "determined by inspection.  If this is not the case then an error is returned."
9664 msgstr ""
9665
9666 #. type: =head2
9667 #: ../fish/guestfish-actions.pod:2254
9668 msgid "inspect-is-live"
9669 msgstr "inspect-is-live"
9670
9671 #. type: verbatim
9672 #: ../fish/guestfish-actions.pod:2256
9673 #, no-wrap
9674 msgid ""
9675 " inspect-is-live root\n"
9676 "\n"
9677 msgstr ""
9678 " inspect-is-live корінь\n"
9679 "\n"
9680
9681 #. type: textblock
9682 #: ../fish/guestfish-actions.pod:2258
9683 msgid ""
9684 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9685 "then this returns true if a live image was detected on the disk."
9686 msgstr ""
9687
9688 #. type: =head2
9689 #: ../fish/guestfish-actions.pod:2264
9690 msgid "inspect-is-multipart"
9691 msgstr "inspect-is-multipart"
9692
9693 #. type: verbatim
9694 #: ../fish/guestfish-actions.pod:2266
9695 #, no-wrap
9696 msgid ""
9697 " inspect-is-multipart root\n"
9698 "\n"
9699 msgstr ""
9700 " inspect-is-multipart корінь\n"
9701 "\n"
9702
9703 #. type: textblock
9704 #: ../fish/guestfish-actions.pod:2268
9705 msgid ""
9706 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9707 "then this returns true if the disk is part of a set."
9708 msgstr ""
9709
9710 #. type: =head2
9711 #: ../fish/guestfish-actions.pod:2274
9712 msgid "inspect-is-netinst"
9713 msgstr "inspect-is-netinst"
9714
9715 #. type: verbatim
9716 #: ../fish/guestfish-actions.pod:2276
9717 #, no-wrap
9718 msgid ""
9719 " inspect-is-netinst root\n"
9720 "\n"
9721 msgstr ""
9722 " inspect-is-netinst корінь\n"
9723 "\n"
9724
9725 #. type: textblock
9726 #: ../fish/guestfish-actions.pod:2278
9727 msgid ""
9728 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9729 "then this returns true if the disk is a network installer, ie. not a self-"
9730 "contained install CD but one which is likely to require network access to "
9731 "complete the install."
9732 msgstr ""
9733
9734 #. type: =head2
9735 #: ../fish/guestfish-actions.pod:2286
9736 msgid "inspect-list-applications"
9737 msgstr "inspect-list-applications"
9738
9739 #. type: verbatim
9740 #: ../fish/guestfish-actions.pod:2288
9741 #, no-wrap
9742 msgid ""
9743 " inspect-list-applications root\n"
9744 "\n"
9745 msgstr ""
9746 " inspect-list-applications кореневий_каталог\n"
9747 "\n"
9748
9749 #. type: textblock
9750 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3417
9751 msgid "Return the list of applications installed in the operating system."
9752 msgstr ""
9753
9754 #. type: textblock
9755 #: ../fish/guestfish-actions.pod:2292
9756 msgid ""
9757 "I<Note:> This call works differently from other parts of the inspection "
9758 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9759 "then mount up the disks, before calling this.  Listing applications is a "
9760 "significantly more difficult operation which requires access to the full "
9761 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9762 "are just returning data cached in the libguestfs handle, this call actually "
9763 "reads parts of the mounted filesystems during the call."
9764 msgstr ""
9765
9766 #. type: textblock
9767 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3429
9768 msgid ""
9769 "This returns an empty list if the inspection code was not able to determine "
9770 "the list of applications."
9771 msgstr ""
9772
9773 #. type: textblock
9774 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3432
9775 msgid "The application structure contains the following fields:"
9776 msgstr ""
9777
9778 #. type: =item
9779 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3436
9780 msgid "C<app_name>"
9781 msgstr "C<app_name>"
9782
9783 #. type: textblock
9784 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3438
9785 msgid ""
9786 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9787 "guests, this is the package name."
9788 msgstr ""
9789
9790 #. type: =item
9791 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3441
9792 msgid "C<app_display_name>"
9793 msgstr "C<app_display_name>"
9794
9795 #. type: textblock
9796 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3443
9797 msgid ""
9798 "The display name of the application, sometimes localized to the install "
9799 "language of the guest operating system."
9800 msgstr ""
9801
9802 #. type: textblock
9803 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3446
9804 msgid ""
9805 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9806 "to display something can use C<app_name> instead."
9807 msgstr ""
9808
9809 #. type: =item
9810 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3449
9811 msgid "C<app_epoch>"
9812 msgstr "C<app_epoch>"
9813
9814 #. type: textblock
9815 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3451
9816 msgid ""
9817 "For package managers which use epochs, this contains the epoch of the "
9818 "package (an integer).  If unavailable, this is returned as C<0>."
9819 msgstr ""
9820
9821 #. type: =item
9822 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3454
9823 msgid "C<app_version>"
9824 msgstr "C<app_version>"
9825
9826 #. type: textblock
9827 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3456
9828 msgid ""
9829 "The version string of the application or package.  If unavailable this is "
9830 "returned as an empty string C<\"\">."
9831 msgstr ""
9832
9833 #. type: =item
9834 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3459
9835 msgid "C<app_release>"
9836 msgstr "C<app_release>"
9837
9838 #. type: textblock
9839 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3461
9840 msgid ""
9841 "The release string of the application or package, for package managers that "
9842 "use this.  If unavailable this is returned as an empty string C<\"\">."
9843 msgstr ""
9844
9845 #. type: =item
9846 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3465
9847 msgid "C<app_install_path>"
9848 msgstr "C<app_install_path>"
9849
9850 #. type: textblock
9851 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3467
9852 msgid ""
9853 "The installation path of the application (on operating systems such as "
9854 "Windows which use installation paths).  This path is in the format used by "
9855 "the guest operating system, it is not a libguestfs path."
9856 msgstr ""
9857
9858 #. type: textblock
9859 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3472
9860 msgid "If unavailable this is returned as an empty string C<\"\">."
9861 msgstr ""
9862
9863 #. type: =item
9864 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3474
9865 msgid "C<app_trans_path>"
9866 msgstr "C<app_trans_path>"
9867
9868 #. type: textblock
9869 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3476
9870 msgid ""
9871 "The install path translated into a libguestfs path.  If unavailable this is "
9872 "returned as an empty string C<\"\">."
9873 msgstr ""
9874
9875 #. type: =item
9876 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3479
9877 msgid "C<app_publisher>"
9878 msgstr "C<app_publisher>"
9879
9880 #. type: textblock
9881 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3481
9882 msgid ""
9883 "The name of the publisher of the application, for package managers that use "
9884 "this.  If unavailable this is returned as an empty string C<\"\">."
9885 msgstr ""
9886
9887 #. type: =item
9888 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3485
9889 msgid "C<app_url>"
9890 msgstr "C<app_url>"
9891
9892 #. type: textblock
9893 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3487
9894 msgid ""
9895 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9896 "returned as an empty string C<\"\">."
9897 msgstr ""
9898
9899 #. type: =item
9900 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3490
9901 msgid "C<app_source_package>"
9902 msgstr "C<app_source_package>"
9903
9904 #. type: textblock
9905 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3492
9906 msgid ""
9907 "For packaging systems which support this, the name of the source package.  "
9908 "If unavailable this is returned as an empty string C<\"\">."
9909 msgstr ""
9910
9911 #. type: =item
9912 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3495
9913 msgid "C<app_summary>"
9914 msgstr "C<app_summary>"
9915
9916 #. type: textblock
9917 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3497
9918 msgid ""
9919 "A short (usually one line) description of the application or package.  If "
9920 "unavailable this is returned as an empty string C<\"\">."
9921 msgstr ""
9922
9923 #. type: =item
9924 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3500
9925 msgid "C<app_description>"
9926 msgstr "C<app_description>"
9927
9928 #. type: textblock
9929 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3502
9930 msgid ""
9931 "A longer description of the application or package.  If unavailable this is "
9932 "returned as an empty string C<\"\">."
9933 msgstr ""
9934
9935 #. type: =head2
9936 #: ../fish/guestfish-actions.pod:2382
9937 msgid "inspect-os"
9938 msgstr "inspect-os"
9939
9940 #. type: verbatim
9941 #: ../fish/guestfish-actions.pod:2384
9942 #, no-wrap
9943 msgid ""
9944 " inspect-os\n"
9945 "\n"
9946 msgstr ""
9947 " inspect-os\n"
9948 "\n"
9949
9950 #. type: textblock
9951 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
9952 msgid ""
9953 "This function uses other libguestfs functions and certain heuristics to "
9954 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9955 "for operating systems."
9956 msgstr ""
9957
9958 #. type: textblock
9959 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3524
9960 msgid "The list returned is empty if no operating systems were found."
9961 msgstr ""
9962
9963 #. type: textblock
9964 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3526
9965 msgid ""
9966 "If one operating system was found, then this returns a list with a single "
9967 "element, which is the name of the root filesystem of this operating system.  "
9968 "It is also possible for this function to return a list containing more than "
9969 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9970 "element being the root filesystem of one of the operating systems."
9971 msgstr ""
9972
9973 #. type: textblock
9974 #: ../fish/guestfish-actions.pod:2399
9975 msgid ""
9976 "You can pass the root string(s) returned to other L</inspect-get-*> "
9977 "functions in order to query further information about each operating system, "
9978 "such as the name and version."
9979 msgstr ""
9980
9981 #. type: textblock
9982 #: ../fish/guestfish-actions.pod:2404
9983 msgid ""
9984 "This function uses other libguestfs features such as L</mount-ro> and L</"
9985 "umount-all> in order to mount and unmount filesystems and look at the "
9986 "contents.  This should be called with no disks currently mounted.  The "
9987 "function may also use Augeas, so any existing Augeas handle will be closed."
9988 msgstr ""
9989
9990 #. type: textblock
9991 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3544
9992 msgid ""
9993 "This function cannot decrypt encrypted disks.  The caller must do that first "
9994 "(supplying the necessary keys) if the disk is encrypted."
9995 msgstr ""
9996
9997 #. type: textblock
9998 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614
9999 #: ../fish/guestfish-actions.pod:2673
10000 msgid "See also L</list-filesystems>."
10001 msgstr "Див. також L</list-filesystems>."
10002
10003 #. type: =head2
10004 #: ../fish/guestfish-actions.pod:2418
10005 msgid "is-blockdev"
10006 msgstr "is-blockdev"
10007
10008 #. type: verbatim
10009 #: ../fish/guestfish-actions.pod:2420
10010 #, no-wrap
10011 msgid ""
10012 " is-blockdev path\n"
10013 "\n"
10014 msgstr ""
10015 " is-blockdev шлях\n"
10016 "\n"
10017
10018 #. type: textblock
10019 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3564
10020 msgid ""
10021 "This returns C<true> if and only if there is a block device with the given "
10022 "C<path> name."
10023 msgstr ""
10024
10025 #. type: textblock
10026 #: ../fish/guestfish-actions.pod:2425 ../fish/guestfish-actions.pod:2443
10027 #: ../fish/guestfish-actions.pod:2462 ../fish/guestfish-actions.pod:2471
10028 #: ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2515
10029 #: ../fish/guestfish-actions.pod:2524
10030 msgid "See also L</stat>."
10031 msgstr "Див. також L</stat>."
10032
10033 #. type: =head2
10034 #: ../fish/guestfish-actions.pod:2427
10035 msgid "is-busy"
10036 msgstr "is-busy"
10037
10038 #. type: verbatim
10039 #: ../fish/guestfish-actions.pod:2429
10040 #, no-wrap
10041 msgid ""
10042 " is-busy\n"
10043 "\n"
10044 msgstr ""
10045 " is-busy\n"
10046 "\n"
10047
10048 #. type: textblock
10049 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3578
10050 msgid ""
10051 "This returns true iff this handle is busy processing a command (in the "
10052 "C<BUSY> state)."
10053 msgstr ""
10054
10055 #. type: =head2
10056 #: ../fish/guestfish-actions.pod:2436
10057 msgid "is-chardev"
10058 msgstr "is-chardev"
10059
10060 #. type: verbatim
10061 #: ../fish/guestfish-actions.pod:2438
10062 #, no-wrap
10063 msgid ""
10064 " is-chardev path\n"
10065 "\n"
10066 msgstr ""
10067 " is-chardev шлях\n"
10068 "\n"
10069
10070 #. type: textblock
10071 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3593
10072 msgid ""
10073 "This returns C<true> if and only if there is a character device with the "
10074 "given C<path> name."
10075 msgstr ""
10076
10077 #. type: =head2
10078 #: ../fish/guestfish-actions.pod:2445
10079 msgid "is-config"
10080 msgstr "is-config"
10081
10082 #. type: verbatim
10083 #: ../fish/guestfish-actions.pod:2447
10084 #, no-wrap
10085 msgid ""
10086 " is-config\n"
10087 "\n"
10088 msgstr ""
10089 " is-config\n"
10090 "\n"
10091
10092 #. type: textblock
10093 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3607
10094 msgid ""
10095 "This returns true iff this handle is being configured (in the C<CONFIG> "
10096 "state)."
10097 msgstr ""
10098
10099 #. type: =head2
10100 #: ../fish/guestfish-actions.pod:2454
10101 msgid "is-dir"
10102 msgstr "is-dir"
10103
10104 #. type: verbatim
10105 #: ../fish/guestfish-actions.pod:2456
10106 #, no-wrap
10107 msgid ""
10108 " is-dir path\n"
10109 "\n"
10110 msgstr ""
10111 " is-dir шлях\n"
10112 "\n"
10113
10114 #. type: textblock
10115 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3622
10116 msgid ""
10117 "This returns C<true> if and only if there is a directory with the given "
10118 "C<path> name.  Note that it returns false for other objects like files."
10119 msgstr ""
10120
10121 #. type: =head2
10122 #: ../fish/guestfish-actions.pod:2464
10123 msgid "is-fifo"
10124 msgstr "is-fifo"
10125
10126 #. type: verbatim
10127 #: ../fish/guestfish-actions.pod:2466
10128 #, no-wrap
10129 msgid ""
10130 " is-fifo path\n"
10131 "\n"
10132 msgstr ""
10133 " is-fifo шлях\n"
10134 "\n"
10135
10136 #. type: textblock
10137 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3638
10138 msgid ""
10139 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
10140 "given C<path> name."
10141 msgstr ""
10142
10143 #. type: =head2
10144 #: ../fish/guestfish-actions.pod:2473
10145 msgid "is-file"
10146 msgstr "is-file"
10147
10148 #. type: verbatim
10149 #: ../fish/guestfish-actions.pod:2475
10150 #, no-wrap
10151 msgid ""
10152 " is-file path\n"
10153 "\n"
10154 msgstr ""
10155 " is-file шлях\n"
10156 "\n"
10157
10158 #. type: textblock
10159 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3653
10160 msgid ""
10161 "This returns C<true> if and only if there is a regular file with the given "
10162 "C<path> name.  Note that it returns false for other objects like directories."
10163 msgstr ""
10164
10165 #. type: =head2
10166 #: ../fish/guestfish-actions.pod:2483
10167 msgid "is-launching"
10168 msgstr "is-launching"
10169
10170 #. type: verbatim
10171 #: ../fish/guestfish-actions.pod:2485
10172 #, no-wrap
10173 msgid ""
10174 " is-launching\n"
10175 "\n"
10176 msgstr ""
10177 " is-launching\n"
10178 "\n"
10179
10180 #. type: textblock
10181 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3668
10182 msgid ""
10183 "This returns true iff this handle is launching the subprocess (in the "
10184 "C<LAUNCHING> state)."
10185 msgstr ""
10186
10187 #. type: =head2
10188 #: ../fish/guestfish-actions.pod:2492
10189 msgid "is-lv"
10190 msgstr "is-lv"
10191
10192 #. type: verbatim
10193 #: ../fish/guestfish-actions.pod:2494
10194 #, no-wrap
10195 msgid ""
10196 " is-lv device\n"
10197 "\n"
10198 msgstr ""
10199 " is-lv пристрій\n"
10200 "\n"
10201
10202 #. type: textblock
10203 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3683
10204 msgid ""
10205 "This command tests whether C<device> is a logical volume, and returns true "
10206 "iff this is the case."
10207 msgstr ""
10208
10209 #. type: =head2
10210 #: ../fish/guestfish-actions.pod:2499
10211 msgid "is-ready"
10212 msgstr "is-ready"
10213
10214 #. type: verbatim
10215 #: ../fish/guestfish-actions.pod:2501
10216 #, no-wrap
10217 msgid ""
10218 " is-ready\n"
10219 "\n"
10220 msgstr ""
10221 " is-ready\n"
10222 "\n"
10223
10224 #. type: textblock
10225 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3695
10226 msgid ""
10227 "This returns true iff this handle is ready to accept commands (in the "
10228 "C<READY> state)."
10229 msgstr ""
10230
10231 #. type: =head2
10232 #: ../fish/guestfish-actions.pod:2508
10233 msgid "is-socket"
10234 msgstr "is-socket"
10235
10236 #. type: verbatim
10237 #: ../fish/guestfish-actions.pod:2510
10238 #, no-wrap
10239 msgid ""
10240 " is-socket path\n"
10241 "\n"
10242 msgstr ""
10243 " is-socket шлях\n"
10244 "\n"
10245
10246 #. type: textblock
10247 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3710
10248 msgid ""
10249 "This returns C<true> if and only if there is a Unix domain socket with the "
10250 "given C<path> name."
10251 msgstr ""
10252
10253 #. type: =head2
10254 #: ../fish/guestfish-actions.pod:2517
10255 msgid "is-symlink"
10256 msgstr "is-symlink"
10257
10258 #. type: verbatim
10259 #: ../fish/guestfish-actions.pod:2519
10260 #, no-wrap
10261 msgid ""
10262 " is-symlink path\n"
10263 "\n"
10264 msgstr ""
10265 " is-symlink шлях\n"
10266 "\n"
10267
10268 #. type: textblock
10269 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3725
10270 msgid ""
10271 "This returns C<true> if and only if there is a symbolic link with the given "
10272 "C<path> name."
10273 msgstr ""
10274
10275 #. type: =head2
10276 #: ../fish/guestfish-actions.pod:2526
10277 msgid "is-zero"
10278 msgstr ""
10279
10280 #. type: verbatim
10281 #: ../fish/guestfish-actions.pod:2528
10282 #, no-wrap
10283 msgid ""
10284 " is-zero path\n"
10285 "\n"
10286 msgstr ""
10287
10288 #. type: textblock
10289 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3740
10290 msgid ""
10291 "This returns true iff the file exists and the file is empty or it contains "
10292 "all zero bytes."
10293 msgstr ""
10294
10295 #. type: =head2
10296 #: ../fish/guestfish-actions.pod:2533
10297 msgid "is-zero-device"
10298 msgstr ""
10299
10300 #. type: verbatim
10301 #: ../fish/guestfish-actions.pod:2535
10302 #, no-wrap
10303 msgid ""
10304 " is-zero-device device\n"
10305 "\n"
10306 msgstr ""
10307
10308 #. type: textblock
10309 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3753
10310 msgid "This returns true iff the device exists and contains all zero bytes."
10311 msgstr ""
10312
10313 #. type: textblock
10314 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3755
10315 msgid "Note that for large devices this can take a long time to run."
10316 msgstr ""
10317
10318 #. type: =head2
10319 #: ../fish/guestfish-actions.pod:2541
10320 msgid "kill-subprocess"
10321 msgstr "kill-subprocess"
10322
10323 #. type: verbatim
10324 #: ../fish/guestfish-actions.pod:2543
10325 #, no-wrap
10326 msgid ""
10327 " kill-subprocess\n"
10328 "\n"
10329 msgstr ""
10330 " kill-subprocess\n"
10331 "\n"
10332
10333 #. type: textblock
10334 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3766
10335 msgid "This kills the qemu subprocess.  You should never need to call this."
10336 msgstr ""
10337
10338 #. type: =head2
10339 #: ../fish/guestfish-actions.pod:2547
10340 msgid "launch"
10341 msgstr "launch"
10342
10343 #. type: =head2
10344 #: ../fish/guestfish-actions.pod:2549
10345 msgid "run"
10346 msgstr ""
10347
10348 #. type: verbatim
10349 #: ../fish/guestfish-actions.pod:2551
10350 #, no-wrap
10351 msgid ""
10352 " launch\n"
10353 "\n"
10354 msgstr ""
10355 " launch\n"
10356 "\n"
10357
10358 #. type: textblock
10359 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3777
10360 msgid ""
10361 "Internally libguestfs is implemented by running a virtual machine using "
10362 "L<qemu(1)>."
10363 msgstr ""
10364
10365 #. type: textblock
10366 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3780
10367 msgid ""
10368 "You should call this after configuring the handle (eg. adding drives) but "
10369 "before performing any actions."
10370 msgstr ""
10371
10372 #. type: =head2
10373 #: ../fish/guestfish-actions.pod:2559
10374 msgid "lchown"
10375 msgstr "lchown"
10376
10377 #. type: verbatim
10378 #: ../fish/guestfish-actions.pod:2561
10379 #, no-wrap
10380 msgid ""
10381 " lchown owner group path\n"
10382 "\n"
10383 msgstr ""
10384 " lchown власник група шлях\n"
10385 "\n"
10386
10387 #. type: textblock
10388 #: ../fish/guestfish-actions.pod:2563
10389 msgid ""
10390 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
10391 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10392 "target."
10393 msgstr ""
10394
10395 #. type: =head2
10396 #: ../fish/guestfish-actions.pod:2571
10397 msgid "lgetxattr"
10398 msgstr "lgetxattr"
10399
10400 #. type: verbatim
10401 #: ../fish/guestfish-actions.pod:2573
10402 #, no-wrap
10403 msgid ""
10404 " lgetxattr path name\n"
10405 "\n"
10406 msgstr ""
10407 " lgetxattr шлях назва\n"
10408 "\n"
10409
10410 #. type: textblock
10411 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3820
10412 msgid ""
10413 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10414 "is a symlink, then this call returns an extended attribute from the symlink."
10415 msgstr ""
10416
10417 #. type: textblock
10418 #: ../fish/guestfish-actions.pod:2589
10419 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10420 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10421
10422 #. type: =head2
10423 #: ../fish/guestfish-actions.pod:2591
10424 msgid "lgetxattrs"
10425 msgstr "lgetxattrs"
10426
10427 #. type: verbatim
10428 #: ../fish/guestfish-actions.pod:2593
10429 #, no-wrap
10430 msgid ""
10431 " lgetxattrs path\n"
10432 "\n"
10433 msgstr ""
10434 " lgetxattrs шлях\n"
10435 "\n"
10436
10437 #. type: textblock
10438 #: ../fish/guestfish-actions.pod:2595
10439 msgid ""
10440 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10441 "it returns the extended attributes of the link itself."
10442 msgstr ""
10443
10444 #. type: =head2
10445 #: ../fish/guestfish-actions.pod:2599
10446 msgid "list-9p"
10447 msgstr ""
10448
10449 #. type: verbatim
10450 #: ../fish/guestfish-actions.pod:2601
10451 #, no-wrap
10452 msgid ""
10453 " list-9p\n"
10454 "\n"
10455 msgstr ""
10456
10457 #. type: textblock
10458 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3863
10459 msgid ""
10460 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10461 "returned."
10462 msgstr ""
10463
10464 #. type: =head2
10465 #: ../fish/guestfish-actions.pod:2606
10466 msgid "list-devices"
10467 msgstr "list-devices"
10468
10469 #. type: verbatim
10470 #: ../fish/guestfish-actions.pod:2608
10471 #, no-wrap
10472 msgid ""
10473 " list-devices\n"
10474 "\n"
10475 msgstr ""
10476 " list-devices\n"
10477 "\n"
10478
10479 #. type: textblock
10480 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3877
10481 msgid "List all the block devices."
10482 msgstr ""
10483
10484 #. type: textblock
10485 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3879
10486 msgid "The full block device names are returned, eg. C</dev/sda>."
10487 msgstr ""
10488
10489 #. type: =head2
10490 #: ../fish/guestfish-actions.pod:2616
10491 msgid "list-dm-devices"
10492 msgstr ""
10493
10494 #. type: verbatim
10495 #: ../fish/guestfish-actions.pod:2618
10496 #, no-wrap
10497 msgid ""
10498 " list-dm-devices\n"
10499 "\n"
10500 msgstr ""
10501
10502 #. type: textblock
10503 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3894
10504 msgid "List all device mapper devices."
10505 msgstr ""
10506
10507 #. type: textblock
10508 #: ../fish/guestfish-actions.pod:2622
10509 msgid ""
10510 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10511 "previous call to L</luks-open>."
10512 msgstr ""
10513
10514 #. type: textblock
10515 #: ../fish/guestfish-actions.pod:2625
10516 msgid ""
10517 "Device mapper devices which correspond to logical volumes are I<not> "
10518 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10519 msgstr ""
10520
10521 #. type: =head2
10522 #: ../fish/guestfish-actions.pod:2629
10523 msgid "list-filesystems"
10524 msgstr "list-filesystems"
10525
10526 #. type: verbatim
10527 #: ../fish/guestfish-actions.pod:2631
10528 #, no-wrap
10529 msgid ""
10530 " list-filesystems\n"
10531 "\n"
10532 msgstr ""
10533 " list-filesystems\n"
10534 "\n"
10535
10536 #. type: textblock
10537 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3914
10538 msgid ""
10539 "This inspection command looks for filesystems on partitions, block devices "
10540 "and logical volumes, returning a list of devices containing filesystems and "
10541 "their type."
10542 msgstr ""
10543
10544 #. type: textblock
10545 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3918
10546 msgid ""
10547 "The return value is a hash, where the keys are the devices containing "
10548 "filesystems, and the values are the filesystem types.  For example:"
10549 msgstr ""
10550
10551 #. type: verbatim
10552 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3922
10553 #, no-wrap
10554 msgid ""
10555 " \"/dev/sda1\" => \"ntfs\"\n"
10556 " \"/dev/sda2\" => \"ext2\"\n"
10557 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10558 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10559 "\n"
10560 msgstr ""
10561
10562 #. type: textblock
10563 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3927
10564 msgid ""
10565 "The value can have the special value \"unknown\", meaning the content of the "
10566 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10567 msgstr ""
10568
10569 #. type: textblock
10570 #: ../fish/guestfish-actions.pod:2650
10571 msgid ""
10572 "This command runs other libguestfs commands, which might include L</mount> "
10573 "and L</umount>, and therefore you should use this soon after launch and only "
10574 "when nothing is mounted."
10575 msgstr ""
10576
10577 #. type: textblock
10578 #: ../fish/guestfish-actions.pod:2654
10579 msgid ""
10580 "Not all of the filesystems returned will be mountable.  In particular, swap "
10581 "partitions are returned in the list.  Also this command does not check that "
10582 "each filesystem found is valid and mountable, and some filesystems might be "
10583 "mountable but require special options.  Filesystems may not all belong to a "
10584 "single logical operating system (use L</inspect-os> to look for OSes)."
10585 msgstr ""
10586
10587 #. type: =head2
10588 #: ../fish/guestfish-actions.pod:2662
10589 msgid "list-partitions"
10590 msgstr "list-partitions"
10591
10592 #. type: verbatim
10593 #: ../fish/guestfish-actions.pod:2664
10594 #, no-wrap
10595 msgid ""
10596 " list-partitions\n"
10597 "\n"
10598 msgstr ""
10599 " list-partitions\n"
10600 "\n"
10601
10602 #. type: textblock
10603 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3956
10604 msgid "List all the partitions detected on all block devices."
10605 msgstr ""
10606
10607 #. type: textblock
10608 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3958
10609 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10610 msgstr ""
10611
10612 #. type: textblock
10613 #: ../fish/guestfish-actions.pod:2670
10614 msgid ""
10615 "This does not return logical volumes.  For that you will need to call L</"
10616 "lvs>."
10617 msgstr ""
10618
10619 #. type: =head2
10620 #: ../fish/guestfish-actions.pod:2675
10621 msgid "ll"
10622 msgstr "ll"
10623
10624 #. type: verbatim
10625 #: ../fish/guestfish-actions.pod:2677
10626 #, no-wrap
10627 msgid ""
10628 " ll directory\n"
10629 "\n"
10630 msgstr ""
10631 " ll каталог\n"
10632 "\n"
10633
10634 #. type: textblock
10635 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3977
10636 msgid ""
10637 "List the files in C<directory> (relative to the root directory, there is no "
10638 "cwd) in the format of 'ls -la'."
10639 msgstr ""
10640
10641 #. type: textblock
10642 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3980
10643 msgid ""
10644 "This command is mostly useful for interactive sessions.  It is I<not> "
10645 "intended that you try to parse the output string."
10646 msgstr ""
10647
10648 #. type: =head2
10649 #: ../fish/guestfish-actions.pod:2685
10650 msgid "ln"
10651 msgstr "ln"
10652
10653 #. type: verbatim
10654 #: ../fish/guestfish-actions.pod:2687
10655 #, no-wrap
10656 msgid ""
10657 " ln target linkname\n"
10658 "\n"
10659 msgstr ""
10660 " ln призначення назва_посилання\n"
10661 "\n"
10662
10663 #. type: textblock
10664 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:3995
10665 msgid "This command creates a hard link using the C<ln> command."
10666 msgstr ""
10667
10668 #. type: =head2
10669 #: ../fish/guestfish-actions.pod:2691
10670 msgid "ln-f"
10671 msgstr "ln-f"
10672
10673 #. type: verbatim
10674 #: ../fish/guestfish-actions.pod:2693
10675 #, no-wrap
10676 msgid ""
10677 " ln-f target linkname\n"
10678 "\n"
10679 msgstr ""
10680 " ln-f призначення назва_посилання\n"
10681 "\n"
10682
10683 #. type: textblock
10684 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4008
10685 msgid ""
10686 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10687 "option removes the link (C<linkname>) if it exists already."
10688 msgstr ""
10689
10690 #. type: =head2
10691 #: ../fish/guestfish-actions.pod:2698
10692 msgid "ln-s"
10693 msgstr "ln-s"
10694
10695 #. type: verbatim
10696 #: ../fish/guestfish-actions.pod:2700
10697 #, no-wrap
10698 msgid ""
10699 " ln-s target linkname\n"
10700 "\n"
10701 msgstr ""
10702 " ln-s призначення назва_посилання\n"
10703 "\n"
10704
10705 #. type: textblock
10706 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4022
10707 msgid "This command creates a symbolic link using the C<ln -s> command."
10708 msgstr ""
10709
10710 #. type: =head2
10711 #: ../fish/guestfish-actions.pod:2704
10712 msgid "ln-sf"
10713 msgstr "ln-sf"
10714
10715 #. type: verbatim
10716 #: ../fish/guestfish-actions.pod:2706
10717 #, no-wrap
10718 msgid ""
10719 " ln-sf target linkname\n"
10720 "\n"
10721 msgstr ""
10722 " ln-sf призначення назва_посилання\n"
10723 "\n"
10724
10725 #. type: textblock
10726 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4035
10727 msgid ""
10728 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10729 "option removes the link (C<linkname>) if it exists already."
10730 msgstr ""
10731
10732 #. type: =head2
10733 #: ../fish/guestfish-actions.pod:2711
10734 msgid "lremovexattr"
10735 msgstr "lremovexattr"
10736
10737 #. type: verbatim
10738 #: ../fish/guestfish-actions.pod:2713
10739 #, no-wrap
10740 msgid ""
10741 " lremovexattr xattr path\n"
10742 "\n"
10743 msgstr ""
10744
10745 #. type: textblock
10746 #: ../fish/guestfish-actions.pod:2715
10747 msgid ""
10748 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10749 "it removes an extended attribute of the link itself."
10750 msgstr ""
10751
10752 #. type: =head2
10753 #: ../fish/guestfish-actions.pod:2719
10754 msgid "ls"
10755 msgstr "ls"
10756
10757 #. type: verbatim
10758 #: ../fish/guestfish-actions.pod:2721
10759 #, no-wrap
10760 msgid ""
10761 " ls directory\n"
10762 "\n"
10763 msgstr ""
10764 " ls каталог\n"
10765 "\n"
10766
10767 #. type: textblock
10768 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4063
10769 msgid ""
10770 "List the files in C<directory> (relative to the root directory, there is no "
10771 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10772 msgstr ""
10773
10774 #. type: textblock
10775 #: ../fish/guestfish-actions.pod:2727
10776 msgid ""
10777 "This command is mostly useful for interactive sessions.  Programs should "
10778 "probably use L</readdir> instead."
10779 msgstr ""
10780
10781 #. type: =head2
10782 #: ../fish/guestfish-actions.pod:2730
10783 msgid "lsetxattr"
10784 msgstr "lsetxattr"
10785
10786 #. type: verbatim
10787 #: ../fish/guestfish-actions.pod:2732
10788 #, no-wrap
10789 msgid ""
10790 " lsetxattr xattr val vallen path\n"
10791 "\n"
10792 msgstr ""
10793
10794 #. type: textblock
10795 #: ../fish/guestfish-actions.pod:2734
10796 msgid ""
10797 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10798 "sets an extended attribute of the link itself."
10799 msgstr ""
10800
10801 #. type: =head2
10802 #: ../fish/guestfish-actions.pod:2738
10803 msgid "lstat"
10804 msgstr "lstat"
10805
10806 #. type: verbatim
10807 #: ../fish/guestfish-actions.pod:2740
10808 #, no-wrap
10809 msgid ""
10810 " lstat path\n"
10811 "\n"
10812 msgstr ""
10813 " lstat шлях\n"
10814 "\n"
10815
10816 #. type: textblock
10817 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4562
10818 #: ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:6892
10819 msgid "Returns file information for the given C<path>."
10820 msgstr ""
10821
10822 #. type: textblock
10823 #: ../fish/guestfish-actions.pod:2744
10824 msgid ""
10825 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10826 "the link is stat-ed, not the file it refers to."
10827 msgstr ""
10828
10829 #. type: textblock
10830 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4105
10831 msgid "This is the same as the C<lstat(2)> system call."
10832 msgstr ""
10833
10834 #. type: =head2
10835 #: ../fish/guestfish-actions.pod:2750
10836 msgid "lstatlist"
10837 msgstr "lstatlist"
10838
10839 #. type: verbatim
10840 #: ../fish/guestfish-actions.pod:2752
10841 #, no-wrap
10842 msgid ""
10843 " lstatlist path 'names ...'\n"
10844 "\n"
10845 msgstr ""
10846
10847 #. type: textblock
10848 #: ../fish/guestfish-actions.pod:2754
10849 msgid ""
10850 "This call allows you to perform the L</lstat> operation on multiple files, "
10851 "where all files are in the directory C<path>.  C<names> is the list of files "
10852 "from this directory."
10853 msgstr ""
10854
10855 #. type: textblock
10856 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4124
10857 msgid ""
10858 "On return you get a list of stat structs, with a one-to-one correspondence "
10859 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10860 "then the C<ino> field of that structure is set to C<-1>."
10861 msgstr ""
10862
10863 #. type: textblock
10864 #: ../fish/guestfish-actions.pod:2763
10865 msgid ""
10866 "This call is intended for programs that want to efficiently list a directory "
10867 "contents without making many round-trips.  See also L</lxattrlist> for a "
10868 "similarly efficient call for getting extended attributes.  Very long "
10869 "directory listings might cause the protocol message size to be exceeded, "
10870 "causing this call to fail.  The caller must split up such requests into "
10871 "smaller groups of names."
10872 msgstr ""
10873
10874 #. type: =head2
10875 #: ../fish/guestfish-actions.pod:2771
10876 msgid "luks-add-key"
10877 msgstr "luks-add-key"
10878
10879 #. type: verbatim
10880 #: ../fish/guestfish-actions.pod:2773
10881 #, no-wrap
10882 msgid ""
10883 " luks-add-key device keyslot\n"
10884 "\n"
10885 msgstr ""
10886
10887 #. type: textblock
10888 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4152
10889 msgid ""
10890 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10891 "existing key, and is used to access the device.  C<newkey> is the new key to "
10892 "add.  C<keyslot> is the key slot that will be replaced."
10893 msgstr ""
10894
10895 #. type: textblock
10896 #: ../fish/guestfish-actions.pod:2780
10897 msgid ""
10898 "Note that if C<keyslot> already contains a key, then this command will "
10899 "fail.  You have to use L</luks-kill-slot> first to remove that key."
10900 msgstr ""
10901
10902 #. type: textblock
10903 #: ../fish/guestfish-actions.pod:2784 ../fish/guestfish-actions.pod:2806
10904 #: ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2833
10905 #: ../fish/guestfish-actions.pod:2859 ../fish/guestfish-actions.pod:2869
10906 msgid ""
10907 "This command has one or more key or passphrase parameters.  Guestfish will "
10908 "prompt for these separately."
10909 msgstr ""
10910
10911 #. type: =head2
10912 #: ../fish/guestfish-actions.pod:2787
10913 msgid "luks-close"
10914 msgstr "luks-close"
10915
10916 #. type: verbatim
10917 #: ../fish/guestfish-actions.pod:2789
10918 #, no-wrap
10919 msgid ""
10920 " luks-close device\n"
10921 "\n"
10922 msgstr ""
10923 " luks-close пристрій\n"
10924 "\n"
10925
10926 #. type: textblock
10927 #: ../fish/guestfish-actions.pod:2791
10928 msgid ""
10929 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10930 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
10931 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10932 "block device."
10933 msgstr ""
10934
10935 #. type: =head2
10936 #: ../fish/guestfish-actions.pod:2797
10937 msgid "luks-format"
10938 msgstr "luks-format"
10939
10940 #. type: verbatim
10941 #: ../fish/guestfish-actions.pod:2799
10942 #, no-wrap
10943 msgid ""
10944 " luks-format device keyslot\n"
10945 "\n"
10946 msgstr ""
10947
10948 #. type: textblock
10949 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4193
10950 msgid ""
10951 "This command erases existing data on C<device> and formats the device as a "
10952 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10953 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10954 msgstr ""
10955
10956 #. type: textblock
10957 #: ../fish/guestfish-actions.pod:2809 ../fish/guestfish-actions.pod:2822
10958 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:3570
10959 #: ../fish/guestfish-actions.pod:4096 ../fish/guestfish-actions.pod:4433
10960 #: ../fish/guestfish-actions.pod:4456 ../fish/guestfish-actions.pod:4478
10961 #: ../fish/guestfish-actions.pod:5224 ../src/guestfs-actions.pod:4200
10962 #: ../src/guestfs-actions.pod:4223 ../src/guestfs-actions.pod:4366
10963 #: ../src/guestfs-actions.pod:5469 ../src/guestfs-actions.pod:6257
10964 #: ../src/guestfs-actions.pod:6706 ../src/guestfs-actions.pod:6736
10965 #: ../src/guestfs-actions.pod:6769 ../src/guestfs-actions.pod:7968
10966 msgid ""
10967 "B<This command is dangerous.  Without careful use you can easily destroy all "
10968 "your data>."
10969 msgstr ""
10970
10971 #. type: =head2
10972 #: ../fish/guestfish-actions.pod:2812
10973 msgid "luks-format-cipher"
10974 msgstr "luks-format-cipher"
10975
10976 #. type: verbatim
10977 #: ../fish/guestfish-actions.pod:2814
10978 #, no-wrap
10979 msgid ""
10980 " luks-format-cipher device keyslot cipher\n"
10981 "\n"
10982 msgstr ""
10983
10984 #. type: textblock
10985 #: ../fish/guestfish-actions.pod:2816
10986 msgid ""
10987 "This command is the same as L</luks-format> but it also allows you to set "
10988 "the C<cipher> used."
10989 msgstr ""
10990
10991 #. type: =head2
10992 #: ../fish/guestfish-actions.pod:2825
10993 msgid "luks-kill-slot"
10994 msgstr "luks-kill-slot"
10995
10996 #. type: verbatim
10997 #: ../fish/guestfish-actions.pod:2827
10998 #, no-wrap
10999 msgid ""
11000 " luks-kill-slot device keyslot\n"
11001 "\n"
11002 msgstr ""
11003
11004 #. type: textblock
11005 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4240
11006 msgid ""
11007 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11008 "device C<device>.  C<key> must be one of the I<other> keys."
11009 msgstr ""
11010
11011 #. type: =head2
11012 #: ../fish/guestfish-actions.pod:2836
11013 msgid "luks-open"
11014 msgstr "luks-open"
11015
11016 #. type: verbatim
11017 #: ../fish/guestfish-actions.pod:2838
11018 #, no-wrap
11019 msgid ""
11020 " luks-open device mapname\n"
11021 "\n"
11022 msgstr ""
11023
11024 #. type: textblock
11025 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4260
11026 msgid ""
11027 "This command opens a block device which has been encrypted according to the "
11028 "Linux Unified Key Setup (LUKS) standard."
11029 msgstr ""
11030
11031 #. type: textblock
11032 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4263
11033 msgid "C<device> is the encrypted block device or partition."
11034 msgstr ""
11035
11036 #. type: textblock
11037 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4265
11038 msgid ""
11039 "The caller must supply one of the keys associated with the LUKS block "
11040 "device, in the C<key> parameter."
11041 msgstr ""
11042
11043 #. type: textblock
11044 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4268
11045 msgid ""
11046 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
11047 "writes to this block device are decrypted from and encrypted to the "
11048 "underlying C<device> respectively."
11049 msgstr ""
11050
11051 #. type: textblock
11052 #: ../fish/guestfish-actions.pod:2852
11053 msgid ""
11054 "If this block device contains LVM volume groups, then calling L</vgscan> "
11055 "followed by L</vg-activate-all> will make them visible."
11056 msgstr ""
11057
11058 #. type: textblock
11059 #: ../fish/guestfish-actions.pod:2856
11060 msgid "Use L</list-dm-devices> to list all device mapper devices."
11061 msgstr ""
11062
11063 #. type: =head2
11064 #: ../fish/guestfish-actions.pod:2862
11065 msgid "luks-open-ro"
11066 msgstr "luks-open-ro"
11067
11068 #. type: verbatim
11069 #: ../fish/guestfish-actions.pod:2864
11070 #, no-wrap
11071 msgid ""
11072 " luks-open-ro device mapname\n"
11073 "\n"
11074 msgstr ""
11075
11076 #. type: textblock
11077 #: ../fish/guestfish-actions.pod:2866
11078 msgid ""
11079 "This is the same as L</luks-open> except that a read-only mapping is created."
11080 msgstr ""
11081
11082 #. type: =head2
11083 #: ../fish/guestfish-actions.pod:2872
11084 msgid "lvcreate"
11085 msgstr "lvcreate"
11086
11087 #. type: verbatim
11088 #: ../fish/guestfish-actions.pod:2874
11089 #, no-wrap
11090 msgid ""
11091 " lvcreate logvol volgroup mbytes\n"
11092 "\n"
11093 msgstr ""
11094
11095 #. type: textblock
11096 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4314
11097 msgid ""
11098 "This creates an LVM logical volume called C<logvol> on the volume group "
11099 "C<volgroup>, with C<size> megabytes."
11100 msgstr ""
11101
11102 #. type: =head2
11103 #: ../fish/guestfish-actions.pod:2879
11104 msgid "lvm-canonical-lv-name"
11105 msgstr "lvm-canonical-lv-name"
11106
11107 #. type: verbatim
11108 #: ../fish/guestfish-actions.pod:2881
11109 #, no-wrap
11110 msgid ""
11111 " lvm-canonical-lv-name lvname\n"
11112 "\n"
11113 msgstr ""
11114
11115 #. type: textblock
11116 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4327
11117 msgid ""
11118 "This converts alternative naming schemes for LVs that you might find to the "
11119 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
11120 "LV>."
11121 msgstr ""
11122
11123 #. type: textblock
11124 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4331
11125 msgid ""
11126 "This command returns an error if the C<lvname> parameter does not refer to a "
11127 "logical volume."
11128 msgstr ""
11129
11130 #. type: textblock
11131 #: ../fish/guestfish-actions.pod:2890
11132 msgid "See also L</is-lv>."
11133 msgstr "Див. також L</is-lv>."
11134
11135 #. type: =head2
11136 #: ../fish/guestfish-actions.pod:2892
11137 msgid "lvm-clear-filter"
11138 msgstr "lvm-clear-filter"
11139
11140 #. type: verbatim
11141 #: ../fish/guestfish-actions.pod:2894
11142 #, no-wrap
11143 msgid ""
11144 " lvm-clear-filter\n"
11145 "\n"
11146 msgstr ""
11147 " lvm-clear-filter\n"
11148 "\n"
11149
11150 #. type: textblock
11151 #: ../fish/guestfish-actions.pod:2896
11152 msgid ""
11153 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
11154 "block device."
11155 msgstr ""
11156
11157 #. type: textblock
11158 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930
11159 #: ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:4391
11160 msgid ""
11161 "This command also clears the LVM cache and performs a volume group scan."
11162 msgstr ""
11163
11164 #. type: =head2
11165 #: ../fish/guestfish-actions.pod:2902
11166 msgid "lvm-remove-all"
11167 msgstr "lvm-remove-all"
11168
11169 #. type: verbatim
11170 #: ../fish/guestfish-actions.pod:2904
11171 #, no-wrap
11172 msgid ""
11173 " lvm-remove-all\n"
11174 "\n"
11175 msgstr ""
11176 " lvm-remove-all\n"
11177 "\n"
11178
11179 #. type: textblock
11180 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4361
11181 msgid ""
11182 "This command removes all LVM logical volumes, volume groups and physical "
11183 "volumes."
11184 msgstr ""
11185
11186 #. type: =head2
11187 #: ../fish/guestfish-actions.pod:2912
11188 msgid "lvm-set-filter"
11189 msgstr "lvm-set-filter"
11190
11191 #. type: verbatim
11192 #: ../fish/guestfish-actions.pod:2914
11193 #, no-wrap
11194 msgid ""
11195 " lvm-set-filter 'devices ...'\n"
11196 "\n"
11197 msgstr ""
11198 " lvm-set-filter 'пристрої...'\n"
11199 "\n"
11200
11201 #. type: textblock
11202 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4377
11203 msgid ""
11204 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11205 "block devices in the list C<devices>, and will ignore all other attached "
11206 "block devices."
11207 msgstr ""
11208
11209 #. type: textblock
11210 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4381
11211 msgid ""
11212 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11213 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
11214 "there are two types of duplication possible: either cloned PVs/VGs which "
11215 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11216 "same name.  In normal operation you cannot create this situation, but you "
11217 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
11218 "inside the LVM metadata."
11219 msgstr ""
11220
11221 #. type: textblock
11222 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4394
11223 msgid "You can filter whole block devices or individual partitions."
11224 msgstr ""
11225
11226 #. type: textblock
11227 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4396
11228 msgid ""
11229 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
11230 "filesystem), even if you are not filtering out that VG."
11231 msgstr ""
11232
11233 #. type: =head2
11234 #: ../fish/guestfish-actions.pod:2939
11235 msgid "lvremove"
11236 msgstr "lvremove"
11237
11238 #. type: verbatim
11239 #: ../fish/guestfish-actions.pod:2941
11240 #, no-wrap
11241 msgid ""
11242 " lvremove device\n"
11243 "\n"
11244 msgstr ""
11245 " lvremove пристрій\n"
11246 "\n"
11247
11248 #. type: textblock
11249 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4410
11250 msgid ""
11251 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11252 "LV, such as C</dev/VG/LV>."
11253 msgstr ""
11254
11255 #. type: textblock
11256 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4413
11257 msgid ""
11258 "You can also remove all LVs in a volume group by specifying the VG name, C</"
11259 "dev/VG>."
11260 msgstr ""
11261
11262 #. type: =head2
11263 #: ../fish/guestfish-actions.pod:2949
11264 msgid "lvrename"
11265 msgstr "lvrename"
11266
11267 #. type: verbatim
11268 #: ../fish/guestfish-actions.pod:2951
11269 #, no-wrap
11270 msgid ""
11271 " lvrename logvol newlogvol\n"
11272 "\n"
11273 msgstr ""
11274
11275 #. type: textblock
11276 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4427
11277 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11278 msgstr ""
11279
11280 #. type: =head2
11281 #: ../fish/guestfish-actions.pod:2955
11282 msgid "lvresize"
11283 msgstr "lvresize"
11284
11285 #. type: verbatim
11286 #: ../fish/guestfish-actions.pod:2957
11287 #, no-wrap
11288 msgid ""
11289 " lvresize device mbytes\n"
11290 "\n"
11291 msgstr ""
11292
11293 #. type: textblock
11294 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4440
11295 msgid ""
11296 "This resizes (expands or shrinks) an existing LVM logical volume to "
11297 "C<mbytes>.  When reducing, data in the reduced part is lost."
11298 msgstr ""
11299
11300 #. type: =head2
11301 #: ../fish/guestfish-actions.pod:2963
11302 msgid "lvresize-free"
11303 msgstr "lvresize-free"
11304
11305 #. type: verbatim
11306 #: ../fish/guestfish-actions.pod:2965
11307 #, no-wrap
11308 msgid ""
11309 " lvresize-free lv percent\n"
11310 "\n"
11311 msgstr ""
11312
11313 #. type: textblock
11314 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4455
11315 msgid ""
11316 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11317 "remaining free space in the volume group.  Commonly you would call this with "
11318 "pc = 100 which expands the logical volume as much as possible, using all "
11319 "remaining free space in the volume group."
11320 msgstr ""
11321
11322 #. type: =head2
11323 #: ../fish/guestfish-actions.pod:2973
11324 msgid "lvs"
11325 msgstr "lvs"
11326
11327 #. type: verbatim
11328 #: ../fish/guestfish-actions.pod:2975
11329 #, no-wrap
11330 msgid ""
11331 " lvs\n"
11332 "\n"
11333 msgstr ""
11334 " lvs\n"
11335 "\n"
11336
11337 #. type: textblock
11338 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4470
11339 msgid ""
11340 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11341 "(8)> command."
11342 msgstr ""
11343
11344 #. type: textblock
11345 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4473
11346 msgid ""
11347 "This returns a list of the logical volume device names (eg. C</dev/"
11348 "VolGroup00/LogVol00>)."
11349 msgstr ""
11350
11351 #. type: textblock
11352 #: ../fish/guestfish-actions.pod:2983
11353 msgid "See also L</lvs-full>, L</list-filesystems>."
11354 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
11355
11356 #. type: =head2
11357 #: ../fish/guestfish-actions.pod:2985
11358 msgid "lvs-full"
11359 msgstr "lvs-full"
11360
11361 #. type: verbatim
11362 #: ../fish/guestfish-actions.pod:2987
11363 #, no-wrap
11364 msgid ""
11365 " lvs-full\n"
11366 "\n"
11367 msgstr ""
11368 " lvs-full\n"
11369 "\n"
11370
11371 #. type: textblock
11372 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4489
11373 msgid ""
11374 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11375 "(8)> command.  The \"full\" version includes all fields."
11376 msgstr ""
11377
11378 #. type: =head2
11379 #: ../fish/guestfish-actions.pod:2992
11380 msgid "lvuuid"
11381 msgstr "lvuuid"
11382
11383 #. type: verbatim
11384 #: ../fish/guestfish-actions.pod:2994
11385 #, no-wrap
11386 msgid ""
11387 " lvuuid device\n"
11388 "\n"
11389 msgstr ""
11390 " lvuuid пристрій\n"
11391 "\n"
11392
11393 #. type: textblock
11394 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4504
11395 msgid "This command returns the UUID of the LVM LV C<device>."
11396 msgstr ""
11397
11398 #. type: =head2
11399 #: ../fish/guestfish-actions.pod:2998
11400 msgid "lxattrlist"
11401 msgstr "lxattrlist"
11402
11403 #. type: verbatim
11404 #: ../fish/guestfish-actions.pod:3000
11405 #, no-wrap
11406 msgid ""
11407 " lxattrlist path 'names ...'\n"
11408 "\n"
11409 msgstr ""
11410
11411 #. type: textblock
11412 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4518
11413 msgid ""
11414 "This call allows you to get the extended attributes of multiple files, where "
11415 "all files are in the directory C<path>.  C<names> is the list of files from "
11416 "this directory."
11417 msgstr ""
11418
11419 #. type: textblock
11420 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4522
11421 msgid ""
11422 "On return you get a flat list of xattr structs which must be interpreted "
11423 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11424 "C<attrval> in this struct is zero-length to indicate there was an error "
11425 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11426 "number (the number of following attributes for this file, which could be C<"
11427 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11428 "for the first named file.  This repeats for the second and subsequent files."
11429 msgstr ""
11430
11431 #. type: textblock
11432 #: ../fish/guestfish-actions.pod:3016
11433 msgid ""
11434 "This call is intended for programs that want to efficiently list a directory "
11435 "contents without making many round-trips.  See also L</lstatlist> for a "
11436 "similarly efficient call for getting standard stats.  Very long directory "
11437 "listings might cause the protocol message size to be exceeded, causing this "
11438 "call to fail.  The caller must split up such requests into smaller groups of "
11439 "names."
11440 msgstr ""
11441
11442 #. type: =head2
11443 #: ../fish/guestfish-actions.pod:3024
11444 msgid "mkdir"
11445 msgstr "mkdir"
11446
11447 #. type: verbatim
11448 #: ../fish/guestfish-actions.pod:3026
11449 #, no-wrap
11450 msgid ""
11451 " mkdir path\n"
11452 "\n"
11453 msgstr ""
11454 " mkdir шлях\n"
11455 "\n"
11456
11457 #. type: textblock
11458 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4552
11459 msgid "Create a directory named C<path>."
11460 msgstr ""
11461
11462 #. type: =head2
11463 #: ../fish/guestfish-actions.pod:3030
11464 msgid "mkdir-mode"
11465 msgstr "mkdir-mode"
11466
11467 #. type: verbatim
11468 #: ../fish/guestfish-actions.pod:3032
11469 #, no-wrap
11470 msgid ""
11471 " mkdir-mode path mode\n"
11472 "\n"
11473 msgstr ""
11474 " mkdir-mode шлях режим\n"
11475 "\n"
11476
11477 #. type: textblock
11478 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4565
11479 msgid ""
11480 "This command creates a directory, setting the initial permissions of the "
11481 "directory to C<mode>."
11482 msgstr ""
11483
11484 #. type: textblock
11485 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4568
11486 msgid ""
11487 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11488 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11489 "other ways."
11490 msgstr ""
11491
11492 #. type: textblock
11493 #: ../fish/guestfish-actions.pod:3041
11494 msgid "See also L</mkdir>, L</umask>"
11495 msgstr "Див. також L</mkdir>, L</umask>"
11496
11497 #. type: =head2
11498 #: ../fish/guestfish-actions.pod:3043
11499 msgid "mkdir-p"
11500 msgstr "mkdir-p"
11501
11502 #. type: verbatim
11503 #: ../fish/guestfish-actions.pod:3045
11504 #, no-wrap
11505 msgid ""
11506 " mkdir-p path\n"
11507 "\n"
11508 msgstr ""
11509 " mkdir-p шлях\n"
11510 "\n"
11511
11512 #. type: textblock
11513 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4584
11514 msgid ""
11515 "Create a directory named C<path>, creating any parent directories as "
11516 "necessary.  This is like the C<mkdir -p> shell command."
11517 msgstr ""
11518
11519 #. type: =head2
11520 #: ../fish/guestfish-actions.pod:3050
11521 msgid "mkdtemp"
11522 msgstr "mkdtemp"
11523
11524 #. type: verbatim
11525 #: ../fish/guestfish-actions.pod:3052
11526 #, no-wrap
11527 msgid ""
11528 " mkdtemp template\n"
11529 "\n"
11530 msgstr ""
11531 " mkdtemp шаблон\n"
11532 "\n"
11533
11534 #. type: textblock
11535 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4597
11536 msgid ""
11537 "This command creates a temporary directory.  The C<template> parameter "
11538 "should be a full pathname for the temporary directory name with the final "
11539 "six characters being \"XXXXXX\"."
11540 msgstr ""
11541
11542 #. type: textblock
11543 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4602
11544 msgid ""
11545 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11546 "being suitable for Windows filesystems."
11547 msgstr ""
11548
11549 #. type: textblock
11550 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4605
11551 msgid "The name of the temporary directory that was created is returned."
11552 msgstr ""
11553
11554 #. type: textblock
11555 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4608
11556 msgid "The temporary directory is created with mode 0700 and is owned by root."
11557 msgstr ""
11558
11559 #. type: textblock
11560 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4611
11561 msgid ""
11562 "The caller is responsible for deleting the temporary directory and its "
11563 "contents after use."
11564 msgstr ""
11565
11566 #. type: textblock
11567 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4614
11568 msgid "See also: L<mkdtemp(3)>"
11569 msgstr ""
11570
11571 #. type: =head2
11572 #: ../fish/guestfish-actions.pod:3073
11573 msgid "mke2fs-J"
11574 msgstr "mke2fs-J"
11575
11576 #. type: verbatim
11577 #: ../fish/guestfish-actions.pod:3075
11578 #, no-wrap
11579 msgid ""
11580 " mke2fs-J fstype blocksize device journal\n"
11581 "\n"
11582 msgstr ""
11583
11584 #. type: textblock
11585 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4630
11586 msgid ""
11587 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11588 "C<journal>.  It is equivalent to the command:"
11589 msgstr ""
11590
11591 #. type: verbatim
11592 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4634
11593 #, no-wrap
11594 msgid ""
11595 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11596 "\n"
11597 msgstr ""
11598 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11599 "\n"
11600
11601 #. type: textblock
11602 #: ../fish/guestfish-actions.pod:3083
11603 msgid "See also L</mke2journal>."
11604 msgstr "Див. також L</mke2journal>."
11605
11606 #. type: =head2
11607 #: ../fish/guestfish-actions.pod:3085
11608 msgid "mke2fs-JL"
11609 msgstr "mke2fs-JL"
11610
11611 #. type: verbatim
11612 #: ../fish/guestfish-actions.pod:3087
11613 #, no-wrap
11614 msgid ""
11615 " mke2fs-JL fstype blocksize device label\n"
11616 "\n"
11617 msgstr ""
11618
11619 #. type: textblock
11620 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4651
11621 msgid ""
11622 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11623 "the journal labeled C<label>."
11624 msgstr ""
11625
11626 #. type: textblock
11627 #: ../fish/guestfish-actions.pod:3092
11628 msgid "See also L</mke2journal-L>."
11629 msgstr "Див. також L</mke2journal-L>."
11630
11631 #. type: =head2
11632 #: ../fish/guestfish-actions.pod:3094
11633 msgid "mke2fs-JU"
11634 msgstr "mke2fs-JU"
11635
11636 #. type: verbatim
11637 #: ../fish/guestfish-actions.pod:3096
11638 #, no-wrap
11639 msgid ""
11640 " mke2fs-JU fstype blocksize device uuid\n"
11641 "\n"
11642 msgstr ""
11643
11644 #. type: textblock
11645 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4669
11646 msgid ""
11647 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11648 "the journal with UUID C<uuid>."
11649 msgstr ""
11650
11651 #. type: textblock
11652 #: ../fish/guestfish-actions.pod:3101
11653 msgid "See also L</mke2journal-U>."
11654 msgstr "Див. також L</mke2journal-U>."
11655
11656 #. type: =head2
11657 #: ../fish/guestfish-actions.pod:3103
11658 msgid "mke2journal"
11659 msgstr "mke2journal"
11660
11661 #. type: verbatim
11662 #: ../fish/guestfish-actions.pod:3105
11663 #, no-wrap
11664 msgid ""
11665 " mke2journal blocksize device\n"
11666 "\n"
11667 msgstr ""
11668
11669 #. type: textblock
11670 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4685
11671 msgid ""
11672 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11673 "command:"
11674 msgstr ""
11675
11676 #. type: verbatim
11677 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4688
11678 #, no-wrap
11679 msgid ""
11680 " mke2fs -O journal_dev -b blocksize device\n"
11681 "\n"
11682 msgstr ""
11683
11684 #. type: =head2
11685 #: ../fish/guestfish-actions.pod:3112
11686 msgid "mke2journal-L"
11687 msgstr "mke2journal-L"
11688
11689 #. type: verbatim
11690 #: ../fish/guestfish-actions.pod:3114
11691 #, no-wrap
11692 msgid ""
11693 " mke2journal-L blocksize label device\n"
11694 "\n"
11695 msgstr ""
11696
11697 #. type: textblock
11698 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4702
11699 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11700 msgstr ""
11701
11702 #. type: =head2
11703 #: ../fish/guestfish-actions.pod:3118
11704 msgid "mke2journal-U"
11705 msgstr "mke2journal-U"
11706
11707 #. type: verbatim
11708 #: ../fish/guestfish-actions.pod:3120
11709 #, no-wrap
11710 msgid ""
11711 " mke2journal-U blocksize uuid device\n"
11712 "\n"
11713 msgstr ""
11714
11715 #. type: textblock
11716 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4716
11717 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11718 msgstr ""
11719
11720 #. type: =head2
11721 #: ../fish/guestfish-actions.pod:3124
11722 msgid "mkfifo"
11723 msgstr "mkfifo"
11724
11725 #. type: verbatim
11726 #: ../fish/guestfish-actions.pod:3126
11727 #, no-wrap
11728 msgid ""
11729 " mkfifo mode path\n"
11730 "\n"
11731 msgstr ""
11732 " mkfifo режим шлях\n"
11733 "\n"
11734
11735 #. type: textblock
11736 #: ../fish/guestfish-actions.pod:3128
11737 msgid ""
11738 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11739 "is just a convenient wrapper around L</mknod>."
11740 msgstr ""
11741
11742 #. type: =head2
11743 #: ../fish/guestfish-actions.pod:3134
11744 msgid "mkfs"
11745 msgstr "mkfs"
11746
11747 #. type: verbatim
11748 #: ../fish/guestfish-actions.pod:3136
11749 #, no-wrap
11750 msgid ""
11751 " mkfs fstype device\n"
11752 "\n"
11753 msgstr ""
11754 " mkfs тип_файлової_системи пристрій\n"
11755 "\n"
11756
11757 #. type: textblock
11758 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4746
11759 msgid ""
11760 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11761 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11762 msgstr ""
11763
11764 #. type: =head2
11765 #: ../fish/guestfish-actions.pod:3142
11766 msgid "mkfs-b"
11767 msgstr "mkfs-b"
11768
11769 #. type: verbatim
11770 #: ../fish/guestfish-actions.pod:3144
11771 #, no-wrap
11772 msgid ""
11773 " mkfs-b fstype blocksize device\n"
11774 "\n"
11775 msgstr ""
11776
11777 #. type: textblock
11778 #: ../fish/guestfish-actions.pod:3146
11779 msgid ""
11780 "This call is similar to L</mkfs>, but it allows you to control the block "
11781 "size of the resulting filesystem.  Supported block sizes depend on the "
11782 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11783 msgstr ""
11784
11785 #. type: textblock
11786 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178
11787 #: ../src/guestfs-actions.pod:4774 ../src/guestfs-actions.pod:4812
11788 msgid ""
11789 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11790 "cluster size."
11791 msgstr ""
11792
11793 #. type: textblock
11794 #: ../fish/guestfish-actions.pod:3154
11795 msgid ""
11796 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11797 "instead."
11798 msgstr ""
11799
11800 #. type: =head2
11801 #: ../fish/guestfish-actions.pod:3161
11802 msgid "mkfs-opts"
11803 msgstr "mkfs-opts"
11804
11805 #. type: verbatim
11806 #: ../fish/guestfish-actions.pod:3163
11807 #, no-wrap
11808 msgid ""
11809 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11810 "\n"
11811 msgstr ""
11812
11813 #. type: textblock
11814 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4799
11815 msgid ""
11816 "This function creates a filesystem on C<device>.  The filesystem type is "
11817 "C<fstype>, for example C<ext3>."
11818 msgstr ""
11819
11820 #. type: =item
11821 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4806
11822 msgid "C<blocksize>"
11823 msgstr "C<blocksize>"
11824
11825 #. type: textblock
11826 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4808
11827 msgid ""
11828 "The filesystem block size.  Supported block sizes depend on the filesystem "
11829 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11830 "filesystems."
11831 msgstr ""
11832
11833 #. type: textblock
11834 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4815
11835 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11836 msgstr ""
11837
11838 #. type: =item
11839 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4817
11840 msgid "C<features>"
11841 msgstr "C<features>"
11842
11843 #. type: textblock
11844 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4819
11845 msgid "This passes the I<-O> parameter to the external mkfs program."
11846 msgstr ""
11847
11848 #. type: textblock
11849 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4821
11850 msgid ""
11851 "For certain filesystem types, this allows extra filesystem features to be "
11852 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11853 msgstr ""
11854
11855 #. type: textblock
11856 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4825
11857 msgid ""
11858 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11859 "type."
11860 msgstr ""
11861
11862 #. type: =item
11863 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4828
11864 msgid "C<inode>"
11865 msgstr ""
11866
11867 #. type: textblock
11868 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4830
11869 msgid ""
11870 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11871 "sets the inode size (only for ext2/3/4 filesystems at present)."
11872 msgstr ""
11873
11874 #. type: =item
11875 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4833
11876 msgid "C<sectorsize>"
11877 msgstr ""
11878
11879 #. type: textblock
11880 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4835
11881 msgid ""
11882 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11883 "sets sector size for ufs filesystem."
11884 msgstr ""
11885
11886 #. type: =head2
11887 #: ../fish/guestfish-actions.pod:3208
11888 msgid "mkmountpoint"
11889 msgstr "mkmountpoint"
11890
11891 #. type: verbatim
11892 #: ../fish/guestfish-actions.pod:3210
11893 #, no-wrap
11894 msgid ""
11895 " mkmountpoint exemptpath\n"
11896 "\n"
11897 msgstr ""
11898
11899 #. type: textblock
11900 #: ../fish/guestfish-actions.pod:3212
11901 msgid ""
11902 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11903 "to create extra mountpoints before mounting the first filesystem."
11904 msgstr ""
11905
11906 #. type: textblock
11907 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4878
11908 msgid ""
11909 "These calls are I<only> necessary in some very limited circumstances, mainly "
11910 "the case where you want to mount a mix of unrelated and/or read-only "
11911 "filesystems together."
11912 msgstr ""
11913
11914 #. type: textblock
11915 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4882
11916 msgid ""
11917 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11918 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11919 "inside that.  You can unpack this as follows in guestfish:"
11920 msgstr ""
11921
11922 #. type: verbatim
11923 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4887
11924 #, no-wrap
11925 msgid ""
11926 " add-ro Fedora-11-i686-Live.iso\n"
11927 " run\n"
11928 " mkmountpoint /cd\n"
11929 " mkmountpoint /sqsh\n"
11930 " mkmountpoint /ext3fs\n"
11931 " mount /dev/sda /cd\n"
11932 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11933 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11934 "\n"
11935 msgstr ""
11936 " add-ro Fedora-11-i686-Live.iso\n"
11937 " run\n"
11938 " mkmountpoint /cd\n"
11939 " mkmountpoint /sqsh\n"
11940 " mkmountpoint /ext3fs\n"
11941 " mount /dev/sda /cd\n"
11942 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11943 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11944 "\n"
11945
11946 #. type: textblock
11947 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4896
11948 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11949 msgstr ""
11950
11951 #. type: textblock
11952 #: ../fish/guestfish-actions.pod:3236
11953 msgid ""
11954 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
11955 "unexpected errors if you try to mix these calls.  It is safest to manually "
11956 "unmount filesystems and remove mountpoints after use."
11957 msgstr ""
11958
11959 #. type: textblock
11960 #: ../fish/guestfish-actions.pod:3240
11961 msgid ""
11962 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11963 "for this to work for manual mountpoints, you must ensure that the innermost "
11964 "mountpoints have the longest pathnames, as in the example code above."
11965 msgstr ""
11966
11967 #. type: textblock
11968 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4907
11969 msgid ""
11970 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11971 msgstr ""
11972
11973 #. type: textblock
11974 #: ../fish/guestfish-actions.pod:3247
11975 msgid ""
11976 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11977 "L</umount-all> to be called when the handle is closed which can also trigger "
11978 "these issues."
11979 msgstr ""
11980
11981 #. type: =head2
11982 #: ../fish/guestfish-actions.pod:3251
11983 msgid "mknod"
11984 msgstr "mknod"
11985
11986 #. type: verbatim
11987 #: ../fish/guestfish-actions.pod:3253
11988 #, no-wrap
11989 msgid ""
11990 " mknod mode devmajor devminor path\n"
11991 "\n"
11992 msgstr ""
11993
11994 #. type: textblock
11995 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4926
11996 msgid ""
11997 "This call creates block or character special devices, or named pipes (FIFOs)."
11998 msgstr ""
11999
12000 #. type: textblock
12001 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4929
12002 msgid ""
12003 "The C<mode> parameter should be the mode, using the standard constants.  "
12004 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12005 "used when creating block and character special devices."
12006 msgstr ""
12007
12008 #. type: textblock
12009 #: ../fish/guestfish-actions.pod:3263
12010 msgid ""
12011 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12012 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12013 "regular file).  These constants are available in the standard Linux header "
12014 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12015 "wrappers around this command which bitwise OR in the appropriate constant "
12016 "for you."
12017 msgstr ""
12018
12019 #. type: =head2
12020 #: ../fish/guestfish-actions.pod:3273
12021 msgid "mknod-b"
12022 msgstr "mknod-b"
12023
12024 #. type: verbatim
12025 #: ../fish/guestfish-actions.pod:3275
12026 #, no-wrap
12027 msgid ""
12028 " mknod-b mode devmajor devminor path\n"
12029 "\n"
12030 msgstr ""
12031
12032 #. type: textblock
12033 #: ../fish/guestfish-actions.pod:3277
12034 msgid ""
12035 "This call creates a block device node called C<path> with mode C<mode> and "
12036 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12037 "wrapper around L</mknod>."
12038 msgstr ""
12039
12040 #. type: =head2
12041 #: ../fish/guestfish-actions.pod:3283
12042 msgid "mknod-c"
12043 msgstr "mknod-c"
12044
12045 #. type: verbatim
12046 #: ../fish/guestfish-actions.pod:3285
12047 #, no-wrap
12048 msgid ""
12049 " mknod-c mode devmajor devminor path\n"
12050 "\n"
12051 msgstr ""
12052
12053 #. type: textblock
12054 #: ../fish/guestfish-actions.pod:3287
12055 msgid ""
12056 "This call creates a char device node called C<path> with mode C<mode> and "
12057 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12058 "wrapper around L</mknod>."
12059 msgstr ""
12060
12061 #. type: =head2
12062 #: ../fish/guestfish-actions.pod:3293
12063 msgid "mkswap"
12064 msgstr "mkswap"
12065
12066 #. type: verbatim
12067 #: ../fish/guestfish-actions.pod:3295
12068 #, no-wrap
12069 msgid ""
12070 " mkswap device\n"
12071 "\n"
12072 msgstr ""
12073 " mkswap пристрій\n"
12074 "\n"
12075
12076 #. type: textblock
12077 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4992
12078 msgid "Create a swap partition on C<device>."
12079 msgstr ""
12080
12081 #. type: =head2
12082 #: ../fish/guestfish-actions.pod:3299
12083 msgid "mkswap-L"
12084 msgstr "mkswap-L"
12085
12086 #. type: verbatim
12087 #: ../fish/guestfish-actions.pod:3301
12088 #, no-wrap
12089 msgid ""
12090 " mkswap-L label device\n"
12091 "\n"
12092 msgstr ""
12093 " mkswap-L мітка пристрій\n"
12094 "\n"
12095
12096 #. type: textblock
12097 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5005
12098 msgid "Create a swap partition on C<device> with label C<label>."
12099 msgstr ""
12100
12101 #. type: textblock
12102 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5007
12103 msgid ""
12104 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
12105 "sda>), just to a partition.  This appears to be a limitation of the kernel "
12106 "or swap tools."
12107 msgstr ""
12108
12109 #. type: =head2
12110 #: ../fish/guestfish-actions.pod:3309
12111 msgid "mkswap-U"
12112 msgstr "mkswap-U"
12113
12114 #. type: verbatim
12115 #: ../fish/guestfish-actions.pod:3311
12116 #, no-wrap
12117 msgid ""
12118 " mkswap-U uuid device\n"
12119 "\n"
12120 msgstr ""
12121 " mkswap-U uuid пристрій\n"
12122 "\n"
12123
12124 #. type: textblock
12125 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5022
12126 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12127 msgstr ""
12128
12129 #. type: =head2
12130 #: ../fish/guestfish-actions.pod:3315
12131 msgid "mkswap-file"
12132 msgstr "mkswap-file"
12133
12134 #. type: verbatim
12135 #: ../fish/guestfish-actions.pod:3317
12136 #, no-wrap
12137 msgid ""
12138 " mkswap-file path\n"
12139 "\n"
12140 msgstr ""
12141 " mkswap-file шлях\n"
12142 "\n"
12143
12144 #. type: textblock
12145 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5034
12146 msgid "Create a swap file."
12147 msgstr "Створити файл резервної пам’яті."
12148
12149 #. type: textblock
12150 #: ../fish/guestfish-actions.pod:3321
12151 msgid ""
12152 "This command just writes a swap file signature to an existing file.  To "
12153 "create the file itself, use something like L</fallocate>."
12154 msgstr ""
12155
12156 #. type: =head2
12157 #: ../fish/guestfish-actions.pod:3324
12158 msgid "modprobe"
12159 msgstr "modprobe"
12160
12161 #. type: verbatim
12162 #: ../fish/guestfish-actions.pod:3326
12163 #, no-wrap
12164 msgid ""
12165 " modprobe modulename\n"
12166 "\n"
12167 msgstr ""
12168 " modprobe назва_модуля\n"
12169 "\n"
12170
12171 #. type: textblock
12172 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5049
12173 msgid "This loads a kernel module in the appliance."
12174 msgstr ""
12175
12176 #. type: textblock
12177 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5051
12178 msgid ""
12179 "The kernel module must have been whitelisted when libguestfs was built (see "
12180 "C<appliance/kmod.whitelist.in> in the source)."
12181 msgstr ""
12182
12183 #. type: =head2
12184 #: ../fish/guestfish-actions.pod:3333
12185 msgid "mount"
12186 msgstr "mount"
12187
12188 #. type: verbatim
12189 #: ../fish/guestfish-actions.pod:3335
12190 #, no-wrap
12191 msgid ""
12192 " mount device mountpoint\n"
12193 "\n"
12194 msgstr ""
12195 " mount пристрій точка_монтування\n"
12196 "\n"
12197
12198 #. type: textblock
12199 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5072
12200 msgid ""
12201 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12202 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12203 "those block devices contain partitions, they will have the usual names (eg. "
12204 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12205 msgstr ""
12206
12207 #. type: textblock
12208 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5078
12209 msgid ""
12210 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12211 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12212 "mounted on directories which already exist."
12213 msgstr ""
12214
12215 #. type: textblock
12216 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5083
12217 msgid ""
12218 "The mounted filesystem is writable, if we have sufficient permissions on the "
12219 "underlying device."
12220 msgstr ""
12221
12222 #. type: textblock
12223 #: ../fish/guestfish-actions.pod:3351
12224 msgid ""
12225 "B<Important note:> When you use this call, the filesystem options C<sync> "
12226 "and C<noatime> are set implicitly.  This was originally done because we "
12227 "thought it would improve reliability, but it turns out that I<-o sync> has a "
12228 "very large negative performance impact and negligible effect on "
12229 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
12230 "code that needs performance, and instead use L</mount-options> (use an empty "
12231 "string for the first parameter if you don't want any options)."
12232 msgstr ""
12233
12234 #. type: textblock
12235 #: ../fish/guestfish-actions.pod:3361
12236 msgid ""
12237 "I<This function is deprecated.> In new code, use the L</mount_options> call "
12238 "instead."
12239 msgstr ""
12240
12241 #. type: =head2
12242 #: ../fish/guestfish-actions.pod:3368
12243 msgid "mount-9p"
12244 msgstr ""
12245
12246 #. type: verbatim
12247 #: ../fish/guestfish-actions.pod:3370
12248 #, no-wrap
12249 msgid ""
12250 " mount-9p mounttag mountpoint [options:..]\n"
12251 "\n"
12252 msgstr ""
12253
12254 #. type: textblock
12255 #: ../fish/guestfish-actions.pod:3372 ../src/guestfs-actions.pod:5115
12256 msgid ""
12257 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12258 "C<mountpoint>."
12259 msgstr ""
12260
12261 #. type: textblock
12262 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5118
12263 msgid ""
12264 "If required, C<trans=virtio> will be automatically added to the options.  "
12265 "Any other options required can be passed in the optional C<options> "
12266 "parameter."
12267 msgstr ""
12268
12269 #. type: =head2
12270 #: ../fish/guestfish-actions.pod:3381
12271 msgid "mount-loop"
12272 msgstr "mount-loop"
12273
12274 #. type: verbatim
12275 #: ../fish/guestfish-actions.pod:3383
12276 #, no-wrap
12277 msgid ""
12278 " mount-loop file mountpoint\n"
12279 "\n"
12280 msgstr ""
12281
12282 #. type: textblock
12283 #: ../fish/guestfish-actions.pod:3385 ../src/guestfs-actions.pod:5157
12284 msgid ""
12285 "This command lets you mount C<file> (a filesystem image in a file) on a "
12286 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
12287 "mountpoint>."
12288 msgstr ""
12289
12290 #. type: =head2
12291 #: ../fish/guestfish-actions.pod:3389
12292 msgid "mount-options"
12293 msgstr "mount-options"
12294
12295 #. type: verbatim
12296 #: ../fish/guestfish-actions.pod:3391
12297 #, no-wrap
12298 msgid ""
12299 " mount-options options device mountpoint\n"
12300 "\n"
12301 msgstr ""
12302
12303 #. type: textblock
12304 #: ../fish/guestfish-actions.pod:3393
12305 msgid ""
12306 "This is the same as the L</mount> command, but it allows you to set the "
12307 "mount options as for the L<mount(8)> I<-o> flag."
12308 msgstr ""
12309
12310 #. type: textblock
12311 #: ../fish/guestfish-actions.pod:3397 ../src/guestfs-actions.pod:5177
12312 msgid ""
12313 "If the C<options> parameter is an empty string, then no options are passed "
12314 "(all options default to whatever the filesystem uses)."
12315 msgstr ""
12316
12317 #. type: =head2
12318 #: ../fish/guestfish-actions.pod:3401
12319 msgid "mount-ro"
12320 msgstr "mount-ro"
12321
12322 #. type: verbatim
12323 #: ../fish/guestfish-actions.pod:3403
12324 #, no-wrap
12325 msgid ""
12326 " mount-ro device mountpoint\n"
12327 "\n"
12328 msgstr ""
12329 " mount-ro пристрій точка_монтування\n"
12330 "\n"
12331
12332 #. type: textblock
12333 #: ../fish/guestfish-actions.pod:3405
12334 msgid ""
12335 "This is the same as the L</mount> command, but it mounts the filesystem with "
12336 "the read-only (I<-o ro>) flag."
12337 msgstr ""
12338
12339 #. type: =head2
12340 #: ../fish/guestfish-actions.pod:3408
12341 msgid "mount-vfs"
12342 msgstr "mount-vfs"
12343
12344 #. type: verbatim
12345 #: ../fish/guestfish-actions.pod:3410
12346 #, no-wrap
12347 msgid ""
12348 " mount-vfs options vfstype device mountpoint\n"
12349 "\n"
12350 msgstr ""
12351
12352 #. type: textblock
12353 #: ../fish/guestfish-actions.pod:3412
12354 msgid ""
12355 "This is the same as the L</mount> command, but it allows you to set both the "
12356 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12357 msgstr ""
12358
12359 #. type: =head2
12360 #: ../fish/guestfish-actions.pod:3416
12361 msgid "mountpoints"
12362 msgstr "mountpoints"
12363
12364 #. type: verbatim
12365 #: ../fish/guestfish-actions.pod:3418
12366 #, no-wrap
12367 msgid ""
12368 " mountpoints\n"
12369 "\n"
12370 msgstr ""
12371 " mountpoints\n"
12372 "\n"
12373
12374 #. type: textblock
12375 #: ../fish/guestfish-actions.pod:3420
12376 msgid ""
12377 "This call is similar to L</mounts>.  That call returns a list of devices.  "
12378 "This one returns a hash table (map) of device name to directory where the "
12379 "device is mounted."
12380 msgstr ""
12381
12382 #. type: =head2
12383 #: ../fish/guestfish-actions.pod:3424
12384 msgid "mounts"
12385 msgstr "mounts"
12386
12387 #. type: verbatim
12388 #: ../fish/guestfish-actions.pod:3426
12389 #, no-wrap
12390 msgid ""
12391 " mounts\n"
12392 "\n"
12393 msgstr ""
12394 " mounts\n"
12395 "\n"
12396
12397 #. type: textblock
12398 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5238
12399 msgid ""
12400 "This returns the list of currently mounted filesystems.  It returns the list "
12401 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12402 msgstr ""
12403
12404 #. type: textblock
12405 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5241
12406 msgid "Some internal mounts are not shown."
12407 msgstr ""
12408
12409 #. type: textblock
12410 #: ../fish/guestfish-actions.pod:3433
12411 msgid "See also: L</mountpoints>"
12412 msgstr "Див. також L</mountpoints>"
12413
12414 #. type: =head2
12415 #: ../fish/guestfish-actions.pod:3435
12416 msgid "mv"
12417 msgstr "mv"
12418
12419 #. type: verbatim
12420 #: ../fish/guestfish-actions.pod:3437
12421 #, no-wrap
12422 msgid ""
12423 " mv src dest\n"
12424 "\n"
12425 msgstr ""
12426 " mv джерело призначення\n"
12427 "\n"
12428
12429 #. type: textblock
12430 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5258
12431 msgid ""
12432 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12433 "destination filename or destination directory."
12434 msgstr ""
12435
12436 #. type: =head2
12437 #: ../fish/guestfish-actions.pod:3442
12438 msgid "ntfs-3g-probe"
12439 msgstr "ntfs-3g-probe"
12440
12441 #. type: verbatim
12442 #: ../fish/guestfish-actions.pod:3444
12443 #, no-wrap
12444 msgid ""
12445 " ntfs-3g-probe true|false device\n"
12446 "\n"
12447 msgstr ""
12448
12449 #. type: textblock
12450 #: ../fish/guestfish-actions.pod:3446 ../src/guestfs-actions.pod:5272
12451 msgid ""
12452 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12453 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12454 "write, and some cannot be mounted at all)."
12455 msgstr ""
12456
12457 #. type: textblock
12458 #: ../fish/guestfish-actions.pod:3450 ../src/guestfs-actions.pod:5276
12459 msgid ""
12460 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12461 "can be mounted read-write.  Set it to false if you want to test if the "
12462 "volume can be mounted read-only."
12463 msgstr ""
12464
12465 #. type: textblock
12466 #: ../fish/guestfish-actions.pod:3454 ../src/guestfs-actions.pod:5280
12467 msgid ""
12468 "The return value is an integer which C<0> if the operation would succeed, or "
12469 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12470 msgstr ""
12471
12472 #. type: =head2
12473 #: ../fish/guestfish-actions.pod:3458
12474 msgid "ntfsresize"
12475 msgstr "ntfsresize"
12476
12477 #. type: verbatim
12478 #: ../fish/guestfish-actions.pod:3460
12479 #, no-wrap
12480 msgid ""
12481 " ntfsresize device\n"
12482 "\n"
12483 msgstr ""
12484 " ntfsresize пристрій\n"
12485 "\n"
12486
12487 #. type: textblock
12488 #: ../fish/guestfish-actions.pod:3462 ../fish/guestfish-actions.pod:3486
12489 #: ../src/guestfs-actions.pod:5301 ../src/guestfs-actions.pod:5333
12490 msgid ""
12491 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12492 "size of the underlying device."
12493 msgstr ""
12494
12495 #. type: textblock
12496 #: ../fish/guestfish-actions.pod:3465 ../src/guestfs-actions.pod:5304
12497 msgid ""
12498 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12499 "consistency check (for safety).  You have to boot into Windows to perform "
12500 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12501 "resize filesystems which have been marked in this way.  So in effect it is "
12502 "not possible to call ntfsresize multiple times on a single filesystem "
12503 "without booting into Windows between each resize."
12504 msgstr ""
12505
12506 #. type: textblock
12507 #: ../fish/guestfish-actions.pod:3473 ../fish/guestfish-actions.pod:3512
12508 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5359
12509 msgid "See also L<ntfsresize(8)>."
12510 msgstr ""
12511
12512 #. type: textblock
12513 #: ../fish/guestfish-actions.pod:3475 ../fish/guestfish-actions.pod:3523
12514 msgid ""
12515 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12516 "call instead."
12517 msgstr ""
12518
12519 #. type: =head2
12520 #: ../fish/guestfish-actions.pod:3482
12521 msgid "ntfsresize-opts"
12522 msgstr ""
12523
12524 #. type: verbatim
12525 #: ../fish/guestfish-actions.pod:3484
12526 #, no-wrap
12527 msgid ""
12528 " ntfsresize-opts device [size:..] [force:..]\n"
12529 "\n"
12530 msgstr ""
12531
12532 #. type: textblock
12533 #: ../fish/guestfish-actions.pod:3495 ../src/guestfs-actions.pod:5342
12534 msgid ""
12535 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12536 "resized to fit the container (eg. partition)."
12537 msgstr ""
12538
12539 #. type: =item
12540 #: ../fish/guestfish-actions.pod:3498 ../src/guestfs-actions.pod:5345
12541 msgid "C<force>"
12542 msgstr ""
12543
12544 #. type: textblock
12545 #: ../fish/guestfish-actions.pod:3500 ../src/guestfs-actions.pod:5347
12546 msgid ""
12547 "If this option is true, then force the resize of the filesystem even if the "
12548 "filesystem is marked as requiring a consistency check."
12549 msgstr ""
12550
12551 #. type: textblock
12552 #: ../fish/guestfish-actions.pod:3503
12553 msgid ""
12554 "After the resize operation, the filesystem is always marked as requiring a "
12555 "consistency check (for safety).  You have to boot into Windows to perform "
12556 "this check and clear this condition.  If you I<don't> set the C<force> "
12557 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12558 "a single filesystem without booting into Windows between each resize."
12559 msgstr ""
12560
12561 #. type: =head2
12562 #: ../fish/guestfish-actions.pod:3516
12563 msgid "ntfsresize-size"
12564 msgstr "ntfsresize-size"
12565
12566 #. type: verbatim
12567 #: ../fish/guestfish-actions.pod:3518
12568 #, no-wrap
12569 msgid ""
12570 " ntfsresize-size device size\n"
12571 "\n"
12572 msgstr ""
12573
12574 #. type: textblock
12575 #: ../fish/guestfish-actions.pod:3520
12576 msgid ""
12577 "This command is the same as L</ntfsresize> except that it allows you to "
12578 "specify the new size (in bytes) explicitly."
12579 msgstr ""
12580
12581 #. type: =head2
12582 #: ../fish/guestfish-actions.pod:3530
12583 msgid "part-add"
12584 msgstr "part-add"
12585
12586 #. type: verbatim
12587 #: ../fish/guestfish-actions.pod:3532
12588 #, no-wrap
12589 msgid ""
12590 " part-add device prlogex startsect endsect\n"
12591 "\n"
12592 msgstr ""
12593
12594 #. type: textblock
12595 #: ../fish/guestfish-actions.pod:3534
12596 msgid ""
12597 "This command adds a partition to C<device>.  If there is no partition table "
12598 "on the device, call L</part-init> first."
12599 msgstr ""
12600
12601 #. type: textblock
12602 #: ../fish/guestfish-actions.pod:3537 ../src/guestfs-actions.pod:5420
12603 msgid ""
12604 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12605 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12606 "C<logical>) and C<e> (or C<extended>) partition types."
12607 msgstr ""
12608
12609 #. type: textblock
12610 #: ../fish/guestfish-actions.pod:3542 ../src/guestfs-actions.pod:5425
12611 msgid ""
12612 "C<startsect> and C<endsect> are the start and end of the partition in "
12613 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12614 "from the end of the disk (C<-1> is the last sector)."
12615 msgstr ""
12616
12617 #. type: textblock
12618 #: ../fish/guestfish-actions.pod:3546
12619 msgid ""
12620 "Creating a partition which covers the whole disk is not so easy.  Use L</"
12621 "part-disk> to do that."
12622 msgstr ""
12623
12624 #. type: =head2
12625 #: ../fish/guestfish-actions.pod:3549
12626 msgid "part-del"
12627 msgstr "part-del"
12628
12629 #. type: verbatim
12630 #: ../fish/guestfish-actions.pod:3551
12631 #, no-wrap
12632 msgid ""
12633 " part-del device partnum\n"
12634 "\n"
12635 msgstr ""
12636
12637 #. type: textblock
12638 #: ../fish/guestfish-actions.pod:3553 ../src/guestfs-actions.pod:5443
12639 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12640 msgstr ""
12641
12642 #. type: textblock
12643 #: ../fish/guestfish-actions.pod:3555 ../src/guestfs-actions.pod:5445
12644 msgid ""
12645 "Note that in the case of MBR partitioning, deleting an extended partition "
12646 "also deletes any logical partitions it contains."
12647 msgstr ""
12648
12649 #. type: =head2
12650 #: ../fish/guestfish-actions.pod:3559
12651 msgid "part-disk"
12652 msgstr "part-disk"
12653
12654 #. type: verbatim
12655 #: ../fish/guestfish-actions.pod:3561
12656 #, no-wrap
12657 msgid ""
12658 " part-disk device parttype\n"
12659 "\n"
12660 msgstr ""
12661 " part-disk пристрій тип_розділу\n"
12662 "\n"
12663
12664 #. type: textblock
12665 #: ../fish/guestfish-actions.pod:3563
12666 msgid ""
12667 "This command is simply a combination of L</part-init> followed by L</part-"
12668 "add> to create a single primary partition covering the whole disk."
12669 msgstr ""
12670
12671 #. type: textblock
12672 #: ../fish/guestfish-actions.pod:3567
12673 msgid ""
12674 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12675 "possible values are described in L</part-init>."
12676 msgstr ""
12677
12678 #. type: =head2
12679 #: ../fish/guestfish-actions.pod:3573
12680 msgid "part-get-bootable"
12681 msgstr "part-get-bootable"
12682
12683 #. type: verbatim
12684 #: ../fish/guestfish-actions.pod:3575
12685 #, no-wrap
12686 msgid ""
12687 " part-get-bootable device partnum\n"
12688 "\n"
12689 msgstr ""
12690
12691 #. type: textblock
12692 #: ../fish/guestfish-actions.pod:3577 ../src/guestfs-actions.pod:5481
12693 msgid ""
12694 "This command returns true if the partition C<partnum> on C<device> has the "
12695 "bootable flag set."
12696 msgstr ""
12697
12698 #. type: textblock
12699 #: ../fish/guestfish-actions.pod:3580
12700 msgid "See also L</part-set-bootable>."
12701 msgstr "Див. також L</part-set-bootable>."
12702
12703 #. type: =head2
12704 #: ../fish/guestfish-actions.pod:3582
12705 msgid "part-get-mbr-id"
12706 msgstr "part-get-mbr-id"
12707
12708 #. type: verbatim
12709 #: ../fish/guestfish-actions.pod:3584
12710 #, no-wrap
12711 msgid ""
12712 " part-get-mbr-id device partnum\n"
12713 "\n"
12714 msgstr ""
12715
12716 #. type: textblock
12717 #: ../fish/guestfish-actions.pod:3586 ../src/guestfs-actions.pod:5497
12718 msgid ""
12719 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12720 "partition C<partnum>."
12721 msgstr ""
12722
12723 #. type: textblock
12724 #: ../fish/guestfish-actions.pod:3589 ../fish/guestfish-actions.pod:3733
12725 msgid ""
12726 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12727 "undefined results for other partition table types (see L</part-get-"
12728 "parttype>)."
12729 msgstr ""
12730
12731 #. type: =head2
12732 #: ../fish/guestfish-actions.pod:3593
12733 msgid "part-get-parttype"
12734 msgstr "part-get-parttype"
12735
12736 #. type: verbatim
12737 #: ../fish/guestfish-actions.pod:3595
12738 #, no-wrap
12739 msgid ""
12740 " part-get-parttype device\n"
12741 "\n"
12742 msgstr ""
12743 " part-get-parttype пристрій\n"
12744 "\n"
12745
12746 #. type: textblock
12747 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5514
12748 msgid ""
12749 "This command examines the partition table on C<device> and returns the "
12750 "partition table type (format) being used."
12751 msgstr ""
12752
12753 #. type: textblock
12754 #: ../fish/guestfish-actions.pod:3600
12755 msgid ""
12756 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12757 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12758 "possible, although unusual.  See L</part-init> for a full list."
12759 msgstr ""
12760
12761 #. type: =head2
12762 #: ../fish/guestfish-actions.pod:3605
12763 msgid "part-init"
12764 msgstr "part-init"
12765
12766 #. type: verbatim
12767 #: ../fish/guestfish-actions.pod:3607
12768 #, no-wrap
12769 msgid ""
12770 " part-init device parttype\n"
12771 "\n"
12772 msgstr ""
12773
12774 #. type: textblock
12775 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5534
12776 msgid ""
12777 "This creates an empty partition table on C<device> of one of the partition "
12778 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12779 "(for large disks)."
12780 msgstr ""
12781
12782 #. type: textblock
12783 #: ../fish/guestfish-actions.pod:3613
12784 msgid ""
12785 "Initially there are no partitions.  Following this, you should call L</part-"
12786 "add> for each partition required."
12787 msgstr ""
12788
12789 #. type: textblock
12790 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5541
12791 msgid "Possible values for C<parttype> are:"
12792 msgstr ""
12793
12794 #. type: =item
12795 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5545
12796 msgid "B<efi>"
12797 msgstr ""
12798
12799 #. type: =item
12800 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5547
12801 msgid "B<gpt>"
12802 msgstr ""
12803
12804 #. type: textblock
12805 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5549
12806 msgid "Intel EFI / GPT partition table."
12807 msgstr ""
12808
12809 #. type: textblock
12810 #: ../fish/guestfish-actions.pod:3626 ../src/guestfs-actions.pod:5551
12811 msgid ""
12812 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12813 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12814 "the C<mbr> format."
12815 msgstr ""
12816
12817 #. type: =item
12818 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5555
12819 msgid "B<mbr>"
12820 msgstr ""
12821
12822 #. type: =item
12823 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5557
12824 msgid "B<msdos>"
12825 msgstr ""
12826
12827 #. type: textblock
12828 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5559
12829 msgid ""
12830 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12831 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12832 "TB.  For large disks we recommend using C<gpt>."
12833 msgstr ""
12834
12835 #. type: textblock
12836 #: ../fish/guestfish-actions.pod:3641 ../src/guestfs-actions.pod:5566
12837 msgid ""
12838 "Other partition table types that may work but are not supported include:"
12839 msgstr ""
12840
12841 #. type: =item
12842 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5571
12843 msgid "B<aix>"
12844 msgstr "B<aix>"
12845
12846 #. type: textblock
12847 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5573
12848 msgid "AIX disk labels."
12849 msgstr "Мітки дисків AIX."
12850
12851 #. type: =item
12852 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5575
12853 #, fuzzy
12854 #| msgid "B<amiga> | B<rdb>"
12855 msgid "B<amiga>"
12856 msgstr "B<amiga> | B<rdb>"
12857
12858 #. type: =item
12859 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5577
12860 msgid "B<rdb>"
12861 msgstr ""
12862
12863 #. type: textblock
12864 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5579
12865 msgid "Amiga \"Rigid Disk Block\" format."
12866 msgstr "Формат \"Rigid Disk Block\" Amiga."
12867
12868 #. type: =item
12869 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5581
12870 msgid "B<bsd>"
12871 msgstr "B<bsd>"
12872
12873 #. type: textblock
12874 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5583
12875 msgid "BSD disk labels."
12876 msgstr "Мітки дисків BSD."
12877
12878 #. type: =item
12879 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5585
12880 msgid "B<dasd>"
12881 msgstr "B<dasd>"
12882
12883 #. type: textblock
12884 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5587
12885 msgid "DASD, used on IBM mainframes."
12886 msgstr "DASD, використовувалися у мейнфреймах IBM."
12887
12888 #. type: =item
12889 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5589
12890 msgid "B<dvh>"
12891 msgstr "B<dvh>"
12892
12893 #. type: textblock
12894 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5591
12895 msgid "MIPS/SGI volumes."
12896 msgstr "Томи MIPS/SGI."
12897
12898 #. type: =item
12899 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5593
12900 msgid "B<mac>"
12901 msgstr "B<mac>"
12902
12903 #. type: textblock
12904 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5595
12905 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12906 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12907
12908 #. type: =item
12909 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5597
12910 msgid "B<pc98>"
12911 msgstr "B<pc98>"
12912
12913 #. type: textblock
12914 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5599
12915 msgid "NEC PC-98 format, common in Japan apparently."
12916 msgstr "Формат NEC PC-98, поширений у Японії."
12917
12918 #. type: =item
12919 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5601
12920 msgid "B<sun>"
12921 msgstr "B<sun>"
12922
12923 #. type: textblock
12924 #: ../fish/guestfish-actions.pod:3678 ../src/guestfs-actions.pod:5603
12925 msgid "Sun disk labels."
12926 msgstr "Мітки дисків Sun."
12927
12928 #. type: =head2
12929 #: ../fish/guestfish-actions.pod:3682
12930 msgid "part-list"
12931 msgstr "part-list"
12932
12933 #. type: verbatim
12934 #: ../fish/guestfish-actions.pod:3684
12935 #, no-wrap
12936 msgid ""
12937 " part-list device\n"
12938 "\n"
12939 msgstr ""
12940 " part-list device\n"
12941 "\n"
12942
12943 #. type: textblock
12944 #: ../fish/guestfish-actions.pod:3686 ../src/guestfs-actions.pod:5617
12945 msgid ""
12946 "This command parses the partition table on C<device> and returns the list of "
12947 "partitions found."
12948 msgstr ""
12949
12950 #. type: textblock
12951 #: ../fish/guestfish-actions.pod:3689 ../src/guestfs-actions.pod:5620
12952 msgid "The fields in the returned structure are:"
12953 msgstr ""
12954
12955 #. type: =item
12956 #: ../fish/guestfish-actions.pod:3693 ../src/guestfs-actions.pod:5624
12957 msgid "B<part_num>"
12958 msgstr "B<part_num>"
12959
12960 #. type: textblock
12961 #: ../fish/guestfish-actions.pod:3695 ../src/guestfs-actions.pod:5626
12962 msgid "Partition number, counting from 1."
12963 msgstr ""
12964
12965 #. type: =item
12966 #: ../fish/guestfish-actions.pod:3697 ../src/guestfs-actions.pod:5628
12967 msgid "B<part_start>"
12968 msgstr "B<part_start>"
12969
12970 #. type: textblock
12971 #: ../fish/guestfish-actions.pod:3699
12972 msgid ""
12973 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12974 "the device's sector size, see L</blockdev-getss>."
12975 msgstr ""
12976
12977 #. type: =item
12978 #: ../fish/guestfish-actions.pod:3702 ../src/guestfs-actions.pod:5633
12979 msgid "B<part_end>"
12980 msgstr "B<part_end>"
12981
12982 #. type: textblock
12983 #: ../fish/guestfish-actions.pod:3704 ../src/guestfs-actions.pod:5635
12984 msgid "End of the partition in bytes."
12985 msgstr ""
12986
12987 #. type: =item
12988 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5637
12989 msgid "B<part_size>"
12990 msgstr "B<part_size>"
12991
12992 #. type: textblock
12993 #: ../fish/guestfish-actions.pod:3708 ../src/guestfs-actions.pod:5639
12994 msgid "Size of the partition in bytes."
12995 msgstr ""
12996
12997 #. type: =head2
12998 #: ../fish/guestfish-actions.pod:3712
12999 msgid "part-set-bootable"
13000 msgstr "part-set-bootable"
13001
13002 #. type: verbatim
13003 #: ../fish/guestfish-actions.pod:3714
13004 #, no-wrap
13005 msgid ""
13006 " part-set-bootable device partnum true|false\n"
13007 "\n"
13008 msgstr ""
13009
13010 #. type: textblock
13011 #: ../fish/guestfish-actions.pod:3716 ../src/guestfs-actions.pod:5657
13012 msgid ""
13013 "This sets the bootable flag on partition numbered C<partnum> on device "
13014 "C<device>.  Note that partitions are numbered from 1."
13015 msgstr ""
13016
13017 #. type: textblock
13018 #: ../fish/guestfish-actions.pod:3719 ../src/guestfs-actions.pod:5660
13019 msgid ""
13020 "The bootable flag is used by some operating systems (notably Windows) to "
13021 "determine which partition to boot from.  It is by no means universally "
13022 "recognized."
13023 msgstr ""
13024
13025 #. type: =head2
13026 #: ../fish/guestfish-actions.pod:3723
13027 msgid "part-set-mbr-id"
13028 msgstr "part-set-mbr-id"
13029
13030 #. type: verbatim
13031 #: ../fish/guestfish-actions.pod:3725
13032 #, no-wrap
13033 msgid ""
13034 " part-set-mbr-id device partnum idbyte\n"
13035 "\n"
13036 msgstr ""
13037
13038 #. type: textblock
13039 #: ../fish/guestfish-actions.pod:3727 ../src/guestfs-actions.pod:5676
13040 msgid ""
13041 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13042 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13043 "documentation are in fact hexadecimal numbers, but usually documented "
13044 "without any leading \"0x\" which might be confusing."
13045 msgstr ""
13046
13047 #. type: =head2
13048 #: ../fish/guestfish-actions.pod:3737
13049 msgid "part-set-name"
13050 msgstr "part-set-name"
13051
13052 #. type: verbatim
13053 #: ../fish/guestfish-actions.pod:3739
13054 #, no-wrap
13055 msgid ""
13056 " part-set-name device partnum name\n"
13057 "\n"
13058 msgstr ""
13059
13060 #. type: textblock
13061 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5698
13062 msgid ""
13063 "This sets the partition name on partition numbered C<partnum> on device "
13064 "C<device>.  Note that partitions are numbered from 1."
13065 msgstr ""
13066
13067 #. type: textblock
13068 #: ../fish/guestfish-actions.pod:3744 ../src/guestfs-actions.pod:5701
13069 msgid ""
13070 "The partition name can only be set on certain types of partition table.  "
13071 "This works on C<gpt> but not on C<mbr> partitions."
13072 msgstr ""
13073
13074 #. type: =head2
13075 #: ../fish/guestfish-actions.pod:3747
13076 msgid "part-to-dev"
13077 msgstr "part-to-dev"
13078
13079 #. type: verbatim
13080 #: ../fish/guestfish-actions.pod:3749
13081 #, no-wrap
13082 msgid ""
13083 " part-to-dev partition\n"
13084 "\n"
13085 msgstr ""
13086 " part-to-dev розділ\n"
13087 "\n"
13088
13089 #. type: textblock
13090 #: ../fish/guestfish-actions.pod:3751 ../src/guestfs-actions.pod:5714
13091 msgid ""
13092 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13093 "partition number, returning the device name (eg. \"/dev/sdb\")."
13094 msgstr ""
13095
13096 #. type: textblock
13097 #: ../fish/guestfish-actions.pod:3755
13098 msgid ""
13099 "The named partition must exist, for example as a string returned from L</"
13100 "list-partitions>."
13101 msgstr ""
13102
13103 #. type: =head2
13104 #: ../fish/guestfish-actions.pod:3758
13105 msgid "ping-daemon"
13106 msgstr "ping-daemon"
13107
13108 #. type: verbatim
13109 #: ../fish/guestfish-actions.pod:3760
13110 #, no-wrap
13111 msgid ""
13112 " ping-daemon\n"
13113 "\n"
13114 msgstr ""
13115 " ping-daemon\n"
13116 "\n"
13117
13118 #. type: textblock
13119 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5731
13120 msgid ""
13121 "This is a test probe into the guestfs daemon running inside the qemu "
13122 "subprocess.  Calling this function checks that the daemon responds to the "
13123 "ping message, without affecting the daemon or attached block device(s) in "
13124 "any other way."
13125 msgstr ""
13126
13127 #. type: =head2
13128 #: ../fish/guestfish-actions.pod:3767
13129 msgid "pread"
13130 msgstr "pread"
13131
13132 #. type: verbatim
13133 #: ../fish/guestfish-actions.pod:3769
13134 #, no-wrap
13135 msgid ""
13136 " pread path count offset\n"
13137 "\n"
13138 msgstr ""
13139
13140 #. type: textblock
13141 #: ../fish/guestfish-actions.pod:3771 ../src/guestfs-actions.pod:5749
13142 msgid ""
13143 "This command lets you read part of a file.  It reads C<count> bytes of the "
13144 "file, starting at C<offset>, from file C<path>."
13145 msgstr ""
13146
13147 #. type: textblock
13148 #: ../fish/guestfish-actions.pod:3774 ../fish/guestfish-actions.pod:3789
13149 #: ../src/guestfs-actions.pod:5752 ../src/guestfs-actions.pod:5778
13150 msgid ""
13151 "This may read fewer bytes than requested.  For further details see the "
13152 "L<pread(2)> system call."
13153 msgstr ""
13154
13155 #. type: textblock
13156 #: ../fish/guestfish-actions.pod:3777
13157 msgid "See also L</pwrite>, L</pread-device>."
13158 msgstr "Див. також L</pwrite>, L</pread-device>."
13159
13160 #. type: =head2
13161 #: ../fish/guestfish-actions.pod:3782
13162 msgid "pread-device"
13163 msgstr "pread-device"
13164
13165 #. type: verbatim
13166 #: ../fish/guestfish-actions.pod:3784
13167 #, no-wrap
13168 msgid ""
13169 " pread-device device count offset\n"
13170 "\n"
13171 msgstr ""
13172
13173 #. type: textblock
13174 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5775
13175 msgid ""
13176 "This command lets you read part of a file.  It reads C<count> bytes of "
13177 "C<device>, starting at C<offset>."
13178 msgstr ""
13179
13180 #. type: textblock
13181 #: ../fish/guestfish-actions.pod:3792
13182 msgid "See also L</pread>."
13183 msgstr "Див. також L</pread>."
13184
13185 #. type: =head2
13186 #: ../fish/guestfish-actions.pod:3797
13187 msgid "pvcreate"
13188 msgstr "pvcreate"
13189
13190 #. type: verbatim
13191 #: ../fish/guestfish-actions.pod:3799
13192 #, no-wrap
13193 msgid ""
13194 " pvcreate device\n"
13195 "\n"
13196 msgstr ""
13197 " pvcreate пристрій\n"
13198 "\n"
13199
13200 #. type: textblock
13201 #: ../fish/guestfish-actions.pod:3801 ../src/guestfs-actions.pod:5798
13202 msgid ""
13203 "This creates an LVM physical volume on the named C<device>, where C<device> "
13204 "should usually be a partition name such as C</dev/sda1>."
13205 msgstr ""
13206
13207 #. type: =head2
13208 #: ../fish/guestfish-actions.pod:3805
13209 msgid "pvremove"
13210 msgstr "pvremove"
13211
13212 #. type: verbatim
13213 #: ../fish/guestfish-actions.pod:3807
13214 #, no-wrap
13215 msgid ""
13216 " pvremove device\n"
13217 "\n"
13218 msgstr ""
13219 " pvremove пристрій\n"
13220 "\n"
13221
13222 #. type: textblock
13223 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5812
13224 msgid ""
13225 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13226 "it."
13227 msgstr ""
13228
13229 #. type: textblock
13230 #: ../fish/guestfish-actions.pod:3812 ../src/guestfs-actions.pod:5815
13231 msgid ""
13232 "The implementation uses the C<pvremove> command which refuses to wipe "
13233 "physical volumes that contain any volume groups, so you have to remove those "
13234 "first."
13235 msgstr ""
13236
13237 #. type: =head2
13238 #: ../fish/guestfish-actions.pod:3816
13239 msgid "pvresize"
13240 msgstr "pvresize"
13241
13242 #. type: verbatim
13243 #: ../fish/guestfish-actions.pod:3818
13244 #, no-wrap
13245 msgid ""
13246 " pvresize device\n"
13247 "\n"
13248 msgstr ""
13249 " pvresize пристрій\n"
13250 "\n"
13251
13252 #. type: textblock
13253 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5829
13254 msgid ""
13255 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13256 "the new size of the underlying device."
13257 msgstr ""
13258
13259 #. type: =head2
13260 #: ../fish/guestfish-actions.pod:3823
13261 msgid "pvresize-size"
13262 msgstr "pvresize-size"
13263
13264 #. type: verbatim
13265 #: ../fish/guestfish-actions.pod:3825
13266 #, no-wrap
13267 msgid ""
13268 " pvresize-size device size\n"
13269 "\n"
13270 msgstr ""
13271
13272 #. type: textblock
13273 #: ../fish/guestfish-actions.pod:3827
13274 msgid ""
13275 "This command is the same as L</pvresize> except that it allows you to "
13276 "specify the new size (in bytes) explicitly."
13277 msgstr ""
13278
13279 #. type: =head2
13280 #: ../fish/guestfish-actions.pod:3830
13281 msgid "pvs"
13282 msgstr "pvs"
13283
13284 #. type: verbatim
13285 #: ../fish/guestfish-actions.pod:3832
13286 #, no-wrap
13287 msgid ""
13288 " pvs\n"
13289 "\n"
13290 msgstr ""
13291 " pvs\n"
13292 "\n"
13293
13294 #. type: textblock
13295 #: ../fish/guestfish-actions.pod:3834 ../src/guestfs-actions.pod:5855
13296 msgid ""
13297 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13298 "(8)> command."
13299 msgstr ""
13300
13301 #. type: textblock
13302 #: ../fish/guestfish-actions.pod:3837 ../src/guestfs-actions.pod:5858
13303 msgid ""
13304 "This returns a list of just the device names that contain PVs (eg. C</dev/"
13305 "sda2>)."
13306 msgstr ""
13307
13308 #. type: textblock
13309 #: ../fish/guestfish-actions.pod:3840
13310 msgid "See also L</pvs-full>."
13311 msgstr "Див. також L</pvs-full>."
13312
13313 #. type: =head2
13314 #: ../fish/guestfish-actions.pod:3842
13315 msgid "pvs-full"
13316 msgstr "pvs-full"
13317
13318 #. type: verbatim
13319 #: ../fish/guestfish-actions.pod:3844
13320 #, no-wrap
13321 msgid ""
13322 " pvs-full\n"
13323 "\n"
13324 msgstr ""
13325 " pvs-full\n"
13326 "\n"
13327
13328 #. type: textblock
13329 #: ../fish/guestfish-actions.pod:3846 ../src/guestfs-actions.pod:5874
13330 msgid ""
13331 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13332 "(8)> command.  The \"full\" version includes all fields."
13333 msgstr ""
13334
13335 #. type: =head2
13336 #: ../fish/guestfish-actions.pod:3849
13337 msgid "pvuuid"
13338 msgstr "pvuuid"
13339
13340 #. type: verbatim
13341 #: ../fish/guestfish-actions.pod:3851
13342 #, no-wrap
13343 msgid ""
13344 " pvuuid device\n"
13345 "\n"
13346 msgstr ""
13347 " pvuuid пристрій\n"
13348 "\n"
13349
13350 #. type: textblock
13351 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5889
13352 msgid "This command returns the UUID of the LVM PV C<device>."
13353 msgstr ""
13354
13355 #. type: =head2
13356 #: ../fish/guestfish-actions.pod:3855
13357 msgid "pwrite"
13358 msgstr "pwrite"
13359
13360 #. type: verbatim
13361 #: ../fish/guestfish-actions.pod:3857
13362 #, no-wrap
13363 msgid ""
13364 " pwrite path content offset\n"
13365 "\n"
13366 msgstr ""
13367
13368 #. type: textblock
13369 #: ../fish/guestfish-actions.pod:3859 ../src/guestfs-actions.pod:5905
13370 msgid ""
13371 "This command writes to part of a file.  It writes the data buffer C<content> "
13372 "to the file C<path> starting at offset C<offset>."
13373 msgstr ""
13374
13375 #. type: textblock
13376 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:5908
13377 msgid ""
13378 "This command implements the L<pwrite(2)> system call, and like that system "
13379 "call it may not write the full data requested.  The return value is the "
13380 "number of bytes that were actually written to the file.  This could even be "
13381 "0, although short writes are unlikely for regular files in ordinary "
13382 "circumstances."
13383 msgstr ""
13384
13385 #. type: textblock
13386 #: ../fish/guestfish-actions.pod:3868
13387 msgid "See also L</pread>, L</pwrite-device>."
13388 msgstr "Див. також L</pread>, L</pwrite-device>."
13389
13390 #. type: =head2
13391 #: ../fish/guestfish-actions.pod:3873
13392 msgid "pwrite-device"
13393 msgstr "pwrite-device"
13394
13395 #. type: verbatim
13396 #: ../fish/guestfish-actions.pod:3875
13397 #, no-wrap
13398 msgid ""
13399 " pwrite-device device content offset\n"
13400 "\n"
13401 msgstr ""
13402
13403 #. type: textblock
13404 #: ../fish/guestfish-actions.pod:3877 ../src/guestfs-actions.pod:5932
13405 msgid ""
13406 "This command writes to part of a device.  It writes the data buffer "
13407 "C<content> to C<device> starting at offset C<offset>."
13408 msgstr ""
13409
13410 #. type: textblock
13411 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:5935
13412 msgid ""
13413 "This command implements the L<pwrite(2)> system call, and like that system "
13414 "call it may not write the full data requested (although short writes to disk "
13415 "devices and partitions are probably impossible with standard Linux kernels)."
13416 msgstr ""
13417
13418 #. type: textblock
13419 #: ../fish/guestfish-actions.pod:3885
13420 msgid "See also L</pwrite>."
13421 msgstr "Див. також L</pwrite>."
13422
13423 #. type: =head2
13424 #: ../fish/guestfish-actions.pod:3890
13425 msgid "read-file"
13426 msgstr "read-file"
13427
13428 #. type: verbatim
13429 #: ../fish/guestfish-actions.pod:3892
13430 #, no-wrap
13431 msgid ""
13432 " read-file path\n"
13433 "\n"
13434 msgstr ""
13435 " read-file шлях\n"
13436 "\n"
13437
13438 #. type: textblock
13439 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:5956
13440 msgid "This calls returns the contents of the file C<path> as a buffer."
13441 msgstr ""
13442
13443 #. type: textblock
13444 #: ../fish/guestfish-actions.pod:3897
13445 msgid ""
13446 "Unlike L</cat>, this function can correctly handle files that contain "
13447 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13448 "is limited in the total size of file that can be handled."
13449 msgstr ""
13450
13451 #. type: =head2
13452 #: ../fish/guestfish-actions.pod:3905
13453 msgid "read-lines"
13454 msgstr "read-lines"
13455
13456 #. type: verbatim
13457 #: ../fish/guestfish-actions.pod:3907
13458 #, no-wrap
13459 msgid ""
13460 " read-lines path\n"
13461 "\n"
13462 msgstr ""
13463 " read-lines шлях\n"
13464 "\n"
13465
13466 #. type: textblock
13467 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:5981
13468 msgid ""
13469 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13470 "C<CRLF> character sequences are I<not> returned."
13471 msgstr ""
13472
13473 #. type: textblock
13474 #: ../fish/guestfish-actions.pod:3914
13475 msgid ""
13476 "Note that this function cannot correctly handle binary files (specifically, "
13477 "files containing C<\\0> character which is treated as end of line).  For "
13478 "those you need to use the L</read-file> function which has a more complex "
13479 "interface."
13480 msgstr ""
13481
13482 #. type: =head2
13483 #: ../fish/guestfish-actions.pod:3919
13484 msgid "readdir"
13485 msgstr "readdir"
13486
13487 #. type: verbatim
13488 #: ../fish/guestfish-actions.pod:3921
13489 #, no-wrap
13490 msgid ""
13491 " readdir dir\n"
13492 "\n"
13493 msgstr ""
13494 " readdir каталог\n"
13495 "\n"
13496
13497 #. type: textblock
13498 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:6001
13499 msgid "This returns the list of directory entries in directory C<dir>."
13500 msgstr ""
13501
13502 #. type: textblock
13503 #: ../fish/guestfish-actions.pod:3925 ../src/guestfs-actions.pod:6003
13504 msgid ""
13505 "All entries in the directory are returned, including C<.> and C<..>.  The "
13506 "entries are I<not> sorted, but returned in the same order as the underlying "
13507 "filesystem."
13508 msgstr ""
13509
13510 #. type: textblock
13511 #: ../fish/guestfish-actions.pod:3929 ../src/guestfs-actions.pod:6007
13512 msgid ""
13513 "Also this call returns basic file type information about each file.  The "
13514 "C<ftyp> field will contain one of the following characters:"
13515 msgstr ""
13516
13517 #. type: =item
13518 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6012
13519 msgid "'b'"
13520 msgstr "'b'"
13521
13522 #. type: textblock
13523 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6014
13524 msgid "Block special"
13525 msgstr "Блоковий особливий"
13526
13527 #. type: =item
13528 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6016
13529 msgid "'c'"
13530 msgstr "'c'"
13531
13532 #. type: textblock
13533 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6018
13534 msgid "Char special"
13535 msgstr "Символьний особливий"
13536
13537 #. type: =item
13538 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6020
13539 msgid "'d'"
13540 msgstr "'d'"
13541
13542 #. type: textblock
13543 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6022
13544 msgid "Directory"
13545 msgstr "Каталог"
13546
13547 #. type: =item
13548 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6024
13549 msgid "'f'"
13550 msgstr "'f'"
13551
13552 #. type: textblock
13553 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6026
13554 msgid "FIFO (named pipe)"
13555 msgstr "FIFO (іменований канал)"
13556
13557 #. type: =item
13558 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6028
13559 msgid "'l'"
13560 msgstr "'l'"
13561
13562 #. type: textblock
13563 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6030
13564 msgid "Symbolic link"
13565 msgstr "Символічне посилання"
13566
13567 #. type: =item
13568 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6032
13569 msgid "'r'"
13570 msgstr "'r'"
13571
13572 #. type: textblock
13573 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6034
13574 msgid "Regular file"
13575 msgstr "Звичайний файл"
13576
13577 #. type: =item
13578 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6036
13579 msgid "'s'"
13580 msgstr "'s'"
13581
13582 #. type: textblock
13583 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6038
13584 msgid "Socket"
13585 msgstr "Сокет"
13586
13587 #. type: =item
13588 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6040
13589 msgid "'u'"
13590 msgstr "'u'"
13591
13592 #. type: textblock
13593 #: ../fish/guestfish-actions.pod:3964 ../src/guestfs-actions.pod:6042
13594 msgid "Unknown file type"
13595 msgstr "Невідомий тип файла"
13596
13597 #. type: =item
13598 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6044
13599 msgid "'?'"
13600 msgstr ""
13601
13602 #. type: textblock
13603 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:6046
13604 msgid ""
13605 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13606 msgstr ""
13607
13608 #. type: textblock
13609 #: ../fish/guestfish-actions.pod:3973
13610 msgid ""
13611 "This function is primarily intended for use by programs.  To get a simple "
13612 "list of names, use L</ls>.  To get a printable directory for human "
13613 "consumption, use L</ll>."
13614 msgstr ""
13615
13616 #. type: =head2
13617 #: ../fish/guestfish-actions.pod:3977
13618 msgid "readlink"
13619 msgstr "readlink"
13620
13621 #. type: verbatim
13622 #: ../fish/guestfish-actions.pod:3979
13623 #, no-wrap
13624 msgid ""
13625 " readlink path\n"
13626 "\n"
13627 msgstr ""
13628 " readlink шлях\n"
13629 "\n"
13630
13631 #. type: textblock
13632 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6067
13633 msgid "This command reads the target of a symbolic link."
13634 msgstr ""
13635
13636 #. type: =head2
13637 #: ../fish/guestfish-actions.pod:3983
13638 msgid "readlinklist"
13639 msgstr "readlinklist"
13640
13641 #. type: verbatim
13642 #: ../fish/guestfish-actions.pod:3985
13643 #, no-wrap
13644 msgid ""
13645 " readlinklist path 'names ...'\n"
13646 "\n"
13647 msgstr ""
13648
13649 #. type: textblock
13650 #: ../fish/guestfish-actions.pod:3987 ../src/guestfs-actions.pod:6081
13651 msgid ""
13652 "This call allows you to do a C<readlink> operation on multiple files, where "
13653 "all files are in the directory C<path>.  C<names> is the list of files from "
13654 "this directory."
13655 msgstr ""
13656
13657 #. type: textblock
13658 #: ../fish/guestfish-actions.pod:3991 ../src/guestfs-actions.pod:6085
13659 msgid ""
13660 "On return you get a list of strings, with a one-to-one correspondence to the "
13661 "C<names> list.  Each string is the value of the symbolic link."
13662 msgstr ""
13663
13664 #. type: textblock
13665 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6089
13666 msgid ""
13667 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13668 "result string is the empty string C<\"\">.  However the whole operation is "
13669 "completed even if there were C<readlink(2)> errors, and so you can call this "
13670 "function with names where you don't know if they are symbolic links already "
13671 "(albeit slightly less efficient)."
13672 msgstr ""
13673
13674 #. type: textblock
13675 #: ../fish/guestfish-actions.pod:4002 ../src/guestfs-actions.pod:6096
13676 msgid ""
13677 "This call is intended for programs that want to efficiently list a directory "
13678 "contents without making many round-trips.  Very long directory listings "
13679 "might cause the protocol message size to be exceeded, causing this call to "
13680 "fail.  The caller must split up such requests into smaller groups of names."
13681 msgstr ""
13682
13683 #. type: =head2
13684 #: ../fish/guestfish-actions.pod:4009
13685 msgid "realpath"
13686 msgstr "realpath"
13687
13688 #. type: verbatim
13689 #: ../fish/guestfish-actions.pod:4011
13690 #, no-wrap
13691 msgid ""
13692 " realpath path\n"
13693 "\n"
13694 msgstr ""
13695 " realpath шлях\n"
13696 "\n"
13697
13698 #. type: textblock
13699 #: ../fish/guestfish-actions.pod:4013 ../src/guestfs-actions.pod:6115
13700 msgid ""
13701 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13702 "has no C<.>, C<..> or symbolic link path elements."
13703 msgstr ""
13704
13705 #. type: =head2
13706 #: ../fish/guestfish-actions.pod:4016
13707 msgid "removexattr"
13708 msgstr "removexattr"
13709
13710 #. type: verbatim
13711 #: ../fish/guestfish-actions.pod:4018
13712 #, no-wrap
13713 msgid ""
13714 " removexattr xattr path\n"
13715 "\n"
13716 msgstr ""
13717
13718 #. type: textblock
13719 #: ../fish/guestfish-actions.pod:4020 ../src/guestfs-actions.pod:6130
13720 msgid ""
13721 "This call removes the extended attribute named C<xattr> of the file C<path>."
13722 msgstr ""
13723
13724 #. type: textblock
13725 #: ../fish/guestfish-actions.pod:4023
13726 msgid "See also: L</lremovexattr>, L<attr(5)>."
13727 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13728
13729 #. type: =head2
13730 #: ../fish/guestfish-actions.pod:4025
13731 msgid "resize2fs"
13732 msgstr "resize2fs"
13733
13734 #. type: verbatim
13735 #: ../fish/guestfish-actions.pod:4027
13736 #, no-wrap
13737 msgid ""
13738 " resize2fs device\n"
13739 "\n"
13740 msgstr ""
13741 " resize2fs пристрій\n"
13742 "\n"
13743
13744 #. type: textblock
13745 #: ../fish/guestfish-actions.pod:4029 ../src/guestfs-actions.pod:6145
13746 msgid ""
13747 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13748 "underlying device."
13749 msgstr ""
13750
13751 #. type: textblock
13752 #: ../fish/guestfish-actions.pod:4032
13753 msgid ""
13754 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13755 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13756 "gives an error about this and sometimes not.  In any case, it is always safe "
13757 "to call L</e2fsck-f> before calling this function."
13758 msgstr ""
13759
13760 #. type: =head2
13761 #: ../fish/guestfish-actions.pod:4038
13762 msgid "resize2fs-M"
13763 msgstr "resize2fs-M"
13764
13765 #. type: verbatim
13766 #: ../fish/guestfish-actions.pod:4040
13767 #, no-wrap
13768 msgid ""
13769 " resize2fs-M device\n"
13770 "\n"
13771 msgstr ""
13772 " resize2fs-M пристрій\n"
13773 "\n"
13774
13775 #. type: textblock
13776 #: ../fish/guestfish-actions.pod:4042
13777 msgid ""
13778 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13779 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13780 "command."
13781 msgstr ""
13782
13783 #. type: textblock
13784 #: ../fish/guestfish-actions.pod:4046
13785 msgid ""
13786 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13787 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13788 "multiplied together, give the resulting size of the minimal filesystem in "
13789 "bytes."
13790 msgstr ""
13791
13792 #. type: =head2
13793 #: ../fish/guestfish-actions.pod:4051
13794 msgid "resize2fs-size"
13795 msgstr "resize2fs-size"
13796
13797 #. type: verbatim
13798 #: ../fish/guestfish-actions.pod:4053
13799 #, no-wrap
13800 msgid ""
13801 " resize2fs-size device size\n"
13802 "\n"
13803 msgstr ""
13804
13805 #. type: textblock
13806 #: ../fish/guestfish-actions.pod:4055
13807 msgid ""
13808 "This command is the same as L</resize2fs> except that it allows you to "
13809 "specify the new size (in bytes) explicitly."
13810 msgstr ""
13811
13812 #. type: =head2
13813 #: ../fish/guestfish-actions.pod:4058
13814 msgid "rm"
13815 msgstr "rm"
13816
13817 #. type: verbatim
13818 #: ../fish/guestfish-actions.pod:4060
13819 #, no-wrap
13820 msgid ""
13821 " rm path\n"
13822 "\n"
13823 msgstr ""
13824 " rm шлях\n"
13825 "\n"
13826
13827 #. type: textblock
13828 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6197
13829 msgid "Remove the single file C<path>."
13830 msgstr ""
13831
13832 #. type: =head2
13833 #: ../fish/guestfish-actions.pod:4064
13834 msgid "rm-rf"
13835 msgstr "rm-rf"
13836
13837 #. type: verbatim
13838 #: ../fish/guestfish-actions.pod:4066
13839 #, no-wrap
13840 msgid ""
13841 " rm-rf path\n"
13842 "\n"
13843 msgstr ""
13844 " rm-rf шлях\n"
13845 "\n"
13846
13847 #. type: textblock
13848 #: ../fish/guestfish-actions.pod:4068 ../src/guestfs-actions.pod:6209
13849 msgid ""
13850 "Remove the file or directory C<path>, recursively removing the contents if "
13851 "its a directory.  This is like the C<rm -rf> shell command."
13852 msgstr ""
13853
13854 #. type: =head2
13855 #: ../fish/guestfish-actions.pod:4072
13856 msgid "rmdir"
13857 msgstr "rmdir"
13858
13859 #. type: verbatim
13860 #: ../fish/guestfish-actions.pod:4074
13861 #, no-wrap
13862 msgid ""
13863 " rmdir path\n"
13864 "\n"
13865 msgstr ""
13866 " rmdir шлях\n"
13867 "\n"
13868
13869 #. type: textblock
13870 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6223
13871 msgid "Remove the single directory C<path>."
13872 msgstr ""
13873
13874 #. type: =head2
13875 #: ../fish/guestfish-actions.pod:4078
13876 msgid "rmmountpoint"
13877 msgstr "rmmountpoint"
13878
13879 #. type: verbatim
13880 #: ../fish/guestfish-actions.pod:4080
13881 #, no-wrap
13882 msgid ""
13883 " rmmountpoint exemptpath\n"
13884 "\n"
13885 msgstr ""
13886
13887 #. type: textblock
13888 #: ../fish/guestfish-actions.pod:4082
13889 msgid ""
13890 "This calls removes a mountpoint that was previously created with L</"
13891 "mkmountpoint>.  See L</mkmountpoint> for full details."
13892 msgstr ""
13893
13894 #. type: =head2
13895 #: ../fish/guestfish-actions.pod:4086
13896 msgid "scrub-device"
13897 msgstr "scrub-device"
13898
13899 #. type: verbatim
13900 #: ../fish/guestfish-actions.pod:4088
13901 #, no-wrap
13902 msgid ""
13903 " scrub-device device\n"
13904 "\n"
13905 msgstr ""
13906 " scrub-device пристрій\n"
13907 "\n"
13908
13909 #. type: textblock
13910 #: ../fish/guestfish-actions.pod:4090 ../src/guestfs-actions.pod:6249
13911 msgid ""
13912 "This command writes patterns over C<device> to make data retrieval more "
13913 "difficult."
13914 msgstr ""
13915
13916 #. type: textblock
13917 #: ../fish/guestfish-actions.pod:4093 ../fish/guestfish-actions.pod:4108
13918 #: ../fish/guestfish-actions.pod:4121 ../src/guestfs-actions.pod:6252
13919 #: ../src/guestfs-actions.pod:6273 ../src/guestfs-actions.pod:6292
13920 msgid ""
13921 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13922 "more details."
13923 msgstr ""
13924
13925 #. type: =head2
13926 #: ../fish/guestfish-actions.pod:4099
13927 msgid "scrub-file"
13928 msgstr "scrub-file"
13929
13930 #. type: verbatim
13931 #: ../fish/guestfish-actions.pod:4101
13932 #, no-wrap
13933 msgid ""
13934 " scrub-file file\n"
13935 "\n"
13936 msgstr ""
13937 " scrub-file файл\n"
13938 "\n"
13939
13940 #. type: textblock
13941 #: ../fish/guestfish-actions.pod:4103 ../src/guestfs-actions.pod:6268
13942 msgid ""
13943 "This command writes patterns over a file to make data retrieval more "
13944 "difficult."
13945 msgstr ""
13946
13947 #. type: textblock
13948 #: ../fish/guestfish-actions.pod:4106 ../src/guestfs-actions.pod:6271
13949 msgid "The file is I<removed> after scrubbing."
13950 msgstr ""
13951
13952 #. type: =head2
13953 #: ../fish/guestfish-actions.pod:4111
13954 msgid "scrub-freespace"
13955 msgstr "scrub-freespace"
13956
13957 #. type: verbatim
13958 #: ../fish/guestfish-actions.pod:4113
13959 #, no-wrap
13960 msgid ""
13961 " scrub-freespace dir\n"
13962 "\n"
13963 msgstr ""
13964 " scrub-freespace каталог\n"
13965 "\n"
13966
13967 #. type: textblock
13968 #: ../fish/guestfish-actions.pod:4115
13969 msgid ""
13970 "This command creates the directory C<dir> and then fills it with files until "
13971 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13972 "deletes them.  The intention is to scrub any free space on the partition "
13973 "containing C<dir>."
13974 msgstr ""
13975
13976 #. type: =head2
13977 #: ../fish/guestfish-actions.pod:4124
13978 msgid "set-append"
13979 msgstr "set-append"
13980
13981 #. type: =head2
13982 #: ../fish/guestfish-actions.pod:4126
13983 msgid "append"
13984 msgstr ""
13985
13986 #. type: verbatim
13987 #: ../fish/guestfish-actions.pod:4128
13988 #, no-wrap
13989 msgid ""
13990 " set-append append\n"
13991 "\n"
13992 msgstr ""
13993
13994 #. type: textblock
13995 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6305
13996 msgid ""
13997 "This function is used to add additional options to the guest kernel command "
13998 "line."
13999 msgstr ""
14000
14001 #. type: textblock
14002 #: ../fish/guestfish-actions.pod:4133 ../src/guestfs-actions.pod:6308
14003 msgid ""
14004 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14005 "environment variable."
14006 msgstr ""
14007
14008 #. type: textblock
14009 #: ../fish/guestfish-actions.pod:4136 ../src/guestfs-actions.pod:6311
14010 msgid ""
14011 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14012 "(libguestfs always adds a few of its own)."
14013 msgstr ""
14014
14015 #. type: =head2
14016 #: ../fish/guestfish-actions.pod:4139
14017 msgid "set-attach-method"
14018 msgstr "set-attach-method"
14019
14020 #. type: =head2
14021 #: ../fish/guestfish-actions.pod:4141
14022 msgid "attach-method"
14023 msgstr ""
14024
14025 #. type: verbatim
14026 #: ../fish/guestfish-actions.pod:4143
14027 #, no-wrap
14028 msgid ""
14029 " set-attach-method attachmethod\n"
14030 "\n"
14031 msgstr ""
14032
14033 #. type: textblock
14034 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6324
14035 msgid ""
14036 "Set the method that libguestfs uses to connect to the back end guestfsd "
14037 "daemon.  Possible methods are:"
14038 msgstr ""
14039
14040 #. type: =item
14041 #: ../fish/guestfish-actions.pod:4150 ../src/guestfs-actions.pod:6329
14042 #: ../src/guestfs.pod:2823
14043 msgid "C<appliance>"
14044 msgstr "C<appliance>"
14045
14046 #. type: textblock
14047 #: ../fish/guestfish-actions.pod:4152 ../src/guestfs-actions.pod:6331
14048 msgid ""
14049 "Launch an appliance and connect to it.  This is the ordinary method and the "
14050 "default."
14051 msgstr ""
14052
14053 #. type: =item
14054 #: ../fish/guestfish-actions.pod:4155 ../src/guestfs-actions.pod:6334
14055 msgid "C<unix:I<path>>"
14056 msgstr "C<unix:I<шлях>>"
14057
14058 #. type: textblock
14059 #: ../fish/guestfish-actions.pod:4157 ../src/guestfs-actions.pod:6336
14060 msgid "Connect to the Unix domain socket I<path>."
14061 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
14062
14063 #. type: textblock
14064 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6338
14065 msgid ""
14066 "This method lets you connect to an existing daemon or (using virtio-serial) "
14067 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
14068 "RUNNING DAEMONS>."
14069 msgstr ""
14070
14071 #. type: =head2
14072 #: ../fish/guestfish-actions.pod:4165
14073 msgid "set-autosync"
14074 msgstr "set-autosync"
14075
14076 #. type: =head2
14077 #: ../fish/guestfish-actions.pod:4167
14078 msgid "autosync"
14079 msgstr "autosync"
14080
14081 #. type: verbatim
14082 #: ../fish/guestfish-actions.pod:4169
14083 #, no-wrap
14084 msgid ""
14085 " set-autosync true|false\n"
14086 "\n"
14087 msgstr ""
14088 " set-autosync true|false\n"
14089 "\n"
14090
14091 #. type: textblock
14092 #: ../fish/guestfish-actions.pod:4171 ../src/guestfs-actions.pod:6354
14093 msgid ""
14094 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
14095 "effort attempt to make filesystems consistent and synchronized when the "
14096 "handle is closed (also if the program exits without closing handles)."
14097 msgstr ""
14098
14099 #. type: textblock
14100 #: ../fish/guestfish-actions.pod:4176 ../src/guestfs-actions.pod:6359
14101 msgid ""
14102 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14103 "disabled by default)."
14104 msgstr ""
14105
14106 #. type: =head2
14107 #: ../fish/guestfish-actions.pod:4179
14108 msgid "set-direct"
14109 msgstr "set-direct"
14110
14111 #. type: =head2
14112 #: ../fish/guestfish-actions.pod:4181
14113 msgid "direct"
14114 msgstr "direct"
14115
14116 #. type: verbatim
14117 #: ../fish/guestfish-actions.pod:4183
14118 #, no-wrap
14119 msgid ""
14120 " set-direct true|false\n"
14121 "\n"
14122 msgstr ""
14123 " set-direct true|false\n"
14124 "\n"
14125
14126 #. type: textblock
14127 #: ../fish/guestfish-actions.pod:4185 ../src/guestfs-actions.pod:6372
14128 msgid ""
14129 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14130 "passed directly through to the appliance once it is launched."
14131 msgstr ""
14132
14133 #. type: textblock
14134 #: ../fish/guestfish-actions.pod:4189
14135 msgid ""
14136 "One consequence of this is that log messages aren't caught by the library "
14137 "and handled by L</set-log-message-callback>, but go straight to stdout."
14138 msgstr ""
14139
14140 #. type: textblock
14141 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6380
14142 msgid "You probably don't want to use this unless you know what you are doing."
14143 msgstr ""
14144
14145 #. type: textblock
14146 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6383
14147 msgid "The default is disabled."
14148 msgstr ""
14149
14150 #. type: =head2
14151 #: ../fish/guestfish-actions.pod:4198
14152 msgid "set-e2label"
14153 msgstr "set-e2label"
14154
14155 #. type: verbatim
14156 #: ../fish/guestfish-actions.pod:4200
14157 #, no-wrap
14158 msgid ""
14159 " set-e2label device label\n"
14160 "\n"
14161 msgstr ""
14162
14163 #. type: textblock
14164 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6396
14165 msgid ""
14166 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14167 "C<label>.  Filesystem labels are limited to 16 characters."
14168 msgstr ""
14169
14170 #. type: textblock
14171 #: ../fish/guestfish-actions.pod:4206
14172 msgid ""
14173 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14174 "label on a filesystem."
14175 msgstr ""
14176
14177 #. type: =head2
14178 #: ../fish/guestfish-actions.pod:4209
14179 msgid "set-e2uuid"
14180 msgstr "set-e2uuid"
14181
14182 #. type: verbatim
14183 #: ../fish/guestfish-actions.pod:4211
14184 #, no-wrap
14185 msgid ""
14186 " set-e2uuid device uuid\n"
14187 "\n"
14188 msgstr ""
14189
14190 #. type: textblock
14191 #: ../fish/guestfish-actions.pod:4213 ../src/guestfs-actions.pod:6414
14192 msgid ""
14193 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14194 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
14195 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14196 msgstr ""
14197
14198 #. type: textblock
14199 #: ../fish/guestfish-actions.pod:4218
14200 msgid ""
14201 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14202 "UUID of a filesystem."
14203 msgstr ""
14204
14205 #. type: =head2
14206 #: ../fish/guestfish-actions.pod:4221
14207 msgid "set-memsize"
14208 msgstr "set-memsize"
14209
14210 #. type: =head2
14211 #: ../fish/guestfish-actions.pod:4223
14212 msgid "memsize"
14213 msgstr ""
14214
14215 #. type: verbatim
14216 #: ../fish/guestfish-actions.pod:4225
14217 #, no-wrap
14218 msgid ""
14219 " set-memsize memsize\n"
14220 "\n"
14221 msgstr ""
14222
14223 #. type: textblock
14224 #: ../fish/guestfish-actions.pod:4227
14225 msgid ""
14226 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
14227 "This only has any effect if called before L</launch>."
14228 msgstr ""
14229
14230 #. type: textblock
14231 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6436
14232 msgid ""
14233 "You can also change this by setting the environment variable "
14234 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14235 msgstr ""
14236
14237 #. type: =head2
14238 #: ../fish/guestfish-actions.pod:4238
14239 msgid "set-network"
14240 msgstr "set-network"
14241
14242 #. type: =head2
14243 #: ../fish/guestfish-actions.pod:4240
14244 msgid "network"
14245 msgstr "network"
14246
14247 #. type: verbatim
14248 #: ../fish/guestfish-actions.pod:4242
14249 #, no-wrap
14250 msgid ""
14251 " set-network true|false\n"
14252 "\n"
14253 msgstr ""
14254 " set-network true|false\n"
14255 "\n"
14256
14257 #. type: textblock
14258 #: ../fish/guestfish-actions.pod:4244 ../src/guestfs-actions.pod:6453
14259 msgid ""
14260 "If C<network> is true, then the network is enabled in the libguestfs "
14261 "appliance.  The default is false."
14262 msgstr ""
14263
14264 #. type: textblock
14265 #: ../fish/guestfish-actions.pod:4247 ../src/guestfs-actions.pod:6456
14266 msgid ""
14267 "This affects whether commands are able to access the network (see L<guestfs"
14268 "(3)/RUNNING COMMANDS>)."
14269 msgstr ""
14270
14271 #. type: textblock
14272 #: ../fish/guestfish-actions.pod:4250
14273 msgid ""
14274 "You must call this before calling L</launch>, otherwise it has no effect."
14275 msgstr ""
14276
14277 #. type: =head2
14278 #: ../fish/guestfish-actions.pod:4253
14279 msgid "set-path"
14280 msgstr "set-path"
14281
14282 #. type: verbatim
14283 #: ../fish/guestfish-actions.pod:4257
14284 #, no-wrap
14285 msgid ""
14286 " set-path searchpath\n"
14287 "\n"
14288 msgstr ""
14289
14290 #. type: textblock
14291 #: ../fish/guestfish-actions.pod:4259 ../src/guestfs-actions.pod:6472
14292 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14293 msgstr ""
14294
14295 #. type: textblock
14296 #: ../fish/guestfish-actions.pod:4261 ../src/guestfs-actions.pod:6474
14297 msgid ""
14298 "The default is C<$libdir/guestfs> unless overridden by setting "
14299 "C<LIBGUESTFS_PATH> environment variable."
14300 msgstr ""
14301
14302 #. type: textblock
14303 #: ../fish/guestfish-actions.pod:4264 ../src/guestfs-actions.pod:6477
14304 msgid "Setting C<path> to C<NULL> restores the default path."
14305 msgstr ""
14306
14307 #. type: =head2
14308 #: ../fish/guestfish-actions.pod:4266
14309 msgid "set-pgroup"
14310 msgstr ""
14311
14312 #. type: =head2
14313 #: ../fish/guestfish-actions.pod:4268
14314 msgid "pgroup"
14315 msgstr ""
14316
14317 #. type: verbatim
14318 #: ../fish/guestfish-actions.pod:4270
14319 #, no-wrap
14320 msgid ""
14321 " set-pgroup true|false\n"
14322 "\n"
14323 msgstr ""
14324
14325 #. type: textblock
14326 #: ../fish/guestfish-actions.pod:4272 ../src/guestfs-actions.pod:6489
14327 msgid ""
14328 "If C<pgroup> is true, child processes are placed into their own process "
14329 "group."
14330 msgstr ""
14331
14332 #. type: textblock
14333 #: ../fish/guestfish-actions.pod:4275 ../src/guestfs-actions.pod:6492
14334 msgid ""
14335 "The practical upshot of this is that signals like C<SIGINT> (from users "
14336 "pressing C<^C>) won't be received by the child process."
14337 msgstr ""
14338
14339 #. type: textblock
14340 #: ../fish/guestfish-actions.pod:4278 ../src/guestfs-actions.pod:6495
14341 msgid ""
14342 "The default for this flag is false, because usually you want C<^C> to kill "
14343 "the subprocess."
14344 msgstr ""
14345
14346 #. type: =head2
14347 #: ../fish/guestfish-actions.pod:4281
14348 msgid "set-qemu"
14349 msgstr "set-qemu"
14350
14351 #. type: =head2
14352 #: ../fish/guestfish-actions.pod:4283
14353 msgid "qemu"
14354 msgstr "qemu"
14355
14356 #. type: verbatim
14357 #: ../fish/guestfish-actions.pod:4285
14358 #, no-wrap
14359 msgid ""
14360 " set-qemu qemu\n"
14361 "\n"
14362 msgstr ""
14363 " set-qemu qemu\n"
14364 "\n"
14365
14366 #. type: textblock
14367 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6508
14368 msgid "Set the qemu binary that we will use."
14369 msgstr ""
14370
14371 #. type: textblock
14372 #: ../fish/guestfish-actions.pod:4289 ../src/guestfs-actions.pod:6510
14373 msgid ""
14374 "The default is chosen when the library was compiled by the configure script."
14375 msgstr ""
14376
14377 #. type: textblock
14378 #: ../fish/guestfish-actions.pod:4292 ../src/guestfs-actions.pod:6513
14379 msgid ""
14380 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14381 "variable."
14382 msgstr ""
14383
14384 #. type: textblock
14385 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6516
14386 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14387 msgstr ""
14388
14389 #. type: textblock
14390 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6518
14391 msgid ""
14392 "Note that you should call this function as early as possible after creating "
14393 "the handle.  This is because some pre-launch operations depend on testing "
14394 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14395 "don't retest features, and so you might see inconsistent results.  Using the "
14396 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14397 "the qemu binary at the same time as the handle is created."
14398 msgstr ""
14399
14400 #. type: =head2
14401 #: ../fish/guestfish-actions.pod:4305
14402 msgid "set-recovery-proc"
14403 msgstr "set-recovery-proc"
14404
14405 #. type: =head2
14406 #: ../fish/guestfish-actions.pod:4307
14407 msgid "recovery-proc"
14408 msgstr "recovery-proc"
14409
14410 #. type: verbatim
14411 #: ../fish/guestfish-actions.pod:4309
14412 #, no-wrap
14413 msgid ""
14414 " set-recovery-proc true|false\n"
14415 "\n"
14416 msgstr ""
14417 " set-recovery-proc true|false\n"
14418 "\n"
14419
14420 #. type: textblock
14421 #: ../fish/guestfish-actions.pod:4311
14422 msgid ""
14423 "If this is called with the parameter C<false> then L</launch> does not "
14424 "create a recovery process.  The purpose of the recovery process is to stop "
14425 "runaway qemu processes in the case where the main program aborts abruptly."
14426 msgstr ""
14427
14428 #. type: textblock
14429 #: ../fish/guestfish-actions.pod:4316
14430 msgid ""
14431 "This only has any effect if called before L</launch>, and the default is "
14432 "true."
14433 msgstr ""
14434
14435 #. type: textblock
14436 #: ../fish/guestfish-actions.pod:4319 ../src/guestfs-actions.pod:6544
14437 msgid ""
14438 "About the only time when you would want to disable this is if the main "
14439 "process will fork itself into the background (\"daemonize\" itself).  In "
14440 "this case the recovery process thinks that the main program has disappeared "
14441 "and so kills qemu, which is not very helpful."
14442 msgstr ""
14443
14444 #. type: =head2
14445 #: ../fish/guestfish-actions.pod:4325
14446 msgid "set-selinux"
14447 msgstr "set-selinux"
14448
14449 #. type: =head2
14450 #: ../fish/guestfish-actions.pod:4327
14451 msgid "selinux"
14452 msgstr "selinux"
14453
14454 #. type: verbatim
14455 #: ../fish/guestfish-actions.pod:4329
14456 #, no-wrap
14457 msgid ""
14458 " set-selinux true|false\n"
14459 "\n"
14460 msgstr ""
14461 " set-selinux true|false\n"
14462 "\n"
14463
14464 #. type: textblock
14465 #: ../fish/guestfish-actions.pod:4331 ../src/guestfs-actions.pod:6560
14466 msgid ""
14467 "This sets the selinux flag that is passed to the appliance at boot time.  "
14468 "The default is C<selinux=0> (disabled)."
14469 msgstr ""
14470
14471 #. type: textblock
14472 #: ../fish/guestfish-actions.pod:4334 ../src/guestfs-actions.pod:6563
14473 msgid ""
14474 "Note that if SELinux is enabled, it is always in Permissive mode "
14475 "(C<enforcing=0>)."
14476 msgstr ""
14477
14478 #. type: =head2
14479 #: ../fish/guestfish-actions.pod:4340
14480 #, fuzzy
14481 #| msgid "set-path"
14482 msgid "set-smp"
14483 msgstr "set-path"
14484
14485 #. type: =head2
14486 #: ../fish/guestfish-actions.pod:4342
14487 msgid "smp"
14488 msgstr ""
14489
14490 #. type: verbatim
14491 #: ../fish/guestfish-actions.pod:4344
14492 #, fuzzy, no-wrap
14493 #| msgid ""
14494 #| " set-qemu qemu\n"
14495 #| "\n"
14496 msgid ""
14497 " set-smp smp\n"
14498 "\n"
14499 msgstr ""
14500 " set-qemu qemu\n"
14501 "\n"
14502
14503 #. type: textblock
14504 #: ../fish/guestfish-actions.pod:4346 ../src/guestfs-actions.pod:6579
14505 msgid ""
14506 "Change the number of virtual CPUs assigned to the appliance.  The default is "
14507 "C<1>.  Increasing this may improve performance, though often it has no "
14508 "effect."
14509 msgstr ""
14510
14511 #. type: textblock
14512 #: ../fish/guestfish-actions.pod:4350
14513 msgid "This function must be called before L</launch>."
14514 msgstr ""
14515
14516 #. type: =head2
14517 #: ../fish/guestfish-actions.pod:4352
14518 msgid "set-trace"
14519 msgstr "set-trace"
14520
14521 #. type: =head2
14522 #: ../fish/guestfish-actions.pod:4354
14523 msgid "trace"
14524 msgstr "trace"
14525
14526 #. type: verbatim
14527 #: ../fish/guestfish-actions.pod:4356
14528 #, no-wrap
14529 msgid ""
14530 " set-trace true|false\n"
14531 "\n"
14532 msgstr ""
14533 " set-trace true|false\n"
14534 "\n"
14535
14536 #. type: textblock
14537 #: ../fish/guestfish-actions.pod:4358 ../src/guestfs-actions.pod:6593
14538 msgid ""
14539 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14540 "return values are traced."
14541 msgstr ""
14542
14543 #. type: textblock
14544 #: ../fish/guestfish-actions.pod:4361 ../src/guestfs-actions.pod:6596
14545 msgid ""
14546 "If you want to trace C API calls into libguestfs (and other libraries) then "
14547 "possibly a better way is to use the external ltrace(1) command."
14548 msgstr ""
14549
14550 #. type: textblock
14551 #: ../fish/guestfish-actions.pod:4365 ../src/guestfs-actions.pod:6600
14552 msgid ""
14553 "Command traces are disabled unless the environment variable "
14554 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14555 msgstr ""
14556
14557 #. type: textblock
14558 #: ../fish/guestfish-actions.pod:4368
14559 msgid ""
14560 "Trace messages are normally sent to C<stderr>, unless you register a "
14561 "callback to send them somewhere else (see L</set-event-callback>)."
14562 msgstr ""
14563
14564 #. type: =head2
14565 #: ../fish/guestfish-actions.pod:4372
14566 msgid "set-verbose"
14567 msgstr "set-verbose"
14568
14569 #. type: =head2
14570 #: ../fish/guestfish-actions.pod:4374
14571 msgid "verbose"
14572 msgstr ""
14573
14574 #. type: verbatim
14575 #: ../fish/guestfish-actions.pod:4376
14576 #, no-wrap
14577 msgid ""
14578 " set-verbose true|false\n"
14579 "\n"
14580 msgstr ""
14581 " set-verbose true|false\n"
14582 "\n"
14583
14584 #. type: textblock
14585 #: ../fish/guestfish-actions.pod:4378 ../src/guestfs-actions.pod:6617
14586 msgid "If C<verbose> is true, this turns on verbose messages."
14587 msgstr ""
14588
14589 #. type: textblock
14590 #: ../fish/guestfish-actions.pod:4380 ../src/guestfs-actions.pod:6619
14591 msgid ""
14592 "Verbose messages are disabled unless the environment variable "
14593 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14594 msgstr ""
14595
14596 #. type: textblock
14597 #: ../fish/guestfish-actions.pod:4383
14598 msgid ""
14599 "Verbose messages are normally sent to C<stderr>, unless you register a "
14600 "callback to send them somewhere else (see L</set-event-callback>)."
14601 msgstr ""
14602
14603 #. type: =head2
14604 #: ../fish/guestfish-actions.pod:4387
14605 msgid "setcon"
14606 msgstr "setcon"
14607
14608 #. type: verbatim
14609 #: ../fish/guestfish-actions.pod:4389
14610 #, no-wrap
14611 msgid ""
14612 " setcon context\n"
14613 "\n"
14614 msgstr ""
14615 " setcon контекст\n"
14616 "\n"
14617
14618 #. type: textblock
14619 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6636
14620 msgid ""
14621 "This sets the SELinux security context of the daemon to the string "
14622 "C<context>."
14623 msgstr ""
14624
14625 #. type: textblock
14626 #: ../fish/guestfish-actions.pod:4394 ../src/guestfs-actions.pod:6639
14627 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14628 msgstr ""
14629
14630 #. type: =head2
14631 #: ../fish/guestfish-actions.pod:4396
14632 msgid "setxattr"
14633 msgstr "setxattr"
14634
14635 #. type: verbatim
14636 #: ../fish/guestfish-actions.pod:4398
14637 #, no-wrap
14638 msgid ""
14639 " setxattr xattr val vallen path\n"
14640 "\n"
14641 msgstr ""
14642
14643 #. type: textblock
14644 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6654
14645 msgid ""
14646 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14647 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14648 msgstr ""
14649
14650 #. type: textblock
14651 #: ../fish/guestfish-actions.pod:4404
14652 msgid "See also: L</lsetxattr>, L<attr(5)>."
14653 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14654
14655 #. type: =head2
14656 #: ../fish/guestfish-actions.pod:4406
14657 msgid "sfdisk"
14658 msgstr "sfdisk"
14659
14660 #. type: verbatim
14661 #: ../fish/guestfish-actions.pod:4408
14662 #, no-wrap
14663 msgid ""
14664 " sfdisk device cyls heads sectors 'lines ...'\n"
14665 "\n"
14666 msgstr ""
14667
14668 #. type: textblock
14669 #: ../fish/guestfish-actions.pod:4410 ../src/guestfs-actions.pod:6681
14670 msgid ""
14671 "This is a direct interface to the L<sfdisk(8)> program for creating "
14672 "partitions on block devices."
14673 msgstr ""
14674
14675 #. type: textblock
14676 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6684
14677 msgid "C<device> should be a block device, for example C</dev/sda>."
14678 msgstr ""
14679
14680 #. type: textblock
14681 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6686
14682 msgid ""
14683 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14684 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14685 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14686 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14687 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14688 "the kernel) cannot work out the right geometry and you will need to tell it."
14689 msgstr ""
14690
14691 #. type: textblock
14692 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6694
14693 msgid ""
14694 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14695 "refer to the L<sfdisk(8)> manpage."
14696 msgstr ""
14697
14698 #. type: textblock
14699 #: ../fish/guestfish-actions.pod:4426 ../src/guestfs-actions.pod:6697
14700 msgid ""
14701 "To create a single partition occupying the whole disk, you would pass "
14702 "C<lines> as a single element list, when the single element being the string "
14703 "C<,> (comma)."
14704 msgstr ""
14705
14706 #. type: textblock
14707 #: ../fish/guestfish-actions.pod:4430
14708 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14709 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14710
14711 #. type: textblock
14712 #: ../fish/guestfish-actions.pod:4436 ../fish/guestfish-actions.pod:4459
14713 #: ../fish/guestfish-actions.pod:4481
14714 msgid ""
14715 "I<This function is deprecated.> In new code, use the L</part_add> call "
14716 "instead."
14717 msgstr ""
14718
14719 #. type: =head2
14720 #: ../fish/guestfish-actions.pod:4443
14721 msgid "sfdiskM"
14722 msgstr "sfdiskM"
14723
14724 #. type: verbatim
14725 #: ../fish/guestfish-actions.pod:4445
14726 #, no-wrap
14727 msgid ""
14728 " sfdiskM device 'lines ...'\n"
14729 "\n"
14730 msgstr ""
14731
14732 #. type: textblock
14733 #: ../fish/guestfish-actions.pod:4447
14734 msgid ""
14735 "This is a simplified interface to the L</sfdisk> command, where partition "
14736 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14737 "you don't need to specify the cyls, heads and sectors parameters which were "
14738 "rarely if ever used anyway."
14739 msgstr ""
14740
14741 #. type: textblock
14742 #: ../fish/guestfish-actions.pod:4453
14743 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14744 msgstr ""
14745 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14746
14747 #. type: =head2
14748 #: ../fish/guestfish-actions.pod:4466
14749 msgid "sfdisk-N"
14750 msgstr "sfdisk-N"
14751
14752 #. type: verbatim
14753 #: ../fish/guestfish-actions.pod:4468
14754 #, no-wrap
14755 msgid ""
14756 " sfdisk-N device partnum cyls heads sectors line\n"
14757 "\n"
14758 msgstr ""
14759
14760 #. type: textblock
14761 #: ../fish/guestfish-actions.pod:4470 ../src/guestfs-actions.pod:6759
14762 msgid ""
14763 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14764 "(note: C<n> counts from 1)."
14765 msgstr ""
14766
14767 #. type: textblock
14768 #: ../fish/guestfish-actions.pod:4473
14769 msgid ""
14770 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
14771 "cyls/heads/sectors parameters."
14772 msgstr ""
14773
14774 #. type: textblock
14775 #: ../fish/guestfish-actions.pod:4476
14776 msgid "See also: L</part-add>"
14777 msgstr "Див. також L</part-add>"
14778
14779 #. type: =head2
14780 #: ../fish/guestfish-actions.pod:4488
14781 msgid "sfdisk-disk-geometry"
14782 msgstr "sfdisk-disk-geometry"
14783
14784 #. type: verbatim
14785 #: ../fish/guestfish-actions.pod:4490
14786 #, no-wrap
14787 msgid ""
14788 " sfdisk-disk-geometry device\n"
14789 "\n"
14790 msgstr ""
14791 " sfdisk-disk-geometry пристрій\n"
14792 "\n"
14793
14794 #. type: textblock
14795 #: ../fish/guestfish-actions.pod:4492
14796 msgid ""
14797 "This displays the disk geometry of C<device> read from the partition table.  "
14798 "Especially in the case where the underlying block device has been resized, "
14799 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14800 "kernel-geometry>)."
14801 msgstr ""
14802
14803 #. type: textblock
14804 #: ../fish/guestfish-actions.pod:4497 ../fish/guestfish-actions.pod:4506
14805 #: ../src/guestfs-actions.pod:6785 ../src/guestfs-actions.pod:6801
14806 msgid "The result is in human-readable format, and not designed to be parsed."
14807 msgstr ""
14808
14809 #. type: =head2
14810 #: ../fish/guestfish-actions.pod:4500
14811 msgid "sfdisk-kernel-geometry"
14812 msgstr "sfdisk-kernel-geometry"
14813
14814 #. type: verbatim
14815 #: ../fish/guestfish-actions.pod:4502
14816 #, no-wrap
14817 msgid ""
14818 " sfdisk-kernel-geometry device\n"
14819 "\n"
14820 msgstr ""
14821 " sfdisk-kernel-geometry пристрій\n"
14822 "\n"
14823
14824 #. type: textblock
14825 #: ../fish/guestfish-actions.pod:4504 ../src/guestfs-actions.pod:6799
14826 msgid "This displays the kernel's idea of the geometry of C<device>."
14827 msgstr ""
14828
14829 #. type: =head2
14830 #: ../fish/guestfish-actions.pod:4509
14831 msgid "sfdisk-l"
14832 msgstr "sfdisk-l"
14833
14834 #. type: verbatim
14835 #: ../fish/guestfish-actions.pod:4511
14836 #, no-wrap
14837 msgid ""
14838 " sfdisk-l device\n"
14839 "\n"
14840 msgstr ""
14841 " sfdisk-l пристрій\n"
14842 "\n"
14843
14844 #. type: textblock
14845 #: ../fish/guestfish-actions.pod:4513 ../src/guestfs-actions.pod:6822
14846 msgid ""
14847 "This displays the partition table on C<device>, in the human-readable output "
14848 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14849 msgstr ""
14850
14851 #. type: textblock
14852 #: ../fish/guestfish-actions.pod:4517
14853 msgid "See also: L</part-list>"
14854 msgstr "Див. також L</part-list>"
14855
14856 #. type: textblock
14857 #: ../fish/guestfish-actions.pod:4519
14858 msgid ""
14859 "I<This function is deprecated.> In new code, use the L</part_list> call "
14860 "instead."
14861 msgstr ""
14862
14863 #. type: =head2
14864 #: ../fish/guestfish-actions.pod:4526
14865 msgid "sh"
14866 msgstr "sh"
14867
14868 #. type: verbatim
14869 #: ../fish/guestfish-actions.pod:4528
14870 #, no-wrap
14871 msgid ""
14872 " sh command\n"
14873 "\n"
14874 msgstr ""
14875 " sh команда\n"
14876 "\n"
14877
14878 #. type: textblock
14879 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6839
14880 msgid ""
14881 "This call runs a command from the guest filesystem via the guest's C</bin/"
14882 "sh>."
14883 msgstr ""
14884
14885 #. type: textblock
14886 #: ../fish/guestfish-actions.pod:4533
14887 msgid "This is like L</command>, but passes the command to:"
14888 msgstr ""
14889
14890 #. type: verbatim
14891 #: ../fish/guestfish-actions.pod:4535 ../src/guestfs-actions.pod:6844
14892 #, no-wrap
14893 msgid ""
14894 " /bin/sh -c \"command\"\n"
14895 "\n"
14896 msgstr ""
14897
14898 #. type: textblock
14899 #: ../fish/guestfish-actions.pod:4537 ../src/guestfs-actions.pod:6846
14900 msgid ""
14901 "Depending on the guest's shell, this usually results in wildcards being "
14902 "expanded, shell expressions being interpolated and so on."
14903 msgstr ""
14904
14905 #. type: textblock
14906 #: ../fish/guestfish-actions.pod:4541
14907 msgid "All the provisos about L</command> apply to this call."
14908 msgstr ""
14909
14910 #. type: =head2
14911 #: ../fish/guestfish-actions.pod:4543
14912 msgid "sh-lines"
14913 msgstr "sh-lines"
14914
14915 #. type: verbatim
14916 #: ../fish/guestfish-actions.pod:4545
14917 #, no-wrap
14918 msgid ""
14919 " sh-lines command\n"
14920 "\n"
14921 msgstr ""
14922 " sh-lines команда\n"
14923 "\n"
14924
14925 #. type: textblock
14926 #: ../fish/guestfish-actions.pod:4547
14927 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14928 msgstr ""
14929
14930 #. type: textblock
14931 #: ../fish/guestfish-actions.pod:4550
14932 msgid "See also: L</command-lines>"
14933 msgstr "Див. також L</command-lines>"
14934
14935 #. type: =head2
14936 #: ../fish/guestfish-actions.pod:4552
14937 msgid "sleep"
14938 msgstr "sleep"
14939
14940 #. type: verbatim
14941 #: ../fish/guestfish-actions.pod:4554
14942 #, no-wrap
14943 msgid ""
14944 " sleep secs\n"
14945 "\n"
14946 msgstr ""
14947 " sleep час_у_секундах\n"
14948 "\n"
14949
14950 #. type: textblock
14951 #: ../fish/guestfish-actions.pod:4556 ../src/guestfs-actions.pod:6880
14952 msgid "Sleep for C<secs> seconds."
14953 msgstr ""
14954
14955 #. type: =head2
14956 #: ../fish/guestfish-actions.pod:4558
14957 msgid "stat"
14958 msgstr "stat"
14959
14960 #. type: verbatim
14961 #: ../fish/guestfish-actions.pod:4560
14962 #, no-wrap
14963 msgid ""
14964 " stat path\n"
14965 "\n"
14966 msgstr ""
14967 " stat шлях\n"
14968 "\n"
14969
14970 #. type: textblock
14971 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6894
14972 msgid "This is the same as the C<stat(2)> system call."
14973 msgstr ""
14974
14975 #. type: =head2
14976 #: ../fish/guestfish-actions.pod:4566
14977 msgid "statvfs"
14978 msgstr "statvfs"
14979
14980 #. type: verbatim
14981 #: ../fish/guestfish-actions.pod:4568
14982 #, no-wrap
14983 msgid ""
14984 " statvfs path\n"
14985 "\n"
14986 msgstr ""
14987 " statvfs шлях\n"
14988 "\n"
14989
14990 #. type: textblock
14991 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6908
14992 msgid ""
14993 "Returns file system statistics for any mounted file system.  C<path> should "
14994 "be a file or directory in the mounted file system (typically it is the mount "
14995 "point itself, but it doesn't need to be)."
14996 msgstr ""
14997
14998 #. type: textblock
14999 #: ../fish/guestfish-actions.pod:4574 ../src/guestfs-actions.pod:6912
15000 msgid "This is the same as the C<statvfs(2)> system call."
15001 msgstr ""
15002
15003 #. type: =head2
15004 #: ../fish/guestfish-actions.pod:4576
15005 msgid "strings"
15006 msgstr "strings"
15007
15008 #. type: verbatim
15009 #: ../fish/guestfish-actions.pod:4578
15010 #, no-wrap
15011 msgid ""
15012 " strings path\n"
15013 "\n"
15014 msgstr ""
15015 " strings шлях\n"
15016 "\n"
15017
15018 #. type: textblock
15019 #: ../fish/guestfish-actions.pod:4580 ../src/guestfs-actions.pod:6926
15020 msgid ""
15021 "This runs the L<strings(1)> command on a file and returns the list of "
15022 "printable strings found."
15023 msgstr ""
15024
15025 #. type: =head2
15026 #: ../fish/guestfish-actions.pod:4586
15027 msgid "strings-e"
15028 msgstr "strings-e"
15029
15030 #. type: verbatim
15031 #: ../fish/guestfish-actions.pod:4588
15032 #, no-wrap
15033 msgid ""
15034 " strings-e encoding path\n"
15035 "\n"
15036 msgstr ""
15037 " strings-e кодування шлях\n"
15038 "\n"
15039
15040 #. type: textblock
15041 #: ../fish/guestfish-actions.pod:4590
15042 msgid ""
15043 "This is like the L</strings> command, but allows you to specify the encoding "
15044 "of strings that are looked for in the source file C<path>."
15045 msgstr ""
15046
15047 #. type: textblock
15048 #: ../fish/guestfish-actions.pod:4594 ../src/guestfs-actions.pod:6949
15049 msgid "Allowed encodings are:"
15050 msgstr "Можливими кодуваннями є:"
15051
15052 #. type: =item
15053 #: ../fish/guestfish-actions.pod:4598 ../src/guestfs-actions.pod:6953
15054 msgid "s"
15055 msgstr "s"
15056
15057 #. type: textblock
15058 #: ../fish/guestfish-actions.pod:4600
15059 msgid ""
15060 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15061 "ISO-8859-X (this is what L</strings> uses)."
15062 msgstr ""
15063
15064 #. type: =item
15065 #: ../fish/guestfish-actions.pod:4603 ../src/guestfs-actions.pod:6958
15066 msgid "S"
15067 msgstr "S"
15068
15069 #. type: textblock
15070 #: ../fish/guestfish-actions.pod:4605 ../src/guestfs-actions.pod:6960
15071 msgid "Single 8-bit-byte characters."
15072 msgstr "Окремі 8-бітові-байтові символи."
15073
15074 #. type: =item
15075 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6962
15076 msgid "b"
15077 msgstr "b"
15078
15079 #. type: textblock
15080 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6964
15081 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15082 msgstr ""
15083
15084 #. type: =item
15085 #: ../fish/guestfish-actions.pod:4612 ../src/guestfs-actions.pod:6967
15086 msgid "l (lower case letter L)"
15087 msgstr ""
15088
15089 #. type: textblock
15090 #: ../fish/guestfish-actions.pod:4614 ../src/guestfs-actions.pod:6969
15091 msgid ""
15092 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15093 "examining binaries in Windows guests."
15094 msgstr ""
15095
15096 #. type: =item
15097 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6972
15098 msgid "B"
15099 msgstr "B"
15100
15101 #. type: textblock
15102 #: ../fish/guestfish-actions.pod:4619 ../src/guestfs-actions.pod:6974
15103 msgid "32-bit big endian such as UCS-4BE."
15104 msgstr ""
15105
15106 #. type: =item
15107 #: ../fish/guestfish-actions.pod:4621 ../src/guestfs-actions.pod:6976
15108 msgid "L"
15109 msgstr "L"
15110
15111 #. type: textblock
15112 #: ../fish/guestfish-actions.pod:4623 ../src/guestfs-actions.pod:6978
15113 msgid "32-bit little endian such as UCS-4LE."
15114 msgstr ""
15115
15116 #. type: textblock
15117 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6982
15118 msgid "The returned strings are transcoded to UTF-8."
15119 msgstr ""
15120
15121 #. type: =head2
15122 #: ../fish/guestfish-actions.pod:4632
15123 msgid "swapoff-device"
15124 msgstr "swapoff-device"
15125
15126 #. type: verbatim
15127 #: ../fish/guestfish-actions.pod:4634
15128 #, no-wrap
15129 msgid ""
15130 " swapoff-device device\n"
15131 "\n"
15132 msgstr ""
15133 " swapoff-device пристрій\n"
15134 "\n"
15135
15136 #. type: textblock
15137 #: ../fish/guestfish-actions.pod:4636
15138 msgid ""
15139 "This command disables the libguestfs appliance swap device or partition "
15140 "named C<device>.  See L</swapon-device>."
15141 msgstr ""
15142
15143 #. type: =head2
15144 #: ../fish/guestfish-actions.pod:4640
15145 msgid "swapoff-file"
15146 msgstr "swapoff-file"
15147
15148 #. type: verbatim
15149 #: ../fish/guestfish-actions.pod:4642
15150 #, no-wrap
15151 msgid ""
15152 " swapoff-file file\n"
15153 "\n"
15154 msgstr ""
15155 " swapoff-file файл\n"
15156 "\n"
15157
15158 #. type: textblock
15159 #: ../fish/guestfish-actions.pod:4644 ../src/guestfs-actions.pod:7013
15160 msgid "This command disables the libguestfs appliance swap on file."
15161 msgstr ""
15162
15163 #. type: =head2
15164 #: ../fish/guestfish-actions.pod:4646
15165 msgid "swapoff-label"
15166 msgstr "swapoff-label"
15167
15168 #. type: verbatim
15169 #: ../fish/guestfish-actions.pod:4648
15170 #, no-wrap
15171 msgid ""
15172 " swapoff-label label\n"
15173 "\n"
15174 msgstr ""
15175 " swapoff-label мітка\n"
15176 "\n"
15177
15178 #. type: textblock
15179 #: ../fish/guestfish-actions.pod:4650 ../src/guestfs-actions.pod:7025
15180 msgid ""
15181 "This command disables the libguestfs appliance swap on labeled swap "
15182 "partition."
15183 msgstr ""
15184
15185 #. type: =head2
15186 #: ../fish/guestfish-actions.pod:4653
15187 msgid "swapoff-uuid"
15188 msgstr "swapoff-uuid"
15189
15190 #. type: verbatim
15191 #: ../fish/guestfish-actions.pod:4655
15192 #, no-wrap
15193 msgid ""
15194 " swapoff-uuid uuid\n"
15195 "\n"
15196 msgstr ""
15197 " swapoff-uuid uuid\n"
15198 "\n"
15199
15200 #. type: textblock
15201 #: ../fish/guestfish-actions.pod:4657 ../src/guestfs-actions.pod:7038
15202 msgid ""
15203 "This command disables the libguestfs appliance swap partition with the given "
15204 "UUID."
15205 msgstr ""
15206
15207 #. type: =head2
15208 #: ../fish/guestfish-actions.pod:4660
15209 msgid "swapon-device"
15210 msgstr "swapon-device"
15211
15212 #. type: verbatim
15213 #: ../fish/guestfish-actions.pod:4662
15214 #, no-wrap
15215 msgid ""
15216 " swapon-device device\n"
15217 "\n"
15218 msgstr ""
15219 " swapon-device пристрій\n"
15220 "\n"
15221
15222 #. type: textblock
15223 #: ../fish/guestfish-actions.pod:4664
15224 msgid ""
15225 "This command enables the libguestfs appliance to use the swap device or "
15226 "partition named C<device>.  The increased memory is made available for all "
15227 "commands, for example those run using L</command> or L</sh>."
15228 msgstr ""
15229
15230 #. type: textblock
15231 #: ../fish/guestfish-actions.pod:4669 ../src/guestfs-actions.pod:7056
15232 msgid ""
15233 "Note that you should not swap to existing guest swap partitions unless you "
15234 "know what you are doing.  They may contain hibernation information, or other "
15235 "information that the guest doesn't want you to trash.  You also risk leaking "
15236 "information about the host to the guest this way.  Instead, attach a new "
15237 "host device to the guest and swap on that."
15238 msgstr ""
15239
15240 #. type: =head2
15241 #: ../fish/guestfish-actions.pod:4676
15242 msgid "swapon-file"
15243 msgstr "swapon-file"
15244
15245 #. type: verbatim
15246 #: ../fish/guestfish-actions.pod:4678
15247 #, no-wrap
15248 msgid ""
15249 " swapon-file file\n"
15250 "\n"
15251 msgstr ""
15252 " swapon-file файл\n"
15253 "\n"
15254
15255 #. type: textblock
15256 #: ../fish/guestfish-actions.pod:4680
15257 msgid ""
15258 "This command enables swap to a file.  See L</swapon-device> for other notes."
15259 msgstr ""
15260
15261 #. type: =head2
15262 #: ../fish/guestfish-actions.pod:4683
15263 msgid "swapon-label"
15264 msgstr "swapon-label"
15265
15266 #. type: verbatim
15267 #: ../fish/guestfish-actions.pod:4685
15268 #, no-wrap
15269 msgid ""
15270 " swapon-label label\n"
15271 "\n"
15272 msgstr ""
15273 " swapon-label мітка\n"
15274 "\n"
15275
15276 #. type: textblock
15277 #: ../fish/guestfish-actions.pod:4687
15278 msgid ""
15279 "This command enables swap to a labeled swap partition.  See L</swapon-"
15280 "device> for other notes."
15281 msgstr ""
15282
15283 #. type: =head2
15284 #: ../fish/guestfish-actions.pod:4690
15285 msgid "swapon-uuid"
15286 msgstr "swapon-uuid"
15287
15288 #. type: verbatim
15289 #: ../fish/guestfish-actions.pod:4692
15290 #, no-wrap
15291 msgid ""
15292 " swapon-uuid uuid\n"
15293 "\n"
15294 msgstr ""
15295 " swapon-uuid uuid\n"
15296 "\n"
15297
15298 #. type: textblock
15299 #: ../fish/guestfish-actions.pod:4694
15300 msgid ""
15301 "This command enables swap to a swap partition with the given UUID.  See L</"
15302 "swapon-device> for other notes."
15303 msgstr ""
15304
15305 #. type: =head2
15306 #: ../fish/guestfish-actions.pod:4697
15307 msgid "sync"
15308 msgstr "sync"
15309
15310 #. type: verbatim
15311 #: ../fish/guestfish-actions.pod:4699
15312 #, no-wrap
15313 msgid ""
15314 " sync\n"
15315 "\n"
15316 msgstr ""
15317 " sync\n"
15318 "\n"
15319
15320 #. type: textblock
15321 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7111
15322 msgid ""
15323 "This syncs the disk, so that any writes are flushed through to the "
15324 "underlying disk image."
15325 msgstr ""
15326
15327 #. type: textblock
15328 #: ../fish/guestfish-actions.pod:4704 ../src/guestfs-actions.pod:7114
15329 msgid ""
15330 "You should always call this if you have modified a disk image, before "
15331 "closing the handle."
15332 msgstr ""
15333
15334 #. type: =head2
15335 #: ../fish/guestfish-actions.pod:4707
15336 msgid "tail"
15337 msgstr "tail"
15338
15339 #. type: verbatim
15340 #: ../fish/guestfish-actions.pod:4709
15341 #, no-wrap
15342 msgid ""
15343 " tail path\n"
15344 "\n"
15345 msgstr ""
15346 " tail шлях\n"
15347 "\n"
15348
15349 #. type: textblock
15350 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7127
15351 msgid ""
15352 "This command returns up to the last 10 lines of a file as a list of strings."
15353 msgstr ""
15354
15355 #. type: =head2
15356 #: ../fish/guestfish-actions.pod:4717
15357 msgid "tail-n"
15358 msgstr "tail-n"
15359
15360 #. type: verbatim
15361 #: ../fish/guestfish-actions.pod:4719
15362 #, no-wrap
15363 msgid ""
15364 " tail-n nrlines path\n"
15365 "\n"
15366 msgstr ""
15367
15368 #. type: textblock
15369 #: ../fish/guestfish-actions.pod:4721 ../src/guestfs-actions.pod:7146
15370 msgid ""
15371 "If the parameter C<nrlines> is a positive number, this returns the last "
15372 "C<nrlines> lines of the file C<path>."
15373 msgstr ""
15374
15375 #. type: textblock
15376 #: ../fish/guestfish-actions.pod:4724 ../src/guestfs-actions.pod:7149
15377 msgid ""
15378 "If the parameter C<nrlines> is a negative number, this returns lines from "
15379 "the file C<path>, starting with the C<-nrlines>th line."
15380 msgstr ""
15381
15382 #. type: =head2
15383 #: ../fish/guestfish-actions.pod:4732
15384 msgid "tar-in"
15385 msgstr "tar-in"
15386
15387 #. type: verbatim
15388 #: ../fish/guestfish-actions.pod:4734
15389 #, no-wrap
15390 msgid ""
15391 " tar-in (tarfile|-) directory\n"
15392 "\n"
15393 msgstr ""
15394 " tar-in (файл_tar|-) каталог\n"
15395 "\n"
15396
15397 #. type: textblock
15398 #: ../fish/guestfish-actions.pod:4736 ../src/guestfs-actions.pod:7170
15399 msgid ""
15400 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15401 "tar file) into C<directory>."
15402 msgstr ""
15403
15404 #. type: textblock
15405 #: ../fish/guestfish-actions.pod:4739
15406 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15407 msgstr ""
15408
15409 #. type: =head2
15410 #: ../fish/guestfish-actions.pod:4744
15411 msgid "tar-out"
15412 msgstr "tar-out"
15413
15414 #. type: verbatim
15415 #: ../fish/guestfish-actions.pod:4746
15416 #, no-wrap
15417 msgid ""
15418 " tar-out directory (tarfile|-)\n"
15419 "\n"
15420 msgstr ""
15421 " tar-out каталог (файл tar|-)\n"
15422 "\n"
15423
15424 #. type: textblock
15425 #: ../fish/guestfish-actions.pod:4748 ../src/guestfs-actions.pod:7187
15426 msgid ""
15427 "This command packs the contents of C<directory> and downloads it to local "
15428 "file C<tarfile>."
15429 msgstr ""
15430
15431 #. type: textblock
15432 #: ../fish/guestfish-actions.pod:4751
15433 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15434 msgstr ""
15435
15436 #. type: =head2
15437 #: ../fish/guestfish-actions.pod:4756
15438 msgid "tgz-in"
15439 msgstr "tgz-in"
15440
15441 #. type: verbatim
15442 #: ../fish/guestfish-actions.pod:4758
15443 #, no-wrap
15444 msgid ""
15445 " tgz-in (tarball|-) directory\n"
15446 "\n"
15447 msgstr ""
15448 " tgz-in (архів tar|-) каталог\n"
15449 "\n"
15450
15451 #. type: textblock
15452 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7204
15453 msgid ""
15454 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15455 "tar file) into C<directory>."
15456 msgstr ""
15457
15458 #. type: textblock
15459 #: ../fish/guestfish-actions.pod:4763
15460 msgid "To upload an uncompressed tarball, use L</tar-in>."
15461 msgstr ""
15462
15463 #. type: =head2
15464 #: ../fish/guestfish-actions.pod:4767
15465 msgid "tgz-out"
15466 msgstr "tgz-out"
15467
15468 #. type: verbatim
15469 #: ../fish/guestfish-actions.pod:4769
15470 #, no-wrap
15471 msgid ""
15472 " tgz-out directory (tarball|-)\n"
15473 "\n"
15474 msgstr ""
15475 " tgz-out каталог (архів tar|-)\n"
15476 "\n"
15477
15478 #. type: textblock
15479 #: ../fish/guestfish-actions.pod:4771 ../src/guestfs-actions.pod:7220
15480 msgid ""
15481 "This command packs the contents of C<directory> and downloads it to local "
15482 "file C<tarball>."
15483 msgstr ""
15484
15485 #. type: textblock
15486 #: ../fish/guestfish-actions.pod:4774
15487 msgid "To download an uncompressed tarball, use L</tar-out>."
15488 msgstr ""
15489
15490 #. type: =head2
15491 #: ../fish/guestfish-actions.pod:4778
15492 msgid "touch"
15493 msgstr "touch"
15494
15495 #. type: verbatim
15496 #: ../fish/guestfish-actions.pod:4780
15497 #, no-wrap
15498 msgid ""
15499 " touch path\n"
15500 "\n"
15501 msgstr ""
15502 " touch шлях\n"
15503 "\n"
15504
15505 #. type: textblock
15506 #: ../fish/guestfish-actions.pod:4782 ../src/guestfs-actions.pod:7235
15507 msgid ""
15508 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15509 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15510 "length file."
15511 msgstr ""
15512
15513 #. type: textblock
15514 #: ../fish/guestfish-actions.pod:4786 ../src/guestfs-actions.pod:7239
15515 msgid ""
15516 "This command only works on regular files, and will fail on other file types "
15517 "such as directories, symbolic links, block special etc."
15518 msgstr ""
15519
15520 #. type: =head2
15521 #: ../fish/guestfish-actions.pod:4789
15522 msgid "truncate"
15523 msgstr "truncate"
15524
15525 #. type: verbatim
15526 #: ../fish/guestfish-actions.pod:4791
15527 #, no-wrap
15528 msgid ""
15529 " truncate path\n"
15530 "\n"
15531 msgstr ""
15532 " truncate шлях\n"
15533 "\n"
15534
15535 #. type: textblock
15536 #: ../fish/guestfish-actions.pod:4793 ../src/guestfs-actions.pod:7252
15537 msgid ""
15538 "This command truncates C<path> to a zero-length file.  The file must exist "
15539 "already."
15540 msgstr ""
15541
15542 #. type: =head2
15543 #: ../fish/guestfish-actions.pod:4796
15544 msgid "truncate-size"
15545 msgstr "truncate-size"
15546
15547 #. type: verbatim
15548 #: ../fish/guestfish-actions.pod:4798
15549 #, no-wrap
15550 msgid ""
15551 " truncate-size path size\n"
15552 "\n"
15553 msgstr ""
15554 " truncate-size шлях розмір\n"
15555 "\n"
15556
15557 #. type: textblock
15558 #: ../fish/guestfish-actions.pod:4800 ../src/guestfs-actions.pod:7266
15559 msgid ""
15560 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15561 "already."
15562 msgstr ""
15563
15564 #. type: textblock
15565 #: ../fish/guestfish-actions.pod:4803
15566 msgid ""
15567 "If the current file size is less than C<size> then the file is extended to "
15568 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15569 "blocks are not allocated for the file until you write to it).  To create a "
15570 "non-sparse file of zeroes, use L</fallocate64> instead."
15571 msgstr ""
15572
15573 #. type: =head2
15574 #: ../fish/guestfish-actions.pod:4809
15575 msgid "tune2fs-l"
15576 msgstr "tune2fs-l"
15577
15578 #. type: verbatim
15579 #: ../fish/guestfish-actions.pod:4811
15580 #, no-wrap
15581 msgid ""
15582 " tune2fs-l device\n"
15583 "\n"
15584 msgstr ""
15585 " tune2fs-l пристрій\n"
15586 "\n"
15587
15588 #. type: textblock
15589 #: ../fish/guestfish-actions.pod:4813 ../src/guestfs-actions.pod:7285
15590 msgid ""
15591 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15592 "C<device>."
15593 msgstr ""
15594
15595 #. type: textblock
15596 #: ../fish/guestfish-actions.pod:4816 ../src/guestfs-actions.pod:7288
15597 msgid ""
15598 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15599 "for more details.  The list of fields returned isn't clearly defined, and "
15600 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15601 "and the filesystem itself."
15602 msgstr ""
15603
15604 #. type: =head2
15605 #: ../fish/guestfish-actions.pod:4821
15606 msgid "txz-in"
15607 msgstr "txz-in"
15608
15609 #. type: verbatim
15610 #: ../fish/guestfish-actions.pod:4823
15611 #, no-wrap
15612 msgid ""
15613 " txz-in (tarball|-) directory\n"
15614 "\n"
15615 msgstr ""
15616 " txz-in (архів tar|-) каталог\n"
15617 "\n"
15618
15619 #. type: textblock
15620 #: ../fish/guestfish-actions.pod:4825 ../src/guestfs-actions.pod:7308
15621 msgid ""
15622 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15623 "tar file) into C<directory>."
15624 msgstr ""
15625
15626 #. type: =head2
15627 #: ../fish/guestfish-actions.pod:4830
15628 msgid "txz-out"
15629 msgstr "txz-out"
15630
15631 #. type: verbatim
15632 #: ../fish/guestfish-actions.pod:4832
15633 #, no-wrap
15634 msgid ""
15635 " txz-out directory (tarball|-)\n"
15636 "\n"
15637 msgstr ""
15638 " txz-out каталог (архів tar|-)\n"
15639 "\n"
15640
15641 #. type: textblock
15642 #: ../fish/guestfish-actions.pod:4834 ../src/guestfs-actions.pod:7322
15643 msgid ""
15644 "This command packs the contents of C<directory> and downloads it to local "
15645 "file C<tarball> (as an xz compressed tar archive)."
15646 msgstr ""
15647
15648 #. type: =head2
15649 #: ../fish/guestfish-actions.pod:4839
15650 msgid "umask"
15651 msgstr "umask"
15652
15653 #. type: verbatim
15654 #: ../fish/guestfish-actions.pod:4841
15655 #, no-wrap
15656 msgid ""
15657 " umask mask\n"
15658 "\n"
15659 msgstr ""
15660 " umask маска\n"
15661 "\n"
15662
15663 #. type: textblock
15664 #: ../fish/guestfish-actions.pod:4843 ../src/guestfs-actions.pod:7335
15665 msgid ""
15666 "This function sets the mask used for creating new files and device nodes to "
15667 "C<mask & 0777>."
15668 msgstr ""
15669
15670 #. type: textblock
15671 #: ../fish/guestfish-actions.pod:4846 ../src/guestfs-actions.pod:7338
15672 msgid ""
15673 "Typical umask values would be C<022> which creates new files with "
15674 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15675 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15676 msgstr ""
15677
15678 #. type: textblock
15679 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7343
15680 msgid ""
15681 "The default umask is C<022>.  This is important because it means that "
15682 "directories and device nodes will be created with C<0644> or C<0755> mode "
15683 "even if you specify C<0777>."
15684 msgstr ""
15685
15686 #. type: textblock
15687 #: ../fish/guestfish-actions.pod:4855
15688 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15689 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15690
15691 #. type: textblock
15692 #: ../fish/guestfish-actions.pod:4858 ../src/guestfs-actions.pod:7350
15693 msgid "This call returns the previous umask."
15694 msgstr ""
15695
15696 #. type: =head2
15697 #: ../fish/guestfish-actions.pod:4860
15698 msgid "umount"
15699 msgstr "umount"
15700
15701 #. type: =head2
15702 #: ../fish/guestfish-actions.pod:4862
15703 msgid "unmount"
15704 msgstr "unmount"
15705
15706 #. type: verbatim
15707 #: ../fish/guestfish-actions.pod:4864
15708 #, no-wrap
15709 msgid ""
15710 " umount pathordevice\n"
15711 "\n"
15712 msgstr ""
15713 " umount шлях_або_пристрій\n"
15714 "\n"
15715
15716 #. type: textblock
15717 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7362
15718 msgid ""
15719 "This unmounts the given filesystem.  The filesystem may be specified either "
15720 "by its mountpoint (path) or the device which contains the filesystem."
15721 msgstr ""
15722
15723 #. type: =head2
15724 #: ../fish/guestfish-actions.pod:4870
15725 msgid "umount-all"
15726 msgstr "umount-all"
15727
15728 #. type: =head2
15729 #: ../fish/guestfish-actions.pod:4872
15730 msgid "unmount-all"
15731 msgstr "unmount-all"
15732
15733 #. type: verbatim
15734 #: ../fish/guestfish-actions.pod:4874
15735 #, no-wrap
15736 msgid ""
15737 " umount-all\n"
15738 "\n"
15739 msgstr ""
15740 " umount-all\n"
15741 "\n"
15742
15743 #. type: textblock
15744 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7375
15745 msgid "This unmounts all mounted filesystems."
15746 msgstr ""
15747
15748 #. type: textblock
15749 #: ../fish/guestfish-actions.pod:4878 ../src/guestfs-actions.pod:7377
15750 msgid "Some internal mounts are not unmounted by this call."
15751 msgstr ""
15752
15753 #. type: =head2
15754 #: ../fish/guestfish-actions.pod:4880
15755 msgid "upload"
15756 msgstr "upload"
15757
15758 #. type: verbatim
15759 #: ../fish/guestfish-actions.pod:4882
15760 #, no-wrap
15761 msgid ""
15762 " upload (filename|-) remotefilename\n"
15763 "\n"
15764 msgstr ""
15765 " upload (назва_файла|-) назва_віддаленого_файла\n"
15766 "\n"
15767
15768 #. type: textblock
15769 #: ../fish/guestfish-actions.pod:4884 ../fish/guestfish-actions.pod:4897
15770 #: ../src/guestfs-actions.pod:7390 ../src/guestfs-actions.pod:7414
15771 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15772 msgstr ""
15773
15774 #. type: textblock
15775 #: ../fish/guestfish-actions.pod:4889
15776 msgid "See also L</download>."
15777 msgstr "Див. також L</download>."
15778
15779 #. type: =head2
15780 #: ../fish/guestfish-actions.pod:4893
15781 msgid "upload-offset"
15782 msgstr "upload-offset"
15783
15784 #. type: verbatim
15785 #: ../fish/guestfish-actions.pod:4895
15786 #, no-wrap
15787 msgid ""
15788 " upload-offset (filename|-) remotefilename offset\n"
15789 "\n"
15790 msgstr ""
15791 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15792 "\n"
15793
15794 #. type: textblock
15795 #: ../fish/guestfish-actions.pod:4900 ../src/guestfs-actions.pod:7417
15796 msgid ""
15797 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15798 "The intention is to overwrite parts of existing files or devices, although "
15799 "if a non-existant file is specified then it is created with a \"hole\" "
15800 "before C<offset>.  The size of the data written is implicit in the size of "
15801 "the source C<filename>."
15802 msgstr ""
15803
15804 #. type: textblock
15805 #: ../fish/guestfish-actions.pod:4907
15806 msgid ""
15807 "Note that there is no limit on the amount of data that can be uploaded with "
15808 "this call, unlike with L</pwrite>, and this call always writes the full "
15809 "amount unless an error occurs."
15810 msgstr ""
15811
15812 #. type: textblock
15813 #: ../fish/guestfish-actions.pod:4912
15814 msgid "See also L</upload>, L</pwrite>."
15815 msgstr "Див. також L</upload>, L</pwrite>."
15816
15817 #. type: =head2
15818 #: ../fish/guestfish-actions.pod:4916
15819 msgid "utimens"
15820 msgstr "utimens"
15821
15822 #. type: verbatim
15823 #: ../fish/guestfish-actions.pod:4918
15824 #, no-wrap
15825 msgid ""
15826 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15827 "\n"
15828 msgstr ""
15829
15830 #. type: textblock
15831 #: ../fish/guestfish-actions.pod:4920 ../src/guestfs-actions.pod:7450
15832 msgid "This command sets the timestamps of a file with nanosecond precision."
15833 msgstr ""
15834
15835 #. type: textblock
15836 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7453
15837 msgid ""
15838 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15839 "from the epoch."
15840 msgstr ""
15841
15842 #. type: textblock
15843 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7456
15844 msgid ""
15845 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15846 "nanoseconds from the epoch."
15847 msgstr ""
15848
15849 #. type: textblock
15850 #: ../fish/guestfish-actions.pod:4929 ../src/guestfs-actions.pod:7459
15851 msgid ""
15852 "If the C<*nsecs> field contains the special value C<-1> then the "
15853 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15854 "ignored in this case)."
15855 msgstr ""
15856
15857 #. type: textblock
15858 #: ../fish/guestfish-actions.pod:4933 ../src/guestfs-actions.pod:7463
15859 msgid ""
15860 "If the C<*nsecs> field contains the special value C<-2> then the "
15861 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15862 "in this case)."
15863 msgstr ""
15864
15865 #. type: =head2
15866 #: ../fish/guestfish-actions.pod:4937
15867 msgid "version"
15868 msgstr "version"
15869
15870 #. type: verbatim
15871 #: ../fish/guestfish-actions.pod:4939
15872 #, no-wrap
15873 msgid ""
15874 " version\n"
15875 "\n"
15876 msgstr ""
15877 " version\n"
15878 "\n"
15879
15880 #. type: textblock
15881 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7476
15882 msgid ""
15883 "Return the libguestfs version number that the program is linked against."
15884 msgstr ""
15885
15886 #. type: textblock
15887 #: ../fish/guestfish-actions.pod:4944 ../src/guestfs-actions.pod:7479
15888 msgid ""
15889 "Note that because of dynamic linking this is not necessarily the version of "
15890 "libguestfs that you compiled against.  You can compile the program, and then "
15891 "at runtime dynamically link against a completely different C<libguestfs.so> "
15892 "library."
15893 msgstr ""
15894
15895 #. type: textblock
15896 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7484
15897 msgid ""
15898 "This call was added in version C<1.0.58>.  In previous versions of "
15899 "libguestfs there was no way to get the version number.  From C code you can "
15900 "use dynamic linker functions to find out if this symbol exists (if it "
15901 "doesn't, then it's an earlier version)."
15902 msgstr ""
15903
15904 #. type: textblock
15905 #: ../fish/guestfish-actions.pod:4955 ../src/guestfs-actions.pod:7490
15906 msgid ""
15907 "The call returns a structure with four elements.  The first three (C<major>, "
15908 "C<minor> and C<release>) are numbers and correspond to the usual version "
15909 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15910 "but may be used for distro-specific information."
15911 msgstr ""
15912
15913 #. type: textblock
15914 #: ../fish/guestfish-actions.pod:4961 ../src/guestfs-actions.pod:7496
15915 msgid ""
15916 "To construct the original version string: C<$major.$minor.$release$extra>"
15917 msgstr ""
15918
15919 #. type: textblock
15920 #: ../fish/guestfish-actions.pod:4964 ../src/guestfs-actions.pod:7499
15921 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15922 msgstr ""
15923
15924 #. type: textblock
15925 #: ../fish/guestfish-actions.pod:4966
15926 msgid ""
15927 "I<Note:> Don't use this call to test for availability of features.  In "
15928 "enterprise distributions we backport features from later versions into "
15929 "earlier versions, making this an unreliable way to test for features.  Use "
15930 "L</available> instead."
15931 msgstr ""
15932
15933 #. type: =head2
15934 #: ../fish/guestfish-actions.pod:4972
15935 msgid "vfs-label"
15936 msgstr "vfs-label"
15937
15938 #. type: verbatim
15939 #: ../fish/guestfish-actions.pod:4974
15940 #, no-wrap
15941 msgid ""
15942 " vfs-label device\n"
15943 "\n"
15944 msgstr ""
15945 " vfs-label пристрій\n"
15946 "\n"
15947
15948 #. type: textblock
15949 #: ../fish/guestfish-actions.pod:4976 ../src/guestfs-actions.pod:7519
15950 msgid "This returns the filesystem label of the filesystem on C<device>."
15951 msgstr ""
15952
15953 #. type: textblock
15954 #: ../fish/guestfish-actions.pod:4979 ../src/guestfs-actions.pod:7522
15955 msgid "If the filesystem is unlabeled, this returns the empty string."
15956 msgstr ""
15957
15958 #. type: textblock
15959 #: ../fish/guestfish-actions.pod:4981
15960 msgid "To find a filesystem from the label, use L</findfs-label>."
15961 msgstr ""
15962
15963 #. type: =head2
15964 #: ../fish/guestfish-actions.pod:4983
15965 msgid "vfs-type"
15966 msgstr "vfs-type"
15967
15968 #. type: verbatim
15969 #: ../fish/guestfish-actions.pod:4985
15970 #, no-wrap
15971 msgid ""
15972 " vfs-type device\n"
15973 "\n"
15974 msgstr ""
15975 " vfs-type пристрій\n"
15976 "\n"
15977
15978 #. type: textblock
15979 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7537
15980 msgid ""
15981 "This command gets the filesystem type corresponding to the filesystem on "
15982 "C<device>."
15983 msgstr ""
15984
15985 #. type: textblock
15986 #: ../fish/guestfish-actions.pod:4990 ../src/guestfs-actions.pod:7540
15987 msgid ""
15988 "For most filesystems, the result is the name of the Linux VFS module which "
15989 "would be used to mount this filesystem if you mounted it without specifying "
15990 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15991 msgstr ""
15992
15993 #. type: =head2
15994 #: ../fish/guestfish-actions.pod:4995
15995 msgid "vfs-uuid"
15996 msgstr "vfs-uuid"
15997
15998 #. type: verbatim
15999 #: ../fish/guestfish-actions.pod:4997
16000 #, no-wrap
16001 msgid ""
16002 " vfs-uuid device\n"
16003 "\n"
16004 msgstr ""
16005 " vfs-uuid пристрій\n"
16006 "\n"
16007
16008 #. type: textblock
16009 #: ../fish/guestfish-actions.pod:4999 ../src/guestfs-actions.pod:7556
16010 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16011 msgstr ""
16012
16013 #. type: textblock
16014 #: ../fish/guestfish-actions.pod:5002 ../src/guestfs-actions.pod:7559
16015 msgid "If the filesystem does not have a UUID, this returns the empty string."
16016 msgstr ""
16017
16018 #. type: textblock
16019 #: ../fish/guestfish-actions.pod:5004
16020 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16021 msgstr ""
16022
16023 #. type: =head2
16024 #: ../fish/guestfish-actions.pod:5006
16025 msgid "vg-activate"
16026 msgstr "vg-activate"
16027
16028 #. type: verbatim
16029 #: ../fish/guestfish-actions.pod:5008
16030 #, no-wrap
16031 msgid ""
16032 " vg-activate true|false 'volgroups ...'\n"
16033 "\n"
16034 msgstr ""
16035
16036 #. type: textblock
16037 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7575
16038 msgid ""
16039 "This command activates or (if C<activate> is false) deactivates all logical "
16040 "volumes in the listed volume groups C<volgroups>."
16041 msgstr ""
16042
16043 #. type: textblock
16044 #: ../fish/guestfish-actions.pod:5013 ../src/guestfs-actions.pod:7578
16045 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16046 msgstr ""
16047
16048 #. type: textblock
16049 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7580
16050 msgid ""
16051 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16052 "activated or deactivated."
16053 msgstr ""
16054
16055 #. type: =head2
16056 #: ../fish/guestfish-actions.pod:5018
16057 msgid "vg-activate-all"
16058 msgstr "vg-activate-all"
16059
16060 #. type: verbatim
16061 #: ../fish/guestfish-actions.pod:5020
16062 #, no-wrap
16063 msgid ""
16064 " vg-activate-all true|false\n"
16065 "\n"
16066 msgstr ""
16067 " vg-activate-all true|false\n"
16068 "\n"
16069
16070 #. type: textblock
16071 #: ../fish/guestfish-actions.pod:5022 ../src/guestfs-actions.pod:7593
16072 msgid ""
16073 "This command activates or (if C<activate> is false) deactivates all logical "
16074 "volumes in all volume groups."
16075 msgstr ""
16076
16077 #. type: textblock
16078 #: ../fish/guestfish-actions.pod:5025 ../src/guestfs-actions.pod:7596
16079 msgid "This command is the same as running C<vgchange -a y|n>"
16080 msgstr ""
16081
16082 #. type: =head2
16083 #: ../fish/guestfish-actions.pod:5027
16084 msgid "vgcreate"
16085 msgstr "vgcreate"
16086
16087 #. type: verbatim
16088 #: ../fish/guestfish-actions.pod:5029
16089 #, no-wrap
16090 msgid ""
16091 " vgcreate volgroup 'physvols ...'\n"
16092 "\n"
16093 msgstr ""
16094
16095 #. type: textblock
16096 #: ../fish/guestfish-actions.pod:5031 ../src/guestfs-actions.pod:7609
16097 msgid ""
16098 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16099 "of physical volumes C<physvols>."
16100 msgstr ""
16101
16102 #. type: =head2
16103 #: ../fish/guestfish-actions.pod:5034
16104 msgid "vglvuuids"
16105 msgstr "vglvuuids"
16106
16107 #. type: verbatim
16108 #: ../fish/guestfish-actions.pod:5036
16109 #, no-wrap
16110 msgid ""
16111 " vglvuuids vgname\n"
16112 "\n"
16113 msgstr ""
16114
16115 #. type: textblock
16116 #: ../fish/guestfish-actions.pod:5038 ../src/guestfs-actions.pod:7622
16117 msgid ""
16118 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16119 "volumes created in this volume group."
16120 msgstr ""
16121
16122 #. type: textblock
16123 #: ../fish/guestfish-actions.pod:5041
16124 msgid ""
16125 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16126 "logical volumes and volume groups."
16127 msgstr ""
16128
16129 #. type: textblock
16130 #: ../fish/guestfish-actions.pod:5044
16131 msgid "See also L</vgpvuuids>."
16132 msgstr "Див. також L</vgpvuuids>."
16133
16134 #. type: =head2
16135 #: ../fish/guestfish-actions.pod:5046
16136 msgid "vgpvuuids"
16137 msgstr "vgpvuuids"
16138
16139 #. type: verbatim
16140 #: ../fish/guestfish-actions.pod:5048
16141 #, no-wrap
16142 msgid ""
16143 " vgpvuuids vgname\n"
16144 "\n"
16145 msgstr ""
16146
16147 #. type: textblock
16148 #: ../fish/guestfish-actions.pod:5050 ../src/guestfs-actions.pod:7642
16149 msgid ""
16150 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16151 "volumes that this volume group resides on."
16152 msgstr ""
16153
16154 #. type: textblock
16155 #: ../fish/guestfish-actions.pod:5053
16156 msgid ""
16157 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16158 "physical volumes and volume groups."
16159 msgstr ""
16160
16161 #. type: textblock
16162 #: ../fish/guestfish-actions.pod:5056
16163 msgid "See also L</vglvuuids>."
16164 msgstr "Див. також L</vglvuuids>."
16165
16166 #. type: =head2
16167 #: ../fish/guestfish-actions.pod:5058
16168 msgid "vgremove"
16169 msgstr "vgremove"
16170
16171 #. type: verbatim
16172 #: ../fish/guestfish-actions.pod:5060
16173 #, no-wrap
16174 msgid ""
16175 " vgremove vgname\n"
16176 "\n"
16177 msgstr ""
16178
16179 #. type: textblock
16180 #: ../fish/guestfish-actions.pod:5062 ../src/guestfs-actions.pod:7662
16181 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16182 msgstr ""
16183
16184 #. type: textblock
16185 #: ../fish/guestfish-actions.pod:5064 ../src/guestfs-actions.pod:7664
16186 msgid ""
16187 "This also forcibly removes all logical volumes in the volume group (if any)."
16188 msgstr ""
16189
16190 #. type: =head2
16191 #: ../fish/guestfish-actions.pod:5067
16192 msgid "vgrename"
16193 msgstr "vgrename"
16194
16195 #. type: verbatim
16196 #: ../fish/guestfish-actions.pod:5069
16197 #, no-wrap
16198 msgid ""
16199 " vgrename volgroup newvolgroup\n"
16200 "\n"
16201 msgstr ""
16202
16203 #. type: textblock
16204 #: ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:7678
16205 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16206 msgstr ""
16207
16208 #. type: =head2
16209 #: ../fish/guestfish-actions.pod:5073
16210 msgid "vgs"
16211 msgstr "vgs"
16212
16213 #. type: verbatim
16214 #: ../fish/guestfish-actions.pod:5075
16215 #, no-wrap
16216 msgid ""
16217 " vgs\n"
16218 "\n"
16219 msgstr ""
16220 " vgs\n"
16221 "\n"
16222
16223 #. type: textblock
16224 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7689
16225 msgid ""
16226 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16227 "> command."
16228 msgstr ""
16229
16230 #. type: textblock
16231 #: ../fish/guestfish-actions.pod:5080 ../src/guestfs-actions.pod:7692
16232 msgid ""
16233 "This returns a list of just the volume group names that were detected (eg. "
16234 "C<VolGroup00>)."
16235 msgstr ""
16236
16237 #. type: textblock
16238 #: ../fish/guestfish-actions.pod:5083
16239 msgid "See also L</vgs-full>."
16240 msgstr "Див. також L</vgs-full>."
16241
16242 #. type: =head2
16243 #: ../fish/guestfish-actions.pod:5085
16244 msgid "vgs-full"
16245 msgstr "vgs-full"
16246
16247 #. type: verbatim
16248 #: ../fish/guestfish-actions.pod:5087
16249 #, no-wrap
16250 msgid ""
16251 " vgs-full\n"
16252 "\n"
16253 msgstr ""
16254 " vgs-full\n"
16255 "\n"
16256
16257 #. type: textblock
16258 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7708
16259 msgid ""
16260 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16261 "> command.  The \"full\" version includes all fields."
16262 msgstr ""
16263
16264 #. type: =head2
16265 #: ../fish/guestfish-actions.pod:5092
16266 msgid "vgscan"
16267 msgstr "vgscan"
16268
16269 #. type: verbatim
16270 #: ../fish/guestfish-actions.pod:5094
16271 #, no-wrap
16272 msgid ""
16273 " vgscan\n"
16274 "\n"
16275 msgstr ""
16276 " vgscan\n"
16277 "\n"
16278
16279 #. type: textblock
16280 #: ../fish/guestfish-actions.pod:5096 ../src/guestfs-actions.pod:7722
16281 msgid ""
16282 "This rescans all block devices and rebuilds the list of LVM physical "
16283 "volumes, volume groups and logical volumes."
16284 msgstr ""
16285
16286 #. type: =head2
16287 #: ../fish/guestfish-actions.pod:5099
16288 msgid "vguuid"
16289 msgstr "vguuid"
16290
16291 #. type: verbatim
16292 #: ../fish/guestfish-actions.pod:5101
16293 #, no-wrap
16294 msgid ""
16295 " vguuid vgname\n"
16296 "\n"
16297 msgstr ""
16298
16299 #. type: textblock
16300 #: ../fish/guestfish-actions.pod:5103 ../src/guestfs-actions.pod:7735
16301 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16302 msgstr ""
16303
16304 #. type: =head2
16305 #: ../fish/guestfish-actions.pod:5105
16306 msgid "wc-c"
16307 msgstr "wc-c"
16308
16309 #. type: verbatim
16310 #: ../fish/guestfish-actions.pod:5107
16311 #, no-wrap
16312 msgid ""
16313 " wc-c path\n"
16314 "\n"
16315 msgstr ""
16316 " wc-c шлях\n"
16317 "\n"
16318
16319 #. type: textblock
16320 #: ../fish/guestfish-actions.pod:5109 ../src/guestfs-actions.pod:7775
16321 msgid ""
16322 "This command counts the characters in a file, using the C<wc -c> external "
16323 "command."
16324 msgstr ""
16325
16326 #. type: =head2
16327 #: ../fish/guestfish-actions.pod:5112
16328 msgid "wc-l"
16329 msgstr "wc-l"
16330
16331 #. type: verbatim
16332 #: ../fish/guestfish-actions.pod:5114
16333 #, no-wrap
16334 msgid ""
16335 " wc-l path\n"
16336 "\n"
16337 msgstr ""
16338 " wc-l шлях\n"
16339 "\n"
16340
16341 #. type: textblock
16342 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7788
16343 msgid ""
16344 "This command counts the lines in a file, using the C<wc -l> external command."
16345 msgstr ""
16346
16347 #. type: =head2
16348 #: ../fish/guestfish-actions.pod:5119
16349 msgid "wc-w"
16350 msgstr "wc-w"
16351
16352 #. type: verbatim
16353 #: ../fish/guestfish-actions.pod:5121
16354 #, no-wrap
16355 msgid ""
16356 " wc-w path\n"
16357 "\n"
16358 msgstr ""
16359 " wc-w шлях\n"
16360 "\n"
16361
16362 #. type: textblock
16363 #: ../fish/guestfish-actions.pod:5123 ../src/guestfs-actions.pod:7801
16364 msgid ""
16365 "This command counts the words in a file, using the C<wc -w> external command."
16366 msgstr ""
16367
16368 #. type: =head2
16369 #: ../fish/guestfish-actions.pod:5126
16370 msgid "write"
16371 msgstr "write"
16372
16373 #. type: verbatim
16374 #: ../fish/guestfish-actions.pod:5128
16375 #, no-wrap
16376 msgid ""
16377 " write path content\n"
16378 "\n"
16379 msgstr ""
16380 " write шлях дані\n"
16381 "\n"
16382
16383 #. type: textblock
16384 #: ../fish/guestfish-actions.pod:5130 ../src/guestfs-actions.pod:7816
16385 msgid ""
16386 "This call creates a file called C<path>.  The content of the file is the "
16387 "string C<content> (which can contain any 8 bit data)."
16388 msgstr ""
16389
16390 #. type: textblock
16391 #: ../fish/guestfish-actions.pod:5133
16392 msgid "See also L</write-append>."
16393 msgstr ""
16394
16395 #. type: =head2
16396 #: ../fish/guestfish-actions.pod:5138
16397 msgid "write-append"
16398 msgstr ""
16399
16400 #. type: verbatim
16401 #: ../fish/guestfish-actions.pod:5140
16402 #, no-wrap
16403 msgid ""
16404 " write-append path content\n"
16405 "\n"
16406 msgstr ""
16407
16408 #. type: textblock
16409 #: ../fish/guestfish-actions.pod:5142 ../src/guestfs-actions.pod:7836
16410 msgid ""
16411 "This call appends C<content> to the end of file C<path>.  If C<path> does "
16412 "not exist, then a new file is created."
16413 msgstr ""
16414
16415 #. type: textblock
16416 #: ../fish/guestfish-actions.pod:5145
16417 msgid "See also L</write>."
16418 msgstr ""
16419
16420 #. type: =head2
16421 #: ../fish/guestfish-actions.pod:5150
16422 msgid "write-file"
16423 msgstr "write-file"
16424
16425 #. type: verbatim
16426 #: ../fish/guestfish-actions.pod:5152
16427 #, no-wrap
16428 msgid ""
16429 " write-file path content size\n"
16430 "\n"
16431 msgstr ""
16432
16433 #. type: textblock
16434 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7863
16435 msgid ""
16436 "This call creates a file called C<path>.  The contents of the file is the "
16437 "string C<content> (which can contain any 8 bit data), with length C<size>."
16438 msgstr ""
16439
16440 #. type: textblock
16441 #: ../fish/guestfish-actions.pod:5158 ../src/guestfs-actions.pod:7867
16442 msgid ""
16443 "As a special case, if C<size> is C<0> then the length is calculated using "
16444 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16445 msgstr ""
16446
16447 #. type: textblock
16448 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7871
16449 msgid ""
16450 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16451 "I<not> work, even if the length is specified."
16452 msgstr ""
16453
16454 #. type: textblock
16455 #: ../fish/guestfish-actions.pod:5168
16456 msgid ""
16457 "I<This function is deprecated.> In new code, use the L</write> call instead."
16458 msgstr ""
16459
16460 #. type: =head2
16461 #: ../fish/guestfish-actions.pod:5175
16462 msgid "zegrep"
16463 msgstr "zegrep"
16464
16465 #. type: verbatim
16466 #: ../fish/guestfish-actions.pod:5177
16467 #, no-wrap
16468 msgid ""
16469 " zegrep regex path\n"
16470 "\n"
16471 msgstr ""
16472 " zegrep формальний_вираз шлях\n"
16473 "\n"
16474
16475 #. type: textblock
16476 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7888
16477 msgid ""
16478 "This calls the external C<zegrep> program and returns the matching lines."
16479 msgstr ""
16480
16481 #. type: =head2
16482 #: ../fish/guestfish-actions.pod:5185
16483 msgid "zegrepi"
16484 msgstr "zegrepi"
16485
16486 #. type: verbatim
16487 #: ../fish/guestfish-actions.pod:5187
16488 #, no-wrap
16489 msgid ""
16490 " zegrepi regex path\n"
16491 "\n"
16492 msgstr ""
16493
16494 #. type: textblock
16495 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7907
16496 msgid ""
16497 "This calls the external C<zegrep -i> program and returns the matching lines."
16498 msgstr ""
16499
16500 #. type: =head2
16501 #: ../fish/guestfish-actions.pod:5195
16502 msgid "zero"
16503 msgstr "zero"
16504
16505 #. type: verbatim
16506 #: ../fish/guestfish-actions.pod:5197
16507 #, no-wrap
16508 msgid ""
16509 " zero device\n"
16510 "\n"
16511 msgstr ""
16512 " zero пристрій\n"
16513 "\n"
16514
16515 #. type: textblock
16516 #: ../fish/guestfish-actions.pod:5199 ../src/guestfs-actions.pod:7925
16517 msgid "This command writes zeroes over the first few blocks of C<device>."
16518 msgstr ""
16519
16520 #. type: textblock
16521 #: ../fish/guestfish-actions.pod:5201 ../src/guestfs-actions.pod:7927
16522 msgid ""
16523 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16524 "securely wipe the device).  It should be sufficient to remove any partition "
16525 "tables, filesystem superblocks and so on."
16526 msgstr ""
16527
16528 #. type: textblock
16529 #: ../fish/guestfish-actions.pod:5205 ../fish/guestfish-actions.pod:5220
16530 #: ../src/guestfs-actions.pod:7931 ../src/guestfs-actions.pod:7957
16531 msgid ""
16532 "If blocks are already zero, then this command avoids writing zeroes.  This "
16533 "prevents the underlying device from becoming non-sparse or growing "
16534 "unnecessarily."
16535 msgstr ""
16536
16537 #. type: textblock
16538 #: ../fish/guestfish-actions.pod:5209
16539 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16540 msgstr ""
16541
16542 #. type: =head2
16543 #: ../fish/guestfish-actions.pod:5212
16544 msgid "zero-device"
16545 msgstr "zero-device"
16546
16547 #. type: verbatim
16548 #: ../fish/guestfish-actions.pod:5214
16549 #, no-wrap
16550 msgid ""
16551 " zero-device device\n"
16552 "\n"
16553 msgstr ""
16554 " zero-device пристрій\n"
16555 "\n"
16556
16557 #. type: textblock
16558 #: ../fish/guestfish-actions.pod:5216
16559 msgid ""
16560 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16561 "which just zeroes the first few blocks of a device."
16562 msgstr ""
16563
16564 #. type: =head2
16565 #: ../fish/guestfish-actions.pod:5227
16566 msgid "zerofree"
16567 msgstr "zerofree"
16568
16569 #. type: verbatim
16570 #: ../fish/guestfish-actions.pod:5229
16571 #, no-wrap
16572 msgid ""
16573 " zerofree device\n"
16574 "\n"
16575 msgstr ""
16576 " zerofree пристрій\n"
16577 "\n"
16578
16579 #. type: textblock
16580 #: ../fish/guestfish-actions.pod:5231 ../src/guestfs-actions.pod:7979
16581 msgid ""
16582 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16583 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16584 "possible to compress the filesystem more effectively."
16585 msgstr ""
16586
16587 #. type: textblock
16588 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7984
16589 msgid "You should B<not> run this program if the filesystem is mounted."
16590 msgstr ""
16591
16592 #. type: textblock
16593 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:7987
16594 msgid ""
16595 "It is possible that using this program can damage the filesystem or data on "
16596 "the filesystem."
16597 msgstr ""
16598
16599 #. type: =head2
16600 #: ../fish/guestfish-actions.pod:5242
16601 msgid "zfgrep"
16602 msgstr "zfgrep"
16603
16604 #. type: verbatim
16605 #: ../fish/guestfish-actions.pod:5244
16606 #, no-wrap
16607 msgid ""
16608 " zfgrep pattern path\n"
16609 "\n"
16610 msgstr ""
16611 " zfgrep шаблон шлях\n"
16612 "\n"
16613
16614 #. type: textblock
16615 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8001
16616 msgid ""
16617 "This calls the external C<zfgrep> program and returns the matching lines."
16618 msgstr ""
16619
16620 #. type: =head2
16621 #: ../fish/guestfish-actions.pod:5252
16622 msgid "zfgrepi"
16623 msgstr "zfgrepi"
16624
16625 #. type: verbatim
16626 #: ../fish/guestfish-actions.pod:5254
16627 #, no-wrap
16628 msgid ""
16629 " zfgrepi pattern path\n"
16630 "\n"
16631 msgstr ""
16632 " zfgrepi шаблон шлях\n"
16633 "\n"
16634
16635 #. type: textblock
16636 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8020
16637 msgid ""
16638 "This calls the external C<zfgrep -i> program and returns the matching lines."
16639 msgstr ""
16640
16641 #. type: =head2
16642 #: ../fish/guestfish-actions.pod:5262
16643 msgid "zfile"
16644 msgstr "zfile"
16645
16646 #. type: verbatim
16647 #: ../fish/guestfish-actions.pod:5264
16648 #, no-wrap
16649 msgid ""
16650 " zfile meth path\n"
16651 "\n"
16652 msgstr ""
16653 " zfile метод шлях\n"
16654 "\n"
16655
16656 #. type: textblock
16657 #: ../fish/guestfish-actions.pod:5266 ../src/guestfs-actions.pod:8046
16658 msgid ""
16659 "This command runs C<file> after first decompressing C<path> using C<method>."
16660 msgstr ""
16661
16662 #. type: textblock
16663 #: ../fish/guestfish-actions.pod:5269 ../src/guestfs-actions.pod:8049
16664 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16665 msgstr ""
16666
16667 #. type: textblock
16668 #: ../fish/guestfish-actions.pod:5271
16669 msgid ""
16670 "Since 1.0.63, use L</file> instead which can now process compressed files."
16671 msgstr ""
16672
16673 #. type: textblock
16674 #: ../fish/guestfish-actions.pod:5274
16675 msgid ""
16676 "I<This function is deprecated.> In new code, use the L</file> call instead."
16677 msgstr ""
16678
16679 #. type: =head2
16680 #: ../fish/guestfish-actions.pod:5281
16681 msgid "zgrep"
16682 msgstr "zgrep"
16683
16684 #. type: verbatim
16685 #: ../fish/guestfish-actions.pod:5283
16686 #, no-wrap
16687 msgid ""
16688 " zgrep regex path\n"
16689 "\n"
16690 msgstr ""
16691 " zgrep формальний_вираз шлях\n"
16692 "\n"
16693
16694 #. type: textblock
16695 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8066
16696 msgid ""
16697 "This calls the external C<zgrep> program and returns the matching lines."
16698 msgstr ""
16699
16700 #. type: =head2
16701 #: ../fish/guestfish-actions.pod:5291
16702 msgid "zgrepi"
16703 msgstr "zgrepi"
16704
16705 #. type: verbatim
16706 #: ../fish/guestfish-actions.pod:5293
16707 #, no-wrap
16708 msgid ""
16709 " zgrepi regex path\n"
16710 "\n"
16711 msgstr ""
16712 " zgrepi формальний_вираз шлях\n"
16713 "\n"
16714
16715 #. type: textblock
16716 #: ../fish/guestfish-actions.pod:5295 ../src/guestfs-actions.pod:8085
16717 msgid ""
16718 "This calls the external C<zgrep -i> program and returns the matching lines."
16719 msgstr ""
16720
16721 #. type: =head2
16722 #: ../fish/guestfish-commands.pod:1
16723 msgid "alloc"
16724 msgstr "alloc"
16725
16726 #. type: =head2
16727 #: ../fish/guestfish-commands.pod:3
16728 msgid "allocate"
16729 msgstr ""
16730
16731 #. type: verbatim
16732 #: ../fish/guestfish-commands.pod:5
16733 #, no-wrap
16734 msgid ""
16735 " alloc filename size\n"
16736 "\n"
16737 msgstr ""
16738
16739 #. type: textblock
16740 #: ../fish/guestfish-commands.pod:7
16741 msgid ""
16742 "This creates an empty (zeroed) file of the given size, and then adds so it "
16743 "can be further examined."
16744 msgstr ""
16745
16746 #. type: textblock
16747 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16748 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16749 msgstr ""
16750
16751 #. type: textblock
16752 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16753 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16754 msgstr ""
16755
16756 #. type: textblock
16757 #: ../fish/guestfish-commands.pod:14
16758 msgid ""
16759 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16760 "image, see L</PREPARED DISK IMAGES>."
16761 msgstr ""
16762
16763 #. type: =head2
16764 #: ../fish/guestfish-commands.pod:17
16765 msgid "copy-in"
16766 msgstr "copy-in"
16767
16768 #. type: verbatim
16769 #: ../fish/guestfish-commands.pod:19
16770 #, no-wrap
16771 msgid ""
16772 " copy-in local [local ...] /remotedir\n"
16773 "\n"
16774 msgstr ""
16775
16776 #. type: textblock
16777 #: ../fish/guestfish-commands.pod:21
16778 msgid ""
16779 "C<copy-in> copies local files or directories recursively into the disk "
16780 "image, placing them in the directory called C</remotedir> (which must "
16781 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16782 "other commands as necessary."
16783 msgstr ""
16784
16785 #. type: textblock
16786 #: ../fish/guestfish-commands.pod:26
16787 msgid ""
16788 "Multiple local files and directories can be specified, but the last "
16789 "parameter must always be a remote directory.  Wildcards cannot be used."
16790 msgstr ""
16791
16792 #. type: =head2
16793 #: ../fish/guestfish-commands.pod:30
16794 msgid "copy-out"
16795 msgstr "copy-out"
16796
16797 #. type: verbatim
16798 #: ../fish/guestfish-commands.pod:32
16799 #, no-wrap
16800 msgid ""
16801 " copy-out remote [remote ...] localdir\n"
16802 "\n"
16803 msgstr ""
16804
16805 #. type: textblock
16806 #: ../fish/guestfish-commands.pod:34
16807 msgid ""
16808 "C<copy-out> copies remote files or directories recursively out of the disk "
16809 "image, placing them on the host disk in a local directory called C<localdir> "
16810 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
16811 "download>, L</tar-out> and other commands as necessary."
16812 msgstr ""
16813
16814 #. type: textblock
16815 #: ../fish/guestfish-commands.pod:40
16816 msgid ""
16817 "Multiple remote files and directories can be specified, but the last "
16818 "parameter must always be a local directory.  To download to the current "
16819 "directory, use C<.> as in:"
16820 msgstr ""
16821
16822 #. type: verbatim
16823 #: ../fish/guestfish-commands.pod:44
16824 #, no-wrap
16825 msgid ""
16826 " copy-out /home .\n"
16827 "\n"
16828 msgstr ""
16829 " copy-out /home .\n"
16830 "\n"
16831
16832 #. type: textblock
16833 #: ../fish/guestfish-commands.pod:46
16834 msgid ""
16835 "Wildcards cannot be used in the ordinary command, but you can use them with "
16836 "the help of L</glob> like this:"
16837 msgstr ""
16838
16839 #. type: verbatim
16840 #: ../fish/guestfish-commands.pod:49
16841 #, no-wrap
16842 msgid ""
16843 " glob copy-out /home/* .\n"
16844 "\n"
16845 msgstr ""
16846 " glob copy-out /home/* .\n"
16847 "\n"
16848
16849 #. type: =head2
16850 #: ../fish/guestfish-commands.pod:51
16851 msgid "display"
16852 msgstr ""
16853
16854 #. type: verbatim
16855 #: ../fish/guestfish-commands.pod:53
16856 #, no-wrap
16857 msgid ""
16858 " display filename\n"
16859 "\n"
16860 msgstr ""
16861
16862 #. type: textblock
16863 #: ../fish/guestfish-commands.pod:55
16864 msgid ""
16865 "Use C<display> (a graphical display program) to display an image file.  It "
16866 "downloads the file, and runs C<display> on it."
16867 msgstr ""
16868
16869 #. type: textblock
16870 #: ../fish/guestfish-commands.pod:58
16871 msgid ""
16872 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16873 "environment variable.  For example to use the GNOME display program:"
16874 msgstr ""
16875
16876 #. type: verbatim
16877 #: ../fish/guestfish-commands.pod:61
16878 #, no-wrap
16879 msgid ""
16880 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16881 "\n"
16882 msgstr ""
16883
16884 #. type: textblock
16885 #: ../fish/guestfish-commands.pod:63
16886 msgid "See also L<display(1)>."
16887 msgstr ""
16888
16889 #. type: =head2
16890 #: ../fish/guestfish-commands.pod:65
16891 msgid "echo"
16892 msgstr "echo"
16893
16894 #. type: verbatim
16895 #: ../fish/guestfish-commands.pod:67
16896 #, no-wrap
16897 msgid ""
16898 " echo [params ...]\n"
16899 "\n"
16900 msgstr ""
16901 " echo [параметри...]\n"
16902 "\n"
16903
16904 #. type: textblock
16905 #: ../fish/guestfish-commands.pod:69
16906 msgid "This echos the parameters to the terminal."
16907 msgstr ""
16908
16909 #. type: =head2
16910 #: ../fish/guestfish-commands.pod:71
16911 msgid "edit"
16912 msgstr "edit"
16913
16914 #. type: =head2
16915 #: ../fish/guestfish-commands.pod:73
16916 msgid "vi"
16917 msgstr "vi"
16918
16919 #. type: =head2
16920 #: ../fish/guestfish-commands.pod:75
16921 msgid "emacs"
16922 msgstr "emacs"
16923
16924 #. type: verbatim
16925 #: ../fish/guestfish-commands.pod:77
16926 #, no-wrap
16927 msgid ""
16928 " edit filename\n"
16929 "\n"
16930 msgstr ""
16931 " edit назва_файла\n"
16932 "\n"
16933
16934 #. type: textblock
16935 #: ../fish/guestfish-commands.pod:79
16936 msgid ""
16937 "This is used to edit a file.  It downloads the file, edits it locally using "
16938 "your editor, then uploads the result."
16939 msgstr ""
16940
16941 #. type: textblock
16942 #: ../fish/guestfish-commands.pod:82
16943 msgid ""
16944 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16945 "or C<emacs> you will get those corresponding editors."
16946 msgstr ""
16947
16948 #. type: =head2
16949 #: ../fish/guestfish-commands.pod:86
16950 msgid "glob"
16951 msgstr "glob"
16952
16953 #. type: verbatim
16954 #: ../fish/guestfish-commands.pod:88
16955 #, no-wrap
16956 msgid ""
16957 " glob command args...\n"
16958 "\n"
16959 msgstr ""
16960 " glob команда параметри...\n"
16961 "\n"
16962
16963 #. type: textblock
16964 #: ../fish/guestfish-commands.pod:90
16965 msgid ""
16966 "Expand wildcards in any paths in the args list, and run C<command> "
16967 "repeatedly on each matching path."
16968 msgstr ""
16969
16970 #. type: textblock
16971 #: ../fish/guestfish-commands.pod:93
16972 msgid "See L</WILDCARDS AND GLOBBING>."
16973 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16974
16975 #. type: =head2
16976 #: ../fish/guestfish-commands.pod:95
16977 msgid "hexedit"
16978 msgstr "hexedit"
16979
16980 #. type: verbatim
16981 #: ../fish/guestfish-commands.pod:97
16982 #, no-wrap
16983 msgid ""
16984 " hexedit <filename|device>\n"
16985 " hexedit <filename|device> <max>\n"
16986 " hexedit <filename|device> <start> <max>\n"
16987 "\n"
16988 msgstr ""
16989
16990 #. type: textblock
16991 #: ../fish/guestfish-commands.pod:101
16992 msgid ""
16993 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16994 "device."
16995 msgstr ""
16996
16997 #. type: textblock
16998 #: ../fish/guestfish-commands.pod:104
16999 msgid ""
17000 "This command works by downloading potentially the whole file or device, "
17001 "editing it locally, then uploading it.  If the file or device is large, you "
17002 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17003 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
17004 "usual modifiers allowed such as C<1M> (1 megabyte)."
17005 msgstr ""
17006
17007 #. type: textblock
17008 #: ../fish/guestfish-commands.pod:111
17009 msgid "For example to edit the first few sectors of a disk you might do:"
17010 msgstr ""
17011
17012 #. type: verbatim
17013 #: ../fish/guestfish-commands.pod:114
17014 #, no-wrap
17015 msgid ""
17016 " hexedit /dev/sda 1M\n"
17017 "\n"
17018 msgstr ""
17019 " hexedit /dev/sda 1M\n"
17020 "\n"
17021
17022 #. type: textblock
17023 #: ../fish/guestfish-commands.pod:116
17024 msgid ""
17025 "which would allow you to edit anywhere within the first megabyte of the disk."
17026 msgstr ""
17027
17028 #. type: textblock
17029 #: ../fish/guestfish-commands.pod:119
17030 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17031 msgstr ""
17032
17033 #. type: verbatim
17034 #: ../fish/guestfish-commands.pod:121
17035 #, no-wrap
17036 msgid ""
17037 " hexedit /dev/sda1 0x400 0x400\n"
17038 "\n"
17039 msgstr ""
17040 " hexedit /dev/sda1 0x400 0x400\n"
17041 "\n"
17042
17043 #. type: textblock
17044 #: ../fish/guestfish-commands.pod:123
17045 msgid "(assuming the superblock is in the standard location)."
17046 msgstr ""
17047
17048 #. type: textblock
17049 #: ../fish/guestfish-commands.pod:125
17050 msgid ""
17051 "This command requires the external L<hexedit(1)> program.  You can specify "
17052 "another program to use by setting the C<HEXEDITOR> environment variable."
17053 msgstr ""
17054
17055 #. type: textblock
17056 #: ../fish/guestfish-commands.pod:129
17057 msgid "See also L</hexdump>."
17058 msgstr "Див. також L</hexdump>."
17059
17060 #. type: =head2
17061 #: ../fish/guestfish-commands.pod:131
17062 msgid "lcd"
17063 msgstr "lcd"
17064
17065 #. type: verbatim
17066 #: ../fish/guestfish-commands.pod:133
17067 #, no-wrap
17068 msgid ""
17069 " lcd directory\n"
17070 "\n"
17071 msgstr ""
17072
17073 #. type: textblock
17074 #: ../fish/guestfish-commands.pod:135
17075 msgid ""
17076 "Change the local directory, ie. the current directory of guestfish itself."
17077 msgstr ""
17078
17079 #. type: textblock
17080 #: ../fish/guestfish-commands.pod:138
17081 msgid "Note that C<!cd> won't do what you might expect."
17082 msgstr ""
17083
17084 #. type: =head2
17085 #: ../fish/guestfish-commands.pod:140
17086 msgid "man"
17087 msgstr "man"
17088
17089 #. type: =head2
17090 #: ../fish/guestfish-commands.pod:142
17091 msgid "manual"
17092 msgstr ""
17093
17094 #. type: verbatim
17095 #: ../fish/guestfish-commands.pod:144
17096 #, no-wrap
17097 msgid ""
17098 "  man\n"
17099 "\n"
17100 msgstr ""
17101 "  man\n"
17102 "\n"
17103
17104 #. type: textblock
17105 #: ../fish/guestfish-commands.pod:146
17106 msgid "Opens the manual page for guestfish."
17107 msgstr ""
17108
17109 #. type: =head2
17110 #: ../fish/guestfish-commands.pod:148
17111 msgid "more"
17112 msgstr "more"
17113
17114 #. type: =head2
17115 #: ../fish/guestfish-commands.pod:150
17116 msgid "less"
17117 msgstr "less"
17118
17119 #. type: verbatim
17120 #: ../fish/guestfish-commands.pod:152
17121 #, no-wrap
17122 msgid ""
17123 " more filename\n"
17124 "\n"
17125 msgstr ""
17126
17127 #. type: verbatim
17128 #: ../fish/guestfish-commands.pod:154
17129 #, no-wrap
17130 msgid ""
17131 " less filename\n"
17132 "\n"
17133 msgstr ""
17134
17135 #. type: textblock
17136 #: ../fish/guestfish-commands.pod:156
17137 msgid "This is used to view a file."
17138 msgstr ""
17139
17140 #. type: textblock
17141 #: ../fish/guestfish-commands.pod:158
17142 msgid ""
17143 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17144 "C<less> you will get the C<less> command specifically."
17145 msgstr ""
17146
17147 #. type: =head2
17148 #: ../fish/guestfish-commands.pod:161
17149 msgid "reopen"
17150 msgstr "reopen"
17151
17152 #. type: verbatim
17153 #: ../fish/guestfish-commands.pod:163
17154 #, no-wrap
17155 msgid ""
17156 "  reopen\n"
17157 "\n"
17158 msgstr ""
17159
17160 #. type: textblock
17161 #: ../fish/guestfish-commands.pod:165
17162 msgid ""
17163 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17164 "normally, because the handle is closed properly when guestfish exits.  "
17165 "However this is occasionally useful for testing."
17166 msgstr ""
17167
17168 #. type: =head2
17169 #: ../fish/guestfish-commands.pod:169
17170 msgid "setenv"
17171 msgstr ""
17172
17173 #. type: verbatim
17174 #: ../fish/guestfish-commands.pod:171
17175 #, no-wrap
17176 msgid ""
17177 "  setenv VAR value\n"
17178 "\n"
17179 msgstr ""
17180
17181 #. type: textblock
17182 #: ../fish/guestfish-commands.pod:173
17183 msgid "Set the environment variable C<VAR> to the string C<value>."
17184 msgstr ""
17185
17186 #. type: textblock
17187 #: ../fish/guestfish-commands.pod:175
17188 msgid ""
17189 "To print the value of an environment variable use a shell command such as:"
17190 msgstr ""
17191
17192 #. type: verbatim
17193 #: ../fish/guestfish-commands.pod:178
17194 #, no-wrap
17195 msgid ""
17196 " !echo $VAR\n"
17197 "\n"
17198 msgstr ""
17199
17200 #. type: =head2
17201 #: ../fish/guestfish-commands.pod:180
17202 msgid "sparse"
17203 msgstr "sparse"
17204
17205 #. type: verbatim
17206 #: ../fish/guestfish-commands.pod:182
17207 #, no-wrap
17208 msgid ""
17209 " sparse filename size\n"
17210 "\n"
17211 msgstr ""
17212
17213 #. type: textblock
17214 #: ../fish/guestfish-commands.pod:184
17215 msgid ""
17216 "This creates an empty sparse file of the given size, and then adds so it can "
17217 "be further examined."
17218 msgstr ""
17219
17220 #. type: textblock
17221 #: ../fish/guestfish-commands.pod:187
17222 msgid ""
17223 "In all respects it works the same as the L</alloc> command, except that the "
17224 "image file is allocated sparsely, which means that disk blocks are not "
17225 "assigned to the file until they are needed.  Sparse disk files only use "
17226 "space when written to, but they are slower and there is a danger you could "
17227 "run out of real disk space during a write operation."
17228 msgstr ""
17229
17230 #. type: =head2
17231 #: ../fish/guestfish-commands.pod:197
17232 msgid "supported"
17233 msgstr "supported"
17234
17235 #. type: verbatim
17236 #: ../fish/guestfish-commands.pod:199
17237 #, no-wrap
17238 msgid ""
17239 " supported\n"
17240 "\n"
17241 msgstr ""
17242 " supported\n"
17243 "\n"
17244
17245 #. type: textblock
17246 #: ../fish/guestfish-commands.pod:201
17247 msgid ""
17248 "This command returns a list of the optional groups known to the daemon, and "
17249 "indicates which ones are supported by this build of the libguestfs appliance."
17250 msgstr ""
17251
17252 #. type: textblock
17253 #: ../fish/guestfish-commands.pod:205
17254 msgid "See also L<guestfs(3)/AVAILABILITY>."
17255 msgstr ""
17256
17257 #. type: =head2
17258 #: ../fish/guestfish-commands.pod:207
17259 msgid "time"
17260 msgstr "time"
17261
17262 #. type: verbatim
17263 #: ../fish/guestfish-commands.pod:209
17264 #, no-wrap
17265 msgid ""
17266 " time command args...\n"
17267 "\n"
17268 msgstr ""
17269
17270 #. type: textblock
17271 #: ../fish/guestfish-commands.pod:211
17272 msgid ""
17273 "Run the command as usual, but print the elapsed time afterwards.  This can "
17274 "be useful for benchmarking operations."
17275 msgstr ""
17276
17277 #. type: =head2
17278 #: ../fish/guestfish-commands.pod:214
17279 msgid "unsetenv"
17280 msgstr ""
17281
17282 #. type: verbatim
17283 #: ../fish/guestfish-commands.pod:216
17284 #, no-wrap
17285 msgid ""
17286 "  unsetenv VAR\n"
17287 "\n"
17288 msgstr ""
17289
17290 #. type: textblock
17291 #: ../fish/guestfish-commands.pod:218
17292 msgid "Remove C<VAR> from the environment."
17293 msgstr ""
17294
17295 #. type: textblock
17296 #: ../fish/guestfish.pod:5
17297 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17298 msgstr ""
17299
17300 #. type: verbatim
17301 #: ../fish/guestfish.pod:9
17302 #, no-wrap
17303 msgid ""
17304 " guestfish [--options] [commands]\n"
17305 "\n"
17306 msgstr ""
17307
17308 #. type: verbatim
17309 #: ../fish/guestfish.pod:11
17310 #, no-wrap
17311 msgid ""
17312 " guestfish\n"
17313 "\n"
17314 msgstr ""
17315
17316 #. type: verbatim
17317 #: ../fish/guestfish.pod:13
17318 #, no-wrap
17319 msgid ""
17320 " guestfish [--ro|--rw] -a disk.img\n"
17321 "\n"
17322 msgstr ""
17323
17324 #. type: verbatim
17325 #: ../fish/guestfish.pod:15
17326 #, no-wrap
17327 msgid ""
17328 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17329 "\n"
17330 msgstr ""
17331
17332 #. type: verbatim
17333 #: ../fish/guestfish.pod:17
17334 #, no-wrap
17335 msgid ""
17336 " guestfish -d libvirt-domain\n"
17337 "\n"
17338 msgstr ""
17339
17340 #. type: verbatim
17341 #: ../fish/guestfish.pod:19
17342 #, no-wrap
17343 msgid ""
17344 " guestfish [--ro|--rw] -a disk.img -i\n"
17345 "\n"
17346 msgstr ""
17347
17348 #. type: verbatim
17349 #: ../fish/guestfish.pod:21
17350 #, no-wrap
17351 msgid ""
17352 " guestfish -d libvirt-domain -i\n"
17353 "\n"
17354 msgstr ""
17355
17356 #. type: textblock
17357 #: ../fish/guestfish.pod:25
17358 msgid ""
17359 "Using guestfish in read/write mode on live virtual machines can be "
17360 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17361 "option to use guestfish safely if the disk image or virtual machine might be "
17362 "live."
17363 msgstr ""
17364
17365 #. type: textblock
17366 #: ../fish/guestfish.pod:32
17367 msgid ""
17368 "Guestfish is a shell and command-line tool for examining and modifying "
17369 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17370 "functionality of the guestfs API, see L<guestfs(3)>."
17371 msgstr ""
17372
17373 #. type: textblock
17374 #: ../fish/guestfish.pod:36
17375 msgid ""
17376 "Guestfish gives you structured access to the libguestfs API, from shell "
17377 "scripts or the command line or interactively.  If you want to rescue a "
17378 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17379 "command."
17380 msgstr ""
17381
17382 #. type: =head2
17383 #: ../fish/guestfish.pod:43
17384 msgid "As an interactive shell"
17385 msgstr ""
17386
17387 #. type: verbatim
17388 #: ../fish/guestfish.pod:45
17389 #, no-wrap
17390 msgid ""
17391 " $ guestfish\n"
17392 " \n"
17393 msgstr ""
17394
17395 #. type: verbatim
17396 #: ../fish/guestfish.pod:47
17397 #, no-wrap
17398 msgid ""
17399 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17400 " editing virtual machine filesystems.\n"
17401 " \n"
17402 msgstr ""
17403
17404 #. type: verbatim
17405 #: ../fish/guestfish.pod:50
17406 #, no-wrap
17407 msgid ""
17408 " Type: 'help' for a list of commands\n"
17409 "       'man' to read the manual\n"
17410 "       'quit' to quit the shell\n"
17411 " \n"
17412 msgstr ""
17413
17414 #. type: verbatim
17415 #: ../fish/guestfish.pod:54
17416 #, no-wrap
17417 msgid ""
17418 " ><fs> add-ro disk.img\n"
17419 " ><fs> run\n"
17420 " ><fs> list-filesystems\n"
17421 " /dev/sda1: ext4\n"
17422 " /dev/vg_guest/lv_root: ext4\n"
17423 " /dev/vg_guest/lv_swap: swap\n"
17424 " ><fs> mount /dev/vg_guest/lv_root /\n"
17425 " ><fs> cat /etc/fstab\n"
17426 " # /etc/fstab\n"
17427 " # Created by anaconda\n"
17428 " [...]\n"
17429 " ><fs> exit\n"
17430 "\n"
17431 msgstr ""
17432
17433 #. type: =head2
17434 #: ../fish/guestfish.pod:67
17435 msgid "From shell scripts"
17436 msgstr ""
17437
17438 #. type: textblock
17439 #: ../fish/guestfish.pod:69
17440 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17441 msgstr ""
17442
17443 #. type: verbatim
17444 #: ../fish/guestfish.pod:71
17445 #, no-wrap
17446 msgid ""
17447 " guestfish <<_EOF_\n"
17448 " add disk.img\n"
17449 " run\n"
17450 " mount /dev/vg_guest/lv_root /\n"
17451 " write /etc/motd \"Welcome, new users\"\n"
17452 " _EOF_\n"
17453 "\n"
17454 msgstr ""
17455
17456 #. type: textblock
17457 #: ../fish/guestfish.pod:78
17458 msgid "List the LVM logical volumes in a disk image:"
17459 msgstr ""
17460
17461 #. type: verbatim
17462 #: ../fish/guestfish.pod:80
17463 #, no-wrap
17464 msgid ""
17465 " guestfish -a disk.img --ro <<_EOF_\n"
17466 " run\n"
17467 " lvs\n"
17468 " _EOF_\n"
17469 "\n"
17470 msgstr ""
17471
17472 #. type: textblock
17473 #: ../fish/guestfish.pod:85
17474 msgid "List all the filesystems in a disk image:"
17475 msgstr ""
17476
17477 #. type: verbatim
17478 #: ../fish/guestfish.pod:87
17479 #, no-wrap
17480 msgid ""
17481 " guestfish -a disk.img --ro <<_EOF_\n"
17482 " run\n"
17483 " list-filesystems\n"
17484 " _EOF_\n"
17485 "\n"
17486 msgstr ""
17487
17488 #. type: =head2
17489 #: ../fish/guestfish.pod:92
17490 msgid "On one command line"
17491 msgstr ""
17492
17493 #. type: textblock
17494 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17495 msgid "Update C</etc/resolv.conf> in a guest:"
17496 msgstr ""
17497
17498 #. type: verbatim
17499 #: ../fish/guestfish.pod:96
17500 #, no-wrap
17501 msgid ""
17502 " guestfish \\\n"
17503 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17504 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17505 "\n"
17506 msgstr ""
17507
17508 #. type: textblock
17509 #: ../fish/guestfish.pod:100
17510 msgid "Edit C</boot/grub/grub.conf> interactively:"
17511 msgstr ""
17512
17513 #. type: verbatim
17514 #: ../fish/guestfish.pod:102
17515 #, no-wrap
17516 msgid ""
17517 " guestfish --rw --add disk.img \\\n"
17518 "   --mount /dev/vg_guest/lv_root \\\n"
17519 "   --mount /dev/sda1:/boot \\\n"
17520 "   edit /boot/grub/grub.conf\n"
17521 "\n"
17522 msgstr ""
17523
17524 #. type: =head2
17525 #: ../fish/guestfish.pod:107
17526 msgid "Mount disks automatically"
17527 msgstr ""
17528
17529 #. type: textblock
17530 #: ../fish/guestfish.pod:109
17531 msgid ""
17532 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17533 msgstr ""
17534
17535 #. type: verbatim
17536 #: ../fish/guestfish.pod:112
17537 #, no-wrap
17538 msgid ""
17539 " guestfish --ro -a disk.img -i cat /etc/group\n"
17540 "\n"
17541 msgstr ""
17542
17543 #. type: verbatim
17544 #: ../fish/guestfish.pod:114
17545 #, no-wrap
17546 msgid ""
17547 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17548 "\n"
17549 msgstr ""
17550
17551 #. type: textblock
17552 #: ../fish/guestfish.pod:116
17553 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17554 msgstr ""
17555
17556 #. type: verbatim
17557 #: ../fish/guestfish.pod:118
17558 #, no-wrap
17559 msgid ""
17560 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17561 "\n"
17562 msgstr ""
17563
17564 #. type: =head2
17565 #: ../fish/guestfish.pod:120
17566 msgid "As a script interpreter"
17567 msgstr ""
17568
17569 #. type: textblock
17570 #: ../fish/guestfish.pod:122
17571 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17572 msgstr ""
17573
17574 #. type: verbatim
17575 #: ../fish/guestfish.pod:124
17576 #, no-wrap
17577 msgid ""
17578 " #!/usr/bin/guestfish -f\n"
17579 " sparse test1.img 100M\n"
17580 " run\n"
17581 " part-disk /dev/sda mbr\n"
17582 " mkfs ext2 /dev/sda1\n"
17583 "\n"
17584 msgstr ""
17585
17586 #. type: =head2
17587 #: ../fish/guestfish.pod:130
17588 msgid "Start with a prepared disk"
17589 msgstr ""
17590
17591 #. type: textblock
17592 #: ../fish/guestfish.pod:132
17593 msgid ""
17594 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17595 "single ext2-formatted partition:"
17596 msgstr ""
17597
17598 #. type: verbatim
17599 #: ../fish/guestfish.pod:135
17600 #, no-wrap
17601 msgid ""
17602 " guestfish -N fs\n"
17603 "\n"
17604 msgstr ""
17605
17606 #. type: textblock
17607 #: ../fish/guestfish.pod:137
17608 msgid "To list what is available do:"
17609 msgstr ""
17610
17611 #. type: verbatim
17612 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17613 #, no-wrap
17614 msgid ""
17615 " guestfish -N help | less\n"
17616 "\n"
17617 msgstr ""
17618
17619 #. type: =head2
17620 #: ../fish/guestfish.pod:141
17621 msgid "Remote control"
17622 msgstr "Дистанційне керування"
17623
17624 #. type: verbatim
17625 #: ../fish/guestfish.pod:143
17626 #, no-wrap
17627 msgid ""
17628 " eval \"`guestfish --listen`\"\n"
17629 " guestfish --remote add-ro disk.img\n"
17630 " guestfish --remote run\n"
17631 " guestfish --remote lvs\n"
17632 "\n"
17633 msgstr ""
17634 " eval \"`guestfish --listen`\"\n"
17635 " guestfish --remote add-ro disk.img\n"
17636 " guestfish --remote run\n"
17637 " guestfish --remote lvs\n"
17638 "\n"
17639
17640 #. type: textblock
17641 #: ../fish/guestfish.pod:154
17642 msgid "Displays general help on options."
17643 msgstr ""
17644
17645 #. type: =item
17646 #: ../fish/guestfish.pod:158
17647 msgid "B<--cmd-help>"
17648 msgstr "B<--cmd-help>"
17649
17650 #. type: textblock
17651 #: ../fish/guestfish.pod:160
17652 msgid "Lists all available guestfish commands."
17653 msgstr ""
17654
17655 #. type: =item
17656 #: ../fish/guestfish.pod:162
17657 msgid "B<-h cmd>"
17658 msgstr "B<-h команда>"
17659
17660 #. type: =item
17661 #: ../fish/guestfish.pod:164
17662 msgid "B<--cmd-help cmd>"
17663 msgstr "B<--cmd-help команда>"
17664
17665 #. type: textblock
17666 #: ../fish/guestfish.pod:166
17667 msgid "Displays detailed help on a single command C<cmd>."
17668 msgstr ""
17669
17670 #. type: =item
17671 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17672 msgid "B<-a image>"
17673 msgstr "B<-a образ>"
17674
17675 #. type: =item
17676 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17677 msgid "B<--add image>"
17678 msgstr "B<--add образ>"
17679
17680 #. type: textblock
17681 #: ../fish/guestfish.pod:172
17682 msgid "Add a block device or virtual machine image to the shell."
17683 msgstr ""
17684
17685 #. type: textblock
17686 #: ../fish/guestfish.pod:177
17687 msgid ""
17688 "Using this flag is mostly equivalent to using the C<add> command, with "
17689 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17690 "the I<--format=...> flag was given."
17691 msgstr ""
17692
17693 #. type: textblock
17694 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17695 msgid ""
17696 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17697 "URI to use.  The default is to use the default libvirt connection."
17698 msgstr ""
17699
17700 #. type: =item
17701 #: ../fish/guestfish.pod:189
17702 msgid "B<--csh>"
17703 msgstr "B<--csh>"
17704
17705 #. type: textblock
17706 #: ../fish/guestfish.pod:191
17707 msgid ""
17708 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17709 "section L</REMOTE CONTROL AND CSH> below."
17710 msgstr ""
17711
17712 #. type: =item
17713 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17714 msgid "B<-d libvirt-domain>"
17715 msgstr "B<-d домен-libvirt>"
17716
17717 #. type: =item
17718 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17719 msgid "B<--domain libvirt-domain>"
17720 msgstr "B<--domain домен-libvirt>"
17721
17722 #. type: textblock
17723 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17724 msgid ""
17725 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17726 "used, then any libvirt domain can be used.  However in write mode, only "
17727 "libvirt domains which are shut down can be named here."
17728 msgstr ""
17729
17730 #. type: textblock
17731 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17732 msgid "Domain UUIDs can be used instead of names."
17733 msgstr ""
17734
17735 #. type: textblock
17736 #: ../fish/guestfish.pod:204
17737 msgid ""
17738 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17739 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17740 "if the I<--format:...> flag was given."
17741 msgstr ""
17742
17743 #. type: =item
17744 #: ../fish/guestfish.pod:208
17745 msgid "B<-D>"
17746 msgstr "B<-D>"
17747
17748 #. type: =item
17749 #: ../fish/guestfish.pod:210
17750 msgid "B<--no-dest-paths>"
17751 msgstr "B<--no-dest-paths>"
17752
17753 #. type: textblock
17754 #: ../fish/guestfish.pod:212
17755 msgid ""
17756 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17757 "to hit the tab key to complete paths on the guest filesystem, but this "
17758 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17759 "allow this feature to be disabled."
17760 msgstr ""
17761
17762 #. type: textblock
17763 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17764 msgid ""
17765 "When prompting for keys and passphrases, guestfish normally turns echoing "
17766 "off so you cannot see what you are typing.  If you are not worried about "
17767 "Tempest attacks and there is no one else in the room you can specify this "
17768 "flag to see what you are typing."
17769 msgstr ""
17770
17771 #. type: =item
17772 #: ../fish/guestfish.pod:224
17773 msgid "B<-f file>"
17774 msgstr "B<-f файл>"
17775
17776 #. type: =item
17777 #: ../fish/guestfish.pod:226
17778 msgid "B<--file file>"
17779 msgstr "B<--file файл>"
17780
17781 #. type: textblock
17782 #: ../fish/guestfish.pod:228
17783 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17784 msgstr ""
17785
17786 #. type: verbatim
17787 #: ../fish/guestfish.pod:231
17788 #, no-wrap
17789 msgid ""
17790 " #!/usr/bin/guestfish -f\n"
17791 "\n"
17792 msgstr ""
17793 " #!/usr/bin/guestfish -f\n"
17794 "\n"
17795
17796 #. type: verbatim
17797 #: ../fish/guestfish.pod:244
17798 #, no-wrap
17799 msgid ""
17800 " guestfish --format=raw -a disk.img\n"
17801 "\n"
17802 msgstr ""
17803 " guestfish --format=raw -a disk.img\n"
17804 "\n"
17805
17806 #. type: verbatim
17807 #: ../fish/guestfish.pod:248
17808 #, no-wrap
17809 msgid ""
17810 " guestfish --format=raw -a disk.img --format -a another.img\n"
17811 "\n"
17812 msgstr ""
17813 " guestfish --format=raw -a disk.img --format -a another.img\n"
17814 "\n"
17815
17816 #. type: textblock
17817 #: ../fish/guestfish.pod:253
17818 msgid ""
17819 "If you have untrusted raw-format guest disk images, you should use this "
17820 "option to specify the disk format.  This avoids a possible security problem "
17821 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17822 msgstr ""
17823
17824 #. type: =item
17825 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17826 msgid "B<--inspector>"
17827 msgstr "B<--inspector>"
17828
17829 #. type: textblock
17830 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17831 msgid ""
17832 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17833 "system and mount filesystems as they would be mounted on the real virtual "
17834 "machine."
17835 msgstr ""
17836
17837 #. type: textblock
17838 #: ../fish/guestfish.pod:266
17839 msgid "Typical usage is either:"
17840 msgstr ""
17841
17842 #. type: verbatim
17843 #: ../fish/guestfish.pod:268
17844 #, no-wrap
17845 msgid ""
17846 " guestfish -d myguest -i\n"
17847 "\n"
17848 msgstr ""
17849 " guestfish -d myguest -i\n"
17850 "\n"
17851
17852 #. type: textblock
17853 #: ../fish/guestfish.pod:270
17854 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17855 msgstr ""
17856
17857 #. type: verbatim
17858 #: ../fish/guestfish.pod:272
17859 #, no-wrap
17860 msgid ""
17861 " guestfish --ro -d myguest -i\n"
17862 "\n"
17863 msgstr ""
17864 " guestfish --ro -d myguest -i\n"
17865 "\n"
17866
17867 #. type: textblock
17868 #: ../fish/guestfish.pod:274
17869 msgid "(for active domains, readonly), or specify the block device directly:"
17870 msgstr ""
17871
17872 #. type: verbatim
17873 #: ../fish/guestfish.pod:276
17874 #, no-wrap
17875 msgid ""
17876 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17877 "\n"
17878 msgstr ""
17879 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17880 "\n"
17881
17882 #. type: textblock
17883 #: ../fish/guestfish.pod:278
17884 msgid ""
17885 "Note that the command line syntax changed slightly over older versions of "
17886 "guestfish.  You can still use the old syntax:"
17887 msgstr ""
17888
17889 #. type: verbatim
17890 #: ../fish/guestfish.pod:281
17891 #, no-wrap
17892 msgid ""
17893 " guestfish [--ro] -i disk.img\n"
17894 "\n"
17895 msgstr ""
17896 " guestfish [--ro] -i disk.img\n"
17897 "\n"
17898
17899 #. type: verbatim
17900 #: ../fish/guestfish.pod:283
17901 #, no-wrap
17902 msgid ""
17903 " guestfish [--ro] -i libvirt-domain\n"
17904 "\n"
17905 msgstr ""
17906
17907 #. type: textblock
17908 #: ../fish/guestfish.pod:285
17909 msgid ""
17910 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17911 "then using other commands to mount the filesystems that were found."
17912 msgstr ""
17913
17914 #. type: =item
17915 #: ../fish/guestfish.pod:294
17916 msgid "B<--listen>"
17917 msgstr "B<--listen>"
17918
17919 #. type: textblock
17920 #: ../fish/guestfish.pod:296
17921 msgid ""
17922 "Fork into the background and listen for remote commands.  See section L</"
17923 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17924 msgstr ""
17925
17926 #. type: =item
17927 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17928 msgid "B<--live>"
17929 msgstr "B<--live>"
17930
17931 #. type: textblock
17932 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17933 msgid ""
17934 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
17935 "ATTACHING TO RUNNING DAEMONS>)."
17936 msgstr ""
17937
17938 #. type: =item
17939 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17940 msgid "B<-m dev[:mountpoint[:options]]>"
17941 msgstr ""
17942
17943 #. type: =item
17944 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17945 msgid "B<--mount dev[:mountpoint[:options]]>"
17946 msgstr ""
17947
17948 #. type: textblock
17949 #: ../fish/guestfish.pod:308
17950 msgid "Mount the named partition or logical volume on the given mountpoint."
17951 msgstr ""
17952
17953 #. type: textblock
17954 #: ../fish/guestfish.pod:310
17955 msgid "If the mountpoint is omitted, it defaults to C</>."
17956 msgstr ""
17957
17958 #. type: textblock
17959 #: ../fish/guestfish.pod:312
17960 msgid "You have to mount something on C</> before most commands will work."
17961 msgstr ""
17962
17963 #. type: textblock
17964 #: ../fish/guestfish.pod:314
17965 msgid ""
17966 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17967 "launched."
17968 msgstr ""
17969
17970 #. type: textblock
17971 #: ../fish/guestfish.pod:317
17972 msgid ""
17973 "If you don't know what filesystems a disk image contains, you can either run "
17974 "guestfish without this option, then list the partitions, filesystems and LVs "
17975 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17976 "commands), or you can use the L<virt-filesystems(1)> program."
17977 msgstr ""
17978
17979 #. type: textblock
17980 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17981 msgid ""
17982 "The third (and rarely used) part of the mount parameter is the list of mount "
17983 "options used to mount the underlying filesystem.  If this is not given, then "
17984 "the mount options are either the empty string or C<ro> (the latter if the "
17985 "I<--ro> flag is used).  By specifying the mount options, you override this "
17986 "default choice.  Probably the only time you would use this is to enable ACLs "
17987 "and/or extended attributes if the filesystem can support them:"
17988 msgstr ""
17989
17990 #. type: verbatim
17991 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17992 #, no-wrap
17993 msgid ""
17994 " -m /dev/sda1:/:acl,user_xattr\n"
17995 "\n"
17996 msgstr ""
17997
17998 #. type: textblock
17999 #: ../fish/guestfish.pod:333
18000 msgid "Using this flag is equivalent to using the C<mount-options> command."
18001 msgstr ""
18002
18003 #. type: =item
18004 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
18005 #: ../resize/virt-resize.pod:358
18006 msgid "B<-n>"
18007 msgstr "B<-n>"
18008
18009 #. type: =item
18010 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
18011 msgid "B<--no-sync>"
18012 msgstr "B<--no-sync>"
18013
18014 #. type: textblock
18015 #: ../fish/guestfish.pod:339
18016 msgid ""
18017 "Disable autosync.  This is enabled by default.  See the discussion of "
18018 "autosync in the L<guestfs(3)> manpage."
18019 msgstr ""
18020
18021 #. type: =item
18022 #: ../fish/guestfish.pod:342
18023 msgid "B<-N type>"
18024 msgstr "B<-N тип>"
18025
18026 #. type: =item
18027 #: ../fish/guestfish.pod:344
18028 msgid "B<--new type>"
18029 msgstr "B<--new тип>"
18030
18031 #. type: =item
18032 #: ../fish/guestfish.pod:346
18033 msgid "B<-N help>"
18034 msgstr "B<-N help>"
18035
18036 #. type: textblock
18037 #: ../fish/guestfish.pod:348
18038 msgid ""
18039 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
18040 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18041 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18042 "IMAGES> below."
18043 msgstr ""
18044
18045 #. type: =item
18046 #: ../fish/guestfish.pod:353
18047 msgid "B<--progress-bars>"
18048 msgstr "B<--progress-bars>"
18049
18050 #. type: textblock
18051 #: ../fish/guestfish.pod:355
18052 msgid "Enable progress bars, even when guestfish is used non-interactively."
18053 msgstr ""
18054
18055 #. type: textblock
18056 #: ../fish/guestfish.pod:357
18057 msgid ""
18058 "Progress bars are enabled by default when guestfish is used as an "
18059 "interactive shell."
18060 msgstr ""
18061
18062 #. type: =item
18063 #: ../fish/guestfish.pod:360
18064 msgid "B<--no-progress-bars>"
18065 msgstr "B<--no-progress-bars>"
18066
18067 #. type: textblock
18068 #: ../fish/guestfish.pod:362
18069 msgid "Disable progress bars."
18070 msgstr ""
18071
18072 #. type: =item
18073 #: ../fish/guestfish.pod:364
18074 msgid "B<--remote[=pid]>"
18075 msgstr "B<--remote[=pid]>"
18076
18077 #. type: textblock
18078 #: ../fish/guestfish.pod:366
18079 msgid ""
18080 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18081 "CONTROL GUESTFISH OVER A SOCKET> below."
18082 msgstr ""
18083
18084 #. type: =item
18085 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
18086 #: ../rescue/virt-rescue.pod:161
18087 msgid "B<-r>"
18088 msgstr "B<-r>"
18089
18090 #. type: =item
18091 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
18092 #: ../rescue/virt-rescue.pod:163
18093 msgid "B<--ro>"
18094 msgstr "B<--ro>"
18095
18096 #. type: textblock
18097 #: ../fish/guestfish.pod:373
18098 msgid ""
18099 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18100 "mounts are done read-only."
18101 msgstr ""
18102
18103 #. type: textblock
18104 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18105 msgid ""
18106 "The option must always be used if the disk image or virtual machine might be "
18107 "running, and is generally recommended in cases where you don't need write "
18108 "access to the disk."
18109 msgstr ""
18110
18111 #. type: textblock
18112 #: ../fish/guestfish.pod:380
18113 msgid ""
18114 "Note that prepared disk images created with I<-N> are not affected by this "
18115 "option.  Also commands like C<add> are not affected - you have to specify "
18116 "the C<readonly:true> option explicitly if you need it."
18117 msgstr ""
18118
18119 #. type: textblock
18120 #: ../fish/guestfish.pod:384
18121 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18122 msgstr ""
18123
18124 #. type: =item
18125 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
18126 #: ../rescue/virt-rescue.pod:173
18127 msgid "B<--selinux>"
18128 msgstr "B<--selinux>"
18129
18130 #. type: textblock
18131 #: ../fish/guestfish.pod:388
18132 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18133 msgstr ""
18134
18135 #. type: textblock
18136 #: ../fish/guestfish.pod:394
18137 msgid ""
18138 "Enable very verbose messages.  This is particularly useful if you find a bug."
18139 msgstr ""
18140
18141 #. type: textblock
18142 #: ../fish/guestfish.pod:401
18143 msgid "Display the guestfish / libguestfs version number and exit."
18144 msgstr ""
18145
18146 #. type: =item
18147 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
18148 #: ../rescue/virt-rescue.pod:194
18149 msgid "B<-w>"
18150 msgstr "B<-w>"
18151
18152 #. type: =item
18153 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
18154 #: ../rescue/virt-rescue.pod:196
18155 msgid "B<--rw>"
18156 msgstr "B<--rw>"
18157
18158 #. type: textblock
18159 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
18160 msgid ""
18161 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18162 "mounts are done read-write."
18163 msgstr ""
18164
18165 #. type: textblock
18166 #: ../fish/guestfish.pod:410
18167 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18168 msgstr ""
18169
18170 #. type: textblock
18171 #: ../fish/guestfish.pod:414
18172 msgid "Echo each command before executing it."
18173 msgstr ""
18174
18175 #. type: =head1
18176 #: ../fish/guestfish.pod:418
18177 msgid "COMMANDS ON COMMAND LINE"
18178 msgstr ""
18179
18180 #. type: textblock
18181 #: ../fish/guestfish.pod:420
18182 msgid ""
18183 "Any additional (non-option) arguments are treated as commands to execute."
18184 msgstr ""
18185
18186 #. type: textblock
18187 #: ../fish/guestfish.pod:423
18188 msgid ""
18189 "Commands to execute should be separated by a colon (C<:>), where the colon "
18190 "is a separate parameter.  Thus:"
18191 msgstr ""
18192
18193 #. type: verbatim
18194 #: ../fish/guestfish.pod:426
18195 #, no-wrap
18196 msgid ""
18197 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18198 "\n"
18199 msgstr ""
18200
18201 #. type: textblock
18202 #: ../fish/guestfish.pod:428
18203 msgid ""
18204 "If there are no additional arguments, then we enter a shell, either an "
18205 "interactive shell with a prompt (if the input is a terminal) or a non-"
18206 "interactive shell."
18207 msgstr ""
18208
18209 #. type: textblock
18210 #: ../fish/guestfish.pod:432
18211 msgid ""
18212 "In either command line mode or non-interactive shell, the first command that "
18213 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18214 "prompt) if a command fails, you can continue to enter commands."
18215 msgstr ""
18216
18217 #. type: =head1
18218 #: ../fish/guestfish.pod:437
18219 msgid "USING launch (OR run)"
18220 msgstr ""
18221
18222 #. type: textblock
18223 #: ../fish/guestfish.pod:439
18224 msgid ""
18225 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18226 "then launch it, then mount any disks you need, and finally issue actions/"
18227 "commands.  So the general order of the day is:"
18228 msgstr ""
18229
18230 #. type: textblock
18231 #: ../fish/guestfish.pod:447
18232 msgid "add or -a/--add"
18233 msgstr ""
18234
18235 #. type: textblock
18236 #: ../fish/guestfish.pod:451
18237 msgid "launch (aka run)"
18238 msgstr ""
18239
18240 #. type: textblock
18241 #: ../fish/guestfish.pod:455
18242 msgid "mount or -m/--mount"
18243 msgstr ""
18244
18245 #. type: textblock
18246 #: ../fish/guestfish.pod:459
18247 msgid "any other commands"
18248 msgstr ""
18249
18250 #. type: textblock
18251 #: ../fish/guestfish.pod:463
18252 msgid ""
18253 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18254 "guest before mounting or performing any other commands."
18255 msgstr ""
18256
18257 #. type: textblock
18258 #: ../fish/guestfish.pod:466
18259 msgid ""
18260 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18261 "I<--new> options were given then C<run> is done automatically, simply "
18262 "because guestfish can't perform the action you asked for without doing this."
18263 msgstr ""
18264
18265 #. type: =head1
18266 #: ../fish/guestfish.pod:471
18267 msgid "OPENING DISKS FOR READ AND WRITE"
18268 msgstr ""
18269
18270 #. type: textblock
18271 #: ../fish/guestfish.pod:473
18272 msgid ""
18273 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18274 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18275 "I<-i> and I<-m> open disk images read-only or for writing."
18276 msgstr ""
18277
18278 #. type: textblock
18279 #: ../fish/guestfish.pod:478
18280 msgid ""
18281 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18282 "opening disk images supplied on the command line for write.  To open a disk "
18283 "image read-only you have to do I<-a image --ro>."
18284 msgstr ""
18285
18286 #. type: textblock
18287 #: ../fish/guestfish.pod:482
18288 msgid ""
18289 "This matters: If you accidentally open a live VM disk image writable then "
18290 "you will cause irreversible disk corruption."
18291 msgstr ""
18292
18293 #. type: textblock
18294 #: ../fish/guestfish.pod:485
18295 msgid ""
18296 "In a future libguestfs we intend to change the default the other way.  Disk "
18297 "images will be opened read-only.  You will have to either specify "
18298 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18299 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18300 "access for disk images specified by those other command line options."
18301 msgstr ""
18302
18303 #. type: textblock
18304 #: ../fish/guestfish.pod:492
18305 msgid ""
18306 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18307 "which does nothing (it is already the default).  However it is highly "
18308 "recommended that you use this option to indicate that you need write access, "
18309 "and prepare your scripts for the day when this option will be required for "
18310 "write access."
18311 msgstr ""
18312
18313 #. type: textblock
18314 #: ../fish/guestfish.pod:498
18315 msgid ""
18316 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18317 "other libguestfs program apart from guestfish and guestmount."
18318 msgstr ""
18319
18320 #. type: =head1
18321 #: ../fish/guestfish.pod:501
18322 msgid "QUOTING"
18323 msgstr ""
18324
18325 #. type: textblock
18326 #: ../fish/guestfish.pod:503
18327 msgid ""
18328 "You can quote ordinary parameters using either single or double quotes.  For "
18329 "example:"
18330 msgstr ""
18331
18332 #. type: verbatim
18333 #: ../fish/guestfish.pod:506
18334 #, no-wrap
18335 msgid ""
18336 " add \"file with a space.img\"\n"
18337 "\n"
18338 msgstr ""
18339
18340 #. type: verbatim
18341 #: ../fish/guestfish.pod:508
18342 #, no-wrap
18343 msgid ""
18344 " rm '/file name'\n"
18345 "\n"
18346 msgstr ""
18347
18348 #. type: verbatim
18349 #: ../fish/guestfish.pod:510
18350 #, no-wrap
18351 msgid ""
18352 " rm '/\"'\n"
18353 "\n"
18354 msgstr ""
18355
18356 #. type: textblock
18357 #: ../fish/guestfish.pod:512
18358 msgid ""
18359 "A few commands require a list of strings to be passed.  For these, use a "
18360 "whitespace-separated list, enclosed in quotes.  Strings containing "
18361 "whitespace to be passed through must be enclosed in single quotes.  A "
18362 "literal single quote must be escaped with a backslash."
18363 msgstr ""
18364
18365 #. type: verbatim
18366 #: ../fish/guestfish.pod:517
18367 #, no-wrap
18368 msgid ""
18369 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18370 " command \"/bin/echo 'foo      bar'\"\n"
18371 " command \"/bin/echo \\'foo\\'\"\n"
18372 "\n"
18373 msgstr ""
18374
18375 #. type: =head2
18376 #: ../fish/guestfish.pod:521
18377 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18378 msgstr ""
18379
18380 #. type: textblock
18381 #: ../fish/guestfish.pod:523
18382 msgid ""
18383 "In double-quoted arguments (only) use backslash to insert special characters:"
18384 msgstr ""
18385
18386 #. type: =item
18387 #: ../fish/guestfish.pod:528
18388 msgid "C<\\a>"
18389 msgstr ""
18390
18391 #. type: textblock
18392 #: ../fish/guestfish.pod:530
18393 msgid "Alert (bell) character."
18394 msgstr ""
18395
18396 #. type: =item
18397 #: ../fish/guestfish.pod:532
18398 msgid "C<\\b>"
18399 msgstr ""
18400
18401 #. type: textblock
18402 #: ../fish/guestfish.pod:534
18403 msgid "Backspace character."
18404 msgstr ""
18405
18406 #. type: =item
18407 #: ../fish/guestfish.pod:536
18408 msgid "C<\\f>"
18409 msgstr ""
18410
18411 #. type: textblock
18412 #: ../fish/guestfish.pod:538
18413 msgid "Form feed character."
18414 msgstr ""
18415
18416 #. type: =item
18417 #: ../fish/guestfish.pod:540
18418 msgid "C<\\n>"
18419 msgstr ""
18420
18421 #. type: textblock
18422 #: ../fish/guestfish.pod:542
18423 msgid "Newline character."
18424 msgstr ""
18425
18426 #. type: =item
18427 #: ../fish/guestfish.pod:544
18428 msgid "C<\\r>"
18429 msgstr ""
18430
18431 #. type: textblock
18432 #: ../fish/guestfish.pod:546
18433 msgid "Carriage return character."
18434 msgstr ""
18435
18436 #. type: =item
18437 #: ../fish/guestfish.pod:548
18438 msgid "C<\\t>"
18439 msgstr ""
18440
18441 #. type: textblock
18442 #: ../fish/guestfish.pod:550
18443 msgid "Horizontal tab character."
18444 msgstr ""
18445
18446 #. type: =item
18447 #: ../fish/guestfish.pod:552
18448 msgid "C<\\v>"
18449 msgstr ""
18450
18451 #. type: textblock
18452 #: ../fish/guestfish.pod:554
18453 msgid "Vertical tab character."
18454 msgstr ""
18455
18456 #. type: =item
18457 #: ../fish/guestfish.pod:556
18458 msgid "C<\\\">"
18459 msgstr ""
18460
18461 #. type: textblock
18462 #: ../fish/guestfish.pod:558
18463 msgid "A literal double quote character."
18464 msgstr ""
18465
18466 #. type: =item
18467 #: ../fish/guestfish.pod:560
18468 msgid "C<\\ooo>"
18469 msgstr ""
18470
18471 #. type: textblock
18472 #: ../fish/guestfish.pod:562
18473 msgid ""
18474 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18475 "(unlike C)."
18476 msgstr ""
18477
18478 #. type: =item
18479 #: ../fish/guestfish.pod:565
18480 msgid "C<\\xhh>"
18481 msgstr ""
18482
18483 #. type: textblock
18484 #: ../fish/guestfish.pod:567
18485 msgid ""
18486 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18487 msgstr ""
18488
18489 #. type: textblock
18490 #: ../fish/guestfish.pod:570
18491 msgid ""
18492 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18493 "strings."
18494 msgstr ""
18495
18496 #. type: =item
18497 #: ../fish/guestfish.pod:573
18498 msgid "C<\\\\>"
18499 msgstr ""
18500
18501 #. type: textblock
18502 #: ../fish/guestfish.pod:575
18503 msgid "A literal backslash character."
18504 msgstr ""
18505
18506 #. type: =head1
18507 #: ../fish/guestfish.pod:579
18508 msgid "OPTIONAL ARGUMENTS"
18509 msgstr ""
18510
18511 #. type: textblock
18512 #: ../fish/guestfish.pod:581
18513 msgid ""
18514 "Some commands take optional arguments.  These arguments appear in this "
18515 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18516 msgstr ""
18517
18518 #. type: verbatim
18519 #: ../fish/guestfish.pod:585
18520 #, no-wrap
18521 msgid ""
18522 " add-drive-opts filename\n"
18523 "\n"
18524 msgstr ""
18525
18526 #. type: verbatim
18527 #: ../fish/guestfish.pod:587
18528 #, no-wrap
18529 msgid ""
18530 " add-drive-opts filename readonly:true\n"
18531 "\n"
18532 msgstr ""
18533
18534 #. type: verbatim
18535 #: ../fish/guestfish.pod:589
18536 #, no-wrap
18537 msgid ""
18538 " add-drive-opts filename format:qcow2 readonly:false\n"
18539 "\n"
18540 msgstr ""
18541
18542 #. type: textblock
18543 #: ../fish/guestfish.pod:591
18544 msgid ""
18545 "Each optional argument can appear at most once.  All optional arguments must "
18546 "appear after the required ones."
18547 msgstr ""
18548
18549 #. type: =head1
18550 #: ../fish/guestfish.pod:594
18551 msgid "NUMBERS"
18552 msgstr "ЧИСЛА"
18553
18554 #. type: textblock
18555 #: ../fish/guestfish.pod:596
18556 msgid ""
18557 "This section applies to all commands which can take integers as parameters."
18558 msgstr ""
18559
18560 #. type: =head2
18561 #: ../fish/guestfish.pod:599
18562 msgid "SIZE SUFFIX"
18563 msgstr ""
18564
18565 #. type: textblock
18566 #: ../fish/guestfish.pod:601
18567 msgid ""
18568 "When the command takes a parameter measured in bytes, you can use one of the "
18569 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18570 msgstr ""
18571
18572 #. type: =item
18573 #: ../fish/guestfish.pod:607
18574 msgid "B<k> or B<K> or B<KiB>"
18575 msgstr "B<k>, B<K> або B<KiB>"
18576
18577 #. type: textblock
18578 #: ../fish/guestfish.pod:609
18579 msgid "The size in kilobytes (multiplied by 1024)."
18580 msgstr ""
18581
18582 #. type: =item
18583 #: ../fish/guestfish.pod:611
18584 msgid "B<KB>"
18585 msgstr "B<KB>"
18586
18587 #. type: textblock
18588 #: ../fish/guestfish.pod:613
18589 msgid "The size in SI 1000 byte units."
18590 msgstr ""
18591
18592 #. type: =item
18593 #: ../fish/guestfish.pod:615
18594 msgid "B<M> or B<MiB>"
18595 msgstr "B<M> або B<MiB>"
18596
18597 #. type: textblock
18598 #: ../fish/guestfish.pod:617
18599 msgid "The size in megabytes (multiplied by 1048576)."
18600 msgstr ""
18601
18602 #. type: =item
18603 #: ../fish/guestfish.pod:619
18604 msgid "B<MB>"
18605 msgstr "B<MB>"
18606
18607 #. type: textblock
18608 #: ../fish/guestfish.pod:621
18609 msgid "The size in SI 1000000 byte units."
18610 msgstr ""
18611
18612 #. type: =item
18613 #: ../fish/guestfish.pod:623
18614 msgid "B<G> or B<GiB>"
18615 msgstr "B<G> або B<GiB>"
18616
18617 #. type: textblock
18618 #: ../fish/guestfish.pod:625
18619 msgid "The size in gigabytes (multiplied by 2**30)."
18620 msgstr "Розмір у гігабайтах (з множником 2**30)."
18621
18622 #. type: =item
18623 #: ../fish/guestfish.pod:627
18624 msgid "B<GB>"
18625 msgstr "B<GB>"
18626
18627 #. type: textblock
18628 #: ../fish/guestfish.pod:629
18629 msgid "The size in SI 10**9 byte units."
18630 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18631
18632 #. type: =item
18633 #: ../fish/guestfish.pod:631
18634 msgid "B<T> or B<TiB>"
18635 msgstr "B<T> або B<TiB>"
18636
18637 #. type: textblock
18638 #: ../fish/guestfish.pod:633
18639 msgid "The size in terabytes (multiplied by 2**40)."
18640 msgstr "Розмір у терабайтах (з множником 2**40)."
18641
18642 #. type: =item
18643 #: ../fish/guestfish.pod:635
18644 msgid "B<TB>"
18645 msgstr "B<TB>"
18646
18647 #. type: textblock
18648 #: ../fish/guestfish.pod:637
18649 msgid "The size in SI 10**12 byte units."
18650 msgstr ""
18651
18652 #. type: =item
18653 #: ../fish/guestfish.pod:639
18654 msgid "B<P> or B<PiB>"
18655 msgstr "B<P> або B<PiB>"
18656
18657 #. type: textblock
18658 #: ../fish/guestfish.pod:641
18659 msgid "The size in petabytes (multiplied by 2**50)."
18660 msgstr ""
18661
18662 #. type: =item
18663 #: ../fish/guestfish.pod:643
18664 msgid "B<PB>"
18665 msgstr "B<PB>"
18666
18667 #. type: textblock
18668 #: ../fish/guestfish.pod:645
18669 msgid "The size in SI 10**15 byte units."
18670 msgstr ""
18671
18672 #. type: =item
18673 #: ../fish/guestfish.pod:647
18674 msgid "B<E> or B<EiB>"
18675 msgstr "B<E> або B<EiB>"
18676
18677 #. type: textblock
18678 #: ../fish/guestfish.pod:649
18679 msgid "The size in exabytes (multiplied by 2**60)."
18680 msgstr ""
18681
18682 #. type: =item
18683 #: ../fish/guestfish.pod:651
18684 msgid "B<EB>"
18685 msgstr "B<EB>"
18686
18687 #. type: textblock
18688 #: ../fish/guestfish.pod:653
18689 msgid "The size in SI 10**18 byte units."
18690 msgstr ""
18691
18692 #. type: =item
18693 #: ../fish/guestfish.pod:655
18694 msgid "B<Z> or B<ZiB>"
18695 msgstr "B<Z> або B<ZiB>"
18696
18697 #. type: textblock
18698 #: ../fish/guestfish.pod:657
18699 msgid "The size in zettabytes (multiplied by 2**70)."
18700 msgstr ""
18701
18702 #. type: =item
18703 #: ../fish/guestfish.pod:659
18704 msgid "B<ZB>"
18705 msgstr "B<ZB>"
18706
18707 #. type: textblock
18708 #: ../fish/guestfish.pod:661
18709 msgid "The size in SI 10**21 byte units."
18710 msgstr ""
18711
18712 #. type: =item
18713 #: ../fish/guestfish.pod:663
18714 msgid "B<Y> or B<YiB>"
18715 msgstr "B<Y> або B<YiB>"
18716
18717 #. type: textblock
18718 #: ../fish/guestfish.pod:665
18719 msgid "The size in yottabytes (multiplied by 2**80)."
18720 msgstr ""
18721
18722 #. type: =item
18723 #: ../fish/guestfish.pod:667
18724 msgid "B<YB>"
18725 msgstr "B<YB>"
18726
18727 #. type: textblock
18728 #: ../fish/guestfish.pod:669
18729 msgid "The size in SI 10**24 byte units."
18730 msgstr ""
18731
18732 #. type: verbatim
18733 #: ../fish/guestfish.pod:675
18734 #, no-wrap
18735 msgid ""
18736 " truncate-size /file 1G\n"
18737 "\n"
18738 msgstr ""
18739
18740 #. type: textblock
18741 #: ../fish/guestfish.pod:677
18742 msgid "would truncate the file to 1 gigabyte."
18743 msgstr ""
18744
18745 #. type: textblock
18746 #: ../fish/guestfish.pod:679
18747 msgid ""
18748 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18749 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18750 "suffix will probably not do what you expect."
18751 msgstr ""
18752
18753 #. type: =head2
18754 #: ../fish/guestfish.pod:683
18755 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18756 msgstr ""
18757
18758 #. type: textblock
18759 #: ../fish/guestfish.pod:685
18760 msgid ""
18761 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18762 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18763 msgstr ""
18764
18765 #. type: verbatim
18766 #: ../fish/guestfish.pod:688
18767 #, no-wrap
18768 msgid ""
18769 " 1234      decimal number 1234\n"
18770 " 02322     octal number, equivalent to decimal 1234\n"
18771 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18772 "\n"
18773 msgstr ""
18774
18775 #. type: textblock
18776 #: ../fish/guestfish.pod:692
18777 msgid ""
18778 "When using the C<chmod> command, you almost always want to specify an octal "
18779 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18780 "L<chmod(1)> program):"
18781 msgstr ""
18782
18783 #. type: verbatim
18784 #: ../fish/guestfish.pod:696
18785 #, no-wrap
18786 msgid ""
18787 " chmod 0777 /public  # OK\n"
18788 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18789 "\n"
18790 msgstr ""
18791
18792 #. type: textblock
18793 #: ../fish/guestfish.pod:699
18794 msgid ""
18795 "Commands that return numbers usually print them in decimal, but some "
18796 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18797 "octal, preceeded by C<0>)."
18798 msgstr ""
18799
18800 #. type: =head1
18801 #: ../fish/guestfish.pod:703
18802 msgid "WILDCARDS AND GLOBBING"
18803 msgstr ""
18804
18805 #. type: textblock
18806 #: ../fish/guestfish.pod:705
18807 msgid ""
18808 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18809 "(globbing) by default.  So for example the following will not do what you "
18810 "expect:"
18811 msgstr ""
18812
18813 #. type: verbatim
18814 #: ../fish/guestfish.pod:709
18815 #, no-wrap
18816 msgid ""
18817 " rm-rf /home/*\n"
18818 "\n"
18819 msgstr ""
18820
18821 #. type: textblock
18822 #: ../fish/guestfish.pod:711
18823 msgid ""
18824 "Assuming you don't have a directory called literally C</home/*> then the "
18825 "above command will return an error."
18826 msgstr ""
18827
18828 #. type: textblock
18829 #: ../fish/guestfish.pod:714
18830 msgid "To perform wildcard expansion, use the C<glob> command."
18831 msgstr ""
18832
18833 #. type: verbatim
18834 #: ../fish/guestfish.pod:716
18835 #, no-wrap
18836 msgid ""
18837 " glob rm-rf /home/*\n"
18838 "\n"
18839 msgstr ""
18840
18841 #. type: textblock
18842 #: ../fish/guestfish.pod:718
18843 msgid ""
18844 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18845 "many times), equivalent to:"
18846 msgstr ""
18847
18848 #. type: verbatim
18849 #: ../fish/guestfish.pod:721
18850 #, no-wrap
18851 msgid ""
18852 " rm-rf /home/jim\n"
18853 " rm-rf /home/joe\n"
18854 " rm-rf /home/mary\n"
18855 "\n"
18856 msgstr ""
18857
18858 #. type: textblock
18859 #: ../fish/guestfish.pod:725
18860 msgid "C<glob> only works on simple guest paths and not on device names."
18861 msgstr ""
18862
18863 #. type: textblock
18864 #: ../fish/guestfish.pod:727
18865 msgid ""
18866 "If you have several parameters, each containing a wildcard, then glob will "
18867 "perform a Cartesian product."
18868 msgstr ""
18869
18870 #. type: =head1
18871 #: ../fish/guestfish.pod:730
18872 msgid "COMMENTS"
18873 msgstr "КОМЕНТАРІ"
18874
18875 #. type: textblock
18876 #: ../fish/guestfish.pod:732
18877 msgid ""
18878 "Any line which starts with a I<#> character is treated as a comment and "
18879 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18880 "a command.  For example:"
18881 msgstr ""
18882
18883 #. type: verbatim
18884 #: ../fish/guestfish.pod:736
18885 #, no-wrap
18886 msgid ""
18887 " # this is a comment\n"
18888 "         # this is a comment\n"
18889 " foo # NOT a comment\n"
18890 "\n"
18891 msgstr ""
18892
18893 #. type: textblock
18894 #: ../fish/guestfish.pod:740
18895 msgid "Blank lines are also ignored."
18896 msgstr ""
18897
18898 #. type: =head1
18899 #: ../fish/guestfish.pod:742
18900 msgid "RUNNING COMMANDS LOCALLY"
18901 msgstr ""
18902
18903 #. type: textblock
18904 #: ../fish/guestfish.pod:744
18905 msgid ""
18906 "Any line which starts with a I<!> character is treated as a command sent to "
18907 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18908 msgstr ""
18909
18910 #. type: verbatim
18911 #: ../fish/guestfish.pod:748
18912 #, no-wrap
18913 msgid ""
18914 " !mkdir local\n"
18915 " tgz-out /remote local/remote-data.tar.gz\n"
18916 "\n"
18917 msgstr ""
18918
18919 #. type: textblock
18920 #: ../fish/guestfish.pod:751
18921 msgid ""
18922 "will create a directory C<local> on the host, and then export the contents "
18923 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18924 "(See C<tgz-out>)."
18925 msgstr ""
18926
18927 #. type: textblock
18928 #: ../fish/guestfish.pod:755
18929 msgid ""
18930 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18931 "effect, due to the way that subprocesses work in Unix."
18932 msgstr ""
18933
18934 #. type: =head2
18935 #: ../fish/guestfish.pod:758
18936 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18937 msgstr ""
18938
18939 #. type: textblock
18940 #: ../fish/guestfish.pod:760
18941 msgid ""
18942 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18943 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18944 "and executed as guestfish commands."
18945 msgstr ""
18946
18947 #. type: textblock
18948 #: ../fish/guestfish.pod:764
18949 msgid ""
18950 "Thus you can use shell script to construct arbitrary guestfish commands "
18951 "which are then parsed by guestfish."
18952 msgstr ""
18953
18954 #. type: textblock
18955 #: ../fish/guestfish.pod:767
18956 msgid ""
18957 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18958 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18959 "if we use a shell script to create the guestfish commands for us:"
18960 msgstr ""
18961
18962 #. type: verbatim
18963 #: ../fish/guestfish.pod:772
18964 #, no-wrap
18965 msgid ""
18966 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18967 "\n"
18968 msgstr ""
18969
18970 #. type: textblock
18971 #: ../fish/guestfish.pod:774
18972 msgid "or with names like C</foo.001>:"
18973 msgstr ""
18974
18975 #. type: verbatim
18976 #: ../fish/guestfish.pod:776
18977 #, no-wrap
18978 msgid ""
18979 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18980 "\n"
18981 msgstr ""
18982
18983 #. type: textblock
18984 #: ../fish/guestfish.pod:778
18985 msgid ""
18986 "When using guestfish interactively it can be helpful to just run the shell "
18987 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18988 "ordinary I<!> local command), see what guestfish commands it would run, and "
18989 "when you are happy with those prepend the C<E<lt>> character to run the "
18990 "guestfish commands for real."
18991 msgstr ""
18992
18993 #. type: =head1
18994 #: ../fish/guestfish.pod:784
18995 msgid "PIPES"
18996 msgstr "КАНАЛИ"
18997
18998 #. type: textblock
18999 #: ../fish/guestfish.pod:786
19000 msgid ""
19001 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19002 "command (a guestfish command) to the second command (any host command).  For "
19003 "example:"
19004 msgstr ""
19005
19006 #. type: verbatim
19007 #: ../fish/guestfish.pod:790
19008 #, no-wrap
19009 msgid ""
19010 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19011 "\n"
19012 msgstr ""
19013
19014 #. type: textblock
19015 #: ../fish/guestfish.pod:792
19016 msgid ""
19017 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19018 "program).  The above command would list all accounts in the guest filesystem "
19019 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
19020 msgstr ""
19021
19022 #. type: verbatim
19023 #: ../fish/guestfish.pod:797
19024 #, no-wrap
19025 msgid ""
19026 " hexdump /bin/ls | head\n"
19027 " list-devices | tail -1\n"
19028 " tgz-out / - | tar ztf -\n"
19029 "\n"
19030 msgstr ""
19031
19032 #. type: textblock
19033 #: ../fish/guestfish.pod:801
19034 msgid ""
19035 "The space before the pipe symbol is required, any space after the pipe "
19036 "symbol is optional.  Everything after the pipe symbol is just passed "
19037 "straight to the host shell, so it can contain redirections, globs and "
19038 "anything else that makes sense on the host side."
19039 msgstr ""
19040
19041 #. type: textblock
19042 #: ../fish/guestfish.pod:806
19043 msgid ""
19044 "To use a literal argument which begins with a pipe symbol, you have to quote "
19045 "it, eg:"
19046 msgstr ""
19047
19048 #. type: verbatim
19049 #: ../fish/guestfish.pod:809
19050 #, no-wrap
19051 msgid ""
19052 " echo \"|\"\n"
19053 "\n"
19054 msgstr ""
19055
19056 #. type: =head1
19057 #: ../fish/guestfish.pod:811
19058 msgid "HOME DIRECTORIES"
19059 msgstr ""
19060
19061 #. type: textblock
19062 #: ../fish/guestfish.pod:813
19063 msgid ""
19064 "If a parameter starts with the character C<~> then the tilde may be expanded "
19065 "as a home directory path (either C<~> for the current user's home directory, "
19066 "or C<~user> for another user)."
19067 msgstr ""
19068
19069 #. type: textblock
19070 #: ../fish/guestfish.pod:817
19071 msgid ""
19072 "Note that home directory expansion happens for users known I<on the host>, "
19073 "not in the guest filesystem."
19074 msgstr ""
19075
19076 #. type: textblock
19077 #: ../fish/guestfish.pod:820
19078 msgid ""
19079 "To use a literal argument which begins with a tilde, you have to quote it, "
19080 "eg:"
19081 msgstr ""
19082
19083 #. type: verbatim
19084 #: ../fish/guestfish.pod:823
19085 #, no-wrap
19086 msgid ""
19087 " echo \"~\"\n"
19088 "\n"
19089 msgstr ""
19090
19091 #. type: =head2
19092 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
19093 msgid "ENCRYPTED DISKS"
19094 msgstr "ЗАШИФРОВАНІ ДИСКИ"
19095
19096 #. type: textblock
19097 #: ../fish/guestfish.pod:827
19098 msgid ""
19099 "Libguestfs has some support for Linux guests encrypted according to the "
19100 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19101 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
19102 "LUKS is supported."
19103 msgstr ""
19104
19105 #. type: textblock
19106 #: ../fish/guestfish.pod:832
19107 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19108 msgstr ""
19109
19110 #. type: verbatim
19111 #: ../fish/guestfish.pod:834
19112 #, no-wrap
19113 msgid ""
19114 " ><fs> vfs-type /dev/sda2\n"
19115 " crypto_LUKS\n"
19116 "\n"
19117 msgstr ""
19118
19119 #. type: textblock
19120 #: ../fish/guestfish.pod:837
19121 msgid ""
19122 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19123 "device called C</dev/mapper/luksdev>."
19124 msgstr ""
19125
19126 #. type: verbatim
19127 #: ../fish/guestfish.pod:840
19128 #, no-wrap
19129 msgid ""
19130 " ><fs> luks-open /dev/sda2 luksdev\n"
19131 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19132 "\n"
19133 msgstr ""
19134
19135 #. type: textblock
19136 #: ../fish/guestfish.pod:843
19137 msgid ""
19138 "Finally you have to tell LVM to scan for volume groups on the newly created "
19139 "mapper device:"
19140 msgstr ""
19141
19142 #. type: verbatim
19143 #: ../fish/guestfish.pod:846
19144 #, no-wrap
19145 msgid ""
19146 " vgscan\n"
19147 " vg-activate-all true\n"
19148 "\n"
19149 msgstr ""
19150
19151 #. type: textblock
19152 #: ../fish/guestfish.pod:849
19153 msgid "The logical volume(s) can now be mounted in the usual way."
19154 msgstr ""
19155
19156 #. type: textblock
19157 #: ../fish/guestfish.pod:851
19158 msgid ""
19159 "Before closing a LUKS device you must unmount any logical volumes on it and "
19160 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19161 "one.  Then you can close the mapper device:"
19162 msgstr ""
19163
19164 #. type: verbatim
19165 #: ../fish/guestfish.pod:855
19166 #, no-wrap
19167 msgid ""
19168 " vg-activate false /dev/VG\n"
19169 " luks-close /dev/mapper/luksdev\n"
19170 "\n"
19171 msgstr ""
19172
19173 #. type: textblock
19174 #: ../fish/guestfish.pod:860
19175 msgid ""
19176 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19177 "letters and paths (with some limitations).  The following commands are "
19178 "equivalent:"
19179 msgstr ""
19180
19181 #. type: verbatim
19182 #: ../fish/guestfish.pod:864
19183 #, no-wrap
19184 msgid ""
19185 " file /WINDOWS/system32/config/system.LOG\n"
19186 "\n"
19187 msgstr ""
19188
19189 #. type: verbatim
19190 #: ../fish/guestfish.pod:866
19191 #, no-wrap
19192 msgid ""
19193 " file win:\\windows\\system32\\config\\system.log\n"
19194 "\n"
19195 msgstr ""
19196
19197 #. type: verbatim
19198 #: ../fish/guestfish.pod:868
19199 #, no-wrap
19200 msgid ""
19201 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19202 "\n"
19203 msgstr ""
19204
19205 #. type: textblock
19206 #: ../fish/guestfish.pod:870
19207 msgid ""
19208 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19209 "where the drive is mounted, prepending that to the path, changing all "
19210 "backslash characters to forward slash, then resolving the result using L</"
19211 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
19212 "the parameter might be rewritten like this:"
19213 msgstr ""
19214
19215 #. type: verbatim
19216 #: ../fish/guestfish.pod:876
19217 #, no-wrap
19218 msgid ""
19219 " win:e:\\foo\\bar => /e/FOO/bar\n"
19220 "\n"
19221 msgstr ""
19222
19223 #. type: textblock
19224 #: ../fish/guestfish.pod:878
19225 msgid "This only works in argument positions that expect a path."
19226 msgstr ""
19227
19228 #. type: =head1
19229 #: ../fish/guestfish.pod:880
19230 msgid "UPLOADING AND DOWNLOADING FILES"
19231 msgstr ""
19232
19233 #. type: textblock
19234 #: ../fish/guestfish.pod:882
19235 msgid ""
19236 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19237 "others which upload from or download to a local file, you can use the "
19238 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19239 msgstr ""
19240
19241 #. type: verbatim
19242 #: ../fish/guestfish.pod:886
19243 #, no-wrap
19244 msgid ""
19245 " upload - /foo\n"
19246 "\n"
19247 msgstr ""
19248
19249 #. type: textblock
19250 #: ../fish/guestfish.pod:888
19251 msgid ""
19252 "reads stdin and creates from that a file C</foo> in the disk image, and:"
19253 msgstr ""
19254
19255 #. type: verbatim
19256 #: ../fish/guestfish.pod:891
19257 #, no-wrap
19258 msgid ""
19259 " tar-out /etc - | tar tf -\n"
19260 "\n"
19261 msgstr ""
19262
19263 #. type: textblock
19264 #: ../fish/guestfish.pod:893
19265 msgid ""
19266 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19267 "command (see L</PIPES>)."
19268 msgstr ""
19269
19270 #. type: textblock
19271 #: ../fish/guestfish.pod:896
19272 msgid ""
19273 "When using C<-> to read from stdin, the input is read up to the end of "
19274 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19275 "some arbitrary end marker:"
19276 msgstr ""
19277
19278 #. type: verbatim
19279 #: ../fish/guestfish.pod:900
19280 #, no-wrap
19281 msgid ""
19282 " upload -<<END /foo\n"
19283 " input line 1\n"
19284 " input line 2\n"
19285 " input line 3\n"
19286 " END\n"
19287 "\n"
19288 msgstr ""
19289
19290 #. type: textblock
19291 #: ../fish/guestfish.pod:906
19292 msgid ""
19293 "Any string of characters can be used instead of C<END>.  The end marker must "
19294 "appear on a line of its own, without any preceeding or following characters "
19295 "(not even spaces)."
19296 msgstr ""
19297
19298 #. type: textblock
19299 #: ../fish/guestfish.pod:910
19300 msgid ""
19301 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19302 "upload local files (so-called \"FileIn\" parameters in the generator)."
19303 msgstr ""
19304
19305 #. type: =head1
19306 #: ../fish/guestfish.pod:913
19307 msgid "EXIT ON ERROR BEHAVIOUR"
19308 msgstr ""
19309
19310 #. type: textblock
19311 #: ../fish/guestfish.pod:915
19312 msgid ""
19313 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19314 "taking commands from a human over a tty), and will exit on the first error "
19315 "in non-interactive mode (scripts, commands given on the command line)."
19316 msgstr ""
19317
19318 #. type: textblock
19319 #: ../fish/guestfish.pod:920
19320 msgid ""
19321 "If you prefix a command with a I<-> character, then that command will not "
19322 "cause guestfish to exit, even if that (one) command returns an error."
19323 msgstr ""
19324
19325 #. type: =head1
19326 #: ../fish/guestfish.pod:924
19327 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19328 msgstr ""
19329
19330 #. type: textblock
19331 #: ../fish/guestfish.pod:926
19332 msgid ""
19333 "Guestfish can be remote-controlled over a socket.  This is useful "
19334 "particularly in shell scripts where you want to make several different "
19335 "changes to a filesystem, but you don't want the overhead of starting up a "
19336 "guestfish process each time."
19337 msgstr ""
19338
19339 #. type: textblock
19340 #: ../fish/guestfish.pod:931
19341 msgid "Start a guestfish server process using:"
19342 msgstr ""
19343
19344 #. type: verbatim
19345 #: ../fish/guestfish.pod:933
19346 #, no-wrap
19347 msgid ""
19348 " eval \"`guestfish --listen`\"\n"
19349 "\n"
19350 msgstr ""
19351
19352 #. type: textblock
19353 #: ../fish/guestfish.pod:935
19354 msgid "and then send it commands by doing:"
19355 msgstr ""
19356
19357 #. type: verbatim
19358 #: ../fish/guestfish.pod:937
19359 #, no-wrap
19360 msgid ""
19361 " guestfish --remote cmd [...]\n"
19362 "\n"
19363 msgstr ""
19364
19365 #. type: textblock
19366 #: ../fish/guestfish.pod:939
19367 msgid "To cause the server to exit, send it the exit command:"
19368 msgstr ""
19369
19370 #. type: textblock
19371 #: ../fish/guestfish.pod:943
19372 msgid ""
19373 "Note that the server will normally exit if there is an error in a command.  "
19374 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19375 "BEHAVIOUR>."
19376 msgstr ""
19377
19378 #. type: =head2
19379 #: ../fish/guestfish.pod:947
19380 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19381 msgstr ""
19382
19383 #. type: textblock
19384 #: ../fish/guestfish.pod:949
19385 msgid ""
19386 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19387 "is how the I<--remote> option knows where to send the commands.  You can "
19388 "have several guestfish listener processes running using:"
19389 msgstr ""
19390
19391 #. type: verbatim
19392 #: ../fish/guestfish.pod:953
19393 #, no-wrap
19394 msgid ""
19395 " eval \"`guestfish --listen`\"\n"
19396 " pid1=$GUESTFISH_PID\n"
19397 " eval \"`guestfish --listen`\"\n"
19398 " pid2=$GUESTFISH_PID\n"
19399 " ...\n"
19400 " guestfish --remote=$pid1 cmd\n"
19401 " guestfish --remote=$pid2 cmd\n"
19402 "\n"
19403 msgstr ""
19404
19405 #. type: =head2
19406 #: ../fish/guestfish.pod:961
19407 msgid "REMOTE CONTROL AND CSH"
19408 msgstr ""
19409
19410 #. type: textblock
19411 #: ../fish/guestfish.pod:963
19412 msgid ""
19413 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19414 "option:"
19415 msgstr ""
19416
19417 #. type: verbatim
19418 #: ../fish/guestfish.pod:966
19419 #, no-wrap
19420 msgid ""
19421 " eval \"`guestfish --listen --csh`\"\n"
19422 "\n"
19423 msgstr ""
19424
19425 #. type: =head2
19426 #: ../fish/guestfish.pod:968
19427 msgid "REMOTE CONTROL DETAILS"
19428 msgstr ""
19429
19430 #. type: textblock
19431 #: ../fish/guestfish.pod:970
19432 msgid ""
19433 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19434 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19435 "and C<$PID> is the process ID of the server."
19436 msgstr ""
19437
19438 #. type: textblock
19439 #: ../fish/guestfish.pod:974
19440 msgid "Guestfish client and server versions must match exactly."
19441 msgstr ""
19442
19443 #. type: =head2
19444 #: ../fish/guestfish.pod:976
19445 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19446 msgstr ""
19447
19448 #. type: textblock
19449 #: ../fish/guestfish.pod:978
19450 msgid ""
19451 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19452 "context hangs, ie. don't do (note the backquotes):"
19453 msgstr ""
19454
19455 #. type: verbatim
19456 #: ../fish/guestfish.pod:981
19457 #, fuzzy, no-wrap
19458 #| msgid ""
19459 #| " guestfish --ro -d myguest -i\n"
19460 #| "\n"
19461 msgid ""
19462 " a=`guestfish --remote run`\n"
19463 "\n"
19464 msgstr ""
19465 " guestfish --ro -d myguest -i\n"
19466 "\n"
19467
19468 #. type: textblock
19469 #: ../fish/guestfish.pod:983
19470 msgid ""
19471 "Since the C<run> command produces no output on stdout, this is not useful "
19472 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
19473 "cgi?id=592910>."
19474 msgstr ""
19475
19476 #. type: =head1
19477 #: ../fish/guestfish.pod:987
19478 msgid "PREPARED DISK IMAGES"
19479 msgstr ""
19480
19481 #. type: textblock
19482 #: ../fish/guestfish.pod:989
19483 msgid ""
19484 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19485 "preformatted disk images that guestfish can make for you to save typing.  "
19486 "This is particularly useful for testing purposes.  This option is used "
19487 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19488 "can be mixed with I<-a>)."
19489 msgstr ""
19490
19491 #. type: textblock
19492 #: ../fish/guestfish.pod:995
19493 msgid ""
19494 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19495 "the second and so on.  Existing files in the current directory are "
19496 "I<overwritten>."
19497 msgstr ""
19498
19499 #. type: textblock
19500 #: ../fish/guestfish.pod:999
19501 msgid ""
19502 "The type briefly describes how the disk should be sized, partitioned, how "
19503 "filesystem(s) should be created, and how content should be added.  "
19504 "Optionally the type can be followed by extra parameters, separated by C<:> "
19505 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
19506 "allocated disk, containing a single partition, with the partition formatted "
19507 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19508 "disk instead."
19509 msgstr ""
19510
19511 #. type: textblock
19512 #: ../fish/guestfish.pod:1007
19513 msgid "To list the available types and any extra parameters they take, run:"
19514 msgstr ""
19515
19516 #. type: textblock
19517 #: ../fish/guestfish.pod:1011
19518 msgid ""
19519 "Note that the prepared filesystem is not mounted.  You would usually have to "
19520 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19521 msgstr ""
19522
19523 #. type: textblock
19524 #: ../fish/guestfish.pod:1015
19525 msgid ""
19526 "If any I<-N> or I<--new> options are given, the guest is automatically "
19527 "launched."
19528 msgstr ""
19529
19530 #. type: textblock
19531 #: ../fish/guestfish.pod:1020
19532 msgid "Create a 100MB disk with an ext4-formatted partition:"
19533 msgstr ""
19534
19535 #. type: verbatim
19536 #: ../fish/guestfish.pod:1022
19537 #, no-wrap
19538 msgid ""
19539 " guestfish -N fs:ext4\n"
19540 "\n"
19541 msgstr ""
19542
19543 #. type: textblock
19544 #: ../fish/guestfish.pod:1024
19545 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19546 msgstr ""
19547
19548 #. type: verbatim
19549 #: ../fish/guestfish.pod:1026
19550 #, no-wrap
19551 msgid ""
19552 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19553 "\n"
19554 msgstr ""
19555
19556 #. type: textblock
19557 #: ../fish/guestfish.pod:1028
19558 msgid "Create a blank 200MB disk:"
19559 msgstr ""
19560
19561 #. type: verbatim
19562 #: ../fish/guestfish.pod:1030
19563 #, no-wrap
19564 msgid ""
19565 " guestfish -N disk:200M\n"
19566 "\n"
19567 msgstr ""
19568
19569 #. type: =head1
19570 #: ../fish/guestfish.pod:1032
19571 msgid "PROGRESS BARS"
19572 msgstr ""
19573
19574 #. type: textblock
19575 #: ../fish/guestfish.pod:1034
19576 msgid ""
19577 "Some (not all) long-running commands send progress notification messages as "
19578 "they are running.  Guestfish turns these messages into progress bars."
19579 msgstr ""
19580
19581 #. type: textblock
19582 #: ../fish/guestfish.pod:1038
19583 msgid ""
19584 "When a command that supports progress bars takes longer than two seconds to "
19585 "run, and if progress bars are enabled, then you will see one appearing below "
19586 "the command:"
19587 msgstr ""
19588
19589 #. type: verbatim
19590 #: ../fish/guestfish.pod:1042
19591 #, no-wrap
19592 msgid ""
19593 " ><fs> copy-size /large-file /another-file 2048M\n"
19594 " / 10% [#####-----------------------------------------] 00:30\n"
19595 "\n"
19596 msgstr ""
19597
19598 #. type: textblock
19599 #: ../fish/guestfish.pod:1045
19600 msgid ""
19601 "The spinner on the left hand side moves round once for every progress "
19602 "notification received from the backend.  This is a (reasonably) golden "
19603 "assurance that the command is \"doing something\" even if the progress bar "
19604 "is not moving, because the command is able to send the progress "
19605 "notifications.  When the bar reaches 100% and the command finishes, the "
19606 "spinner disappears."
19607 msgstr ""
19608
19609 #. type: textblock
19610 #: ../fish/guestfish.pod:1052
19611 msgid ""
19612 "Progress bars are enabled by default when guestfish is used interactively.  "
19613 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19614 "and you can disable them completely using I<--no-progress-bars>."
19615 msgstr ""
19616
19617 #. type: =head1
19618 #: ../fish/guestfish.pod:1057
19619 msgid "GUESTFISH COMMANDS"
19620 msgstr ""
19621
19622 #. type: textblock
19623 #: ../fish/guestfish.pod:1059
19624 msgid ""
19625 "The commands in this section are guestfish convenience commands, in other "
19626 "words, they are not part of the L<guestfs(3)> API."
19627 msgstr ""
19628
19629 #. type: =head2
19630 #: ../fish/guestfish.pod:1062
19631 msgid "help"
19632 msgstr "help"
19633
19634 #. type: verbatim
19635 #: ../fish/guestfish.pod:1064
19636 #, no-wrap
19637 msgid ""
19638 " help\n"
19639 " help cmd\n"
19640 "\n"
19641 msgstr ""
19642 " help\n"
19643 " help команда\n"
19644 "\n"
19645
19646 #. type: textblock
19647 #: ../fish/guestfish.pod:1067
19648 msgid "Without any parameter, this provides general help."
19649 msgstr "Без параметра показує загальну довідкову інформацію."
19650
19651 #. type: textblock
19652 #: ../fish/guestfish.pod:1069
19653 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19654 msgstr ""
19655
19656 #. type: =head2
19657 #: ../fish/guestfish.pod:1071
19658 msgid "quit | exit"
19659 msgstr ""
19660
19661 #. type: textblock
19662 #: ../fish/guestfish.pod:1073
19663 msgid "This exits guestfish.  You can also use C<^D> key."
19664 msgstr ""
19665
19666 #. type: textblock
19667 #: ../fish/guestfish.pod:1075
19668 msgid "@FISH_COMMANDS@"
19669 msgstr ""
19670
19671 #. type: =head1
19672 #: ../fish/guestfish.pod:1077
19673 msgid "COMMANDS"
19674 msgstr "КОМАНДИ"
19675
19676 #. type: textblock
19677 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1502
19678 msgid "@ACTIONS@"
19679 msgstr "@ACTIONS@"
19680
19681 #. type: textblock
19682 #: ../fish/guestfish.pod:1083
19683 msgid ""
19684 "guestfish returns 0 if the commands completed without error, or 1 if there "
19685 "was an error."
19686 msgstr ""
19687
19688 #. type: =item
19689 #: ../fish/guestfish.pod:1090
19690 msgid "EDITOR"
19691 msgstr "РЕДАКТОР"
19692
19693 #. type: textblock
19694 #: ../fish/guestfish.pod:1092
19695 msgid ""
19696 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19697 "C<vi>."
19698 msgstr ""
19699
19700 #. type: =item
19701 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3107
19702 msgid "FEBOOTSTRAP_KERNEL"
19703 msgstr ""
19704
19705 #. type: =item
19706 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3109
19707 msgid "FEBOOTSTRAP_MODULES"
19708 msgstr ""
19709
19710 #. type: textblock
19711 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3111
19712 msgid ""
19713 "These two environment variables allow the kernel that libguestfs uses in the "
19714 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19715 "most recent host kernel is chosen.  For more information about kernel "
19716 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19717 "available in febootstrap E<ge> 3.8."
19718 msgstr ""
19719
19720 #. type: =item
19721 #: ../fish/guestfish.pod:1105
19722 msgid "GUESTFISH_DISPLAY_IMAGE"
19723 msgstr ""
19724
19725 #. type: textblock
19726 #: ../fish/guestfish.pod:1107
19727 msgid ""
19728 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19729 "If not set, it uses L<display(1)>."
19730 msgstr ""
19731
19732 #. type: =item
19733 #: ../fish/guestfish.pod:1110
19734 msgid "GUESTFISH_PID"
19735 msgstr ""
19736
19737 #. type: textblock
19738 #: ../fish/guestfish.pod:1112
19739 msgid ""
19740 "Used with the I<--remote> option to specify the remote guestfish process to "
19741 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19742 msgstr ""
19743
19744 #. type: =item
19745 #: ../fish/guestfish.pod:1116
19746 msgid "HEXEDITOR"
19747 msgstr ""
19748
19749 #. type: textblock
19750 #: ../fish/guestfish.pod:1118
19751 msgid ""
19752 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19753 "not specified, the external L<hexedit(1)> program is used."
19754 msgstr ""
19755
19756 #. type: =item
19757 #: ../fish/guestfish.pod:1122
19758 msgid "HOME"
19759 msgstr "ДОМІВКА"
19760
19761 #. type: textblock
19762 #: ../fish/guestfish.pod:1124
19763 msgid ""
19764 "If compiled with GNU readline support, various files in the home directory "
19765 "can be used.  See L</FILES>."
19766 msgstr ""
19767
19768 #. type: =item
19769 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3117
19770 msgid "LIBGUESTFS_APPEND"
19771 msgstr ""
19772
19773 #. type: textblock
19774 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3119
19775 msgid "Pass additional options to the guest kernel."
19776 msgstr ""
19777
19778 #. type: =item
19779 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3121
19780 msgid "LIBGUESTFS_DEBUG"
19781 msgstr "LIBGUESTFS_DEBUG"
19782
19783 #. type: textblock
19784 #: ../fish/guestfish.pod:1133
19785 msgid ""
19786 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19787 "effect as using the B<-v> option."
19788 msgstr ""
19789
19790 #. type: =item
19791 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3126
19792 msgid "LIBGUESTFS_MEMSIZE"
19793 msgstr "LIBGUESTFS_MEMSIZE"
19794
19795 #. type: textblock
19796 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3128
19797 msgid ""
19798 "Set the memory allocated to the qemu process, in megabytes.  For example:"
19799 msgstr ""
19800
19801 #. type: verbatim
19802 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3131
19803 #, no-wrap
19804 msgid ""
19805 " LIBGUESTFS_MEMSIZE=700\n"
19806 "\n"
19807 msgstr ""
19808 " LIBGUESTFS_MEMSIZE=700\n"
19809 "\n"
19810
19811 #. type: =item
19812 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3133
19813 msgid "LIBGUESTFS_PATH"
19814 msgstr ""
19815
19816 #. type: textblock
19817 #: ../fish/guestfish.pod:1145
19818 msgid ""
19819 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19820 "the discussion of paths in L<guestfs(3)>."
19821 msgstr ""
19822
19823 #. type: =item
19824 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3138
19825 msgid "LIBGUESTFS_QEMU"
19826 msgstr ""
19827
19828 #. type: textblock
19829 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3140
19830 msgid ""
19831 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19832 "which was found at compile time by the configure script is used."
19833 msgstr ""
19834
19835 #. type: =item
19836 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3146
19837 msgid "LIBGUESTFS_TRACE"
19838 msgstr ""
19839
19840 #. type: textblock
19841 #: ../fish/guestfish.pod:1156
19842 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19843 msgstr ""
19844
19845 #. type: =item
19846 #: ../fish/guestfish.pod:1158
19847 msgid "PAGER"
19848 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19849
19850 #. type: textblock
19851 #: ../fish/guestfish.pod:1160
19852 msgid ""
19853 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19854 "C<more>."
19855 msgstr ""
19856
19857 #. type: =item
19858 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3151
19859 msgid "TMPDIR"
19860 msgstr ""
19861
19862 #. type: textblock
19863 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3153
19864 msgid ""
19865 "Location of temporary directory, defaults to C</tmp> except for the cached "
19866 "supermin appliance which defaults to C</var/tmp>."
19867 msgstr ""
19868
19869 #. type: textblock
19870 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3156
19871 msgid ""
19872 "If libguestfs was compiled to use the supermin appliance then the real "
19873 "appliance is cached in this directory, shared between all handles belonging "
19874 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19875 "use in case C</var/tmp> is not large enough."
19876 msgstr ""
19877
19878 #. type: =head1
19879 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19880 #: ../rescue/virt-rescue.pod:273
19881 msgid "FILES"
19882 msgstr "ФАЙЛИ"
19883
19884 #. type: =item
19885 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19886 #: ../rescue/virt-rescue.pod:277
19887 msgid "$HOME/.libguestfs-tools.rc"
19888 msgstr ""
19889
19890 #. type: =item
19891 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19892 #: ../rescue/virt-rescue.pod:279
19893 msgid "/etc/libguestfs-tools.conf"
19894 msgstr ""
19895
19896 #. type: textblock
19897 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19898 #: ../rescue/virt-rescue.pod:281
19899 msgid ""
19900 "This configuration file controls the default read-only or read-write mode "
19901 "(I<--ro> or I<--rw>)."
19902 msgstr ""
19903
19904 #. type: textblock
19905 #: ../fish/guestfish.pod:1187
19906 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19907 msgstr ""
19908
19909 #. type: =item
19910 #: ../fish/guestfish.pod:1189
19911 msgid "$HOME/.guestfish"
19912 msgstr ""
19913
19914 #. type: textblock
19915 #: ../fish/guestfish.pod:1191
19916 msgid ""
19917 "If compiled with GNU readline support, then the command history is saved in "
19918 "this file."
19919 msgstr ""
19920
19921 #. type: =item
19922 #: ../fish/guestfish.pod:1194
19923 msgid "$HOME/.inputrc"
19924 msgstr ""
19925
19926 #. type: =item
19927 #: ../fish/guestfish.pod:1196
19928 msgid "/etc/inputrc"
19929 msgstr ""
19930
19931 #. type: textblock
19932 #: ../fish/guestfish.pod:1198
19933 msgid ""
19934 "If compiled with GNU readline support, then these files can be used to "
19935 "configure readline.  For further information, please see L<readline(3)/"
19936 "INITIALIZATION FILE>."
19937 msgstr ""
19938
19939 #. type: textblock
19940 #: ../fish/guestfish.pod:1202
19941 msgid "To write rules which only apply to guestfish, use:"
19942 msgstr ""
19943
19944 #. type: verbatim
19945 #: ../fish/guestfish.pod:1204
19946 #, no-wrap
19947 msgid ""
19948 " $if guestfish\n"
19949 " ...\n"
19950 " $endif\n"
19951 "\n"
19952 msgstr ""
19953
19954 #. type: textblock
19955 #: ../fish/guestfish.pod:1208
19956 msgid ""
19957 "Variables that you can set in inputrc that change the behaviour of guestfish "
19958 "in useful ways include:"
19959 msgstr ""
19960
19961 #. type: =item
19962 #: ../fish/guestfish.pod:1213
19963 msgid "completion-ignore-case (default: on)"
19964 msgstr ""
19965
19966 #. type: textblock
19967 #: ../fish/guestfish.pod:1215
19968 msgid ""
19969 "By default, guestfish will ignore case when tab-completing paths on the "
19970 "disk.  Use:"
19971 msgstr ""
19972
19973 #. type: verbatim
19974 #: ../fish/guestfish.pod:1218
19975 #, no-wrap
19976 msgid ""
19977 " set completion-ignore-case off\n"
19978 "\n"
19979 msgstr ""
19980
19981 #. type: textblock
19982 #: ../fish/guestfish.pod:1220
19983 msgid "to make guestfish case sensitive."
19984 msgstr ""
19985
19986 #. type: =item
19987 #: ../fish/guestfish.pod:1224
19988 msgid "test1.img"
19989 msgstr ""
19990
19991 #. type: =item
19992 #: ../fish/guestfish.pod:1226
19993 msgid "test2.img (etc)"
19994 msgstr ""
19995
19996 #. type: textblock
19997 #: ../fish/guestfish.pod:1228
19998 msgid ""
19999 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20000 "will be created in the file C<test1.img> in the current directory.  The "
20001 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
20002 "the same name will be overwritten."
20003 msgstr ""
20004
20005 #. type: textblock
20006 #: ../fish/guestfish.pod:1237
20007 msgid ""
20008 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
20009 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
20010 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
20011 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
20012 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
20013 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
20014 msgstr ""
20015
20016 #. type: textblock
20017 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3243
20018 #: ../test-tool/libguestfs-test-tool.pod:112
20019 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
20020 msgstr ""
20021
20022 #. type: textblock
20023 #: ../fish/virt-copy-in.pod:5
20024 msgid ""
20025 "virt-copy-in - Copy files and directories into a virtual machine disk image."
20026 msgstr ""
20027
20028 #. type: verbatim
20029 #: ../fish/virt-copy-in.pod:9
20030 #, no-wrap
20031 msgid ""
20032 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20033 "\n"
20034 msgstr ""
20035
20036 #. type: verbatim
20037 #: ../fish/virt-copy-in.pod:11
20038 #, no-wrap
20039 msgid ""
20040 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20041 "\n"
20042 msgstr ""
20043
20044 #. type: textblock
20045 #: ../fish/virt-copy-in.pod:15
20046 msgid ""
20047 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20048 "causing disk corruption.  The virtual machine must be shut down before you "
20049 "use this command."
20050 msgstr ""
20051
20052 #. type: textblock
20053 #: ../fish/virt-copy-in.pod:21
20054 msgid ""
20055 "C<virt-copy-in> copies files and directories from the local disk into a "
20056 "virtual machine disk image or named libvirt domain."
20057 msgstr ""
20058
20059 #. type: textblock
20060 #: ../fish/virt-copy-in.pod:24
20061 msgid ""
20062 "You can give one of more filenames and directories on the command line.  "
20063 "Directories are copied in recursively.  The final parameter must be the "
20064 "destination directory in the disk image which must be an absolute path "
20065 "starting with a C</> character."
20066 msgstr ""
20067
20068 #. type: verbatim
20069 #: ../fish/virt-copy-in.pod:33
20070 #, no-wrap
20071 msgid ""
20072 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20073 "\n"
20074 msgstr ""
20075
20076 #. type: textblock
20077 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20078 msgid "Upload a home directory to a guest:"
20079 msgstr ""
20080
20081 #. type: verbatim
20082 #: ../fish/virt-copy-in.pod:37
20083 #, no-wrap
20084 msgid ""
20085 " virt-copy-in -d MyGuest skel /home\n"
20086 "\n"
20087 msgstr ""
20088
20089 #. type: =head1
20090 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
20091 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20092 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20093 msgstr ""
20094
20095 #. type: textblock
20096 #: ../fish/virt-copy-in.pod:41
20097 msgid ""
20098 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20099 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
20100 "are probably better off using guestfish directly."
20101 msgstr ""
20102
20103 #. type: textblock
20104 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
20105 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20106 msgid ""
20107 "Since the shell script just passes options straight to guestfish, read "
20108 "L<guestfish(1)> to see the full list of options."
20109 msgstr ""
20110
20111 #. type: textblock
20112 #: ../fish/virt-copy-in.pod:52
20113 #, fuzzy
20114 #| msgid ""
20115 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20116 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20117 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20118 #| "libguestfs.org/>."
20119 msgid ""
20120 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20121 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20122 msgstr ""
20123 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20124 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20125 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20126 "org/>."
20127
20128 #. type: textblock
20129 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
20130 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20131 #, fuzzy
20132 #| msgid "Copyright (C) 2009 Red Hat Inc."
20133 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20134 msgstr "© Red Hat Inc., 2009"
20135
20136 #. type: textblock
20137 #: ../fish/virt-copy-out.pod:5
20138 msgid ""
20139 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20140 "image."
20141 msgstr ""
20142
20143 #. type: verbatim
20144 #: ../fish/virt-copy-out.pod:9
20145 #, no-wrap
20146 msgid ""
20147 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20148 "\n"
20149 msgstr ""
20150
20151 #. type: verbatim
20152 #: ../fish/virt-copy-out.pod:11
20153 #, no-wrap
20154 msgid ""
20155 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20156 "\n"
20157 msgstr ""
20158
20159 #. type: textblock
20160 #: ../fish/virt-copy-out.pod:15
20161 msgid ""
20162 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20163 "image or named libvirt domain."
20164 msgstr ""
20165
20166 #. type: textblock
20167 #: ../fish/virt-copy-out.pod:18
20168 msgid ""
20169 "You can give one of more filenames and directories on the command line.  "
20170 "Directories are copied out recursively."
20171 msgstr ""
20172
20173 #. type: textblock
20174 #: ../fish/virt-copy-out.pod:23
20175 msgid "Download the home directories from a virtual machine:"
20176 msgstr ""
20177
20178 #. type: verbatim
20179 #: ../fish/virt-copy-out.pod:25
20180 #, no-wrap
20181 msgid ""
20182 " mkdir homes\n"
20183 " virt-copy-out -d MyGuest /home homes\n"
20184 "\n"
20185 msgstr ""
20186
20187 #. type: textblock
20188 #: ../fish/virt-copy-out.pod:30
20189 msgid ""
20190 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20191 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
20192 "are probably better off using guestfish directly."
20193 msgstr ""
20194
20195 #. type: textblock
20196 #: ../fish/virt-copy-out.pod:41
20197 #, fuzzy
20198 #| msgid ""
20199 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20200 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20201 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20202 #| "libguestfs.org/>."
20203 msgid ""
20204 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
20205 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20206 msgstr ""
20207 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20208 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20209 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20210 "org/>."
20211
20212 #. type: textblock
20213 #: ../fish/virt-tar-in.pod:5
20214 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20215 msgstr ""
20216
20217 #. type: verbatim
20218 #: ../fish/virt-tar-in.pod:9
20219 #, no-wrap
20220 msgid ""
20221 " virt-tar-in -a disk.img data.tar /destination\n"
20222 "\n"
20223 msgstr ""
20224
20225 #. type: verbatim
20226 #: ../fish/virt-tar-in.pod:11
20227 #, no-wrap
20228 msgid ""
20229 " virt-tar-in -d domain data.tar /destination\n"
20230 "\n"
20231 msgstr ""
20232
20233 #. type: verbatim
20234 #: ../fish/virt-tar-in.pod:13
20235 #, no-wrap
20236 msgid ""
20237 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20238 "\n"
20239 msgstr ""
20240
20241 #. type: textblock
20242 #: ../fish/virt-tar-in.pod:17
20243 msgid ""
20244 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20245 "causing disk corruption.  The virtual machine must be shut down before you "
20246 "use this command."
20247 msgstr ""
20248
20249 #. type: textblock
20250 #: ../fish/virt-tar-in.pod:23
20251 msgid ""
20252 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20253 "image or named libvirt domain."
20254 msgstr ""
20255
20256 #. type: textblock
20257 #: ../fish/virt-tar-in.pod:26
20258 msgid ""
20259 "The first parameter is the tar file.  Use C<-> to read the tar file from "
20260 "standard input.  The second parameter is the absolute target directory to "
20261 "unpack into."
20262 msgstr ""
20263
20264 #. type: verbatim
20265 #: ../fish/virt-tar-in.pod:34
20266 #, no-wrap
20267 msgid ""
20268 " virt-tar-in -d MyGuest homes.tar /home\n"
20269 "\n"
20270 msgstr ""
20271
20272 #. type: textblock
20273 #: ../fish/virt-tar-in.pod:38
20274 msgid ""
20275 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20276 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
20277 "probably better off using guestfish directly."
20278 msgstr ""
20279
20280 #. type: textblock
20281 #: ../fish/virt-tar-in.pod:49
20282 #, fuzzy
20283 #| msgid ""
20284 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20285 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20286 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20287 #| "libguestfs.org/>."
20288 msgid ""
20289 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20290 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
20291 "org/>."
20292 msgstr ""
20293 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20294 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20295 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20296 "org/>."
20297
20298 #. type: textblock
20299 #: ../fish/virt-tar-out.pod:5
20300 msgid ""
20301 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20302 msgstr ""
20303
20304 #. type: verbatim
20305 #: ../fish/virt-tar-out.pod:9
20306 #, no-wrap
20307 msgid ""
20308 " virt-tar-out -a disk.img /dir files.tar\n"
20309 "\n"
20310 msgstr ""
20311
20312 #. type: verbatim
20313 #: ../fish/virt-tar-out.pod:11
20314 #, no-wrap
20315 msgid ""
20316 " virt-tar-out -d domain /dir files.tar\n"
20317 "\n"
20318 msgstr ""
20319
20320 #. type: verbatim
20321 #: ../fish/virt-tar-out.pod:13
20322 #, no-wrap
20323 msgid ""
20324 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20325 "\n"
20326 msgstr ""
20327
20328 #. type: textblock
20329 #: ../fish/virt-tar-out.pod:17
20330 msgid ""
20331 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20332 msgstr ""
20333
20334 #. type: textblock
20335 #: ../fish/virt-tar-out.pod:20
20336 msgid ""
20337 "The first parameter is the absolute path of the virtual machine directory.  "
20338 "The second parameter is the tar file to write.  Use C<-> to write to "
20339 "standard output."
20340 msgstr ""
20341
20342 #. type: textblock
20343 #: ../fish/virt-tar-out.pod:26
20344 msgid "Download the home directories from a guest:"
20345 msgstr ""
20346
20347 #. type: verbatim
20348 #: ../fish/virt-tar-out.pod:28
20349 #, no-wrap
20350 msgid ""
20351 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20352 "\n"
20353 msgstr ""
20354
20355 #. type: textblock
20356 #: ../fish/virt-tar-out.pod:32
20357 msgid ""
20358 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20359 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
20360 "are probably better off using guestfish directly."
20361 msgstr ""
20362
20363 #. type: textblock
20364 #: ../fish/virt-tar-out.pod:43
20365 #, fuzzy
20366 #| msgid ""
20367 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20368 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20369 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20370 #| "libguestfs.org/>."
20371 msgid ""
20372 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20373 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20374 msgstr ""
20375 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20376 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20377 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20378 "org/>."
20379
20380 #. type: textblock
20381 #: ../fuse/guestmount.pod:5
20382 msgid ""
20383 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20384 msgstr ""
20385
20386 #. type: verbatim
20387 #: ../fuse/guestmount.pod:9
20388 #, no-wrap
20389 msgid ""
20390 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20391 "\n"
20392 msgstr ""
20393
20394 #. type: verbatim
20395 #: ../fuse/guestmount.pod:11
20396 #, no-wrap
20397 msgid ""
20398 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20399 "\n"
20400 msgstr ""
20401
20402 #. type: verbatim
20403 #: ../fuse/guestmount.pod:13
20404 #, no-wrap
20405 msgid ""
20406 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20407 "\n"
20408 msgstr ""
20409
20410 #. type: textblock
20411 #: ../fuse/guestmount.pod:17
20412 msgid ""
20413 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20414 "machines.  If you do this, you risk disk corruption in the VM."
20415 msgstr ""
20416
20417 #. type: textblock
20418 #: ../fuse/guestmount.pod:22
20419 msgid ""
20420 "The guestmount program can be used to mount virtual machine filesystems and "
20421 "other disk images on the host.  It uses libguestfs for access to the guest "
20422 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20423 "a mountable device."
20424 msgstr ""
20425
20426 #. type: textblock
20427 #: ../fuse/guestmount.pod:27
20428 msgid ""
20429 "Along with other options, you have to give at least one device (I<-a> "
20430 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20431 "option) or use the I<-i> inspection option.  How this works is better "
20432 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20433 "below."
20434 msgstr ""
20435
20436 #. type: textblock
20437 #: ../fuse/guestmount.pod:33
20438 msgid ""
20439 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20440 "by you, and the filesystem will not be visible to any other users unless you "
20441 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20442 "the filesystem, use the C<fusermount -u> command."
20443 msgstr ""
20444
20445 #. type: textblock
20446 #: ../fuse/guestmount.pod:41
20447 msgid ""
20448 "For a typical Windows guest which has its main filesystem on the first "
20449 "partition:"
20450 msgstr ""
20451
20452 #. type: verbatim
20453 #: ../fuse/guestmount.pod:44
20454 #, no-wrap
20455 msgid ""
20456 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20457 "\n"
20458 msgstr ""
20459
20460 #. type: textblock
20461 #: ../fuse/guestmount.pod:46
20462 msgid ""
20463 "For a typical Linux guest which has a /boot filesystem on the first "
20464 "partition, and the root filesystem on a logical volume:"
20465 msgstr ""
20466
20467 #. type: verbatim
20468 #: ../fuse/guestmount.pod:49
20469 #, no-wrap
20470 msgid ""
20471 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20472 "\n"
20473 msgstr ""
20474
20475 #. type: textblock
20476 #: ../fuse/guestmount.pod:51
20477 msgid "To get libguestfs to detect guest mountpoints for you:"
20478 msgstr ""
20479
20480 #. type: verbatim
20481 #: ../fuse/guestmount.pod:53
20482 #, no-wrap
20483 msgid ""
20484 " guestmount -a guest.img -i --ro /mnt\n"
20485 "\n"
20486 msgstr ""
20487
20488 #. type: textblock
20489 #: ../fuse/guestmount.pod:55
20490 msgid "For a libvirt guest called \"Guest\" you could do:"
20491 msgstr ""
20492
20493 #. type: verbatim
20494 #: ../fuse/guestmount.pod:57
20495 #, no-wrap
20496 msgid ""
20497 " guestmount -d Guest -i --ro /mnt\n"
20498 "\n"
20499 msgstr ""
20500
20501 #. type: textblock
20502 #: ../fuse/guestmount.pod:59
20503 msgid ""
20504 "If you don't know what filesystems are contained in a guest or disk image, "
20505 "use L<virt-filesystems(1)> first:"
20506 msgstr ""
20507
20508 #. type: verbatim
20509 #: ../fuse/guestmount.pod:62
20510 #, no-wrap
20511 msgid ""
20512 " virt-filesystems MyGuest\n"
20513 "\n"
20514 msgstr ""
20515
20516 #. type: textblock
20517 #: ../fuse/guestmount.pod:64
20518 msgid ""
20519 "If you want to trace the libguestfs calls but without excessive debugging "
20520 "information, we recommend:"
20521 msgstr ""
20522
20523 #. type: verbatim
20524 #: ../fuse/guestmount.pod:67
20525 #, no-wrap
20526 msgid ""
20527 " guestmount [...] --trace /mnt\n"
20528 "\n"
20529 msgstr ""
20530
20531 #. type: textblock
20532 #: ../fuse/guestmount.pod:69
20533 msgid "If you want to debug the program, we recommend:"
20534 msgstr ""
20535
20536 #. type: verbatim
20537 #: ../fuse/guestmount.pod:71
20538 #, no-wrap
20539 msgid ""
20540 " guestmount [...] --trace --verbose /mnt\n"
20541 "\n"
20542 msgstr ""
20543
20544 #. type: =head1
20545 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20546 #: ../resize/virt-resize.pod:544
20547 msgid "NOTES"
20548 msgstr "ПРИМІТКИ"
20549
20550 #. type: =head2
20551 #: ../fuse/guestmount.pod:75
20552 msgid "Other users cannot see the filesystem by default"
20553 msgstr ""
20554
20555 #. type: textblock
20556 #: ../fuse/guestmount.pod:77
20557 msgid ""
20558 "If you mount a filesystem as one user (eg. root), then other users will not "
20559 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20560 "option when mounting:"
20561 msgstr ""
20562
20563 #. type: verbatim
20564 #: ../fuse/guestmount.pod:81
20565 #, no-wrap
20566 msgid ""
20567 " sudo guestmount [...] -o allow_other /mnt\n"
20568 "\n"
20569 msgstr ""
20570
20571 #. type: textblock
20572 #: ../fuse/guestmount.pod:91
20573 msgid "Add a block device or virtual machine image."
20574 msgstr ""
20575
20576 #. type: =item
20577 #: ../fuse/guestmount.pod:114
20578 msgid "B<--dir-cache-timeout N>"
20579 msgstr "B<--dir-cache-timeout N>"
20580
20581 #. type: textblock
20582 #: ../fuse/guestmount.pod:116
20583 msgid ""
20584 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20585 "seconds.  The readdir cache [actually, there are several semi-independent "
20586 "caches] is populated after a readdir(2) call with the stat and extended "
20587 "attributes of the files in the directory, in anticipation that they will be "
20588 "requested soon after."
20589 msgstr ""
20590
20591 #. type: textblock
20592 #: ../fuse/guestmount.pod:122
20593 msgid ""
20594 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20595 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20596 "requests, only cache existing ones."
20597 msgstr ""
20598
20599 #. type: textblock
20600 #: ../fuse/guestmount.pod:142
20601 msgid ""
20602 "If you have untrusted raw-format guest disk images, you should use this "
20603 "option to specify the disk format.  This avoids a possible security problem "
20604 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
20605 "guestfs_add_drive_opts>."
20606 msgstr ""
20607
20608 #. type: =item
20609 #: ../fuse/guestmount.pod:147
20610 msgid "B<--fuse-help>"
20611 msgstr "B<--fuse-help>"
20612
20613 #. type: textblock
20614 #: ../fuse/guestmount.pod:149
20615 msgid "Display help on special FUSE options (see I<-o> below)."
20616 msgstr ""
20617
20618 #. type: textblock
20619 #: ../fuse/guestmount.pod:153
20620 msgid "Display brief help and exit."
20621 msgstr ""
20622
20623 #. type: textblock
20624 #: ../fuse/guestmount.pod:177
20625 msgid ""
20626 "Mount the named partition or logical volume on the given mountpoint B<in the "
20627 "guest> (this has nothing to do with mountpoints in the host)."
20628 msgstr ""
20629
20630 #. type: textblock
20631 #: ../fuse/guestmount.pod:180
20632 msgid ""
20633 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20634 "something on C</>."
20635 msgstr ""
20636
20637 #. type: textblock
20638 #: ../fuse/guestmount.pod:197
20639 msgid ""
20640 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20641 "unmounted.  If you specify this option, then we don't attempt to sync the "
20642 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20643 msgstr ""
20644
20645 #. type: =item
20646 #: ../fuse/guestmount.pod:202
20647 #, fuzzy
20648 #| msgid "B<--partition>"
20649 msgid "B<-o option>"
20650 msgstr "B<--partition>"
20651
20652 #. type: =item
20653 #: ../fuse/guestmount.pod:204
20654 #, fuzzy
20655 #| msgid "B<--partition>"
20656 msgid "B<--option option>"
20657 msgstr "B<--partition>"
20658
20659 #. type: textblock
20660 #: ../fuse/guestmount.pod:206
20661 msgid "Pass extra options to FUSE."
20662 msgstr ""
20663
20664 #. type: textblock
20665 #: ../fuse/guestmount.pod:208
20666 msgid ""
20667 "To get a list of all the extra options supported by FUSE, use the command "
20668 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20669 "of them are a good idea."
20670 msgstr ""
20671
20672 #. type: verbatim
20673 #: ../fuse/guestmount.pod:212
20674 #, no-wrap
20675 msgid ""
20676 " guestmount --fuse-help\n"
20677 "\n"
20678 msgstr ""
20679
20680 #. type: textblock
20681 #: ../fuse/guestmount.pod:214
20682 msgid "Some potentially useful FUSE options:"
20683 msgstr ""
20684
20685 #. type: =item
20686 #: ../fuse/guestmount.pod:218
20687 msgid "B<-o allow_other>"
20688 msgstr ""
20689
20690 #. type: textblock
20691 #: ../fuse/guestmount.pod:220
20692 msgid "Allow other users to see the filesystem."
20693 msgstr ""
20694
20695 #. type: =item
20696 #: ../fuse/guestmount.pod:222
20697 msgid "B<-o attr_timeout=N>"
20698 msgstr "B<-o attr_timeout=N>"
20699
20700 #. type: textblock
20701 #: ../fuse/guestmount.pod:224
20702 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20703 msgstr ""
20704
20705 #. type: =item
20706 #: ../fuse/guestmount.pod:226
20707 msgid "B<-o kernel_cache>"
20708 msgstr ""
20709
20710 #. type: textblock
20711 #: ../fuse/guestmount.pod:228
20712 msgid ""
20713 "Allow the kernel to cache files (reduces the number of reads that have to go "
20714 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20715 "afford the extra memory usage."
20716 msgstr ""
20717
20718 #. type: =item
20719 #: ../fuse/guestmount.pod:232
20720 msgid "B<-o uid=N> B<-o gid=N>"
20721 msgstr ""
20722
20723 #. type: textblock
20724 #: ../fuse/guestmount.pod:234
20725 msgid ""
20726 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20727 "the chosen values."
20728 msgstr ""
20729
20730 #. type: textblock
20731 #: ../fuse/guestmount.pod:243
20732 msgid ""
20733 "Add devices and mount everything read-only.  Also disallow writes and make "
20734 "the disk appear read-only to FUSE."
20735 msgstr ""
20736
20737 #. type: textblock
20738 #: ../fuse/guestmount.pod:246
20739 msgid ""
20740 "This is highly recommended if you are not going to edit the guest disk.  If "
20741 "the guest is running and this option is I<not> supplied, then there is a "
20742 "strong risk of disk corruption in the guest.  We try to prevent this from "
20743 "happening, but it is not always possible."
20744 msgstr ""
20745
20746 #. type: textblock
20747 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20748 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20749 msgstr ""
20750
20751 #. type: textblock
20752 #: ../fuse/guestmount.pod:255
20753 msgid "Enable SELinux support for the guest."
20754 msgstr ""
20755
20756 #. type: textblock
20757 #: ../fuse/guestmount.pod:261
20758 msgid "Enable verbose messages from underlying libguestfs."
20759 msgstr ""
20760
20761 #. type: textblock
20762 #: ../fuse/guestmount.pod:267
20763 msgid "Display the program version and exit."
20764 msgstr ""
20765
20766 #. type: textblock
20767 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20768 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
20769 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20770 msgstr ""
20771
20772 #. type: =item
20773 #: ../fuse/guestmount.pod:280
20774 #, fuzzy
20775 #| msgid "B<--ro>"
20776 msgid "B<--trace>"
20777 msgstr "B<--ro>"
20778
20779 #. type: textblock
20780 #: ../fuse/guestmount.pod:282
20781 msgid "Trace libguestfs calls and entry into each FUSE function."
20782 msgstr ""
20783
20784 #. type: textblock
20785 #: ../fuse/guestmount.pod:284
20786 msgid "This also stops the daemon from forking into the background."
20787 msgstr ""
20788
20789 #. type: textblock
20790 #: ../fuse/guestmount.pod:310
20791 msgid ""
20792 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20793 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20794 "net/>."
20795 msgstr ""
20796
20797 #. type: textblock
20798 #: ../fuse/guestmount.pod:325
20799 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20800 msgstr ""
20801
20802 #. type: textblock
20803 #: ../inspector/virt-inspector.pod:5
20804 msgid ""
20805 "virt-inspector - Display operating system version and other information "
20806 "about a virtual machine"
20807 msgstr ""
20808
20809 #. type: verbatim
20810 #: ../inspector/virt-inspector.pod:9
20811 #, fuzzy, no-wrap
20812 #| msgid ""
20813 #| " virt-list-partitions [--options] domname\n"
20814 #| "\n"
20815 msgid ""
20816 " virt-inspector [--options] -d domname\n"
20817 "\n"
20818 msgstr ""
20819 " virt-list-partitions [--параметри] назва_домену\n"
20820 "\n"
20821
20822 #. type: verbatim
20823 #: ../inspector/virt-inspector.pod:11
20824 #, fuzzy, no-wrap
20825 #| msgid ""
20826 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20827 #| "\n"
20828 msgid ""
20829 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20830 "\n"
20831 msgstr ""
20832 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20833 "\n"
20834
20835 #. type: verbatim
20836 #: ../inspector/virt-inspector.pod:15
20837 #, fuzzy, no-wrap
20838 #| msgid ""
20839 #| " virt-list-partitions [--options] domname\n"
20840 #| "\n"
20841 msgid ""
20842 " virt-inspector domname\n"
20843 "\n"
20844 msgstr ""
20845 " virt-list-partitions [--параметри] назва_домену\n"
20846 "\n"
20847
20848 #. type: verbatim
20849 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20850 #, fuzzy, no-wrap
20851 #| msgid ""
20852 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20853 #| "\n"
20854 msgid ""
20855 " virt-inspector disk.img [disk.img ...]\n"
20856 "\n"
20857 msgstr ""
20858 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20859 "\n"
20860
20861 #. type: textblock
20862 #: ../inspector/virt-inspector.pod:21
20863 msgid ""
20864 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20865 "determine the version of the operating system and other information about "
20866 "the virtual machine."
20867 msgstr ""
20868
20869 #. type: textblock
20870 #: ../inspector/virt-inspector.pod:25
20871 msgid "Virt-inspector produces XML output for feeding into other programs."
20872 msgstr ""
20873
20874 #. type: textblock
20875 #: ../inspector/virt-inspector.pod:27
20876 msgid ""
20877 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20878 "the libvirt domain (see: C<virsh list --all>)."
20879 msgstr ""
20880
20881 #. type: textblock
20882 #: ../inspector/virt-inspector.pod:30
20883 msgid ""
20884 "You can also run virt-inspector directly on disk images from a single "
20885 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20886 "has several block devices, in which case you should list several I<-a> "
20887 "options one after another, with the first corresponding to the guest's C</"
20888 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20889 msgstr ""
20890
20891 #. type: textblock
20892 #: ../inspector/virt-inspector.pod:37
20893 msgid ""
20894 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20895 "keys and similar."
20896 msgstr ""
20897
20898 #. type: textblock
20899 #: ../inspector/virt-inspector.pod:40
20900 msgid ""
20901 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20902 "inspect several virtual machines, you have to run virt-inspector several "
20903 "times (for example, from a shell script for-loop)."
20904 msgstr ""
20905
20906 #. type: textblock
20907 #: ../inspector/virt-inspector.pod:45
20908 msgid ""
20909 "Because virt-inspector needs direct access to guest images, it won't "
20910 "normally work over remote libvirt connections."
20911 msgstr ""
20912
20913 #. type: textblock
20914 #: ../inspector/virt-inspector.pod:48
20915 msgid ""
20916 "All of the information available from virt-inspector is also available "
20917 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20918 "The same information can also be fetched using guestfish or via libguestfs "
20919 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20920 "WITH OTHER PROGRAMMING LANGUAGES>)."
20921 msgstr ""
20922
20923 #. type: textblock
20924 #: ../inspector/virt-inspector.pod:81
20925 msgid ""
20926 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20927 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20928 "at all."
20929 msgstr ""
20930
20931 #. type: textblock
20932 #: ../inspector/virt-inspector.pod:94
20933 msgid ""
20934 "When prompting for keys and passphrases, virt-inspector normally turns "
20935 "echoing off so you cannot see what you are typing.  If you are not worried "
20936 "about Tempest attacks and there is no one else in the room you can specify "
20937 "this flag to see what you are typing."
20938 msgstr ""
20939
20940 #. type: textblock
20941 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20942 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20943 #: ../tools/virt-win-reg.pl:144
20944 msgid ""
20945 "Specify the format of disk images given on the command line.  If this is "
20946 "omitted then the format is autodetected from the content of the disk image."
20947 msgstr ""
20948
20949 #. type: textblock
20950 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20951 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20952 #: ../tools/virt-win-reg.pl:148
20953 msgid ""
20954 "If disk images are requested from libvirt, then this program asks libvirt "
20955 "for this information.  In this case, the value of the format parameter is "
20956 "ignored."
20957 msgstr ""
20958
20959 #. type: textblock
20960 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20961 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
20962 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20963 #: ../tools/virt-win-reg.pl:152
20964 msgid ""
20965 "If working with untrusted raw-format guest disk images, you should ensure "
20966 "the format is always specified."
20967 msgstr ""
20968
20969 #. type: textblock
20970 #: ../inspector/virt-inspector.pod:139
20971 msgid "Previous versions of virt-inspector allowed you to write either:"
20972 msgstr ""
20973
20974 #. type: verbatim
20975 #: ../inspector/virt-inspector.pod:145
20976 #, fuzzy, no-wrap
20977 #| msgid ""
20978 #| " inspect-get-hostname root\n"
20979 #| "\n"
20980 msgid ""
20981 " virt-inspector guestname\n"
20982 "\n"
20983 msgstr ""
20984 " inspect-get-hostname корінь\n"
20985 "\n"
20986
20987 #. type: =head1
20988 #: ../inspector/virt-inspector.pod:153
20989 msgid "XML FORMAT"
20990 msgstr ""
20991
20992 #. type: textblock
20993 #: ../inspector/virt-inspector.pod:155
20994 msgid ""
20995 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20996 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
20997 "just an overview."
20998 msgstr ""
20999
21000 #. type: textblock
21001 #: ../inspector/virt-inspector.pod:159
21002 msgid ""
21003 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21004 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
21005 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21006 "which is vanishingly rare in real world VMs."
21007 msgstr ""
21008
21009 #. type: =head2
21010 #: ../inspector/virt-inspector.pod:164
21011 msgid "E<lt>operatingsystemE<gt>"
21012 msgstr ""
21013
21014 #. type: textblock
21015 #: ../inspector/virt-inspector.pod:166
21016 msgid ""
21017 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21018 "describe the operating system, its architecture, the descriptive \"product "
21019 "name\" string, the type of OS and so on, as in this example:"
21020 msgstr ""
21021
21022 #. type: verbatim
21023 #: ../inspector/virt-inspector.pod:170
21024 #, no-wrap
21025 msgid ""
21026 " <operatingsystems>\n"
21027 "   <operatingsystem>\n"
21028 "     <root>/dev/sda2</root>\n"
21029 "     <name>windows</name>\n"
21030 "     <arch>i386</arch>\n"
21031 "     <distro>windows</distro>\n"
21032 "     <product_name>Windows 7 Enterprise</product_name>\n"
21033 "     <product_variant>Client</product_variant>\n"
21034 "     <major_version>6</major_version>\n"
21035 "     <minor_version>1</minor_version>\n"
21036 "     <windows_systemroot>/Windows</windows_systemroot>\n"
21037 "     <format>installed</format>\n"
21038 "\n"
21039 msgstr ""
21040
21041 #. type: textblock
21042 #: ../inspector/virt-inspector.pod:183
21043 msgid ""
21044 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21045 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21046 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21047 "architecture.  The other fields are fairly self-explanatory, but because "
21048 "these fields are taken directly from the libguestfs inspection API you can "
21049 "find precise information from L<guestfs(3)/INSPECTION>."
21050 msgstr ""
21051
21052 #. type: textblock
21053 #: ../inspector/virt-inspector.pod:191
21054 msgid ""
21055 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21056 "of view of libguestfs (block devices may have completely different names "
21057 "inside the VM itself)."
21058 msgstr ""
21059
21060 #. type: =head2
21061 #: ../inspector/virt-inspector.pod:195
21062 #, fuzzy
21063 #| msgid "mountpoints"
21064 msgid "E<lt>mountpointsE<gt>"
21065 msgstr "mountpoints"
21066
21067 #. type: textblock
21068 #: ../inspector/virt-inspector.pod:197
21069 msgid ""
21070 "Un*x-like guests typically have multiple filesystems which are mounted at "
21071 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21072 "element which looks like this:"
21073 msgstr ""
21074
21075 #. type: verbatim
21076 #: ../inspector/virt-inspector.pod:201
21077 #, no-wrap
21078 msgid ""
21079 " <operatingsystems>\n"
21080 "   <operatingsystem>\n"
21081 "     ...\n"
21082 "     <mountpoints>\n"
21083 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21084 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21085 "     </mountpoints>\n"
21086 "\n"
21087 msgstr ""
21088
21089 #. type: textblock
21090 #: ../inspector/virt-inspector.pod:209
21091 msgid ""
21092 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21093 "and may have completely different names inside the guest.  Only mountable "
21094 "filesystems appear in this list, not things like swap devices."
21095 msgstr ""
21096
21097 #. type: =head2
21098 #: ../inspector/virt-inspector.pod:214
21099 #, fuzzy
21100 #| msgid "list-filesystems"
21101 msgid "E<lt>filesystemsE<gt>"
21102 msgstr "list-filesystems"
21103
21104 #. type: textblock
21105 #: ../inspector/virt-inspector.pod:216
21106 msgid ""
21107 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21108 "filesystems belonging to the guest, including swap and empty partitions.  "
21109 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21110 "this OS or shared with this OS and other OSes)."
21111 msgstr ""
21112
21113 #. type: textblock
21114 #: ../inspector/virt-inspector.pod:222
21115 msgid "You might see something like this:"
21116 msgstr ""
21117
21118 #. type: verbatim
21119 #: ../inspector/virt-inspector.pod:224
21120 #, no-wrap
21121 msgid ""
21122 " <operatingsystems>\n"
21123 "   <operatingsystem>\n"
21124 "     ...\n"
21125 "     <filesystems>\n"
21126 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21127 "         <type>ext4</type>\n"
21128 "         <label>Fedora-13-x86_64</label>\n"
21129 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21130 "       </filesystem>\n"
21131 "\n"
21132 msgstr ""
21133
21134 #. type: textblock
21135 #: ../inspector/virt-inspector.pod:234
21136 msgid ""
21137 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21138 "the label, and the UUID."
21139 msgstr ""
21140
21141 #. type: =head2
21142 #: ../inspector/virt-inspector.pod:237
21143 msgid "E<lt>applicationsE<gt>"
21144 msgstr ""
21145
21146 #. type: textblock
21147 #: ../inspector/virt-inspector.pod:239
21148 msgid ""
21149 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21150 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21151 "machine."
21152 msgstr ""
21153
21154 #. type: textblock
21155 #: ../inspector/virt-inspector.pod:243
21156 msgid ""
21157 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21158 "Typical values would be C<rpm> and C<deb>."
21159 msgstr ""
21160
21161 #. type: textblock
21162 #: ../inspector/virt-inspector.pod:246
21163 msgid ""
21164 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21165 "Typical values include C<yum>, C<up2date> and C<apt>"
21166 msgstr ""
21167
21168 #. type: textblock
21169 #: ../inspector/virt-inspector.pod:249
21170 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21171 msgstr ""
21172
21173 #. type: verbatim
21174 #: ../inspector/virt-inspector.pod:252
21175 #, no-wrap
21176 msgid ""
21177 " <operatingsystems>\n"
21178 "   <operatingsystem>\n"
21179 "     ...\n"
21180 "     <applications>\n"
21181 "       <application>\n"
21182 "         <name>coreutils</name>\n"
21183 "         <version>8.5</version>\n"
21184 "         <release>1</release>\n"
21185 "       </application>\n"
21186 "\n"
21187 msgstr ""
21188
21189 #. type: textblock
21190 #: ../inspector/virt-inspector.pod:262
21191 msgid ""
21192 "The version and release fields may not be available for some types guests.  "
21193 "Other fields are possible, see L<guestfs(3)/"
21194 "guestfs_inspect_list_applications>."
21195 msgstr ""
21196
21197 #. type: =head2
21198 #: ../inspector/virt-inspector.pod:266
21199 msgid "E<lt>drive_mappingsE<gt>"
21200 msgstr ""
21201
21202 #. type: textblock
21203 #: ../inspector/virt-inspector.pod:268
21204 msgid ""
21205 "For operating systems like Windows which use drive letters, virt-inspector "
21206 "is able to find out how drive letters map to filesystems."
21207 msgstr ""
21208
21209 #. type: verbatim
21210 #: ../inspector/virt-inspector.pod:272
21211 #, no-wrap
21212 msgid ""
21213 " <operatingsystems>\n"
21214 "   <operatingsystem>\n"
21215 "     ...\n"
21216 "     <drive_mappings>\n"
21217 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21218 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21219 "     </drive_mappings>\n"
21220 "\n"
21221 msgstr ""
21222
21223 #. type: textblock
21224 #: ../inspector/virt-inspector.pod:280
21225 msgid ""
21226 "In the example above, drive C maps to the filesystem on the second partition "
21227 "on the first disk, and drive E maps to the filesystem on the first partition "
21228 "on the second disk."
21229 msgstr ""
21230
21231 #. type: textblock
21232 #: ../inspector/virt-inspector.pod:284
21233 msgid ""
21234 "Note that this only covers permanent local filesystem mappings, not things "
21235 "like network shares.  Furthermore NTFS volume mount points may not be listed "
21236 "here."
21237 msgstr ""
21238
21239 #. type: =head2
21240 #: ../inspector/virt-inspector.pod:288
21241 #, fuzzy
21242 #| msgid "B<-s E<lt>NE<gt>>"
21243 msgid "E<lt>iconE<gt>"
21244 msgstr "B<-s E<lt>NE<gt>>"
21245
21246 #. type: textblock
21247 #: ../inspector/virt-inspector.pod:290
21248 msgid ""
21249 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
21250 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
21251 "very large and high quality."
21252 msgstr ""
21253
21254 #. type: verbatim
21255 #: ../inspector/virt-inspector.pod:294
21256 #, no-wrap
21257 msgid ""
21258 " <operatingsystems>\n"
21259 "   <operatingsystem>\n"
21260 "     ...\n"
21261 "     <icon>\n"
21262 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21263 "       [... many lines of base64 data ...]\n"
21264 "     </icon>\n"
21265 "\n"
21266 msgstr ""
21267
21268 #. type: textblock
21269 #: ../inspector/virt-inspector.pod:302
21270 msgid ""
21271 "To display the icon, you have to extract it and convert the base64 data back "
21272 "to a binary file.  Use an XPath query or simply an editor to extract the "
21273 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21274 "to a PNG file:"
21275 msgstr ""
21276
21277 #. type: verbatim
21278 #: ../inspector/virt-inspector.pod:307
21279 #, no-wrap
21280 msgid ""
21281 " base64 -i -d < icon.data > icon.png\n"
21282 "\n"
21283 msgstr ""
21284
21285 #. type: =head2
21286 #: ../inspector/virt-inspector.pod:309
21287 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21288 msgstr ""
21289
21290 #. type: textblock
21291 #: ../inspector/virt-inspector.pod:311
21292 msgid ""
21293 "Virt-inspector can detect some operating system installers on install disks, "
21294 "live CDs, bootable USB keys and more."
21295 msgstr ""
21296
21297 #. type: textblock
21298 #: ../inspector/virt-inspector.pod:314
21299 msgid ""
21300 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21301 "fields may be present to indicate a live CD, network installer, or one part "
21302 "of a multipart CD.  For example:"
21303 msgstr ""
21304
21305 #. type: verbatim
21306 #: ../inspector/virt-inspector.pod:318
21307 #, no-wrap
21308 msgid ""
21309 " <operatingsystems>\n"
21310 "   <operatingsystem>\n"
21311 "     <root>/dev/sda</root>\n"
21312 "     <name>linux</name>\n"
21313 "     <arch>i386</arch>\n"
21314 "     <distro>ubuntu</distro>\n"
21315 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
21316 "     <major_version>10</major_version>\n"
21317 "     <minor_version>10</minor_version>\n"
21318 "     <format>installer</format>\n"
21319 "     <live/>\n"
21320 "\n"
21321 msgstr ""
21322
21323 #. type: =head1
21324 #: ../inspector/virt-inspector.pod:330
21325 msgid "USING XPATH"
21326 msgstr ""
21327
21328 #. type: textblock
21329 #: ../inspector/virt-inspector.pod:332
21330 msgid ""
21331 "You can use the XPath query language to select parts of the XML.  We "
21332 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
21333 msgstr ""
21334
21335 #. type: verbatim
21336 #: ../inspector/virt-inspector.pod:338
21337 #, no-wrap
21338 msgid ""
21339 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21340 " <filesystems>\n"
21341 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21342 "        <type>ext4</type>\n"
21343 " [...]\n"
21344 "\n"
21345 msgstr ""
21346
21347 #. type: verbatim
21348 #: ../inspector/virt-inspector.pod:344
21349 #, no-wrap
21350 msgid ""
21351 " $ virt-inspector -d Guest | \\\n"
21352 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21353 " ext4\n"
21354 "\n"
21355 msgstr ""
21356
21357 #. type: verbatim
21358 #: ../inspector/virt-inspector.pod:348
21359 #, no-wrap
21360 msgid ""
21361 " $ virt-inspector -d Guest | \\\n"
21362 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21363 " [displays the guest icon, if there is one]\n"
21364 "\n"
21365 msgstr ""
21366
21367 #. type: =head1
21368 #: ../inspector/virt-inspector.pod:359
21369 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21370 msgstr ""
21371
21372 #. type: textblock
21373 #: ../inspector/virt-inspector.pod:361
21374 msgid ""
21375 "Early versions of libguestfs shipped with a different virt-inspector program "
21376 "written in Perl (the current version is written in C).  The XML output of "
21377 "the Perl virt-inspector was different and it could also output in other "
21378 "formats like text."
21379 msgstr ""
21380
21381 #. type: textblock
21382 #: ../inspector/virt-inspector.pod:366
21383 msgid ""
21384 "The old virt-inspector is no longer supported or shipped with libguestfs."
21385 msgstr ""
21386
21387 #. type: textblock
21388 #: ../inspector/virt-inspector.pod:369
21389 msgid ""
21390 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21391 "versions of virt-inspector with different names:"
21392 msgstr ""
21393
21394 #. type: verbatim
21395 #: ../inspector/virt-inspector.pod:372
21396 #, no-wrap
21397 msgid ""
21398 " virt-inspector     Old Perl version.\n"
21399 " virt-inspector2    New C version.\n"
21400 "\n"
21401 msgstr ""
21402
21403 #. type: textblock
21404 #: ../inspector/virt-inspector.pod:382
21405 #, fuzzy
21406 #| msgid ""
21407 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21408 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21409 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21410 msgid ""
21411 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
21412 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21413 msgstr ""
21414 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21415 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21416 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21417
21418 #. type: textblock
21419 #: ../inspector/virt-inspector.pod:399
21420 msgid "Matthew Booth L<mbooth@redhat.com>"
21421 msgstr ""
21422
21423 #. type: textblock
21424 #: ../java/examples/guestfs-java.pod:5
21425 msgid "guestfs-java - How to use libguestfs from Java"
21426 msgstr ""
21427
21428 #. type: verbatim
21429 #: ../java/examples/guestfs-java.pod:9
21430 #, no-wrap
21431 msgid ""
21432 " import com.redhat.et.libguestfs.*;\n"
21433 " \n"
21434 msgstr ""
21435
21436 #. type: verbatim
21437 #: ../java/examples/guestfs-java.pod:11
21438 #, no-wrap
21439 msgid ""
21440 " GuestFS g = new GuestFS ();\n"
21441 " g.add_drive_opts (\"disk.img\", null);\n"
21442 " g.launch ();\n"
21443 "\n"
21444 msgstr ""
21445
21446 #. type: textblock
21447 #: ../java/examples/guestfs-java.pod:17
21448 msgid ""
21449 "This manual page documents how to call libguestfs from the Java programming "
21450 "language.  This page just documents the differences from the C API and gives "
21451 "some examples.  If you are not familiar with using libguestfs, you also need "
21452 "to read L<guestfs(3)>."
21453 msgstr ""
21454
21455 #. type: =head2
21456 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21457 msgid "CLOSING THE HANDLE"
21458 msgstr ""
21459
21460 #. type: textblock
21461 #: ../java/examples/guestfs-java.pod:24
21462 msgid ""
21463 "The handle is closed when it is reaped by the garbage collector.  Because "
21464 "libguestfs handles include a lot of state, it is also possible to close (and "
21465 "hence free) them explicitly by calling the C<close> method."
21466 msgstr ""
21467
21468 #. type: =head2
21469 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21470 #: ../python/examples/guestfs-python.pod:21
21471 #: ../ruby/examples/guestfs-ruby.pod:22
21472 #, fuzzy
21473 #| msgid "OPTIONS"
21474 msgid "EXCEPTIONS"
21475 msgstr "ПАРАМЕТРИ"
21476
21477 #. type: textblock
21478 #: ../java/examples/guestfs-java.pod:31
21479 msgid ""
21480 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21481 "exception.  This has a single parameter which is the error message (a "
21482 "C<String>)."
21483 msgstr ""
21484
21485 #. type: textblock
21486 #: ../java/examples/guestfs-java.pod:35
21487 msgid "Calling any method on a closed handle raises the same exception."
21488 msgstr ""
21489
21490 #. type: textblock
21491 #: ../java/examples/guestfs-java.pod:47
21492 #, fuzzy
21493 #| msgid ""
21494 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21495 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21496 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21497 msgid ""
21498 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
21499 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21500 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21501 msgstr ""
21502 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21503 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21504 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21505
21506 #. type: textblock
21507 #: ../ocaml/examples/guestfs-ocaml.pod:5
21508 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21509 msgstr ""
21510
21511 #. type: textblock
21512 #: ../ocaml/examples/guestfs-ocaml.pod:9
21513 msgid "Module style:"
21514 msgstr ""
21515
21516 #. type: verbatim
21517 #: ../ocaml/examples/guestfs-ocaml.pod:11
21518 #, no-wrap
21519 msgid ""
21520 " let g = Guestfs.create () in\n"
21521 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21522 " Guestfs.launch g;\n"
21523 "\n"
21524 msgstr ""
21525
21526 #. type: textblock
21527 #: ../ocaml/examples/guestfs-ocaml.pod:15
21528 msgid "Object-oriented style:"
21529 msgstr ""
21530
21531 #. type: verbatim
21532 #: ../ocaml/examples/guestfs-ocaml.pod:17
21533 #, no-wrap
21534 msgid ""
21535 " let g = new Guestfs.guestfs () in\n"
21536 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21537 " g#launch ();\n"
21538 "\n"
21539 msgstr ""
21540
21541 #. type: verbatim
21542 #: ../ocaml/examples/guestfs-ocaml.pod:21
21543 #, no-wrap
21544 msgid ""
21545 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21546 "or:\n"
21547 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21548 "\n"
21549 msgstr ""
21550
21551 #. type: textblock
21552 #: ../ocaml/examples/guestfs-ocaml.pod:27
21553 msgid ""
21554 "This manual page documents how to call libguestfs from the OCaml programming "
21555 "language.  This page just documents the differences from the C API and gives "
21556 "some examples.  If you are not familiar with using libguestfs, you also need "
21557 "to read L<guestfs(3)>."
21558 msgstr ""
21559
21560 #. type: =head2
21561 #: ../ocaml/examples/guestfs-ocaml.pod:32
21562 msgid "PROGRAMMING STYLES"
21563 msgstr ""
21564
21565 #. type: textblock
21566 #: ../ocaml/examples/guestfs-ocaml.pod:34
21567 msgid ""
21568 "There are two different programming styles supported by the OCaml bindings.  "
21569 "You can use a module style, with each C function mapped to an OCaml function:"
21570 msgstr ""
21571
21572 #. type: verbatim
21573 #: ../ocaml/examples/guestfs-ocaml.pod:38
21574 #, fuzzy, no-wrap
21575 #| msgid ""
21576 #| " int guestfs_last_errno (guestfs_h *g);\n"
21577 #| "\n"
21578 msgid ""
21579 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21580 "\n"
21581 msgstr ""
21582 " int guestfs_last_errno (guestfs_h *g);\n"
21583 "\n"
21584
21585 #. type: textblock
21586 #: ../ocaml/examples/guestfs-ocaml.pod:40
21587 msgid "becomes:"
21588 msgstr ""
21589
21590 #. type: verbatim
21591 #: ../ocaml/examples/guestfs-ocaml.pod:42
21592 #, no-wrap
21593 msgid ""
21594 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21595 "\n"
21596 msgstr ""
21597
21598 #. type: textblock
21599 #: ../ocaml/examples/guestfs-ocaml.pod:44
21600 msgid ""
21601 "Alternately you can use an object-oriented style, calling methods on the "
21602 "class C<Guestfs.guestfs>:"
21603 msgstr ""
21604
21605 #. type: verbatim
21606 #: ../ocaml/examples/guestfs-ocaml.pod:47
21607 #, no-wrap
21608 msgid ""
21609 " method set_verbose : bool -> unit\n"
21610 "\n"
21611 msgstr ""
21612
21613 #. type: textblock
21614 #: ../ocaml/examples/guestfs-ocaml.pod:49
21615 msgid ""
21616 "The object-oriented style is usually briefer, and the minor performance "
21617 "penalty isn't noticable in the general overhead of performing libguestfs "
21618 "functions."
21619 msgstr ""
21620
21621 #. type: textblock
21622 #: ../ocaml/examples/guestfs-ocaml.pod:55
21623 msgid ""
21624 "The handle is closed when it is reaped by the garbage collector.  Because "
21625 "libguestfs handles include a lot of state, it is also possible to close (and "
21626 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21627 "method."
21628 msgstr ""
21629
21630 #. type: textblock
21631 #: ../ocaml/examples/guestfs-ocaml.pod:62
21632 msgid ""
21633 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21634 "exception.  This has a single parameter which is the error message (a "
21635 "string)."
21636 msgstr ""
21637
21638 #. type: textblock
21639 #: ../ocaml/examples/guestfs-ocaml.pod:66
21640 msgid ""
21641 "Calling any function/method on a closed handle raises C<Guestfs."
21642 "Handle_closed>.  The single parameter is the name of the function that you "
21643 "called."
21644 msgstr ""
21645
21646 #. type: textblock
21647 #: ../ocaml/examples/guestfs-ocaml.pod:80
21648 #, fuzzy
21649 #| msgid ""
21650 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21651 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21652 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21653 msgid ""
21654 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21655 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21656 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21657 msgstr ""
21658 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21659 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21660 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21661
21662 #. type: textblock
21663 #: ../perl/examples/guestfs-perl.pod:5
21664 msgid "guestfs-perl - How to use libguestfs from Perl"
21665 msgstr ""
21666
21667 #. type: verbatim
21668 #: ../perl/examples/guestfs-perl.pod:9
21669 #, no-wrap
21670 msgid ""
21671 " use Sys::Guestfs;\n"
21672 " \n"
21673 msgstr ""
21674
21675 #. type: verbatim
21676 #: ../perl/examples/guestfs-perl.pod:11
21677 #, no-wrap
21678 msgid ""
21679 " my $h = Sys::Guestfs->new ();\n"
21680 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21681 " $h->launch ();\n"
21682 " $h->mount_options ('', '/dev/sda1', '/');\n"
21683 " $h->touch ('/hello');\n"
21684 " $h->sync ();\n"
21685 "\n"
21686 msgstr ""
21687
21688 #. type: textblock
21689 #: ../perl/examples/guestfs-perl.pod:20
21690 msgid ""
21691 "This manual page documents how to call libguestfs from the Perl programming "
21692 "language.  This page just documents the differences from the C API and gives "
21693 "some examples.  If you are not familiar with using libguestfs, you also need "
21694 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21695 msgstr ""
21696
21697 #. type: =head2
21698 #: ../perl/examples/guestfs-perl.pod:26
21699 msgid "ERRORS"
21700 msgstr ""
21701
21702 #. type: textblock
21703 #: ../perl/examples/guestfs-perl.pod:28
21704 msgid ""
21705 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21706 ">)."
21707 msgstr ""
21708
21709 #. type: textblock
21710 #: ../perl/examples/guestfs-perl.pod:41
21711 #, fuzzy
21712 #| msgid ""
21713 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21714 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21715 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21716 msgid ""
21717 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
21718 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
21719 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21720 msgstr ""
21721 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21722 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21723 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21724
21725 #. type: textblock
21726 #: ../python/examples/guestfs-python.pod:5
21727 msgid "guestfs-python - How to use libguestfs from Python"
21728 msgstr ""
21729
21730 #. type: verbatim
21731 #: ../python/examples/guestfs-python.pod:9
21732 #, no-wrap
21733 msgid ""
21734 " import guestfs\n"
21735 " g = guestfs.GuestFS ()\n"
21736 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21737 " g.launch\n"
21738 "\n"
21739 msgstr ""
21740
21741 #. type: textblock
21742 #: ../python/examples/guestfs-python.pod:16
21743 msgid ""
21744 "This manual page documents how to call libguestfs from the Python "
21745 "programming language.  This page just documents the differences from the C "
21746 "API and gives some examples.  If you are not familiar with using libguestfs, "
21747 "you also need to read L<guestfs(3)>."
21748 msgstr ""
21749
21750 #. type: textblock
21751 #: ../python/examples/guestfs-python.pod:23
21752 msgid ""
21753 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21754 "single string argument which is the error message."
21755 msgstr ""
21756
21757 #. type: =head2
21758 #: ../python/examples/guestfs-python.pod:26
21759 msgid "MORE DOCUMENTATION"
21760 msgstr ""
21761
21762 #. type: textblock
21763 #: ../python/examples/guestfs-python.pod:28
21764 msgid "Type:"
21765 msgstr ""
21766
21767 #. type: verbatim
21768 #: ../python/examples/guestfs-python.pod:30
21769 #, no-wrap
21770 msgid ""
21771 " $ python\n"
21772 " >>> import guestfs\n"
21773 " >>> help (guestfs)\n"
21774 "\n"
21775 msgstr ""
21776
21777 #. type: textblock
21778 #: ../python/examples/guestfs-python.pod:44
21779 #, fuzzy
21780 #| msgid ""
21781 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21782 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21783 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21784 msgid ""
21785 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21786 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
21787 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21788 msgstr ""
21789 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21790 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21791 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21792
21793 #. type: textblock
21794 #: ../rescue/virt-rescue.pod:5
21795 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21796 msgstr ""
21797
21798 #. type: verbatim
21799 #: ../rescue/virt-rescue.pod:9
21800 #, fuzzy, no-wrap
21801 #| msgid ""
21802 #| " virt-list-partitions [--options] domname\n"
21803 #| "\n"
21804 msgid ""
21805 " virt-rescue [--options] -d domname\n"
21806 "\n"
21807 msgstr ""
21808 " virt-list-partitions [--параметри] назва_домену\n"
21809 "\n"
21810
21811 #. type: verbatim
21812 #: ../rescue/virt-rescue.pod:11
21813 #, fuzzy, no-wrap
21814 #| msgid ""
21815 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21816 #| "\n"
21817 msgid ""
21818 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21819 "\n"
21820 msgstr ""
21821 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21822 "\n"
21823
21824 #. type: verbatim
21825 #: ../rescue/virt-rescue.pod:15
21826 #, fuzzy, no-wrap
21827 #| msgid ""
21828 #| " virt-list-partitions [--options] domname\n"
21829 #| "\n"
21830 msgid ""
21831 " virt-rescue [--options] domname\n"
21832 "\n"
21833 msgstr ""
21834 " virt-list-partitions [--параметри] назва_домену\n"
21835 "\n"
21836
21837 #. type: verbatim
21838 #: ../rescue/virt-rescue.pod:17
21839 #, fuzzy, no-wrap
21840 #| msgid ""
21841 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21842 #| "\n"
21843 msgid ""
21844 " virt-rescue [--options] disk.img [disk.img ...]\n"
21845 "\n"
21846 msgstr ""
21847 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21848 "\n"
21849
21850 #. type: textblock
21851 #: ../rescue/virt-rescue.pod:21
21852 msgid ""
21853 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21854 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21855 "you from doing this, but doesn't catch all cases."
21856 msgstr ""
21857
21858 #. type: textblock
21859 #: ../rescue/virt-rescue.pod:25
21860 msgid ""
21861 "However if you use the I<--ro> (read only) option, then you can attach a "
21862 "shell to a live virtual machine.  The results might be strange or "
21863 "inconsistent at times but you won't get disk corruption."
21864 msgstr ""
21865
21866 #. type: textblock
21867 #: ../rescue/virt-rescue.pod:31
21868 msgid ""
21869 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21870 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21871 "recovery tools which you can use to examine or rescue a virtual machine or "
21872 "disk image."
21873 msgstr ""
21874
21875 #. type: textblock
21876 #: ../rescue/virt-rescue.pod:36
21877 msgid ""
21878 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21879 "on disk image(s):"
21880 msgstr ""
21881
21882 #. type: verbatim
21883 #: ../rescue/virt-rescue.pod:39
21884 #, no-wrap
21885 msgid ""
21886 " virt-rescue -d GuestName\n"
21887 "\n"
21888 msgstr ""
21889
21890 #. type: verbatim
21891 #: ../rescue/virt-rescue.pod:41
21892 #, no-wrap
21893 msgid ""
21894 " virt-rescue --ro -a /path/to/disk.img\n"
21895 "\n"
21896 msgstr ""
21897
21898 #. type: verbatim
21899 #: ../rescue/virt-rescue.pod:43
21900 #, no-wrap
21901 msgid ""
21902 " virt-rescue -a /dev/sdc\n"
21903 "\n"
21904 msgstr ""
21905
21906 #. type: textblock
21907 #: ../rescue/virt-rescue.pod:45
21908 msgid "For live VMs you I<must> use the --ro option."
21909 msgstr ""
21910
21911 #. type: textblock
21912 #: ../rescue/virt-rescue.pod:47
21913 msgid ""
21914 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21915 "in an interactive bash shell where you can use many ordinary Linux "
21916 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21917 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21918 "is an empty directory called C</sysroot> where you can mount filesystems."
21919 msgstr ""
21920
21921 #. type: textblock
21922 #: ../rescue/virt-rescue.pod:54
21923 msgid ""
21924 "In the example below, we list logical volumes, then choose one to mount "
21925 "under C</sysroot>:"
21926 msgstr ""
21927
21928 #. type: verbatim
21929 #: ../rescue/virt-rescue.pod:57
21930 #, no-wrap
21931 msgid ""
21932 " ><rescue> lvs\n"
21933 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21934 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21935 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21936 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21937 " ><rescue> ls /sysroot\n"
21938 "\n"
21939 msgstr ""
21940
21941 #. type: textblock
21942 #: ../rescue/virt-rescue.pod:64
21943 msgid ""
21944 "If you don't know what filesystems are available on the virtual machine then "
21945 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21946 msgstr ""
21947
21948 #. type: textblock
21949 #: ../rescue/virt-rescue.pod:70
21950 msgid ""
21951 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21952 "virtual machine.  For example you can use it on a blank file if you want to "
21953 "partition that file (although we would recommend using L<guestfish(1)> "
21954 "instead as it is more suitable for this purpose).  You can even use virt-"
21955 "rescue on things like SD cards."
21956 msgstr ""
21957
21958 #. type: textblock
21959 #: ../rescue/virt-rescue.pod:76
21960 msgid ""
21961 "Virt-rescue does not require root.  You only need to run it as root if you "
21962 "need root to open the disk image."
21963 msgstr ""
21964
21965 #. type: textblock
21966 #: ../rescue/virt-rescue.pod:79
21967 msgid ""
21968 "This tool is just designed for quick interactive hacking on a virtual "
21969 "machine.  For more structured access to a virtual machine disk image, you "
21970 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21971 "make scripted changes to guests, use L<guestfish(1)>."
21972 msgstr ""
21973
21974 #. type: =item
21975 #: ../rescue/virt-rescue.pod:103
21976 msgid "B<--append kernelopts>"
21977 msgstr ""
21978
21979 #. type: textblock
21980 #: ../rescue/virt-rescue.pod:105
21981 msgid "Pass additional options to the rescue kernel."
21982 msgstr ""
21983
21984 #. type: verbatim
21985 #: ../rescue/virt-rescue.pod:135
21986 #, fuzzy, no-wrap
21987 #| msgid ""
21988 #| " guestfish --format=raw -a disk.img\n"
21989 #| "\n"
21990 msgid ""
21991 " virt-rescue --format=raw -a disk.img\n"
21992 "\n"
21993 msgstr ""
21994 " guestfish --format=raw -a disk.img\n"
21995 "\n"
21996
21997 #. type: verbatim
21998 #: ../rescue/virt-rescue.pod:139
21999 #, fuzzy, no-wrap
22000 #| msgid ""
22001 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
22002 #| "\n"
22003 msgid ""
22004 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22005 "\n"
22006 msgstr ""
22007 " guestfish --format=raw -a disk.img --format -a another.img\n"
22008 "\n"
22009
22010 #. type: =item
22011 #: ../rescue/virt-rescue.pod:148
22012 msgid "B<-m MB>"
22013 msgstr ""
22014
22015 #. type: =item
22016 #: ../rescue/virt-rescue.pod:150
22017 #, fuzzy
22018 #| msgid "B<--merge>"
22019 msgid "B<--memsize MB>"
22020 msgstr "B<--merge>"
22021
22022 #. type: textblock
22023 #: ../rescue/virt-rescue.pod:152
22024 msgid ""
22025 "Change the amount of memory allocated to the rescue system.  The default is "
22026 "set by libguestfs and is small but adequate for running system tools.  The "
22027 "occasional program might need more memory.  The parameter is specified in "
22028 "megabytes."
22029 msgstr ""
22030
22031 #. type: =item
22032 #: ../rescue/virt-rescue.pod:157
22033 #, fuzzy
22034 #| msgid "B<--inspector>"
22035 msgid "B<--network>"
22036 msgstr "B<--inspector>"
22037
22038 #. type: textblock
22039 #: ../rescue/virt-rescue.pod:159
22040 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22041 msgstr ""
22042
22043 #. type: textblock
22044 #: ../rescue/virt-rescue.pod:165
22045 msgid "Open the image read-only."
22046 msgstr ""
22047
22048 #. type: textblock
22049 #: ../rescue/virt-rescue.pod:175
22050 msgid ""
22051 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
22052 "SELINUX> before using this option."
22053 msgstr ""
22054
22055 #. type: =item
22056 #: ../rescue/virt-rescue.pod:178
22057 #, fuzzy
22058 #| msgid "B<--csh>"
22059 msgid "B<--smp> N"
22060 msgstr "B<--csh>"
22061
22062 #. type: textblock
22063 #: ../rescue/virt-rescue.pod:180
22064 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22065 msgstr ""
22066
22067 #. type: textblock
22068 #: ../rescue/virt-rescue.pod:198
22069 msgid ""
22070 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22071 "are done read-write."
22072 msgstr ""
22073
22074 #. type: textblock
22075 #: ../rescue/virt-rescue.pod:211
22076 msgid "Previous versions of virt-rescue allowed you to write either:"
22077 msgstr ""
22078
22079 #. type: verbatim
22080 #: ../rescue/virt-rescue.pod:213
22081 #, fuzzy, no-wrap
22082 #| msgid ""
22083 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22084 #| "\n"
22085 msgid ""
22086 " virt-rescue disk.img [disk.img ...]\n"
22087 "\n"
22088 msgstr ""
22089 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22090 "\n"
22091
22092 #. type: verbatim
22093 #: ../rescue/virt-rescue.pod:217
22094 #, fuzzy, no-wrap
22095 #| msgid ""
22096 #| " file-architecture filename\n"
22097 #| "\n"
22098 msgid ""
22099 " virt-rescue guestname\n"
22100 "\n"
22101 msgstr ""
22102 " file-architecture назва_файла\n"
22103 "\n"
22104
22105 #. type: =head1
22106 #: ../rescue/virt-rescue.pod:225
22107 msgid "NETWORK"
22108 msgstr ""
22109
22110 #. type: textblock
22111 #: ../rescue/virt-rescue.pod:227
22112 msgid ""
22113 "Adding the I<--network> option enables QEMU user networking in the rescue "
22114 "appliance.  There are some differences between user networking and ordinary "
22115 "networking:"
22116 msgstr ""
22117
22118 #. type: =item
22119 #: ../rescue/virt-rescue.pod:233
22120 msgid "ping does not work"
22121 msgstr ""
22122
22123 #. type: textblock
22124 #: ../rescue/virt-rescue.pod:235
22125 msgid ""
22126 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22127 "send the ping packets, and because virt-rescue must be able to run as non-"
22128 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
22129 "The ping command will appear to resolve addresses but will not be able to "
22130 "send or receive any packets.  This does not mean that the network is not "
22131 "working."
22132 msgstr ""
22133
22134 #. type: =item
22135 #: ../rescue/virt-rescue.pod:242
22136 msgid "cannot receive connections"
22137 msgstr ""
22138
22139 #. type: textblock
22140 #: ../rescue/virt-rescue.pod:244
22141 msgid "QEMU user networking cannot receive incoming connections."
22142 msgstr ""
22143
22144 #. type: =item
22145 #: ../rescue/virt-rescue.pod:246
22146 msgid "making TCP connections"
22147 msgstr ""
22148
22149 #. type: textblock
22150 #: ../rescue/virt-rescue.pod:248
22151 msgid ""
22152 "The virt-rescue appliance needs to be small and so does not include many "
22153 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22154 "make TCP connections from the shell using the magical C</dev/tcp/"
22155 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22156 msgstr ""
22157
22158 #. type: verbatim
22159 #: ../rescue/virt-rescue.pod:253
22160 #, no-wrap
22161 msgid ""
22162 " exec 3<>/dev/tcp/redhat.com/80\n"
22163 " echo \"GET /\" >&3\n"
22164 " cat <&3\n"
22165 "\n"
22166 msgstr ""
22167
22168 #. type: textblock
22169 #: ../rescue/virt-rescue.pod:257
22170 msgid "See L<bash(1)> for more details."
22171 msgstr ""
22172
22173 #. type: textblock
22174 #: ../rescue/virt-rescue.pod:263
22175 msgid ""
22176 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
22177 "ENVIRONMENT VARIABLES> for the complete list."
22178 msgstr ""
22179
22180 #. type: textblock
22181 #: ../rescue/virt-rescue.pod:290
22182 #, fuzzy
22183 #| msgid ""
22184 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22185 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22186 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22187 msgid ""
22188 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22189 "libguestfs.org/>."
22190 msgstr ""
22191 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22192 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22193 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22194
22195 #. type: textblock
22196 #: ../resize/virt-resize.pod:5
22197 msgid "virt-resize - Resize a virtual machine disk"
22198 msgstr ""
22199
22200 #. type: verbatim
22201 #: ../resize/virt-resize.pod:9
22202 #, no-wrap
22203 msgid ""
22204 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22205 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22206 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22207 "\n"
22208 msgstr ""
22209
22210 #. type: textblock
22211 #: ../resize/virt-resize.pod:15
22212 msgid ""
22213 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22214 "larger or smaller overall, and resizing or deleting any partitions contained "
22215 "within."
22216 msgstr ""
22217
22218 #. type: textblock
22219 #: ../resize/virt-resize.pod:19
22220 msgid ""
22221 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22222 "not> be used on live virtual machines - for consistent results, shut the "
22223 "virtual machine down before resizing it."
22224 msgstr ""
22225
22226 #. type: textblock
22227 #: ../resize/virt-resize.pod:23
22228 msgid ""
22229 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22230 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22231 msgstr ""
22232
22233 #. type: =item
22234 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
22235 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1284 ../src/guestfs.pod:1423
22236 #: ../src/guestfs.pod:2601
22237 msgid "1."
22238 msgstr "1."
22239
22240 #. type: textblock
22241 #: ../resize/virt-resize.pod:33
22242 msgid ""
22243 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22244 "fill the extra 5GB of space."
22245 msgstr ""
22246
22247 #. type: verbatim
22248 #: ../resize/virt-resize.pod:36
22249 #, no-wrap
22250 msgid ""
22251 " virt-filesystems --long -h --all -a olddisk\n"
22252 " \n"
22253 msgstr ""
22254
22255 #. type: verbatim
22256 #: ../resize/virt-resize.pod:38
22257 #, no-wrap
22258 msgid ""
22259 " truncate -r olddisk newdisk\n"
22260 " truncate -s +5G newdisk\n"
22261 " \n"
22262 msgstr ""
22263
22264 #. type: verbatim
22265 #: ../resize/virt-resize.pod:41
22266 #, no-wrap
22267 msgid ""
22268 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22269 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22270 "\n"
22271 msgstr ""
22272
22273 #. type: =item
22274 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
22275 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1288 ../src/guestfs.pod:1427
22276 #: ../src/guestfs.pod:2626
22277 msgid "2."
22278 msgstr "2."
22279
22280 #. type: textblock
22281 #: ../resize/virt-resize.pod:46
22282 msgid ""
22283 "As above, but make the /boot partition 200MB bigger, while giving the "
22284 "remaining space to /dev/sda2:"
22285 msgstr ""
22286
22287 #. type: verbatim
22288 #: ../resize/virt-resize.pod:49
22289 #, no-wrap
22290 msgid ""
22291 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22292 "   olddisk newdisk\n"
22293 "\n"
22294 msgstr ""
22295
22296 #. type: =item
22297 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
22298 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1433
22299 msgid "3."
22300 msgstr "3."
22301
22302 #. type: textblock
22303 #: ../resize/virt-resize.pod:54
22304 msgid ""
22305 "As in the first example, but expand a logical volume as the final step.  "
22306 "This is what you would typically use for Linux guests that use LVM:"
22307 msgstr ""
22308
22309 #. type: verbatim
22310 #: ../resize/virt-resize.pod:58
22311 #, no-wrap
22312 msgid ""
22313 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22314 "   olddisk newdisk\n"
22315 "\n"
22316 msgstr ""
22317
22318 #. type: =item
22319 #: ../resize/virt-resize.pod:61
22320 msgid "4."
22321 msgstr ""
22322
22323 #. type: textblock
22324 #: ../resize/virt-resize.pod:63
22325 msgid ""
22326 "As in the first example, but the output format will be qcow2 instead of a "
22327 "raw disk:"
22328 msgstr ""
22329
22330 #. type: verbatim
22331 #: ../resize/virt-resize.pod:66
22332 #, no-wrap
22333 msgid ""
22334 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22335 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22336 "\n"
22337 msgstr ""
22338
22339 #. type: =head1
22340 #: ../resize/virt-resize.pod:71
22341 msgid "DETAILED USAGE"
22342 msgstr ""
22343
22344 #. type: =head2
22345 #: ../resize/virt-resize.pod:73
22346 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22347 msgstr ""
22348
22349 #. type: =item
22350 #: ../resize/virt-resize.pod:77
22351 msgid "1. Shut down the virtual machine"
22352 msgstr ""
22353
22354 #. type: =item
22355 #: ../resize/virt-resize.pod:79
22356 msgid "2. Locate input disk image"
22357 msgstr ""
22358
22359 #. type: textblock
22360 #: ../resize/virt-resize.pod:81
22361 msgid ""
22362 "Locate the input disk image (ie. the file or device on the host containing "
22363 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
22364 "dumpxml> like this to find the disk image name:"
22365 msgstr ""
22366
22367 #. type: verbatim
22368 #: ../resize/virt-resize.pod:85
22369 #, no-wrap
22370 msgid ""
22371 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22372 " Found 1 nodes:\n"
22373 " -- NODE --\n"
22374 " <source dev=\"/dev/vg/lv_guest\" />\n"
22375 "\n"
22376 msgstr ""
22377
22378 #. type: =item
22379 #: ../resize/virt-resize.pod:90
22380 msgid "3. Look at current sizing"
22381 msgstr ""
22382
22383 #. type: textblock
22384 #: ../resize/virt-resize.pod:92
22385 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22386 msgstr ""
22387
22388 #. type: verbatim
22389 #: ../resize/virt-resize.pod:95
22390 #, no-wrap
22391 msgid ""
22392 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22393 " Name       Type       Size  Parent\n"
22394 " /dev/sda1  partition  101M  /dev/sda\n"
22395 " /dev/sda2  partition  7.9G  /dev/sda\n"
22396 " /dev/sda   device     8.0G  -\n"
22397 "\n"
22398 msgstr ""
22399
22400 #. type: textblock
22401 #: ../resize/virt-resize.pod:101
22402 msgid ""
22403 "(This example is a virtual machine with an 8 GB disk which we would like to "
22404 "expand up to 10 GB)."
22405 msgstr ""
22406
22407 #. type: =item
22408 #: ../resize/virt-resize.pod:104
22409 msgid "4. Create output disk"
22410 msgstr ""
22411
22412 #. type: textblock
22413 #: ../resize/virt-resize.pod:106
22414 msgid ""
22415 "Virt-resize cannot do in-place disk modifications.  You have to have space "
22416 "to store the resized output disk."
22417 msgstr ""
22418
22419 #. type: textblock
22420 #: ../resize/virt-resize.pod:109
22421 msgid ""
22422 "To store the resized disk image in a file, create a file of a suitable size:"
22423 msgstr ""
22424
22425 #. type: verbatim
22426 #: ../resize/virt-resize.pod:112
22427 #, no-wrap
22428 msgid ""
22429 " # rm -f outdisk\n"
22430 " # truncate -s 10G outdisk\n"
22431 "\n"
22432 msgstr ""
22433
22434 #. type: textblock
22435 #: ../resize/virt-resize.pod:115
22436 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22437 msgstr ""
22438
22439 #. type: verbatim
22440 #: ../resize/virt-resize.pod:117
22441 #, no-wrap
22442 msgid ""
22443 " # lvcreate -L 10G -n lv_name vg_name\n"
22444 "\n"
22445 msgstr ""
22446
22447 #. type: textblock
22448 #: ../resize/virt-resize.pod:119
22449 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22450 msgstr ""
22451
22452 #. type: verbatim
22453 #: ../resize/virt-resize.pod:121
22454 #, no-wrap
22455 msgid ""
22456 " # virsh pool-list\n"
22457 " # virsh vol-create-as poolname newvol 10G\n"
22458 "\n"
22459 msgstr ""
22460
22461 #. type: =item
22462 #: ../resize/virt-resize.pod:124
22463 msgid "5. Resize"
22464 msgstr ""
22465
22466 #. type: textblock
22467 #: ../resize/virt-resize.pod:126
22468 msgid ""
22469 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22470 "file) and the output disk.  The output disk is the one created in the "
22471 "previous step."
22472 msgstr ""
22473
22474 #. type: verbatim
22475 #: ../resize/virt-resize.pod:130
22476 #, no-wrap
22477 msgid ""
22478 " # virt-resize indisk outdisk\n"
22479 "\n"
22480 msgstr ""
22481
22482 #. type: textblock
22483 #: ../resize/virt-resize.pod:132
22484 msgid ""
22485 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22486 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22487 "larger, then an extra, empty partition is created at the end of the disk "
22488 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22489 "error."
22490 msgstr ""
22491
22492 #. type: textblock
22493 #: ../resize/virt-resize.pod:138
22494 msgid ""
22495 "More realistically you'd want to expand existing partitions in the disk "
22496 "image by passing extra options (for the full list see the L</OPTIONS> "
22497 "section below)."
22498 msgstr ""
22499
22500 #. type: textblock
22501 #: ../resize/virt-resize.pod:142
22502 msgid ""
22503 "L</--expand> is the most useful option.  It expands the named partition "
22504 "within the disk to fill any extra space:"
22505 msgstr ""
22506
22507 #. type: verbatim
22508 #: ../resize/virt-resize.pod:145
22509 #, no-wrap
22510 msgid ""
22511 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22512 "\n"
22513 msgstr ""
22514
22515 #. type: textblock
22516 #: ../resize/virt-resize.pod:147
22517 msgid ""
22518 "(In this case, an extra partition is I<not> created at the end of the disk, "
22519 "because there will be no unused space)."
22520 msgstr ""
22521
22522 #. type: textblock
22523 #: ../resize/virt-resize.pod:150
22524 msgid ""
22525 "L</--resize> is the other commonly used option.  The following would "
22526 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22527 "rest of the available space:"
22528 msgstr ""
22529
22530 #. type: verbatim
22531 #: ../resize/virt-resize.pod:154
22532 #, no-wrap
22533 msgid ""
22534 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22535 "     indisk outdisk\n"
22536 "\n"
22537 msgstr ""
22538
22539 #. type: textblock
22540 #: ../resize/virt-resize.pod:157
22541 msgid ""
22542 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22543 "if virt-resize knows how, it will resize the contents, the equivalent of "
22544 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22545 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22546 "filesystems, so you would have to online resize them after booting the guest."
22547 msgstr ""
22548
22549 #. type: textblock
22550 #: ../resize/virt-resize.pod:164
22551 msgid "Other options are covered below."
22552 msgstr ""
22553
22554 #. type: =item
22555 #: ../resize/virt-resize.pod:166
22556 msgid "6. Test"
22557 msgstr ""
22558
22559 #. type: textblock
22560 #: ../resize/virt-resize.pod:168
22561 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22562 msgstr ""
22563
22564 #. type: textblock
22565 #: ../resize/virt-resize.pod:170
22566 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22567 msgstr ""
22568
22569 #. type: verbatim
22570 #: ../resize/virt-resize.pod:172
22571 #, fuzzy, no-wrap
22572 #| msgid ""
22573 #| " edit filename\n"
22574 #| "\n"
22575 msgid ""
22576 " # virsh edit guestname\n"
22577 "\n"
22578 msgstr ""
22579 " edit назва_файла\n"
22580 "\n"
22581
22582 #. type: textblock
22583 #: ../resize/virt-resize.pod:174
22584 msgid ""
22585 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22586 "html#elementsDisks>"
22587 msgstr ""
22588
22589 #. type: textblock
22590 #: ../resize/virt-resize.pod:177
22591 msgid "Then start up the domain with the new, resized disk:"
22592 msgstr ""
22593
22594 #. type: verbatim
22595 #: ../resize/virt-resize.pod:179
22596 #, fuzzy, no-wrap
22597 #| msgid ""
22598 #| " ln-s target linkname\n"
22599 #| "\n"
22600 msgid ""
22601 " # virsh start guestname\n"
22602 "\n"
22603 msgstr ""
22604 " ln-s призначення назва_посилання\n"
22605 "\n"
22606
22607 #. type: textblock
22608 #: ../resize/virt-resize.pod:181
22609 msgid ""
22610 "and check that it still works.  See also the L</NOTES> section below for "
22611 "additional information."
22612 msgstr ""
22613
22614 #. type: =item
22615 #: ../resize/virt-resize.pod:184
22616 msgid "7. Resize LVs etc inside the guest"
22617 msgstr ""
22618
22619 #. type: textblock
22620 #: ../resize/virt-resize.pod:186
22621 msgid "(This can also be done offline using L<guestfish(1)>)"
22622 msgstr ""
22623
22624 #. type: textblock
22625 #: ../resize/virt-resize.pod:188
22626 msgid ""
22627 "Once the guest has booted you should see the new space available, at least "
22628 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22629 "may need to resize LVs inside PVs, and also resize filesystem types that "
22630 "virt-resize does not know how to expand."
22631 msgstr ""
22632
22633 #. type: =head2
22634 #: ../resize/virt-resize.pod:195
22635 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22636 msgstr ""
22637
22638 #. type: textblock
22639 #: ../resize/virt-resize.pod:197
22640 msgid ""
22641 "Shrinking is somewhat more complex than expanding, and only an overview is "
22642 "given here."
22643 msgstr ""
22644
22645 #. type: textblock
22646 #: ../resize/virt-resize.pod:200
22647 msgid ""
22648 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22649 "filesystems).  The user has to shrink content before passing the disk image "
22650 "to virt-resize, and virt-resize will check that the content has been shrunk "
22651 "properly."
22652 msgstr ""
22653
22654 #. type: textblock
22655 #: ../resize/virt-resize.pod:205
22656 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22657 msgstr ""
22658
22659 #. type: textblock
22660 #: ../resize/virt-resize.pod:207
22661 msgid ""
22662 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22663 "steps 3 and 4 above to allocate a new disk image."
22664 msgstr ""
22665
22666 #. type: textblock
22667 #: ../resize/virt-resize.pod:210
22668 msgid ""
22669 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22670 msgstr ""
22671
22672 #. type: =head2
22673 #: ../resize/virt-resize.pod:213
22674 msgid "IGNORING OR DELETING PARTITIONS"
22675 msgstr ""
22676
22677 #. type: textblock
22678 #: ../resize/virt-resize.pod:215
22679 msgid ""
22680 "virt-resize also gives a convenient way to ignore or delete partitions when "
22681 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22682 "up the copy where you don't care about the existing contents of a "
22683 "partition.  Deleting a partition removes it completely, but note that it "
22684 "also renumbers any partitions after the one which is deleted, which can "
22685 "leave some guests unbootable."
22686 msgstr ""
22687
22688 #. type: =head2
22689 #: ../resize/virt-resize.pod:222
22690 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22691 msgstr ""
22692
22693 #. type: textblock
22694 #: ../resize/virt-resize.pod:224
22695 msgid ""
22696 "If the input disk is in qcow2 format, then you may prefer that the output is "
22697 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22698 "the fly.  The output format is simply determined by the format of the empty "
22699 "output container that you provide.  Thus to create qcow2 output, use:"
22700 msgstr ""
22701
22702 #. type: verbatim
22703 #: ../resize/virt-resize.pod:230
22704 #, no-wrap
22705 msgid ""
22706 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22707 "\n"
22708 msgstr ""
22709
22710 #. type: textblock
22711 #: ../resize/virt-resize.pod:232
22712 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22713 msgstr ""
22714
22715 #. type: textblock
22716 #: ../resize/virt-resize.pod:234
22717 msgid "Similarly, to get non-sparse raw output use:"
22718 msgstr ""
22719
22720 #. type: verbatim
22721 #: ../resize/virt-resize.pod:236
22722 #, fuzzy, no-wrap
22723 #| msgid ""
22724 #| " fallocate path len\n"
22725 #| "\n"
22726 msgid ""
22727 " fallocate -l size outdisk\n"
22728 "\n"
22729 msgstr ""
22730 " fallocate шлях довжина\n"
22731 "\n"
22732
22733 #. type: textblock
22734 #: ../resize/virt-resize.pod:238
22735 msgid ""
22736 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22737 "dev/zero of=outdisk bs=1M count=..>)"
22738 msgstr ""
22739
22740 #. type: textblock
22741 #: ../resize/virt-resize.pod:247
22742 msgid "Display help."
22743 msgstr ""
22744
22745 #. type: =item
22746 #: ../resize/virt-resize.pod:249
22747 msgid "B<-d>"
22748 msgstr ""
22749
22750 #. type: =item
22751 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22752 #: ../tools/virt-win-reg.pl:120
22753 msgid "B<--debug>"
22754 msgstr "B<--debug>"
22755
22756 #. type: textblock
22757 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22758 msgid "Enable debugging messages."
22759 msgstr ""
22760
22761 #. type: =item
22762 #: ../resize/virt-resize.pod:255
22763 #, fuzzy
22764 #| msgid "B<--no-dest-paths>"
22765 msgid "B<--delete part>"
22766 msgstr "B<--no-dest-paths>"
22767
22768 #. type: textblock
22769 #: ../resize/virt-resize.pod:257
22770 msgid ""
22771 "Delete the named partition.  It would be more accurate to describe this as "
22772 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22773 "the original disk image is left intact."
22774 msgstr ""
22775
22776 #. type: textblock
22777 #: ../resize/virt-resize.pod:261
22778 msgid ""
22779 "Note that when you delete a partition, then anything contained in the "
22780 "partition is also deleted.  Furthermore, this causes any partitions that "
22781 "come after to be I<renumbered>, which can easily make your guest unbootable."
22782 msgstr ""
22783
22784 #. type: textblock
22785 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22786 #: ../resize/virt-resize.pod:454
22787 msgid "You can give this option multiple times."
22788 msgstr ""
22789
22790 #. type: =item
22791 #: ../resize/virt-resize.pod:268
22792 #, fuzzy
22793 #| msgid "B<--partition>"
22794 msgid "B<--expand part>"
22795 msgstr "B<--partition>"
22796
22797 #. type: textblock
22798 #: ../resize/virt-resize.pod:270
22799 msgid ""
22800 "Expand the named partition so it uses up all extra space (space left over "
22801 "after any other resize changes that you request have been done)."
22802 msgstr ""
22803
22804 #. type: textblock
22805 #: ../resize/virt-resize.pod:273
22806 msgid ""
22807 "If virt-resize knows how, it will expand the direct content of the "
22808 "partition.  For example, if the partition is an LVM PV, it will expand the "
22809 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22810 "content it doesn't know about alone."
22811 msgstr ""
22812
22813 #. type: textblock
22814 #: ../resize/virt-resize.pod:278
22815 msgid "Currently virt-resize can resize:"
22816 msgstr ""
22817
22818 #. type: textblock
22819 #: ../resize/virt-resize.pod:284
22820 msgid "ext2, ext3 and ext4 filesystems."
22821 msgstr ""
22822
22823 #. type: textblock
22824 #: ../resize/virt-resize.pod:288
22825 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22826 msgstr ""
22827
22828 #. type: textblock
22829 #: ../resize/virt-resize.pod:290
22830 msgid ""
22831 "The filesystem must have been shut down consistently last time it was used.  "
22832 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22833 "consistency check, so at the first boot after resizing Windows will check "
22834 "the disk."
22835 msgstr ""
22836
22837 #. type: textblock
22838 #: ../resize/virt-resize.pod:297
22839 msgid ""
22840 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22841 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22842 "resize LVs as desired after boot."
22843 msgstr ""
22844
22845 #. type: textblock
22846 #: ../resize/virt-resize.pod:303
22847 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22848 msgstr ""
22849
22850 #. type: textblock
22851 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22852 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22853 msgstr ""
22854
22855 #. type: =item
22856 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22857 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22858 #: ../tools/virt-win-reg.pl:142
22859 msgid "B<--format> raw"
22860 msgstr ""
22861
22862 #. type: textblock
22863 #: ../resize/virt-resize.pod:311
22864 msgid ""
22865 "Specify the format of the input disk image.  If this flag is not given then "
22866 "it is auto-detected from the image itself."
22867 msgstr ""
22868
22869 #. type: textblock
22870 #: ../resize/virt-resize.pod:317
22871 msgid ""
22872 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22873 "AND NON-SPARSE RAW FORMATS>."
22874 msgstr ""
22875
22876 #. type: =item
22877 #: ../resize/virt-resize.pod:320
22878 #, fuzzy
22879 #| msgid "B<--format>"
22880 msgid "B<--ignore part>"
22881 msgstr "B<--format>"
22882
22883 #. type: textblock
22884 #: ../resize/virt-resize.pod:322
22885 msgid ""
22886 "Ignore the named partition.  Effectively this means the partition is "
22887 "allocated on the destination disk, but the content is not copied across from "
22888 "the source disk.  The content of the partition will be blank (all zero "
22889 "bytes)."
22890 msgstr ""
22891
22892 #. type: =item
22893 #: ../resize/virt-resize.pod:329
22894 msgid "B<--LV-expand logvol>"
22895 msgstr ""
22896
22897 #. type: textblock
22898 #: ../resize/virt-resize.pod:331
22899 msgid ""
22900 "This takes the logical volume and, as a final step, expands it to fill all "
22901 "the space available in its volume group.  A typical usage, assuming a Linux "
22902 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22903 "lv_root> would be:"
22904 msgstr ""
22905
22906 #. type: verbatim
22907 #: ../resize/virt-resize.pod:336
22908 #, no-wrap
22909 msgid ""
22910 " virt-resize indisk outdisk \\\n"
22911 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22912 "\n"
22913 msgstr ""
22914
22915 #. type: textblock
22916 #: ../resize/virt-resize.pod:339
22917 msgid ""
22918 "This would first expand the partition (and PV), and then expand the root "
22919 "device to fill the extra space in the PV."
22920 msgstr ""
22921
22922 #. type: textblock
22923 #: ../resize/virt-resize.pod:342
22924 msgid ""
22925 "The contents of the LV are also resized if virt-resize knows how to do "
22926 "that.  You can stop virt-resize from trying to expand the content by using "
22927 "the option I<--no-expand-content>."
22928 msgstr ""
22929
22930 #. type: textblock
22931 #: ../resize/virt-resize.pod:346
22932 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22933 msgstr ""
22934
22935 #. type: textblock
22936 #: ../resize/virt-resize.pod:348
22937 msgid ""
22938 "You can give this option multiple times, I<but> it doesn't make sense to do "
22939 "this unless the logical volumes you specify are all in different volume "
22940 "groups."
22941 msgstr ""
22942
22943 #. type: =item
22944 #: ../resize/virt-resize.pod:352
22945 #, fuzzy
22946 #| msgid "B<-h> | B<--human-readable>"
22947 msgid "B<--machine-readable>"
22948 msgstr "B<-h> | B<--human-readable>"
22949
22950 #. type: textblock
22951 #: ../resize/virt-resize.pod:354
22952 msgid ""
22953 "This option is used to make the output more machine friendly when being "
22954 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
22955 msgstr ""
22956
22957 #. type: =item
22958 #: ../resize/virt-resize.pod:360
22959 #, fuzzy
22960 #| msgid "B<--debug>"
22961 msgid "B<--dryrun>"
22962 msgstr "B<--debug>"
22963
22964 #. type: textblock
22965 #: ../resize/virt-resize.pod:362
22966 msgid "Print a summary of what would be done, but don't do anything."
22967 msgstr ""
22968
22969 #. type: =item
22970 #: ../resize/virt-resize.pod:364
22971 msgid "B<--no-copy-boot-loader>"
22972 msgstr ""
22973
22974 #. type: textblock
22975 #: ../resize/virt-resize.pod:366
22976 msgid ""
22977 "By default, virt-resize copies over some sectors at the start of the disk "
22978 "(up to the beginning of the first partition).  Commonly these sectors "
22979 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22980 "in order for the guest to boot correctly."
22981 msgstr ""
22982
22983 #. type: textblock
22984 #: ../resize/virt-resize.pod:371
22985 msgid ""
22986 "If you specify this flag, then this initial copy is not done.  You may need "
22987 "to reinstall the boot loader in this case."
22988 msgstr ""
22989
22990 #. type: =item
22991 #: ../resize/virt-resize.pod:374
22992 #, fuzzy
22993 #| msgid "B<--partition>"
22994 msgid "B<--no-extra-partition>"
22995 msgstr "B<--partition>"
22996
22997 #. type: textblock
22998 #: ../resize/virt-resize.pod:376
22999 msgid ""
23000 "By default, virt-resize creates an extra partition if there is any extra, "
23001 "unused space after all resizing has happened.  Use this option to prevent "
23002 "the extra partition from being created.  If you do this then the extra space "
23003 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23004 "tool in the guest."
23005 msgstr ""
23006
23007 #. type: textblock
23008 #: ../resize/virt-resize.pod:382
23009 msgid ""
23010 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23011 "will be created."
23012 msgstr ""
23013
23014 #. type: =item
23015 #: ../resize/virt-resize.pod:385
23016 #, fuzzy
23017 #| msgid "B<--no-dest-paths>"
23018 msgid "B<--no-expand-content>"
23019 msgstr "B<--no-dest-paths>"
23020
23021 #. type: textblock
23022 #: ../resize/virt-resize.pod:387
23023 msgid ""
23024 "By default, virt-resize will try to expand the direct contents of "
23025 "partitions, if it knows how (see I<--expand> option above)."
23026 msgstr ""
23027
23028 #. type: textblock
23029 #: ../resize/virt-resize.pod:390
23030 msgid ""
23031 "If you give the I<--no-expand-content> option then virt-resize will not "
23032 "attempt this."
23033 msgstr ""
23034
23035 #. type: =item
23036 #: ../resize/virt-resize.pod:393
23037 #, fuzzy
23038 #| msgid "ntfsresize-size"
23039 msgid "B<--ntfsresize-force>"
23040 msgstr "ntfsresize-size"
23041
23042 #. type: textblock
23043 #: ../resize/virt-resize.pod:395
23044 msgid ""
23045 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23046 "the NTFS disk is marked as needing a consistency check.  You have to use "
23047 "this option if you want to resize a Windows guest multiple times without "
23048 "booting into Windows between each resize."
23049 msgstr ""
23050
23051 #. type: =item
23052 #: ../resize/virt-resize.pod:401
23053 #, fuzzy
23054 #| msgid "B<--format>"
23055 msgid "B<--output-format> raw"
23056 msgstr "B<--format>"
23057
23058 #. type: textblock
23059 #: ../resize/virt-resize.pod:403
23060 msgid ""
23061 "Specify the format of the output disk image.  If this flag is not given then "
23062 "it is auto-detected from the image itself."
23063 msgstr ""
23064
23065 #. type: textblock
23066 #: ../resize/virt-resize.pod:409
23067 msgid ""
23068 "Note that this option I<does not create> the output format.  This option "
23069 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23070 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
23071 "SPARSE RAW FORMATS>."
23072 msgstr ""
23073
23074 #. type: =item
23075 #: ../resize/virt-resize.pod:414
23076 msgid "B<-q>"
23077 msgstr ""
23078
23079 #. type: =item
23080 #: ../resize/virt-resize.pod:416
23081 #, fuzzy
23082 #| msgid "B<--live>"
23083 msgid "B<--quiet>"
23084 msgstr "B<--live>"
23085
23086 #. type: textblock
23087 #: ../resize/virt-resize.pod:418
23088 msgid "Don't print the summary."
23089 msgstr ""
23090
23091 #. type: =item
23092 #: ../resize/virt-resize.pod:420
23093 #, fuzzy
23094 #| msgid "B<part_size>"
23095 msgid "B<--resize part=size>"
23096 msgstr "B<part_size>"
23097
23098 #. type: textblock
23099 #: ../resize/virt-resize.pod:422
23100 msgid ""
23101 "Resize the named partition (expanding or shrinking it) so that it has the "
23102 "given size."
23103 msgstr ""
23104
23105 #. type: textblock
23106 #: ../resize/virt-resize.pod:425
23107 msgid ""
23108 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23109 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23110 "size; or as a relative number or percentage.  For example:"
23111 msgstr ""
23112
23113 #. type: verbatim
23114 #: ../resize/virt-resize.pod:431
23115 #, fuzzy, no-wrap
23116 #| msgid ""
23117 #| " hexedit /dev/sda 1M\n"
23118 #| "\n"
23119 msgid ""
23120 " --resize /dev/sda2=10G\n"
23121 "\n"
23122 msgstr ""
23123 " hexedit /dev/sda 1M\n"
23124 "\n"
23125
23126 #. type: verbatim
23127 #: ../resize/virt-resize.pod:433
23128 #, fuzzy, no-wrap
23129 #| msgid ""
23130 #| " pvresize device\n"
23131 #| "\n"
23132 msgid ""
23133 " --resize /dev/sda4=90%\n"
23134 "\n"
23135 msgstr ""
23136 " pvresize пристрій\n"
23137 "\n"
23138
23139 #. type: verbatim
23140 #: ../resize/virt-resize.pod:435
23141 #, fuzzy, no-wrap
23142 #| msgid ""
23143 #| " hexedit /dev/sda 1M\n"
23144 #| "\n"
23145 msgid ""
23146 " --resize /dev/sda2=+1G\n"
23147 "\n"
23148 msgstr ""
23149 " hexedit /dev/sda 1M\n"
23150 "\n"
23151
23152 #. type: verbatim
23153 #: ../resize/virt-resize.pod:437
23154 #, fuzzy, no-wrap
23155 #| msgid ""
23156 #| " hexedit /dev/sda 1M\n"
23157 #| "\n"
23158 msgid ""
23159 " --resize /dev/sda2=-200M\n"
23160 "\n"
23161 msgstr ""
23162 " hexedit /dev/sda 1M\n"
23163 "\n"
23164
23165 #. type: verbatim
23166 #: ../resize/virt-resize.pod:439
23167 #, fuzzy, no-wrap
23168 #| msgid ""
23169 #| " hexedit /dev/sda 1M\n"
23170 #| "\n"
23171 msgid ""
23172 " --resize /dev/sda1=+128K\n"
23173 "\n"
23174 msgstr ""
23175 " hexedit /dev/sda 1M\n"
23176 "\n"
23177
23178 #. type: verbatim
23179 #: ../resize/virt-resize.pod:441
23180 #, fuzzy, no-wrap
23181 #| msgid ""
23182 #| " hexedit /dev/sda 1M\n"
23183 #| "\n"
23184 msgid ""
23185 " --resize /dev/sda1=+10%\n"
23186 "\n"
23187 msgstr ""
23188 " hexedit /dev/sda 1M\n"
23189 "\n"
23190
23191 #. type: verbatim
23192 #: ../resize/virt-resize.pod:443
23193 #, fuzzy, no-wrap
23194 #| msgid ""
23195 #| " hexedit /dev/sda 1M\n"
23196 #| "\n"
23197 msgid ""
23198 " --resize /dev/sda1=-10%\n"
23199 "\n"
23200 msgstr ""
23201 " hexedit /dev/sda 1M\n"
23202 "\n"
23203
23204 #. type: textblock
23205 #: ../resize/virt-resize.pod:445
23206 msgid ""
23207 "You can increase the size of any partition.  Virt-resize will expand the "
23208 "direct content of the partition if it knows how (see I<--expand> below)."
23209 msgstr ""
23210
23211 #. type: textblock
23212 #: ../resize/virt-resize.pod:449
23213 msgid ""
23214 "You can only I<decrease> the size of partitions that contain filesystems or "
23215 "PVs which have already been shrunk.  Virt-resize will check this has been "
23216 "done before proceeding, or else will print an error (see also I<--resize-"
23217 "force>)."
23218 msgstr ""
23219
23220 #. type: =item
23221 #: ../resize/virt-resize.pod:456
23222 msgid "B<--resize-force part=size>"
23223 msgstr ""
23224
23225 #. type: textblock
23226 #: ../resize/virt-resize.pod:458
23227 msgid ""
23228 "This is the same as I<--resize> except that it will let you decrease the "
23229 "size of any partition.  Generally this means you will lose any data which "
23230 "was at the end of the partition you shrink, but you may not care about that "
23231 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23232 "as a swap partition)."
23233 msgstr ""
23234
23235 #. type: textblock
23236 #: ../resize/virt-resize.pod:464
23237 msgid "See also the I<--ignore> option."
23238 msgstr ""
23239
23240 #. type: =item
23241 #: ../resize/virt-resize.pod:466
23242 #, fuzzy
23243 #| msgid "B<--partition>"
23244 msgid "B<--shrink part>"
23245 msgstr "B<--partition>"
23246
23247 #. type: textblock
23248 #: ../resize/virt-resize.pod:468
23249 msgid ""
23250 "Shrink the named partition until the overall disk image fits in the "
23251 "destination.  The named partition B<must> contain a filesystem or PV which "
23252 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23253 "online tools).  Virt-resize will check this and give an error if it has not "
23254 "been done."
23255 msgstr ""
23256
23257 #. type: textblock
23258 #: ../resize/virt-resize.pod:474
23259 msgid ""
23260 "The amount by which the overall disk must be shrunk (after carrying out all "
23261 "other operations requested by the user) is called the \"deficit\".  For "
23262 "example, a straight copy (assume no other operations)  from a 5GB disk image "
23263 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
23264 "would give an error unless the user specified a partition to shrink and that "
23265 "partition had more than a gigabyte of free space."
23266 msgstr ""
23267
23268 #. type: =head1
23269 #: ../resize/virt-resize.pod:492
23270 msgid "MACHINE READABLE OUTPUT"
23271 msgstr ""
23272
23273 #. type: textblock
23274 #: ../resize/virt-resize.pod:494
23275 msgid ""
23276 "The I<--machine-readable> option can be used to make the output more machine "
23277 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23278 "etc."
23279 msgstr ""
23280
23281 #. type: textblock
23282 #: ../resize/virt-resize.pod:498
23283 msgid "There are two ways to use this option."
23284 msgstr ""
23285
23286 #. type: textblock
23287 #: ../resize/virt-resize.pod:500
23288 msgid ""
23289 "Firstly use the option on its own to query the capabilities of the virt-"
23290 "resize binary.  Typical output looks like this:"
23291 msgstr ""
23292
23293 #. type: verbatim
23294 #: ../resize/virt-resize.pod:503
23295 #, no-wrap
23296 msgid ""
23297 " $ virt-resize --machine-readable\n"
23298 " virt-resize\n"
23299 " ntfsresize-force\n"
23300 " 32bitok\n"
23301 " ntfs\n"
23302 " btrfs\n"
23303 "\n"
23304 msgstr ""
23305
23306 #. type: textblock
23307 #: ../resize/virt-resize.pod:510
23308 msgid ""
23309 "A list of features is printed, one per line, and the program exits with "
23310 "status 0."
23311 msgstr ""
23312
23313 #. type: textblock
23314 #: ../resize/virt-resize.pod:513
23315 msgid ""
23316 "Secondly use the option in conjunction with other options to make the "
23317 "regular program output more machine friendly."
23318 msgstr ""
23319
23320 #. type: textblock
23321 #: ../resize/virt-resize.pod:516
23322 msgid "At the moment this means:"
23323 msgstr ""
23324
23325 #. type: textblock
23326 #: ../resize/virt-resize.pod:522
23327 msgid ""
23328 "Progress bar messages can be parsed from stdout by looking for this regular "
23329 "expression:"
23330 msgstr ""
23331
23332 #. type: verbatim
23333 #: ../resize/virt-resize.pod:525
23334 #, no-wrap
23335 msgid ""
23336 " ^[0-9]+/[0-9]+$\n"
23337 "\n"
23338 msgstr ""
23339
23340 #. type: textblock
23341 #: ../resize/virt-resize.pod:529
23342 msgid ""
23343 "The calling program should treat messages sent to stdout (except for "
23344 "progress bar messages) as status messages.  They can be logged and/or "
23345 "displayed to the user."
23346 msgstr ""
23347
23348 #. type: textblock
23349 #: ../resize/virt-resize.pod:535
23350 msgid ""
23351 "The calling program should treat messages sent to stderr as error messages.  "
23352 "In addition, virt-resize exits with a non-zero status code if there was a "
23353 "fatal error."
23354 msgstr ""
23355
23356 #. type: textblock
23357 #: ../resize/virt-resize.pod:541
23358 msgid ""
23359 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
23360 "readable> option and will return an error."
23361 msgstr ""
23362
23363 #. type: =head2
23364 #: ../resize/virt-resize.pod:546
23365 msgid "\"Partition 1 does not end on cylinder boundary.\""
23366 msgstr ""
23367
23368 #. type: textblock
23369 #: ../resize/virt-resize.pod:548
23370 msgid ""
23371 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
23372 "means the partitions will not be aligned to the ancient CHS geometry.  "
23373 "However CHS geometry is meaningless for disks manufactured since the early "
23374 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
23375 "cylinders is not required by any modern operating system."
23376 msgstr ""
23377
23378 #. type: =head2
23379 #: ../resize/virt-resize.pod:555
23380 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23381 msgstr ""
23382
23383 #. type: textblock
23384 #: ../resize/virt-resize.pod:557
23385 msgid ""
23386 "In Windows Vista and later versions, Microsoft switched to using a separate "
23387 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
23388 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
23389 "the boot partition.  Doing so seems to break the guest completely.  However "
23390 "expanding the second partition (ie. C: drive) should work."
23391 msgstr ""
23392
23393 #. type: textblock
23394 #: ../resize/virt-resize.pod:564
23395 msgid ""
23396 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23397 "NTFS partitions have been expanded.  This is just a safety check and (unless "
23398 "it find errors) is nothing to worry about."
23399 msgstr ""
23400
23401 #. type: =head2
23402 #: ../resize/virt-resize.pod:568
23403 msgid "GUEST BOOT STUCK AT \"GRUB\""
23404 msgstr ""
23405
23406 #. type: textblock
23407 #: ../resize/virt-resize.pod:570
23408 msgid ""
23409 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23410 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
23411 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
23412 "although we think is to do with partition alignment."
23413 msgstr ""
23414
23415 #. type: verbatim
23416 #: ../resize/virt-resize.pod:575
23417 #, no-wrap
23418 msgid ""
23419 " guestfish -i -a newdisk\n"
23420 " ><fs> cat /boot/grub/device.map\n"
23421 " # check the contents of this file are sensible or\n"
23422 " # edit the file if necessary\n"
23423 " ><fs> grub-install / /dev/vda\n"
23424 " ><fs> exit\n"
23425 "\n"
23426 msgstr ""
23427
23428 #. type: textblock
23429 #: ../resize/virt-resize.pod:582
23430 msgid ""
23431 "For more flexible guest reconfiguration, including if you need to specify "
23432 "other parameters to grub-install, use L<virt-rescue(1)>."
23433 msgstr ""
23434
23435 #. type: =head1
23436 #: ../resize/virt-resize.pod:585
23437 msgid "ALTERNATIVE TOOLS"
23438 msgstr ""
23439
23440 #. type: textblock
23441 #: ../resize/virt-resize.pod:587
23442 msgid ""
23443 "There are several proprietary tools for resizing partitions.  We won't "
23444 "mention any here."
23445 msgstr ""
23446
23447 #. type: textblock
23448 #: ../resize/virt-resize.pod:590
23449 msgid ""
23450 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23451 "operations on disk images.  They can resize and move partitions, but I don't "
23452 "think they can do anything with the contents, and they certainly don't "
23453 "understand LVM."
23454 msgstr ""
23455
23456 #. type: textblock
23457 #: ../resize/virt-resize.pod:595
23458 msgid ""
23459 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23460 "but at a much lower level.  You will probably end up hand-calculating sector "
23461 "offsets, which is something that virt-resize was designed to avoid.  If you "
23462 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23463 "I<--debug> flag."
23464 msgstr ""
23465
23466 #. type: textblock
23467 #: ../resize/virt-resize.pod:615
23468 msgid ""
23469 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23470 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23471 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23472 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
23473 msgstr ""
23474
23475 #. type: textblock
23476 #: ../ruby/examples/guestfs-ruby.pod:5
23477 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23478 msgstr ""
23479
23480 #. type: verbatim
23481 #: ../ruby/examples/guestfs-ruby.pod:9
23482 #, no-wrap
23483 msgid ""
23484 " require 'guestfs'\n"
23485 " g = Guestfs::Guestfs.new()\n"
23486 " g.add_drive_opts(\"disk.img\",\n"
23487 "                  :readonly => 1, :format => \"raw\")\n"
23488 " g.launch()\n"
23489 "\n"
23490 msgstr ""
23491
23492 #. type: textblock
23493 #: ../ruby/examples/guestfs-ruby.pod:17
23494 msgid ""
23495 "This manual page documents how to call libguestfs from the Ruby programming "
23496 "language.  This page just documents the differences from the C API and gives "
23497 "some examples.  If you are not familiar with using libguestfs, you also need "
23498 "to read L<guestfs(3)>."
23499 msgstr ""
23500
23501 #. type: textblock
23502 #: ../ruby/examples/guestfs-ruby.pod:24
23503 msgid ""
23504 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
23505 "This has a single parameter which is the error message (a string)."
23506 msgstr ""
23507
23508 #. type: textblock
23509 #: ../ruby/examples/guestfs-ruby.pod:38
23510 #, fuzzy
23511 #| msgid ""
23512 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23513 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23514 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23515 msgid ""
23516 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23517 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
23518 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23519 msgstr ""
23520 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23521 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23522 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23523
23524 #. type: =head2
23525 #: ../src/guestfs-actions.pod:1
23526 msgid "guestfs_add_cdrom"
23527 msgstr ""
23528
23529 #. type: verbatim
23530 #: ../src/guestfs-actions.pod:3
23531 #, no-wrap
23532 msgid ""
23533 " int\n"
23534 " guestfs_add_cdrom (guestfs_h *g,\n"
23535 "                    const char *filename);\n"
23536 "\n"
23537 msgstr ""
23538
23539 #. type: textblock
23540 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
23541 #: ../src/guestfs-actions.pod:270
23542 msgid ""
23543 "I<This function is deprecated.> In new code, use the L</"
23544 "guestfs_add_drive_opts> call instead."
23545 msgstr ""
23546
23547 #. type: textblock
23548 #: ../src/guestfs-actions.pod:24
23549 msgid ""
23550 "This call checks for the existence of C<filename>.  This stops you from "
23551 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23552 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
23553 "instead."
23554 msgstr ""
23555
23556 #. type: textblock
23557 #: ../src/guestfs-actions.pod:31
23558 msgid ""
23559 "If you just want to add an ISO file (often you use this as an efficient way "
23560 "to transfer large files into the guest), then you should probably use "
23561 "C<guestfs_add_drive_ro> instead."
23562 msgstr ""
23563
23564 #. type: textblock
23565 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
23566 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23567 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
23568 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23569 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23570 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23571 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23572 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23573 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23574 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23575 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23576 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23577 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23578 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1231
23579 #: ../src/guestfs-actions.pod:1275 ../src/guestfs-actions.pod:1293
23580 #: ../src/guestfs-actions.pod:1312 ../src/guestfs-actions.pod:1326
23581 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:1416
23582 #: ../src/guestfs-actions.pod:1447 ../src/guestfs-actions.pod:1472
23583 #: ../src/guestfs-actions.pod:1514 ../src/guestfs-actions.pod:1627
23584 #: ../src/guestfs-actions.pod:1654 ../src/guestfs-actions.pod:1869
23585 #: ../src/guestfs-actions.pod:1891 ../src/guestfs-actions.pod:1978
23586 #: ../src/guestfs-actions.pod:2484 ../src/guestfs-actions.pod:2628
23587 #: ../src/guestfs-actions.pod:2689 ../src/guestfs-actions.pod:2724
23588 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3783
23589 #: ../src/guestfs-actions.pod:3808 ../src/guestfs-actions.pod:3997
23590 #: ../src/guestfs-actions.pod:4011 ../src/guestfs-actions.pod:4024
23591 #: ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4053
23592 #: ../src/guestfs-actions.pod:4089 ../src/guestfs-actions.pod:4161
23593 #: ../src/guestfs-actions.pod:4181 ../src/guestfs-actions.pod:4198
23594 #: ../src/guestfs-actions.pod:4221 ../src/guestfs-actions.pod:4244
23595 #: ../src/guestfs-actions.pod:4279 ../src/guestfs-actions.pod:4298
23596 #: ../src/guestfs-actions.pod:4317 ../src/guestfs-actions.pod:4352
23597 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4400
23598 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:4429
23599 #: ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:4461
23600 #: ../src/guestfs-actions.pod:4554 ../src/guestfs-actions.pod:4574
23601 #: ../src/guestfs-actions.pod:4587 ../src/guestfs-actions.pod:4638
23602 #: ../src/guestfs-actions.pod:4656 ../src/guestfs-actions.pod:4674
23603 #: ../src/guestfs-actions.pod:4690 ../src/guestfs-actions.pod:4704
23604 #: ../src/guestfs-actions.pod:4718 ../src/guestfs-actions.pod:4735
23605 #: ../src/guestfs-actions.pod:4750 ../src/guestfs-actions.pod:4777
23606 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4913
23607 #: ../src/guestfs-actions.pod:4944 ../src/guestfs-actions.pod:4963
23608 #: ../src/guestfs-actions.pod:4982 ../src/guestfs-actions.pod:4994
23609 #: ../src/guestfs-actions.pod:5011 ../src/guestfs-actions.pod:5024
23610 #: ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5054
23611 #: ../src/guestfs-actions.pod:5096 ../src/guestfs-actions.pod:5122
23612 #: ../src/guestfs-actions.pod:5161 ../src/guestfs-actions.pod:5181
23613 #: ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5212
23614 #: ../src/guestfs-actions.pod:5261 ../src/guestfs-actions.pod:5314
23615 #: ../src/guestfs-actions.pod:5361 ../src/guestfs-actions.pod:5404
23616 #: ../src/guestfs-actions.pod:5432 ../src/guestfs-actions.pod:5449
23617 #: ../src/guestfs-actions.pod:5467 ../src/guestfs-actions.pod:5607
23618 #: ../src/guestfs-actions.pod:5664 ../src/guestfs-actions.pod:5686
23619 #: ../src/guestfs-actions.pod:5704 ../src/guestfs-actions.pod:5736
23620 #: ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5819
23621 #: ../src/guestfs-actions.pod:5832 ../src/guestfs-actions.pod:5846
23622 #: ../src/guestfs-actions.pod:6135 ../src/guestfs-actions.pod:6154
23623 #: ../src/guestfs-actions.pod:6173 ../src/guestfs-actions.pod:6187
23624 #: ../src/guestfs-actions.pod:6199 ../src/guestfs-actions.pod:6213
23625 #: ../src/guestfs-actions.pod:6225 ../src/guestfs-actions.pod:6239
23626 #: ../src/guestfs-actions.pod:6255 ../src/guestfs-actions.pod:6276
23627 #: ../src/guestfs-actions.pod:6295 ../src/guestfs-actions.pod:6314
23628 #: ../src/guestfs-actions.pod:6344 ../src/guestfs-actions.pod:6362
23629 #: ../src/guestfs-actions.pod:6385 ../src/guestfs-actions.pod:6403
23630 #: ../src/guestfs-actions.pod:6422 ../src/guestfs-actions.pod:6443
23631 #: ../src/guestfs-actions.pod:6462 ../src/guestfs-actions.pod:6479
23632 #: ../src/guestfs-actions.pod:6498 ../src/guestfs-actions.pod:6526
23633 #: ../src/guestfs-actions.pod:6550 ../src/guestfs-actions.pod:6569
23634 #: ../src/guestfs-actions.pod:6585 ../src/guestfs-actions.pod:6607
23635 #: ../src/guestfs-actions.pod:6626 ../src/guestfs-actions.pod:6641
23636 #: ../src/guestfs-actions.pod:6660 ../src/guestfs-actions.pod:6704
23637 #: ../src/guestfs-actions.pod:6734 ../src/guestfs-actions.pod:6767
23638 #: ../src/guestfs-actions.pod:6882 ../src/guestfs-actions.pod:7003
23639 #: ../src/guestfs-actions.pod:7015 ../src/guestfs-actions.pod:7028
23640 #: ../src/guestfs-actions.pod:7041 ../src/guestfs-actions.pod:7063
23641 #: ../src/guestfs-actions.pod:7076 ../src/guestfs-actions.pod:7089
23642 #: ../src/guestfs-actions.pod:7102 ../src/guestfs-actions.pod:7117
23643 #: ../src/guestfs-actions.pod:7176 ../src/guestfs-actions.pod:7193
23644 #: ../src/guestfs-actions.pod:7209 ../src/guestfs-actions.pod:7225
23645 #: ../src/guestfs-actions.pod:7242 ../src/guestfs-actions.pod:7255
23646 #: ../src/guestfs-actions.pod:7275 ../src/guestfs-actions.pod:7311
23647 #: ../src/guestfs-actions.pod:7325 ../src/guestfs-actions.pod:7366
23648 #: ../src/guestfs-actions.pod:7379 ../src/guestfs-actions.pod:7397
23649 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7467
23650 #: ../src/guestfs-actions.pod:7583 ../src/guestfs-actions.pod:7598
23651 #: ../src/guestfs-actions.pod:7612 ../src/guestfs-actions.pod:7667
23652 #: ../src/guestfs-actions.pod:7680 ../src/guestfs-actions.pod:7725
23653 #: ../src/guestfs-actions.pod:7765 ../src/guestfs-actions.pod:7821
23654 #: ../src/guestfs-actions.pod:7841 ../src/guestfs-actions.pod:7874
23655 #: ../src/guestfs-actions.pod:7938 ../src/guestfs-actions.pod:7961
23656 #: ../src/guestfs-actions.pod:7990
23657 msgid "This function returns 0 on success or -1 on error."
23658 msgstr ""
23659
23660 #. type: textblock
23661 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23662 #: ../src/guestfs-actions.pod:1277 ../src/guestfs-actions.pod:2092
23663 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2313
23664 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3790
23665 #: ../src/guestfs-actions.pod:5098 ../src/guestfs-actions.pod:6364
23666 #: ../src/guestfs-actions.pod:6481 ../src/guestfs-actions.pod:6628
23667 #: ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7244
23668 #: ../src/guestfs-actions.pod:7767
23669 msgid "(Added in 0.3)"
23670 msgstr ""
23671
23672 #. type: =head2
23673 #: ../src/guestfs-actions.pod:41
23674 msgid "guestfs_add_domain"
23675 msgstr ""
23676
23677 #. type: verbatim
23678 #: ../src/guestfs-actions.pod:43
23679 #, no-wrap
23680 msgid ""
23681 " int\n"
23682 " guestfs_add_domain (guestfs_h *g,\n"
23683 "                     const char *dom,\n"
23684 "                     ...);\n"
23685 "\n"
23686 msgstr ""
23687
23688 #. type: textblock
23689 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23690 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161
23691 #: ../src/guestfs-actions.pod:1211 ../src/guestfs-actions.pod:2973
23692 #: ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5108
23693 #: ../src/guestfs-actions.pod:5325
23694 msgid ""
23695 "You may supply a list of optional arguments to this call.  Use zero or more "
23696 "of the following pairs of parameters, and terminate the list with C<-1> on "
23697 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
23698 msgstr ""
23699
23700 #. type: verbatim
23701 #: ../src/guestfs-actions.pod:53
23702 #, no-wrap
23703 msgid ""
23704 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23705 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23706 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23707 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23708 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23709 "\n"
23710 msgstr ""
23711
23712 #. type: textblock
23713 #: ../src/guestfs-actions.pod:59
23714 msgid ""
23715 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23716 "It works by connecting to libvirt, requesting the domain and domain XML from "
23717 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23718 "one."
23719 msgstr ""
23720
23721 #. type: textblock
23722 #: ../src/guestfs-actions.pod:94
23723 msgid ""
23724 "The other optional parameters are passed directly through to "
23725 "C<guestfs_add_drive_opts>."
23726 msgstr ""
23727
23728 #. type: textblock
23729 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23730 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23731 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23732 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1492
23733 #: ../src/guestfs-actions.pod:1848 ../src/guestfs-actions.pod:2051
23734 #: ../src/guestfs-actions.pod:2162 ../src/guestfs-actions.pod:2213
23735 #: ../src/guestfs-actions.pod:2265 ../src/guestfs-actions.pod:2277
23736 #: ../src/guestfs-actions.pod:2300 ../src/guestfs-actions.pod:2615
23737 #: ../src/guestfs-actions.pod:3091 ../src/guestfs-actions.pod:3109
23738 #: ../src/guestfs-actions.pod:5284 ../src/guestfs-actions.pod:5504
23739 #: ../src/guestfs-actions.pod:5916 ../src/guestfs-actions.pod:5942
23740 #: ../src/guestfs-actions.pod:7352 ../src/guestfs-actions.pod:7778
23741 #: ../src/guestfs-actions.pod:7791 ../src/guestfs-actions.pod:7804
23742 msgid "On error this function returns -1."
23743 msgstr ""
23744
23745 #. type: textblock
23746 #: ../src/guestfs-actions.pod:99
23747 msgid "(Added in 1.7.4)"
23748 msgstr ""
23749
23750 #. type: =head2
23751 #: ../src/guestfs-actions.pod:101
23752 msgid "guestfs_add_domain_va"
23753 msgstr ""
23754
23755 #. type: verbatim
23756 #: ../src/guestfs-actions.pod:103
23757 #, no-wrap
23758 msgid ""
23759 " int\n"
23760 " guestfs_add_domain_va (guestfs_h *g,\n"
23761 "                        const char *dom,\n"
23762 "                        va_list args);\n"
23763 "\n"
23764 msgstr ""
23765
23766 #. type: textblock
23767 #: ../src/guestfs-actions.pod:108
23768 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23769 msgstr ""
23770
23771 #. type: textblock
23772 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23773 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23774 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23775 #: ../src/guestfs-actions.pod:1187 ../src/guestfs-actions.pod:1200
23776 #: ../src/guestfs-actions.pod:1244 ../src/guestfs-actions.pod:1257
23777 #: ../src/guestfs-actions.pod:3057 ../src/guestfs-actions.pod:3069
23778 #: ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4866
23779 #: ../src/guestfs-actions.pod:5136 ../src/guestfs-actions.pod:5148
23780 #: ../src/guestfs-actions.pod:5374 ../src/guestfs-actions.pod:5385
23781 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23782 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23783
23784 #. type: =head2
23785 #: ../src/guestfs-actions.pod:112
23786 msgid "guestfs_add_domain_argv"
23787 msgstr "guestfs_add_domain_argv"
23788
23789 #. type: verbatim
23790 #: ../src/guestfs-actions.pod:114
23791 #, no-wrap
23792 msgid ""
23793 " int\n"
23794 " guestfs_add_domain_argv (guestfs_h *g,\n"
23795 "                          const char *dom,\n"
23796 "                          const struct guestfs_add_domain_argv *optargs);\n"
23797 "\n"
23798 msgstr ""
23799
23800 #. type: textblock
23801 #: ../src/guestfs-actions.pod:119
23802 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23803 msgstr ""
23804
23805 #. type: =head2
23806 #: ../src/guestfs-actions.pod:123
23807 msgid "guestfs_add_drive"
23808 msgstr ""
23809
23810 #. type: verbatim
23811 #: ../src/guestfs-actions.pod:125
23812 #, no-wrap
23813 msgid ""
23814 " int\n"
23815 " guestfs_add_drive (guestfs_h *g,\n"
23816 "                    const char *filename);\n"
23817 "\n"
23818 msgstr ""
23819
23820 #. type: textblock
23821 #: ../src/guestfs-actions.pod:129
23822 msgid ""
23823 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23824 "optional parameters, so the disk is added writable, with the format being "
23825 "detected automatically."
23826 msgstr ""
23827
23828 #. type: textblock
23829 #: ../src/guestfs-actions.pod:133
23830 msgid ""
23831 "Automatic detection of the format opens you up to a potential security hole "
23832 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23833 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23834 "you should think about replacing calls to this function with calls to "
23835 "C<guestfs_add_drive_opts>, and specifying the format."
23836 msgstr ""
23837
23838 #. type: =head2
23839 #: ../src/guestfs-actions.pod:144
23840 msgid "guestfs_add_drive_opts"
23841 msgstr ""
23842
23843 #. type: verbatim
23844 #: ../src/guestfs-actions.pod:146
23845 #, no-wrap
23846 msgid ""
23847 " int\n"
23848 " guestfs_add_drive_opts (guestfs_h *g,\n"
23849 "                         const char *filename,\n"
23850 "                         ...);\n"
23851 "\n"
23852 msgstr ""
23853
23854 #. type: verbatim
23855 #: ../src/guestfs-actions.pod:156
23856 #, no-wrap
23857 msgid ""
23858 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23859 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23860 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23861 "\n"
23862 msgstr ""
23863
23864 #. type: textblock
23865 #: ../src/guestfs-actions.pod:185
23866 msgid ""
23867 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
23868 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
23869 "Possible formats include C<raw> and C<qcow2>."
23870 msgstr ""
23871
23872 #. type: textblock
23873 #: ../src/guestfs-actions.pod:196
23874 msgid ""
23875 "This rarely-used option lets you emulate the behaviour of the deprecated "
23876 "C<guestfs_add_drive_with_if> call (q.v.)"
23877 msgstr ""
23878
23879 #. type: textblock
23880 #: ../src/guestfs-actions.pod:203
23881 msgid "(Added in 1.5.23)"
23882 msgstr ""
23883
23884 #. type: =head2
23885 #: ../src/guestfs-actions.pod:205
23886 msgid "guestfs_add_drive_opts_va"
23887 msgstr ""
23888
23889 #. type: verbatim
23890 #: ../src/guestfs-actions.pod:207
23891 #, no-wrap
23892 msgid ""
23893 " int\n"
23894 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23895 "                            const char *filename,\n"
23896 "                            va_list args);\n"
23897 "\n"
23898 msgstr ""
23899
23900 #. type: textblock
23901 #: ../src/guestfs-actions.pod:212
23902 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23903 msgstr ""
23904
23905 #. type: =head2
23906 #: ../src/guestfs-actions.pod:216
23907 msgid "guestfs_add_drive_opts_argv"
23908 msgstr ""
23909
23910 #. type: verbatim
23911 #: ../src/guestfs-actions.pod:218
23912 #, no-wrap
23913 msgid ""
23914 " int\n"
23915 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23916 "                              const char *filename,\n"
23917 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
23918 "\n"
23919 msgstr ""
23920
23921 #. type: textblock
23922 #: ../src/guestfs-actions.pod:223
23923 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23924 msgstr ""
23925
23926 #. type: =head2
23927 #: ../src/guestfs-actions.pod:227
23928 msgid "guestfs_add_drive_ro"
23929 msgstr ""
23930
23931 #. type: verbatim
23932 #: ../src/guestfs-actions.pod:229
23933 #, no-wrap
23934 msgid ""
23935 " int\n"
23936 " guestfs_add_drive_ro (guestfs_h *g,\n"
23937 "                       const char *filename);\n"
23938 "\n"
23939 msgstr ""
23940
23941 #. type: textblock
23942 #: ../src/guestfs-actions.pod:233
23943 msgid ""
23944 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23945 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23946 "disk is added read-only, with the format being detected automatically."
23947 msgstr ""
23948
23949 #. type: textblock
23950 #: ../src/guestfs-actions.pod:240
23951 msgid "(Added in 1.0.38)"
23952 msgstr ""
23953
23954 #. type: =head2
23955 #: ../src/guestfs-actions.pod:242
23956 msgid "guestfs_add_drive_ro_with_if"
23957 msgstr ""
23958
23959 #. type: verbatim
23960 #: ../src/guestfs-actions.pod:244
23961 #, no-wrap
23962 msgid ""
23963 " int\n"
23964 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23965 "                               const char *filename,\n"
23966 "                               const char *iface);\n"
23967 "\n"
23968 msgstr ""
23969
23970 #. type: textblock
23971 #: ../src/guestfs-actions.pod:256
23972 msgid ""
23973 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23974 "QEMU interface emulation to use at run time."
23975 msgstr ""
23976
23977 #. type: textblock
23978 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23979 #: ../src/guestfs-actions.pod:2574
23980 msgid "(Added in 1.0.84)"
23981 msgstr ""
23982
23983 #. type: =head2
23984 #: ../src/guestfs-actions.pod:263
23985 msgid "guestfs_add_drive_with_if"
23986 msgstr ""
23987
23988 #. type: verbatim
23989 #: ../src/guestfs-actions.pod:265
23990 #, no-wrap
23991 msgid ""
23992 " int\n"
23993 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23994 "                            const char *filename,\n"
23995 "                            const char *iface);\n"
23996 "\n"
23997 msgstr ""
23998
23999 #. type: textblock
24000 #: ../src/guestfs-actions.pod:277
24001 msgid ""
24002 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
24003 "QEMU interface emulation to use at run time."
24004 msgstr ""
24005
24006 #. type: =head2
24007 #: ../src/guestfs-actions.pod:284
24008 msgid "guestfs_aug_clear"
24009 msgstr ""
24010
24011 #. type: verbatim
24012 #: ../src/guestfs-actions.pod:286
24013 #, no-wrap
24014 msgid ""
24015 " int\n"
24016 " guestfs_aug_clear (guestfs_h *g,\n"
24017 "                    const char *augpath);\n"
24018 "\n"
24019 msgstr ""
24020
24021 #. type: textblock
24022 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2302
24023 msgid "(Added in 1.3.4)"
24024 msgstr ""
24025
24026 #. type: =head2
24027 #: ../src/guestfs-actions.pod:297
24028 msgid "guestfs_aug_close"
24029 msgstr ""
24030
24031 #. type: verbatim
24032 #: ../src/guestfs-actions.pod:299
24033 #, no-wrap
24034 msgid ""
24035 " int\n"
24036 " guestfs_aug_close (guestfs_h *g);\n"
24037 "\n"
24038 msgstr ""
24039
24040 #. type: textblock
24041 #: ../src/guestfs-actions.pod:302
24042 msgid ""
24043 "Close the current Augeas handle and free up any resources used by it.  After "
24044 "calling this, you have to call C<guestfs_aug_init> again before you can use "
24045 "any other Augeas functions."
24046 msgstr ""
24047
24048 #. type: textblock
24049 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
24050 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
24051 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
24052 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
24053 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
24054 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
24055 #: ../src/guestfs-actions.pod:5993
24056 msgid "(Added in 0.7)"
24057 msgstr ""
24058
24059 #. type: =head2
24060 #: ../src/guestfs-actions.pod:311
24061 msgid "guestfs_aug_defnode"
24062 msgstr ""
24063
24064 #. type: verbatim
24065 #: ../src/guestfs-actions.pod:313
24066 #, no-wrap
24067 msgid ""
24068 " struct guestfs_int_bool *\n"
24069 " guestfs_aug_defnode (guestfs_h *g,\n"
24070 "                      const char *name,\n"
24071 "                      const char *expr,\n"
24072 "                      const char *val);\n"
24073 "\n"
24074 msgstr ""
24075
24076 #. type: textblock
24077 #: ../src/guestfs-actions.pod:322
24078 msgid ""
24079 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24080 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
24081 "containing that single node."
24082 msgstr ""
24083
24084 #. type: textblock
24085 #: ../src/guestfs-actions.pod:330
24086 msgid ""
24087 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
24088 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
24089 msgstr ""
24090
24091 #. type: =head2
24092 #: ../src/guestfs-actions.pod:336
24093 msgid "guestfs_aug_defvar"
24094 msgstr ""
24095
24096 #. type: verbatim
24097 #: ../src/guestfs-actions.pod:338
24098 #, no-wrap
24099 msgid ""
24100 " int\n"
24101 " guestfs_aug_defvar (guestfs_h *g,\n"
24102 "                     const char *name,\n"
24103 "                     const char *expr);\n"
24104 "\n"
24105 msgstr ""
24106
24107 #. type: =head2
24108 #: ../src/guestfs-actions.pod:354
24109 msgid "guestfs_aug_get"
24110 msgstr ""
24111
24112 #. type: verbatim
24113 #: ../src/guestfs-actions.pod:356
24114 #, no-wrap
24115 msgid ""
24116 " char *\n"
24117 " guestfs_aug_get (guestfs_h *g,\n"
24118 "                  const char *augpath);\n"
24119 "\n"
24120 msgstr ""
24121
24122 #. type: textblock
24123 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
24124 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
24125 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
24126 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
24127 #: ../src/guestfs-actions.pod:1397 ../src/guestfs-actions.pod:1531
24128 #: ../src/guestfs-actions.pod:1719 ../src/guestfs-actions.pod:1831
24129 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2011
24130 #: ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2121
24131 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2325
24132 #: ../src/guestfs-actions.pod:2539 ../src/guestfs-actions.pod:2743
24133 #: ../src/guestfs-actions.pod:2837 ../src/guestfs-actions.pod:2941
24134 #: ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:3174
24135 #: ../src/guestfs-actions.pod:3202 ../src/guestfs-actions.pod:3223
24136 #: ../src/guestfs-actions.pod:3257 ../src/guestfs-actions.pod:3316
24137 #: ../src/guestfs-actions.pod:3336 ../src/guestfs-actions.pod:3356
24138 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:4336
24139 #: ../src/guestfs-actions.pod:4506 ../src/guestfs-actions.pod:4616
24140 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5721
24141 #: ../src/guestfs-actions.pod:5891 ../src/guestfs-actions.pod:6069
24142 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6788
24143 #: ../src/guestfs-actions.pod:6804 ../src/guestfs-actions.pod:6828
24144 #: ../src/guestfs-actions.pod:6852 ../src/guestfs-actions.pod:7526
24145 #: ../src/guestfs-actions.pod:7545 ../src/guestfs-actions.pod:7563
24146 #: ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:8054
24147 msgid ""
24148 "This function returns a string, or NULL on error.  I<The caller must free "
24149 "the returned string after use>."
24150 msgstr ""
24151
24152 #. type: =head2
24153 #: ../src/guestfs-actions.pod:368
24154 msgid "guestfs_aug_init"
24155 msgstr ""
24156
24157 #. type: verbatim
24158 #: ../src/guestfs-actions.pod:370
24159 #, no-wrap
24160 msgid ""
24161 " int\n"
24162 " guestfs_aug_init (guestfs_h *g,\n"
24163 "                   const char *root,\n"
24164 "                   int flags);\n"
24165 "\n"
24166 msgstr ""
24167
24168 #. type: textblock
24169 #: ../src/guestfs-actions.pod:379
24170 msgid "You must call this before using any other C<guestfs_aug_*> commands."
24171 msgstr ""
24172
24173 #. type: textblock
24174 #: ../src/guestfs-actions.pod:404
24175 msgid ""
24176 "This option is only useful when debugging Augeas lenses.  Use of this option "
24177 "may require additional memory for the libguestfs appliance.  You may need to "
24178 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
24179 "C<guestfs_set_memsize>."
24180 msgstr ""
24181
24182 #. type: textblock
24183 #: ../src/guestfs-actions.pod:419
24184 msgid "Do not load the tree in C<guestfs_aug_init>."
24185 msgstr ""
24186
24187 #. type: textblock
24188 #: ../src/guestfs-actions.pod:423
24189 msgid "To close the handle, you can call C<guestfs_aug_close>."
24190 msgstr ""
24191
24192 #. type: =head2
24193 #: ../src/guestfs-actions.pod:431
24194 msgid "guestfs_aug_insert"
24195 msgstr ""
24196
24197 #. type: verbatim
24198 #: ../src/guestfs-actions.pod:433
24199 #, no-wrap
24200 msgid ""
24201 " int\n"
24202 " guestfs_aug_insert (guestfs_h *g,\n"
24203 "                     const char *augpath,\n"
24204 "                     const char *label,\n"
24205 "                     int before);\n"
24206 "\n"
24207 msgstr ""
24208
24209 #. type: =head2
24210 #: ../src/guestfs-actions.pod:451
24211 msgid "guestfs_aug_load"
24212 msgstr ""
24213
24214 #. type: verbatim
24215 #: ../src/guestfs-actions.pod:453
24216 #, no-wrap
24217 msgid ""
24218 " int\n"
24219 " guestfs_aug_load (guestfs_h *g);\n"
24220 "\n"
24221 msgstr ""
24222
24223 #. type: =head2
24224 #: ../src/guestfs-actions.pod:465
24225 msgid "guestfs_aug_ls"
24226 msgstr ""
24227
24228 #. type: verbatim
24229 #: ../src/guestfs-actions.pod:467
24230 #, no-wrap
24231 msgid ""
24232 " char **\n"
24233 " guestfs_aug_ls (guestfs_h *g,\n"
24234 "                 const char *augpath);\n"
24235 "\n"
24236 msgstr ""
24237
24238 #. type: textblock
24239 #: ../src/guestfs-actions.pod:471
24240 msgid ""
24241 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24242 "sorting the resulting nodes into alphabetical order."
24243 msgstr ""
24244
24245 #. type: textblock
24246 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
24247 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
24248 #: ../src/guestfs-actions.pod:1546 ../src/guestfs-actions.pod:1565
24249 #: ../src/guestfs-actions.pod:1668 ../src/guestfs-actions.pod:1687
24250 #: ../src/guestfs-actions.pod:1933 ../src/guestfs-actions.pod:2397
24251 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:2432
24252 #: ../src/guestfs-actions.pod:2497 ../src/guestfs-actions.pod:2521
24253 #: ../src/guestfs-actions.pod:2592 ../src/guestfs-actions.pod:2641
24254 #: ../src/guestfs-actions.pod:2902 ../src/guestfs-actions.pod:3276
24255 #: ../src/guestfs-actions.pod:3552 ../src/guestfs-actions.pod:3866
24256 #: ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3903
24257 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4070
24258 #: ../src/guestfs-actions.pod:4478 ../src/guestfs-actions.pod:5245
24259 #: ../src/guestfs-actions.pod:5863 ../src/guestfs-actions.pod:5989
24260 #: ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6868
24261 #: ../src/guestfs-actions.pod:6929 ../src/guestfs-actions.pod:6984
24262 #: ../src/guestfs-actions.pod:7130 ../src/guestfs-actions.pod:7154
24263 #: ../src/guestfs-actions.pod:7630 ../src/guestfs-actions.pod:7650
24264 #: ../src/guestfs-actions.pod:7697 ../src/guestfs-actions.pod:7891
24265 #: ../src/guestfs-actions.pod:7910 ../src/guestfs-actions.pod:8004
24266 #: ../src/guestfs-actions.pod:8023 ../src/guestfs-actions.pod:8069
24267 #: ../src/guestfs-actions.pod:8088
24268 msgid ""
24269 "This function returns a NULL-terminated array of strings (like L<environ(3)"
24270 ">), or NULL if there was an error.  I<The caller must free the strings and "
24271 "the array after use>."
24272 msgstr ""
24273
24274 #. type: textblock
24275 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
24276 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1603
24277 #: ../src/guestfs-actions.pod:3630 ../src/guestfs-actions.pod:3661
24278 #: ../src/guestfs-actions.pod:4319 ../src/guestfs-actions.pod:4369
24279 #: ../src/guestfs-actions.pod:4556 ../src/guestfs-actions.pod:4589
24280 #: ../src/guestfs-actions.pod:4752 ../src/guestfs-actions.pod:5249
24281 #: ../src/guestfs-actions.pod:5804 ../src/guestfs-actions.pod:6201
24282 #: ../src/guestfs-actions.pod:6215 ../src/guestfs-actions.pod:6227
24283 #: ../src/guestfs-actions.pod:6709 ../src/guestfs-actions.pod:7368
24284 #: ../src/guestfs-actions.pod:7381 ../src/guestfs-actions.pod:7614
24285 #: ../src/guestfs-actions.pod:7879
24286 msgid "(Added in 0.8)"
24287 msgstr ""
24288
24289 #. type: =head2
24290 #: ../src/guestfs-actions.pod:480
24291 msgid "guestfs_aug_match"
24292 msgstr ""
24293
24294 #. type: verbatim
24295 #: ../src/guestfs-actions.pod:482
24296 #, no-wrap
24297 msgid ""
24298 " char **\n"
24299 " guestfs_aug_match (guestfs_h *g,\n"
24300 "                    const char *augpath);\n"
24301 "\n"
24302 msgstr ""
24303
24304 #. type: =head2
24305 #: ../src/guestfs-actions.pod:496
24306 msgid "guestfs_aug_mv"
24307 msgstr ""
24308
24309 #. type: verbatim
24310 #: ../src/guestfs-actions.pod:498
24311 #, no-wrap
24312 msgid ""
24313 " int\n"
24314 " guestfs_aug_mv (guestfs_h *g,\n"
24315 "                 const char *src,\n"
24316 "                 const char *dest);\n"
24317 "\n"
24318 msgstr ""
24319
24320 #. type: =head2
24321 #: ../src/guestfs-actions.pod:510
24322 msgid "guestfs_aug_rm"
24323 msgstr ""
24324
24325 #. type: verbatim
24326 #: ../src/guestfs-actions.pod:512
24327 #, no-wrap
24328 msgid ""
24329 " int\n"
24330 " guestfs_aug_rm (guestfs_h *g,\n"
24331 "                 const char *augpath);\n"
24332 "\n"
24333 msgstr ""
24334
24335 #. type: =head2
24336 #: ../src/guestfs-actions.pod:524
24337 msgid "guestfs_aug_save"
24338 msgstr ""
24339
24340 #. type: verbatim
24341 #: ../src/guestfs-actions.pod:526
24342 #, no-wrap
24343 msgid ""
24344 " int\n"
24345 " guestfs_aug_save (guestfs_h *g);\n"
24346 "\n"
24347 msgstr ""
24348
24349 #. type: textblock
24350 #: ../src/guestfs-actions.pod:531
24351 msgid ""
24352 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
24353 "are saved."
24354 msgstr ""
24355
24356 #. type: =head2
24357 #: ../src/guestfs-actions.pod:538
24358 msgid "guestfs_aug_set"
24359 msgstr ""
24360
24361 #. type: verbatim
24362 #: ../src/guestfs-actions.pod:540
24363 #, no-wrap
24364 msgid ""
24365 " int\n"
24366 " guestfs_aug_set (guestfs_h *g,\n"
24367 "                  const char *augpath,\n"
24368 "                  const char *val);\n"
24369 "\n"
24370 msgstr ""
24371
24372 #. type: textblock
24373 #: ../src/guestfs-actions.pod:547
24374 msgid ""
24375 "In the Augeas API, it is possible to clear a node by setting the value to "
24376 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
24377 "this call.  Instead you must use the C<guestfs_aug_clear> call."
24378 msgstr ""
24379
24380 #. type: =head2
24381 #: ../src/guestfs-actions.pod:556
24382 msgid "guestfs_available"
24383 msgstr ""
24384
24385 #. type: verbatim
24386 #: ../src/guestfs-actions.pod:558
24387 #, no-wrap
24388 msgid ""
24389 " int\n"
24390 " guestfs_available (guestfs_h *g,\n"
24391 "                    char *const *groups);\n"
24392 "\n"
24393 msgstr ""
24394
24395 #. type: textblock
24396 #: ../src/guestfs-actions.pod:566
24397 msgid ""
24398 "The libguestfs groups, and the functions that those groups correspond to, "
24399 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
24400 "runtime by calling C<guestfs_available_all_groups>."
24401 msgstr ""
24402
24403 #. type: textblock
24404 #: ../src/guestfs-actions.pod:590
24405 msgid "You must call C<guestfs_launch> before calling this function."
24406 msgstr ""
24407
24408 #. type: textblock
24409 #: ../src/guestfs-actions.pod:612
24410 msgid ""
24411 "This call was added in version C<1.0.80>.  In previous versions of "
24412 "libguestfs all you could do would be to speculatively execute a command to "
24413 "find out if the daemon implemented it.  See also C<guestfs_version>."
24414 msgstr ""
24415
24416 #. type: textblock
24417 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1348
24418 msgid "(Added in 1.0.80)"
24419 msgstr ""
24420
24421 #. type: =head2
24422 #: ../src/guestfs-actions.pod:623
24423 msgid "guestfs_available_all_groups"
24424 msgstr ""
24425
24426 #. type: verbatim
24427 #: ../src/guestfs-actions.pod:625
24428 #, no-wrap
24429 msgid ""
24430 " char **\n"
24431 " guestfs_available_all_groups (guestfs_h *g);\n"
24432 "\n"
24433 msgstr ""
24434
24435 #. type: textblock
24436 #: ../src/guestfs-actions.pod:628
24437 msgid ""
24438 "This command returns a list of all optional groups that this daemon knows "
24439 "about.  Note this returns both supported and unsupported groups.  To find "
24440 "out which ones the daemon can actually support you have to call "
24441 "C<guestfs_available> on each member of the returned list."
24442 msgstr ""
24443
24444 #. type: textblock
24445 #: ../src/guestfs-actions.pod:634
24446 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24447 msgstr ""
24448
24449 #. type: textblock
24450 #: ../src/guestfs-actions.pod:640
24451 msgid "(Added in 1.3.15)"
24452 msgstr ""
24453
24454 #. type: =head2
24455 #: ../src/guestfs-actions.pod:642
24456 msgid "guestfs_base64_in"
24457 msgstr ""
24458
24459 #. type: verbatim
24460 #: ../src/guestfs-actions.pod:644
24461 #, no-wrap
24462 msgid ""
24463 " int\n"
24464 " guestfs_base64_in (guestfs_h *g,\n"
24465 "                    const char *base64file,\n"
24466 "                    const char *filename);\n"
24467 "\n"
24468 msgstr ""
24469
24470 #. type: textblock
24471 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
24472 msgid "(Added in 1.3.5)"
24473 msgstr ""
24474
24475 #. type: =head2
24476 #: ../src/guestfs-actions.pod:656
24477 msgid "guestfs_base64_out"
24478 msgstr ""
24479
24480 #. type: verbatim
24481 #: ../src/guestfs-actions.pod:658
24482 #, no-wrap
24483 msgid ""
24484 " int\n"
24485 " guestfs_base64_out (guestfs_h *g,\n"
24486 "                     const char *filename,\n"
24487 "                     const char *base64file);\n"
24488 "\n"
24489 msgstr ""
24490
24491 #. type: =head2
24492 #: ../src/guestfs-actions.pod:670
24493 msgid "guestfs_blockdev_flushbufs"
24494 msgstr ""
24495
24496 #. type: verbatim
24497 #: ../src/guestfs-actions.pod:672
24498 #, no-wrap
24499 msgid ""
24500 " int\n"
24501 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24502 "                             const char *device);\n"
24503 "\n"
24504 msgstr ""
24505
24506 #. type: textblock
24507 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
24508 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
24509 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
24510 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24511 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
24512 msgid "(Added in 0.9.3)"
24513 msgstr ""
24514
24515 #. type: =head2
24516 #: ../src/guestfs-actions.pod:685
24517 msgid "guestfs_blockdev_getbsz"
24518 msgstr ""
24519
24520 #. type: verbatim
24521 #: ../src/guestfs-actions.pod:687
24522 #, no-wrap
24523 msgid ""
24524 " int\n"
24525 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24526 "                          const char *device);\n"
24527 "\n"
24528 msgstr ""
24529
24530 #. type: =head2
24531 #: ../src/guestfs-actions.pod:702
24532 msgid "guestfs_blockdev_getro"
24533 msgstr ""
24534
24535 #. type: verbatim
24536 #: ../src/guestfs-actions.pod:704
24537 #, no-wrap
24538 msgid ""
24539 " int\n"
24540 " guestfs_blockdev_getro (guestfs_h *g,\n"
24541 "                         const char *device);\n"
24542 "\n"
24543 msgstr ""
24544
24545 #. type: textblock
24546 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1586
24547 #: ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:2090
24548 #: ../src/guestfs-actions.pod:2101 ../src/guestfs-actions.pod:2173
24549 #: ../src/guestfs-actions.pod:2199 ../src/guestfs-actions.pod:2239
24550 #: ../src/guestfs-actions.pod:2254 ../src/guestfs-actions.pod:2288
24551 #: ../src/guestfs-actions.pod:2311 ../src/guestfs-actions.pod:3373
24552 #: ../src/guestfs-actions.pod:3389 ../src/guestfs-actions.pod:3407
24553 #: ../src/guestfs-actions.pod:3569 ../src/guestfs-actions.pod:3583
24554 #: ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:3612
24555 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3643
24556 #: ../src/guestfs-actions.pod:3659 ../src/guestfs-actions.pod:3673
24557 #: ../src/guestfs-actions.pod:3686 ../src/guestfs-actions.pod:3700
24558 #: ../src/guestfs-actions.pod:3715 ../src/guestfs-actions.pod:3730
24559 #: ../src/guestfs-actions.pod:3743 ../src/guestfs-actions.pod:3757
24560 #: ../src/guestfs-actions.pod:5486
24561 msgid "This function returns a C truth value on success or -1 on error."
24562 msgstr ""
24563
24564 #. type: =head2
24565 #: ../src/guestfs-actions.pod:717
24566 msgid "guestfs_blockdev_getsize64"
24567 msgstr ""
24568
24569 #. type: verbatim
24570 #: ../src/guestfs-actions.pod:719
24571 #, no-wrap
24572 msgid ""
24573 " int64_t\n"
24574 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24575 "                             const char *device);\n"
24576 "\n"
24577 msgstr ""
24578
24579 #. type: textblock
24580 #: ../src/guestfs-actions.pod:725
24581 msgid "See also C<guestfs_blockdev_getsz>."
24582 msgstr ""
24583
24584 #. type: =head2
24585 #: ../src/guestfs-actions.pod:733
24586 msgid "guestfs_blockdev_getss"
24587 msgstr ""
24588
24589 #. type: verbatim
24590 #: ../src/guestfs-actions.pod:735
24591 #, no-wrap
24592 msgid ""
24593 " int\n"
24594 " guestfs_blockdev_getss (guestfs_h *g,\n"
24595 "                         const char *device);\n"
24596 "\n"
24597 msgstr ""
24598
24599 #. type: textblock
24600 #: ../src/guestfs-actions.pod:742
24601 msgid ""
24602 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24603 "that)."
24604 msgstr ""
24605
24606 #. type: =head2
24607 #: ../src/guestfs-actions.pod:751
24608 msgid "guestfs_blockdev_getsz"
24609 msgstr ""
24610
24611 #. type: verbatim
24612 #: ../src/guestfs-actions.pod:753
24613 #, no-wrap
24614 msgid ""
24615 " int64_t\n"
24616 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24617 "                         const char *device);\n"
24618 "\n"
24619 msgstr ""
24620
24621 #. type: textblock
24622 #: ../src/guestfs-actions.pod:760
24623 msgid ""
24624 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24625 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24626 msgstr ""
24627
24628 #. type: =head2
24629 #: ../src/guestfs-actions.pod:770
24630 msgid "guestfs_blockdev_rereadpt"
24631 msgstr ""
24632
24633 #. type: verbatim
24634 #: ../src/guestfs-actions.pod:772
24635 #, no-wrap
24636 msgid ""
24637 " int\n"
24638 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24639 "                            const char *device);\n"
24640 "\n"
24641 msgstr ""
24642
24643 #. type: =head2
24644 #: ../src/guestfs-actions.pod:784
24645 msgid "guestfs_blockdev_setbsz"
24646 msgstr ""
24647
24648 #. type: verbatim
24649 #: ../src/guestfs-actions.pod:786
24650 #, no-wrap
24651 msgid ""
24652 " int\n"
24653 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24654 "                          const char *device,\n"
24655 "                          int blocksize);\n"
24656 "\n"
24657 msgstr ""
24658
24659 #. type: =head2
24660 #: ../src/guestfs-actions.pod:802
24661 msgid "guestfs_blockdev_setro"
24662 msgstr ""
24663
24664 #. type: verbatim
24665 #: ../src/guestfs-actions.pod:804
24666 #, no-wrap
24667 msgid ""
24668 " int\n"
24669 " guestfs_blockdev_setro (guestfs_h *g,\n"
24670 "                         const char *device);\n"
24671 "\n"
24672 msgstr ""
24673
24674 #. type: =head2
24675 #: ../src/guestfs-actions.pod:816
24676 msgid "guestfs_blockdev_setrw"
24677 msgstr ""
24678
24679 #. type: verbatim
24680 #: ../src/guestfs-actions.pod:818
24681 #, no-wrap
24682 msgid ""
24683 " int\n"
24684 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24685 "                         const char *device);\n"
24686 "\n"
24687 msgstr ""
24688
24689 #. type: =head2
24690 #: ../src/guestfs-actions.pod:830
24691 msgid "guestfs_btrfs_filesystem_resize"
24692 msgstr ""
24693
24694 #. type: verbatim
24695 #: ../src/guestfs-actions.pod:832
24696 #, no-wrap
24697 msgid ""
24698 " int\n"
24699 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24700 "                                  const char *mountpoint,\n"
24701 "                                  ...);\n"
24702 "\n"
24703 msgstr ""
24704
24705 #. type: verbatim
24706 #: ../src/guestfs-actions.pod:842
24707 #, no-wrap
24708 msgid ""
24709 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24710 "\n"
24711 msgstr ""
24712
24713 #. type: textblock
24714 #: ../src/guestfs-actions.pod:865
24715 msgid "(Added in 1.11.17)"
24716 msgstr ""
24717
24718 #. type: =head2
24719 #: ../src/guestfs-actions.pod:867
24720 msgid "guestfs_btrfs_filesystem_resize_va"
24721 msgstr ""
24722
24723 #. type: verbatim
24724 #: ../src/guestfs-actions.pod:869
24725 #, no-wrap
24726 msgid ""
24727 " int\n"
24728 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24729 "                                     const char *mountpoint,\n"
24730 "                                     va_list args);\n"
24731 "\n"
24732 msgstr ""
24733
24734 #. type: textblock
24735 #: ../src/guestfs-actions.pod:874
24736 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24737 msgstr ""
24738
24739 #. type: =head2
24740 #: ../src/guestfs-actions.pod:878
24741 msgid "guestfs_btrfs_filesystem_resize_argv"
24742 msgstr ""
24743
24744 #. type: verbatim
24745 #: ../src/guestfs-actions.pod:880
24746 #, no-wrap
24747 msgid ""
24748 " int\n"
24749 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24750 "                                       const char *mountpoint,\n"
24751 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24752 "\n"
24753 msgstr ""
24754
24755 #. type: textblock
24756 #: ../src/guestfs-actions.pod:885
24757 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24758 msgstr ""
24759
24760 #. type: =head2
24761 #: ../src/guestfs-actions.pod:889
24762 msgid "guestfs_case_sensitive_path"
24763 msgstr ""
24764
24765 #. type: verbatim
24766 #: ../src/guestfs-actions.pod:891
24767 #, no-wrap
24768 msgid ""
24769 " char *\n"
24770 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24771 "                              const char *path);\n"
24772 "\n"
24773 msgstr ""
24774
24775 #. type: textblock
24776 #: ../src/guestfs-actions.pod:917
24777 msgid ""
24778 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
24779 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24780 "how the directories were originally created under Windows)."
24781 msgstr ""
24782
24783 #. type: textblock
24784 #: ../src/guestfs-actions.pod:925
24785 msgid "See also C<guestfs_realpath>."
24786 msgstr ""
24787
24788 #. type: textblock
24789 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7548
24790 msgid "(Added in 1.0.75)"
24791 msgstr ""
24792
24793 #. type: =head2
24794 #: ../src/guestfs-actions.pod:932
24795 msgid "guestfs_cat"
24796 msgstr ""
24797
24798 #. type: verbatim
24799 #: ../src/guestfs-actions.pod:934
24800 #, no-wrap
24801 msgid ""
24802 " char *\n"
24803 " guestfs_cat (guestfs_h *g,\n"
24804 "              const char *path);\n"
24805 "\n"
24806 msgstr ""
24807
24808 #. type: textblock
24809 #: ../src/guestfs-actions.pod:940
24810 msgid ""
24811 "Note that this function cannot correctly handle binary files (specifically, "
24812 "files containing C<\\0> character which is treated as end of string).  For "
24813 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24814 "functions which have a more complex interface."
24815 msgstr ""
24816
24817 #. type: textblock
24818 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3887
24819 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:3986
24820 #: ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4482
24821 #: ../src/guestfs-actions.pod:4496 ../src/guestfs-actions.pod:5867
24822 #: ../src/guestfs-actions.pod:5881 ../src/guestfs-actions.pod:7701
24823 #: ../src/guestfs-actions.pod:7715
24824 msgid "(Added in 0.4)"
24825 msgstr ""
24826
24827 #. type: =head2
24828 #: ../src/guestfs-actions.pod:953
24829 msgid "guestfs_checksum"
24830 msgstr ""
24831
24832 #. type: verbatim
24833 #: ../src/guestfs-actions.pod:955
24834 #, no-wrap
24835 msgid ""
24836 " char *\n"
24837 " guestfs_checksum (guestfs_h *g,\n"
24838 "                   const char *csumtype,\n"
24839 "                   const char *path);\n"
24840 "\n"
24841 msgstr ""
24842
24843 #. type: textblock
24844 #: ../src/guestfs-actions.pod:1001
24845 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24846 msgstr ""
24847
24848 #. type: textblock
24849 #: ../src/guestfs-actions.pod:1003
24850 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24851 msgstr ""
24852
24853 #. type: textblock
24854 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1423
24855 #: ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:3585
24856 #: ../src/guestfs-actions.pod:3614 ../src/guestfs-actions.pod:3675
24857 #: ../src/guestfs-actions.pod:3702 ../src/guestfs-actions.pod:7404
24858 msgid "(Added in 1.0.2)"
24859 msgstr ""
24860
24861 #. type: =head2
24862 #: ../src/guestfs-actions.pod:1010
24863 msgid "guestfs_checksum_device"
24864 msgstr ""
24865
24866 #. type: verbatim
24867 #: ../src/guestfs-actions.pod:1012
24868 #, no-wrap
24869 msgid ""
24870 " char *\n"
24871 " guestfs_checksum_device (guestfs_h *g,\n"
24872 "                          const char *csumtype,\n"
24873 "                          const char *device);\n"
24874 "\n"
24875 msgstr ""
24876
24877 #. type: textblock
24878 #: ../src/guestfs-actions.pod:1017
24879 msgid ""
24880 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24881 "device named C<device>.  For the types of checksums supported see the "
24882 "C<guestfs_checksum> command."
24883 msgstr ""
24884
24885 #. type: textblock
24886 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5316
24887 #: ../src/guestfs-actions.pod:5451 ../src/guestfs-actions.pod:5488
24888 #: ../src/guestfs-actions.pod:5506 ../src/guestfs-actions.pod:5688
24889 #: ../src/guestfs-actions.pod:7313 ../src/guestfs-actions.pod:7327
24890 #: ../src/guestfs-actions.pod:7727
24891 msgid "(Added in 1.3.2)"
24892 msgstr ""
24893
24894 #. type: =head2
24895 #: ../src/guestfs-actions.pod:1026
24896 msgid "guestfs_checksums_out"
24897 msgstr ""
24898
24899 #. type: verbatim
24900 #: ../src/guestfs-actions.pod:1028
24901 #, no-wrap
24902 msgid ""
24903 " int\n"
24904 " guestfs_checksums_out (guestfs_h *g,\n"
24905 "                        const char *csumtype,\n"
24906 "                        const char *directory,\n"
24907 "                        const char *sumsfile);\n"
24908 "\n"
24909 msgstr ""
24910
24911 #. type: textblock
24912 #: ../src/guestfs-actions.pod:1048
24913 msgid "(Added in 1.3.7)"
24914 msgstr ""
24915
24916 #. type: =head2
24917 #: ../src/guestfs-actions.pod:1050
24918 msgid "guestfs_chmod"
24919 msgstr ""
24920
24921 #. type: verbatim
24922 #: ../src/guestfs-actions.pod:1052
24923 #, no-wrap
24924 msgid ""
24925 " int\n"
24926 " guestfs_chmod (guestfs_h *g,\n"
24927 "                int mode,\n"
24928 "                const char *path);\n"
24929 "\n"
24930 msgstr ""
24931
24932 #. type: =head2
24933 #: ../src/guestfs-actions.pod:1070
24934 msgid "guestfs_chown"
24935 msgstr ""
24936
24937 #. type: verbatim
24938 #: ../src/guestfs-actions.pod:1072
24939 #, no-wrap
24940 msgid ""
24941 " int\n"
24942 " guestfs_chown (guestfs_h *g,\n"
24943 "                int owner,\n"
24944 "                int group,\n"
24945 "                const char *path);\n"
24946 "\n"
24947 msgstr ""
24948
24949 #. type: =head2
24950 #: ../src/guestfs-actions.pod:1088
24951 msgid "guestfs_command"
24952 msgstr ""
24953
24954 #. type: verbatim
24955 #: ../src/guestfs-actions.pod:1090
24956 #, no-wrap
24957 msgid ""
24958 " char *\n"
24959 " guestfs_command (guestfs_h *g,\n"
24960 "                  char *const *arguments);\n"
24961 "\n"
24962 msgstr ""
24963
24964 #. type: textblock
24965 #: ../src/guestfs-actions.pod:1099
24966 msgid ""
24967 "The single parameter is an argv-style list of arguments.  The first element "
24968 "is the name of the program to run.  Subsequent elements are parameters.  The "
24969 "list must be non-empty (ie. must contain a program name).  Note that the "
24970 "command runs directly, and is I<not> invoked via the shell (see "
24971 "C<guestfs_sh>)."
24972 msgstr ""
24973
24974 #. type: textblock
24975 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24976 #: ../src/guestfs-actions.pod:1722
24977 msgid "(Added in 0.9.1)"
24978 msgstr ""
24979
24980 #. type: =head2
24981 #: ../src/guestfs-actions.pod:1132
24982 msgid "guestfs_command_lines"
24983 msgstr ""
24984
24985 #. type: verbatim
24986 #: ../src/guestfs-actions.pod:1134
24987 #, no-wrap
24988 msgid ""
24989 " char **\n"
24990 " guestfs_command_lines (guestfs_h *g,\n"
24991 "                        char *const *arguments);\n"
24992 "\n"
24993 msgstr ""
24994
24995 #. type: textblock
24996 #: ../src/guestfs-actions.pod:1138
24997 msgid ""
24998 "This is the same as C<guestfs_command>, but splits the result into a list of "
24999 "lines."
25000 msgstr ""
25001
25002 #. type: textblock
25003 #: ../src/guestfs-actions.pod:1141
25004 msgid "See also: C<guestfs_sh_lines>"
25005 msgstr ""
25006
25007 #. type: =head2
25008 #: ../src/guestfs-actions.pod:1152
25009 #, fuzzy
25010 #| msgid "guestfs_zero_device"
25011 msgid "guestfs_compress_device_out"
25012 msgstr "guestfs_zero_device"
25013
25014 #. type: verbatim
25015 #: ../src/guestfs-actions.pod:1154
25016 #, fuzzy, no-wrap
25017 #| msgid ""
25018 #| " int\n"
25019 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
25020 #| "                             const char *device,\n"
25021 #| "                             const char *key,\n"
25022 #| "                             int keyslot,\n"
25023 #| "                             const char *cipher);\n"
25024 #| "\n"
25025 msgid ""
25026 " int\n"
25027 " guestfs_compress_device_out (guestfs_h *g,\n"
25028 "                              const char *ctype,\n"
25029 "                              const char *device,\n"
25030 "                              const char *zdevice,\n"
25031 "                              ...);\n"
25032 "\n"
25033 msgstr ""
25034 " int\n"
25035 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25036 "                             const char *device,\n"
25037 "                             const char *key,\n"
25038 "                             int keyslot,\n"
25039 "                             const char *cipher);\n"
25040 "\n"
25041
25042 #. type: verbatim
25043 #: ../src/guestfs-actions.pod:1166
25044 #, no-wrap
25045 msgid ""
25046 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
25047 "\n"
25048 msgstr ""
25049
25050 #. type: textblock
25051 #: ../src/guestfs-actions.pod:1171
25052 msgid ""
25053 "The C<ctype> and optional C<level> parameters have the same meaning as in "
25054 "C<guestfs_compress_out>."
25055 msgstr ""
25056
25057 #. type: =head2
25058 #: ../src/guestfs-actions.pod:1176
25059 #, fuzzy
25060 #| msgid "guestfs_zero_device"
25061 msgid "guestfs_compress_device_out_va"
25062 msgstr "guestfs_zero_device"
25063
25064 #. type: verbatim
25065 #: ../src/guestfs-actions.pod:1178
25066 #, fuzzy, no-wrap
25067 #| msgid ""
25068 #| " int\n"
25069 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
25070 #| "                             const char *device,\n"
25071 #| "                             const char *key,\n"
25072 #| "                             int keyslot,\n"
25073 #| "                             const char *cipher);\n"
25074 #| "\n"
25075 msgid ""
25076 " int\n"
25077 " guestfs_compress_device_out_va (guestfs_h *g,\n"
25078 "                                 const char *ctype,\n"
25079 "                                 const char *device,\n"
25080 "                                 const char *zdevice,\n"
25081 "                                 va_list args);\n"
25082 "\n"
25083 msgstr ""
25084 " int\n"
25085 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25086 "                             const char *device,\n"
25087 "                             const char *key,\n"
25088 "                             int keyslot,\n"
25089 "                             const char *cipher);\n"
25090 "\n"
25091
25092 #. type: textblock
25093 #: ../src/guestfs-actions.pod:1185
25094 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
25095 msgstr ""
25096
25097 #. type: =head2
25098 #: ../src/guestfs-actions.pod:1189
25099 #, fuzzy
25100 #| msgid "guestfs_mkfs_opts_argv"
25101 msgid "guestfs_compress_device_out_argv"
25102 msgstr "guestfs_mkfs_opts_argv"
25103
25104 #. type: verbatim
25105 #: ../src/guestfs-actions.pod:1191
25106 #, fuzzy, no-wrap
25107 #| msgid ""
25108 #| " int\n"
25109 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25110 #| "                         const char *fstype,\n"
25111 #| "                         const char *device,\n"
25112 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25113 #| "\n"
25114 msgid ""
25115 " int\n"
25116 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
25117 "                                   const char *ctype,\n"
25118 "                                   const char *device,\n"
25119 "                                   const char *zdevice,\n"
25120 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
25121 "\n"
25122 msgstr ""
25123 " int\n"
25124 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25125 "                         const char *fstype,\n"
25126 "                         const char *device,\n"
25127 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25128 "\n"
25129
25130 #. type: textblock
25131 #: ../src/guestfs-actions.pod:1198
25132 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
25133 msgstr ""
25134
25135 #. type: =head2
25136 #: ../src/guestfs-actions.pod:1202
25137 #, fuzzy
25138 #| msgid "guestfs_create"
25139 msgid "guestfs_compress_out"
25140 msgstr "guestfs_create"
25141
25142 #. type: verbatim
25143 #: ../src/guestfs-actions.pod:1204
25144 #, fuzzy, no-wrap
25145 #| msgid ""
25146 #| " int\n"
25147 #| " guestfs_luks_add_key (guestfs_h *g,\n"
25148 #| "                       const char *device,\n"
25149 #| "                       const char *key,\n"
25150 #| "                       const char *newkey,\n"
25151 #| "                       int keyslot);\n"
25152 #| "\n"
25153 msgid ""
25154 " int\n"
25155 " guestfs_compress_out (guestfs_h *g,\n"
25156 "                       const char *ctype,\n"
25157 "                       const char *file,\n"
25158 "                       const char *zfile,\n"
25159 "                       ...);\n"
25160 "\n"
25161 msgstr ""
25162 " int\n"
25163 " guestfs_luks_add_key (guestfs_h *g,\n"
25164 "                       const char *device,\n"
25165 "                       const char *key,\n"
25166 "                       const char *newkey,\n"
25167 "                       int keyslot);\n"
25168 "\n"
25169
25170 #. type: verbatim
25171 #: ../src/guestfs-actions.pod:1216
25172 #, no-wrap
25173 msgid ""
25174 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
25175 "\n"
25176 msgstr ""
25177
25178 #. type: =head2
25179 #: ../src/guestfs-actions.pod:1233
25180 #, fuzzy
25181 #| msgid "guestfs_mkfs_opts_va"
25182 msgid "guestfs_compress_out_va"
25183 msgstr "guestfs_mkfs_opts_va"
25184
25185 #. type: verbatim
25186 #: ../src/guestfs-actions.pod:1235
25187 #, fuzzy, no-wrap
25188 #| msgid ""
25189 #| " int\n"
25190 #| " guestfs_luks_add_key (guestfs_h *g,\n"
25191 #| "                       const char *device,\n"
25192 #| "                       const char *key,\n"
25193 #| "                       const char *newkey,\n"
25194 #| "                       int keyslot);\n"
25195 #| "\n"
25196 msgid ""
25197 " int\n"
25198 " guestfs_compress_out_va (guestfs_h *g,\n"
25199 "                          const char *ctype,\n"
25200 "                          const char *file,\n"
25201 "                          const char *zfile,\n"
25202 "                          va_list args);\n"
25203 "\n"
25204 msgstr ""
25205 " int\n"
25206 " guestfs_luks_add_key (guestfs_h *g,\n"
25207 "                       const char *device,\n"
25208 "                       const char *key,\n"
25209 "                       const char *newkey,\n"
25210 "                       int keyslot);\n"
25211 "\n"
25212
25213 #. type: textblock
25214 #: ../src/guestfs-actions.pod:1242
25215 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
25216 msgstr ""
25217
25218 #. type: =head2
25219 #: ../src/guestfs-actions.pod:1246
25220 #, fuzzy
25221 #| msgid "guestfs_mkfs_opts_argv"
25222 msgid "guestfs_compress_out_argv"
25223 msgstr "guestfs_mkfs_opts_argv"
25224
25225 #. type: verbatim
25226 #: ../src/guestfs-actions.pod:1248
25227 #, fuzzy, no-wrap
25228 #| msgid ""
25229 #| " int\n"
25230 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25231 #| "                         const char *fstype,\n"
25232 #| "                         const char *device,\n"
25233 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25234 #| "\n"
25235 msgid ""
25236 " int\n"
25237 " guestfs_compress_out_argv (guestfs_h *g,\n"
25238 "                            const char *ctype,\n"
25239 "                            const char *file,\n"
25240 "                            const char *zfile,\n"
25241 "                            const struct guestfs_compress_out_argv *optargs);\n"
25242 "\n"
25243 msgstr ""
25244 " int\n"
25245 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25246 "                         const char *fstype,\n"
25247 "                         const char *device,\n"
25248 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25249 "\n"
25250
25251 #. type: textblock
25252 #: ../src/guestfs-actions.pod:1255
25253 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
25254 msgstr ""
25255
25256 #. type: =head2
25257 #: ../src/guestfs-actions.pod:1259
25258 msgid "guestfs_config"
25259 msgstr ""
25260
25261 #. type: verbatim
25262 #: ../src/guestfs-actions.pod:1261
25263 #, no-wrap
25264 msgid ""
25265 " int\n"
25266 " guestfs_config (guestfs_h *g,\n"
25267 "                 const char *qemuparam,\n"
25268 "                 const char *qemuvalue);\n"
25269 "\n"
25270 msgstr ""
25271
25272 #. type: =head2
25273 #: ../src/guestfs-actions.pod:1279
25274 msgid "guestfs_copy_size"
25275 msgstr ""
25276
25277 #. type: verbatim
25278 #: ../src/guestfs-actions.pod:1281
25279 #, no-wrap
25280 msgid ""
25281 " int\n"
25282 " guestfs_copy_size (guestfs_h *g,\n"
25283 "                    const char *src,\n"
25284 "                    const char *dest,\n"
25285 "                    int64_t size);\n"
25286 "\n"
25287 msgstr ""
25288
25289 #. type: textblock
25290 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1418
25291 #: ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1494
25292 #: ../src/guestfs-actions.pod:1871 ../src/guestfs-actions.pod:1893
25293 #: ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:7399
25294 #: ../src/guestfs-actions.pod:7433 ../src/guestfs-actions.pod:7940
25295 #: ../src/guestfs-actions.pod:7963
25296 msgid ""
25297 "This long-running command can generate progress notification messages so "
25298 "that the caller can display a progress bar or indicator.  To receive these "
25299 "messages, the caller must register a progress event callback.  See L<guestfs"
25300 "(3)/GUESTFS_EVENT_PROGRESS>."
25301 msgstr ""
25302
25303 #. type: textblock
25304 #: ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:4509
25305 #: ../src/guestfs-actions.pod:5894 ../src/guestfs-actions.pod:7634
25306 #: ../src/guestfs-actions.pod:7654 ../src/guestfs-actions.pod:7740
25307 msgid "(Added in 1.0.87)"
25308 msgstr ""
25309
25310 #. type: =head2
25311 #: ../src/guestfs-actions.pod:1302
25312 msgid "guestfs_cp"
25313 msgstr ""
25314
25315 #. type: verbatim
25316 #: ../src/guestfs-actions.pod:1304
25317 #, no-wrap
25318 msgid ""
25319 " int\n"
25320 " guestfs_cp (guestfs_h *g,\n"
25321 "             const char *src,\n"
25322 "             const char *dest);\n"
25323 "\n"
25324 msgstr ""
25325
25326 #. type: textblock
25327 #: ../src/guestfs-actions.pod:1314 ../src/guestfs-actions.pod:1328
25328 #: ../src/guestfs-actions.pod:1400 ../src/guestfs-actions.pod:1474
25329 #: ../src/guestfs-actions.pod:1588 ../src/guestfs-actions.pod:5263
25330 #: ../src/guestfs-actions.pod:5738
25331 msgid "(Added in 1.0.18)"
25332 msgstr ""
25333
25334 #. type: =head2
25335 #: ../src/guestfs-actions.pod:1316
25336 msgid "guestfs_cp_a"
25337 msgstr ""
25338
25339 #. type: verbatim
25340 #: ../src/guestfs-actions.pod:1318
25341 #, no-wrap
25342 msgid ""
25343 " int\n"
25344 " guestfs_cp_a (guestfs_h *g,\n"
25345 "               const char *src,\n"
25346 "               const char *dest);\n"
25347 "\n"
25348 msgstr ""
25349
25350 #. type: =head2
25351 #: ../src/guestfs-actions.pod:1330
25352 msgid "guestfs_dd"
25353 msgstr ""
25354
25355 #. type: verbatim
25356 #: ../src/guestfs-actions.pod:1332
25357 #, no-wrap
25358 msgid ""
25359 " int\n"
25360 " guestfs_dd (guestfs_h *g,\n"
25361 "             const char *src,\n"
25362 "             const char *dest);\n"
25363 "\n"
25364 msgstr ""
25365
25366 #. type: textblock
25367 #: ../src/guestfs-actions.pod:1342
25368 msgid ""
25369 "If the destination is a device, it must be as large or larger than the "
25370 "source file or device, otherwise the copy will fail.  This command cannot do "
25371 "partial copies (see C<guestfs_copy_size>)."
25372 msgstr ""
25373
25374 #. type: =head2
25375 #: ../src/guestfs-actions.pod:1350
25376 msgid "guestfs_df"
25377 msgstr ""
25378
25379 #. type: verbatim
25380 #: ../src/guestfs-actions.pod:1352
25381 #, no-wrap
25382 msgid ""
25383 " char *\n"
25384 " guestfs_df (guestfs_h *g);\n"
25385 "\n"
25386 msgstr ""
25387
25388 #. type: textblock
25389 #: ../src/guestfs-actions.pod:1357 ../src/guestfs-actions.pod:1374
25390 msgid ""
25391 "This command is mostly useful for interactive sessions.  It is I<not> "
25392 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
25393 "from programs."
25394 msgstr ""
25395
25396 #. type: textblock
25397 #: ../src/guestfs-actions.pod:1364 ../src/guestfs-actions.pod:1381
25398 #: ../src/guestfs-actions.pod:1499 ../src/guestfs-actions.pod:2504
25399 #: ../src/guestfs-actions.pod:2528 ../src/guestfs-actions.pod:2596
25400 #: ../src/guestfs-actions.pod:4619 ../src/guestfs-actions.pod:5163
25401 #: ../src/guestfs-actions.pod:7137 ../src/guestfs-actions.pod:7161
25402 #: ../src/guestfs-actions.pod:7780 ../src/guestfs-actions.pod:7793
25403 #: ../src/guestfs-actions.pod:7806
25404 msgid "(Added in 1.0.54)"
25405 msgstr ""
25406
25407 #. type: =head2
25408 #: ../src/guestfs-actions.pod:1366
25409 msgid "guestfs_df_h"
25410 msgstr ""
25411
25412 #. type: verbatim
25413 #: ../src/guestfs-actions.pod:1368
25414 #, no-wrap
25415 msgid ""
25416 " char *\n"
25417 " guestfs_df_h (guestfs_h *g);\n"
25418 "\n"
25419 msgstr ""
25420
25421 #. type: =head2
25422 #: ../src/guestfs-actions.pod:1383
25423 msgid "guestfs_dmesg"
25424 msgstr ""
25425
25426 #. type: verbatim
25427 #: ../src/guestfs-actions.pod:1385
25428 #, no-wrap
25429 msgid ""
25430 " char *\n"
25431 " guestfs_dmesg (guestfs_h *g);\n"
25432 "\n"
25433 msgstr ""
25434
25435 #. type: textblock
25436 #: ../src/guestfs-actions.pod:1392
25437 msgid ""
25438 "Another way to get the same information is to enable verbose messages with "
25439 "C<guestfs_set_verbose> or by setting the environment variable "
25440 "C<LIBGUESTFS_DEBUG=1> before running the program."
25441 msgstr ""
25442
25443 #. type: =head2
25444 #: ../src/guestfs-actions.pod:1402
25445 msgid "guestfs_download"
25446 msgstr ""
25447
25448 #. type: verbatim
25449 #: ../src/guestfs-actions.pod:1404
25450 #, no-wrap
25451 msgid ""
25452 " int\n"
25453 " guestfs_download (guestfs_h *g,\n"
25454 "                   const char *remotefilename,\n"
25455 "                   const char *filename);\n"
25456 "\n"
25457 msgstr ""
25458
25459 #. type: textblock
25460 #: ../src/guestfs-actions.pod:1414
25461 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
25462 msgstr ""
25463
25464 #. type: =head2
25465 #: ../src/guestfs-actions.pod:1425
25466 msgid "guestfs_download_offset"
25467 msgstr ""
25468
25469 #. type: verbatim
25470 #: ../src/guestfs-actions.pod:1427
25471 #, no-wrap
25472 msgid ""
25473 " int\n"
25474 " guestfs_download_offset (guestfs_h *g,\n"
25475 "                          const char *remotefilename,\n"
25476 "                          const char *filename,\n"
25477 "                          int64_t offset,\n"
25478 "                          int64_t size);\n"
25479 "\n"
25480 msgstr ""
25481
25482 #. type: textblock
25483 #: ../src/guestfs-actions.pod:1440
25484 msgid ""
25485 "Note that there is no limit on the amount of data that can be downloaded "
25486 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
25487 "full amount unless an error occurs."
25488 msgstr ""
25489
25490 #. type: textblock
25491 #: ../src/guestfs-actions.pod:1445
25492 msgid "See also C<guestfs_download>, C<guestfs_pread>."
25493 msgstr ""
25494
25495 #. type: textblock
25496 #: ../src/guestfs-actions.pod:1454 ../src/guestfs-actions.pod:7438
25497 msgid "(Added in 1.5.17)"
25498 msgstr ""
25499
25500 #. type: =head2
25501 #: ../src/guestfs-actions.pod:1456
25502 msgid "guestfs_drop_caches"
25503 msgstr ""
25504
25505 #. type: verbatim
25506 #: ../src/guestfs-actions.pod:1458
25507 #, no-wrap
25508 msgid ""
25509 " int\n"
25510 " guestfs_drop_caches (guestfs_h *g,\n"
25511 "                      int whattodrop);\n"
25512 "\n"
25513 msgstr ""
25514
25515 #. type: =head2
25516 #: ../src/guestfs-actions.pod:1476
25517 msgid "guestfs_du"
25518 msgstr ""
25519
25520 #. type: verbatim
25521 #: ../src/guestfs-actions.pod:1478
25522 #, no-wrap
25523 msgid ""
25524 " int64_t\n"
25525 " guestfs_du (guestfs_h *g,\n"
25526 "             const char *path);\n"
25527 "\n"
25528 msgstr ""
25529
25530 #. type: =head2
25531 #: ../src/guestfs-actions.pod:1501
25532 msgid "guestfs_e2fsck_f"
25533 msgstr ""
25534
25535 #. type: verbatim
25536 #: ../src/guestfs-actions.pod:1503
25537 #, no-wrap
25538 msgid ""
25539 " int\n"
25540 " guestfs_e2fsck_f (guestfs_h *g,\n"
25541 "                   const char *device);\n"
25542 "\n"
25543 msgstr ""
25544
25545 #. type: textblock
25546 #: ../src/guestfs-actions.pod:1511
25547 msgid ""
25548 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
25549 "Normally you should use C<guestfs_fsck>."
25550 msgstr ""
25551
25552 #. type: textblock
25553 #: ../src/guestfs-actions.pod:1516
25554 msgid "(Added in 1.0.29)"
25555 msgstr ""
25556
25557 #. type: =head2
25558 #: ../src/guestfs-actions.pod:1518
25559 msgid "guestfs_echo_daemon"
25560 msgstr ""
25561
25562 #. type: verbatim
25563 #: ../src/guestfs-actions.pod:1520
25564 #, no-wrap
25565 msgid ""
25566 " char *\n"
25567 " guestfs_echo_daemon (guestfs_h *g,\n"
25568 "                      char *const *words);\n"
25569 "\n"
25570 msgstr ""
25571
25572 #. type: textblock
25573 #: ../src/guestfs-actions.pod:1529
25574 msgid "See also C<guestfs_ping_daemon>."
25575 msgstr ""
25576
25577 #. type: textblock
25578 #: ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:2290
25579 #: ../src/guestfs-actions.pod:6609
25580 msgid "(Added in 1.0.69)"
25581 msgstr ""
25582
25583 #. type: =head2
25584 #: ../src/guestfs-actions.pod:1536
25585 msgid "guestfs_egrep"
25586 msgstr ""
25587
25588 #. type: verbatim
25589 #: ../src/guestfs-actions.pod:1538
25590 #, no-wrap
25591 msgid ""
25592 " char **\n"
25593 " guestfs_egrep (guestfs_h *g,\n"
25594 "                const char *regex,\n"
25595 "                const char *path);\n"
25596 "\n"
25597 msgstr ""
25598
25599 #. type: textblock
25600 #: ../src/guestfs-actions.pod:1553 ../src/guestfs-actions.pod:1572
25601 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1675
25602 #: ../src/guestfs-actions.pod:1694 ../src/guestfs-actions.pod:2420
25603 #: ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2617
25604 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2645
25605 #: ../src/guestfs-actions.pod:2691 ../src/guestfs-actions.pod:2713
25606 #: ../src/guestfs-actions.pod:2726 ../src/guestfs-actions.pod:3999
25607 #: ../src/guestfs-actions.pod:4013 ../src/guestfs-actions.pod:4026
25608 #: ../src/guestfs-actions.pod:4040 ../src/guestfs-actions.pod:5041
25609 #: ../src/guestfs-actions.pod:6072 ../src/guestfs-actions.pod:6121
25610 #: ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7017
25611 #: ../src/guestfs-actions.pod:7030 ../src/guestfs-actions.pod:7043
25612 #: ../src/guestfs-actions.pod:7065 ../src/guestfs-actions.pod:7078
25613 #: ../src/guestfs-actions.pod:7091 ../src/guestfs-actions.pod:7104
25614 #: ../src/guestfs-actions.pod:7898 ../src/guestfs-actions.pod:7917
25615 #: ../src/guestfs-actions.pod:8011 ../src/guestfs-actions.pod:8030
25616 #: ../src/guestfs-actions.pod:8076 ../src/guestfs-actions.pod:8095
25617 msgid "(Added in 1.0.66)"
25618 msgstr ""
25619
25620 #. type: =head2
25621 #: ../src/guestfs-actions.pod:1555
25622 msgid "guestfs_egrepi"
25623 msgstr ""
25624
25625 #. type: verbatim
25626 #: ../src/guestfs-actions.pod:1557
25627 #, no-wrap
25628 msgid ""
25629 " char **\n"
25630 " guestfs_egrepi (guestfs_h *g,\n"
25631 "                 const char *regex,\n"
25632 "                 const char *path);\n"
25633 "\n"
25634 msgstr ""
25635
25636 #. type: =head2
25637 #: ../src/guestfs-actions.pod:1574
25638 msgid "guestfs_equal"
25639 msgstr ""
25640
25641 #. type: verbatim
25642 #: ../src/guestfs-actions.pod:1576
25643 #, no-wrap
25644 msgid ""
25645 " int\n"
25646 " guestfs_equal (guestfs_h *g,\n"
25647 "                const char *file1,\n"
25648 "                const char *file2);\n"
25649 "\n"
25650 msgstr ""
25651
25652 #. type: =head2
25653 #: ../src/guestfs-actions.pod:1590
25654 msgid "guestfs_exists"
25655 msgstr ""
25656
25657 #. type: verbatim
25658 #: ../src/guestfs-actions.pod:1592
25659 #, no-wrap
25660 msgid ""
25661 " int\n"
25662 " guestfs_exists (guestfs_h *g,\n"
25663 "                 const char *path);\n"
25664 "\n"
25665 msgstr ""
25666
25667 #. type: textblock
25668 #: ../src/guestfs-actions.pod:1599
25669 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
25670 msgstr ""
25671
25672 #. type: =head2
25673 #: ../src/guestfs-actions.pod:1605
25674 msgid "guestfs_fallocate"
25675 msgstr ""
25676
25677 #. type: verbatim
25678 #: ../src/guestfs-actions.pod:1607
25679 #, no-wrap
25680 msgid ""
25681 " int\n"
25682 " guestfs_fallocate (guestfs_h *g,\n"
25683 "                    const char *path,\n"
25684 "                    int len);\n"
25685 "\n"
25686 msgstr ""
25687
25688 #. type: textblock
25689 #: ../src/guestfs-actions.pod:1612
25690 msgid ""
25691 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
25692 "call instead."
25693 msgstr ""
25694
25695 #. type: =head2
25696 #: ../src/guestfs-actions.pod:1631
25697 msgid "guestfs_fallocate64"
25698 msgstr ""
25699
25700 #. type: verbatim
25701 #: ../src/guestfs-actions.pod:1633
25702 #, no-wrap
25703 msgid ""
25704 " int\n"
25705 " guestfs_fallocate64 (guestfs_h *g,\n"
25706 "                      const char *path,\n"
25707 "                      int64_t len);\n"
25708 "\n"
25709 msgstr ""
25710
25711 #. type: textblock
25712 #: ../src/guestfs-actions.pod:1642
25713 msgid ""
25714 "Note that this call allocates disk blocks for the file.  To create a sparse "
25715 "file use C<guestfs_truncate_size> instead."
25716 msgstr ""
25717
25718 #. type: textblock
25719 #: ../src/guestfs-actions.pod:1645
25720 msgid ""
25721 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
25722 "oversight it only allowed 30 bit lengths to be specified, effectively "
25723 "limiting the maximum size of files created through that call to 1GB."
25724 msgstr ""
25725
25726 #. type: textblock
25727 #: ../src/guestfs-actions.pod:1656
25728 msgid "(Added in 1.3.17)"
25729 msgstr ""
25730
25731 #. type: =head2
25732 #: ../src/guestfs-actions.pod:1658
25733 msgid "guestfs_fgrep"
25734 msgstr ""
25735
25736 #. type: verbatim
25737 #: ../src/guestfs-actions.pod:1660
25738 #, no-wrap
25739 msgid ""
25740 " char **\n"
25741 " guestfs_fgrep (guestfs_h *g,\n"
25742 "                const char *pattern,\n"
25743 "                const char *path);\n"
25744 "\n"
25745 msgstr ""
25746
25747 #. type: =head2
25748 #: ../src/guestfs-actions.pod:1677
25749 msgid "guestfs_fgrepi"
25750 msgstr ""
25751
25752 #. type: verbatim
25753 #: ../src/guestfs-actions.pod:1679
25754 #, no-wrap
25755 msgid ""
25756 " char **\n"
25757 " guestfs_fgrepi (guestfs_h *g,\n"
25758 "                 const char *pattern,\n"
25759 "                 const char *path);\n"
25760 "\n"
25761 msgstr ""
25762
25763 #. type: =head2
25764 #: ../src/guestfs-actions.pod:1696
25765 msgid "guestfs_file"
25766 msgstr ""
25767
25768 #. type: verbatim
25769 #: ../src/guestfs-actions.pod:1698
25770 #, no-wrap
25771 msgid ""
25772 " char *\n"
25773 " guestfs_file (guestfs_h *g,\n"
25774 "               const char *path);\n"
25775 "\n"
25776 msgstr ""
25777
25778 #. type: textblock
25779 #: ../src/guestfs-actions.pod:1716
25780 msgid ""
25781 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25782 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25783 msgstr ""
25784
25785 #. type: =head2
25786 #: ../src/guestfs-actions.pod:1724
25787 msgid "guestfs_file_architecture"
25788 msgstr ""
25789
25790 #. type: verbatim
25791 #: ../src/guestfs-actions.pod:1726
25792 #, no-wrap
25793 msgid ""
25794 " char *\n"
25795 " guestfs_file_architecture (guestfs_h *g,\n"
25796 "                            const char *filename);\n"
25797 "\n"
25798 msgstr ""
25799
25800 #. type: textblock
25801 #: ../src/guestfs-actions.pod:1834 ../src/guestfs-actions.pod:1997
25802 #: ../src/guestfs-actions.pod:2014 ../src/guestfs-actions.pod:2746
25803 #: ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:2906
25804 #: ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3111
25805 #: ../src/guestfs-actions.pod:3151 ../src/guestfs-actions.pod:3226
25806 #: ../src/guestfs-actions.pod:3319 ../src/guestfs-actions.pod:3556
25807 #: ../src/guestfs-actions.pod:3688
25808 msgid "(Added in 1.5.3)"
25809 msgstr ""
25810
25811 #. type: =head2
25812 #: ../src/guestfs-actions.pod:1836
25813 msgid "guestfs_filesize"
25814 msgstr ""
25815
25816 #. type: verbatim
25817 #: ../src/guestfs-actions.pod:1838
25818 #, no-wrap
25819 msgid ""
25820 " int64_t\n"
25821 " guestfs_filesize (guestfs_h *g,\n"
25822 "                   const char *file);\n"
25823 "\n"
25824 msgstr ""
25825
25826 #. type: textblock
25827 #: ../src/guestfs-actions.pod:1844
25828 msgid ""
25829 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25830 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
25831 "devices, use C<guestfs_blockdev_getsize64>."
25832 msgstr ""
25833
25834 #. type: textblock
25835 #: ../src/guestfs-actions.pod:1850
25836 msgid "(Added in 1.0.82)"
25837 msgstr ""
25838
25839 #. type: =head2
25840 #: ../src/guestfs-actions.pod:1852
25841 msgid "guestfs_fill"
25842 msgstr ""
25843
25844 #. type: verbatim
25845 #: ../src/guestfs-actions.pod:1854
25846 #, no-wrap
25847 msgid ""
25848 " int\n"
25849 " guestfs_fill (guestfs_h *g,\n"
25850 "               int c,\n"
25851 "               int len,\n"
25852 "               const char *path);\n"
25853 "\n"
25854 msgstr ""
25855
25856 #. type: textblock
25857 #: ../src/guestfs-actions.pod:1864
25858 msgid ""
25859 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25860 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
25861 "bytes use C<guestfs_fill_pattern>."
25862 msgstr ""
25863
25864 #. type: textblock
25865 #: ../src/guestfs-actions.pod:1876
25866 msgid "(Added in 1.0.79)"
25867 msgstr ""
25868
25869 #. type: =head2
25870 #: ../src/guestfs-actions.pod:1878
25871 msgid "guestfs_fill_pattern"
25872 msgstr ""
25873
25874 #. type: verbatim
25875 #: ../src/guestfs-actions.pod:1880
25876 #, no-wrap
25877 msgid ""
25878 " int\n"
25879 " guestfs_fill_pattern (guestfs_h *g,\n"
25880 "                       const char *pattern,\n"
25881 "                       int len,\n"
25882 "                       const char *path);\n"
25883 "\n"
25884 msgstr ""
25885
25886 #. type: textblock
25887 #: ../src/guestfs-actions.pod:1886
25888 msgid ""
25889 "This function is like C<guestfs_fill> except that it creates a new file of "
25890 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
25891 "pattern is truncated if necessary to ensure the length of the file is "
25892 "exactly C<len> bytes."
25893 msgstr ""
25894
25895 #. type: textblock
25896 #: ../src/guestfs-actions.pod:1898
25897 msgid "(Added in 1.3.12)"
25898 msgstr ""
25899
25900 #. type: =head2
25901 #: ../src/guestfs-actions.pod:1900
25902 msgid "guestfs_find"
25903 msgstr ""
25904
25905 #. type: verbatim
25906 #: ../src/guestfs-actions.pod:1902
25907 #, no-wrap
25908 msgid ""
25909 " char **\n"
25910 " guestfs_find (guestfs_h *g,\n"
25911 "               const char *directory);\n"
25912 "\n"
25913 msgstr ""
25914
25915 #. type: textblock
25916 #: ../src/guestfs-actions.pod:1918
25917 msgid ""
25918 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25919 msgstr ""
25920
25921 #. type: textblock
25922 #: ../src/guestfs-actions.pod:1931
25923 msgid "See also C<guestfs_find0>."
25924 msgstr ""
25925
25926 #. type: textblock
25927 #: ../src/guestfs-actions.pod:1940 ../src/guestfs-actions.pod:4446
25928 #: ../src/guestfs-actions.pod:6156
25929 msgid "(Added in 1.0.27)"
25930 msgstr ""
25931
25932 #. type: =head2
25933 #: ../src/guestfs-actions.pod:1942
25934 msgid "guestfs_find0"
25935 msgstr ""
25936
25937 #. type: verbatim
25938 #: ../src/guestfs-actions.pod:1944
25939 #, no-wrap
25940 msgid ""
25941 " int\n"
25942 " guestfs_find0 (guestfs_h *g,\n"
25943 "                const char *directory,\n"
25944 "                const char *files);\n"
25945 "\n"
25946 msgstr ""
25947
25948 #. type: textblock
25949 #: ../src/guestfs-actions.pod:1953
25950 msgid ""
25951 "This command works the same way as C<guestfs_find> with the following "
25952 "exceptions:"
25953 msgstr ""
25954
25955 #. type: textblock
25956 #: ../src/guestfs-actions.pod:1980
25957 msgid "(Added in 1.0.74)"
25958 msgstr ""
25959
25960 #. type: =head2
25961 #: ../src/guestfs-actions.pod:1982
25962 msgid "guestfs_findfs_label"
25963 msgstr ""
25964
25965 #. type: verbatim
25966 #: ../src/guestfs-actions.pod:1984
25967 #, no-wrap
25968 msgid ""
25969 " char *\n"
25970 " guestfs_findfs_label (guestfs_h *g,\n"
25971 "                       const char *label);\n"
25972 "\n"
25973 msgstr ""
25974
25975 #. type: textblock
25976 #: ../src/guestfs-actions.pod:1992
25977 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25978 msgstr ""
25979
25980 #. type: =head2
25981 #: ../src/guestfs-actions.pod:1999
25982 msgid "guestfs_findfs_uuid"
25983 msgstr ""
25984
25985 #. type: verbatim
25986 #: ../src/guestfs-actions.pod:2001
25987 #, no-wrap
25988 msgid ""
25989 " char *\n"
25990 " guestfs_findfs_uuid (guestfs_h *g,\n"
25991 "                      const char *uuid);\n"
25992 "\n"
25993 msgstr ""
25994
25995 #. type: textblock
25996 #: ../src/guestfs-actions.pod:2009
25997 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25998 msgstr ""
25999
26000 #. type: =head2
26001 #: ../src/guestfs-actions.pod:2016
26002 msgid "guestfs_fsck"
26003 msgstr ""
26004
26005 #. type: verbatim
26006 #: ../src/guestfs-actions.pod:2018
26007 #, no-wrap
26008 msgid ""
26009 " int\n"
26010 " guestfs_fsck (guestfs_h *g,\n"
26011 "               const char *fstype,\n"
26012 "               const char *device);\n"
26013 "\n"
26014 msgstr ""
26015
26016 #. type: textblock
26017 #: ../src/guestfs-actions.pod:2053 ../src/guestfs-actions.pod:7945
26018 msgid "(Added in 1.0.16)"
26019 msgstr ""
26020
26021 #. type: =head2
26022 #: ../src/guestfs-actions.pod:2055
26023 msgid "guestfs_get_append"
26024 msgstr ""
26025
26026 #. type: verbatim
26027 #: ../src/guestfs-actions.pod:2057
26028 #, no-wrap
26029 msgid ""
26030 " const char *\n"
26031 " guestfs_get_append (guestfs_h *g);\n"
26032 "\n"
26033 msgstr ""
26034
26035 #. type: textblock
26036 #: ../src/guestfs-actions.pod:2065
26037 msgid ""
26038 "This function returns a string which may be NULL.  There is no way to return "
26039 "an error from this function.  The string is owned by the guest handle and "
26040 "must I<not> be freed."
26041 msgstr ""
26042
26043 #. type: textblock
26044 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:5834
26045 #: ../src/guestfs-actions.pod:6316 ../src/guestfs-actions.pod:6772
26046 #: ../src/guestfs-actions.pod:6791 ../src/guestfs-actions.pod:6807
26047 #: ../src/guestfs-actions.pod:6831 ../src/guestfs-actions.pod:7585
26048 #: ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7992
26049 msgid "(Added in 1.0.26)"
26050 msgstr ""
26051
26052 #. type: =head2
26053 #: ../src/guestfs-actions.pod:2071
26054 msgid "guestfs_get_attach_method"
26055 msgstr ""
26056
26057 #. type: verbatim
26058 #: ../src/guestfs-actions.pod:2073
26059 #, no-wrap
26060 msgid ""
26061 " char *\n"
26062 " guestfs_get_attach_method (guestfs_h *g);\n"
26063 "\n"
26064 msgstr ""
26065
26066 #. type: textblock
26067 #: ../src/guestfs-actions.pod:2076
26068 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
26069 msgstr ""
26070
26071 #. type: textblock
26072 #: ../src/guestfs-actions.pod:2081 ../src/guestfs-actions.pod:6346
26073 msgid "(Added in 1.9.8)"
26074 msgstr ""
26075
26076 #. type: =head2
26077 #: ../src/guestfs-actions.pod:2083
26078 msgid "guestfs_get_autosync"
26079 msgstr ""
26080
26081 #. type: verbatim
26082 #: ../src/guestfs-actions.pod:2085
26083 #, no-wrap
26084 msgid ""
26085 " int\n"
26086 " guestfs_get_autosync (guestfs_h *g);\n"
26087 "\n"
26088 msgstr ""
26089
26090 #. type: =head2
26091 #: ../src/guestfs-actions.pod:2094
26092 msgid "guestfs_get_direct"
26093 msgstr ""
26094
26095 #. type: verbatim
26096 #: ../src/guestfs-actions.pod:2096
26097 #, no-wrap
26098 msgid ""
26099 " int\n"
26100 " guestfs_get_direct (guestfs_h *g);\n"
26101 "\n"
26102 msgstr ""
26103
26104 #. type: textblock
26105 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:6387
26106 msgid "(Added in 1.0.72)"
26107 msgstr ""
26108
26109 #. type: =head2
26110 #: ../src/guestfs-actions.pod:2105
26111 msgid "guestfs_get_e2label"
26112 msgstr ""
26113
26114 #. type: verbatim
26115 #: ../src/guestfs-actions.pod:2107
26116 #, no-wrap
26117 msgid ""
26118 " char *\n"
26119 " guestfs_get_e2label (guestfs_h *g,\n"
26120 "                      const char *device);\n"
26121 "\n"
26122 msgstr ""
26123
26124 #. type: textblock
26125 #: ../src/guestfs-actions.pod:2111
26126 msgid ""
26127 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
26128 "call instead."
26129 msgstr ""
26130
26131 #. type: textblock
26132 #: ../src/guestfs-actions.pod:2124 ../src/guestfs-actions.pod:2145
26133 #: ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:6424
26134 msgid "(Added in 1.0.15)"
26135 msgstr ""
26136
26137 #. type: =head2
26138 #: ../src/guestfs-actions.pod:2126
26139 msgid "guestfs_get_e2uuid"
26140 msgstr ""
26141
26142 #. type: verbatim
26143 #: ../src/guestfs-actions.pod:2128
26144 #, no-wrap
26145 msgid ""
26146 " char *\n"
26147 " guestfs_get_e2uuid (guestfs_h *g,\n"
26148 "                     const char *device);\n"
26149 "\n"
26150 msgstr ""
26151
26152 #. type: textblock
26153 #: ../src/guestfs-actions.pod:2132
26154 msgid ""
26155 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
26156 "call instead."
26157 msgstr ""
26158
26159 #. type: =head2
26160 #: ../src/guestfs-actions.pod:2147
26161 msgid "guestfs_get_memsize"
26162 msgstr ""
26163
26164 #. type: verbatim
26165 #: ../src/guestfs-actions.pod:2149
26166 #, no-wrap
26167 msgid ""
26168 " int\n"
26169 " guestfs_get_memsize (guestfs_h *g);\n"
26170 "\n"
26171 msgstr ""
26172
26173 #. type: textblock
26174 #: ../src/guestfs-actions.pod:2155
26175 msgid ""
26176 "If C<guestfs_set_memsize> was not called on this handle, and if "
26177 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26178 "value for memsize."
26179 msgstr ""
26180
26181 #. type: textblock
26182 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:4737
26183 #: ../src/guestfs-actions.pod:4946 ../src/guestfs-actions.pod:4965
26184 #: ../src/guestfs-actions.pod:4984 ../src/guestfs-actions.pod:4996
26185 #: ../src/guestfs-actions.pod:5013 ../src/guestfs-actions.pod:5026
26186 #: ../src/guestfs-actions.pod:6059 ../src/guestfs-actions.pod:6445
26187 #: ../src/guestfs-actions.pod:6739 ../src/guestfs-actions.pod:7354
26188 msgid "(Added in 1.0.55)"
26189 msgstr ""
26190
26191 #. type: =head2
26192 #: ../src/guestfs-actions.pod:2166
26193 msgid "guestfs_get_network"
26194 msgstr ""
26195
26196 #. type: verbatim
26197 #: ../src/guestfs-actions.pod:2168
26198 #, no-wrap
26199 msgid ""
26200 " int\n"
26201 " guestfs_get_network (guestfs_h *g);\n"
26202 "\n"
26203 msgstr ""
26204
26205 #. type: textblock
26206 #: ../src/guestfs-actions.pod:2175 ../src/guestfs-actions.pod:6464
26207 msgid "(Added in 1.5.4)"
26208 msgstr ""
26209
26210 #. type: =head2
26211 #: ../src/guestfs-actions.pod:2177
26212 msgid "guestfs_get_path"
26213 msgstr ""
26214
26215 #. type: verbatim
26216 #: ../src/guestfs-actions.pod:2179
26217 #, no-wrap
26218 msgid ""
26219 " const char *\n"
26220 " guestfs_get_path (guestfs_h *g);\n"
26221 "\n"
26222 msgstr ""
26223
26224 #. type: textblock
26225 #: ../src/guestfs-actions.pod:2187 ../src/guestfs-actions.pod:2227
26226 msgid ""
26227 "This function returns a string, or NULL on error.  The string is owned by "
26228 "the guest handle and must I<not> be freed."
26229 msgstr ""
26230
26231 #. type: =head2
26232 #: ../src/guestfs-actions.pod:2192
26233 msgid "guestfs_get_pgroup"
26234 msgstr ""
26235
26236 #. type: verbatim
26237 #: ../src/guestfs-actions.pod:2194
26238 #, no-wrap
26239 msgid ""
26240 " int\n"
26241 " guestfs_get_pgroup (guestfs_h *g);\n"
26242 "\n"
26243 msgstr ""
26244
26245 #. type: textblock
26246 #: ../src/guestfs-actions.pod:2201 ../src/guestfs-actions.pod:6500
26247 #: ../src/guestfs-actions.pod:7846
26248 #, fuzzy
26249 #| msgid "(Added in 1.5.1)"
26250 msgid "(Added in 1.11.18)"
26251 msgstr "(Додано у 1.5.1)"
26252
26253 #. type: =head2
26254 #: ../src/guestfs-actions.pod:2203
26255 msgid "guestfs_get_pid"
26256 msgstr ""
26257
26258 #. type: verbatim
26259 #: ../src/guestfs-actions.pod:2205
26260 #, no-wrap
26261 msgid ""
26262 " int\n"
26263 " guestfs_get_pid (guestfs_h *g);\n"
26264 "\n"
26265 msgstr ""
26266
26267 #. type: textblock
26268 #: ../src/guestfs-actions.pod:2215
26269 msgid "(Added in 1.0.56)"
26270 msgstr ""
26271
26272 #. type: =head2
26273 #: ../src/guestfs-actions.pod:2217
26274 msgid "guestfs_get_qemu"
26275 msgstr ""
26276
26277 #. type: verbatim
26278 #: ../src/guestfs-actions.pod:2219
26279 #, no-wrap
26280 msgid ""
26281 " const char *\n"
26282 " guestfs_get_qemu (guestfs_h *g);\n"
26283 "\n"
26284 msgstr ""
26285
26286 #. type: textblock
26287 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:6528
26288 msgid "(Added in 1.0.6)"
26289 msgstr ""
26290
26291 #. type: =head2
26292 #: ../src/guestfs-actions.pod:2232
26293 msgid "guestfs_get_recovery_proc"
26294 msgstr ""
26295
26296 #. type: verbatim
26297 #: ../src/guestfs-actions.pod:2234
26298 #, no-wrap
26299 msgid ""
26300 " int\n"
26301 " guestfs_get_recovery_proc (guestfs_h *g);\n"
26302 "\n"
26303 msgstr ""
26304
26305 #. type: textblock
26306 #: ../src/guestfs-actions.pod:2241 ../src/guestfs-actions.pod:3810
26307 #: ../src/guestfs-actions.pod:4141 ../src/guestfs-actions.pod:4544
26308 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:5764
26309 #: ../src/guestfs-actions.pod:6107 ../src/guestfs-actions.pod:6552
26310 #: ../src/guestfs-actions.pod:7257 ../src/guestfs-actions.pod:7277
26311 #: ../src/guestfs-actions.pod:7469
26312 msgid "(Added in 1.0.77)"
26313 msgstr ""
26314
26315 #. type: =head2
26316 #: ../src/guestfs-actions.pod:2243
26317 msgid "guestfs_get_selinux"
26318 msgstr ""
26319
26320 #. type: verbatim
26321 #: ../src/guestfs-actions.pod:2245
26322 #, no-wrap
26323 msgid ""
26324 " int\n"
26325 " guestfs_get_selinux (guestfs_h *g);\n"
26326 "\n"
26327 msgstr ""
26328
26329 #. type: textblock
26330 #: ../src/guestfs-actions.pod:2248
26331 msgid ""
26332 "This returns the current setting of the selinux flag which is passed to the "
26333 "appliance at boot time.  See C<guestfs_set_selinux>."
26334 msgstr ""
26335
26336 #. type: textblock
26337 #: ../src/guestfs-actions.pod:2256 ../src/guestfs-actions.pod:2328
26338 #: ../src/guestfs-actions.pod:6571 ../src/guestfs-actions.pod:6643
26339 msgid "(Added in 1.0.67)"
26340 msgstr ""
26341
26342 #. type: =head2
26343 #: ../src/guestfs-actions.pod:2258
26344 #, fuzzy
26345 #| msgid "guestfs_zgrep"
26346 msgid "guestfs_get_smp"
26347 msgstr "guestfs_zgrep"
26348
26349 #. type: verbatim
26350 #: ../src/guestfs-actions.pod:2260
26351 #, fuzzy, no-wrap
26352 #| msgid ""
26353 #| " int guestfs_last_errno (guestfs_h *g);\n"
26354 #| "\n"
26355 msgid ""
26356 " int\n"
26357 " guestfs_get_smp (guestfs_h *g);\n"
26358 "\n"
26359 msgstr ""
26360 " int guestfs_last_errno (guestfs_h *g);\n"
26361 "\n"
26362
26363 #. type: =head2
26364 #: ../src/guestfs-actions.pod:2267
26365 msgid "guestfs_get_state"
26366 msgstr ""
26367
26368 #. type: verbatim
26369 #: ../src/guestfs-actions.pod:2269
26370 #, no-wrap
26371 msgid ""
26372 " int\n"
26373 " guestfs_get_state (guestfs_h *g);\n"
26374 "\n"
26375 msgstr ""
26376
26377 #. type: =head2
26378 #: ../src/guestfs-actions.pod:2281
26379 msgid "guestfs_get_trace"
26380 msgstr ""
26381
26382 #. type: verbatim
26383 #: ../src/guestfs-actions.pod:2283
26384 #, no-wrap
26385 msgid ""
26386 " int\n"
26387 " guestfs_get_trace (guestfs_h *g);\n"
26388 "\n"
26389 msgstr ""
26390
26391 #. type: =head2
26392 #: ../src/guestfs-actions.pod:2292
26393 msgid "guestfs_get_umask"
26394 msgstr ""
26395
26396 #. type: verbatim
26397 #: ../src/guestfs-actions.pod:2294
26398 #, no-wrap
26399 msgid ""
26400 " int\n"
26401 " guestfs_get_umask (guestfs_h *g);\n"
26402 "\n"
26403 msgstr ""
26404
26405 #. type: textblock
26406 #: ../src/guestfs-actions.pod:2297
26407 msgid ""
26408 "Return the current umask.  By default the umask is C<022> unless it has been "
26409 "set by calling C<guestfs_umask>."
26410 msgstr ""
26411
26412 #. type: =head2
26413 #: ../src/guestfs-actions.pod:2304
26414 msgid "guestfs_get_verbose"
26415 msgstr ""
26416
26417 #. type: verbatim
26418 #: ../src/guestfs-actions.pod:2306
26419 #, no-wrap
26420 msgid ""
26421 " int\n"
26422 " guestfs_get_verbose (guestfs_h *g);\n"
26423 "\n"
26424 msgstr ""
26425
26426 #. type: =head2
26427 #: ../src/guestfs-actions.pod:2315
26428 msgid "guestfs_getcon"
26429 msgstr ""
26430
26431 #. type: verbatim
26432 #: ../src/guestfs-actions.pod:2317
26433 #, no-wrap
26434 msgid ""
26435 " char *\n"
26436 " guestfs_getcon (guestfs_h *g);\n"
26437 "\n"
26438 msgstr ""
26439
26440 #. type: textblock
26441 #: ../src/guestfs-actions.pod:2322
26442 msgid ""
26443 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
26444 msgstr ""
26445
26446 #. type: =head2
26447 #: ../src/guestfs-actions.pod:2330
26448 msgid "guestfs_getxattr"
26449 msgstr ""
26450
26451 #. type: verbatim
26452 #: ../src/guestfs-actions.pod:2332
26453 #, no-wrap
26454 msgid ""
26455 " char *\n"
26456 " guestfs_getxattr (guestfs_h *g,\n"
26457 "                   const char *path,\n"
26458 "                   const char *name,\n"
26459 "                   size_t *size_r);\n"
26460 "\n"
26461 msgstr ""
26462
26463 #. type: textblock
26464 #: ../src/guestfs-actions.pod:2338
26465 msgid ""
26466 "Get a single extended attribute from file C<path> named C<name>.  This call "
26467 "follows symlinks.  If you want to lookup an extended attribute for the "
26468 "symlink itself, use C<guestfs_lgetxattr>."
26469 msgstr ""
26470
26471 #. type: textblock
26472 #: ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:3824
26473 msgid ""
26474 "Normally it is better to get all extended attributes from a file in one go "
26475 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
26476 "implementations are buggy and do not provide a way to list out attributes.  "
26477 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
26478 "extended attributes you want in advance and call this function."
26479 msgstr ""
26480
26481 #. type: textblock
26482 #: ../src/guestfs-actions.pod:2352
26483 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
26484 msgstr ""
26485
26486 #. type: textblock
26487 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:2567
26488 #: ../src/guestfs-actions.pod:3041 ../src/guestfs-actions.pod:3836
26489 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5783
26490 #: ../src/guestfs-actions.pod:5964
26491 msgid ""
26492 "This function returns a buffer, or NULL on error.  The size of the returned "
26493 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
26494 "after use>."
26495 msgstr ""
26496
26497 #. type: textblock
26498 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:3840
26499 msgid "(Added in 1.7.24)"
26500 msgstr ""
26501
26502 #. type: =head2
26503 #: ../src/guestfs-actions.pod:2360
26504 msgid "guestfs_getxattrs"
26505 msgstr ""
26506
26507 #. type: verbatim
26508 #: ../src/guestfs-actions.pod:2362
26509 #, no-wrap
26510 msgid ""
26511 " struct guestfs_xattr_list *\n"
26512 " guestfs_getxattrs (guestfs_h *g,\n"
26513 "                    const char *path);\n"
26514 "\n"
26515 msgstr ""
26516
26517 #. type: textblock
26518 #: ../src/guestfs-actions.pod:2372
26519 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
26520 msgstr ""
26521
26522 #. type: textblock
26523 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:3852
26524 #: ../src/guestfs-actions.pod:4540
26525 msgid ""
26526 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
26527 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
26528 msgstr ""
26529
26530 #. type: textblock
26531 #: ../src/guestfs-actions.pod:2378 ../src/guestfs-actions.pod:3856
26532 #: ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4091
26533 #: ../src/guestfs-actions.pod:6137 ../src/guestfs-actions.pod:6662
26534 #: ../src/guestfs-actions.pod:8057
26535 msgid "(Added in 1.0.59)"
26536 msgstr ""
26537
26538 #. type: =head2
26539 #: ../src/guestfs-actions.pod:2380
26540 msgid "guestfs_glob_expand"
26541 msgstr ""
26542
26543 #. type: verbatim
26544 #: ../src/guestfs-actions.pod:2382
26545 #, no-wrap
26546 msgid ""
26547 " char **\n"
26548 " guestfs_glob_expand (guestfs_h *g,\n"
26549 "                      const char *pattern);\n"
26550 "\n"
26551 msgstr ""
26552
26553 #. type: textblock
26554 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:6855
26555 #: ../src/guestfs-actions.pod:6872
26556 msgid "(Added in 1.0.50)"
26557 msgstr ""
26558
26559 #. type: =head2
26560 #: ../src/guestfs-actions.pod:2403
26561 msgid "guestfs_grep"
26562 msgstr ""
26563
26564 #. type: verbatim
26565 #: ../src/guestfs-actions.pod:2405
26566 #, no-wrap
26567 msgid ""
26568 " char **\n"
26569 " guestfs_grep (guestfs_h *g,\n"
26570 "               const char *regex,\n"
26571 "               const char *path);\n"
26572 "\n"
26573 msgstr ""
26574
26575 #. type: =head2
26576 #: ../src/guestfs-actions.pod:2422
26577 msgid "guestfs_grepi"
26578 msgstr ""
26579
26580 #. type: verbatim
26581 #: ../src/guestfs-actions.pod:2424
26582 #, no-wrap
26583 msgid ""
26584 " char **\n"
26585 " guestfs_grepi (guestfs_h *g,\n"
26586 "                const char *regex,\n"
26587 "                const char *path);\n"
26588 "\n"
26589 msgstr ""
26590
26591 #. type: =head2
26592 #: ../src/guestfs-actions.pod:2441
26593 msgid "guestfs_grub_install"
26594 msgstr ""
26595
26596 #. type: verbatim
26597 #: ../src/guestfs-actions.pod:2443
26598 #, no-wrap
26599 msgid ""
26600 " int\n"
26601 " guestfs_grub_install (guestfs_h *g,\n"
26602 "                       const char *root,\n"
26603 "                       const char *device);\n"
26604 "\n"
26605 msgstr ""
26606
26607 #. type: textblock
26608 #: ../src/guestfs-actions.pod:2486
26609 msgid "(Added in 1.0.17)"
26610 msgstr ""
26611
26612 #. type: =head2
26613 #: ../src/guestfs-actions.pod:2488
26614 msgid "guestfs_head"
26615 msgstr ""
26616
26617 #. type: verbatim
26618 #: ../src/guestfs-actions.pod:2490
26619 #, no-wrap
26620 msgid ""
26621 " char **\n"
26622 " guestfs_head (guestfs_h *g,\n"
26623 "               const char *path);\n"
26624 "\n"
26625 msgstr ""
26626
26627 #. type: =head2
26628 #: ../src/guestfs-actions.pod:2506
26629 msgid "guestfs_head_n"
26630 msgstr ""
26631
26632 #. type: verbatim
26633 #: ../src/guestfs-actions.pod:2508
26634 #, no-wrap
26635 msgid ""
26636 " char **\n"
26637 " guestfs_head_n (guestfs_h *g,\n"
26638 "                 int nrlines,\n"
26639 "                 const char *path);\n"
26640 "\n"
26641 msgstr ""
26642
26643 #. type: =head2
26644 #: ../src/guestfs-actions.pod:2530
26645 msgid "guestfs_hexdump"
26646 msgstr ""
26647
26648 #. type: verbatim
26649 #: ../src/guestfs-actions.pod:2532
26650 #, no-wrap
26651 msgid ""
26652 " char *\n"
26653 " guestfs_hexdump (guestfs_h *g,\n"
26654 "                  const char *path);\n"
26655 "\n"
26656 msgstr ""
26657
26658 #. type: textblock
26659 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:6936
26660 #: ../src/guestfs-actions.pod:6991
26661 msgid "(Added in 1.0.22)"
26662 msgstr ""
26663
26664 #. type: =head2
26665 #: ../src/guestfs-actions.pod:2547
26666 msgid "guestfs_initrd_cat"
26667 msgstr ""
26668
26669 #. type: verbatim
26670 #: ../src/guestfs-actions.pod:2549
26671 #, no-wrap
26672 msgid ""
26673 " char *\n"
26674 " guestfs_initrd_cat (guestfs_h *g,\n"
26675 "                     const char *initrdpath,\n"
26676 "                     const char *filename,\n"
26677 "                     size_t *size_r);\n"
26678 "\n"
26679 msgstr ""
26680
26681 #. type: textblock
26682 #: ../src/guestfs-actions.pod:2565
26683 msgid "See also C<guestfs_initrd_list>."
26684 msgstr ""
26685
26686 #. type: =head2
26687 #: ../src/guestfs-actions.pod:2576
26688 msgid "guestfs_initrd_list"
26689 msgstr ""
26690
26691 #. type: verbatim
26692 #: ../src/guestfs-actions.pod:2578
26693 #, no-wrap
26694 msgid ""
26695 " char **\n"
26696 " guestfs_initrd_list (guestfs_h *g,\n"
26697 "                      const char *path);\n"
26698 "\n"
26699 msgstr ""
26700
26701 #. type: =head2
26702 #: ../src/guestfs-actions.pod:2598
26703 msgid "guestfs_inotify_add_watch"
26704 msgstr ""
26705
26706 #. type: verbatim
26707 #: ../src/guestfs-actions.pod:2600
26708 #, no-wrap
26709 msgid ""
26710 " int64_t\n"
26711 " guestfs_inotify_add_watch (guestfs_h *g,\n"
26712 "                            const char *path,\n"
26713 "                            int mask);\n"
26714 "\n"
26715 msgstr ""
26716
26717 #. type: =head2
26718 #: ../src/guestfs-actions.pod:2619
26719 msgid "guestfs_inotify_close"
26720 msgstr ""
26721
26722 #. type: verbatim
26723 #: ../src/guestfs-actions.pod:2621
26724 #, no-wrap
26725 msgid ""
26726 " int\n"
26727 " guestfs_inotify_close (guestfs_h *g);\n"
26728 "\n"
26729 msgstr ""
26730
26731 #. type: =head2
26732 #: ../src/guestfs-actions.pod:2632
26733 msgid "guestfs_inotify_files"
26734 msgstr ""
26735
26736 #. type: verbatim
26737 #: ../src/guestfs-actions.pod:2634
26738 #, no-wrap
26739 msgid ""
26740 " char **\n"
26741 " guestfs_inotify_files (guestfs_h *g);\n"
26742 "\n"
26743 msgstr ""
26744
26745 #. type: textblock
26746 #: ../src/guestfs-actions.pod:2637
26747 msgid ""
26748 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26749 "returns a list of pathnames of objects that were touched.  The returned "
26750 "pathnames are sorted and deduplicated."
26751 msgstr ""
26752
26753 #. type: =head2
26754 #: ../src/guestfs-actions.pod:2647
26755 msgid "guestfs_inotify_init"
26756 msgstr ""
26757
26758 #. type: verbatim
26759 #: ../src/guestfs-actions.pod:2649
26760 #, no-wrap
26761 msgid ""
26762 " int\n"
26763 " guestfs_inotify_init (guestfs_h *g,\n"
26764 "                       int maxevents);\n"
26765 "\n"
26766 msgstr ""
26767
26768 #. type: textblock
26769 #: ../src/guestfs-actions.pod:2657
26770 msgid ""
26771 "C<maxevents> is the maximum number of events which will be queued up between "
26772 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
26773 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
26774 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
26775 "throws away events, but records the fact that it threw them away by setting "
26776 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
26777 "C<guestfs_inotify_read>)."
26778 msgstr ""
26779
26780 #. type: textblock
26781 #: ../src/guestfs-actions.pod:2667
26782 msgid ""
26783 "Before any events are generated, you have to add some watches to the "
26784 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
26785 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26786 msgstr ""
26787
26788 #. type: textblock
26789 #: ../src/guestfs-actions.pod:2673
26790 msgid ""
26791 "Queued up events should be read periodically by calling "
26792 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26793 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
26794 "often enough then you risk the internal queue overflowing."
26795 msgstr ""
26796
26797 #. type: textblock
26798 #: ../src/guestfs-actions.pod:2680
26799 msgid ""
26800 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
26801 "This also removes any watches automatically."
26802 msgstr ""
26803
26804 #. type: =head2
26805 #: ../src/guestfs-actions.pod:2693
26806 msgid "guestfs_inotify_read"
26807 msgstr ""
26808
26809 #. type: verbatim
26810 #: ../src/guestfs-actions.pod:2695
26811 #, no-wrap
26812 msgid ""
26813 " struct guestfs_inotify_event_list *\n"
26814 " guestfs_inotify_read (guestfs_h *g);\n"
26815 "\n"
26816 msgstr ""
26817
26818 #. type: textblock
26819 #: ../src/guestfs-actions.pod:2709
26820 msgid ""
26821 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26822 "there was an error.  I<The caller must call "
26823 "C<guestfs_free_inotify_event_list> after use>."
26824 msgstr ""
26825
26826 #. type: =head2
26827 #: ../src/guestfs-actions.pod:2715
26828 msgid "guestfs_inotify_rm_watch"
26829 msgstr ""
26830
26831 #. type: verbatim
26832 #: ../src/guestfs-actions.pod:2717
26833 #, no-wrap
26834 msgid ""
26835 " int\n"
26836 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26837 "                           int wd);\n"
26838 "\n"
26839 msgstr ""
26840
26841 #. type: textblock
26842 #: ../src/guestfs-actions.pod:2721
26843 msgid ""
26844 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
26845 msgstr ""
26846
26847 #. type: =head2
26848 #: ../src/guestfs-actions.pod:2728
26849 msgid "guestfs_inspect_get_arch"
26850 msgstr ""
26851
26852 #. type: verbatim
26853 #: ../src/guestfs-actions.pod:2730
26854 #, no-wrap
26855 msgid ""
26856 " char *\n"
26857 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26858 "                           const char *root);\n"
26859 "\n"
26860 msgstr ""
26861
26862 #. type: textblock
26863 #: ../src/guestfs-actions.pod:2734
26864 msgid ""
26865 "This returns the architecture of the inspected operating system.  The "
26866 "possible return values are listed under C<guestfs_file_architecture>."
26867 msgstr ""
26868
26869 #. type: =head2
26870 #: ../src/guestfs-actions.pod:2748
26871 msgid "guestfs_inspect_get_distro"
26872 msgstr ""
26873
26874 #. type: verbatim
26875 #: ../src/guestfs-actions.pod:2750
26876 #, no-wrap
26877 msgid ""
26878 " char *\n"
26879 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26880 "                             const char *root);\n"
26881 "\n"
26882 msgstr ""
26883
26884 #. type: =head2
26885 #: ../src/guestfs-actions.pod:2842
26886 msgid "guestfs_inspect_get_drive_mappings"
26887 msgstr ""
26888
26889 #. type: verbatim
26890 #: ../src/guestfs-actions.pod:2844
26891 #, no-wrap
26892 msgid ""
26893 " char **\n"
26894 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26895 "                                     const char *root);\n"
26896 "\n"
26897 msgstr ""
26898
26899 #. type: textblock
26900 #: ../src/guestfs-actions.pod:2873
26901 msgid ""
26902 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26903 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26904 msgstr ""
26905
26906 #. type: textblock
26907 #: ../src/guestfs-actions.pod:2877 ../src/guestfs-actions.pod:3145
26908 #: ../src/guestfs-actions.pod:3943 ../src/guestfs-actions.pod:5225
26909 #: ../src/guestfs-actions.pod:7293
26910 msgid ""
26911 "This function returns a NULL-terminated array of strings, or NULL if there "
26912 "was an error.  The array of strings will always have length C<2n+1>, where "
26913 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26914 "caller must free the strings and the array after use>."
26915 msgstr ""
26916
26917 #. type: textblock
26918 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3339
26919 msgid "(Added in 1.9.17)"
26920 msgstr ""
26921
26922 #. type: =head2
26923 #: ../src/guestfs-actions.pod:2885
26924 msgid "guestfs_inspect_get_filesystems"
26925 msgstr ""
26926
26927 #. type: verbatim
26928 #: ../src/guestfs-actions.pod:2887
26929 #, no-wrap
26930 msgid ""
26931 " char **\n"
26932 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26933 "                                  const char *root);\n"
26934 "\n"
26935 msgstr ""
26936
26937 #. type: textblock
26938 #: ../src/guestfs-actions.pod:2899
26939 msgid ""
26940 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26941 "C<guestfs_inspect_get_mountpoints>."
26942 msgstr ""
26943
26944 #. type: =head2
26945 #: ../src/guestfs-actions.pod:2908
26946 msgid "guestfs_inspect_get_format"
26947 msgstr ""
26948
26949 #. type: verbatim
26950 #: ../src/guestfs-actions.pod:2910
26951 #, no-wrap
26952 msgid ""
26953 " char *\n"
26954 " guestfs_inspect_get_format (guestfs_h *g,\n"
26955 "                             const char *root);\n"
26956 "\n"
26957 msgstr ""
26958
26959 #. type: textblock
26960 #: ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:3375
26961 #: ../src/guestfs-actions.pod:3391 ../src/guestfs-actions.pod:3409
26962 #: ../src/guestfs-actions.pod:6175
26963 msgid "(Added in 1.9.4)"
26964 msgstr ""
26965
26966 #. type: =head2
26967 #: ../src/guestfs-actions.pod:2946
26968 msgid "guestfs_inspect_get_hostname"
26969 msgstr ""
26970
26971 #. type: verbatim
26972 #: ../src/guestfs-actions.pod:2948
26973 #, no-wrap
26974 msgid ""
26975 " char *\n"
26976 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26977 "                               const char *root);\n"
26978 "\n"
26979 msgstr ""
26980
26981 #. type: textblock
26982 #: ../src/guestfs-actions.pod:2963
26983 msgid "(Added in 1.7.9)"
26984 msgstr ""
26985
26986 #. type: =head2
26987 #: ../src/guestfs-actions.pod:2965
26988 msgid "guestfs_inspect_get_icon"
26989 msgstr ""
26990
26991 #. type: verbatim
26992 #: ../src/guestfs-actions.pod:2967
26993 #, no-wrap
26994 msgid ""
26995 " char *\n"
26996 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26997 "                           const char *root,\n"
26998 "                           size_t *size_r,\n"
26999 "                           ...);\n"
27000 "\n"
27001 msgstr ""
27002
27003 #. type: verbatim
27004 #: ../src/guestfs-actions.pod:2978
27005 #, no-wrap
27006 msgid ""
27007 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
27008 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
27009 "\n"
27010 msgstr ""
27011
27012 #. type: textblock
27013 #: ../src/guestfs-actions.pod:3045 ../src/guestfs-actions.pod:3870
27014 #: ../src/guestfs-actions.pod:5124
27015 msgid "(Added in 1.11.12)"
27016 msgstr ""
27017
27018 #. type: =head2
27019 #: ../src/guestfs-actions.pod:3047
27020 msgid "guestfs_inspect_get_icon_va"
27021 msgstr ""
27022
27023 #. type: verbatim
27024 #: ../src/guestfs-actions.pod:3049
27025 #, no-wrap
27026 msgid ""
27027 " char *\n"
27028 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
27029 "                              const char *root,\n"
27030 "                              size_t *size_r,\n"
27031 "                              va_list args);\n"
27032 "\n"
27033 msgstr ""
27034
27035 #. type: textblock
27036 #: ../src/guestfs-actions.pod:3055
27037 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
27038 msgstr ""
27039
27040 #. type: =head2
27041 #: ../src/guestfs-actions.pod:3059
27042 msgid "guestfs_inspect_get_icon_argv"
27043 msgstr ""
27044
27045 #. type: verbatim
27046 #: ../src/guestfs-actions.pod:3061
27047 #, no-wrap
27048 msgid ""
27049 " char *\n"
27050 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
27051 "                                const char *root,\n"
27052 "                                size_t *size_r,\n"
27053 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
27054 "\n"
27055 msgstr ""
27056
27057 #. type: textblock
27058 #: ../src/guestfs-actions.pod:3067
27059 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
27060 msgstr ""
27061
27062 #. type: =head2
27063 #: ../src/guestfs-actions.pod:3071
27064 msgid "guestfs_inspect_get_major_version"
27065 msgstr ""
27066
27067 #. type: verbatim
27068 #: ../src/guestfs-actions.pod:3073
27069 #, no-wrap
27070 msgid ""
27071 " int\n"
27072 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
27073 "                                    const char *root);\n"
27074 "\n"
27075 msgstr ""
27076
27077 #. type: =head2
27078 #: ../src/guestfs-actions.pod:3095
27079 msgid "guestfs_inspect_get_minor_version"
27080 msgstr ""
27081
27082 #. type: verbatim
27083 #: ../src/guestfs-actions.pod:3097
27084 #, no-wrap
27085 msgid ""
27086 " int\n"
27087 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
27088 "                                    const char *root);\n"
27089 "\n"
27090 msgstr ""
27091
27092 #. type: textblock
27093 #: ../src/guestfs-actions.pod:3106
27094 msgid ""
27095 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27096 "C<guestfs_inspect_get_major_version>."
27097 msgstr ""
27098
27099 #. type: =head2
27100 #: ../src/guestfs-actions.pod:3113
27101 msgid "guestfs_inspect_get_mountpoints"
27102 msgstr ""
27103
27104 #. type: verbatim
27105 #: ../src/guestfs-actions.pod:3115
27106 #, no-wrap
27107 msgid ""
27108 " char **\n"
27109 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
27110 "                                  const char *root);\n"
27111 "\n"
27112 msgstr ""
27113
27114 #. type: textblock
27115 #: ../src/guestfs-actions.pod:3136
27116 msgid ""
27117 "For operating systems like Windows which still use drive letters, this call "
27118 "will only return an entry for the first drive \"mounted on\" C</>.  For "
27119 "information about the mapping of drive letters to partitions, see "
27120 "C<guestfs_inspect_get_drive_mappings>."
27121 msgstr ""
27122
27123 #. type: textblock
27124 #: ../src/guestfs-actions.pod:3142
27125 msgid ""
27126 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27127 "C<guestfs_inspect_get_filesystems>."
27128 msgstr ""
27129
27130 #. type: =head2
27131 #: ../src/guestfs-actions.pod:3153
27132 msgid "guestfs_inspect_get_package_format"
27133 msgstr ""
27134
27135 #. type: verbatim
27136 #: ../src/guestfs-actions.pod:3155
27137 #, no-wrap
27138 msgid ""
27139 " char *\n"
27140 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
27141 "                                     const char *root);\n"
27142 "\n"
27143 msgstr ""
27144
27145 #. type: textblock
27146 #: ../src/guestfs-actions.pod:3159
27147 msgid ""
27148 "This function and C<guestfs_inspect_get_package_management> return the "
27149 "package format and package management tool used by the inspected operating "
27150 "system.  For example for Fedora these functions would return C<rpm> (package "
27151 "format) and C<yum> (package management)."
27152 msgstr ""
27153
27154 #. type: textblock
27155 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3205
27156 msgid "(Added in 1.7.5)"
27157 msgstr ""
27158
27159 #. type: =head2
27160 #: ../src/guestfs-actions.pod:3179
27161 msgid "guestfs_inspect_get_package_management"
27162 msgstr ""
27163
27164 #. type: verbatim
27165 #: ../src/guestfs-actions.pod:3181
27166 #, no-wrap
27167 msgid ""
27168 " char *\n"
27169 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
27170 "                                         const char *root);\n"
27171 "\n"
27172 msgstr ""
27173
27174 #. type: textblock
27175 #: ../src/guestfs-actions.pod:3185
27176 msgid ""
27177 "C<guestfs_inspect_get_package_format> and this function return the package "
27178 "format and package management tool used by the inspected operating system.  "
27179 "For example for Fedora these functions would return C<rpm> (package format) "
27180 "and C<yum> (package management)."
27181 msgstr ""
27182
27183 #. type: =head2
27184 #: ../src/guestfs-actions.pod:3207
27185 msgid "guestfs_inspect_get_product_name"
27186 msgstr ""
27187
27188 #. type: verbatim
27189 #: ../src/guestfs-actions.pod:3209
27190 #, no-wrap
27191 msgid ""
27192 " char *\n"
27193 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
27194 "                                   const char *root);\n"
27195 "\n"
27196 msgstr ""
27197
27198 #. type: =head2
27199 #: ../src/guestfs-actions.pod:3228
27200 msgid "guestfs_inspect_get_product_variant"
27201 msgstr ""
27202
27203 #. type: verbatim
27204 #: ../src/guestfs-actions.pod:3230
27205 #, no-wrap
27206 msgid ""
27207 " char *\n"
27208 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
27209 "                                      const char *root);\n"
27210 "\n"
27211 msgstr ""
27212
27213 #. type: textblock
27214 #: ../src/guestfs-actions.pod:3253
27215 msgid ""
27216 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27217 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
27218 msgstr ""
27219
27220 #. type: textblock
27221 #: ../src/guestfs-actions.pod:3260
27222 msgid "(Added in 1.9.13)"
27223 msgstr ""
27224
27225 #. type: =head2
27226 #: ../src/guestfs-actions.pod:3262
27227 msgid "guestfs_inspect_get_roots"
27228 msgstr ""
27229
27230 #. type: verbatim
27231 #: ../src/guestfs-actions.pod:3264
27232 #, no-wrap
27233 msgid ""
27234 " char **\n"
27235 " guestfs_inspect_get_roots (guestfs_h *g);\n"
27236 "\n"
27237 msgstr ""
27238
27239 #. type: textblock
27240 #: ../src/guestfs-actions.pod:3267
27241 msgid ""
27242 "This function is a convenient way to get the list of root devices, as "
27243 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
27244 "the whole inspection process."
27245 msgstr ""
27246
27247 #. type: textblock
27248 #: ../src/guestfs-actions.pod:3271
27249 msgid ""
27250 "This returns an empty list if either no root devices were found or the "
27251 "caller has not called C<guestfs_inspect_os>."
27252 msgstr ""
27253
27254 #. type: textblock
27255 #: ../src/guestfs-actions.pod:3280
27256 msgid "(Added in 1.7.3)"
27257 msgstr ""
27258
27259 #. type: =head2
27260 #: ../src/guestfs-actions.pod:3282
27261 msgid "guestfs_inspect_get_type"
27262 msgstr ""
27263
27264 #. type: verbatim
27265 #: ../src/guestfs-actions.pod:3284
27266 #, no-wrap
27267 msgid ""
27268 " char *\n"
27269 " guestfs_inspect_get_type (guestfs_h *g,\n"
27270 "                           const char *root);\n"
27271 "\n"
27272 msgstr ""
27273
27274 #. type: =head2
27275 #: ../src/guestfs-actions.pod:3321
27276 msgid "guestfs_inspect_get_windows_current_control_set"
27277 msgstr ""
27278
27279 #. type: verbatim
27280 #: ../src/guestfs-actions.pod:3323
27281 #, no-wrap
27282 msgid ""
27283 " char *\n"
27284 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
27285 "                                                  const char *root);\n"
27286 "\n"
27287 msgstr ""
27288
27289 #. type: =head2
27290 #: ../src/guestfs-actions.pod:3341
27291 msgid "guestfs_inspect_get_windows_systemroot"
27292 msgstr ""
27293
27294 #. type: verbatim
27295 #: ../src/guestfs-actions.pod:3343
27296 #, no-wrap
27297 msgid ""
27298 " char *\n"
27299 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
27300 "                                         const char *root);\n"
27301 "\n"
27302 msgstr ""
27303
27304 #. type: textblock
27305 #: ../src/guestfs-actions.pod:3359
27306 msgid "(Added in 1.5.25)"
27307 msgstr ""
27308
27309 #. type: =head2
27310 #: ../src/guestfs-actions.pod:3361
27311 msgid "guestfs_inspect_is_live"
27312 msgstr ""
27313
27314 #. type: verbatim
27315 #: ../src/guestfs-actions.pod:3363
27316 #, no-wrap
27317 msgid ""
27318 " int\n"
27319 " guestfs_inspect_is_live (guestfs_h *g,\n"
27320 "                          const char *root);\n"
27321 "\n"
27322 msgstr ""
27323
27324 #. type: textblock
27325 #: ../src/guestfs-actions.pod:3367
27326 msgid ""
27327 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27328 "disk), then this returns true if a live image was detected on the disk."
27329 msgstr ""
27330
27331 #. type: =head2
27332 #: ../src/guestfs-actions.pod:3377
27333 msgid "guestfs_inspect_is_multipart"
27334 msgstr ""
27335
27336 #. type: verbatim
27337 #: ../src/guestfs-actions.pod:3379
27338 #, no-wrap
27339 msgid ""
27340 " int\n"
27341 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
27342 "                               const char *root);\n"
27343 "\n"
27344 msgstr ""
27345
27346 #. type: textblock
27347 #: ../src/guestfs-actions.pod:3383
27348 msgid ""
27349 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27350 "disk), then this returns true if the disk is part of a set."
27351 msgstr ""
27352
27353 #. type: =head2
27354 #: ../src/guestfs-actions.pod:3393
27355 msgid "guestfs_inspect_is_netinst"
27356 msgstr ""
27357
27358 #. type: verbatim
27359 #: ../src/guestfs-actions.pod:3395
27360 #, no-wrap
27361 msgid ""
27362 " int\n"
27363 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
27364 "                             const char *root);\n"
27365 "\n"
27366 msgstr ""
27367
27368 #. type: textblock
27369 #: ../src/guestfs-actions.pod:3399
27370 msgid ""
27371 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27372 "disk), then this returns true if the disk is a network installer, ie. not a "
27373 "self-contained install CD but one which is likely to require network access "
27374 "to complete the install."
27375 msgstr ""
27376
27377 #. type: =head2
27378 #: ../src/guestfs-actions.pod:3411
27379 msgid "guestfs_inspect_list_applications"
27380 msgstr ""
27381
27382 #. type: verbatim
27383 #: ../src/guestfs-actions.pod:3413
27384 #, no-wrap
27385 msgid ""
27386 " struct guestfs_application_list *\n"
27387 " guestfs_inspect_list_applications (guestfs_h *g,\n"
27388 "                                    const char *root);\n"
27389 "\n"
27390 msgstr ""
27391
27392 #. type: textblock
27393 #: ../src/guestfs-actions.pod:3419
27394 msgid ""
27395 "I<Note:> This call works differently from other parts of the inspection "
27396 "API.  You have to call C<guestfs_inspect_os>, then "
27397 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
27398 "this.  Listing applications is a significantly more difficult operation "
27399 "which requires access to the full filesystem.  Also note that unlike the "
27400 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
27401 "the libguestfs handle, this call actually reads parts of the mounted "
27402 "filesystems during the call."
27403 msgstr ""
27404
27405 #. type: textblock
27406 #: ../src/guestfs-actions.pod:3509
27407 msgid ""
27408 "This function returns a C<struct guestfs_application_list *>, or NULL if "
27409 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
27410 "after use>."
27411 msgstr ""
27412
27413 #. type: textblock
27414 #: ../src/guestfs-actions.pod:3513
27415 msgid "(Added in 1.7.8)"
27416 msgstr ""
27417
27418 #. type: =head2
27419 #: ../src/guestfs-actions.pod:3515
27420 msgid "guestfs_inspect_os"
27421 msgstr ""
27422
27423 #. type: verbatim
27424 #: ../src/guestfs-actions.pod:3517
27425 #, no-wrap
27426 msgid ""
27427 " char **\n"
27428 " guestfs_inspect_os (guestfs_h *g);\n"
27429 "\n"
27430 msgstr ""
27431
27432 #. type: textblock
27433 #: ../src/guestfs-actions.pod:3533
27434 msgid ""
27435 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
27436 "functions in order to query further information about each operating system, "
27437 "such as the name and version."
27438 msgstr ""
27439
27440 #. type: textblock
27441 #: ../src/guestfs-actions.pod:3538
27442 msgid ""
27443 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
27444 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
27445 "the contents.  This should be called with no disks currently mounted.  The "
27446 "function may also use Augeas, so any existing Augeas handle will be closed."
27447 msgstr ""
27448
27449 #. type: textblock
27450 #: ../src/guestfs-actions.pod:3550 ../src/guestfs-actions.pod:3881
27451 #: ../src/guestfs-actions.pod:3963
27452 msgid "See also C<guestfs_list_filesystems>."
27453 msgstr ""
27454
27455 #. type: =head2
27456 #: ../src/guestfs-actions.pod:3558
27457 msgid "guestfs_is_blockdev"
27458 msgstr ""
27459
27460 #. type: verbatim
27461 #: ../src/guestfs-actions.pod:3560
27462 #, no-wrap
27463 msgid ""
27464 " int\n"
27465 " guestfs_is_blockdev (guestfs_h *g,\n"
27466 "                      const char *path);\n"
27467 "\n"
27468 msgstr ""
27469
27470 #. type: textblock
27471 #: ../src/guestfs-actions.pod:3567 ../src/guestfs-actions.pod:3596
27472 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
27473 #: ../src/guestfs-actions.pod:3657 ../src/guestfs-actions.pod:3713
27474 #: ../src/guestfs-actions.pod:3728
27475 msgid "See also C<guestfs_stat>."
27476 msgstr ""
27477
27478 #. type: textblock
27479 #: ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3600
27480 #: ../src/guestfs-actions.pod:3645 ../src/guestfs-actions.pod:3717
27481 #: ../src/guestfs-actions.pod:3732
27482 msgid "(Added in 1.5.10)"
27483 msgstr ""
27484
27485 #. type: =head2
27486 #: ../src/guestfs-actions.pod:3573
27487 msgid "guestfs_is_busy"
27488 msgstr ""
27489
27490 #. type: verbatim
27491 #: ../src/guestfs-actions.pod:3575
27492 #, no-wrap
27493 msgid ""
27494 " int\n"
27495 " guestfs_is_busy (guestfs_h *g);\n"
27496 "\n"
27497 msgstr ""
27498
27499 #. type: =head2
27500 #: ../src/guestfs-actions.pod:3587
27501 msgid "guestfs_is_chardev"
27502 msgstr ""
27503
27504 #. type: verbatim
27505 #: ../src/guestfs-actions.pod:3589
27506 #, no-wrap
27507 msgid ""
27508 " int\n"
27509 " guestfs_is_chardev (guestfs_h *g,\n"
27510 "                     const char *path);\n"
27511 "\n"
27512 msgstr ""
27513
27514 #. type: =head2
27515 #: ../src/guestfs-actions.pod:3602
27516 msgid "guestfs_is_config"
27517 msgstr ""
27518
27519 #. type: verbatim
27520 #: ../src/guestfs-actions.pod:3604
27521 #, no-wrap
27522 msgid ""
27523 " int\n"
27524 " guestfs_is_config (guestfs_h *g);\n"
27525 "\n"
27526 msgstr ""
27527
27528 #. type: =head2
27529 #: ../src/guestfs-actions.pod:3616
27530 msgid "guestfs_is_dir"
27531 msgstr ""
27532
27533 #. type: verbatim
27534 #: ../src/guestfs-actions.pod:3618
27535 #, no-wrap
27536 msgid ""
27537 " int\n"
27538 " guestfs_is_dir (guestfs_h *g,\n"
27539 "                 const char *path);\n"
27540 "\n"
27541 msgstr ""
27542
27543 #. type: =head2
27544 #: ../src/guestfs-actions.pod:3632
27545 msgid "guestfs_is_fifo"
27546 msgstr ""
27547
27548 #. type: verbatim
27549 #: ../src/guestfs-actions.pod:3634
27550 #, no-wrap
27551 msgid ""
27552 " int\n"
27553 " guestfs_is_fifo (guestfs_h *g,\n"
27554 "                  const char *path);\n"
27555 "\n"
27556 msgstr ""
27557
27558 #. type: =head2
27559 #: ../src/guestfs-actions.pod:3647
27560 msgid "guestfs_is_file"
27561 msgstr ""
27562
27563 #. type: verbatim
27564 #: ../src/guestfs-actions.pod:3649
27565 #, no-wrap
27566 msgid ""
27567 " int\n"
27568 " guestfs_is_file (guestfs_h *g,\n"
27569 "                  const char *path);\n"
27570 "\n"
27571 msgstr ""
27572
27573 #. type: =head2
27574 #: ../src/guestfs-actions.pod:3663
27575 msgid "guestfs_is_launching"
27576 msgstr ""
27577
27578 #. type: verbatim
27579 #: ../src/guestfs-actions.pod:3665
27580 #, no-wrap
27581 msgid ""
27582 " int\n"
27583 " guestfs_is_launching (guestfs_h *g);\n"
27584 "\n"
27585 msgstr ""
27586
27587 #. type: =head2
27588 #: ../src/guestfs-actions.pod:3677
27589 msgid "guestfs_is_lv"
27590 msgstr ""
27591
27592 #. type: verbatim
27593 #: ../src/guestfs-actions.pod:3679
27594 #, no-wrap
27595 msgid ""
27596 " int\n"
27597 " guestfs_is_lv (guestfs_h *g,\n"
27598 "                const char *device);\n"
27599 "\n"
27600 msgstr ""
27601
27602 #. type: =head2
27603 #: ../src/guestfs-actions.pod:3690
27604 msgid "guestfs_is_ready"
27605 msgstr ""
27606
27607 #. type: verbatim
27608 #: ../src/guestfs-actions.pod:3692
27609 #, no-wrap
27610 msgid ""
27611 " int\n"
27612 " guestfs_is_ready (guestfs_h *g);\n"
27613 "\n"
27614 msgstr ""
27615
27616 #. type: =head2
27617 #: ../src/guestfs-actions.pod:3704
27618 msgid "guestfs_is_socket"
27619 msgstr ""
27620
27621 #. type: verbatim
27622 #: ../src/guestfs-actions.pod:3706
27623 #, no-wrap
27624 msgid ""
27625 " int\n"
27626 " guestfs_is_socket (guestfs_h *g,\n"
27627 "                    const char *path);\n"
27628 "\n"
27629 msgstr ""
27630
27631 #. type: =head2
27632 #: ../src/guestfs-actions.pod:3719
27633 msgid "guestfs_is_symlink"
27634 msgstr ""
27635
27636 #. type: verbatim
27637 #: ../src/guestfs-actions.pod:3721
27638 #, no-wrap
27639 msgid ""
27640 " int\n"
27641 " guestfs_is_symlink (guestfs_h *g,\n"
27642 "                     const char *path);\n"
27643 "\n"
27644 msgstr ""
27645
27646 #. type: =head2
27647 #: ../src/guestfs-actions.pod:3734
27648 msgid "guestfs_is_zero"
27649 msgstr ""
27650
27651 #. type: verbatim
27652 #: ../src/guestfs-actions.pod:3736
27653 #, no-wrap
27654 msgid ""
27655 " int\n"
27656 " guestfs_is_zero (guestfs_h *g,\n"
27657 "                  const char *path);\n"
27658 "\n"
27659 msgstr ""
27660
27661 #. type: textblock
27662 #: ../src/guestfs-actions.pod:3745 ../src/guestfs-actions.pod:3759
27663 msgid "(Added in 1.11.8)"
27664 msgstr ""
27665
27666 #. type: =head2
27667 #: ../src/guestfs-actions.pod:3747
27668 msgid "guestfs_is_zero_device"
27669 msgstr ""
27670
27671 #. type: verbatim
27672 #: ../src/guestfs-actions.pod:3749
27673 #, no-wrap
27674 msgid ""
27675 " int\n"
27676 " guestfs_is_zero_device (guestfs_h *g,\n"
27677 "                         const char *device);\n"
27678 "\n"
27679 msgstr ""
27680
27681 #. type: =head2
27682 #: ../src/guestfs-actions.pod:3761
27683 msgid "guestfs_kill_subprocess"
27684 msgstr ""
27685
27686 #. type: verbatim
27687 #: ../src/guestfs-actions.pod:3763
27688 #, no-wrap
27689 msgid ""
27690 " int\n"
27691 " guestfs_kill_subprocess (guestfs_h *g);\n"
27692 "\n"
27693 msgstr ""
27694
27695 #. type: =head2
27696 #: ../src/guestfs-actions.pod:3772
27697 msgid "guestfs_launch"
27698 msgstr ""
27699
27700 #. type: verbatim
27701 #: ../src/guestfs-actions.pod:3774
27702 #, no-wrap
27703 msgid ""
27704 " int\n"
27705 " guestfs_launch (guestfs_h *g);\n"
27706 "\n"
27707 msgstr ""
27708
27709 #. type: =head2
27710 #: ../src/guestfs-actions.pod:3792
27711 msgid "guestfs_lchown"
27712 msgstr ""
27713
27714 #. type: verbatim
27715 #: ../src/guestfs-actions.pod:3794
27716 #, no-wrap
27717 msgid ""
27718 " int\n"
27719 " guestfs_lchown (guestfs_h *g,\n"
27720 "                 int owner,\n"
27721 "                 int group,\n"
27722 "                 const char *path);\n"
27723 "\n"
27724 msgstr ""
27725
27726 #. type: textblock
27727 #: ../src/guestfs-actions.pod:3800
27728 msgid ""
27729 "Change the file owner to C<owner> and group to C<group>.  This is like "
27730 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27731 "changed, not the target."
27732 msgstr ""
27733
27734 #. type: =head2
27735 #: ../src/guestfs-actions.pod:3812
27736 msgid "guestfs_lgetxattr"
27737 msgstr ""
27738
27739 #. type: verbatim
27740 #: ../src/guestfs-actions.pod:3814
27741 #, no-wrap
27742 msgid ""
27743 " char *\n"
27744 " guestfs_lgetxattr (guestfs_h *g,\n"
27745 "                    const char *path,\n"
27746 "                    const char *name,\n"
27747 "                    size_t *size_r);\n"
27748 "\n"
27749 msgstr ""
27750
27751 #. type: textblock
27752 #: ../src/guestfs-actions.pod:3834
27753 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27754 msgstr ""
27755
27756 #. type: =head2
27757 #: ../src/guestfs-actions.pod:3842
27758 msgid "guestfs_lgetxattrs"
27759 msgstr ""
27760
27761 #. type: verbatim
27762 #: ../src/guestfs-actions.pod:3844
27763 #, no-wrap
27764 msgid ""
27765 " struct guestfs_xattr_list *\n"
27766 " guestfs_lgetxattrs (guestfs_h *g,\n"
27767 "                     const char *path);\n"
27768 "\n"
27769 msgstr ""
27770
27771 #. type: textblock
27772 #: ../src/guestfs-actions.pod:3848
27773 msgid ""
27774 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
27775 "then it returns the extended attributes of the link itself."
27776 msgstr ""
27777
27778 #. type: =head2
27779 #: ../src/guestfs-actions.pod:3858
27780 msgid "guestfs_list_9p"
27781 msgstr ""
27782
27783 #. type: verbatim
27784 #: ../src/guestfs-actions.pod:3860
27785 #, no-wrap
27786 msgid ""
27787 " char **\n"
27788 " guestfs_list_9p (guestfs_h *g);\n"
27789 "\n"
27790 msgstr ""
27791
27792 #. type: =head2
27793 #: ../src/guestfs-actions.pod:3872
27794 msgid "guestfs_list_devices"
27795 msgstr ""
27796
27797 #. type: verbatim
27798 #: ../src/guestfs-actions.pod:3874
27799 #, no-wrap
27800 msgid ""
27801 " char **\n"
27802 " guestfs_list_devices (guestfs_h *g);\n"
27803 "\n"
27804 msgstr ""
27805
27806 #. type: =head2
27807 #: ../src/guestfs-actions.pod:3889
27808 msgid "guestfs_list_dm_devices"
27809 msgstr ""
27810
27811 #. type: verbatim
27812 #: ../src/guestfs-actions.pod:3891
27813 #, no-wrap
27814 msgid ""
27815 " char **\n"
27816 " guestfs_list_dm_devices (guestfs_h *g);\n"
27817 "\n"
27818 msgstr ""
27819
27820 #. type: textblock
27821 #: ../src/guestfs-actions.pod:3896
27822 msgid ""
27823 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27824 "previous call to C<guestfs_luks_open>."
27825 msgstr ""
27826
27827 #. type: textblock
27828 #: ../src/guestfs-actions.pod:3899
27829 msgid ""
27830 "Device mapper devices which correspond to logical volumes are I<not> "
27831 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
27832 "volumes."
27833 msgstr ""
27834
27835 #. type: textblock
27836 #: ../src/guestfs-actions.pod:3907 ../src/guestfs-actions.pod:5363
27837 msgid "(Added in 1.11.15)"
27838 msgstr ""
27839
27840 #. type: =head2
27841 #: ../src/guestfs-actions.pod:3909
27842 msgid "guestfs_list_filesystems"
27843 msgstr ""
27844
27845 #. type: verbatim
27846 #: ../src/guestfs-actions.pod:3911
27847 #, no-wrap
27848 msgid ""
27849 " char **\n"
27850 " guestfs_list_filesystems (guestfs_h *g);\n"
27851 "\n"
27852 msgstr ""
27853
27854 #. type: textblock
27855 #: ../src/guestfs-actions.pod:3931
27856 msgid ""
27857 "This command runs other libguestfs commands, which might include "
27858 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27859 "soon after launch and only when nothing is mounted."
27860 msgstr ""
27861
27862 #. type: textblock
27863 #: ../src/guestfs-actions.pod:3935
27864 msgid ""
27865 "Not all of the filesystems returned will be mountable.  In particular, swap "
27866 "partitions are returned in the list.  Also this command does not check that "
27867 "each filesystem found is valid and mountable, and some filesystems might be "
27868 "mountable but require special options.  Filesystems may not all belong to a "
27869 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
27870 msgstr ""
27871
27872 #. type: textblock
27873 #: ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5724
27874 msgid "(Added in 1.5.15)"
27875 msgstr ""
27876
27877 #. type: =head2
27878 #: ../src/guestfs-actions.pod:3951
27879 msgid "guestfs_list_partitions"
27880 msgstr "guestfs_list_partitions"
27881
27882 #. type: verbatim
27883 #: ../src/guestfs-actions.pod:3953
27884 #, no-wrap
27885 msgid ""
27886 " char **\n"
27887 " guestfs_list_partitions (guestfs_h *g);\n"
27888 "\n"
27889 msgstr ""
27890 " char **\n"
27891 " guestfs_list_partitions (guestfs_h *g);\n"
27892 "\n"
27893
27894 #. type: textblock
27895 #: ../src/guestfs-actions.pod:3960
27896 msgid ""
27897 "This does not return logical volumes.  For that you will need to call "
27898 "C<guestfs_lvs>."
27899 msgstr ""
27900
27901 #. type: =head2
27902 #: ../src/guestfs-actions.pod:3971
27903 msgid "guestfs_ll"
27904 msgstr "guestfs_ll"
27905
27906 #. type: verbatim
27907 #: ../src/guestfs-actions.pod:3973
27908 #, no-wrap
27909 msgid ""
27910 " char *\n"
27911 " guestfs_ll (guestfs_h *g,\n"
27912 "             const char *directory);\n"
27913 "\n"
27914 msgstr ""
27915 " char *\n"
27916 " guestfs_ll (guestfs_h *g,\n"
27917 "             const char *directory);\n"
27918 "\n"
27919
27920 #. type: =head2
27921 #: ../src/guestfs-actions.pod:3988
27922 msgid "guestfs_ln"
27923 msgstr "guestfs_ln"
27924
27925 #. type: verbatim
27926 #: ../src/guestfs-actions.pod:3990
27927 #, no-wrap
27928 msgid ""
27929 " int\n"
27930 " guestfs_ln (guestfs_h *g,\n"
27931 "             const char *target,\n"
27932 "             const char *linkname);\n"
27933 "\n"
27934 msgstr ""
27935 " int\n"
27936 " guestfs_ln (guestfs_h *g,\n"
27937 "             const char *target,\n"
27938 "             const char *linkname);\n"
27939 "\n"
27940
27941 #. type: =head2
27942 #: ../src/guestfs-actions.pod:4001
27943 msgid "guestfs_ln_f"
27944 msgstr "guestfs_ln_f"
27945
27946 #. type: verbatim
27947 #: ../src/guestfs-actions.pod:4003
27948 #, no-wrap
27949 msgid ""
27950 " int\n"
27951 " guestfs_ln_f (guestfs_h *g,\n"
27952 "               const char *target,\n"
27953 "               const char *linkname);\n"
27954 "\n"
27955 msgstr ""
27956 " int\n"
27957 " guestfs_ln_f (guestfs_h *g,\n"
27958 "               const char *target,\n"
27959 "               const char *linkname);\n"
27960 "\n"
27961
27962 #. type: =head2
27963 #: ../src/guestfs-actions.pod:4015
27964 msgid "guestfs_ln_s"
27965 msgstr "guestfs_ln_s"
27966
27967 #. type: verbatim
27968 #: ../src/guestfs-actions.pod:4017
27969 #, no-wrap
27970 msgid ""
27971 " int\n"
27972 " guestfs_ln_s (guestfs_h *g,\n"
27973 "               const char *target,\n"
27974 "               const char *linkname);\n"
27975 "\n"
27976 msgstr ""
27977 " int\n"
27978 " guestfs_ln_s (guestfs_h *g,\n"
27979 "               const char *target,\n"
27980 "               const char *linkname);\n"
27981 "\n"
27982
27983 #. type: =head2
27984 #: ../src/guestfs-actions.pod:4028
27985 msgid "guestfs_ln_sf"
27986 msgstr "guestfs_ln_sf"
27987
27988 #. type: verbatim
27989 #: ../src/guestfs-actions.pod:4030
27990 #, no-wrap
27991 msgid ""
27992 " int\n"
27993 " guestfs_ln_sf (guestfs_h *g,\n"
27994 "                const char *target,\n"
27995 "                const char *linkname);\n"
27996 "\n"
27997 msgstr ""
27998 " int\n"
27999 " guestfs_ln_sf (guestfs_h *g,\n"
28000 "                const char *target,\n"
28001 "                const char *linkname);\n"
28002 "\n"
28003
28004 #. type: =head2
28005 #: ../src/guestfs-actions.pod:4042
28006 msgid "guestfs_lremovexattr"
28007 msgstr "guestfs_lremovexattr"
28008
28009 #. type: verbatim
28010 #: ../src/guestfs-actions.pod:4044
28011 #, no-wrap
28012 msgid ""
28013 " int\n"
28014 " guestfs_lremovexattr (guestfs_h *g,\n"
28015 "                       const char *xattr,\n"
28016 "                       const char *path);\n"
28017 "\n"
28018 msgstr ""
28019 " int\n"
28020 " guestfs_lremovexattr (guestfs_h *g,\n"
28021 "                       const char *xattr,\n"
28022 "                       const char *path);\n"
28023 "\n"
28024
28025 #. type: textblock
28026 #: ../src/guestfs-actions.pod:4049
28027 msgid ""
28028 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
28029 "link, then it removes an extended attribute of the link itself."
28030 msgstr ""
28031
28032 #. type: =head2
28033 #: ../src/guestfs-actions.pod:4057
28034 msgid "guestfs_ls"
28035 msgstr "guestfs_ls"
28036
28037 #. type: verbatim
28038 #: ../src/guestfs-actions.pod:4059
28039 #, no-wrap
28040 msgid ""
28041 " char **\n"
28042 " guestfs_ls (guestfs_h *g,\n"
28043 "             const char *directory);\n"
28044 "\n"
28045 msgstr ""
28046 " char **\n"
28047 " guestfs_ls (guestfs_h *g,\n"
28048 "             const char *directory);\n"
28049 "\n"
28050
28051 #. type: textblock
28052 #: ../src/guestfs-actions.pod:4067
28053 msgid ""
28054 "This command is mostly useful for interactive sessions.  Programs should "
28055 "probably use C<guestfs_readdir> instead."
28056 msgstr ""
28057
28058 #. type: =head2
28059 #: ../src/guestfs-actions.pod:4076
28060 msgid "guestfs_lsetxattr"
28061 msgstr "guestfs_lsetxattr"
28062
28063 #. type: verbatim
28064 #: ../src/guestfs-actions.pod:4078
28065 #, no-wrap
28066 msgid ""
28067 " int\n"
28068 " guestfs_lsetxattr (guestfs_h *g,\n"
28069 "                    const char *xattr,\n"
28070 "                    const char *val,\n"
28071 "                    int vallen,\n"
28072 "                    const char *path);\n"
28073 "\n"
28074 msgstr ""
28075 " int\n"
28076 " guestfs_lsetxattr (guestfs_h *g,\n"
28077 "                    const char *xattr,\n"
28078 "                    const char *val,\n"
28079 "                    int vallen,\n"
28080 "                    const char *path);\n"
28081 "\n"
28082
28083 #. type: textblock
28084 #: ../src/guestfs-actions.pod:4085
28085 msgid ""
28086 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
28087 "then it sets an extended attribute of the link itself."
28088 msgstr ""
28089
28090 #. type: =head2
28091 #: ../src/guestfs-actions.pod:4093
28092 msgid "guestfs_lstat"
28093 msgstr "guestfs_lstat"
28094
28095 #. type: verbatim
28096 #: ../src/guestfs-actions.pod:4095
28097 #, no-wrap
28098 msgid ""
28099 " struct guestfs_stat *\n"
28100 " guestfs_lstat (guestfs_h *g,\n"
28101 "                const char *path);\n"
28102 "\n"
28103 msgstr ""
28104 " struct guestfs_stat *\n"
28105 " guestfs_lstat (guestfs_h *g,\n"
28106 "                const char *path);\n"
28107 "\n"
28108
28109 #. type: textblock
28110 #: ../src/guestfs-actions.pod:4101
28111 msgid ""
28112 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
28113 "link, then the link is stat-ed, not the file it refers to."
28114 msgstr ""
28115
28116 #. type: textblock
28117 #: ../src/guestfs-actions.pod:4107 ../src/guestfs-actions.pod:6896
28118 msgid ""
28119 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
28120 "error.  I<The caller must call C<guestfs_free_stat> after use>."
28121 msgstr ""
28122
28123 #. type: textblock
28124 #: ../src/guestfs-actions.pod:4111 ../src/guestfs-actions.pod:6900
28125 #: ../src/guestfs-actions.pod:6918 ../src/guestfs-actions.pod:7299
28126 msgid "(Added in 0.9.2)"
28127 msgstr "(Додано у 0.9.2)"
28128
28129 #. type: =head2
28130 #: ../src/guestfs-actions.pod:4113
28131 msgid "guestfs_lstatlist"
28132 msgstr "guestfs_lstatlist"
28133
28134 #. type: verbatim
28135 #: ../src/guestfs-actions.pod:4115
28136 #, no-wrap
28137 msgid ""
28138 " struct guestfs_stat_list *\n"
28139 " guestfs_lstatlist (guestfs_h *g,\n"
28140 "                    const char *path,\n"
28141 "                    char *const *names);\n"
28142 "\n"
28143 msgstr ""
28144 " struct guestfs_stat_list *\n"
28145 " guestfs_lstatlist (guestfs_h *g,\n"
28146 "                    const char *path,\n"
28147 "                    char *const *names);\n"
28148 "\n"
28149
28150 #. type: textblock
28151 #: ../src/guestfs-actions.pod:4120
28152 msgid ""
28153 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
28154 "files, where all files are in the directory C<path>.  C<names> is the list "
28155 "of files from this directory."
28156 msgstr ""
28157
28158 #. type: textblock
28159 #: ../src/guestfs-actions.pod:4129
28160 msgid ""
28161 "This call is intended for programs that want to efficiently list a directory "
28162 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
28163 "for a similarly efficient call for getting extended attributes.  Very long "
28164 "directory listings might cause the protocol message size to be exceeded, "
28165 "causing this call to fail.  The caller must split up such requests into "
28166 "smaller groups of names."
28167 msgstr ""
28168
28169 #. type: textblock
28170 #: ../src/guestfs-actions.pod:4137
28171 msgid ""
28172 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
28173 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
28174 msgstr ""
28175
28176 #. type: =head2
28177 #: ../src/guestfs-actions.pod:4143
28178 msgid "guestfs_luks_add_key"
28179 msgstr "guestfs_luks_add_key"
28180
28181 #. type: verbatim
28182 #: ../src/guestfs-actions.pod:4145
28183 #, no-wrap
28184 msgid ""
28185 " int\n"
28186 " guestfs_luks_add_key (guestfs_h *g,\n"
28187 "                       const char *device,\n"
28188 "                       const char *key,\n"
28189 "                       const char *newkey,\n"
28190 "                       int keyslot);\n"
28191 "\n"
28192 msgstr ""
28193 " int\n"
28194 " guestfs_luks_add_key (guestfs_h *g,\n"
28195 "                       const char *device,\n"
28196 "                       const char *key,\n"
28197 "                       const char *newkey,\n"
28198 "                       int keyslot);\n"
28199 "\n"
28200
28201 #. type: textblock
28202 #: ../src/guestfs-actions.pod:4157
28203 msgid ""
28204 "Note that if C<keyslot> already contains a key, then this command will "
28205 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
28206 msgstr ""
28207
28208 #. type: textblock
28209 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4203
28210 #: ../src/guestfs-actions.pod:4226 ../src/guestfs-actions.pod:4246
28211 #: ../src/guestfs-actions.pod:4281 ../src/guestfs-actions.pod:4300
28212 msgid ""
28213 "This function takes a key or passphrase parameter which could contain "
28214 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
28215 "information."
28216 msgstr ""
28217
28218 #. type: textblock
28219 #: ../src/guestfs-actions.pod:4167 ../src/guestfs-actions.pod:4207
28220 #: ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4250
28221 msgid "(Added in 1.5.2)"
28222 msgstr "(Додано у 1.5.2)"
28223
28224 #. type: =head2
28225 #: ../src/guestfs-actions.pod:4169
28226 msgid "guestfs_luks_close"
28227 msgstr "guestfs_luks_close"
28228
28229 #. type: verbatim
28230 #: ../src/guestfs-actions.pod:4171
28231 #, no-wrap
28232 msgid ""
28233 " int\n"
28234 " guestfs_luks_close (guestfs_h *g,\n"
28235 "                     const char *device);\n"
28236 "\n"
28237 msgstr ""
28238 " int\n"
28239 " guestfs_luks_close (guestfs_h *g,\n"
28240 "                     const char *device);\n"
28241 "\n"
28242
28243 #. type: textblock
28244 #: ../src/guestfs-actions.pod:4175
28245 msgid ""
28246 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
28247 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
28248 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
28249 "underlying block device."
28250 msgstr ""
28251
28252 #. type: textblock
28253 #: ../src/guestfs-actions.pod:4183 ../src/guestfs-actions.pod:4285
28254 #: ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4354
28255 #: ../src/guestfs-actions.pod:4402
28256 msgid "(Added in 1.5.1)"
28257 msgstr "(Додано у 1.5.1)"
28258
28259 #. type: =head2
28260 #: ../src/guestfs-actions.pod:4185
28261 msgid "guestfs_luks_format"
28262 msgstr "guestfs_luks_format"
28263
28264 #. type: verbatim
28265 #: ../src/guestfs-actions.pod:4187
28266 #, no-wrap
28267 msgid ""
28268 " int\n"
28269 " guestfs_luks_format (guestfs_h *g,\n"
28270 "                      const char *device,\n"
28271 "                      const char *key,\n"
28272 "                      int keyslot);\n"
28273 "\n"
28274 msgstr ""
28275 " int\n"
28276 " guestfs_luks_format (guestfs_h *g,\n"
28277 "                      const char *device,\n"
28278 "                      const char *key,\n"
28279 "                      int keyslot);\n"
28280 "\n"
28281
28282 #. type: =head2
28283 #: ../src/guestfs-actions.pod:4209
28284 msgid "guestfs_luks_format_cipher"
28285 msgstr "guestfs_luks_format_cipher"
28286
28287 #. type: verbatim
28288 #: ../src/guestfs-actions.pod:4211
28289 #, no-wrap
28290 msgid ""
28291 " int\n"
28292 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28293 "                             const char *device,\n"
28294 "                             const char *key,\n"
28295 "                             int keyslot,\n"
28296 "                             const char *cipher);\n"
28297 "\n"
28298 msgstr ""
28299 " int\n"
28300 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28301 "                             const char *device,\n"
28302 "                             const char *key,\n"
28303 "                             int keyslot,\n"
28304 "                             const char *cipher);\n"
28305 "\n"
28306
28307 #. type: textblock
28308 #: ../src/guestfs-actions.pod:4218
28309 msgid ""
28310 "This command is the same as C<guestfs_luks_format> but it also allows you to "
28311 "set the C<cipher> used."
28312 msgstr ""
28313
28314 #. type: =head2
28315 #: ../src/guestfs-actions.pod:4232
28316 msgid "guestfs_luks_kill_slot"
28317 msgstr "guestfs_luks_kill_slot"
28318
28319 #. type: verbatim
28320 #: ../src/guestfs-actions.pod:4234
28321 #, no-wrap
28322 msgid ""
28323 " int\n"
28324 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28325 "                         const char *device,\n"
28326 "                         const char *key,\n"
28327 "                         int keyslot);\n"
28328 "\n"
28329 msgstr ""
28330 " int\n"
28331 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28332 "                         const char *device,\n"
28333 "                         const char *key,\n"
28334 "                         int keyslot);\n"
28335 "\n"
28336
28337 #. type: =head2
28338 #: ../src/guestfs-actions.pod:4252
28339 msgid "guestfs_luks_open"
28340 msgstr "guestfs_luks_open"
28341
28342 #. type: verbatim
28343 #: ../src/guestfs-actions.pod:4254
28344 #, no-wrap
28345 msgid ""
28346 " int\n"
28347 " guestfs_luks_open (guestfs_h *g,\n"
28348 "                    const char *device,\n"
28349 "                    const char *key,\n"
28350 "                    const char *mapname);\n"
28351 "\n"
28352 msgstr ""
28353 " int\n"
28354 " guestfs_luks_open (guestfs_h *g,\n"
28355 "                    const char *device,\n"
28356 "                    const char *key,\n"
28357 "                    const char *mapname);\n"
28358 "\n"
28359
28360 #. type: textblock
28361 #: ../src/guestfs-actions.pod:4272
28362 msgid ""
28363 "If this block device contains LVM volume groups, then calling "
28364 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
28365 "visible."
28366 msgstr ""
28367
28368 #. type: textblock
28369 #: ../src/guestfs-actions.pod:4276
28370 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
28371 msgstr ""
28372
28373 #. type: =head2
28374 #: ../src/guestfs-actions.pod:4287
28375 msgid "guestfs_luks_open_ro"
28376 msgstr "guestfs_luks_open_ro"
28377
28378 #. type: verbatim
28379 #: ../src/guestfs-actions.pod:4289
28380 #, no-wrap
28381 msgid ""
28382 " int\n"
28383 " guestfs_luks_open_ro (guestfs_h *g,\n"
28384 "                       const char *device,\n"
28385 "                       const char *key,\n"
28386 "                       const char *mapname);\n"
28387 "\n"
28388 msgstr ""
28389 " int\n"
28390 " guestfs_luks_open_ro (guestfs_h *g,\n"
28391 "                       const char *device,\n"
28392 "                       const char *key,\n"
28393 "                       const char *mapname);\n"
28394 "\n"
28395
28396 #. type: textblock
28397 #: ../src/guestfs-actions.pod:4295
28398 msgid ""
28399 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
28400 "created."
28401 msgstr ""
28402
28403 #. type: =head2
28404 #: ../src/guestfs-actions.pod:4306
28405 msgid "guestfs_lvcreate"
28406 msgstr "guestfs_lvcreate"
28407
28408 #. type: verbatim
28409 #: ../src/guestfs-actions.pod:4308
28410 #, no-wrap
28411 msgid ""
28412 " int\n"
28413 " guestfs_lvcreate (guestfs_h *g,\n"
28414 "                   const char *logvol,\n"
28415 "                   const char *volgroup,\n"
28416 "                   int mbytes);\n"
28417 "\n"
28418 msgstr ""
28419 " int\n"
28420 " guestfs_lvcreate (guestfs_h *g,\n"
28421 "                   const char *logvol,\n"
28422 "                   const char *volgroup,\n"
28423 "                   int mbytes);\n"
28424 "\n"
28425
28426 #. type: =head2
28427 #: ../src/guestfs-actions.pod:4321
28428 msgid "guestfs_lvm_canonical_lv_name"
28429 msgstr "guestfs_lvm_canonical_lv_name"
28430
28431 #. type: verbatim
28432 #: ../src/guestfs-actions.pod:4323
28433 #, no-wrap
28434 msgid ""
28435 " char *\n"
28436 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28437 "                                const char *lvname);\n"
28438 "\n"
28439 msgstr ""
28440 " char *\n"
28441 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28442 "                                const char *lvname);\n"
28443 "\n"
28444
28445 #. type: textblock
28446 #: ../src/guestfs-actions.pod:4334
28447 msgid "See also C<guestfs_is_lv>."
28448 msgstr ""
28449
28450 #. type: textblock
28451 #: ../src/guestfs-actions.pod:4339
28452 msgid "(Added in 1.5.24)"
28453 msgstr "(Додано у 1.5.24)"
28454
28455 #. type: =head2
28456 #: ../src/guestfs-actions.pod:4341
28457 msgid "guestfs_lvm_clear_filter"
28458 msgstr "guestfs_lvm_clear_filter"
28459
28460 #. type: verbatim
28461 #: ../src/guestfs-actions.pod:4343
28462 #, no-wrap
28463 msgid ""
28464 " int\n"
28465 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28466 "\n"
28467 msgstr ""
28468 " int\n"
28469 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28470 "\n"
28471
28472 #. type: textblock
28473 #: ../src/guestfs-actions.pod:4346
28474 msgid ""
28475 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
28476 "see every block device."
28477 msgstr ""
28478
28479 #. type: =head2
28480 #: ../src/guestfs-actions.pod:4356
28481 msgid "guestfs_lvm_remove_all"
28482 msgstr "guestfs_lvm_remove_all"
28483
28484 #. type: verbatim
28485 #: ../src/guestfs-actions.pod:4358
28486 #, no-wrap
28487 msgid ""
28488 " int\n"
28489 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28490 "\n"
28491 msgstr ""
28492 " int\n"
28493 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28494 "\n"
28495
28496 #. type: =head2
28497 #: ../src/guestfs-actions.pod:4371
28498 msgid "guestfs_lvm_set_filter"
28499 msgstr "guestfs_lvm_set_filter"
28500
28501 #. type: verbatim
28502 #: ../src/guestfs-actions.pod:4373
28503 #, no-wrap
28504 msgid ""
28505 " int\n"
28506 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28507 "                         char *const *devices);\n"
28508 "\n"
28509 msgstr ""
28510 " int\n"
28511 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28512 "                         char *const *devices);\n"
28513 "\n"
28514
28515 #. type: =head2
28516 #: ../src/guestfs-actions.pod:4404
28517 msgid "guestfs_lvremove"
28518 msgstr "guestfs_lvremove"
28519
28520 #. type: verbatim
28521 #: ../src/guestfs-actions.pod:4406
28522 #, no-wrap
28523 msgid ""
28524 " int\n"
28525 " guestfs_lvremove (guestfs_h *g,\n"
28526 "                   const char *device);\n"
28527 "\n"
28528 msgstr ""
28529 " int\n"
28530 " guestfs_lvremove (guestfs_h *g,\n"
28531 "                   const char *device);\n"
28532 "\n"
28533
28534 #. type: textblock
28535 #: ../src/guestfs-actions.pod:4418 ../src/guestfs-actions.pod:5821
28536 #: ../src/guestfs-actions.pod:7669
28537 msgid "(Added in 1.0.13)"
28538 msgstr "(Додано у 1.0.13)"
28539
28540 #. type: =head2
28541 #: ../src/guestfs-actions.pod:4420
28542 msgid "guestfs_lvrename"
28543 msgstr "guestfs_lvrename"
28544
28545 #. type: verbatim
28546 #: ../src/guestfs-actions.pod:4422
28547 #, no-wrap
28548 msgid ""
28549 " int\n"
28550 " guestfs_lvrename (guestfs_h *g,\n"
28551 "                   const char *logvol,\n"
28552 "                   const char *newlogvol);\n"
28553 "\n"
28554 msgstr ""
28555 " int\n"
28556 " guestfs_lvrename (guestfs_h *g,\n"
28557 "                   const char *logvol,\n"
28558 "                   const char *newlogvol);\n"
28559 "\n"
28560
28561 #. type: textblock
28562 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7682
28563 msgid "(Added in 1.0.83)"
28564 msgstr "(Додано у 1.0.83)"
28565
28566 #. type: =head2
28567 #: ../src/guestfs-actions.pod:4433
28568 msgid "guestfs_lvresize"
28569 msgstr "guestfs_lvresize"
28570
28571 #. type: verbatim
28572 #: ../src/guestfs-actions.pod:4435
28573 #, no-wrap
28574 msgid ""
28575 " int\n"
28576 " guestfs_lvresize (guestfs_h *g,\n"
28577 "                   const char *device,\n"
28578 "                   int mbytes);\n"
28579 "\n"
28580 msgstr ""
28581 " int\n"
28582 " guestfs_lvresize (guestfs_h *g,\n"
28583 "                   const char *device,\n"
28584 "                   int mbytes);\n"
28585 "\n"
28586
28587 #. type: =head2
28588 #: ../src/guestfs-actions.pod:4448
28589 msgid "guestfs_lvresize_free"
28590 msgstr "guestfs_lvresize_free"
28591
28592 #. type: verbatim
28593 #: ../src/guestfs-actions.pod:4450
28594 #, no-wrap
28595 msgid ""
28596 " int\n"
28597 " guestfs_lvresize_free (guestfs_h *g,\n"
28598 "                        const char *lv,\n"
28599 "                        int percent);\n"
28600 "\n"
28601 msgstr ""
28602 " int\n"
28603 " guestfs_lvresize_free (guestfs_h *g,\n"
28604 "                        const char *lv,\n"
28605 "                        int percent);\n"
28606 "\n"
28607
28608 #. type: textblock
28609 #: ../src/guestfs-actions.pod:4463
28610 msgid "(Added in 1.3.3)"
28611 msgstr "(Додано у 1.3.3)"
28612
28613 #. type: =head2
28614 #: ../src/guestfs-actions.pod:4465
28615 msgid "guestfs_lvs"
28616 msgstr "guestfs_lvs"
28617
28618 #. type: verbatim
28619 #: ../src/guestfs-actions.pod:4467
28620 #, no-wrap
28621 msgid ""
28622 " char **\n"
28623 " guestfs_lvs (guestfs_h *g);\n"
28624 "\n"
28625 msgstr ""
28626 " char **\n"
28627 " guestfs_lvs (guestfs_h *g);\n"
28628 "\n"
28629
28630 #. type: textblock
28631 #: ../src/guestfs-actions.pod:4476
28632 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
28633 msgstr ""
28634
28635 #. type: =head2
28636 #: ../src/guestfs-actions.pod:4484
28637 msgid "guestfs_lvs_full"
28638 msgstr "guestfs_lvs_full"
28639
28640 #. type: verbatim
28641 #: ../src/guestfs-actions.pod:4486
28642 #, no-wrap
28643 msgid ""
28644 " struct guestfs_lvm_lv_list *\n"
28645 " guestfs_lvs_full (guestfs_h *g);\n"
28646 "\n"
28647 msgstr ""
28648 " struct guestfs_lvm_lv_list *\n"
28649 " guestfs_lvs_full (guestfs_h *g);\n"
28650 "\n"
28651
28652 #. type: textblock
28653 #: ../src/guestfs-actions.pod:4492
28654 msgid ""
28655 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
28656 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
28657 msgstr ""
28658
28659 #. type: =head2
28660 #: ../src/guestfs-actions.pod:4498
28661 msgid "guestfs_lvuuid"
28662 msgstr "guestfs_lvuuid"
28663
28664 #. type: verbatim
28665 #: ../src/guestfs-actions.pod:4500
28666 #, no-wrap
28667 msgid ""
28668 " char *\n"
28669 " guestfs_lvuuid (guestfs_h *g,\n"
28670 "                 const char *device);\n"
28671 "\n"
28672 msgstr ""
28673 " char *\n"
28674 " guestfs_lvuuid (guestfs_h *g,\n"
28675 "                 const char *device);\n"
28676 "\n"
28677
28678 #. type: =head2
28679 #: ../src/guestfs-actions.pod:4511
28680 msgid "guestfs_lxattrlist"
28681 msgstr "guestfs_lxattrlist"
28682
28683 #. type: verbatim
28684 #: ../src/guestfs-actions.pod:4513
28685 #, no-wrap
28686 msgid ""
28687 " struct guestfs_xattr_list *\n"
28688 " guestfs_lxattrlist (guestfs_h *g,\n"
28689 "                     const char *path,\n"
28690 "                     char *const *names);\n"
28691 "\n"
28692 msgstr ""
28693 " struct guestfs_xattr_list *\n"
28694 " guestfs_lxattrlist (guestfs_h *g,\n"
28695 "                     const char *path,\n"
28696 "                     char *const *names);\n"
28697 "\n"
28698
28699 #. type: textblock
28700 #: ../src/guestfs-actions.pod:4532
28701 msgid ""
28702 "This call is intended for programs that want to efficiently list a directory "
28703 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
28704 "a similarly efficient call for getting standard stats.  Very long directory "
28705 "listings might cause the protocol message size to be exceeded, causing this "
28706 "call to fail.  The caller must split up such requests into smaller groups of "
28707 "names."
28708 msgstr ""
28709
28710 #. type: =head2
28711 #: ../src/guestfs-actions.pod:4546
28712 msgid "guestfs_mkdir"
28713 msgstr "guestfs_mkdir"
28714
28715 #. type: verbatim
28716 #: ../src/guestfs-actions.pod:4548
28717 #, no-wrap
28718 msgid ""
28719 " int\n"
28720 " guestfs_mkdir (guestfs_h *g,\n"
28721 "                const char *path);\n"
28722 "\n"
28723 msgstr ""
28724 " int\n"
28725 " guestfs_mkdir (guestfs_h *g,\n"
28726 "                const char *path);\n"
28727 "\n"
28728
28729 #. type: =head2
28730 #: ../src/guestfs-actions.pod:4558
28731 msgid "guestfs_mkdir_mode"
28732 msgstr "guestfs_mkdir_mode"
28733
28734 #. type: verbatim
28735 #: ../src/guestfs-actions.pod:4560
28736 #, no-wrap
28737 msgid ""
28738 " int\n"
28739 " guestfs_mkdir_mode (guestfs_h *g,\n"
28740 "                     const char *path,\n"
28741 "                     int mode);\n"
28742 "\n"
28743 msgstr ""
28744 " int\n"
28745 " guestfs_mkdir_mode (guestfs_h *g,\n"
28746 "                     const char *path,\n"
28747 "                     int mode);\n"
28748 "\n"
28749
28750 #. type: textblock
28751 #: ../src/guestfs-actions.pod:4572
28752 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
28753 msgstr ""
28754
28755 #. type: =head2
28756 #: ../src/guestfs-actions.pod:4578
28757 msgid "guestfs_mkdir_p"
28758 msgstr "guestfs_mkdir_p"
28759
28760 #. type: verbatim
28761 #: ../src/guestfs-actions.pod:4580
28762 #, no-wrap
28763 msgid ""
28764 " int\n"
28765 " guestfs_mkdir_p (guestfs_h *g,\n"
28766 "                  const char *path);\n"
28767 "\n"
28768 msgstr ""
28769 " int\n"
28770 " guestfs_mkdir_p (guestfs_h *g,\n"
28771 "                  const char *path);\n"
28772 "\n"
28773
28774 #. type: =head2
28775 #: ../src/guestfs-actions.pod:4591
28776 msgid "guestfs_mkdtemp"
28777 msgstr "guestfs_mkdtemp"
28778
28779 #. type: verbatim
28780 #: ../src/guestfs-actions.pod:4593
28781 #, no-wrap
28782 msgid ""
28783 " char *\n"
28784 " guestfs_mkdtemp (guestfs_h *g,\n"
28785 "                  const char *template);\n"
28786 "\n"
28787 msgstr ""
28788 " char *\n"
28789 " guestfs_mkdtemp (guestfs_h *g,\n"
28790 "                  const char *template);\n"
28791 "\n"
28792
28793 #. type: =head2
28794 #: ../src/guestfs-actions.pod:4621
28795 msgid "guestfs_mke2fs_J"
28796 msgstr "guestfs_mke2fs_J"
28797
28798 #. type: verbatim
28799 #: ../src/guestfs-actions.pod:4623
28800 #, no-wrap
28801 msgid ""
28802 " int\n"
28803 " guestfs_mke2fs_J (guestfs_h *g,\n"
28804 "                   const char *fstype,\n"
28805 "                   int blocksize,\n"
28806 "                   const char *device,\n"
28807 "                   const char *journal);\n"
28808 "\n"
28809 msgstr ""
28810 " int\n"
28811 " guestfs_mke2fs_J (guestfs_h *g,\n"
28812 "                   const char *fstype,\n"
28813 "                   int blocksize,\n"
28814 "                   const char *device,\n"
28815 "                   const char *journal);\n"
28816 "\n"
28817
28818 #. type: textblock
28819 #: ../src/guestfs-actions.pod:4636
28820 msgid "See also C<guestfs_mke2journal>."
28821 msgstr ""
28822
28823 #. type: textblock
28824 #: ../src/guestfs-actions.pod:4640 ../src/guestfs-actions.pod:4658
28825 #: ../src/guestfs-actions.pod:4676 ../src/guestfs-actions.pod:4692
28826 #: ../src/guestfs-actions.pod:4706 ../src/guestfs-actions.pod:4720
28827 #: ../src/guestfs-actions.pod:4779 ../src/guestfs-actions.pod:5056
28828 msgid "(Added in 1.0.68)"
28829 msgstr "(Додано у 1.0.68)"
28830
28831 #. type: =head2
28832 #: ../src/guestfs-actions.pod:4642
28833 msgid "guestfs_mke2fs_JL"
28834 msgstr "guestfs_mke2fs_JL"
28835
28836 #. type: verbatim
28837 #: ../src/guestfs-actions.pod:4644
28838 #, no-wrap
28839 msgid ""
28840 " int\n"
28841 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28842 "                    const char *fstype,\n"
28843 "                    int blocksize,\n"
28844 "                    const char *device,\n"
28845 "                    const char *label);\n"
28846 "\n"
28847 msgstr ""
28848 " int\n"
28849 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28850 "                    const char *fstype,\n"
28851 "                    int blocksize,\n"
28852 "                    const char *device,\n"
28853 "                    const char *label);\n"
28854 "\n"
28855
28856 #. type: textblock
28857 #: ../src/guestfs-actions.pod:4654
28858 msgid "See also C<guestfs_mke2journal_L>."
28859 msgstr ""
28860
28861 #. type: =head2
28862 #: ../src/guestfs-actions.pod:4660
28863 msgid "guestfs_mke2fs_JU"
28864 msgstr "guestfs_mke2fs_JU"
28865
28866 #. type: verbatim
28867 #: ../src/guestfs-actions.pod:4662
28868 #, no-wrap
28869 msgid ""
28870 " int\n"
28871 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28872 "                    const char *fstype,\n"
28873 "                    int blocksize,\n"
28874 "                    const char *device,\n"
28875 "                    const char *uuid);\n"
28876 "\n"
28877 msgstr ""
28878 " int\n"
28879 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28880 "                    const char *fstype,\n"
28881 "                    int blocksize,\n"
28882 "                    const char *device,\n"
28883 "                    const char *uuid);\n"
28884 "\n"
28885
28886 #. type: textblock
28887 #: ../src/guestfs-actions.pod:4672
28888 msgid "See also C<guestfs_mke2journal_U>."
28889 msgstr ""
28890
28891 #. type: =head2
28892 #: ../src/guestfs-actions.pod:4678
28893 msgid "guestfs_mke2journal"
28894 msgstr "guestfs_mke2journal"
28895
28896 #. type: verbatim
28897 #: ../src/guestfs-actions.pod:4680
28898 #, no-wrap
28899 msgid ""
28900 " int\n"
28901 " guestfs_mke2journal (guestfs_h *g,\n"
28902 "                      int blocksize,\n"
28903 "                      const char *device);\n"
28904 "\n"
28905 msgstr ""
28906 " int\n"
28907 " guestfs_mke2journal (guestfs_h *g,\n"
28908 "                      int blocksize,\n"
28909 "                      const char *device);\n"
28910 "\n"
28911
28912 #. type: =head2
28913 #: ../src/guestfs-actions.pod:4694
28914 msgid "guestfs_mke2journal_L"
28915 msgstr "guestfs_mke2journal_L"
28916
28917 #. type: verbatim
28918 #: ../src/guestfs-actions.pod:4696
28919 #, no-wrap
28920 msgid ""
28921 " int\n"
28922 " guestfs_mke2journal_L (guestfs_h *g,\n"
28923 "                        int blocksize,\n"
28924 "                        const char *label,\n"
28925 "                        const char *device);\n"
28926 "\n"
28927 msgstr ""
28928 " int\n"
28929 " guestfs_mke2journal_L (guestfs_h *g,\n"
28930 "                        int blocksize,\n"
28931 "                        const char *label,\n"
28932 "                        const char *device);\n"
28933 "\n"
28934
28935 #. type: =head2
28936 #: ../src/guestfs-actions.pod:4708
28937 msgid "guestfs_mke2journal_U"
28938 msgstr "guestfs_mke2journal_U"
28939
28940 #. type: verbatim
28941 #: ../src/guestfs-actions.pod:4710
28942 #, no-wrap
28943 msgid ""
28944 " int\n"
28945 " guestfs_mke2journal_U (guestfs_h *g,\n"
28946 "                        int blocksize,\n"
28947 "                        const char *uuid,\n"
28948 "                        const char *device);\n"
28949 "\n"
28950 msgstr ""
28951 " int\n"
28952 " guestfs_mke2journal_U (guestfs_h *g,\n"
28953 "                        int blocksize,\n"
28954 "                        const char *uuid,\n"
28955 "                        const char *device);\n"
28956 "\n"
28957
28958 #. type: =head2
28959 #: ../src/guestfs-actions.pod:4722
28960 msgid "guestfs_mkfifo"
28961 msgstr "guestfs_mkfifo"
28962
28963 #. type: verbatim
28964 #: ../src/guestfs-actions.pod:4724
28965 #, no-wrap
28966 msgid ""
28967 " int\n"
28968 " guestfs_mkfifo (guestfs_h *g,\n"
28969 "                 int mode,\n"
28970 "                 const char *path);\n"
28971 "\n"
28972 msgstr ""
28973 " int\n"
28974 " guestfs_mkfifo (guestfs_h *g,\n"
28975 "                 int mode,\n"
28976 "                 const char *path);\n"
28977 "\n"
28978
28979 #. type: textblock
28980 #: ../src/guestfs-actions.pod:4729
28981 msgid ""
28982 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28983 "is just a convenient wrapper around C<guestfs_mknod>."
28984 msgstr ""
28985
28986 #. type: =head2
28987 #: ../src/guestfs-actions.pod:4739
28988 msgid "guestfs_mkfs"
28989 msgstr "guestfs_mkfs"
28990
28991 #. type: verbatim
28992 #: ../src/guestfs-actions.pod:4741
28993 #, no-wrap
28994 msgid ""
28995 " int\n"
28996 " guestfs_mkfs (guestfs_h *g,\n"
28997 "               const char *fstype,\n"
28998 "               const char *device);\n"
28999 "\n"
29000 msgstr ""
29001 " int\n"
29002 " guestfs_mkfs (guestfs_h *g,\n"
29003 "               const char *fstype,\n"
29004 "               const char *device);\n"
29005 "\n"
29006
29007 #. type: =head2
29008 #: ../src/guestfs-actions.pod:4754
29009 msgid "guestfs_mkfs_b"
29010 msgstr "guestfs_mkfs_b"
29011
29012 #. type: verbatim
29013 #: ../src/guestfs-actions.pod:4756
29014 #, no-wrap
29015 msgid ""
29016 " int\n"
29017 " guestfs_mkfs_b (guestfs_h *g,\n"
29018 "                 const char *fstype,\n"
29019 "                 int blocksize,\n"
29020 "                 const char *device);\n"
29021 "\n"
29022 msgstr ""
29023 " int\n"
29024 " guestfs_mkfs_b (guestfs_h *g,\n"
29025 "                 const char *fstype,\n"
29026 "                 int blocksize,\n"
29027 "                 const char *device);\n"
29028 "\n"
29029
29030 #. type: textblock
29031 #: ../src/guestfs-actions.pod:4762
29032 msgid ""
29033 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
29034 "call instead."
29035 msgstr ""
29036
29037 #. type: textblock
29038 #: ../src/guestfs-actions.pod:4769
29039 msgid ""
29040 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
29041 "block size of the resulting filesystem.  Supported block sizes depend on the "
29042 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29043 msgstr ""
29044
29045 #. type: =head2
29046 #: ../src/guestfs-actions.pod:4781
29047 msgid "guestfs_mkfs_opts"
29048 msgstr "guestfs_mkfs_opts"
29049
29050 #. type: verbatim
29051 #: ../src/guestfs-actions.pod:4783
29052 #, no-wrap
29053 msgid ""
29054 " int\n"
29055 " guestfs_mkfs_opts (guestfs_h *g,\n"
29056 "                    const char *fstype,\n"
29057 "                    const char *device,\n"
29058 "                    ...);\n"
29059 "\n"
29060 msgstr ""
29061 " int\n"
29062 " guestfs_mkfs_opts (guestfs_h *g,\n"
29063 "                    const char *fstype,\n"
29064 "                    const char *device,\n"
29065 "                    ...);\n"
29066 "\n"
29067
29068 #. type: verbatim
29069 #: ../src/guestfs-actions.pod:4794
29070 #, no-wrap
29071 msgid ""
29072 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
29073 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
29074 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
29075 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
29076 "\n"
29077 msgstr ""
29078
29079 #. type: textblock
29080 #: ../src/guestfs-actions.pod:4842
29081 msgid "(Added in 1.7.19)"
29082 msgstr "(Додано у 1.7.19)"
29083
29084 #. type: =head2
29085 #: ../src/guestfs-actions.pod:4844
29086 msgid "guestfs_mkfs_opts_va"
29087 msgstr "guestfs_mkfs_opts_va"
29088
29089 #. type: verbatim
29090 #: ../src/guestfs-actions.pod:4846
29091 #, no-wrap
29092 msgid ""
29093 " int\n"
29094 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29095 "                       const char *fstype,\n"
29096 "                       const char *device,\n"
29097 "                       va_list args);\n"
29098 "\n"
29099 msgstr ""
29100 " int\n"
29101 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29102 "                       const char *fstype,\n"
29103 "                       const char *device,\n"
29104 "                       va_list args);\n"
29105 "\n"
29106
29107 #. type: textblock
29108 #: ../src/guestfs-actions.pod:4852
29109 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
29110 msgstr ""
29111
29112 #. type: =head2
29113 #: ../src/guestfs-actions.pod:4856
29114 msgid "guestfs_mkfs_opts_argv"
29115 msgstr "guestfs_mkfs_opts_argv"
29116
29117 #. type: verbatim
29118 #: ../src/guestfs-actions.pod:4858
29119 #, no-wrap
29120 msgid ""
29121 " int\n"
29122 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29123 "                         const char *fstype,\n"
29124 "                         const char *device,\n"
29125 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
29126 "\n"
29127 msgstr ""
29128 " int\n"
29129 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29130 "                         const char *fstype,\n"
29131 "                         const char *device,\n"
29132 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
29133 "\n"
29134
29135 #. type: textblock
29136 #: ../src/guestfs-actions.pod:4864
29137 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
29138 msgstr ""
29139
29140 #. type: =head2
29141 #: ../src/guestfs-actions.pod:4868
29142 msgid "guestfs_mkmountpoint"
29143 msgstr "guestfs_mkmountpoint"
29144
29145 #. type: verbatim
29146 #: ../src/guestfs-actions.pod:4870
29147 #, no-wrap
29148 msgid ""
29149 " int\n"
29150 " guestfs_mkmountpoint (guestfs_h *g,\n"
29151 "                       const char *exemptpath);\n"
29152 "\n"
29153 msgstr ""
29154 " int\n"
29155 " guestfs_mkmountpoint (guestfs_h *g,\n"
29156 "                       const char *exemptpath);\n"
29157 "\n"
29158
29159 #. type: textblock
29160 #: ../src/guestfs-actions.pod:4874
29161 msgid ""
29162 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
29163 "that can be used to create extra mountpoints before mounting the first "
29164 "filesystem."
29165 msgstr ""
29166
29167 #. type: textblock
29168 #: ../src/guestfs-actions.pod:4898
29169 msgid ""
29170 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
29171 "may get unexpected errors if you try to mix these calls.  It is safest to "
29172 "manually unmount filesystems and remove mountpoints after use."
29173 msgstr ""
29174
29175 #. type: textblock
29176 #: ../src/guestfs-actions.pod:4902
29177 msgid ""
29178 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
29179 "first, so for this to work for manual mountpoints, you must ensure that the "
29180 "innermost mountpoints have the longest pathnames, as in the example code "
29181 "above."
29182 msgstr ""
29183
29184 #. type: textblock
29185 #: ../src/guestfs-actions.pod:4909
29186 msgid ""
29187 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
29188 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
29189 "can also trigger these issues."
29190 msgstr ""
29191
29192 #. type: textblock
29193 #: ../src/guestfs-actions.pod:4915 ../src/guestfs-actions.pod:5231
29194 #: ../src/guestfs-actions.pod:6241
29195 msgid "(Added in 1.0.62)"
29196 msgstr "(Додано у 1.0.62)"
29197
29198 #. type: =head2
29199 #: ../src/guestfs-actions.pod:4917
29200 msgid "guestfs_mknod"
29201 msgstr ""
29202
29203 #. type: verbatim
29204 #: ../src/guestfs-actions.pod:4919
29205 #, no-wrap
29206 msgid ""
29207 " int\n"
29208 " guestfs_mknod (guestfs_h *g,\n"
29209 "                int mode,\n"
29210 "                int devmajor,\n"
29211 "                int devminor,\n"
29212 "                const char *path);\n"
29213 "\n"
29214 msgstr ""
29215
29216 #. type: textblock
29217 #: ../src/guestfs-actions.pod:4934
29218 msgid ""
29219 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
29220 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
29221 "regular file).  These constants are available in the standard Linux header "
29222 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
29223 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
29224 "the appropriate constant for you."
29225 msgstr ""
29226
29227 #. type: =head2
29228 #: ../src/guestfs-actions.pod:4948
29229 msgid "guestfs_mknod_b"
29230 msgstr ""
29231
29232 #. type: verbatim
29233 #: ../src/guestfs-actions.pod:4950
29234 #, no-wrap
29235 msgid ""
29236 " int\n"
29237 " guestfs_mknod_b (guestfs_h *g,\n"
29238 "                  int mode,\n"
29239 "                  int devmajor,\n"
29240 "                  int devminor,\n"
29241 "                  const char *path);\n"
29242 "\n"
29243 msgstr ""
29244
29245 #. type: textblock
29246 #: ../src/guestfs-actions.pod:4957
29247 msgid ""
29248 "This call creates a block device node called C<path> with mode C<mode> and "
29249 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29250 "wrapper around C<guestfs_mknod>."
29251 msgstr ""
29252
29253 #. type: =head2
29254 #: ../src/guestfs-actions.pod:4967
29255 msgid "guestfs_mknod_c"
29256 msgstr ""
29257
29258 #. type: verbatim
29259 #: ../src/guestfs-actions.pod:4969
29260 #, no-wrap
29261 msgid ""
29262 " int\n"
29263 " guestfs_mknod_c (guestfs_h *g,\n"
29264 "                  int mode,\n"
29265 "                  int devmajor,\n"
29266 "                  int devminor,\n"
29267 "                  const char *path);\n"
29268 "\n"
29269 msgstr ""
29270
29271 #. type: textblock
29272 #: ../src/guestfs-actions.pod:4976
29273 msgid ""
29274 "This call creates a char device node called C<path> with mode C<mode> and "
29275 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29276 "wrapper around C<guestfs_mknod>."
29277 msgstr ""
29278
29279 #. type: =head2
29280 #: ../src/guestfs-actions.pod:4986
29281 msgid "guestfs_mkswap"
29282 msgstr ""
29283
29284 #. type: verbatim
29285 #: ../src/guestfs-actions.pod:4988
29286 #, no-wrap
29287 msgid ""
29288 " int\n"
29289 " guestfs_mkswap (guestfs_h *g,\n"
29290 "                 const char *device);\n"
29291 "\n"
29292 msgstr ""
29293
29294 #. type: =head2
29295 #: ../src/guestfs-actions.pod:4998
29296 msgid "guestfs_mkswap_L"
29297 msgstr ""
29298
29299 #. type: verbatim
29300 #: ../src/guestfs-actions.pod:5000
29301 #, no-wrap
29302 msgid ""
29303 " int\n"
29304 " guestfs_mkswap_L (guestfs_h *g,\n"
29305 "                   const char *label,\n"
29306 "                   const char *device);\n"
29307 "\n"
29308 msgstr ""
29309
29310 #. type: =head2
29311 #: ../src/guestfs-actions.pod:5015
29312 msgid "guestfs_mkswap_U"
29313 msgstr ""
29314
29315 #. type: verbatim
29316 #: ../src/guestfs-actions.pod:5017
29317 #, no-wrap
29318 msgid ""
29319 " int\n"
29320 " guestfs_mkswap_U (guestfs_h *g,\n"
29321 "                   const char *uuid,\n"
29322 "                   const char *device);\n"
29323 "\n"
29324 msgstr ""
29325
29326 #. type: =head2
29327 #: ../src/guestfs-actions.pod:5028
29328 msgid "guestfs_mkswap_file"
29329 msgstr ""
29330
29331 #. type: verbatim
29332 #: ../src/guestfs-actions.pod:5030
29333 #, no-wrap
29334 msgid ""
29335 " int\n"
29336 " guestfs_mkswap_file (guestfs_h *g,\n"
29337 "                      const char *path);\n"
29338 "\n"
29339 msgstr ""
29340
29341 #. type: textblock
29342 #: ../src/guestfs-actions.pod:5036
29343 msgid ""
29344 "This command just writes a swap file signature to an existing file.  To "
29345 "create the file itself, use something like C<guestfs_fallocate>."
29346 msgstr ""
29347
29348 #. type: =head2
29349 #: ../src/guestfs-actions.pod:5043
29350 msgid "guestfs_modprobe"
29351 msgstr ""
29352
29353 #. type: verbatim
29354 #: ../src/guestfs-actions.pod:5045
29355 #, no-wrap
29356 msgid ""
29357 " int\n"
29358 " guestfs_modprobe (guestfs_h *g,\n"
29359 "                   const char *modulename);\n"
29360 "\n"
29361 msgstr ""
29362
29363 #. type: =head2
29364 #: ../src/guestfs-actions.pod:5058
29365 msgid "guestfs_mount"
29366 msgstr ""
29367
29368 #. type: verbatim
29369 #: ../src/guestfs-actions.pod:5060
29370 #, no-wrap
29371 msgid ""
29372 " int\n"
29373 " guestfs_mount (guestfs_h *g,\n"
29374 "                const char *device,\n"
29375 "                const char *mountpoint);\n"
29376 "\n"
29377 msgstr ""
29378
29379 #. type: textblock
29380 #: ../src/guestfs-actions.pod:5065
29381 msgid ""
29382 "I<This function is deprecated.> In new code, use the L</"
29383 "guestfs_mount_options> call instead."
29384 msgstr ""
29385
29386 #. type: textblock
29387 #: ../src/guestfs-actions.pod:5086
29388 msgid ""
29389 "B<Important note:> When you use this call, the filesystem options C<sync> "
29390 "and C<noatime> are set implicitly.  This was originally done because we "
29391 "thought it would improve reliability, but it turns out that I<-o sync> has a "
29392 "very large negative performance impact and negligible effect on "
29393 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
29394 "in any code that needs performance, and instead use C<guestfs_mount_options> "
29395 "(use an empty string for the first parameter if you don't want any options)."
29396 msgstr ""
29397
29398 #. type: =head2
29399 #: ../src/guestfs-actions.pod:5100
29400 msgid "guestfs_mount_9p"
29401 msgstr ""
29402
29403 #. type: verbatim
29404 #: ../src/guestfs-actions.pod:5102
29405 #, no-wrap
29406 msgid ""
29407 " int\n"
29408 " guestfs_mount_9p (guestfs_h *g,\n"
29409 "                   const char *mounttag,\n"
29410 "                   const char *mountpoint,\n"
29411 "                   ...);\n"
29412 "\n"
29413 msgstr ""
29414
29415 #. type: verbatim
29416 #: ../src/guestfs-actions.pod:5113
29417 #, no-wrap
29418 msgid ""
29419 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
29420 "\n"
29421 msgstr ""
29422
29423 #. type: =head2
29424 #: ../src/guestfs-actions.pod:5126
29425 msgid "guestfs_mount_9p_va"
29426 msgstr ""
29427
29428 #. type: verbatim
29429 #: ../src/guestfs-actions.pod:5128
29430 #, no-wrap
29431 msgid ""
29432 " int\n"
29433 " guestfs_mount_9p_va (guestfs_h *g,\n"
29434 "                      const char *mounttag,\n"
29435 "                      const char *mountpoint,\n"
29436 "                      va_list args);\n"
29437 "\n"
29438 msgstr ""
29439
29440 #. type: textblock
29441 #: ../src/guestfs-actions.pod:5134
29442 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
29443 msgstr ""
29444
29445 #. type: =head2
29446 #: ../src/guestfs-actions.pod:5138
29447 msgid "guestfs_mount_9p_argv"
29448 msgstr ""
29449
29450 #. type: verbatim
29451 #: ../src/guestfs-actions.pod:5140
29452 #, no-wrap
29453 msgid ""
29454 " int\n"
29455 " guestfs_mount_9p_argv (guestfs_h *g,\n"
29456 "                        const char *mounttag,\n"
29457 "                        const char *mountpoint,\n"
29458 "                        const struct guestfs_mount_9p_argv *optargs);\n"
29459 "\n"
29460 msgstr ""
29461
29462 #. type: textblock
29463 #: ../src/guestfs-actions.pod:5146
29464 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
29465 msgstr ""
29466
29467 #. type: =head2
29468 #: ../src/guestfs-actions.pod:5150
29469 msgid "guestfs_mount_loop"
29470 msgstr ""
29471
29472 #. type: verbatim
29473 #: ../src/guestfs-actions.pod:5152
29474 #, no-wrap
29475 msgid ""
29476 " int\n"
29477 " guestfs_mount_loop (guestfs_h *g,\n"
29478 "                     const char *file,\n"
29479 "                     const char *mountpoint);\n"
29480 "\n"
29481 msgstr ""
29482
29483 #. type: =head2
29484 #: ../src/guestfs-actions.pod:5165
29485 msgid "guestfs_mount_options"
29486 msgstr ""
29487
29488 #. type: verbatim
29489 #: ../src/guestfs-actions.pod:5167
29490 #, no-wrap
29491 msgid ""
29492 " int\n"
29493 " guestfs_mount_options (guestfs_h *g,\n"
29494 "                        const char *options,\n"
29495 "                        const char *device,\n"
29496 "                        const char *mountpoint);\n"
29497 "\n"
29498 msgstr ""
29499
29500 #. type: textblock
29501 #: ../src/guestfs-actions.pod:5173
29502 msgid ""
29503 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29504 "the mount options as for the L<mount(8)> I<-o> flag."
29505 msgstr ""
29506
29507 #. type: textblock
29508 #: ../src/guestfs-actions.pod:5183 ../src/guestfs-actions.pod:5197
29509 #: ../src/guestfs-actions.pod:5214
29510 msgid "(Added in 1.0.10)"
29511 msgstr ""
29512
29513 #. type: =head2
29514 #: ../src/guestfs-actions.pod:5185
29515 msgid "guestfs_mount_ro"
29516 msgstr ""
29517
29518 #. type: verbatim
29519 #: ../src/guestfs-actions.pod:5187
29520 #, no-wrap
29521 msgid ""
29522 " int\n"
29523 " guestfs_mount_ro (guestfs_h *g,\n"
29524 "                   const char *device,\n"
29525 "                   const char *mountpoint);\n"
29526 "\n"
29527 msgstr ""
29528
29529 #. type: textblock
29530 #: ../src/guestfs-actions.pod:5192
29531 msgid ""
29532 "This is the same as the C<guestfs_mount> command, but it mounts the "
29533 "filesystem with the read-only (I<-o ro>) flag."
29534 msgstr ""
29535
29536 #. type: =head2
29537 #: ../src/guestfs-actions.pod:5199
29538 msgid "guestfs_mount_vfs"
29539 msgstr ""
29540
29541 #. type: verbatim
29542 #: ../src/guestfs-actions.pod:5201
29543 #, no-wrap
29544 msgid ""
29545 " int\n"
29546 " guestfs_mount_vfs (guestfs_h *g,\n"
29547 "                    const char *options,\n"
29548 "                    const char *vfstype,\n"
29549 "                    const char *device,\n"
29550 "                    const char *mountpoint);\n"
29551 "\n"
29552 msgstr ""
29553
29554 #. type: textblock
29555 #: ../src/guestfs-actions.pod:5208
29556 msgid ""
29557 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29558 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
29559 "t> flags."
29560 msgstr ""
29561
29562 #. type: =head2
29563 #: ../src/guestfs-actions.pod:5216
29564 msgid "guestfs_mountpoints"
29565 msgstr ""
29566
29567 #. type: verbatim
29568 #: ../src/guestfs-actions.pod:5218
29569 #, no-wrap
29570 msgid ""
29571 " char **\n"
29572 " guestfs_mountpoints (guestfs_h *g);\n"
29573 "\n"
29574 msgstr ""
29575
29576 #. type: textblock
29577 #: ../src/guestfs-actions.pod:5221
29578 msgid ""
29579 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
29580 "devices.  This one returns a hash table (map) of device name to directory "
29581 "where the device is mounted."
29582 msgstr ""
29583
29584 #. type: =head2
29585 #: ../src/guestfs-actions.pod:5233
29586 msgid "guestfs_mounts"
29587 msgstr ""
29588
29589 #. type: verbatim
29590 #: ../src/guestfs-actions.pod:5235
29591 #, no-wrap
29592 msgid ""
29593 " char **\n"
29594 " guestfs_mounts (guestfs_h *g);\n"
29595 "\n"
29596 msgstr ""
29597
29598 #. type: textblock
29599 #: ../src/guestfs-actions.pod:5243
29600 msgid "See also: C<guestfs_mountpoints>"
29601 msgstr ""
29602
29603 #. type: =head2
29604 #: ../src/guestfs-actions.pod:5251
29605 msgid "guestfs_mv"
29606 msgstr ""
29607
29608 #. type: verbatim
29609 #: ../src/guestfs-actions.pod:5253
29610 #, no-wrap
29611 msgid ""
29612 " int\n"
29613 " guestfs_mv (guestfs_h *g,\n"
29614 "             const char *src,\n"
29615 "             const char *dest);\n"
29616 "\n"
29617 msgstr ""
29618
29619 #. type: =head2
29620 #: ../src/guestfs-actions.pod:5265
29621 msgid "guestfs_ntfs_3g_probe"
29622 msgstr ""
29623
29624 #. type: verbatim
29625 #: ../src/guestfs-actions.pod:5267
29626 #, no-wrap
29627 msgid ""
29628 " int\n"
29629 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
29630 "                        int rw,\n"
29631 "                        const char *device);\n"
29632 "\n"
29633 msgstr ""
29634
29635 #. type: textblock
29636 #: ../src/guestfs-actions.pod:5286
29637 msgid "(Added in 1.0.43)"
29638 msgstr ""
29639
29640 #. type: =head2
29641 #: ../src/guestfs-actions.pod:5288
29642 msgid "guestfs_ntfsresize"
29643 msgstr ""
29644
29645 #. type: verbatim
29646 #: ../src/guestfs-actions.pod:5290
29647 #, no-wrap
29648 msgid ""
29649 " int\n"
29650 " guestfs_ntfsresize (guestfs_h *g,\n"
29651 "                     const char *device);\n"
29652 "\n"
29653 msgstr ""
29654
29655 #. type: textblock
29656 #: ../src/guestfs-actions.pod:5294 ../src/guestfs-actions.pod:5394
29657 msgid ""
29658 "I<This function is deprecated.> In new code, use the L</"
29659 "guestfs_ntfsresize_opts> call instead."
29660 msgstr ""
29661
29662 #. type: =head2
29663 #: ../src/guestfs-actions.pod:5318
29664 msgid "guestfs_ntfsresize_opts"
29665 msgstr ""
29666
29667 #. type: verbatim
29668 #: ../src/guestfs-actions.pod:5320
29669 #, no-wrap
29670 msgid ""
29671 " int\n"
29672 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
29673 "                          const char *device,\n"
29674 "                          ...);\n"
29675 "\n"
29676 msgstr ""
29677
29678 #. type: verbatim
29679 #: ../src/guestfs-actions.pod:5330
29680 #, no-wrap
29681 msgid ""
29682 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
29683 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
29684 "\n"
29685 msgstr ""
29686
29687 #. type: textblock
29688 #: ../src/guestfs-actions.pod:5350
29689 msgid ""
29690 "After the resize operation, the filesystem is always marked as requiring a "
29691 "consistency check (for safety).  You have to boot into Windows to perform "
29692 "this check and clear this condition.  If you I<don't> set the C<force> "
29693 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
29694 "times on a single filesystem without booting into Windows between each "
29695 "resize."
29696 msgstr ""
29697
29698 #. type: =head2
29699 #: ../src/guestfs-actions.pod:5365
29700 msgid "guestfs_ntfsresize_opts_va"
29701 msgstr ""
29702
29703 #. type: verbatim
29704 #: ../src/guestfs-actions.pod:5367
29705 #, no-wrap
29706 msgid ""
29707 " int\n"
29708 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
29709 "                             const char *device,\n"
29710 "                             va_list args);\n"
29711 "\n"
29712 msgstr ""
29713
29714 #. type: textblock
29715 #: ../src/guestfs-actions.pod:5372
29716 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
29717 msgstr ""
29718
29719 #. type: =head2
29720 #: ../src/guestfs-actions.pod:5376
29721 msgid "guestfs_ntfsresize_opts_argv"
29722 msgstr ""
29723
29724 #. type: verbatim
29725 #: ../src/guestfs-actions.pod:5378
29726 #, no-wrap
29727 msgid ""
29728 " int\n"
29729 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
29730 "                               const char *device,\n"
29731 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
29732 "\n"
29733 msgstr ""
29734
29735 #. type: textblock
29736 #: ../src/guestfs-actions.pod:5383
29737 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
29738 msgstr ""
29739
29740 #. type: =head2
29741 #: ../src/guestfs-actions.pod:5387
29742 msgid "guestfs_ntfsresize_size"
29743 msgstr ""
29744
29745 #. type: verbatim
29746 #: ../src/guestfs-actions.pod:5389
29747 #, no-wrap
29748 msgid ""
29749 " int\n"
29750 " guestfs_ntfsresize_size (guestfs_h *g,\n"
29751 "                          const char *device,\n"
29752 "                          int64_t size);\n"
29753 "\n"
29754 msgstr ""
29755
29756 #. type: textblock
29757 #: ../src/guestfs-actions.pod:5401
29758 msgid ""
29759 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
29760 "to specify the new size (in bytes) explicitly."
29761 msgstr ""
29762
29763 #. type: textblock
29764 #: ../src/guestfs-actions.pod:5406 ../src/guestfs-actions.pod:5848
29765 #: ../src/guestfs-actions.pod:5921 ../src/guestfs-actions.pod:6189
29766 #: ../src/guestfs-actions.pod:7826
29767 msgid "(Added in 1.3.14)"
29768 msgstr ""
29769
29770 #. type: =head2
29771 #: ../src/guestfs-actions.pod:5408
29772 msgid "guestfs_part_add"
29773 msgstr ""
29774
29775 #. type: verbatim
29776 #: ../src/guestfs-actions.pod:5410
29777 #, no-wrap
29778 msgid ""
29779 " int\n"
29780 " guestfs_part_add (guestfs_h *g,\n"
29781 "                   const char *device,\n"
29782 "                   const char *prlogex,\n"
29783 "                   int64_t startsect,\n"
29784 "                   int64_t endsect);\n"
29785 "\n"
29786 msgstr ""
29787
29788 #. type: textblock
29789 #: ../src/guestfs-actions.pod:5417
29790 msgid ""
29791 "This command adds a partition to C<device>.  If there is no partition table "
29792 "on the device, call C<guestfs_part_init> first."
29793 msgstr ""
29794
29795 #. type: textblock
29796 #: ../src/guestfs-actions.pod:5429
29797 msgid ""
29798 "Creating a partition which covers the whole disk is not so easy.  Use "
29799 "C<guestfs_part_disk> to do that."
29800 msgstr ""
29801
29802 #. type: textblock
29803 #: ../src/guestfs-actions.pod:5434 ../src/guestfs-actions.pod:5472
29804 #: ../src/guestfs-actions.pod:5525 ../src/guestfs-actions.pod:5609
29805 #: ../src/guestfs-actions.pod:5647 ../src/guestfs-actions.pod:5666
29806 #: ../src/guestfs-actions.pod:5706
29807 msgid "(Added in 1.0.78)"
29808 msgstr ""
29809
29810 #. type: =head2
29811 #: ../src/guestfs-actions.pod:5436
29812 msgid "guestfs_part_del"
29813 msgstr ""
29814
29815 #. type: verbatim
29816 #: ../src/guestfs-actions.pod:5438
29817 #, no-wrap
29818 msgid ""
29819 " int\n"
29820 " guestfs_part_del (guestfs_h *g,\n"
29821 "                   const char *device,\n"
29822 "                   int partnum);\n"
29823 "\n"
29824 msgstr ""
29825
29826 #. type: =head2
29827 #: ../src/guestfs-actions.pod:5453
29828 msgid "guestfs_part_disk"
29829 msgstr ""
29830
29831 #. type: verbatim
29832 #: ../src/guestfs-actions.pod:5455
29833 #, no-wrap
29834 msgid ""
29835 " int\n"
29836 " guestfs_part_disk (guestfs_h *g,\n"
29837 "                    const char *device,\n"
29838 "                    const char *parttype);\n"
29839 "\n"
29840 msgstr ""
29841
29842 #. type: textblock
29843 #: ../src/guestfs-actions.pod:5460
29844 msgid ""
29845 "This command is simply a combination of C<guestfs_part_init> followed by "
29846 "C<guestfs_part_add> to create a single primary partition covering the whole "
29847 "disk."
29848 msgstr ""
29849
29850 #. type: textblock
29851 #: ../src/guestfs-actions.pod:5464
29852 msgid ""
29853 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29854 "possible values are described in C<guestfs_part_init>."
29855 msgstr ""
29856
29857 #. type: =head2
29858 #: ../src/guestfs-actions.pod:5474
29859 msgid "guestfs_part_get_bootable"
29860 msgstr ""
29861
29862 #. type: verbatim
29863 #: ../src/guestfs-actions.pod:5476
29864 #, no-wrap
29865 msgid ""
29866 " int\n"
29867 " guestfs_part_get_bootable (guestfs_h *g,\n"
29868 "                            const char *device,\n"
29869 "                            int partnum);\n"
29870 "\n"
29871 msgstr ""
29872
29873 #. type: textblock
29874 #: ../src/guestfs-actions.pod:5484
29875 msgid "See also C<guestfs_part_set_bootable>."
29876 msgstr ""
29877
29878 #. type: =head2
29879 #: ../src/guestfs-actions.pod:5490
29880 msgid "guestfs_part_get_mbr_id"
29881 msgstr ""
29882
29883 #. type: verbatim
29884 #: ../src/guestfs-actions.pod:5492
29885 #, no-wrap
29886 msgid ""
29887 " int\n"
29888 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29889 "                          const char *device,\n"
29890 "                          int partnum);\n"
29891 "\n"
29892 msgstr ""
29893
29894 #. type: textblock
29895 #: ../src/guestfs-actions.pod:5500 ../src/guestfs-actions.pod:5682
29896 msgid ""
29897 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29898 "undefined results for other partition table types (see "
29899 "C<guestfs_part_get_parttype>)."
29900 msgstr ""
29901
29902 #. type: =head2
29903 #: ../src/guestfs-actions.pod:5508
29904 msgid "guestfs_part_get_parttype"
29905 msgstr ""
29906
29907 #. type: verbatim
29908 #: ../src/guestfs-actions.pod:5510
29909 #, no-wrap
29910 msgid ""
29911 " char *\n"
29912 " guestfs_part_get_parttype (guestfs_h *g,\n"
29913 "                            const char *device);\n"
29914 "\n"
29915 msgstr ""
29916
29917 #. type: textblock
29918 #: ../src/guestfs-actions.pod:5517
29919 msgid ""
29920 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29921 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29922 "possible, although unusual.  See C<guestfs_part_init> for a full list."
29923 msgstr ""
29924
29925 #. type: =head2
29926 #: ../src/guestfs-actions.pod:5527
29927 msgid "guestfs_part_init"
29928 msgstr ""
29929
29930 #. type: verbatim
29931 #: ../src/guestfs-actions.pod:5529
29932 #, no-wrap
29933 msgid ""
29934 " int\n"
29935 " guestfs_part_init (guestfs_h *g,\n"
29936 "                    const char *device,\n"
29937 "                    const char *parttype);\n"
29938 "\n"
29939 msgstr ""
29940
29941 #. type: textblock
29942 #: ../src/guestfs-actions.pod:5538
29943 msgid ""
29944 "Initially there are no partitions.  Following this, you should call "
29945 "C<guestfs_part_add> for each partition required."
29946 msgstr ""
29947
29948 #. type: =head2
29949 #: ../src/guestfs-actions.pod:5611
29950 msgid "guestfs_part_list"
29951 msgstr "guestfs_part_list"
29952
29953 #. type: verbatim
29954 #: ../src/guestfs-actions.pod:5613
29955 #, no-wrap
29956 msgid ""
29957 " struct guestfs_partition_list *\n"
29958 " guestfs_part_list (guestfs_h *g,\n"
29959 "                    const char *device);\n"
29960 "\n"
29961 msgstr ""
29962 " struct guestfs_partition_list *\n"
29963 " guestfs_part_list (guestfs_h *g,\n"
29964 "                    const char *device);\n"
29965 "\n"
29966
29967 #. type: textblock
29968 #: ../src/guestfs-actions.pod:5630
29969 msgid ""
29970 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29971 "the device's sector size, see C<guestfs_blockdev_getss>."
29972 msgstr ""
29973
29974 #. type: textblock
29975 #: ../src/guestfs-actions.pod:5643
29976 msgid ""
29977 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29978 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
29979 "use>."
29980 msgstr ""
29981
29982 #. type: =head2
29983 #: ../src/guestfs-actions.pod:5649
29984 msgid "guestfs_part_set_bootable"
29985 msgstr ""
29986
29987 #. type: verbatim
29988 #: ../src/guestfs-actions.pod:5651
29989 #, no-wrap
29990 msgid ""
29991 " int\n"
29992 " guestfs_part_set_bootable (guestfs_h *g,\n"
29993 "                            const char *device,\n"
29994 "                            int partnum,\n"
29995 "                            int bootable);\n"
29996 "\n"
29997 msgstr ""
29998
29999 #. type: =head2
30000 #: ../src/guestfs-actions.pod:5668
30001 msgid "guestfs_part_set_mbr_id"
30002 msgstr ""
30003
30004 #. type: verbatim
30005 #: ../src/guestfs-actions.pod:5670
30006 #, no-wrap
30007 msgid ""
30008 " int\n"
30009 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
30010 "                          const char *device,\n"
30011 "                          int partnum,\n"
30012 "                          int idbyte);\n"
30013 "\n"
30014 msgstr ""
30015
30016 #. type: =head2
30017 #: ../src/guestfs-actions.pod:5690
30018 msgid "guestfs_part_set_name"
30019 msgstr ""
30020
30021 #. type: verbatim
30022 #: ../src/guestfs-actions.pod:5692
30023 #, no-wrap
30024 msgid ""
30025 " int\n"
30026 " guestfs_part_set_name (guestfs_h *g,\n"
30027 "                        const char *device,\n"
30028 "                        int partnum,\n"
30029 "                        const char *name);\n"
30030 "\n"
30031 msgstr ""
30032
30033 #. type: =head2
30034 #: ../src/guestfs-actions.pod:5708
30035 msgid "guestfs_part_to_dev"
30036 msgstr ""
30037
30038 #. type: verbatim
30039 #: ../src/guestfs-actions.pod:5710
30040 #, no-wrap
30041 msgid ""
30042 " char *\n"
30043 " guestfs_part_to_dev (guestfs_h *g,\n"
30044 "                      const char *partition);\n"
30045 "\n"
30046 msgstr ""
30047
30048 #. type: textblock
30049 #: ../src/guestfs-actions.pod:5718
30050 msgid ""
30051 "The named partition must exist, for example as a string returned from "
30052 "C<guestfs_list_partitions>."
30053 msgstr ""
30054
30055 #. type: =head2
30056 #: ../src/guestfs-actions.pod:5726
30057 msgid "guestfs_ping_daemon"
30058 msgstr ""
30059
30060 #. type: verbatim
30061 #: ../src/guestfs-actions.pod:5728
30062 #, no-wrap
30063 msgid ""
30064 " int\n"
30065 " guestfs_ping_daemon (guestfs_h *g);\n"
30066 "\n"
30067 msgstr ""
30068
30069 #. type: =head2
30070 #: ../src/guestfs-actions.pod:5740
30071 msgid "guestfs_pread"
30072 msgstr ""
30073
30074 #. type: verbatim
30075 #: ../src/guestfs-actions.pod:5742
30076 #, no-wrap
30077 msgid ""
30078 " char *\n"
30079 " guestfs_pread (guestfs_h *g,\n"
30080 "                const char *path,\n"
30081 "                int count,\n"
30082 "                int64_t offset,\n"
30083 "                size_t *size_r);\n"
30084 "\n"
30085 msgstr ""
30086
30087 #. type: textblock
30088 #: ../src/guestfs-actions.pod:5755
30089 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
30090 msgstr ""
30091
30092 #. type: =head2
30093 #: ../src/guestfs-actions.pod:5766
30094 msgid "guestfs_pread_device"
30095 msgstr ""
30096
30097 #. type: verbatim
30098 #: ../src/guestfs-actions.pod:5768
30099 #, no-wrap
30100 msgid ""
30101 " char *\n"
30102 " guestfs_pread_device (guestfs_h *g,\n"
30103 "                       const char *device,\n"
30104 "                       int count,\n"
30105 "                       int64_t offset,\n"
30106 "                       size_t *size_r);\n"
30107 "\n"
30108 msgstr ""
30109
30110 #. type: textblock
30111 #: ../src/guestfs-actions.pod:5781
30112 msgid "See also C<guestfs_pread>."
30113 msgstr ""
30114
30115 #. type: textblock
30116 #: ../src/guestfs-actions.pod:5790
30117 msgid "(Added in 1.5.21)"
30118 msgstr ""
30119
30120 #. type: =head2
30121 #: ../src/guestfs-actions.pod:5792
30122 msgid "guestfs_pvcreate"
30123 msgstr ""
30124
30125 #. type: verbatim
30126 #: ../src/guestfs-actions.pod:5794
30127 #, no-wrap
30128 msgid ""
30129 " int\n"
30130 " guestfs_pvcreate (guestfs_h *g,\n"
30131 "                   const char *device);\n"
30132 "\n"
30133 msgstr ""
30134
30135 #. type: =head2
30136 #: ../src/guestfs-actions.pod:5806
30137 msgid "guestfs_pvremove"
30138 msgstr ""
30139
30140 #. type: verbatim
30141 #: ../src/guestfs-actions.pod:5808
30142 #, no-wrap
30143 msgid ""
30144 " int\n"
30145 " guestfs_pvremove (guestfs_h *g,\n"
30146 "                   const char *device);\n"
30147 "\n"
30148 msgstr ""
30149
30150 #. type: =head2
30151 #: ../src/guestfs-actions.pod:5823
30152 msgid "guestfs_pvresize"
30153 msgstr ""
30154
30155 #. type: verbatim
30156 #: ../src/guestfs-actions.pod:5825
30157 #, no-wrap
30158 msgid ""
30159 " int\n"
30160 " guestfs_pvresize (guestfs_h *g,\n"
30161 "                   const char *device);\n"
30162 "\n"
30163 msgstr ""
30164
30165 #. type: =head2
30166 #: ../src/guestfs-actions.pod:5836
30167 msgid "guestfs_pvresize_size"
30168 msgstr ""
30169
30170 #. type: verbatim
30171 #: ../src/guestfs-actions.pod:5838
30172 #, no-wrap
30173 msgid ""
30174 " int\n"
30175 " guestfs_pvresize_size (guestfs_h *g,\n"
30176 "                        const char *device,\n"
30177 "                        int64_t size);\n"
30178 "\n"
30179 msgstr ""
30180
30181 #. type: textblock
30182 #: ../src/guestfs-actions.pod:5843
30183 msgid ""
30184 "This command is the same as C<guestfs_pvresize> except that it allows you to "
30185 "specify the new size (in bytes) explicitly."
30186 msgstr ""
30187
30188 #. type: =head2
30189 #: ../src/guestfs-actions.pod:5850
30190 msgid "guestfs_pvs"
30191 msgstr ""
30192
30193 #. type: verbatim
30194 #: ../src/guestfs-actions.pod:5852
30195 #, no-wrap
30196 msgid ""
30197 " char **\n"
30198 " guestfs_pvs (guestfs_h *g);\n"
30199 "\n"
30200 msgstr ""
30201
30202 #. type: textblock
30203 #: ../src/guestfs-actions.pod:5861
30204 msgid "See also C<guestfs_pvs_full>."
30205 msgstr ""
30206
30207 #. type: =head2
30208 #: ../src/guestfs-actions.pod:5869
30209 msgid "guestfs_pvs_full"
30210 msgstr ""
30211
30212 #. type: verbatim
30213 #: ../src/guestfs-actions.pod:5871
30214 #, no-wrap
30215 msgid ""
30216 " struct guestfs_lvm_pv_list *\n"
30217 " guestfs_pvs_full (guestfs_h *g);\n"
30218 "\n"
30219 msgstr ""
30220
30221 #. type: textblock
30222 #: ../src/guestfs-actions.pod:5877
30223 msgid ""
30224 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
30225 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
30226 msgstr ""
30227
30228 #. type: =head2
30229 #: ../src/guestfs-actions.pod:5883
30230 msgid "guestfs_pvuuid"
30231 msgstr ""
30232
30233 #. type: verbatim
30234 #: ../src/guestfs-actions.pod:5885
30235 #, no-wrap
30236 msgid ""
30237 " char *\n"
30238 " guestfs_pvuuid (guestfs_h *g,\n"
30239 "                 const char *device);\n"
30240 "\n"
30241 msgstr ""
30242
30243 #. type: =head2
30244 #: ../src/guestfs-actions.pod:5896
30245 msgid "guestfs_pwrite"
30246 msgstr ""
30247
30248 #. type: verbatim
30249 #: ../src/guestfs-actions.pod:5898
30250 #, no-wrap
30251 msgid ""
30252 " int\n"
30253 " guestfs_pwrite (guestfs_h *g,\n"
30254 "                 const char *path,\n"
30255 "                 const char *content,\n"
30256 "                 size_t content_size,\n"
30257 "                 int64_t offset);\n"
30258 "\n"
30259 msgstr ""
30260
30261 #. type: textblock
30262 #: ../src/guestfs-actions.pod:5914
30263 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
30264 msgstr ""
30265
30266 #. type: =head2
30267 #: ../src/guestfs-actions.pod:5923
30268 msgid "guestfs_pwrite_device"
30269 msgstr ""
30270
30271 #. type: verbatim
30272 #: ../src/guestfs-actions.pod:5925
30273 #, no-wrap
30274 msgid ""
30275 " int\n"
30276 " guestfs_pwrite_device (guestfs_h *g,\n"
30277 "                        const char *device,\n"
30278 "                        const char *content,\n"
30279 "                        size_t content_size,\n"
30280 "                        int64_t offset);\n"
30281 "\n"
30282 msgstr ""
30283
30284 #. type: textblock
30285 #: ../src/guestfs-actions.pod:5940
30286 msgid "See also C<guestfs_pwrite>."
30287 msgstr ""
30288
30289 #. type: textblock
30290 #: ../src/guestfs-actions.pod:5947
30291 msgid "(Added in 1.5.20)"
30292 msgstr ""
30293
30294 #. type: =head2
30295 #: ../src/guestfs-actions.pod:5949
30296 msgid "guestfs_read_file"
30297 msgstr ""
30298
30299 #. type: verbatim
30300 #: ../src/guestfs-actions.pod:5951
30301 #, no-wrap
30302 msgid ""
30303 " char *\n"
30304 " guestfs_read_file (guestfs_h *g,\n"
30305 "                    const char *path,\n"
30306 "                    size_t *size_r);\n"
30307 "\n"
30308 msgstr ""
30309
30310 #. type: textblock
30311 #: ../src/guestfs-actions.pod:5959
30312 msgid ""
30313 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
30314 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
30315 "function is limited in the total size of file that can be handled."
30316 msgstr ""
30317
30318 #. type: textblock
30319 #: ../src/guestfs-actions.pod:5971
30320 msgid "(Added in 1.0.63)"
30321 msgstr ""
30322
30323 #. type: =head2
30324 #: ../src/guestfs-actions.pod:5973
30325 msgid "guestfs_read_lines"
30326 msgstr ""
30327
30328 #. type: verbatim
30329 #: ../src/guestfs-actions.pod:5975
30330 #, no-wrap
30331 msgid ""
30332 " char **\n"
30333 " guestfs_read_lines (guestfs_h *g,\n"
30334 "                     const char *path);\n"
30335 "\n"
30336 msgstr ""
30337
30338 #. type: textblock
30339 #: ../src/guestfs-actions.pod:5984
30340 msgid ""
30341 "Note that this function cannot correctly handle binary files (specifically, "
30342 "files containing C<\\0> character which is treated as end of line).  For "
30343 "those you need to use the C<guestfs_read_file> function which has a more "
30344 "complex interface."
30345 msgstr ""
30346
30347 #. type: =head2
30348 #: ../src/guestfs-actions.pod:5995
30349 msgid "guestfs_readdir"
30350 msgstr ""
30351
30352 #. type: verbatim
30353 #: ../src/guestfs-actions.pod:5997
30354 #, no-wrap
30355 msgid ""
30356 " struct guestfs_dirent_list *\n"
30357 " guestfs_readdir (guestfs_h *g,\n"
30358 "                  const char *dir);\n"
30359 "\n"
30360 msgstr ""
30361
30362 #. type: textblock
30363 #: ../src/guestfs-actions.pod:6051
30364 msgid ""
30365 "This function is primarily intended for use by programs.  To get a simple "
30366 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
30367 "consumption, use C<guestfs_ll>."
30368 msgstr ""
30369
30370 #. type: textblock
30371 #: ../src/guestfs-actions.pod:6055
30372 msgid ""
30373 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
30374 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
30375 msgstr ""
30376
30377 #. type: =head2
30378 #: ../src/guestfs-actions.pod:6061
30379 msgid "guestfs_readlink"
30380 msgstr ""
30381
30382 #. type: verbatim
30383 #: ../src/guestfs-actions.pod:6063
30384 #, no-wrap
30385 msgid ""
30386 " char *\n"
30387 " guestfs_readlink (guestfs_h *g,\n"
30388 "                   const char *path);\n"
30389 "\n"
30390 msgstr ""
30391
30392 #. type: =head2
30393 #: ../src/guestfs-actions.pod:6074
30394 msgid "guestfs_readlinklist"
30395 msgstr ""
30396
30397 #. type: verbatim
30398 #: ../src/guestfs-actions.pod:6076
30399 #, no-wrap
30400 msgid ""
30401 " char **\n"
30402 " guestfs_readlinklist (guestfs_h *g,\n"
30403 "                       const char *path,\n"
30404 "                       char *const *names);\n"
30405 "\n"
30406 msgstr ""
30407
30408 #. type: =head2
30409 #: ../src/guestfs-actions.pod:6109
30410 msgid "guestfs_realpath"
30411 msgstr ""
30412
30413 #. type: verbatim
30414 #: ../src/guestfs-actions.pod:6111
30415 #, no-wrap
30416 msgid ""
30417 " char *\n"
30418 " guestfs_realpath (guestfs_h *g,\n"
30419 "                   const char *path);\n"
30420 "\n"
30421 msgstr ""
30422
30423 #. type: =head2
30424 #: ../src/guestfs-actions.pod:6123
30425 msgid "guestfs_removexattr"
30426 msgstr ""
30427
30428 #. type: verbatim
30429 #: ../src/guestfs-actions.pod:6125
30430 #, no-wrap
30431 msgid ""
30432 " int\n"
30433 " guestfs_removexattr (guestfs_h *g,\n"
30434 "                      const char *xattr,\n"
30435 "                      const char *path);\n"
30436 "\n"
30437 msgstr ""
30438
30439 #. type: textblock
30440 #: ../src/guestfs-actions.pod:6133
30441 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
30442 msgstr ""
30443
30444 #. type: =head2
30445 #: ../src/guestfs-actions.pod:6139
30446 msgid "guestfs_resize2fs"
30447 msgstr ""
30448
30449 #. type: verbatim
30450 #: ../src/guestfs-actions.pod:6141
30451 #, no-wrap
30452 msgid ""
30453 " int\n"
30454 " guestfs_resize2fs (guestfs_h *g,\n"
30455 "                    const char *device);\n"
30456 "\n"
30457 msgstr ""
30458
30459 #. type: textblock
30460 #: ../src/guestfs-actions.pod:6148
30461 msgid ""
30462 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
30463 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
30464 "sometimes gives an error about this and sometimes not.  In any case, it is "
30465 "always safe to call C<guestfs_e2fsck_f> before calling this function."
30466 msgstr ""
30467
30468 #. type: =head2
30469 #: ../src/guestfs-actions.pod:6158
30470 msgid "guestfs_resize2fs_M"
30471 msgstr ""
30472
30473 #. type: verbatim
30474 #: ../src/guestfs-actions.pod:6160
30475 #, no-wrap
30476 msgid ""
30477 " int\n"
30478 " guestfs_resize2fs_M (guestfs_h *g,\n"
30479 "                      const char *device);\n"
30480 "\n"
30481 msgstr ""
30482
30483 #. type: textblock
30484 #: ../src/guestfs-actions.pod:6164
30485 msgid ""
30486 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
30487 "resized to its minimum size.  This works like the I<-M> option to the "
30488 "C<resize2fs> command."
30489 msgstr ""
30490
30491 #. type: textblock
30492 #: ../src/guestfs-actions.pod:6168
30493 msgid ""
30494 "To get the resulting size of the filesystem you should call "
30495 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
30496 "These two numbers, multiplied together, give the resulting size of the "
30497 "minimal filesystem in bytes."
30498 msgstr ""
30499
30500 #. type: =head2
30501 #: ../src/guestfs-actions.pod:6177
30502 msgid "guestfs_resize2fs_size"
30503 msgstr ""
30504
30505 #. type: verbatim
30506 #: ../src/guestfs-actions.pod:6179
30507 #, no-wrap
30508 msgid ""
30509 " int\n"
30510 " guestfs_resize2fs_size (guestfs_h *g,\n"
30511 "                         const char *device,\n"
30512 "                         int64_t size);\n"
30513 "\n"
30514 msgstr ""
30515
30516 #. type: textblock
30517 #: ../src/guestfs-actions.pod:6184
30518 msgid ""
30519 "This command is the same as C<guestfs_resize2fs> except that it allows you "
30520 "to specify the new size (in bytes) explicitly."
30521 msgstr ""
30522
30523 #. type: =head2
30524 #: ../src/guestfs-actions.pod:6191
30525 msgid "guestfs_rm"
30526 msgstr ""
30527
30528 #. type: verbatim
30529 #: ../src/guestfs-actions.pod:6193
30530 #, no-wrap
30531 msgid ""
30532 " int\n"
30533 " guestfs_rm (guestfs_h *g,\n"
30534 "             const char *path);\n"
30535 "\n"
30536 msgstr ""
30537
30538 #. type: =head2
30539 #: ../src/guestfs-actions.pod:6203
30540 msgid "guestfs_rm_rf"
30541 msgstr ""
30542
30543 #. type: verbatim
30544 #: ../src/guestfs-actions.pod:6205
30545 #, no-wrap
30546 msgid ""
30547 " int\n"
30548 " guestfs_rm_rf (guestfs_h *g,\n"
30549 "                const char *path);\n"
30550 "\n"
30551 msgstr ""
30552
30553 #. type: =head2
30554 #: ../src/guestfs-actions.pod:6217
30555 msgid "guestfs_rmdir"
30556 msgstr ""
30557
30558 #. type: verbatim
30559 #: ../src/guestfs-actions.pod:6219
30560 #, no-wrap
30561 msgid ""
30562 " int\n"
30563 " guestfs_rmdir (guestfs_h *g,\n"
30564 "                const char *path);\n"
30565 "\n"
30566 msgstr ""
30567
30568 #. type: =head2
30569 #: ../src/guestfs-actions.pod:6229
30570 msgid "guestfs_rmmountpoint"
30571 msgstr ""
30572
30573 #. type: verbatim
30574 #: ../src/guestfs-actions.pod:6231
30575 #, no-wrap
30576 msgid ""
30577 " int\n"
30578 " guestfs_rmmountpoint (guestfs_h *g,\n"
30579 "                       const char *exemptpath);\n"
30580 "\n"
30581 msgstr ""
30582
30583 #. type: textblock
30584 #: ../src/guestfs-actions.pod:6235
30585 msgid ""
30586 "This calls removes a mountpoint that was previously created with "
30587 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
30588 msgstr ""
30589
30590 #. type: =head2
30591 #: ../src/guestfs-actions.pod:6243
30592 msgid "guestfs_scrub_device"
30593 msgstr ""
30594
30595 #. type: verbatim
30596 #: ../src/guestfs-actions.pod:6245
30597 #, no-wrap
30598 msgid ""
30599 " int\n"
30600 " guestfs_scrub_device (guestfs_h *g,\n"
30601 "                       const char *device);\n"
30602 "\n"
30603 msgstr ""
30604
30605 #. type: textblock
30606 #: ../src/guestfs-actions.pod:6260 ../src/guestfs-actions.pod:6278
30607 #: ../src/guestfs-actions.pod:6297
30608 msgid "(Added in 1.0.52)"
30609 msgstr ""
30610
30611 #. type: =head2
30612 #: ../src/guestfs-actions.pod:6262
30613 msgid "guestfs_scrub_file"
30614 msgstr ""
30615
30616 #. type: verbatim
30617 #: ../src/guestfs-actions.pod:6264
30618 #, no-wrap
30619 msgid ""
30620 " int\n"
30621 " guestfs_scrub_file (guestfs_h *g,\n"
30622 "                     const char *file);\n"
30623 "\n"
30624 msgstr ""
30625
30626 #. type: =head2
30627 #: ../src/guestfs-actions.pod:6280
30628 msgid "guestfs_scrub_freespace"
30629 msgstr ""
30630
30631 #. type: verbatim
30632 #: ../src/guestfs-actions.pod:6282
30633 #, no-wrap
30634 msgid ""
30635 " int\n"
30636 " guestfs_scrub_freespace (guestfs_h *g,\n"
30637 "                          const char *dir);\n"
30638 "\n"
30639 msgstr ""
30640
30641 #. type: textblock
30642 #: ../src/guestfs-actions.pod:6286
30643 msgid ""
30644 "This command creates the directory C<dir> and then fills it with files until "
30645 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
30646 "and deletes them.  The intention is to scrub any free space on the partition "
30647 "containing C<dir>."
30648 msgstr ""
30649
30650 #. type: =head2
30651 #: ../src/guestfs-actions.pod:6299
30652 msgid "guestfs_set_append"
30653 msgstr ""
30654
30655 #. type: verbatim
30656 #: ../src/guestfs-actions.pod:6301
30657 #, no-wrap
30658 msgid ""
30659 " int\n"
30660 " guestfs_set_append (guestfs_h *g,\n"
30661 "                     const char *append);\n"
30662 "\n"
30663 msgstr ""
30664
30665 #. type: =head2
30666 #: ../src/guestfs-actions.pod:6318
30667 msgid "guestfs_set_attach_method"
30668 msgstr ""
30669
30670 #. type: verbatim
30671 #: ../src/guestfs-actions.pod:6320
30672 #, no-wrap
30673 msgid ""
30674 " int\n"
30675 " guestfs_set_attach_method (guestfs_h *g,\n"
30676 "                            const char *attachmethod);\n"
30677 "\n"
30678 msgstr ""
30679
30680 #. type: =head2
30681 #: ../src/guestfs-actions.pod:6348
30682 msgid "guestfs_set_autosync"
30683 msgstr ""
30684
30685 #. type: verbatim
30686 #: ../src/guestfs-actions.pod:6350
30687 #, no-wrap
30688 msgid ""
30689 " int\n"
30690 " guestfs_set_autosync (guestfs_h *g,\n"
30691 "                       int autosync);\n"
30692 "\n"
30693 msgstr ""
30694
30695 #. type: =head2
30696 #: ../src/guestfs-actions.pod:6366
30697 msgid "guestfs_set_direct"
30698 msgstr ""
30699
30700 #. type: verbatim
30701 #: ../src/guestfs-actions.pod:6368
30702 #, no-wrap
30703 msgid ""
30704 " int\n"
30705 " guestfs_set_direct (guestfs_h *g,\n"
30706 "                     int direct);\n"
30707 "\n"
30708 msgstr ""
30709
30710 #. type: textblock
30711 #: ../src/guestfs-actions.pod:6376
30712 msgid ""
30713 "One consequence of this is that log messages aren't caught by the library "
30714 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
30715 "stdout."
30716 msgstr ""
30717
30718 #. type: =head2
30719 #: ../src/guestfs-actions.pod:6389
30720 msgid "guestfs_set_e2label"
30721 msgstr ""
30722
30723 #. type: verbatim
30724 #: ../src/guestfs-actions.pod:6391
30725 #, no-wrap
30726 msgid ""
30727 " int\n"
30728 " guestfs_set_e2label (guestfs_h *g,\n"
30729 "                      const char *device,\n"
30730 "                      const char *label);\n"
30731 "\n"
30732 msgstr ""
30733
30734 #. type: textblock
30735 #: ../src/guestfs-actions.pod:6400
30736 msgid ""
30737 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
30738 "the existing label on a filesystem."
30739 msgstr ""
30740
30741 #. type: =head2
30742 #: ../src/guestfs-actions.pod:6407
30743 msgid "guestfs_set_e2uuid"
30744 msgstr ""
30745
30746 #. type: verbatim
30747 #: ../src/guestfs-actions.pod:6409
30748 #, no-wrap
30749 msgid ""
30750 " int\n"
30751 " guestfs_set_e2uuid (guestfs_h *g,\n"
30752 "                     const char *device,\n"
30753 "                     const char *uuid);\n"
30754 "\n"
30755 msgstr ""
30756
30757 #. type: textblock
30758 #: ../src/guestfs-actions.pod:6419
30759 msgid ""
30760 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
30761 "the existing UUID of a filesystem."
30762 msgstr ""
30763
30764 #. type: =head2
30765 #: ../src/guestfs-actions.pod:6426
30766 msgid "guestfs_set_memsize"
30767 msgstr ""
30768
30769 #. type: verbatim
30770 #: ../src/guestfs-actions.pod:6428
30771 #, no-wrap
30772 msgid ""
30773 " int\n"
30774 " guestfs_set_memsize (guestfs_h *g,\n"
30775 "                      int memsize);\n"
30776 "\n"
30777 msgstr ""
30778
30779 #. type: textblock
30780 #: ../src/guestfs-actions.pod:6432
30781 msgid ""
30782 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
30783 "This only has any effect if called before C<guestfs_launch>."
30784 msgstr ""
30785
30786 #. type: =head2
30787 #: ../src/guestfs-actions.pod:6447
30788 msgid "guestfs_set_network"
30789 msgstr ""
30790
30791 #. type: verbatim
30792 #: ../src/guestfs-actions.pod:6449
30793 #, no-wrap
30794 msgid ""
30795 " int\n"
30796 " guestfs_set_network (guestfs_h *g,\n"
30797 "                      int network);\n"
30798 "\n"
30799 msgstr ""
30800
30801 #. type: textblock
30802 #: ../src/guestfs-actions.pod:6459
30803 msgid ""
30804 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30805 "effect."
30806 msgstr ""
30807
30808 #. type: =head2
30809 #: ../src/guestfs-actions.pod:6466
30810 msgid "guestfs_set_path"
30811 msgstr ""
30812
30813 #. type: verbatim
30814 #: ../src/guestfs-actions.pod:6468
30815 #, no-wrap
30816 msgid ""
30817 " int\n"
30818 " guestfs_set_path (guestfs_h *g,\n"
30819 "                   const char *searchpath);\n"
30820 "\n"
30821 msgstr ""
30822
30823 #. type: =head2
30824 #: ../src/guestfs-actions.pod:6483
30825 msgid "guestfs_set_pgroup"
30826 msgstr ""
30827
30828 #. type: verbatim
30829 #: ../src/guestfs-actions.pod:6485
30830 #, no-wrap
30831 msgid ""
30832 " int\n"
30833 " guestfs_set_pgroup (guestfs_h *g,\n"
30834 "                     int pgroup);\n"
30835 "\n"
30836 msgstr ""
30837
30838 #. type: =head2
30839 #: ../src/guestfs-actions.pod:6502
30840 msgid "guestfs_set_qemu"
30841 msgstr ""
30842
30843 #. type: verbatim
30844 #: ../src/guestfs-actions.pod:6504
30845 #, no-wrap
30846 msgid ""
30847 " int\n"
30848 " guestfs_set_qemu (guestfs_h *g,\n"
30849 "                   const char *qemu);\n"
30850 "\n"
30851 msgstr ""
30852
30853 #. type: =head2
30854 #: ../src/guestfs-actions.pod:6530
30855 msgid "guestfs_set_recovery_proc"
30856 msgstr ""
30857
30858 #. type: verbatim
30859 #: ../src/guestfs-actions.pod:6532
30860 #, no-wrap
30861 msgid ""
30862 " int\n"
30863 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30864 "                            int recoveryproc);\n"
30865 "\n"
30866 msgstr ""
30867
30868 #. type: textblock
30869 #: ../src/guestfs-actions.pod:6536
30870 msgid ""
30871 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30872 "not create a recovery process.  The purpose of the recovery process is to "
30873 "stop runaway qemu processes in the case where the main program aborts "
30874 "abruptly."
30875 msgstr ""
30876
30877 #. type: textblock
30878 #: ../src/guestfs-actions.pod:6541
30879 msgid ""
30880 "This only has any effect if called before C<guestfs_launch>, and the default "
30881 "is true."
30882 msgstr ""
30883
30884 #. type: =head2
30885 #: ../src/guestfs-actions.pod:6554
30886 msgid "guestfs_set_selinux"
30887 msgstr ""
30888
30889 #. type: verbatim
30890 #: ../src/guestfs-actions.pod:6556
30891 #, no-wrap
30892 msgid ""
30893 " int\n"
30894 " guestfs_set_selinux (guestfs_h *g,\n"
30895 "                      int selinux);\n"
30896 "\n"
30897 msgstr ""
30898
30899 #. type: =head2
30900 #: ../src/guestfs-actions.pod:6573
30901 #, fuzzy
30902 #| msgid "guestfs_ln_s"
30903 msgid "guestfs_set_smp"
30904 msgstr "guestfs_ln_s"
30905
30906 #. type: verbatim
30907 #: ../src/guestfs-actions.pod:6575
30908 #, fuzzy, no-wrap
30909 #| msgid ""
30910 #| " int\n"
30911 #| " guestfs_mkdir_p (guestfs_h *g,\n"
30912 #| "                  const char *path);\n"
30913 #| "\n"
30914 msgid ""
30915 " int\n"
30916 " guestfs_set_smp (guestfs_h *g,\n"
30917 "                  int smp);\n"
30918 "\n"
30919 msgstr ""
30920 " int\n"
30921 " guestfs_mkdir_p (guestfs_h *g,\n"
30922 "                  const char *path);\n"
30923 "\n"
30924
30925 #. type: textblock
30926 #: ../src/guestfs-actions.pod:6583
30927 msgid "This function must be called before C<guestfs_launch>."
30928 msgstr ""
30929
30930 #. type: =head2
30931 #: ../src/guestfs-actions.pod:6587
30932 msgid "guestfs_set_trace"
30933 msgstr ""
30934
30935 #. type: verbatim
30936 #: ../src/guestfs-actions.pod:6589
30937 #, no-wrap
30938 msgid ""
30939 " int\n"
30940 " guestfs_set_trace (guestfs_h *g,\n"
30941 "                    int trace);\n"
30942 "\n"
30943 msgstr ""
30944
30945 #. type: textblock
30946 #: ../src/guestfs-actions.pod:6603
30947 msgid ""
30948 "Trace messages are normally sent to C<stderr>, unless you register a "
30949 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30950 msgstr ""
30951
30952 #. type: =head2
30953 #: ../src/guestfs-actions.pod:6611
30954 msgid "guestfs_set_verbose"
30955 msgstr ""
30956
30957 #. type: verbatim
30958 #: ../src/guestfs-actions.pod:6613
30959 #, no-wrap
30960 msgid ""
30961 " int\n"
30962 " guestfs_set_verbose (guestfs_h *g,\n"
30963 "                      int verbose);\n"
30964 "\n"
30965 msgstr ""
30966
30967 #. type: textblock
30968 #: ../src/guestfs-actions.pod:6622
30969 msgid ""
30970 "Verbose messages are normally sent to C<stderr>, unless you register a "
30971 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30972 msgstr ""
30973
30974 #. type: =head2
30975 #: ../src/guestfs-actions.pod:6630
30976 msgid "guestfs_setcon"
30977 msgstr ""
30978
30979 #. type: verbatim
30980 #: ../src/guestfs-actions.pod:6632
30981 #, no-wrap
30982 msgid ""
30983 " int\n"
30984 " guestfs_setcon (guestfs_h *g,\n"
30985 "                 const char *context);\n"
30986 "\n"
30987 msgstr ""
30988
30989 #. type: =head2
30990 #: ../src/guestfs-actions.pod:6645
30991 msgid "guestfs_setxattr"
30992 msgstr ""
30993
30994 #. type: verbatim
30995 #: ../src/guestfs-actions.pod:6647
30996 #, no-wrap
30997 msgid ""
30998 " int\n"
30999 " guestfs_setxattr (guestfs_h *g,\n"
31000 "                   const char *xattr,\n"
31001 "                   const char *val,\n"
31002 "                   int vallen,\n"
31003 "                   const char *path);\n"
31004 "\n"
31005 msgstr ""
31006
31007 #. type: textblock
31008 #: ../src/guestfs-actions.pod:6658
31009 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
31010 msgstr ""
31011
31012 #. type: =head2
31013 #: ../src/guestfs-actions.pod:6664
31014 msgid "guestfs_sfdisk"
31015 msgstr ""
31016
31017 #. type: verbatim
31018 #: ../src/guestfs-actions.pod:6666
31019 #, no-wrap
31020 msgid ""
31021 " int\n"
31022 " guestfs_sfdisk (guestfs_h *g,\n"
31023 "                 const char *device,\n"
31024 "                 int cyls,\n"
31025 "                 int heads,\n"
31026 "                 int sectors,\n"
31027 "                 char *const *lines);\n"
31028 "\n"
31029 msgstr ""
31030
31031 #. type: textblock
31032 #: ../src/guestfs-actions.pod:6674 ../src/guestfs-actions.pod:6718
31033 #: ../src/guestfs-actions.pod:6752
31034 msgid ""
31035 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
31036 "call instead."
31037 msgstr ""
31038
31039 #. type: textblock
31040 #: ../src/guestfs-actions.pod:6701
31041 msgid ""
31042 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
31043 msgstr ""
31044
31045 #. type: =head2
31046 #: ../src/guestfs-actions.pod:6711
31047 msgid "guestfs_sfdiskM"
31048 msgstr ""
31049
31050 #. type: verbatim
31051 #: ../src/guestfs-actions.pod:6713
31052 #, no-wrap
31053 msgid ""
31054 " int\n"
31055 " guestfs_sfdiskM (guestfs_h *g,\n"
31056 "                  const char *device,\n"
31057 "                  char *const *lines);\n"
31058 "\n"
31059 msgstr ""
31060
31061 #. type: textblock
31062 #: ../src/guestfs-actions.pod:6725
31063 msgid ""
31064 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
31065 "partition sizes are specified in megabytes only (rounded to the nearest "
31066 "cylinder) and you don't need to specify the cyls, heads and sectors "
31067 "parameters which were rarely if ever used anyway."
31068 msgstr ""
31069
31070 #. type: textblock
31071 #: ../src/guestfs-actions.pod:6731
31072 msgid ""
31073 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
31074 "C<guestfs_part_disk>"
31075 msgstr ""
31076
31077 #. type: =head2
31078 #: ../src/guestfs-actions.pod:6741
31079 msgid "guestfs_sfdisk_N"
31080 msgstr ""
31081
31082 #. type: verbatim
31083 #: ../src/guestfs-actions.pod:6743
31084 #, no-wrap
31085 msgid ""
31086 " int\n"
31087 " guestfs_sfdisk_N (guestfs_h *g,\n"
31088 "                   const char *device,\n"
31089 "                   int partnum,\n"
31090 "                   int cyls,\n"
31091 "                   int heads,\n"
31092 "                   int sectors,\n"
31093 "                   const char *line);\n"
31094 "\n"
31095 msgstr ""
31096
31097 #. type: textblock
31098 #: ../src/guestfs-actions.pod:6762
31099 msgid ""
31100 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
31101 "for the cyls/heads/sectors parameters."
31102 msgstr ""
31103
31104 #. type: textblock
31105 #: ../src/guestfs-actions.pod:6765
31106 msgid "See also: C<guestfs_part_add>"
31107 msgstr ""
31108
31109 #. type: =head2
31110 #: ../src/guestfs-actions.pod:6774
31111 msgid "guestfs_sfdisk_disk_geometry"
31112 msgstr ""
31113
31114 #. type: verbatim
31115 #: ../src/guestfs-actions.pod:6776
31116 #, no-wrap
31117 msgid ""
31118 " char *\n"
31119 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
31120 "                               const char *device);\n"
31121 "\n"
31122 msgstr ""
31123
31124 #. type: textblock
31125 #: ../src/guestfs-actions.pod:6780
31126 msgid ""
31127 "This displays the disk geometry of C<device> read from the partition table.  "
31128 "Especially in the case where the underlying block device has been resized, "
31129 "this can be different from the kernel's idea of the geometry (see "
31130 "C<guestfs_sfdisk_kernel_geometry>)."
31131 msgstr ""
31132
31133 #. type: =head2
31134 #: ../src/guestfs-actions.pod:6793
31135 msgid "guestfs_sfdisk_kernel_geometry"
31136 msgstr ""
31137
31138 #. type: verbatim
31139 #: ../src/guestfs-actions.pod:6795
31140 #, no-wrap
31141 msgid ""
31142 " char *\n"
31143 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
31144 "                                 const char *device);\n"
31145 "\n"
31146 msgstr ""
31147
31148 #. type: =head2
31149 #: ../src/guestfs-actions.pod:6809
31150 msgid "guestfs_sfdisk_l"
31151 msgstr ""
31152
31153 #. type: verbatim
31154 #: ../src/guestfs-actions.pod:6811
31155 #, no-wrap
31156 msgid ""
31157 " char *\n"
31158 " guestfs_sfdisk_l (guestfs_h *g,\n"
31159 "                   const char *device);\n"
31160 "\n"
31161 msgstr ""
31162
31163 #. type: textblock
31164 #: ../src/guestfs-actions.pod:6815
31165 msgid ""
31166 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
31167 "call instead."
31168 msgstr ""
31169
31170 #. type: textblock
31171 #: ../src/guestfs-actions.pod:6826
31172 msgid "See also: C<guestfs_part_list>"
31173 msgstr ""
31174
31175 #. type: =head2
31176 #: ../src/guestfs-actions.pod:6833
31177 msgid "guestfs_sh"
31178 msgstr ""
31179
31180 #. type: verbatim
31181 #: ../src/guestfs-actions.pod:6835
31182 #, no-wrap
31183 msgid ""
31184 " char *\n"
31185 " guestfs_sh (guestfs_h *g,\n"
31186 "             const char *command);\n"
31187 "\n"
31188 msgstr ""
31189
31190 #. type: textblock
31191 #: ../src/guestfs-actions.pod:6842
31192 msgid "This is like C<guestfs_command>, but passes the command to:"
31193 msgstr ""
31194
31195 #. type: textblock
31196 #: ../src/guestfs-actions.pod:6850
31197 msgid "All the provisos about C<guestfs_command> apply to this call."
31198 msgstr ""
31199
31200 #. type: =head2
31201 #: ../src/guestfs-actions.pod:6857
31202 msgid "guestfs_sh_lines"
31203 msgstr ""
31204
31205 #. type: verbatim
31206 #: ../src/guestfs-actions.pod:6859
31207 #, no-wrap
31208 msgid ""
31209 " char **\n"
31210 " guestfs_sh_lines (guestfs_h *g,\n"
31211 "                   const char *command);\n"
31212 "\n"
31213 msgstr ""
31214
31215 #. type: textblock
31216 #: ../src/guestfs-actions.pod:6863
31217 msgid ""
31218 "This is the same as C<guestfs_sh>, but splits the result into a list of "
31219 "lines."
31220 msgstr ""
31221
31222 #. type: textblock
31223 #: ../src/guestfs-actions.pod:6866
31224 msgid "See also: C<guestfs_command_lines>"
31225 msgstr ""
31226
31227 #. type: =head2
31228 #: ../src/guestfs-actions.pod:6874
31229 msgid "guestfs_sleep"
31230 msgstr ""
31231
31232 #. type: verbatim
31233 #: ../src/guestfs-actions.pod:6876
31234 #, no-wrap
31235 msgid ""
31236 " int\n"
31237 " guestfs_sleep (guestfs_h *g,\n"
31238 "                int secs);\n"
31239 "\n"
31240 msgstr ""
31241
31242 #. type: textblock
31243 #: ../src/guestfs-actions.pod:6884
31244 msgid "(Added in 1.0.41)"
31245 msgstr ""
31246
31247 #. type: =head2
31248 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-structs.pod:109
31249 msgid "guestfs_stat"
31250 msgstr ""
31251
31252 #. type: verbatim
31253 #: ../src/guestfs-actions.pod:6888
31254 #, no-wrap
31255 msgid ""
31256 " struct guestfs_stat *\n"
31257 " guestfs_stat (guestfs_h *g,\n"
31258 "               const char *path);\n"
31259 "\n"
31260 msgstr ""
31261
31262 #. type: =head2
31263 #: ../src/guestfs-actions.pod:6902 ../src/guestfs-structs.pod:135
31264 msgid "guestfs_statvfs"
31265 msgstr ""
31266
31267 #. type: verbatim
31268 #: ../src/guestfs-actions.pod:6904
31269 #, no-wrap
31270 msgid ""
31271 " struct guestfs_statvfs *\n"
31272 " guestfs_statvfs (guestfs_h *g,\n"
31273 "                  const char *path);\n"
31274 "\n"
31275 msgstr ""
31276
31277 #. type: textblock
31278 #: ../src/guestfs-actions.pod:6914
31279 msgid ""
31280 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
31281 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
31282 msgstr ""
31283
31284 #. type: =head2
31285 #: ../src/guestfs-actions.pod:6920
31286 msgid "guestfs_strings"
31287 msgstr ""
31288
31289 #. type: verbatim
31290 #: ../src/guestfs-actions.pod:6922
31291 #, no-wrap
31292 msgid ""
31293 " char **\n"
31294 " guestfs_strings (guestfs_h *g,\n"
31295 "                  const char *path);\n"
31296 "\n"
31297 msgstr ""
31298
31299 #. type: =head2
31300 #: ../src/guestfs-actions.pod:6938
31301 msgid "guestfs_strings_e"
31302 msgstr ""
31303
31304 #. type: verbatim
31305 #: ../src/guestfs-actions.pod:6940
31306 #, no-wrap
31307 msgid ""
31308 " char **\n"
31309 " guestfs_strings_e (guestfs_h *g,\n"
31310 "                    const char *encoding,\n"
31311 "                    const char *path);\n"
31312 "\n"
31313 msgstr ""
31314
31315 #. type: textblock
31316 #: ../src/guestfs-actions.pod:6945
31317 msgid ""
31318 "This is like the C<guestfs_strings> command, but allows you to specify the "
31319 "encoding of strings that are looked for in the source file C<path>."
31320 msgstr ""
31321
31322 #. type: textblock
31323 #: ../src/guestfs-actions.pod:6955
31324 msgid ""
31325 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
31326 "ISO-8859-X (this is what C<guestfs_strings> uses)."
31327 msgstr ""
31328
31329 #. type: =head2
31330 #: ../src/guestfs-actions.pod:6993
31331 msgid "guestfs_swapoff_device"
31332 msgstr ""
31333
31334 #. type: verbatim
31335 #: ../src/guestfs-actions.pod:6995
31336 #, no-wrap
31337 msgid ""
31338 " int\n"
31339 " guestfs_swapoff_device (guestfs_h *g,\n"
31340 "                         const char *device);\n"
31341 "\n"
31342 msgstr ""
31343
31344 #. type: textblock
31345 #: ../src/guestfs-actions.pod:6999
31346 msgid ""
31347 "This command disables the libguestfs appliance swap device or partition "
31348 "named C<device>.  See C<guestfs_swapon_device>."
31349 msgstr ""
31350
31351 #. type: =head2
31352 #: ../src/guestfs-actions.pod:7007
31353 msgid "guestfs_swapoff_file"
31354 msgstr ""
31355
31356 #. type: verbatim
31357 #: ../src/guestfs-actions.pod:7009
31358 #, no-wrap
31359 msgid ""
31360 " int\n"
31361 " guestfs_swapoff_file (guestfs_h *g,\n"
31362 "                       const char *file);\n"
31363 "\n"
31364 msgstr ""
31365
31366 #. type: =head2
31367 #: ../src/guestfs-actions.pod:7019
31368 msgid "guestfs_swapoff_label"
31369 msgstr ""
31370
31371 #. type: verbatim
31372 #: ../src/guestfs-actions.pod:7021
31373 #, no-wrap
31374 msgid ""
31375 " int\n"
31376 " guestfs_swapoff_label (guestfs_h *g,\n"
31377 "                        const char *label);\n"
31378 "\n"
31379 msgstr ""
31380
31381 #. type: =head2
31382 #: ../src/guestfs-actions.pod:7032
31383 msgid "guestfs_swapoff_uuid"
31384 msgstr ""
31385
31386 #. type: verbatim
31387 #: ../src/guestfs-actions.pod:7034
31388 #, no-wrap
31389 msgid ""
31390 " int\n"
31391 " guestfs_swapoff_uuid (guestfs_h *g,\n"
31392 "                       const char *uuid);\n"
31393 "\n"
31394 msgstr ""
31395
31396 #. type: =head2
31397 #: ../src/guestfs-actions.pod:7045
31398 msgid "guestfs_swapon_device"
31399 msgstr ""
31400
31401 #. type: verbatim
31402 #: ../src/guestfs-actions.pod:7047
31403 #, no-wrap
31404 msgid ""
31405 " int\n"
31406 " guestfs_swapon_device (guestfs_h *g,\n"
31407 "                        const char *device);\n"
31408 "\n"
31409 msgstr ""
31410
31411 #. type: textblock
31412 #: ../src/guestfs-actions.pod:7051
31413 msgid ""
31414 "This command enables the libguestfs appliance to use the swap device or "
31415 "partition named C<device>.  The increased memory is made available for all "
31416 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
31417 msgstr ""
31418
31419 #. type: =head2
31420 #: ../src/guestfs-actions.pod:7067
31421 msgid "guestfs_swapon_file"
31422 msgstr ""
31423
31424 #. type: verbatim
31425 #: ../src/guestfs-actions.pod:7069
31426 #, no-wrap
31427 msgid ""
31428 " int\n"
31429 " guestfs_swapon_file (guestfs_h *g,\n"
31430 "                      const char *file);\n"
31431 "\n"
31432 msgstr ""
31433
31434 #. type: textblock
31435 #: ../src/guestfs-actions.pod:7073
31436 msgid ""
31437 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
31438 "notes."
31439 msgstr ""
31440
31441 #. type: =head2
31442 #: ../src/guestfs-actions.pod:7080
31443 msgid "guestfs_swapon_label"
31444 msgstr ""
31445
31446 #. type: verbatim
31447 #: ../src/guestfs-actions.pod:7082
31448 #, no-wrap
31449 msgid ""
31450 " int\n"
31451 " guestfs_swapon_label (guestfs_h *g,\n"
31452 "                       const char *label);\n"
31453 "\n"
31454 msgstr ""
31455
31456 #. type: textblock
31457 #: ../src/guestfs-actions.pod:7086
31458 msgid ""
31459 "This command enables swap to a labeled swap partition.  See "
31460 "C<guestfs_swapon_device> for other notes."
31461 msgstr ""
31462
31463 #. type: =head2
31464 #: ../src/guestfs-actions.pod:7093
31465 msgid "guestfs_swapon_uuid"
31466 msgstr ""
31467
31468 #. type: verbatim
31469 #: ../src/guestfs-actions.pod:7095
31470 #, no-wrap
31471 msgid ""
31472 " int\n"
31473 " guestfs_swapon_uuid (guestfs_h *g,\n"
31474 "                      const char *uuid);\n"
31475 "\n"
31476 msgstr ""
31477
31478 #. type: textblock
31479 #: ../src/guestfs-actions.pod:7099
31480 msgid ""
31481 "This command enables swap to a swap partition with the given UUID.  See "
31482 "C<guestfs_swapon_device> for other notes."
31483 msgstr ""
31484
31485 #. type: =head2
31486 #: ../src/guestfs-actions.pod:7106
31487 msgid "guestfs_sync"
31488 msgstr ""
31489
31490 #. type: verbatim
31491 #: ../src/guestfs-actions.pod:7108
31492 #, no-wrap
31493 msgid ""
31494 " int\n"
31495 " guestfs_sync (guestfs_h *g);\n"
31496 "\n"
31497 msgstr ""
31498
31499 #. type: =head2
31500 #: ../src/guestfs-actions.pod:7121
31501 msgid "guestfs_tail"
31502 msgstr ""
31503
31504 #. type: verbatim
31505 #: ../src/guestfs-actions.pod:7123
31506 #, no-wrap
31507 msgid ""
31508 " char **\n"
31509 " guestfs_tail (guestfs_h *g,\n"
31510 "               const char *path);\n"
31511 "\n"
31512 msgstr ""
31513
31514 #. type: =head2
31515 #: ../src/guestfs-actions.pod:7139
31516 msgid "guestfs_tail_n"
31517 msgstr ""
31518
31519 #. type: verbatim
31520 #: ../src/guestfs-actions.pod:7141
31521 #, no-wrap
31522 msgid ""
31523 " char **\n"
31524 " guestfs_tail_n (guestfs_h *g,\n"
31525 "                 int nrlines,\n"
31526 "                 const char *path);\n"
31527 "\n"
31528 msgstr ""
31529
31530 #. type: =head2
31531 #: ../src/guestfs-actions.pod:7163
31532 msgid "guestfs_tar_in"
31533 msgstr ""
31534
31535 #. type: verbatim
31536 #: ../src/guestfs-actions.pod:7165
31537 #, no-wrap
31538 msgid ""
31539 " int\n"
31540 " guestfs_tar_in (guestfs_h *g,\n"
31541 "                 const char *tarfile,\n"
31542 "                 const char *directory);\n"
31543 "\n"
31544 msgstr ""
31545
31546 #. type: textblock
31547 #: ../src/guestfs-actions.pod:7173
31548 msgid ""
31549 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
31550 msgstr ""
31551
31552 #. type: textblock
31553 #: ../src/guestfs-actions.pod:7178 ../src/guestfs-actions.pod:7195
31554 #: ../src/guestfs-actions.pod:7211 ../src/guestfs-actions.pod:7227
31555 msgid "(Added in 1.0.3)"
31556 msgstr ""
31557
31558 #. type: =head2
31559 #: ../src/guestfs-actions.pod:7180
31560 msgid "guestfs_tar_out"
31561 msgstr ""
31562
31563 #. type: verbatim
31564 #: ../src/guestfs-actions.pod:7182
31565 #, no-wrap
31566 msgid ""
31567 " int\n"
31568 " guestfs_tar_out (guestfs_h *g,\n"
31569 "                  const char *directory,\n"
31570 "                  const char *tarfile);\n"
31571 "\n"
31572 msgstr ""
31573
31574 #. type: textblock
31575 #: ../src/guestfs-actions.pod:7190
31576 msgid ""
31577 "To download a compressed tarball, use C<guestfs_tgz_out> or "
31578 "C<guestfs_txz_out>."
31579 msgstr ""
31580
31581 #. type: =head2
31582 #: ../src/guestfs-actions.pod:7197
31583 msgid "guestfs_tgz_in"
31584 msgstr ""
31585
31586 #. type: verbatim
31587 #: ../src/guestfs-actions.pod:7199
31588 #, no-wrap
31589 msgid ""
31590 " int\n"
31591 " guestfs_tgz_in (guestfs_h *g,\n"
31592 "                 const char *tarball,\n"
31593 "                 const char *directory);\n"
31594 "\n"
31595 msgstr ""
31596
31597 #. type: textblock
31598 #: ../src/guestfs-actions.pod:7207
31599 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
31600 msgstr ""
31601
31602 #. type: =head2
31603 #: ../src/guestfs-actions.pod:7213
31604 msgid "guestfs_tgz_out"
31605 msgstr ""
31606
31607 #. type: verbatim
31608 #: ../src/guestfs-actions.pod:7215
31609 #, no-wrap
31610 msgid ""
31611 " int\n"
31612 " guestfs_tgz_out (guestfs_h *g,\n"
31613 "                  const char *directory,\n"
31614 "                  const char *tarball);\n"
31615 "\n"
31616 msgstr ""
31617
31618 #. type: textblock
31619 #: ../src/guestfs-actions.pod:7223
31620 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
31621 msgstr ""
31622
31623 #. type: =head2
31624 #: ../src/guestfs-actions.pod:7229
31625 msgid "guestfs_touch"
31626 msgstr ""
31627
31628 #. type: verbatim
31629 #: ../src/guestfs-actions.pod:7231
31630 #, no-wrap
31631 msgid ""
31632 " int\n"
31633 " guestfs_touch (guestfs_h *g,\n"
31634 "                const char *path);\n"
31635 "\n"
31636 msgstr ""
31637
31638 #. type: =head2
31639 #: ../src/guestfs-actions.pod:7246
31640 msgid "guestfs_truncate"
31641 msgstr ""
31642
31643 #. type: verbatim
31644 #: ../src/guestfs-actions.pod:7248
31645 #, no-wrap
31646 msgid ""
31647 " int\n"
31648 " guestfs_truncate (guestfs_h *g,\n"
31649 "                   const char *path);\n"
31650 "\n"
31651 msgstr ""
31652
31653 #. type: =head2
31654 #: ../src/guestfs-actions.pod:7259
31655 msgid "guestfs_truncate_size"
31656 msgstr ""
31657
31658 #. type: verbatim
31659 #: ../src/guestfs-actions.pod:7261
31660 #, no-wrap
31661 msgid ""
31662 " int\n"
31663 " guestfs_truncate_size (guestfs_h *g,\n"
31664 "                        const char *path,\n"
31665 "                        int64_t size);\n"
31666 "\n"
31667 msgstr ""
31668
31669 #. type: textblock
31670 #: ../src/guestfs-actions.pod:7269
31671 msgid ""
31672 "If the current file size is less than C<size> then the file is extended to "
31673 "the required size with zero bytes.  This creates a sparse file (ie. disk "
31674 "blocks are not allocated for the file until you write to it).  To create a "
31675 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
31676 msgstr ""
31677
31678 #. type: =head2
31679 #: ../src/guestfs-actions.pod:7279
31680 msgid "guestfs_tune2fs_l"
31681 msgstr ""
31682
31683 #. type: verbatim
31684 #: ../src/guestfs-actions.pod:7281
31685 #, no-wrap
31686 msgid ""
31687 " char **\n"
31688 " guestfs_tune2fs_l (guestfs_h *g,\n"
31689 "                    const char *device);\n"
31690 "\n"
31691 msgstr ""
31692
31693 #. type: =head2
31694 #: ../src/guestfs-actions.pod:7301
31695 msgid "guestfs_txz_in"
31696 msgstr ""
31697
31698 #. type: verbatim
31699 #: ../src/guestfs-actions.pod:7303
31700 #, no-wrap
31701 msgid ""
31702 " int\n"
31703 " guestfs_txz_in (guestfs_h *g,\n"
31704 "                 const char *tarball,\n"
31705 "                 const char *directory);\n"
31706 "\n"
31707 msgstr ""
31708
31709 #. type: =head2
31710 #: ../src/guestfs-actions.pod:7315
31711 msgid "guestfs_txz_out"
31712 msgstr ""
31713
31714 #. type: verbatim
31715 #: ../src/guestfs-actions.pod:7317
31716 #, no-wrap
31717 msgid ""
31718 " int\n"
31719 " guestfs_txz_out (guestfs_h *g,\n"
31720 "                  const char *directory,\n"
31721 "                  const char *tarball);\n"
31722 "\n"
31723 msgstr ""
31724
31725 #. type: =head2
31726 #: ../src/guestfs-actions.pod:7329
31727 msgid "guestfs_umask"
31728 msgstr ""
31729
31730 #. type: verbatim
31731 #: ../src/guestfs-actions.pod:7331
31732 #, no-wrap
31733 msgid ""
31734 " int\n"
31735 " guestfs_umask (guestfs_h *g,\n"
31736 "                int mask);\n"
31737 "\n"
31738 msgstr ""
31739
31740 #. type: textblock
31741 #: ../src/guestfs-actions.pod:7347
31742 msgid ""
31743 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
31744 "C<guestfs_mkdir>."
31745 msgstr ""
31746
31747 #. type: =head2
31748 #: ../src/guestfs-actions.pod:7356
31749 msgid "guestfs_umount"
31750 msgstr ""
31751
31752 #. type: verbatim
31753 #: ../src/guestfs-actions.pod:7358
31754 #, no-wrap
31755 msgid ""
31756 " int\n"
31757 " guestfs_umount (guestfs_h *g,\n"
31758 "                 const char *pathordevice);\n"
31759 "\n"
31760 msgstr ""
31761
31762 #. type: =head2
31763 #: ../src/guestfs-actions.pod:7370
31764 msgid "guestfs_umount_all"
31765 msgstr ""
31766
31767 #. type: verbatim
31768 #: ../src/guestfs-actions.pod:7372
31769 #, no-wrap
31770 msgid ""
31771 " int\n"
31772 " guestfs_umount_all (guestfs_h *g);\n"
31773 "\n"
31774 msgstr ""
31775
31776 #. type: =head2
31777 #: ../src/guestfs-actions.pod:7383
31778 msgid "guestfs_upload"
31779 msgstr ""
31780
31781 #. type: verbatim
31782 #: ../src/guestfs-actions.pod:7385
31783 #, no-wrap
31784 msgid ""
31785 " int\n"
31786 " guestfs_upload (guestfs_h *g,\n"
31787 "                 const char *filename,\n"
31788 "                 const char *remotefilename);\n"
31789 "\n"
31790 msgstr ""
31791
31792 #. type: textblock
31793 #: ../src/guestfs-actions.pod:7395
31794 msgid "See also C<guestfs_download>."
31795 msgstr ""
31796
31797 #. type: =head2
31798 #: ../src/guestfs-actions.pod:7406
31799 msgid "guestfs_upload_offset"
31800 msgstr ""
31801
31802 #. type: verbatim
31803 #: ../src/guestfs-actions.pod:7408
31804 #, no-wrap
31805 msgid ""
31806 " int\n"
31807 " guestfs_upload_offset (guestfs_h *g,\n"
31808 "                        const char *filename,\n"
31809 "                        const char *remotefilename,\n"
31810 "                        int64_t offset);\n"
31811 "\n"
31812 msgstr ""
31813
31814 #. type: textblock
31815 #: ../src/guestfs-actions.pod:7424
31816 msgid ""
31817 "Note that there is no limit on the amount of data that can be uploaded with "
31818 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31819 "full amount unless an error occurs."
31820 msgstr ""
31821
31822 #. type: textblock
31823 #: ../src/guestfs-actions.pod:7429
31824 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31825 msgstr ""
31826
31827 #. type: =head2
31828 #: ../src/guestfs-actions.pod:7440
31829 msgid "guestfs_utimens"
31830 msgstr ""
31831
31832 #. type: verbatim
31833 #: ../src/guestfs-actions.pod:7442
31834 #, no-wrap
31835 msgid ""
31836 " int\n"
31837 " guestfs_utimens (guestfs_h *g,\n"
31838 "                  const char *path,\n"
31839 "                  int64_t atsecs,\n"
31840 "                  int64_t atnsecs,\n"
31841 "                  int64_t mtsecs,\n"
31842 "                  int64_t mtnsecs);\n"
31843 "\n"
31844 msgstr ""
31845
31846 #. type: =head2
31847 #: ../src/guestfs-actions.pod:7471 ../src/guestfs-structs.pod:175
31848 msgid "guestfs_version"
31849 msgstr ""
31850
31851 #. type: verbatim
31852 #: ../src/guestfs-actions.pod:7473
31853 #, no-wrap
31854 msgid ""
31855 " struct guestfs_version *\n"
31856 " guestfs_version (guestfs_h *g);\n"
31857 "\n"
31858 msgstr ""
31859
31860 #. type: textblock
31861 #: ../src/guestfs-actions.pod:7501
31862 msgid ""
31863 "I<Note:> Don't use this call to test for availability of features.  In "
31864 "enterprise distributions we backport features from later versions into "
31865 "earlier versions, making this an unreliable way to test for features.  Use "
31866 "C<guestfs_available> instead."
31867 msgstr ""
31868
31869 #. type: textblock
31870 #: ../src/guestfs-actions.pod:7507
31871 msgid ""
31872 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31873 "error.  I<The caller must call C<guestfs_free_version> after use>."
31874 msgstr ""
31875
31876 #. type: textblock
31877 #: ../src/guestfs-actions.pod:7511
31878 msgid "(Added in 1.0.58)"
31879 msgstr ""
31880
31881 #. type: =head2
31882 #: ../src/guestfs-actions.pod:7513
31883 msgid "guestfs_vfs_label"
31884 msgstr ""
31885
31886 #. type: verbatim
31887 #: ../src/guestfs-actions.pod:7515
31888 #, no-wrap
31889 msgid ""
31890 " char *\n"
31891 " guestfs_vfs_label (guestfs_h *g,\n"
31892 "                    const char *device);\n"
31893 "\n"
31894 msgstr ""
31895
31896 #. type: textblock
31897 #: ../src/guestfs-actions.pod:7524
31898 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31899 msgstr ""
31900
31901 #. type: textblock
31902 #: ../src/guestfs-actions.pod:7529 ../src/guestfs-actions.pod:7566
31903 msgid "(Added in 1.3.18)"
31904 msgstr ""
31905
31906 #. type: =head2
31907 #: ../src/guestfs-actions.pod:7531
31908 msgid "guestfs_vfs_type"
31909 msgstr ""
31910
31911 #. type: verbatim
31912 #: ../src/guestfs-actions.pod:7533
31913 #, no-wrap
31914 msgid ""
31915 " char *\n"
31916 " guestfs_vfs_type (guestfs_h *g,\n"
31917 "                   const char *device);\n"
31918 "\n"
31919 msgstr ""
31920
31921 #. type: =head2
31922 #: ../src/guestfs-actions.pod:7550
31923 msgid "guestfs_vfs_uuid"
31924 msgstr ""
31925
31926 #. type: verbatim
31927 #: ../src/guestfs-actions.pod:7552
31928 #, no-wrap
31929 msgid ""
31930 " char *\n"
31931 " guestfs_vfs_uuid (guestfs_h *g,\n"
31932 "                   const char *device);\n"
31933 "\n"
31934 msgstr ""
31935
31936 #. type: textblock
31937 #: ../src/guestfs-actions.pod:7561
31938 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31939 msgstr ""
31940
31941 #. type: =head2
31942 #: ../src/guestfs-actions.pod:7568
31943 msgid "guestfs_vg_activate"
31944 msgstr ""
31945
31946 #. type: verbatim
31947 #: ../src/guestfs-actions.pod:7570
31948 #, no-wrap
31949 msgid ""
31950 " int\n"
31951 " guestfs_vg_activate (guestfs_h *g,\n"
31952 "                      int activate,\n"
31953 "                      char *const *volgroups);\n"
31954 "\n"
31955 msgstr ""
31956
31957 #. type: =head2
31958 #: ../src/guestfs-actions.pod:7587
31959 msgid "guestfs_vg_activate_all"
31960 msgstr ""
31961
31962 #. type: verbatim
31963 #: ../src/guestfs-actions.pod:7589
31964 #, no-wrap
31965 msgid ""
31966 " int\n"
31967 " guestfs_vg_activate_all (guestfs_h *g,\n"
31968 "                          int activate);\n"
31969 "\n"
31970 msgstr ""
31971
31972 #. type: =head2
31973 #: ../src/guestfs-actions.pod:7602
31974 msgid "guestfs_vgcreate"
31975 msgstr ""
31976
31977 #. type: verbatim
31978 #: ../src/guestfs-actions.pod:7604
31979 #, no-wrap
31980 msgid ""
31981 " int\n"
31982 " guestfs_vgcreate (guestfs_h *g,\n"
31983 "                   const char *volgroup,\n"
31984 "                   char *const *physvols);\n"
31985 "\n"
31986 msgstr ""
31987
31988 #. type: =head2
31989 #: ../src/guestfs-actions.pod:7616
31990 msgid "guestfs_vglvuuids"
31991 msgstr ""
31992
31993 #. type: verbatim
31994 #: ../src/guestfs-actions.pod:7618
31995 #, no-wrap
31996 msgid ""
31997 " char **\n"
31998 " guestfs_vglvuuids (guestfs_h *g,\n"
31999 "                    const char *vgname);\n"
32000 "\n"
32001 msgstr ""
32002
32003 #. type: textblock
32004 #: ../src/guestfs-actions.pod:7625
32005 msgid ""
32006 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
32007 "associate logical volumes and volume groups."
32008 msgstr ""
32009
32010 #. type: textblock
32011 #: ../src/guestfs-actions.pod:7628
32012 msgid "See also C<guestfs_vgpvuuids>."
32013 msgstr ""
32014
32015 #. type: =head2
32016 #: ../src/guestfs-actions.pod:7636
32017 msgid "guestfs_vgpvuuids"
32018 msgstr ""
32019
32020 #. type: verbatim
32021 #: ../src/guestfs-actions.pod:7638
32022 #, no-wrap
32023 msgid ""
32024 " char **\n"
32025 " guestfs_vgpvuuids (guestfs_h *g,\n"
32026 "                    const char *vgname);\n"
32027 "\n"
32028 msgstr ""
32029
32030 #. type: textblock
32031 #: ../src/guestfs-actions.pod:7645
32032 msgid ""
32033 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
32034 "associate physical volumes and volume groups."
32035 msgstr ""
32036
32037 #. type: textblock
32038 #: ../src/guestfs-actions.pod:7648
32039 msgid "See also C<guestfs_vglvuuids>."
32040 msgstr ""
32041
32042 #. type: =head2
32043 #: ../src/guestfs-actions.pod:7656
32044 msgid "guestfs_vgremove"
32045 msgstr ""
32046
32047 #. type: verbatim
32048 #: ../src/guestfs-actions.pod:7658
32049 #, no-wrap
32050 msgid ""
32051 " int\n"
32052 " guestfs_vgremove (guestfs_h *g,\n"
32053 "                   const char *vgname);\n"
32054 "\n"
32055 msgstr ""
32056
32057 #. type: =head2
32058 #: ../src/guestfs-actions.pod:7671
32059 msgid "guestfs_vgrename"
32060 msgstr ""
32061
32062 #. type: verbatim
32063 #: ../src/guestfs-actions.pod:7673
32064 #, no-wrap
32065 msgid ""
32066 " int\n"
32067 " guestfs_vgrename (guestfs_h *g,\n"
32068 "                   const char *volgroup,\n"
32069 "                   const char *newvolgroup);\n"
32070 "\n"
32071 msgstr ""
32072
32073 #. type: =head2
32074 #: ../src/guestfs-actions.pod:7684
32075 msgid "guestfs_vgs"
32076 msgstr ""
32077
32078 #. type: verbatim
32079 #: ../src/guestfs-actions.pod:7686
32080 #, no-wrap
32081 msgid ""
32082 " char **\n"
32083 " guestfs_vgs (guestfs_h *g);\n"
32084 "\n"
32085 msgstr ""
32086
32087 #. type: textblock
32088 #: ../src/guestfs-actions.pod:7695
32089 msgid "See also C<guestfs_vgs_full>."
32090 msgstr ""
32091
32092 #. type: =head2
32093 #: ../src/guestfs-actions.pod:7703
32094 msgid "guestfs_vgs_full"
32095 msgstr ""
32096
32097 #. type: verbatim
32098 #: ../src/guestfs-actions.pod:7705
32099 #, no-wrap
32100 msgid ""
32101 " struct guestfs_lvm_vg_list *\n"
32102 " guestfs_vgs_full (guestfs_h *g);\n"
32103 "\n"
32104 msgstr ""
32105
32106 #. type: textblock
32107 #: ../src/guestfs-actions.pod:7711
32108 msgid ""
32109 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
32110 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
32111 msgstr ""
32112
32113 #. type: =head2
32114 #: ../src/guestfs-actions.pod:7717
32115 msgid "guestfs_vgscan"
32116 msgstr ""
32117
32118 #. type: verbatim
32119 #: ../src/guestfs-actions.pod:7719
32120 #, no-wrap
32121 msgid ""
32122 " int\n"
32123 " guestfs_vgscan (guestfs_h *g);\n"
32124 "\n"
32125 msgstr ""
32126
32127 #. type: =head2
32128 #: ../src/guestfs-actions.pod:7729
32129 msgid "guestfs_vguuid"
32130 msgstr ""
32131
32132 #. type: verbatim
32133 #: ../src/guestfs-actions.pod:7731
32134 #, no-wrap
32135 msgid ""
32136 " char *\n"
32137 " guestfs_vguuid (guestfs_h *g,\n"
32138 "                 const char *vgname);\n"
32139 "\n"
32140 msgstr ""
32141
32142 #. type: =head2
32143 #: ../src/guestfs-actions.pod:7742
32144 msgid "guestfs_wait_ready"
32145 msgstr ""
32146
32147 #. type: verbatim
32148 #: ../src/guestfs-actions.pod:7744
32149 #, no-wrap
32150 msgid ""
32151 " int\n"
32152 " guestfs_wait_ready (guestfs_h *g);\n"
32153 "\n"
32154 msgstr ""
32155
32156 #. type: textblock
32157 #: ../src/guestfs-actions.pod:7747
32158 msgid ""
32159 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
32160 "instead."
32161 msgstr ""
32162
32163 #. type: textblock
32164 #: ../src/guestfs-actions.pod:7754
32165 msgid "This function is a no op."
32166 msgstr ""
32167
32168 #. type: textblock
32169 #: ../src/guestfs-actions.pod:7756
32170 msgid ""
32171 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
32172 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
32173 "is no longer necessary because C<guestfs_launch> now does the waiting."
32174 msgstr ""
32175
32176 #. type: textblock
32177 #: ../src/guestfs-actions.pod:7761
32178 msgid ""
32179 "If you see any calls to this function in code then you can just remove them, "
32180 "unless you want to retain compatibility with older versions of the API."
32181 msgstr ""
32182
32183 #. type: =head2
32184 #: ../src/guestfs-actions.pod:7769
32185 msgid "guestfs_wc_c"
32186 msgstr ""
32187
32188 #. type: verbatim
32189 #: ../src/guestfs-actions.pod:7771
32190 #, no-wrap
32191 msgid ""
32192 " int\n"
32193 " guestfs_wc_c (guestfs_h *g,\n"
32194 "               const char *path);\n"
32195 "\n"
32196 msgstr ""
32197
32198 #. type: =head2
32199 #: ../src/guestfs-actions.pod:7782
32200 msgid "guestfs_wc_l"
32201 msgstr ""
32202
32203 #. type: verbatim
32204 #: ../src/guestfs-actions.pod:7784
32205 #, no-wrap
32206 msgid ""
32207 " int\n"
32208 " guestfs_wc_l (guestfs_h *g,\n"
32209 "               const char *path);\n"
32210 "\n"
32211 msgstr ""
32212
32213 #. type: =head2
32214 #: ../src/guestfs-actions.pod:7795
32215 msgid "guestfs_wc_w"
32216 msgstr ""
32217
32218 #. type: verbatim
32219 #: ../src/guestfs-actions.pod:7797
32220 #, no-wrap
32221 msgid ""
32222 " int\n"
32223 " guestfs_wc_w (guestfs_h *g,\n"
32224 "               const char *path);\n"
32225 "\n"
32226 msgstr ""
32227
32228 #. type: =head2
32229 #: ../src/guestfs-actions.pod:7808
32230 msgid "guestfs_write"
32231 msgstr ""
32232
32233 #. type: verbatim
32234 #: ../src/guestfs-actions.pod:7810
32235 #, no-wrap
32236 msgid ""
32237 " int\n"
32238 " guestfs_write (guestfs_h *g,\n"
32239 "                const char *path,\n"
32240 "                const char *content,\n"
32241 "                size_t content_size);\n"
32242 "\n"
32243 msgstr ""
32244
32245 #. type: textblock
32246 #: ../src/guestfs-actions.pod:7819
32247 msgid "See also C<guestfs_write_append>."
32248 msgstr ""
32249
32250 #. type: =head2
32251 #: ../src/guestfs-actions.pod:7828
32252 msgid "guestfs_write_append"
32253 msgstr ""
32254
32255 #. type: verbatim
32256 #: ../src/guestfs-actions.pod:7830
32257 #, no-wrap
32258 msgid ""
32259 " int\n"
32260 " guestfs_write_append (guestfs_h *g,\n"
32261 "                       const char *path,\n"
32262 "                       const char *content,\n"
32263 "                       size_t content_size);\n"
32264 "\n"
32265 msgstr ""
32266
32267 #. type: textblock
32268 #: ../src/guestfs-actions.pod:7839
32269 msgid "See also C<guestfs_write>."
32270 msgstr ""
32271
32272 #. type: =head2
32273 #: ../src/guestfs-actions.pod:7848
32274 msgid "guestfs_write_file"
32275 msgstr "guestfs_write_file"
32276
32277 #. type: verbatim
32278 #: ../src/guestfs-actions.pod:7850
32279 #, no-wrap
32280 msgid ""
32281 " int\n"
32282 " guestfs_write_file (guestfs_h *g,\n"
32283 "                     const char *path,\n"
32284 "                     const char *content,\n"
32285 "                     int size);\n"
32286 "\n"
32287 msgstr ""
32288 " int\n"
32289 " guestfs_write_file (guestfs_h *g,\n"
32290 "                     const char *path,\n"
32291 "                     const char *content,\n"
32292 "                     int size);\n"
32293 "\n"
32294
32295 #. type: textblock
32296 #: ../src/guestfs-actions.pod:7856
32297 msgid ""
32298 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
32299 "instead."
32300 msgstr ""
32301
32302 #. type: =head2
32303 #: ../src/guestfs-actions.pod:7881
32304 msgid "guestfs_zegrep"
32305 msgstr "guestfs_zegrep"
32306
32307 #. type: verbatim
32308 #: ../src/guestfs-actions.pod:7883
32309 #, no-wrap
32310 msgid ""
32311 " char **\n"
32312 " guestfs_zegrep (guestfs_h *g,\n"
32313 "                 const char *regex,\n"
32314 "                 const char *path);\n"
32315 "\n"
32316 msgstr ""
32317 " char **\n"
32318 " guestfs_zegrep (guestfs_h *g,\n"
32319 "                 const char *regex,\n"
32320 "                 const char *path);\n"
32321 "\n"
32322
32323 #. type: =head2
32324 #: ../src/guestfs-actions.pod:7900
32325 msgid "guestfs_zegrepi"
32326 msgstr "guestfs_zegrepi"
32327
32328 #. type: verbatim
32329 #: ../src/guestfs-actions.pod:7902
32330 #, no-wrap
32331 msgid ""
32332 " char **\n"
32333 " guestfs_zegrepi (guestfs_h *g,\n"
32334 "                  const char *regex,\n"
32335 "                  const char *path);\n"
32336 "\n"
32337 msgstr ""
32338 " char **\n"
32339 " guestfs_zegrepi (guestfs_h *g,\n"
32340 "                  const char *regex,\n"
32341 "                  const char *path);\n"
32342 "\n"
32343
32344 #. type: =head2
32345 #: ../src/guestfs-actions.pod:7919
32346 msgid "guestfs_zero"
32347 msgstr "guestfs_zero"
32348
32349 #. type: verbatim
32350 #: ../src/guestfs-actions.pod:7921
32351 #, no-wrap
32352 msgid ""
32353 " int\n"
32354 " guestfs_zero (guestfs_h *g,\n"
32355 "               const char *device);\n"
32356 "\n"
32357 msgstr ""
32358 " int\n"
32359 " guestfs_zero (guestfs_h *g,\n"
32360 "               const char *device);\n"
32361 "\n"
32362
32363 #. type: textblock
32364 #: ../src/guestfs-actions.pod:7935
32365 msgid ""
32366 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
32367 "C<guestfs_is_zero_device>"
32368 msgstr ""
32369
32370 #. type: =head2
32371 #: ../src/guestfs-actions.pod:7947
32372 msgid "guestfs_zero_device"
32373 msgstr "guestfs_zero_device"
32374
32375 #. type: verbatim
32376 #: ../src/guestfs-actions.pod:7949
32377 #, no-wrap
32378 msgid ""
32379 " int\n"
32380 " guestfs_zero_device (guestfs_h *g,\n"
32381 "                      const char *device);\n"
32382 "\n"
32383 msgstr ""
32384 " int\n"
32385 " guestfs_zero_device (guestfs_h *g,\n"
32386 "                      const char *device);\n"
32387 "\n"
32388
32389 #. type: textblock
32390 #: ../src/guestfs-actions.pod:7953
32391 msgid ""
32392 "This command writes zeroes over the entire C<device>.  Compare with "
32393 "C<guestfs_zero> which just zeroes the first few blocks of a device."
32394 msgstr ""
32395
32396 #. type: textblock
32397 #: ../src/guestfs-actions.pod:7971
32398 msgid "(Added in 1.3.1)"
32399 msgstr "(Додано у 1.3.1)"
32400
32401 #. type: =head2
32402 #: ../src/guestfs-actions.pod:7973
32403 msgid "guestfs_zerofree"
32404 msgstr "guestfs_zerofree"
32405
32406 #. type: verbatim
32407 #: ../src/guestfs-actions.pod:7975
32408 #, no-wrap
32409 msgid ""
32410 " int\n"
32411 " guestfs_zerofree (guestfs_h *g,\n"
32412 "                   const char *device);\n"
32413 "\n"
32414 msgstr ""
32415 " int\n"
32416 " guestfs_zerofree (guestfs_h *g,\n"
32417 "                   const char *device);\n"
32418 "\n"
32419
32420 #. type: =head2
32421 #: ../src/guestfs-actions.pod:7994
32422 msgid "guestfs_zfgrep"
32423 msgstr "guestfs_zfgrep"
32424
32425 #. type: verbatim
32426 #: ../src/guestfs-actions.pod:7996
32427 #, no-wrap
32428 msgid ""
32429 " char **\n"
32430 " guestfs_zfgrep (guestfs_h *g,\n"
32431 "                 const char *pattern,\n"
32432 "                 const char *path);\n"
32433 "\n"
32434 msgstr ""
32435 " char **\n"
32436 " guestfs_zfgrep (guestfs_h *g,\n"
32437 "                 const char *pattern,\n"
32438 "                 const char *path);\n"
32439 "\n"
32440
32441 #. type: =head2
32442 #: ../src/guestfs-actions.pod:8013
32443 msgid "guestfs_zfgrepi"
32444 msgstr "guestfs_zfgrepi"
32445
32446 #. type: verbatim
32447 #: ../src/guestfs-actions.pod:8015
32448 #, no-wrap
32449 msgid ""
32450 " char **\n"
32451 " guestfs_zfgrepi (guestfs_h *g,\n"
32452 "                  const char *pattern,\n"
32453 "                  const char *path);\n"
32454 "\n"
32455 msgstr ""
32456 " char **\n"
32457 " guestfs_zfgrepi (guestfs_h *g,\n"
32458 "                  const char *pattern,\n"
32459 "                  const char *path);\n"
32460 "\n"
32461
32462 #. type: =head2
32463 #: ../src/guestfs-actions.pod:8032
32464 msgid "guestfs_zfile"
32465 msgstr "guestfs_zfile"
32466
32467 #. type: verbatim
32468 #: ../src/guestfs-actions.pod:8034
32469 #, no-wrap
32470 msgid ""
32471 " char *\n"
32472 " guestfs_zfile (guestfs_h *g,\n"
32473 "                const char *meth,\n"
32474 "                const char *path);\n"
32475 "\n"
32476 msgstr ""
32477 " char *\n"
32478 " guestfs_zfile (guestfs_h *g,\n"
32479 "                const char *meth,\n"
32480 "                const char *path);\n"
32481 "\n"
32482
32483 #. type: textblock
32484 #: ../src/guestfs-actions.pod:8039
32485 msgid ""
32486 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
32487 "instead."
32488 msgstr ""
32489
32490 #. type: textblock
32491 #: ../src/guestfs-actions.pod:8051
32492 msgid ""
32493 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
32494 "files."
32495 msgstr ""
32496
32497 #. type: =head2
32498 #: ../src/guestfs-actions.pod:8059
32499 msgid "guestfs_zgrep"
32500 msgstr "guestfs_zgrep"
32501
32502 #. type: verbatim
32503 #: ../src/guestfs-actions.pod:8061
32504 #, no-wrap
32505 msgid ""
32506 " char **\n"
32507 " guestfs_zgrep (guestfs_h *g,\n"
32508 "                const char *regex,\n"
32509 "                const char *path);\n"
32510 "\n"
32511 msgstr ""
32512 " char **\n"
32513 " guestfs_zgrep (guestfs_h *g,\n"
32514 "                const char *regex,\n"
32515 "                const char *path);\n"
32516 "\n"
32517
32518 #. type: =head2
32519 #: ../src/guestfs-actions.pod:8078
32520 msgid "guestfs_zgrepi"
32521 msgstr "guestfs_zgrepi"
32522
32523 #. type: verbatim
32524 #: ../src/guestfs-actions.pod:8080
32525 #, no-wrap
32526 msgid ""
32527 " char **\n"
32528 " guestfs_zgrepi (guestfs_h *g,\n"
32529 "                 const char *regex,\n"
32530 "                 const char *path);\n"
32531 "\n"
32532 msgstr ""
32533 " char **\n"
32534 " guestfs_zgrepi (guestfs_h *g,\n"
32535 "                 const char *regex,\n"
32536 "                 const char *path);\n"
32537 "\n"
32538
32539 #. type: =item
32540 #: ../src/guestfs-availability.pod:3
32541 msgid "B<augeas>"
32542 msgstr "B<augeas>"
32543
32544 #. type: textblock
32545 #: ../src/guestfs-availability.pod:5
32546 msgid ""
32547 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
32548 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
32549 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
32550 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
32551 "L</guestfs_aug_save> L</guestfs_aug_set>"
32552 msgstr ""
32553
32554 #. type: =item
32555 #: ../src/guestfs-availability.pod:21
32556 msgid "B<btrfs>"
32557 msgstr ""
32558
32559 #. type: textblock
32560 #: ../src/guestfs-availability.pod:23
32561 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
32562 msgstr ""
32563
32564 #. type: =item
32565 #: ../src/guestfs-availability.pod:26
32566 #, fuzzy
32567 #| msgid "B<scrub>"
32568 msgid "B<grub>"
32569 msgstr "B<scrub>"
32570
32571 #. type: textblock
32572 #: ../src/guestfs-availability.pod:28
32573 msgid "The following functions: L</guestfs_grub_install>"
32574 msgstr ""
32575
32576 #. type: =item
32577 #: ../src/guestfs-availability.pod:31
32578 msgid "B<inotify>"
32579 msgstr "B<inotify>"
32580
32581 #. type: textblock
32582 #: ../src/guestfs-availability.pod:33
32583 msgid ""
32584 "The following functions: L</guestfs_inotify_add_watch> L</"
32585 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
32586 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
32587 msgstr ""
32588
32589 #. type: =item
32590 #: ../src/guestfs-availability.pod:41
32591 msgid "B<linuxfsuuid>"
32592 msgstr "B<linuxfsuuid>"
32593
32594 #. type: textblock
32595 #: ../src/guestfs-availability.pod:43
32596 msgid ""
32597 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
32598 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
32599 msgstr ""
32600
32601 #. type: =item
32602 #: ../src/guestfs-availability.pod:50
32603 msgid "B<linuxmodules>"
32604 msgstr "B<linuxmodules>"
32605
32606 #. type: textblock
32607 #: ../src/guestfs-availability.pod:52
32608 msgid "The following functions: L</guestfs_modprobe>"
32609 msgstr ""
32610
32611 #. type: =item
32612 #: ../src/guestfs-availability.pod:55
32613 msgid "B<linuxxattrs>"
32614 msgstr "B<linuxxattrs>"
32615
32616 #. type: textblock
32617 #: ../src/guestfs-availability.pod:57
32618 msgid ""
32619 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
32620 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
32621 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
32622 "guestfs_setxattr>"
32623 msgstr ""
32624
32625 #. type: =item
32626 #: ../src/guestfs-availability.pod:68
32627 msgid "B<luks>"
32628 msgstr "B<luks>"
32629
32630 #. type: textblock
32631 #: ../src/guestfs-availability.pod:70
32632 msgid ""
32633 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
32634 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
32635 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
32636 msgstr ""
32637
32638 #. type: =item
32639 #: ../src/guestfs-availability.pod:79
32640 msgid "B<lvm2>"
32641 msgstr "B<lvm2>"
32642
32643 #. type: textblock
32644 #: ../src/guestfs-availability.pod:81
32645 msgid ""
32646 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
32647 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
32648 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
32649 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
32650 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
32651 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
32652 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
32653 msgstr ""
32654
32655 #. type: =item
32656 #: ../src/guestfs-availability.pod:104
32657 msgid "B<mknod>"
32658 msgstr "B<mknod>"
32659
32660 #. type: textblock
32661 #: ../src/guestfs-availability.pod:106
32662 msgid ""
32663 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
32664 "guestfs_mknod_b> L</guestfs_mknod_c>"
32665 msgstr ""
32666
32667 #. type: =item
32668 #: ../src/guestfs-availability.pod:112
32669 msgid "B<ntfs3g>"
32670 msgstr "B<ntfs3g>"
32671
32672 #. type: textblock
32673 #: ../src/guestfs-availability.pod:114
32674 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
32675 msgstr ""
32676
32677 #. type: =item
32678 #: ../src/guestfs-availability.pod:117
32679 msgid "B<ntfsprogs>"
32680 msgstr "B<ntfsprogs>"
32681
32682 #. type: textblock
32683 #: ../src/guestfs-availability.pod:119
32684 msgid ""
32685 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
32686 "L</guestfs_ntfsresize_size>"
32687 msgstr ""
32688
32689 #. type: =item
32690 #: ../src/guestfs-availability.pod:124
32691 msgid "B<realpath>"
32692 msgstr "B<realpath>"
32693
32694 #. type: textblock
32695 #: ../src/guestfs-availability.pod:126
32696 msgid "The following functions: L</guestfs_realpath>"
32697 msgstr ""
32698
32699 #. type: =item
32700 #: ../src/guestfs-availability.pod:129
32701 msgid "B<scrub>"
32702 msgstr "B<scrub>"
32703
32704 #. type: textblock
32705 #: ../src/guestfs-availability.pod:131
32706 msgid ""
32707 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
32708 "guestfs_scrub_freespace>"
32709 msgstr ""
32710
32711 #. type: =item
32712 #: ../src/guestfs-availability.pod:136
32713 msgid "B<selinux>"
32714 msgstr "B<selinux>"
32715
32716 #. type: textblock
32717 #: ../src/guestfs-availability.pod:138
32718 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
32719 msgstr ""
32720
32721 #. type: =item
32722 #: ../src/guestfs-availability.pod:142
32723 msgid "B<xz>"
32724 msgstr "B<xz>"
32725
32726 #. type: textblock
32727 #: ../src/guestfs-availability.pod:144
32728 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
32729 msgstr ""
32730
32731 #. type: =item
32732 #: ../src/guestfs-availability.pod:148
32733 msgid "B<zerofree>"
32734 msgstr "B<zerofree>"
32735
32736 #. type: textblock
32737 #: ../src/guestfs-availability.pod:150
32738 msgid "The following functions: L</guestfs_zerofree>"
32739 msgstr ""
32740
32741 #. type: =head2
32742 #: ../src/guestfs-structs.pod:1
32743 msgid "guestfs_int_bool"
32744 msgstr ""
32745
32746 #. type: verbatim
32747 #: ../src/guestfs-structs.pod:3
32748 #, no-wrap
32749 msgid ""
32750 " struct guestfs_int_bool {\n"
32751 "   int32_t i;\n"
32752 "   int32_t b;\n"
32753 " };\n"
32754 " \n"
32755 msgstr ""
32756
32757 #. type: verbatim
32758 #: ../src/guestfs-structs.pod:8
32759 #, no-wrap
32760 msgid ""
32761 " struct guestfs_int_bool_list {\n"
32762 "   uint32_t len; /* Number of elements in list. */\n"
32763 "   struct guestfs_int_bool *val; /* Elements. */\n"
32764 " };\n"
32765 " \n"
32766 msgstr ""
32767
32768 #. type: verbatim
32769 #: ../src/guestfs-structs.pod:13
32770 #, no-wrap
32771 msgid ""
32772 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
32773 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
32774 "\n"
32775 msgstr ""
32776
32777 #. type: =head2
32778 #: ../src/guestfs-structs.pod:16
32779 msgid "guestfs_lvm_pv"
32780 msgstr ""
32781
32782 #. type: verbatim
32783 #: ../src/guestfs-structs.pod:18
32784 #, no-wrap
32785 msgid ""
32786 " struct guestfs_lvm_pv {\n"
32787 "   char *pv_name;\n"
32788 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32789 "   char pv_uuid[32];\n"
32790 "   char *pv_fmt;\n"
32791 "   uint64_t pv_size;\n"
32792 "   uint64_t dev_size;\n"
32793 "   uint64_t pv_free;\n"
32794 "   uint64_t pv_used;\n"
32795 "   char *pv_attr;\n"
32796 "   int64_t pv_pe_count;\n"
32797 "   int64_t pv_pe_alloc_count;\n"
32798 "   char *pv_tags;\n"
32799 "   uint64_t pe_start;\n"
32800 "   int64_t pv_mda_count;\n"
32801 "   uint64_t pv_mda_free;\n"
32802 " };\n"
32803 " \n"
32804 msgstr ""
32805
32806 #. type: verbatim
32807 #: ../src/guestfs-structs.pod:36
32808 #, no-wrap
32809 msgid ""
32810 " struct guestfs_lvm_pv_list {\n"
32811 "   uint32_t len; /* Number of elements in list. */\n"
32812 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
32813 " };\n"
32814 " \n"
32815 msgstr ""
32816
32817 #. type: verbatim
32818 #: ../src/guestfs-structs.pod:41
32819 #, no-wrap
32820 msgid ""
32821 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32822 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32823 "\n"
32824 msgstr ""
32825
32826 #. type: =head2
32827 #: ../src/guestfs-structs.pod:44
32828 msgid "guestfs_lvm_vg"
32829 msgstr ""
32830
32831 #. type: verbatim
32832 #: ../src/guestfs-structs.pod:46
32833 #, no-wrap
32834 msgid ""
32835 " struct guestfs_lvm_vg {\n"
32836 "   char *vg_name;\n"
32837 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32838 "   char vg_uuid[32];\n"
32839 "   char *vg_fmt;\n"
32840 "   char *vg_attr;\n"
32841 "   uint64_t vg_size;\n"
32842 "   uint64_t vg_free;\n"
32843 "   char *vg_sysid;\n"
32844 "   uint64_t vg_extent_size;\n"
32845 "   int64_t vg_extent_count;\n"
32846 "   int64_t vg_free_count;\n"
32847 "   int64_t max_lv;\n"
32848 "   int64_t max_pv;\n"
32849 "   int64_t pv_count;\n"
32850 "   int64_t lv_count;\n"
32851 "   int64_t snap_count;\n"
32852 "   int64_t vg_seqno;\n"
32853 "   char *vg_tags;\n"
32854 "   int64_t vg_mda_count;\n"
32855 "   uint64_t vg_mda_free;\n"
32856 " };\n"
32857 " \n"
32858 msgstr ""
32859
32860 #. type: verbatim
32861 #: ../src/guestfs-structs.pod:69
32862 #, no-wrap
32863 msgid ""
32864 " struct guestfs_lvm_vg_list {\n"
32865 "   uint32_t len; /* Number of elements in list. */\n"
32866 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
32867 " };\n"
32868 " \n"
32869 msgstr ""
32870
32871 #. type: verbatim
32872 #: ../src/guestfs-structs.pod:74
32873 #, no-wrap
32874 msgid ""
32875 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32876 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32877 "\n"
32878 msgstr ""
32879
32880 #. type: =head2
32881 #: ../src/guestfs-structs.pod:77
32882 msgid "guestfs_lvm_lv"
32883 msgstr ""
32884
32885 #. type: verbatim
32886 #: ../src/guestfs-structs.pod:79
32887 #, no-wrap
32888 msgid ""
32889 " struct guestfs_lvm_lv {\n"
32890 "   char *lv_name;\n"
32891 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32892 "   char lv_uuid[32];\n"
32893 "   char *lv_attr;\n"
32894 "   int64_t lv_major;\n"
32895 "   int64_t lv_minor;\n"
32896 "   int64_t lv_kernel_major;\n"
32897 "   int64_t lv_kernel_minor;\n"
32898 "   uint64_t lv_size;\n"
32899 "   int64_t seg_count;\n"
32900 "   char *origin;\n"
32901 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32902 "   float snap_percent;\n"
32903 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32904 "   float copy_percent;\n"
32905 "   char *move_pv;\n"
32906 "   char *lv_tags;\n"
32907 "   char *mirror_log;\n"
32908 "   char *modules;\n"
32909 " };\n"
32910 " \n"
32911 msgstr ""
32912
32913 #. type: verbatim
32914 #: ../src/guestfs-structs.pod:101
32915 #, no-wrap
32916 msgid ""
32917 " struct guestfs_lvm_lv_list {\n"
32918 "   uint32_t len; /* Number of elements in list. */\n"
32919 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
32920 " };\n"
32921 " \n"
32922 msgstr ""
32923
32924 #. type: verbatim
32925 #: ../src/guestfs-structs.pod:106
32926 #, no-wrap
32927 msgid ""
32928 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32929 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32930 "\n"
32931 msgstr ""
32932
32933 #. type: verbatim
32934 #: ../src/guestfs-structs.pod:111
32935 #, no-wrap
32936 msgid ""
32937 " struct guestfs_stat {\n"
32938 "   int64_t dev;\n"
32939 "   int64_t ino;\n"
32940 "   int64_t mode;\n"
32941 "   int64_t nlink;\n"
32942 "   int64_t uid;\n"
32943 "   int64_t gid;\n"
32944 "   int64_t rdev;\n"
32945 "   int64_t size;\n"
32946 "   int64_t blksize;\n"
32947 "   int64_t blocks;\n"
32948 "   int64_t atime;\n"
32949 "   int64_t mtime;\n"
32950 "   int64_t ctime;\n"
32951 " };\n"
32952 " \n"
32953 msgstr ""
32954
32955 #. type: verbatim
32956 #: ../src/guestfs-structs.pod:127
32957 #, no-wrap
32958 msgid ""
32959 " struct guestfs_stat_list {\n"
32960 "   uint32_t len; /* Number of elements in list. */\n"
32961 "   struct guestfs_stat *val; /* Elements. */\n"
32962 " };\n"
32963 " \n"
32964 msgstr ""
32965
32966 #. type: verbatim
32967 #: ../src/guestfs-structs.pod:132
32968 #, no-wrap
32969 msgid ""
32970 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32971 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32972 "\n"
32973 msgstr ""
32974
32975 #. type: verbatim
32976 #: ../src/guestfs-structs.pod:137
32977 #, no-wrap
32978 msgid ""
32979 " struct guestfs_statvfs {\n"
32980 "   int64_t bsize;\n"
32981 "   int64_t frsize;\n"
32982 "   int64_t blocks;\n"
32983 "   int64_t bfree;\n"
32984 "   int64_t bavail;\n"
32985 "   int64_t files;\n"
32986 "   int64_t ffree;\n"
32987 "   int64_t favail;\n"
32988 "   int64_t fsid;\n"
32989 "   int64_t flag;\n"
32990 "   int64_t namemax;\n"
32991 " };\n"
32992 " \n"
32993 msgstr ""
32994
32995 #. type: verbatim
32996 #: ../src/guestfs-structs.pod:151
32997 #, no-wrap
32998 msgid ""
32999 " struct guestfs_statvfs_list {\n"
33000 "   uint32_t len; /* Number of elements in list. */\n"
33001 "   struct guestfs_statvfs *val; /* Elements. */\n"
33002 " };\n"
33003 " \n"
33004 msgstr ""
33005
33006 #. type: verbatim
33007 #: ../src/guestfs-structs.pod:156
33008 #, no-wrap
33009 msgid ""
33010 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
33011 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
33012 "\n"
33013 msgstr ""
33014
33015 #. type: =head2
33016 #: ../src/guestfs-structs.pod:159
33017 msgid "guestfs_dirent"
33018 msgstr ""
33019
33020 #. type: verbatim
33021 #: ../src/guestfs-structs.pod:161
33022 #, no-wrap
33023 msgid ""
33024 " struct guestfs_dirent {\n"
33025 "   int64_t ino;\n"
33026 "   char ftyp;\n"
33027 "   char *name;\n"
33028 " };\n"
33029 " \n"
33030 msgstr ""
33031
33032 #. type: verbatim
33033 #: ../src/guestfs-structs.pod:167
33034 #, no-wrap
33035 msgid ""
33036 " struct guestfs_dirent_list {\n"
33037 "   uint32_t len; /* Number of elements in list. */\n"
33038 "   struct guestfs_dirent *val; /* Elements. */\n"
33039 " };\n"
33040 " \n"
33041 msgstr ""
33042
33043 #. type: verbatim
33044 #: ../src/guestfs-structs.pod:172
33045 #, no-wrap
33046 msgid ""
33047 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
33048 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
33049 "\n"
33050 msgstr ""
33051
33052 #. type: verbatim
33053 #: ../src/guestfs-structs.pod:177
33054 #, no-wrap
33055 msgid ""
33056 " struct guestfs_version {\n"
33057 "   int64_t major;\n"
33058 "   int64_t minor;\n"
33059 "   int64_t release;\n"
33060 "   char *extra;\n"
33061 " };\n"
33062 " \n"
33063 msgstr ""
33064
33065 #. type: verbatim
33066 #: ../src/guestfs-structs.pod:184
33067 #, no-wrap
33068 msgid ""
33069 " struct guestfs_version_list {\n"
33070 "   uint32_t len; /* Number of elements in list. */\n"
33071 "   struct guestfs_version *val; /* Elements. */\n"
33072 " };\n"
33073 " \n"
33074 msgstr ""
33075
33076 #. type: verbatim
33077 #: ../src/guestfs-structs.pod:189
33078 #, no-wrap
33079 msgid ""
33080 " void guestfs_free_version (struct guestfs_free_version *);\n"
33081 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
33082 "\n"
33083 msgstr ""
33084
33085 #. type: =head2
33086 #: ../src/guestfs-structs.pod:192
33087 msgid "guestfs_xattr"
33088 msgstr ""
33089
33090 #. type: verbatim
33091 #: ../src/guestfs-structs.pod:194
33092 #, no-wrap
33093 msgid ""
33094 " struct guestfs_xattr {\n"
33095 "   char *attrname;\n"
33096 "   /* The next two fields describe a byte array. */\n"
33097 "   uint32_t attrval_len;\n"
33098 "   char *attrval;\n"
33099 " };\n"
33100 " \n"
33101 msgstr ""
33102
33103 #. type: verbatim
33104 #: ../src/guestfs-structs.pod:201
33105 #, no-wrap
33106 msgid ""
33107 " struct guestfs_xattr_list {\n"
33108 "   uint32_t len; /* Number of elements in list. */\n"
33109 "   struct guestfs_xattr *val; /* Elements. */\n"
33110 " };\n"
33111 " \n"
33112 msgstr ""
33113
33114 #. type: verbatim
33115 #: ../src/guestfs-structs.pod:206
33116 #, no-wrap
33117 msgid ""
33118 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
33119 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
33120 "\n"
33121 msgstr ""
33122
33123 #. type: =head2
33124 #: ../src/guestfs-structs.pod:209
33125 msgid "guestfs_inotify_event"
33126 msgstr ""
33127
33128 #. type: verbatim
33129 #: ../src/guestfs-structs.pod:211
33130 #, no-wrap
33131 msgid ""
33132 " struct guestfs_inotify_event {\n"
33133 "   int64_t in_wd;\n"
33134 "   uint32_t in_mask;\n"
33135 "   uint32_t in_cookie;\n"
33136 "   char *in_name;\n"
33137 " };\n"
33138 " \n"
33139 msgstr ""
33140
33141 #. type: verbatim
33142 #: ../src/guestfs-structs.pod:218
33143 #, no-wrap
33144 msgid ""
33145 " struct guestfs_inotify_event_list {\n"
33146 "   uint32_t len; /* Number of elements in list. */\n"
33147 "   struct guestfs_inotify_event *val; /* Elements. */\n"
33148 " };\n"
33149 " \n"
33150 msgstr ""
33151
33152 #. type: verbatim
33153 #: ../src/guestfs-structs.pod:223
33154 #, no-wrap
33155 msgid ""
33156 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
33157 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
33158 "\n"
33159 msgstr ""
33160
33161 #. type: =head2
33162 #: ../src/guestfs-structs.pod:226
33163 msgid "guestfs_partition"
33164 msgstr ""
33165
33166 #. type: verbatim
33167 #: ../src/guestfs-structs.pod:228
33168 #, no-wrap
33169 msgid ""
33170 " struct guestfs_partition {\n"
33171 "   int32_t part_num;\n"
33172 "   uint64_t part_start;\n"
33173 "   uint64_t part_end;\n"
33174 "   uint64_t part_size;\n"
33175 " };\n"
33176 " \n"
33177 msgstr ""
33178
33179 #. type: verbatim
33180 #: ../src/guestfs-structs.pod:235
33181 #, no-wrap
33182 msgid ""
33183 " struct guestfs_partition_list {\n"
33184 "   uint32_t len; /* Number of elements in list. */\n"
33185 "   struct guestfs_partition *val; /* Elements. */\n"
33186 " };\n"
33187 " \n"
33188 msgstr ""
33189
33190 #. type: verbatim
33191 #: ../src/guestfs-structs.pod:240
33192 #, no-wrap
33193 msgid ""
33194 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
33195 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
33196 "\n"
33197 msgstr ""
33198
33199 #. type: =head2
33200 #: ../src/guestfs-structs.pod:243
33201 msgid "guestfs_application"
33202 msgstr ""
33203
33204 #. type: verbatim
33205 #: ../src/guestfs-structs.pod:245
33206 #, no-wrap
33207 msgid ""
33208 " struct guestfs_application {\n"
33209 "   char *app_name;\n"
33210 "   char *app_display_name;\n"
33211 "   int32_t app_epoch;\n"
33212 "   char *app_version;\n"
33213 "   char *app_release;\n"
33214 "   char *app_install_path;\n"
33215 "   char *app_trans_path;\n"
33216 "   char *app_publisher;\n"
33217 "   char *app_url;\n"
33218 "   char *app_source_package;\n"
33219 "   char *app_summary;\n"
33220 "   char *app_description;\n"
33221 " };\n"
33222 " \n"
33223 msgstr ""
33224
33225 #. type: verbatim
33226 #: ../src/guestfs-structs.pod:260
33227 #, no-wrap
33228 msgid ""
33229 " struct guestfs_application_list {\n"
33230 "   uint32_t len; /* Number of elements in list. */\n"
33231 "   struct guestfs_application *val; /* Elements. */\n"
33232 " };\n"
33233 " \n"
33234 msgstr ""
33235
33236 #. type: verbatim
33237 #: ../src/guestfs-structs.pod:265
33238 #, no-wrap
33239 msgid ""
33240 " void guestfs_free_application (struct guestfs_free_application *);\n"
33241 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
33242 "\n"
33243 msgstr ""
33244
33245 #. type: textblock
33246 #: ../src/guestfs.pod:5
33247 msgid "guestfs - Library for accessing and modifying virtual machine images"
33248 msgstr ""
33249 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
33250 "машин"
33251
33252 #. type: verbatim
33253 #: ../src/guestfs.pod:11
33254 #, no-wrap
33255 msgid ""
33256 " guestfs_h *g = guestfs_create ();\n"
33257 " guestfs_add_drive (g, \"guest.img\");\n"
33258 " guestfs_launch (g);\n"
33259 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33260 " guestfs_touch (g, \"/hello\");\n"
33261 " guestfs_umount (g, \"/\");\n"
33262 " guestfs_close (g);\n"
33263 "\n"
33264 msgstr ""
33265 " guestfs_h *g = guestfs_create ();\n"
33266 " guestfs_add_drive (g, \"guest.img\");\n"
33267 " guestfs_launch (g);\n"
33268 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33269 " guestfs_touch (g, \"/hello\");\n"
33270 " guestfs_umount (g, \"/\");\n"
33271 " guestfs_close (g);\n"
33272 "\n"
33273
33274 #. type: textblock
33275 #: ../src/guestfs.pod:25
33276 msgid ""
33277 "Libguestfs is a library for accessing and modifying guest disk images.  "
33278 "Amongst the things this is good for: making batch configuration changes to "
33279 "guests, getting disk used/free statistics (see also: virt-df), migrating "
33280 "between virtualization systems (see also: virt-p2v), performing partial "
33281 "backups, performing partial guest clones, cloning guests and changing "
33282 "registry/UUID/hostname info, and much else besides."
33283 msgstr ""
33284
33285 #. type: textblock
33286 #: ../src/guestfs.pod:33
33287 msgid ""
33288 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
33289 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
33290 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
33291 "qcow2, vmdk."
33292 msgstr ""
33293
33294 #. type: textblock
33295 #: ../src/guestfs.pod:38
33296 msgid ""
33297 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
33298 "what filesystem is in each LV, etc.).  It can also run commands in the "
33299 "context of the guest.  Also you can access filesystems over FUSE."
33300 msgstr ""
33301
33302 #. type: textblock
33303 #: ../src/guestfs.pod:43
33304 msgid ""
33305 "Libguestfs is a library that can be linked with C and C++ management "
33306 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
33307 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
33308 "command line."
33309 msgstr ""
33310
33311 #. type: textblock
33312 #: ../src/guestfs.pod:48
33313 msgid ""
33314 "You don't need to be root to use libguestfs, although obviously you do need "
33315 "enough permissions to access the disk images."
33316 msgstr ""
33317
33318 #. type: textblock
33319 #: ../src/guestfs.pod:51
33320 msgid ""
33321 "Libguestfs is a large API because it can do many things.  For a gentle "
33322 "introduction, please read the L</API OVERVIEW> section next."
33323 msgstr ""
33324
33325 #. type: textblock
33326 #: ../src/guestfs.pod:54
33327 msgid ""
33328 "There are also some example programs in the L<guestfs-examples(3)> manual "
33329 "page."
33330 msgstr ""
33331
33332 #. type: =head1
33333 #: ../src/guestfs.pod:57
33334 msgid "API OVERVIEW"
33335 msgstr "ОГЛЯД API"
33336
33337 #. type: textblock
33338 #: ../src/guestfs.pod:59
33339 msgid ""
33340 "This section provides a gentler overview of the libguestfs API.  We also try "
33341 "to group API calls together, where that may not be obvious from reading "
33342 "about the individual calls in the main section of this manual."
33343 msgstr ""
33344
33345 #. type: =head2
33346 #: ../src/guestfs.pod:64
33347 msgid "HANDLES"
33348 msgstr "ОБРОБНИКИ"
33349
33350 #. type: textblock
33351 #: ../src/guestfs.pod:66
33352 msgid ""
33353 "Before you can use libguestfs calls, you have to create a handle.  Then you "
33354 "must add at least one disk image to the handle, followed by launching the "
33355 "handle, then performing whatever operations you want, and finally closing "
33356 "the handle.  By convention we use the single letter C<g> for the name of the "
33357 "handle variable, although of course you can use any name you want."
33358 msgstr ""
33359
33360 #. type: textblock
33361 #: ../src/guestfs.pod:73
33362 msgid "The general structure of all libguestfs-using programs looks like this:"
33363 msgstr ""
33364
33365 #. type: verbatim
33366 #: ../src/guestfs.pod:76
33367 #, no-wrap
33368 msgid ""
33369 " guestfs_h *g = guestfs_create ();\n"
33370 " \n"
33371 msgstr ""
33372 " guestfs_h *g = guestfs_create ();\n"
33373 " \n"
33374
33375 #. type: verbatim
33376 #: ../src/guestfs.pod:78
33377 #, no-wrap
33378 msgid ""
33379 " /* Call guestfs_add_drive additional times if there are\n"
33380 "  * multiple disk images.\n"
33381 "  */\n"
33382 " guestfs_add_drive (g, \"guest.img\");\n"
33383 " \n"
33384 msgstr ""
33385
33386 #. type: verbatim
33387 #: ../src/guestfs.pod:83
33388 #, no-wrap
33389 msgid ""
33390 " /* Most manipulation calls won't work until you've launched\n"
33391 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
33392 "  * and _before_ other commands.\n"
33393 "  */\n"
33394 " guestfs_launch (g);\n"
33395 " \n"
33396 msgstr ""
33397
33398 #. type: verbatim
33399 #: ../src/guestfs.pod:89
33400 #, no-wrap
33401 msgid ""
33402 " /* Now you can examine what partitions, LVs etc are available.\n"
33403 "  */\n"
33404 " char **partitions = guestfs_list_partitions (g);\n"
33405 " char **logvols = guestfs_lvs (g);\n"
33406 " \n"
33407 msgstr ""
33408 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
33409 "  */\n"
33410 " char **partitions = guestfs_list_partitions (g);\n"
33411 " char **logvols = guestfs_lvs (g);\n"
33412 " \n"
33413
33414 #. type: verbatim
33415 #: ../src/guestfs.pod:94
33416 #, no-wrap
33417 msgid ""
33418 " /* To access a filesystem in the image, you must mount it.\n"
33419 "  */\n"
33420 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33421 " \n"
33422 msgstr ""
33423 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
33424 "  */\n"
33425 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33426 " \n"
33427
33428 #. type: verbatim
33429 #: ../src/guestfs.pod:98
33430 #, no-wrap
33431 msgid ""
33432 " /* Now you can perform filesystem actions on the guest\n"
33433 "  * disk image.\n"
33434 "  */\n"
33435 " guestfs_touch (g, \"/hello\");\n"
33436 " \n"
33437 msgstr ""
33438
33439 #. type: verbatim
33440 #: ../src/guestfs.pod:103
33441 #, no-wrap
33442 msgid ""
33443 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
33444 "  * it is done automatically when you close the handle.  See\n"
33445 "  * discussion of autosync in this page.\n"
33446 "  */\n"
33447 " guestfs_sync (g);\n"
33448 " \n"
33449 msgstr ""
33450
33451 #. type: verbatim
33452 #: ../src/guestfs.pod:109
33453 #, no-wrap
33454 msgid ""
33455 " /* Close the handle 'g'. */\n"
33456 " guestfs_close (g);\n"
33457 "\n"
33458 msgstr ""
33459 " /* Закрити дескриптор 'g'. */\n"
33460 " guestfs_close (g);\n"
33461 "\n"
33462
33463 #. type: textblock
33464 #: ../src/guestfs.pod:112
33465 msgid ""
33466 "The code above doesn't include any error checking.  In real code you should "
33467 "check return values carefully for errors.  In general all functions that "
33468 "return integers return C<-1> on error, and all functions that return "
33469 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
33470 "how to handle errors, and consult the documentation for each function call "
33471 "below to see precisely how they return error indications.  See L<guestfs-"
33472 "examples(3)> for fully worked examples."
33473 msgstr ""
33474
33475 #. type: =head2
33476 #: ../src/guestfs.pod:121
33477 msgid "DISK IMAGES"
33478 msgstr "ОБРАЗИ ДИСКІВ"
33479
33480 #. type: textblock
33481 #: ../src/guestfs.pod:123
33482 msgid ""
33483 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
33484 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
33485 "actual block device, or simply an empty file of zeroes that you have created "
33486 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
33487 "of these."
33488 msgstr ""
33489
33490 #. type: textblock
33491 #: ../src/guestfs.pod:129
33492 msgid ""
33493 "The call you should use in modern code for adding drives is L</"
33494 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
33495 "specifying that the format is raw, do:"
33496 msgstr ""
33497
33498 #. type: verbatim
33499 #: ../src/guestfs.pod:133
33500 #, no-wrap
33501 msgid ""
33502 " guestfs_add_drive_opts (g, filename,\n"
33503 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33504 "                         -1);\n"
33505 "\n"
33506 msgstr ""
33507 " guestfs_add_drive_opts (g, filename,\n"
33508 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33509 "                         -1);\n"
33510 "\n"
33511
33512 #. type: textblock
33513 #: ../src/guestfs.pod:137
33514 msgid "You can add a disk read-only using:"
33515 msgstr "Ви можете додати диск у режимі лише читання:"
33516
33517 #. type: verbatim
33518 #: ../src/guestfs.pod:139
33519 #, no-wrap
33520 msgid ""
33521 " guestfs_add_drive_opts (g, filename,\n"
33522 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33523 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33524 "                         -1);\n"
33525 "\n"
33526 msgstr ""
33527 " guestfs_add_drive_opts (g, filename,\n"
33528 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33529 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33530 "                         -1);\n"
33531 "\n"
33532
33533 #. type: textblock
33534 #: ../src/guestfs.pod:144
33535 msgid ""
33536 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
33537 "libguestfs won't modify the file."
33538 msgstr ""
33539
33540 #. type: textblock
33541 #: ../src/guestfs.pod:147
33542 msgid ""
33543 "Be extremely cautious if the disk image is in use, eg. if it is being used "
33544 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
33545 "corruption, but adding it read-only is safe."
33546 msgstr ""
33547
33548 #. type: textblock
33549 #: ../src/guestfs.pod:151
33550 msgid ""
33551 "You must add at least one disk image, and you may add multiple disk images.  "
33552 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
33553 "first one you added), C</dev/sdb> (for the second one you added), etc."
33554 msgstr ""
33555
33556 #. type: textblock
33557 #: ../src/guestfs.pod:156
33558 msgid ""
33559 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
33560 "can call L</guestfs_list_devices> to get a list of the device names, in the "
33561 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
33562 msgstr ""
33563
33564 #. type: =head2
33565 #: ../src/guestfs.pod:161
33566 msgid "MOUNTING"
33567 msgstr "МОНТУВАННЯ"
33568
33569 #. type: textblock
33570 #: ../src/guestfs.pod:163
33571 msgid ""
33572 "Before you can read or write files, create directories and so on in a disk "
33573 "image that contains filesystems, you have to mount those filesystems using "
33574 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
33575 "a disk image contains (for example) one partition with a filesystem on that "
33576 "partition, then you can mount it directly:"
33577 msgstr ""
33578
33579 #. type: verbatim
33580 #: ../src/guestfs.pod:170
33581 #, no-wrap
33582 msgid ""
33583 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33584 "\n"
33585 msgstr ""
33586 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33587 "\n"
33588
33589 #. type: textblock
33590 #: ../src/guestfs.pod:172
33591 msgid ""
33592 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
33593 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
33594 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
33595 "that these are libguestfs virtual devices, and are nothing to do with host "
33596 "devices."
33597 msgstr ""
33598
33599 #. type: textblock
33600 #: ../src/guestfs.pod:178
33601 msgid ""
33602 "If you are given a disk image and you don't know what it contains then you "
33603 "have to find out.  Libguestfs can do that too: use L</"
33604 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
33605 "LVs, and either try mounting each to see what is mountable, or else examine "
33606 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
33607 "filesystems, use L</guestfs_list_filesystems>."
33608 msgstr ""
33609
33610 #. type: textblock
33611 #: ../src/guestfs.pod:186
33612 msgid ""
33613 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
33614 "L</INSPECTION> below).  But you might find it easier to look at higher level "
33615 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
33616 msgstr ""
33617
33618 #. type: textblock
33619 #: ../src/guestfs.pod:191
33620 msgid ""
33621 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
33622 "several other variations of the C<guestfs_mount_*> call."
33623 msgstr ""
33624
33625 #. type: =head2
33626 #: ../src/guestfs.pod:194
33627 msgid "FILESYSTEM ACCESS AND MODIFICATION"
33628 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
33629
33630 #. type: textblock
33631 #: ../src/guestfs.pod:196
33632 msgid ""
33633 "The majority of the libguestfs API consists of fairly low-level calls for "
33634 "accessing and modifying the files, directories, symlinks etc on mounted "
33635 "filesystems.  There are over a hundred such calls which you can find listed "
33636 "in detail below in this man page, and we don't even pretend to cover them "
33637 "all in this overview."
33638 msgstr ""
33639
33640 #. type: textblock
33641 #: ../src/guestfs.pod:202
33642 msgid ""
33643 "Specify filenames as full paths, starting with C<\"/\"> and including the "
33644 "mount point."
33645 msgstr ""
33646 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
33647 "точкою монтування."
33648
33649 #. type: textblock
33650 #: ../src/guestfs.pod:205
33651 msgid ""
33652 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
33653 "the file called C<\"etc/passwd\"> then you could do:"
33654 msgstr ""
33655 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
33656 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
33657 "таким кодом:"
33658
33659 #. type: verbatim
33660 #: ../src/guestfs.pod:208
33661 #, no-wrap
33662 msgid ""
33663 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
33664 "\n"
33665 msgstr ""
33666 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
33667 "\n"
33668
33669 #. type: textblock
33670 #: ../src/guestfs.pod:210
33671 msgid ""
33672 "This would return C<data> as a newly allocated buffer containing the full "
33673 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
33674 "or C<NULL> if there was an error."
33675 msgstr ""
33676
33677 #. type: textblock
33678 #: ../src/guestfs.pod:214
33679 msgid ""
33680 "As another example, to create a top-level directory on that filesystem "
33681 "called C<\"var\"> you would do:"
33682 msgstr ""
33683
33684 #. type: verbatim
33685 #: ../src/guestfs.pod:217
33686 #, no-wrap
33687 msgid ""
33688 " guestfs_mkdir (g, \"/var\");\n"
33689 "\n"
33690 msgstr ""
33691 " guestfs_mkdir (g, \"/var\");\n"
33692 "\n"
33693
33694 #. type: textblock
33695 #: ../src/guestfs.pod:219
33696 msgid "To create a symlink you could do:"
33697 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
33698
33699 #. type: verbatim
33700 #: ../src/guestfs.pod:221
33701 #, no-wrap
33702 msgid ""
33703 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
33704 "               \"/etc/rc3.d/S30portmap\");\n"
33705 "\n"
33706 msgstr ""
33707 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
33708 "               \"/etc/rc3.d/S30portmap\");\n"
33709 "\n"
33710
33711 #. type: textblock
33712 #: ../src/guestfs.pod:224
33713 msgid ""
33714 "Libguestfs will reject attempts to use relative paths and there is no "
33715 "concept of a current working directory."
33716 msgstr ""
33717
33718 #. type: textblock
33719 #: ../src/guestfs.pod:227
33720 msgid ""
33721 "Libguestfs can return errors in many situations: for example if the "
33722 "filesystem isn't writable, or if a file or directory that you requested "
33723 "doesn't exist.  If you are using the C API (documented here)  you have to "
33724 "check for those error conditions after each call.  (Other language bindings "
33725 "turn these errors into exceptions)."
33726 msgstr ""
33727
33728 #. type: textblock
33729 #: ../src/guestfs.pod:233
33730 msgid ""
33731 "File writes are affected by the per-handle umask, set by calling L</"
33732 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
33733 msgstr ""
33734
33735 #. type: =head2
33736 #: ../src/guestfs.pod:236
33737 msgid "PARTITIONING"
33738 msgstr "ПОДІЛ НА РОЗДІЛИ"
33739
33740 #. type: textblock
33741 #: ../src/guestfs.pod:238
33742 msgid ""
33743 "Libguestfs contains API calls to read, create and modify partition tables on "
33744 "disk images."
33745 msgstr ""
33746
33747 #. type: textblock
33748 #: ../src/guestfs.pod:241
33749 msgid ""
33750 "In the common case where you want to create a single partition covering the "
33751 "whole disk, you should use the L</guestfs_part_disk> call:"
33752 msgstr ""
33753
33754 #. type: verbatim
33755 #: ../src/guestfs.pod:245
33756 #, no-wrap
33757 msgid ""
33758 " const char *parttype = \"mbr\";\n"
33759 " if (disk_is_larger_than_2TB)\n"
33760 "   parttype = \"gpt\";\n"
33761 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33762 "\n"
33763 msgstr ""
33764 " const char *parttype = \"mbr\";\n"
33765 " if (disk_is_larger_than_2TB)\n"
33766 "   parttype = \"gpt\";\n"
33767 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33768 "\n"
33769
33770 #. type: textblock
33771 #: ../src/guestfs.pod:250
33772 msgid ""
33773 "Obviously this effectively wipes anything that was on that disk image before."
33774 msgstr ""
33775
33776 #. type: =head2
33777 #: ../src/guestfs.pod:253
33778 msgid "LVM2"
33779 msgstr "LVM2"
33780
33781 #. type: textblock
33782 #: ../src/guestfs.pod:255
33783 msgid ""
33784 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
33785 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
33786 "you familiarize yourself with the concepts of physical volumes, volume "
33787 "groups and logical volumes."
33788 msgstr ""
33789
33790 #. type: textblock
33791 #: ../src/guestfs.pod:260
33792 msgid ""
33793 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
33794 "tldp.org/HOWTO/LVM-HOWTO/>."
33795 msgstr ""
33796
33797 #. type: =head2
33798 #: ../src/guestfs.pod:263
33799 msgid "DOWNLOADING"
33800 msgstr "ОТРИМАННЯ ДАНИХ"
33801
33802 #. type: textblock
33803 #: ../src/guestfs.pod:265
33804 msgid ""
33805 "Use L</guestfs_cat> to download small, text only files.  This call is "
33806 "limited to files which are less than 2 MB and which cannot contain any ASCII "
33807 "NUL (C<\\0>) characters.  However the API is very simple to use."
33808 msgstr ""
33809
33810 #. type: textblock
33811 #: ../src/guestfs.pod:269
33812 msgid ""
33813 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
33814 "bit data, since it returns a (pointer, size) pair.  However it is still "
33815 "limited to \"small\" files, less than 2 MB."
33816 msgstr ""
33817
33818 #. type: textblock
33819 #: ../src/guestfs.pod:273
33820 msgid ""
33821 "L</guestfs_download> can be used to download any file, with no limits on "
33822 "content or size (even files larger than 4 GB)."
33823 msgstr ""
33824
33825 #. type: textblock
33826 #: ../src/guestfs.pod:276
33827 msgid ""
33828 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
33829 msgstr ""
33830
33831 #. type: =head2
33832 #: ../src/guestfs.pod:279
33833 msgid "UPLOADING"
33834 msgstr "ВИВАНТАЖЕННЯ"
33835
33836 #. type: textblock
33837 #: ../src/guestfs.pod:281
33838 msgid ""
33839 "It's often the case that you want to write a file or files to the disk image."
33840 msgstr ""
33841
33842 #. type: textblock
33843 #: ../src/guestfs.pod:284
33844 msgid ""
33845 "To write a small file with fixed content, use L</guestfs_write>.  To create "
33846 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
33847 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
33848 "of other functions for creating test files, for example L</guestfs_fill> and "
33849 "L</guestfs_fill_pattern>."
33850 msgstr ""
33851
33852 #. type: textblock
33853 #: ../src/guestfs.pod:290
33854 msgid ""
33855 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
33856 "file content or size (even files larger than 4 GB)."
33857 msgstr ""
33858
33859 #. type: textblock
33860 #: ../src/guestfs.pod:293
33861 msgid ""
33862 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33863 msgstr ""
33864
33865 #. type: textblock
33866 #: ../src/guestfs.pod:295
33867 msgid ""
33868 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33869 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
33870 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
33871 "in a predictable way (eg. adding it last after all other drives) then you "
33872 "can get the device name from L</guestfs_list_devices> and mount it directly "
33873 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
33874 "portable between kernel versions, and they don't support labels or UUIDs.  "
33875 "If you want to pre-build an image or you need to mount it using a label or "
33876 "UUID, use an ISO image instead."
33877 msgstr ""
33878
33879 #. type: =head2
33880 #: ../src/guestfs.pod:306
33881 msgid "COPYING"
33882 msgstr "КОПІЮВАННЯ"
33883
33884 #. type: textblock
33885 #: ../src/guestfs.pod:308
33886 msgid ""
33887 "There are various different commands for copying between files and devices "
33888 "and in and out of the guest filesystem.  These are summarised in the table "
33889 "below."
33890 msgstr ""
33891
33892 #. type: =item
33893 #: ../src/guestfs.pod:314
33894 msgid "B<file> to B<file>"
33895 msgstr "B<файл> у B<файл>"
33896
33897 #. type: textblock
33898 #: ../src/guestfs.pod:316
33899 msgid ""
33900 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33901 "directories recursively."
33902 msgstr ""
33903
33904 #. type: =item
33905 #: ../src/guestfs.pod:319
33906 msgid "B<file or device> to B<file or device>"
33907 msgstr "B<файл або пристрій> у B<файл або пристрій>"
33908
33909 #. type: textblock
33910 #: ../src/guestfs.pod:321
33911 msgid ""
33912 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33913 "devices in the guest."
33914 msgstr ""
33915
33916 #. type: textblock
33917 #: ../src/guestfs.pod:324
33918 msgid "Example: duplicate the contents of an LV:"
33919 msgstr ""
33920
33921 #. type: verbatim
33922 #: ../src/guestfs.pod:326
33923 #, no-wrap
33924 msgid ""
33925 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33926 "\n"
33927 msgstr ""
33928 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33929 "\n"
33930
33931 #. type: textblock
33932 #: ../src/guestfs.pod:328
33933 msgid ""
33934 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33935 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
33936 "guestfs_copy_size>."
33937 msgstr ""
33938
33939 #. type: =item
33940 #: ../src/guestfs.pod:332
33941 msgid "B<file on the host> to B<file or device>"
33942 msgstr ""
33943
33944 #. type: textblock
33945 #: ../src/guestfs.pod:334
33946 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
33947 msgstr ""
33948
33949 #. type: =item
33950 #: ../src/guestfs.pod:336
33951 msgid "B<file or device> to B<file on the host>"
33952 msgstr ""
33953
33954 #. type: textblock
33955 #: ../src/guestfs.pod:338
33956 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
33957 msgstr ""
33958
33959 #. type: =head2
33960 #: ../src/guestfs.pod:342
33961 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33962 msgstr ""
33963
33964 #. type: textblock
33965 #: ../src/guestfs.pod:344
33966 msgid ""
33967 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33968 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33969 "appears you can only upload and download to files.  However many Un*x-like "
33970 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33971 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33972 "and arbitrary file descriptor N."
33973 msgstr ""
33974
33975 #. type: textblock
33976 #: ../src/guestfs.pod:352
33977 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33978 msgstr ""
33979
33980 #. type: verbatim
33981 #: ../src/guestfs.pod:355
33982 #, no-wrap
33983 msgid ""
33984 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33985 "\n"
33986 msgstr ""
33987 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33988 "\n"
33989
33990 #. type: textblock
33991 #: ../src/guestfs.pod:357
33992 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33993 msgstr ""
33994
33995 #. type: verbatim
33996 #: ../src/guestfs.pod:359
33997 #, no-wrap
33998 msgid ""
33999 " char devfd[64];\n"
34000 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34001 " guestfs_tar_out (g, \"/\", devfd);\n"
34002 "\n"
34003 msgstr ""
34004 " char devfd[64];\n"
34005 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34006 " guestfs_tar_out (g, \"/\", devfd);\n"
34007 "\n"
34008
34009 #. type: =head2
34010 #: ../src/guestfs.pod:363
34011 msgid "LISTING FILES"
34012 msgstr "СПИСКИ ФАЙЛІВ"
34013
34014 #. type: textblock
34015 #: ../src/guestfs.pod:365
34016 msgid ""
34017 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
34018 "L<guestfish(1)>-equivalent command C<ll>)."
34019 msgstr ""
34020
34021 #. type: textblock
34022 #: ../src/guestfs.pod:368
34023 msgid ""
34024 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
34025 "programs, as a flat list of strings."
34026 msgstr ""
34027
34028 #. type: textblock
34029 #: ../src/guestfs.pod:371
34030 msgid ""
34031 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
34032 "directory, plus additional information about each one.  It is more "
34033 "equivalent to using the L<readdir(3)> call on a local filesystem."
34034 msgstr ""
34035
34036 #. type: textblock
34037 #: ../src/guestfs.pod:375
34038 msgid ""
34039 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
34040 msgstr ""
34041
34042 #. type: =head2
34043 #: ../src/guestfs.pod:378
34044 msgid "RUNNING COMMANDS"
34045 msgstr "ВИКОНАННЯ КОМАНД"
34046
34047 #. type: textblock
34048 #: ../src/guestfs.pod:380
34049 msgid ""
34050 "Although libguestfs is primarily an API for manipulating files inside guest "
34051 "images, we also provide some limited facilities for running commands inside "
34052 "guests."
34053 msgstr ""
34054
34055 #. type: textblock
34056 #: ../src/guestfs.pod:384
34057 msgid "There are many limitations to this:"
34058 msgstr ""
34059
34060 #. type: textblock
34061 #: ../src/guestfs.pod:390
34062 msgid ""
34063 "The kernel version that the command runs under will be different from what "
34064 "it expects."
34065 msgstr ""
34066
34067 #. type: textblock
34068 #: ../src/guestfs.pod:395
34069 msgid ""
34070 "If the command needs to communicate with daemons, then most likely they "
34071 "won't be running."
34072 msgstr ""
34073
34074 #. type: textblock
34075 #: ../src/guestfs.pod:400
34076 msgid "The command will be running in limited memory."
34077 msgstr ""
34078
34079 #. type: textblock
34080 #: ../src/guestfs.pod:404
34081 msgid ""
34082 "The network may not be available unless you enable it (see L</"
34083 "guestfs_set_network>)."
34084 msgstr ""
34085
34086 #. type: textblock
34087 #: ../src/guestfs.pod:409
34088 msgid "Only supports Linux guests (not Windows, BSD, etc)."
34089 msgstr ""
34090
34091 #. type: textblock
34092 #: ../src/guestfs.pod:413
34093 msgid ""
34094 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
34095 msgstr ""
34096
34097 #. type: textblock
34098 #: ../src/guestfs.pod:418
34099 msgid ""
34100 "For SELinux guests, you may need to enable SELinux and load policy first.  "
34101 "See L</SELINUX> in this manpage."
34102 msgstr ""
34103
34104 #. type: textblock
34105 #: ../src/guestfs.pod:423
34106 msgid ""
34107 "I<Security:> It is not safe to run commands from untrusted, possibly "
34108 "malicious guests.  These commands may attempt to exploit your program by "
34109 "sending unexpected output.  They could also try to exploit the Linux kernel "
34110 "or qemu provided by the libguestfs appliance.  They could use the network "
34111 "provided by the libguestfs appliance to bypass ordinary network partitions "
34112 "and firewalls.  They could use the elevated privileges or different SELinux "
34113 "context of your program to their advantage."
34114 msgstr ""
34115
34116 #. type: textblock
34117 #: ../src/guestfs.pod:432
34118 msgid ""
34119 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
34120 "(a script which runs when the guest next boots normally), and to have this "
34121 "script run the commands you want in the normal context of the running guest, "
34122 "network security and so on.  For information about other security issues, "
34123 "see L</SECURITY>."
34124 msgstr ""
34125
34126 #. type: textblock
34127 #: ../src/guestfs.pod:440
34128 msgid ""
34129 "The two main API calls to run commands are L</guestfs_command> and L</"
34130 "guestfs_sh> (there are also variations)."
34131 msgstr ""
34132
34133 #. type: textblock
34134 #: ../src/guestfs.pod:443
34135 msgid ""
34136 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
34137 "shell globs, redirections, etc will work."
34138 msgstr ""
34139
34140 #. type: =head2
34141 #: ../src/guestfs.pod:446
34142 msgid "CONFIGURATION FILES"
34143 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
34144
34145 #. type: textblock
34146 #: ../src/guestfs.pod:448
34147 msgid ""
34148 "To read and write configuration files in Linux guest filesystems, we "
34149 "strongly recommend using Augeas.  For example, Augeas understands how to "
34150 "read and write, say, a Linux shadow password file or X.org configuration "
34151 "file, and so avoids you having to write that code."
34152 msgstr ""
34153
34154 #. type: textblock
34155 #: ../src/guestfs.pod:453
34156 msgid ""
34157 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
34158 "document Augeas itself here because there is excellent documentation on the "
34159 "L<http://augeas.net/> website."
34160 msgstr ""
34161
34162 #. type: textblock
34163 #: ../src/guestfs.pod:457
34164 msgid ""
34165 "If you don't want to use Augeas (you fool!) then try calling L</"
34166 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
34167 "over."
34168 msgstr ""
34169
34170 #. type: =head2
34171 #: ../src/guestfs.pod:461
34172 msgid "SELINUX"
34173 msgstr "SELINUX"
34174
34175 #. type: textblock
34176 #: ../src/guestfs.pod:463
34177 msgid ""
34178 "We support SELinux guests.  To ensure that labeling happens correctly in "
34179 "SELinux guests, you need to enable SELinux and load the guest's policy:"
34180 msgstr ""
34181
34182 #. type: textblock
34183 #: ../src/guestfs.pod:471
34184 msgid "Before launching, do:"
34185 msgstr ""
34186
34187 #. type: verbatim
34188 #: ../src/guestfs.pod:473
34189 #, no-wrap
34190 msgid ""
34191 " guestfs_set_selinux (g, 1);\n"
34192 "\n"
34193 msgstr ""
34194 " guestfs_set_selinux (g, 1);\n"
34195 "\n"
34196
34197 #. type: textblock
34198 #: ../src/guestfs.pod:477
34199 msgid ""
34200 "After mounting the guest's filesystem(s), load the policy.  This is best "
34201 "done by running the L<load_policy(8)> command in the guest itself:"
34202 msgstr ""
34203
34204 #. type: verbatim
34205 #: ../src/guestfs.pod:481
34206 #, no-wrap
34207 msgid ""
34208 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34209 "\n"
34210 msgstr ""
34211 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34212 "\n"
34213
34214 #. type: textblock
34215 #: ../src/guestfs.pod:483
34216 msgid ""
34217 "(Older versions of C<load_policy> require you to specify the name of the "
34218 "policy file)."
34219 msgstr ""
34220
34221 #. type: textblock
34222 #: ../src/guestfs.pod:488
34223 msgid ""
34224 "Optionally, set the security context for the API.  The correct security "
34225 "context to use can only be known by inspecting the guest.  As an example:"
34226 msgstr ""
34227
34228 #. type: verbatim
34229 #: ../src/guestfs.pod:492
34230 #, no-wrap
34231 msgid ""
34232 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34233 "\n"
34234 msgstr ""
34235 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34236 "\n"
34237
34238 #. type: textblock
34239 #: ../src/guestfs.pod:496
34240 msgid "This will work for running commands and editing existing files."
34241 msgstr ""
34242
34243 #. type: textblock
34244 #: ../src/guestfs.pod:498
34245 msgid ""
34246 "When new files are created, you may need to label them explicitly, for "
34247 "example by running the external command C<restorecon pathname>."
34248 msgstr ""
34249
34250 #. type: =head2
34251 #: ../src/guestfs.pod:502
34252 msgid "UMASK"
34253 msgstr "UMASK"
34254
34255 #. type: textblock
34256 #: ../src/guestfs.pod:504
34257 msgid ""
34258 "Certain calls are affected by the current file mode creation mask (the "
34259 "\"umask\").  In particular ones which create files or directories, such as "
34260 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
34261 "either the default mode that the file is created with or modifies the mode "
34262 "that you supply."
34263 msgstr ""
34264
34265 #. type: textblock
34266 #: ../src/guestfs.pod:510
34267 msgid ""
34268 "The default umask is C<022>, so files are created with modes such as C<0644> "
34269 "and directories with C<0755>."
34270 msgstr ""
34271
34272 #. type: textblock
34273 #: ../src/guestfs.pod:513
34274 msgid ""
34275 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
34276 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
34277 "guestfs_chmod> after creating each file or directory."
34278 msgstr ""
34279
34280 #. type: textblock
34281 #: ../src/guestfs.pod:517
34282 msgid "For more information about umask, see L<umask(2)>."
34283 msgstr ""
34284
34285 #. type: textblock
34286 #: ../src/guestfs.pod:521
34287 msgid ""
34288 "Libguestfs allows you to access Linux guests which have been encrypted using "
34289 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
34290 "standard.  This includes nearly all whole disk encryption systems used by "
34291 "modern Linux guests."
34292 msgstr ""
34293
34294 #. type: textblock
34295 #: ../src/guestfs.pod:527
34296 msgid ""
34297 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
34298 "returns the string C<crypto_LUKS>)."
34299 msgstr ""
34300
34301 #. type: textblock
34302 #: ../src/guestfs.pod:530
34303 msgid ""
34304 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
34305 "will require the passphrase!"
34306 msgstr ""
34307
34308 #. type: textblock
34309 #: ../src/guestfs.pod:533
34310 msgid ""
34311 "Opening a LUKS device creates a new device mapper device called C</dev/"
34312 "mapper/mapname> (where C<mapname> is the string you supply to L</"
34313 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
34314 "from and encrypted to the underlying block device respectively."
34315 msgstr ""
34316
34317 #. type: textblock
34318 #: ../src/guestfs.pod:539
34319 msgid ""
34320 "LVM volume groups on the device can be made visible by calling L</"
34321 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
34322 "(s) can now be mounted in the usual way."
34323 msgstr ""
34324
34325 #. type: textblock
34326 #: ../src/guestfs.pod:543
34327 msgid ""
34328 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
34329 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
34330 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
34331 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
34332 "underlying encrypted block device)."
34333 msgstr ""
34334
34335 #. type: =head2
34336 #: ../src/guestfs.pod:550
34337 msgid "INSPECTION"
34338 msgstr "ПЕРЕВІРКА"
34339
34340 #. type: textblock
34341 #: ../src/guestfs.pod:552
34342 msgid ""
34343 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
34344 "contains operating systems, an install CD or a live CD.  (These APIs used to "
34345 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
34346 "version 1.5.3 the most frequently used part of this library has been "
34347 "rewritten in C and moved into the core code)."
34348 msgstr ""
34349
34350 #. type: textblock
34351 #: ../src/guestfs.pod:559
34352 msgid ""
34353 "Add all disks belonging to the unknown virtual machine and call L</"
34354 "guestfs_launch> in the usual way."
34355 msgstr ""
34356
34357 #. type: textblock
34358 #: ../src/guestfs.pod:562
34359 msgid ""
34360 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
34361 "and certain heuristics, and returns a list of operating systems that were "
34362 "found.  An empty list means none were found.  A single element is the root "
34363 "filesystem of the operating system.  For dual- or multi-boot guests, "
34364 "multiple roots can be returned, each one corresponding to a separate "
34365 "operating system.  (Multi-boot virtual machines are extremely rare in the "
34366 "world of virtualization, but since this scenario can happen, we have built "
34367 "libguestfs to deal with it.)"
34368 msgstr ""
34369
34370 #. type: textblock
34371 #: ../src/guestfs.pod:571
34372 msgid ""
34373 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
34374 "to get additional details about that operating system.  For example, call L</"
34375 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
34376 "Windows and Linux-based operating systems respectively."
34377 msgstr ""
34378
34379 #. type: textblock
34380 #: ../src/guestfs.pod:577
34381 msgid ""
34382 "Un*x-like and Linux-based operating systems usually consist of several "
34383 "filesystems which are mounted at boot time (for example, a separate boot "
34384 "partition mounted on C</boot>).  The inspection rules are able to detect how "
34385 "filesystems correspond to mount points.  Call "
34386 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
34387 "hash table like this example:"
34388 msgstr ""
34389
34390 #. type: verbatim
34391 #: ../src/guestfs.pod:584
34392 #, no-wrap
34393 msgid ""
34394 " /boot => /dev/sda1\n"
34395 " /     => /dev/vg_guest/lv_root\n"
34396 " /usr  => /dev/vg_guest/lv_usr\n"
34397 "\n"
34398 msgstr ""
34399 " /boot => /dev/sda1\n"
34400 " /     => /dev/vg_guest/lv_root\n"
34401 " /usr  => /dev/vg_guest/lv_usr\n"
34402 "\n"
34403
34404 #. type: textblock
34405 #: ../src/guestfs.pod:588
34406 msgid ""
34407 "The caller can then make calls to L</guestfs_mount_options> to mount the "
34408 "filesystems as suggested."
34409 msgstr ""
34410
34411 #. type: textblock
34412 #: ../src/guestfs.pod:591
34413 msgid ""
34414 "Be careful to mount filesystems in the right order (eg. C</> before C</"
34415 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
34416 msgstr ""
34417
34418 #. type: textblock
34419 #: ../src/guestfs.pod:595
34420 msgid ""
34421 "Inspection currently only works for some common operating systems.  "
34422 "Contributors are welcome to send patches for other operating systems that we "
34423 "currently cannot detect."
34424 msgstr ""
34425
34426 #. type: textblock
34427 #: ../src/guestfs.pod:599
34428 msgid ""
34429 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
34430 "for more details.  The L</guestfs_inspect_os> function just ignores any "
34431 "encrypted devices."
34432 msgstr ""
34433
34434 #. type: textblock
34435 #: ../src/guestfs.pod:603
34436 msgid ""
34437 "A note on the implementation: The call L</guestfs_inspect_os> performs "
34438 "inspection and caches the results in the guest handle.  Subsequent calls to "
34439 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
34440 "read the disks.  If you change the content of the guest disks, you can redo "
34441 "inspection by calling L</guestfs_inspect_os> again.  (L</"
34442 "guestfs_inspect_list_applications> works a little differently from the other "
34443 "calls and does read the disks.  See documentation for that function for "
34444 "details)."
34445 msgstr ""
34446
34447 #. type: =head3
34448 #: ../src/guestfs.pod:612
34449 msgid "INSPECTING INSTALL DISKS"
34450 msgstr ""
34451
34452 #. type: textblock
34453 #: ../src/guestfs.pod:614
34454 msgid ""
34455 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
34456 "CDs and more."
34457 msgstr ""
34458
34459 #. type: textblock
34460 #: ../src/guestfs.pod:617
34461 msgid ""
34462 "Call L</guestfs_inspect_get_format> to return the format of the operating "
34463 "system, which currently can be C<installed> (a regular operating system) or "
34464 "C<installer> (some sort of install disk)."
34465 msgstr ""
34466
34467 #. type: textblock
34468 #: ../src/guestfs.pod:621
34469 msgid ""
34470 "Further information is available about the operating system that can be "
34471 "installed using the regular inspection APIs like L</"
34472 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
34473 msgstr ""
34474
34475 #. type: textblock
34476 #: ../src/guestfs.pod:626
34477 msgid ""
34478 "Some additional information specific to installer disks is also available "
34479 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
34480 "guestfs_inspect_is_multipart> calls."
34481 msgstr ""
34482
34483 #. type: =head2
34484 #: ../src/guestfs.pod:631
34485 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
34486 msgstr ""
34487
34488 #. type: textblock
34489 #: ../src/guestfs.pod:633
34490 msgid ""
34491 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
34492 "ntfs-3g.org/> driver."
34493 msgstr ""
34494
34495 #. type: =head3
34496 #: ../src/guestfs.pod:636
34497 msgid "DRIVE LETTERS AND PATHS"
34498 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
34499
34500 #. type: textblock
34501 #: ../src/guestfs.pod:638
34502 msgid ""
34503 "DOS and Windows still use drive letters, and the filesystems are always "
34504 "treated as case insensitive by Windows itself, and therefore you might find "
34505 "a Windows configuration file referring to a path like C<c:\\windows"
34506 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
34507 "might be referred to as C</WINDOWS/System32>."
34508 msgstr ""
34509
34510 #. type: textblock
34511 #: ../src/guestfs.pod:644
34512 msgid ""
34513 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
34514 "L</guestfs_inspect_get_drive_mappings>)"
34515 msgstr ""
34516
34517 #. type: textblock
34518 #: ../src/guestfs.pod:647
34519 msgid ""
34520 "Dealing with separator characters (backslash vs forward slash) is outside "
34521 "the scope of libguestfs, but usually a simple character replacement will "
34522 "work."
34523 msgstr ""
34524
34525 #. type: textblock
34526 #: ../src/guestfs.pod:651
34527 msgid ""
34528 "To resolve the case insensitivity of paths, call L</"
34529 "guestfs_case_sensitive_path>."
34530 msgstr ""
34531
34532 #. type: =head3
34533 #: ../src/guestfs.pod:654
34534 msgid "ACCESSING THE WINDOWS REGISTRY"
34535 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
34536
34537 #. type: textblock
34538 #: ../src/guestfs.pod:656
34539 msgid ""
34540 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
34541 "files, through the library C<hivex> which is part of the libguestfs project "
34542 "although ships as a separate tarball.  You have to locate and download the "
34543 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
34544 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
34545 "reg(1)> for more help on this issue."
34546 msgstr ""
34547
34548 #. type: =head3
34549 #: ../src/guestfs.pod:664
34550 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
34551 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
34552
34553 #. type: textblock
34554 #: ../src/guestfs.pod:666
34555 msgid ""
34556 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
34557 "provide something which looks like a Linux symlink.  The way it tries to do "
34558 "the rewriting is described here:"
34559 msgstr ""
34560
34561 #. type: textblock
34562 #: ../src/guestfs.pod:670
34563 msgid ""
34564 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34565 "symbolic-links/>"
34566 msgstr ""
34567 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34568 "symbolic-links/>"
34569
34570 #. type: textblock
34571 #: ../src/guestfs.pod:672
34572 msgid ""
34573 "The essential problem is that ntfs-3g simply does not have enough "
34574 "information to do a correct job.  NTFS links can contain drive letters and "
34575 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
34576 "It is almost certainly the case that libguestfs callers should ignore what "
34577 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
34578 msgstr ""
34579
34580 #. type: textblock
34581 #: ../src/guestfs.pod:679
34582 msgid ""
34583 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
34584 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
34585 "attribute, and read the raw reparse data from that (you can find the format "
34586 "documented in various places around the web)."
34587 msgstr ""
34588
34589 #. type: =head3
34590 #: ../src/guestfs.pod:684
34591 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
34592 msgstr ""
34593
34594 #. type: textblock
34595 #: ../src/guestfs.pod:686
34596 msgid ""
34597 "There are other useful extended attributes that can be read from ntfs-3g "
34598 "filesystems (using L</guestfs_getxattr>).  See:"
34599 msgstr ""
34600
34601 #. type: textblock
34602 #: ../src/guestfs.pod:689
34603 msgid ""
34604 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34605 msgstr ""
34606 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34607
34608 #. type: =head2
34609 #: ../src/guestfs.pod:691
34610 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
34611 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
34612
34613 #. type: textblock
34614 #: ../src/guestfs.pod:693
34615 msgid ""
34616 "Although we don't want to discourage you from using the C API, we will "
34617 "mention here that the same API is also available in other languages."
34618 msgstr ""
34619
34620 #. type: textblock
34621 #: ../src/guestfs.pod:696
34622 msgid ""
34623 "The API is broadly identical in all supported languages.  This means that "
34624 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
34625 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
34626 "OCaml.  In other words, a straightforward, predictable isomorphism between "
34627 "each language."
34628 msgstr ""
34629
34630 #. type: textblock
34631 #: ../src/guestfs.pod:702
34632 msgid ""
34633 "Error messages are automatically transformed into exceptions if the language "
34634 "supports it."
34635 msgstr ""
34636
34637 #. type: textblock
34638 #: ../src/guestfs.pod:705
34639 msgid ""
34640 "We don't try to \"object orientify\" parts of the API in OO languages, "
34641 "although contributors are welcome to write higher level APIs above what we "
34642 "provide in their favourite languages if they wish."
34643 msgstr ""
34644
34645 #. type: =item
34646 #: ../src/guestfs.pod:711
34647 msgid "B<C++>"
34648 msgstr "B<C++>"
34649
34650 #. type: textblock
34651 #: ../src/guestfs.pod:713
34652 msgid ""
34653 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
34654 "identical to the C API.  C++ classes and exceptions are not used."
34655 msgstr ""
34656
34657 #. type: =item
34658 #: ../src/guestfs.pod:717
34659 msgid "B<C#>"
34660 msgstr "B<C#>"
34661
34662 #. type: textblock
34663 #: ../src/guestfs.pod:719
34664 msgid ""
34665 "The C# bindings are highly experimental.  Please read the warnings at the "
34666 "top of C<csharp/Libguestfs.cs>."
34667 msgstr ""
34668
34669 #. type: =item
34670 #: ../src/guestfs.pod:722
34671 msgid "B<Erlang>"
34672 msgstr ""
34673
34674 #. type: textblock
34675 #: ../src/guestfs.pod:724
34676 #, fuzzy
34677 #| msgid "See L<guestfs-ruby(3)>."
34678 msgid "See L<guestfs-erlang(3)>."
34679 msgstr "Див. L<guestfs-ruby(3)>."
34680
34681 #. type: =item
34682 #: ../src/guestfs.pod:726
34683 msgid "B<Haskell>"
34684 msgstr "B<Haskell>"
34685
34686 #. type: textblock
34687 #: ../src/guestfs.pod:728
34688 msgid ""
34689 "This is the only language binding that is working but incomplete.  Only "
34690 "calls which return simple integers have been bound in Haskell, and we are "
34691 "looking for help to complete this binding."
34692 msgstr ""
34693
34694 #. type: =item
34695 #: ../src/guestfs.pod:732
34696 msgid "B<Java>"
34697 msgstr "B<Java>"
34698
34699 #. type: textblock
34700 #: ../src/guestfs.pod:734
34701 msgid ""
34702 "Full documentation is contained in the Javadoc which is distributed with "
34703 "libguestfs.  For examples, see L<guestfs-java(3)>."
34704 msgstr ""
34705
34706 #. type: =item
34707 #: ../src/guestfs.pod:737
34708 msgid "B<OCaml>"
34709 msgstr "B<OCaml>"
34710
34711 #. type: textblock
34712 #: ../src/guestfs.pod:739
34713 msgid "See L<guestfs-ocaml(3)>."
34714 msgstr "Див. L<guestfs-ocaml(3)>."
34715
34716 #. type: =item
34717 #: ../src/guestfs.pod:741
34718 msgid "B<Perl>"
34719 msgstr "B<Perl>"
34720
34721 #. type: textblock
34722 #: ../src/guestfs.pod:743
34723 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
34724 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
34725
34726 #. type: =item
34727 #: ../src/guestfs.pod:745
34728 msgid "B<PHP>"
34729 msgstr "B<PHP>"
34730
34731 #. type: textblock
34732 #: ../src/guestfs.pod:747
34733 msgid ""
34734 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
34735 "the php-libguestfs package for your distribution."
34736 msgstr ""
34737
34738 #. type: textblock
34739 #: ../src/guestfs.pod:750
34740 msgid "The PHP binding only works correctly on 64 bit machines."
34741 msgstr ""
34742
34743 #. type: =item
34744 #: ../src/guestfs.pod:752
34745 msgid "B<Python>"
34746 msgstr "B<Python>"
34747
34748 #. type: textblock
34749 #: ../src/guestfs.pod:754
34750 msgid "See L<guestfs-python(3)>."
34751 msgstr "Див. L<guestfs-python(3)>."
34752
34753 #. type: =item
34754 #: ../src/guestfs.pod:756
34755 msgid "B<Ruby>"
34756 msgstr "B<Ruby>"
34757
34758 #. type: textblock
34759 #: ../src/guestfs.pod:758
34760 msgid "See L<guestfs-ruby(3)>."
34761 msgstr "Див. L<guestfs-ruby(3)>."
34762
34763 #. type: =item
34764 #: ../src/guestfs.pod:760
34765 msgid "B<shell scripts>"
34766 msgstr "B<скрипти оболонки>"
34767
34768 #. type: textblock
34769 #: ../src/guestfs.pod:762
34770 msgid "See L<guestfish(1)>."
34771 msgstr "Див. L<guestfish(1)>."
34772
34773 #. type: =head2
34774 #: ../src/guestfs.pod:766
34775 msgid "LIBGUESTFS GOTCHAS"
34776 msgstr ""
34777
34778 #. type: textblock
34779 #: ../src/guestfs.pod:768
34780 msgid ""
34781 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
34782 "system [...] that works in the way it is documented but is counterintuitive "
34783 "and almost invites mistakes.\""
34784 msgstr ""
34785
34786 #. type: textblock
34787 #: ../src/guestfs.pod:772
34788 msgid ""
34789 "Since we developed libguestfs and the associated tools, there are several "
34790 "things we would have designed differently, but are now stuck with for "
34791 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
34792 "release, you can expect these to change.  Beware of them."
34793 msgstr ""
34794
34795 #. type: =item
34796 #: ../src/guestfs.pod:780
34797 msgid "Autosync / forgetting to sync."
34798 msgstr ""
34799
34800 #. type: textblock
34801 #: ../src/guestfs.pod:782
34802 msgid ""
34803 "I<Update:> Autosync is enabled by default for all API users starting from "
34804 "libguestfs 1.5.24.  This section only applies to older versions."
34805 msgstr ""
34806
34807 #. type: textblock
34808 #: ../src/guestfs.pod:785
34809 msgid ""
34810 "When modifying a filesystem from C or another language, you B<must> unmount "
34811 "all filesystems and call L</guestfs_sync> explicitly before you close the "
34812 "libguestfs handle.  You can also call:"
34813 msgstr ""
34814
34815 #. type: verbatim
34816 #: ../src/guestfs.pod:789
34817 #, no-wrap
34818 msgid ""
34819 " guestfs_set_autosync (g, 1);\n"
34820 "\n"
34821 msgstr ""
34822 " guestfs_set_autosync (g, 1);\n"
34823 "\n"
34824
34825 #. type: textblock
34826 #: ../src/guestfs.pod:791
34827 msgid ""
34828 "to have the unmount/sync done automatically for you when the handle 'g' is "
34829 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
34830 msgstr ""
34831
34832 #. type: textblock
34833 #: ../src/guestfs.pod:795
34834 msgid ""
34835 "If you forget to do this, then it is entirely possible that your changes "
34836 "won't be written out, or will be partially written, or (very rarely) that "
34837 "you'll get disk corruption."
34838 msgstr ""
34839
34840 #. type: textblock
34841 #: ../src/guestfs.pod:799
34842 msgid ""
34843 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
34844 "guestfish scripts that forget to sync will work just fine, which can make "
34845 "this very puzzling if you are trying to debug a problem."
34846 msgstr ""
34847
34848 #. type: =item
34849 #: ../src/guestfs.pod:803
34850 msgid "Mount option C<-o sync> should not be the default."
34851 msgstr ""
34852
34853 #. type: textblock
34854 #: ../src/guestfs.pod:805
34855 msgid ""
34856 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
34857 "However C<-o sync> does not add any reliability benefit, but does have a "
34858 "very large performance impact."
34859 msgstr ""
34860
34861 #. type: textblock
34862 #: ../src/guestfs.pod:809
34863 msgid ""
34864 "The work around is to use L</guestfs_mount_options> and set the mount "
34865 "options that you actually want to use."
34866 msgstr ""
34867
34868 #. type: =item
34869 #: ../src/guestfs.pod:812
34870 msgid "Read-only should be the default."
34871 msgstr ""
34872
34873 #. type: textblock
34874 #: ../src/guestfs.pod:814
34875 msgid ""
34876 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34877 "specify I<--rw> if you want to make changes to the image."
34878 msgstr ""
34879
34880 #. type: textblock
34881 #: ../src/guestfs.pod:817
34882 msgid "This would reduce the potential to corrupt live VM images."
34883 msgstr ""
34884
34885 #. type: textblock
34886 #: ../src/guestfs.pod:819
34887 msgid ""
34888 "Note that many filesystems change the disk when you just mount and unmount, "
34889 "even if you didn't perform any writes.  You need to use L</"
34890 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
34891 msgstr ""
34892
34893 #. type: =item
34894 #: ../src/guestfs.pod:823
34895 msgid "guestfish command line is hard to use."
34896 msgstr ""
34897
34898 #. type: textblock
34899 #: ../src/guestfs.pod:825
34900 msgid ""
34901 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34902 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
34903 "exist, so it fails.  In earlier versions of guestfish the error message was "
34904 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
34905 "we should have used C<guestfish -c command> to run commands."
34906 msgstr ""
34907
34908 #. type: =item
34909 #: ../src/guestfs.pod:832
34910 msgid "guestfish megabyte modifiers don't work right on all commands"
34911 msgstr ""
34912
34913 #. type: textblock
34914 #: ../src/guestfs.pod:834
34915 msgid ""
34916 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34917 "other modifiers).  What guestfish actually does is to multiply the number "
34918 "part by the modifier part and pass the result to the C API.  However this "
34919 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34920 "expecting some other unit (eg. megabytes)."
34921 msgstr ""
34922
34923 #. type: textblock
34924 #: ../src/guestfs.pod:841
34925 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
34926 msgstr ""
34927
34928 #. type: verbatim
34929 #: ../src/guestfs.pod:843
34930 #, no-wrap
34931 msgid ""
34932 " lvcreate LV VG 100M\n"
34933 "\n"
34934 msgstr ""
34935 " lvcreate LV VG 100M\n"
34936 "\n"
34937
34938 #. type: textblock
34939 #: ../src/guestfs.pod:845
34940 msgid ""
34941 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
34942 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34943 "megabytes * megabytes) logical volume.  The error message you get from this "
34944 "is also a little obscure."
34945 msgstr ""
34946
34947 #. type: textblock
34948 #: ../src/guestfs.pod:850
34949 msgid ""
34950 "This could be fixed in the generator by specially marking parameters and "
34951 "return values which take bytes or other units."
34952 msgstr ""
34953
34954 #. type: =item
34955 #: ../src/guestfs.pod:853
34956 msgid "Ambiguity between devices and paths"
34957 msgstr ""
34958
34959 #. type: textblock
34960 #: ../src/guestfs.pod:855
34961 msgid ""
34962 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34963 "sdb2>) and a similar pathname.  A file might just happen to be called "
34964 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34965 msgstr ""
34966
34967 #. type: textblock
34968 #: ../src/guestfs.pod:860
34969 msgid ""
34970 "In the current API we usually resolve this ambiguity by having two separate "
34971 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
34972 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34973 "detecting if the path supplied begins with C</dev/>."
34974 msgstr ""
34975
34976 #. type: textblock
34977 #: ../src/guestfs.pod:866
34978 msgid ""
34979 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34980 "make paths/devices into structured names.  One way to do this would be to "
34981 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34982 "aspect of grub.  Another way would be to use a structured type, equivalent "
34983 "to this OCaml type:"
34984 msgstr ""
34985
34986 #. type: verbatim
34987 #: ../src/guestfs.pod:872
34988 #, no-wrap
34989 msgid ""
34990 " type path = Path of string | Device of int | Partition of int * int\n"
34991 "\n"
34992 msgstr ""
34993
34994 #. type: textblock
34995 #: ../src/guestfs.pod:874
34996 msgid "which would allow you to pass arguments like:"
34997 msgstr ""
34998
34999 #. type: verbatim
35000 #: ../src/guestfs.pod:876
35001 #, no-wrap
35002 msgid ""
35003 " Path \"/foo/bar\"\n"
35004 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
35005 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
35006 " Path \"/dev/sdb2\"    (* not a device *)\n"
35007 "\n"
35008 msgstr ""
35009
35010 #. type: textblock
35011 #: ../src/guestfs.pod:881
35012 msgid ""
35013 "As you can see there are still problems to resolve even with this "
35014 "representation.  Also consider how it might work in guestfish."
35015 msgstr ""
35016
35017 #. type: =head2
35018 #: ../src/guestfs.pod:886
35019 msgid "KEYS AND PASSPHRASES"
35020 msgstr "КЛЮЧІ І ПАРОЛІ"
35021
35022 #. type: textblock
35023 #: ../src/guestfs.pod:888
35024 msgid ""
35025 "Certain libguestfs calls take a parameter that contains sensitive key "
35026 "material, passed in as a C string."
35027 msgstr ""
35028
35029 #. type: textblock
35030 #: ../src/guestfs.pod:891
35031 msgid ""
35032 "In the future we would hope to change the libguestfs implementation so that "
35033 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
35034 "swap.  However this is I<not> done at the moment, because of the complexity "
35035 "of such an implementation."
35036 msgstr ""
35037
35038 #. type: textblock
35039 #: ../src/guestfs.pod:896
35040 msgid ""
35041 "Therefore you should be aware that any key parameter you pass to libguestfs "
35042 "might end up being written out to the swap partition.  If this is a concern, "
35043 "scrub the swap partition or don't use libguestfs on encrypted devices."
35044 msgstr ""
35045
35046 #. type: =head2
35047 #: ../src/guestfs.pod:901
35048 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
35049 msgstr ""
35050
35051 #. type: textblock
35052 #: ../src/guestfs.pod:903
35053 msgid ""
35054 "All high-level libguestfs actions are synchronous.  If you want to use "
35055 "libguestfs asynchronously then you must create a thread."
35056 msgstr ""
35057
35058 #. type: textblock
35059 #: ../src/guestfs.pod:906
35060 msgid ""
35061 "Only use the handle from a single thread.  Either use the handle exclusively "
35062 "from one thread, or provide your own mutex so that two threads cannot issue "
35063 "calls on the same handle at the same time."
35064 msgstr ""
35065
35066 #. type: textblock
35067 #: ../src/guestfs.pod:910
35068 msgid ""
35069 "See the graphical program guestfs-browser for one possible architecture for "
35070 "multithreaded programs using libvirt and libguestfs."
35071 msgstr ""
35072
35073 #. type: =head2
35074 #: ../src/guestfs.pod:913
35075 msgid "PATH"
35076 msgstr "ШЛЯХ"
35077
35078 #. type: textblock
35079 #: ../src/guestfs.pod:915
35080 msgid ""
35081 "Libguestfs needs a supermin appliance, which it finds by looking along an "
35082 "internal path."
35083 msgstr ""
35084
35085 #. type: textblock
35086 #: ../src/guestfs.pod:918
35087 msgid ""
35088 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
35089 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
35090 msgstr ""
35091
35092 #. type: textblock
35093 #: ../src/guestfs.pod:921
35094 msgid ""
35095 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
35096 "to change the directories that libguestfs will search in.  The value is a "
35097 "colon-separated list of paths.  The current directory is I<not> searched "
35098 "unless the path contains an empty element or C<.>.  For example "
35099 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
35100 "then C</usr/lib/guestfs>."
35101 msgstr ""
35102
35103 #. type: =head2
35104 #: ../src/guestfs.pod:928
35105 msgid "QEMU WRAPPERS"
35106 msgstr ""
35107
35108 #. type: textblock
35109 #: ../src/guestfs.pod:930
35110 msgid ""
35111 "If you want to compile your own qemu, run qemu from a non-standard location, "
35112 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
35113 "around qemu."
35114 msgstr ""
35115
35116 #. type: textblock
35117 #: ../src/guestfs.pod:934
35118 msgid ""
35119 "There is one important rule to remember: you I<must C<exec qemu>> as the "
35120 "last command in the shell script (so that qemu replaces the shell and "
35121 "becomes the direct child of the libguestfs-using program).  If you don't do "
35122 "this, then the qemu process won't be cleaned up correctly."
35123 msgstr ""
35124
35125 #. type: textblock
35126 #: ../src/guestfs.pod:939
35127 msgid ""
35128 "Here is an example of a wrapper, where I have built my own copy of qemu from "
35129 "source:"
35130 msgstr ""
35131
35132 #. type: verbatim
35133 #: ../src/guestfs.pod:942
35134 #, no-wrap
35135 msgid ""
35136 " #!/bin/sh -\n"
35137 " qemudir=/home/rjones/d/qemu\n"
35138 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35139 "\n"
35140 msgstr ""
35141 " #!/bin/sh -\n"
35142 " qemudir=/home/rjones/d/qemu\n"
35143 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35144 "\n"
35145
35146 #. type: textblock
35147 #: ../src/guestfs.pod:946
35148 msgid ""
35149 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
35150 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
35151 "example:"
35152 msgstr ""
35153
35154 #. type: verbatim
35155 #: ../src/guestfs.pod:950
35156 #, no-wrap
35157 msgid ""
35158 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35159 "\n"
35160 msgstr ""
35161 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35162 "\n"
35163
35164 #. type: textblock
35165 #: ../src/guestfs.pod:952
35166 msgid ""
35167 "Note that libguestfs also calls qemu with the -help and -version options in "
35168 "order to determine features."
35169 msgstr ""
35170
35171 #. type: textblock
35172 #: ../src/guestfs.pod:955
35173 msgid ""
35174 "Wrappers can also be used to edit the options passed to qemu.  In the "
35175 "following example, the C<-machine ...> option (C<-machine> and the following "
35176 "argument) are removed from the command line and replaced with C<-machine pc,"
35177 "accel=tcg>.  The while loop iterates over the options until it finds the "
35178 "right one to remove, putting the remaining options into the C<args> array."
35179 msgstr ""
35180
35181 #. type: verbatim
35182 #: ../src/guestfs.pod:962
35183 #, fuzzy, no-wrap
35184 #| msgid ""
35185 #| " #!/usr/bin/guestfish -f\n"
35186 #| "\n"
35187 msgid ""
35188 " #!/bin/bash -\n"
35189 " \n"
35190 msgstr ""
35191 " #!/usr/bin/guestfish -f\n"
35192 "\n"
35193
35194 #. type: verbatim
35195 #: ../src/guestfs.pod:964
35196 #, no-wrap
35197 msgid ""
35198 " i=0\n"
35199 " while [ $# -gt 0 ]; do\n"
35200 "     case \"$1\" in\n"
35201 "     -machine)\n"
35202 "         shift 2;;\n"
35203 "     *)\n"
35204 "         args[i]=\"$1\"\n"
35205 "         (( i++ ))\n"
35206 "         shift ;;\n"
35207 "     esac\n"
35208 " done\n"
35209 " \n"
35210 msgstr ""
35211
35212 #. type: verbatim
35213 #: ../src/guestfs.pod:976
35214 #, no-wrap
35215 msgid ""
35216 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
35217 "\n"
35218 msgstr ""
35219
35220 #. type: =head2
35221 #: ../src/guestfs.pod:978
35222 msgid "ATTACHING TO RUNNING DAEMONS"
35223 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
35224
35225 #. type: textblock
35226 #: ../src/guestfs.pod:980
35227 msgid ""
35228 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
35229 "babies.  Use with caution."
35230 msgstr ""
35231
35232 #. type: textblock
35233 #: ../src/guestfs.pod:983
35234 msgid ""
35235 "I<Note (2):> This section explains how to attach to a running daemon from a "
35236 "low level perspective.  For most users, simply using virt tools such as "
35237 "L<guestfish(1)> with the I<--live> option will \"just work\"."
35238 msgstr ""
35239
35240 #. type: =head3
35241 #: ../src/guestfs.pod:987
35242 msgid "Using guestfs_set_attach_method"
35243 msgstr "За допомогою guestfs_set_attach_method"
35244
35245 #. type: textblock
35246 #: ../src/guestfs.pod:989
35247 msgid ""
35248 "By calling L</guestfs_set_attach_method> you can change how the library "
35249 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
35250 "ARCHITECTURE> for some background)."
35251 msgstr ""
35252
35253 #. type: textblock
35254 #: ../src/guestfs.pod:993
35255 msgid ""
35256 "The normal attach method is C<appliance>, where a small appliance is created "
35257 "containing the daemon, and then the library connects to this."
35258 msgstr ""
35259
35260 #. type: textblock
35261 #: ../src/guestfs.pod:996
35262 msgid ""
35263 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
35264 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
35265 "daemon over the Unix domain socket."
35266 msgstr ""
35267
35268 #. type: textblock
35269 #: ../src/guestfs.pod:1000
35270 msgid ""
35271 "The normal use for this is to connect to a running virtual machine that "
35272 "contains a C<guestfsd> daemon, and send commands so you can read and write "
35273 "files inside the live virtual machine."
35274 msgstr ""
35275
35276 #. type: =head3
35277 #: ../src/guestfs.pod:1004
35278 msgid "Using guestfs_add_domain with live flag"
35279 msgstr "За допомогою guestfs_add_domain з прапорцем live"
35280
35281 #. type: textblock
35282 #: ../src/guestfs.pod:1006
35283 msgid ""
35284 "L</guestfs_add_domain> provides some help for getting the correct attach "
35285 "method.  If you pass the C<live> option to this function, then (if the "
35286 "virtual machine is running) it will examine the libvirt XML looking for a "
35287 "virtio-serial channel to connect to:"
35288 msgstr ""
35289
35290 #. type: verbatim
35291 #: ../src/guestfs.pod:1012
35292 #, no-wrap
35293 msgid ""
35294 " <domain>\n"
35295 "   ...\n"
35296 "   <devices>\n"
35297 "     ...\n"
35298 "     <channel type='unix'>\n"
35299 "       <source mode='bind' path='/path/to/socket'/>\n"
35300 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35301 "     </channel>\n"
35302 "     ...\n"
35303 "   </devices>\n"
35304 " </domain>\n"
35305 "\n"
35306 msgstr ""
35307 " <domain>\n"
35308 "   ...\n"
35309 "   <devices>\n"
35310 "     ...\n"
35311 "     <channel type='unix'>\n"
35312 "       <source mode='bind' path='/path/to/socket'/>\n"
35313 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35314 "     </channel>\n"
35315 "     ...\n"
35316 "   </devices>\n"
35317 " </domain>\n"
35318 "\n"
35319
35320 #. type: textblock
35321 #: ../src/guestfs.pod:1024
35322 msgid ""
35323 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
35324 "method to C<unix:/path/to/socket>."
35325 msgstr ""
35326
35327 #. type: textblock
35328 #: ../src/guestfs.pod:1027
35329 msgid ""
35330 "Some of the libguestfs tools (including guestfish) support a I<--live> "
35331 "option which is passed through to L</guestfs_add_domain> thus allowing you "
35332 "to attach to and modify live virtual machines."
35333 msgstr ""
35334
35335 #. type: textblock
35336 #: ../src/guestfs.pod:1031
35337 msgid ""
35338 "The virtual machine needs to have been set up beforehand so that it has the "
35339 "virtio-serial channel and so that guestfsd is running inside it."
35340 msgstr ""
35341
35342 #. type: =head2
35343 #: ../src/guestfs.pod:1035
35344 msgid "ABI GUARANTEE"
35345 msgstr "ГАРАНТІЯ ЩОДО ABI"
35346
35347 #. type: textblock
35348 #: ../src/guestfs.pod:1037
35349 msgid ""
35350 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
35351 "actions as outlined in this section.  Although we will deprecate some "
35352 "actions, for example if they get replaced by newer calls, we will keep the "
35353 "old actions forever.  This allows you the developer to program in confidence "
35354 "against the libguestfs API."
35355 msgstr ""
35356
35357 #. type: =head2
35358 #: ../src/guestfs.pod:1043
35359 msgid "BLOCK DEVICE NAMING"
35360 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
35361
35362 #. type: textblock
35363 #: ../src/guestfs.pod:1045
35364 msgid ""
35365 "In the kernel there is now quite a profusion of schemata for naming block "
35366 "devices (in this context, by I<block device> I mean a physical or virtual "
35367 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
35368 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
35369 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
35370 "for the old IDE driver (particularly for SATA devices) those devices also "
35371 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
35372 "paravirtualized drivers.  This has created several different naming systems, "
35373 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
35374 msgstr ""
35375
35376 #. type: textblock
35377 #: ../src/guestfs.pod:1057
35378 msgid ""
35379 "As discussed above, libguestfs uses a qemu appliance running an embedded "
35380 "Linux kernel to access block devices.  We can run a variety of appliances "
35381 "based on a variety of Linux kernels."
35382 msgstr ""
35383
35384 #. type: textblock
35385 #: ../src/guestfs.pod:1061
35386 msgid ""
35387 "This causes a problem for libguestfs because many API calls use device or "
35388 "partition names.  Working scripts and the recipe (example) scripts that we "
35389 "make available over the internet could fail if the naming scheme changes."
35390 msgstr ""
35391
35392 #. type: textblock
35393 #: ../src/guestfs.pod:1066
35394 msgid ""
35395 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
35396 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
35397 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
35398 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
35399 msgstr ""
35400
35401 #. type: textblock
35402 #: ../src/guestfs.pod:1072
35403 msgid ""
35404 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
35405 "L</guestfs_list_partitions> and similar calls return the true names of the "
35406 "devices and partitions as known to the appliance."
35407 msgstr ""
35408
35409 #. type: =head3
35410 #: ../src/guestfs.pod:1077
35411 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
35412 msgstr ""
35413
35414 #. type: textblock
35415 #: ../src/guestfs.pod:1079
35416 msgid ""
35417 "Usually this translation is transparent.  However in some (very rare)  cases "
35418 "you may need to know the exact algorithm.  Such cases include where you use "
35419 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
35420 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
35421 msgstr ""
35422
35423 #. type: textblock
35424 #: ../src/guestfs.pod:1085
35425 msgid ""
35426 "The algorithm is applied only to I<parameters> which are known to be either "
35427 "device or partition names.  Return values from functions such as L</"
35428 "guestfs_list_devices> are never changed."
35429 msgstr ""
35430
35431 #. type: textblock
35432 #: ../src/guestfs.pod:1093
35433 msgid "Is the string a parameter which is a device or partition name?"
35434 msgstr ""
35435
35436 #. type: textblock
35437 #: ../src/guestfs.pod:1097
35438 msgid "Does the string begin with C</dev/sd>?"
35439 msgstr "Чи починається рядок з C</dev/sd>?"
35440
35441 #. type: textblock
35442 #: ../src/guestfs.pod:1101
35443 msgid ""
35444 "Does the named device exist? If so, we use that device.  However if I<not> "
35445 "then we continue with this algorithm."
35446 msgstr ""
35447
35448 #. type: textblock
35449 #: ../src/guestfs.pod:1106
35450 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
35451 msgstr ""
35452
35453 #. type: textblock
35454 #: ../src/guestfs.pod:1108
35455 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
35456 msgstr ""
35457
35458 #. type: textblock
35459 #: ../src/guestfs.pod:1110
35460 msgid "If that named device exists, use it.  If not, continue."
35461 msgstr ""
35462
35463 #. type: textblock
35464 #: ../src/guestfs.pod:1114
35465 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
35466 msgstr ""
35467
35468 #. type: textblock
35469 #: ../src/guestfs.pod:1116
35470 msgid "If that named device exists, use it.  If not, return an error."
35471 msgstr ""
35472
35473 #. type: =head3
35474 #: ../src/guestfs.pod:1120
35475 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
35476 msgstr ""
35477
35478 #. type: textblock
35479 #: ../src/guestfs.pod:1122
35480 msgid ""
35481 "Although the standard naming scheme and automatic translation is useful for "
35482 "simple programs and guestfish scripts, for larger programs it is best not to "
35483 "rely on this mechanism."
35484 msgstr ""
35485
35486 #. type: textblock
35487 #: ../src/guestfs.pod:1126
35488 msgid ""
35489 "Where possible for maximum future portability programs using libguestfs "
35490 "should use these future-proof techniques:"
35491 msgstr ""
35492
35493 #. type: textblock
35494 #: ../src/guestfs.pod:1133
35495 msgid ""
35496 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
35497 "device names, and then use those names directly."
35498 msgstr ""
35499
35500 #. type: textblock
35501 #: ../src/guestfs.pod:1136
35502 msgid ""
35503 "Since those device names exist by definition, they will never be translated."
35504 msgstr ""
35505
35506 #. type: textblock
35507 #: ../src/guestfs.pod:1141
35508 msgid ""
35509 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
35510 "filesystem labels."
35511 msgstr ""
35512
35513 #. type: =head1
35514 #: ../src/guestfs.pod:1146
35515 msgid "SECURITY"
35516 msgstr "БЕЗПЕКА"
35517
35518 #. type: textblock
35519 #: ../src/guestfs.pod:1148
35520 msgid ""
35521 "This section discusses security implications of using libguestfs, "
35522 "particularly with untrusted or malicious guests or disk images."
35523 msgstr ""
35524
35525 #. type: =head2
35526 #: ../src/guestfs.pod:1151
35527 msgid "GENERAL SECURITY CONSIDERATIONS"
35528 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
35529
35530 #. type: textblock
35531 #: ../src/guestfs.pod:1153
35532 msgid ""
35533 "Be careful with any files or data that you download from a guest (by "
35534 "\"download\" we mean not just the L</guestfs_download> command but any "
35535 "command that reads files, filenames, directories or anything else from a "
35536 "disk image).  An attacker could manipulate the data to fool your program "
35537 "into doing the wrong thing.  Consider cases such as:"
35538 msgstr ""
35539
35540 #. type: textblock
35541 #: ../src/guestfs.pod:1163
35542 msgid "the data (file etc) not being present"
35543 msgstr ""
35544
35545 #. type: textblock
35546 #: ../src/guestfs.pod:1167
35547 msgid "being present but empty"
35548 msgstr ""
35549
35550 #. type: textblock
35551 #: ../src/guestfs.pod:1171
35552 msgid "being much larger than normal"
35553 msgstr ""
35554
35555 #. type: textblock
35556 #: ../src/guestfs.pod:1175
35557 msgid "containing arbitrary 8 bit data"
35558 msgstr ""
35559
35560 #. type: textblock
35561 #: ../src/guestfs.pod:1179
35562 msgid "being in an unexpected character encoding"
35563 msgstr ""
35564
35565 #. type: textblock
35566 #: ../src/guestfs.pod:1183
35567 msgid "containing homoglyphs."
35568 msgstr ""
35569
35570 #. type: =head2
35571 #: ../src/guestfs.pod:1187
35572 msgid "SECURITY OF MOUNTING FILESYSTEMS"
35573 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
35574
35575 #. type: textblock
35576 #: ../src/guestfs.pod:1189
35577 msgid ""
35578 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
35579 "(VFS) module can sometimes be escalated into exploits by deliberately "
35580 "creating a malicious, malformed filesystem.  These exploits are very severe "
35581 "for two reasons.  Firstly there are very many filesystem drivers in the "
35582 "kernel, and many of them are infrequently used and not much developer "
35583 "attention has been paid to the code.  Linux userspace helps potential "
35584 "crackers by detecting the filesystem type and automatically choosing the "
35585 "right VFS driver, even if that filesystem type is obscure or unexpected for "
35586 "the administrator.  Secondly, a kernel-level exploit is like a local root "
35587 "exploit (worse in some ways), giving immediate and total access to the "
35588 "system right down to the hardware level."
35589 msgstr ""
35590
35591 #. type: textblock
35592 #: ../src/guestfs.pod:1202
35593 msgid ""
35594 "That explains why you should never mount a filesystem from an untrusted "
35595 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
35596 "inside a qemu virtual machine, usually running as a non-root user.  The "
35597 "attacker would need to write a filesystem which first exploited the kernel, "
35598 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
35599 "the libguestfs protocol, and finally to be as serious as the host kernel "
35600 "exploit it would need to escalate its privileges to root.  This multi-step "
35601 "escalation, performed by a static piece of data, is thought to be extremely "
35602 "hard to do, although we never say 'never' about security issues."
35603 msgstr ""
35604
35605 #. type: textblock
35606 #: ../src/guestfs.pod:1213
35607 msgid ""
35608 "In any case callers can reduce the attack surface by forcing the filesystem "
35609 "type when mounting (use L</guestfs_mount_vfs>)."
35610 msgstr ""
35611
35612 #. type: =head2
35613 #: ../src/guestfs.pod:1216
35614 msgid "PROTOCOL SECURITY"
35615 msgstr "ЗАХИСТ ПРОТОКОЛУ"
35616
35617 #. type: textblock
35618 #: ../src/guestfs.pod:1218
35619 msgid ""
35620 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
35621 "defined upper message size.  However a program that uses libguestfs must "
35622 "also take care - for example you can write a program that downloads a binary "
35623 "from a disk image and executes it locally, and no amount of protocol "
35624 "security will save you from the consequences."
35625 msgstr ""
35626
35627 #. type: =head2
35628 #: ../src/guestfs.pod:1224
35629 msgid "INSPECTION SECURITY"
35630 msgstr ""
35631
35632 #. type: textblock
35633 #: ../src/guestfs.pod:1226
35634 msgid ""
35635 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
35636 "directly from the guest, and these could contain any 8 bit data.  Callers "
35637 "should be careful to escape these before printing them to a structured file "
35638 "(for example, use HTML escaping if creating a web page)."
35639 msgstr ""
35640
35641 #. type: textblock
35642 #: ../src/guestfs.pod:1232
35643 msgid ""
35644 "Guest configuration may be altered in unusual ways by the administrator of "
35645 "the virtual machine, and may not reflect reality (particularly for untrusted "
35646 "or actively malicious guests).  For example we parse the hostname from "
35647 "configuration files like C</etc/sysconfig/network> that we find in the "
35648 "guest, but the guest administrator can easily manipulate these files to "
35649 "provide the wrong hostname."
35650 msgstr ""
35651
35652 #. type: textblock
35653 #: ../src/guestfs.pod:1240
35654 msgid ""
35655 "The inspection API parses guest configuration using two external libraries: "
35656 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
35657 "designed to be robust in the face of malicious data, although denial of "
35658 "service attacks are still possible, for example with oversized configuration "
35659 "files."
35660 msgstr ""
35661
35662 #. type: =head2
35663 #: ../src/guestfs.pod:1246
35664 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
35665 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
35666
35667 #. type: textblock
35668 #: ../src/guestfs.pod:1248
35669 msgid ""
35670 "Be very cautious about running commands from the guest.  By running a "
35671 "command in the guest, you are giving CPU time to a binary that you do not "
35672 "control, under the same user account as the library, albeit wrapped in qemu "
35673 "virtualization.  More information and alternatives can be found in the "
35674 "section L</RUNNING COMMANDS>."
35675 msgstr ""
35676
35677 #. type: =head2
35678 #: ../src/guestfs.pod:1254
35679 msgid "CVE-2010-3851"
35680 msgstr "CVE-2010-3851"
35681
35682 #. type: textblock
35683 #: ../src/guestfs.pod:1256
35684 msgid "https://bugzilla.redhat.com/642934"
35685 msgstr "https://bugzilla.redhat.com/642934"
35686
35687 #. type: textblock
35688 #: ../src/guestfs.pod:1258
35689 msgid ""
35690 "This security bug concerns the automatic disk format detection that qemu "
35691 "does on disk images."
35692 msgstr ""
35693
35694 #. type: textblock
35695 #: ../src/guestfs.pod:1261
35696 msgid ""
35697 "A raw disk image is just the raw bytes, there is no header.  Other disk "
35698 "images like qcow2 contain a special header.  Qemu deals with this by looking "
35699 "for one of the known headers, and if none is found then assuming the disk "
35700 "image must be raw."
35701 msgstr ""
35702
35703 #. type: textblock
35704 #: ../src/guestfs.pod:1266
35705 msgid ""
35706 "This allows a guest which has been given a raw disk image to write some "
35707 "other header.  At next boot (or when the disk image is accessed by "
35708 "libguestfs) qemu would do autodetection and think the disk image format was, "
35709 "say, qcow2 based on the header written by the guest."
35710 msgstr ""
35711
35712 #. type: textblock
35713 #: ../src/guestfs.pod:1271
35714 msgid ""
35715 "This in itself would not be a problem, but qcow2 offers many features, one "
35716 "of which is to allow a disk image to refer to another image (called the "
35717 "\"backing disk\").  It does this by placing the path to the backing disk "
35718 "into the qcow2 header.  This path is not validated and could point to any "
35719 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
35720 "\"holes\" in the qcow2 disk image, which of course is completely under the "
35721 "control of the attacker."
35722 msgstr ""
35723
35724 #. type: textblock
35725 #: ../src/guestfs.pod:1279
35726 msgid ""
35727 "In libguestfs this is rather hard to exploit except under two circumstances:"
35728 msgstr ""
35729
35730 #. type: textblock
35731 #: ../src/guestfs.pod:1286
35732 msgid "You have enabled the network or have opened the disk in write mode."
35733 msgstr ""
35734
35735 #. type: textblock
35736 #: ../src/guestfs.pod:1290
35737 msgid ""
35738 "You are also running untrusted code from the guest (see L</RUNNING "
35739 "COMMANDS>)."
35740 msgstr ""
35741
35742 #. type: textblock
35743 #: ../src/guestfs.pod:1295
35744 msgid ""
35745 "The way to avoid this is to specify the expected disk format when adding "
35746 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
35747 "should always do this if the disk is raw format, and it's a good idea for "
35748 "other cases too."
35749 msgstr ""
35750
35751 #. type: textblock
35752 #: ../src/guestfs.pod:1300
35753 msgid ""
35754 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
35755 "format is fetched from libvirt and passed through."
35756 msgstr ""
35757
35758 #. type: textblock
35759 #: ../src/guestfs.pod:1303
35760 msgid ""
35761 "For libguestfs tools, use the I<--format> command line parameter as "
35762 "appropriate."
35763 msgstr ""
35764
35765 #. type: =head1
35766 #: ../src/guestfs.pod:1306
35767 msgid "CONNECTION MANAGEMENT"
35768 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
35769
35770 #. type: =head2
35771 #: ../src/guestfs.pod:1308
35772 msgid "guestfs_h *"
35773 msgstr "guestfs_h *"
35774
35775 #. type: textblock
35776 #: ../src/guestfs.pod:1310
35777 msgid ""
35778 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
35779 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
35780 "handle and release all resources used."
35781 msgstr ""
35782
35783 #. type: textblock
35784 #: ../src/guestfs.pod:1314
35785 msgid ""
35786 "For information on using multiple handles and threads, see the section L</"
35787 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
35788 msgstr ""
35789
35790 #. type: =head2
35791 #: ../src/guestfs.pod:1317
35792 msgid "guestfs_create"
35793 msgstr "guestfs_create"
35794
35795 #. type: verbatim
35796 #: ../src/guestfs.pod:1319
35797 #, no-wrap
35798 msgid ""
35799 " guestfs_h *guestfs_create (void);\n"
35800 "\n"
35801 msgstr ""
35802 " guestfs_h *guestfs_create (void);\n"
35803 "\n"
35804
35805 #. type: textblock
35806 #: ../src/guestfs.pod:1321
35807 msgid "Create a connection handle."
35808 msgstr "Створити дескриптор з’єднання."
35809
35810 #. type: textblock
35811 #: ../src/guestfs.pod:1323
35812 msgid ""
35813 "On success this returns a non-NULL pointer to a handle.  On error it returns "
35814 "NULL."
35815 msgstr ""
35816
35817 #. type: textblock
35818 #: ../src/guestfs.pod:1326
35819 msgid ""
35820 "You have to \"configure\" the handle after creating it.  This includes "
35821 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
35822 "handle at least once."
35823 msgstr ""
35824
35825 #. type: textblock
35826 #: ../src/guestfs.pod:1330
35827 msgid "After configuring the handle, you have to call L</guestfs_launch>."
35828 msgstr ""
35829
35830 #. type: textblock
35831 #: ../src/guestfs.pod:1332
35832 msgid ""
35833 "You may also want to configure error handling for the handle.  See the L</"
35834 "ERROR HANDLING> section below."
35835 msgstr ""
35836
35837 #. type: =head2
35838 #: ../src/guestfs.pod:1335
35839 msgid "guestfs_close"
35840 msgstr "guestfs_close"
35841
35842 #. type: verbatim
35843 #: ../src/guestfs.pod:1337
35844 #, no-wrap
35845 msgid ""
35846 " void guestfs_close (guestfs_h *g);\n"
35847 "\n"
35848 msgstr ""
35849 " void guestfs_close (guestfs_h *g);\n"
35850 "\n"
35851
35852 #. type: textblock
35853 #: ../src/guestfs.pod:1339
35854 msgid "This closes the connection handle and frees up all resources used."
35855 msgstr ""
35856
35857 #. type: textblock
35858 #: ../src/guestfs.pod:1341
35859 msgid ""
35860 "If autosync was set on the handle and the handle was launched, then this "
35861 "implicitly calls various functions to unmount filesystems and sync the "
35862 "disk.  See L</guestfs_set_autosync> for more details."
35863 msgstr ""
35864
35865 #. type: textblock
35866 #: ../src/guestfs.pod:1345
35867 msgid "If a close callback was set on the handle, then it is called."
35868 msgstr ""
35869
35870 #. type: =head1
35871 #: ../src/guestfs.pod:1347
35872 msgid "ERROR HANDLING"
35873 msgstr "ОБРОБКА ПОМИЛОК"
35874
35875 #. type: textblock
35876 #: ../src/guestfs.pod:1349
35877 msgid ""
35878 "API functions can return errors.  For example, almost all functions that "
35879 "return C<int> will return C<-1> to indicate an error."
35880 msgstr ""
35881
35882 #. type: textblock
35883 #: ../src/guestfs.pod:1352
35884 msgid ""
35885 "Additional information is available for errors: an error message string and "
35886 "optionally an error number (errno) if the thing that failed was a system "
35887 "call."
35888 msgstr ""
35889
35890 #. type: textblock
35891 #: ../src/guestfs.pod:1356
35892 msgid ""
35893 "You can get at the additional information about the last error on the handle "
35894 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
35895 "up an error handler with L</guestfs_set_error_handler>."
35896 msgstr ""
35897
35898 #. type: textblock
35899 #: ../src/guestfs.pod:1361
35900 msgid ""
35901 "When the handle is created, a default error handler is installed which "
35902 "prints the error message string to C<stderr>.  For small short-running "
35903 "command line programs it is sufficient to do:"
35904 msgstr ""
35905
35906 #. type: verbatim
35907 #: ../src/guestfs.pod:1365
35908 #, no-wrap
35909 msgid ""
35910 " if (guestfs_launch (g) == -1)\n"
35911 "   exit (EXIT_FAILURE);\n"
35912 "\n"
35913 msgstr ""
35914 " if (guestfs_launch (g) == -1)\n"
35915 "   exit (EXIT_FAILURE);\n"
35916 "\n"
35917
35918 #. type: textblock
35919 #: ../src/guestfs.pod:1368
35920 msgid ""
35921 "since the default error handler will ensure that an error message has been "
35922 "printed to C<stderr> before the program exits."
35923 msgstr ""
35924
35925 #. type: textblock
35926 #: ../src/guestfs.pod:1371
35927 msgid ""
35928 "For other programs the caller will almost certainly want to install an "
35929 "alternate error handler or do error handling in-line like this:"
35930 msgstr ""
35931
35932 #. type: verbatim
35933 #: ../src/guestfs.pod:1374
35934 #, no-wrap
35935 msgid ""
35936 " /* This disables the default behaviour of printing errors\n"
35937 "    on stderr. */\n"
35938 " guestfs_set_error_handler (g, NULL, NULL);\n"
35939 " \n"
35940 msgstr ""
35941
35942 #. type: verbatim
35943 #: ../src/guestfs.pod:1378
35944 #, fuzzy, no-wrap
35945 #| msgid ""
35946 #| " if (guestfs_launch (g) == -1) {\n"
35947 #| "   /* Examine the error message and print it etc. */\n"
35948 #| "   char *msg = guestfs_last_error (g);\n"
35949 #| "   int errnum = guestfs_last_errno (g);\n"
35950 #| "   fprintf (stderr, \"%s\\n\", msg);\n"
35951 #| "   /* ... */\n"
35952 #| "  }\n"
35953 #| "\n"
35954 msgid ""
35955 " if (guestfs_launch (g) == -1) {\n"
35956 "   /* Examine the error message and print it etc. */\n"
35957 "   char *msg = guestfs_last_error (g);\n"
35958 "   int errnum = guestfs_last_errno (g);\n"
35959 "   fprintf (stderr, \"%s\", msg);\n"
35960 "   if (errnum != 0)\n"
35961 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
35962 "   fprintf (stderr, \"\\n\");\n"
35963 "   /* ... */\n"
35964 " }\n"
35965 "\n"
35966 msgstr ""
35967 " if (guestfs_launch (g) == -1) {\n"
35968 "   /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
35969 "   char *msg = guestfs_last_error (g);\n"
35970 "   int errnum = guestfs_last_errno (g);\n"
35971 "   fprintf (stderr, \"%s\\n\", msg);\n"
35972 "   /* ... */\n"
35973 "  }\n"
35974 "\n"
35975
35976 #. type: textblock
35977 #: ../src/guestfs.pod:1389
35978 msgid ""
35979 "Out of memory errors are handled differently.  The default action is to call "
35980 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
35981 "guestfs_set_out_of_memory_handler>."
35982 msgstr ""
35983
35984 #. type: textblock
35985 #: ../src/guestfs.pod:1393
35986 msgid ""
35987 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35988 "because there is no handle if this happens there is no way to get additional "
35989 "error information.  However L</guestfs_create> is supposed to be a "
35990 "lightweight operation which can only fail because of insufficient memory (it "
35991 "returns NULL in this case)."
35992 msgstr ""
35993
35994 #. type: =head2
35995 #: ../src/guestfs.pod:1399
35996 msgid "guestfs_last_error"
35997 msgstr "guestfs_last_error"
35998
35999 #. type: verbatim
36000 #: ../src/guestfs.pod:1401
36001 #, no-wrap
36002 msgid ""
36003 " const char *guestfs_last_error (guestfs_h *g);\n"
36004 "\n"
36005 msgstr ""
36006 " const char *guestfs_last_error (guestfs_h *g);\n"
36007 "\n"
36008
36009 #. type: textblock
36010 #: ../src/guestfs.pod:1403
36011 msgid ""
36012 "This returns the last error message that happened on C<g>.  If there has not "
36013 "been an error since the handle was created, then this returns C<NULL>."
36014 msgstr ""
36015
36016 #. type: textblock
36017 #: ../src/guestfs.pod:1407
36018 msgid ""
36019 "The lifetime of the returned string is until the next error occurs, or L</"
36020 "guestfs_close> is called."
36021 msgstr ""
36022
36023 #. type: =head2
36024 #: ../src/guestfs.pod:1410
36025 msgid "guestfs_last_errno"
36026 msgstr "guestfs_last_errno"
36027
36028 #. type: verbatim
36029 #: ../src/guestfs.pod:1412
36030 #, no-wrap
36031 msgid ""
36032 " int guestfs_last_errno (guestfs_h *g);\n"
36033 "\n"
36034 msgstr ""
36035 " int guestfs_last_errno (guestfs_h *g);\n"
36036 "\n"
36037
36038 #. type: textblock
36039 #: ../src/guestfs.pod:1414
36040 msgid "This returns the last error number (errno) that happened on C<g>."
36041 msgstr ""
36042
36043 #. type: textblock
36044 #: ../src/guestfs.pod:1416
36045 msgid "If successful, an errno integer not equal to zero is returned."
36046 msgstr ""
36047
36048 #. type: textblock
36049 #: ../src/guestfs.pod:1418
36050 msgid ""
36051 "If no error, this returns 0.  This call can return 0 in three situations:"
36052 msgstr ""
36053
36054 #. type: textblock
36055 #: ../src/guestfs.pod:1425
36056 msgid "There has not been any error on the handle."
36057 msgstr ""
36058
36059 #. type: textblock
36060 #: ../src/guestfs.pod:1429
36061 msgid ""
36062 "There has been an error but the errno was meaningless.  This corresponds to "
36063 "the case where the error did not come from a failed system call, but for "
36064 "some other reason."
36065 msgstr ""
36066
36067 #. type: textblock
36068 #: ../src/guestfs.pod:1435
36069 msgid ""
36070 "There was an error from a failed system call, but for some reason the errno "
36071 "was not captured and returned.  This usually indicates a bug in libguestfs."
36072 msgstr ""
36073
36074 #. type: textblock
36075 #: ../src/guestfs.pod:1441
36076 msgid ""
36077 "Libguestfs tries to convert the errno from inside the applicance into a "
36078 "corresponding errno for the caller (not entirely trivial: the appliance "
36079 "might be running a completely different operating system from the library "
36080 "and error numbers are not standardized across Un*xen).  If this could not be "
36081 "done, then the error is translated to C<EINVAL>.  In practice this should "
36082 "only happen in very rare circumstances."
36083 msgstr ""
36084
36085 #. type: =head2
36086 #: ../src/guestfs.pod:1449
36087 msgid "guestfs_set_error_handler"
36088 msgstr "guestfs_set_error_handler"
36089
36090 #. type: verbatim
36091 #: ../src/guestfs.pod:1451
36092 #, no-wrap
36093 msgid ""
36094 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36095 "                                           void *opaque,\n"
36096 "                                           const char *msg);\n"
36097 " void guestfs_set_error_handler (guestfs_h *g,\n"
36098 "                                 guestfs_error_handler_cb cb,\n"
36099 "                                 void *opaque);\n"
36100 "\n"
36101 msgstr ""
36102 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36103 "                                           void *opaque,\n"
36104 "                                           const char *msg);\n"
36105 " void guestfs_set_error_handler (guestfs_h *g,\n"
36106 "                                 guestfs_error_handler_cb cb,\n"
36107 "                                 void *opaque);\n"
36108 "\n"
36109
36110 #. type: textblock
36111 #: ../src/guestfs.pod:1458
36112 msgid ""
36113 "The callback C<cb> will be called if there is an error.  The parameters "
36114 "passed to the callback are an opaque data pointer and the error message "
36115 "string."
36116 msgstr ""
36117
36118 #. type: textblock
36119 #: ../src/guestfs.pod:1462
36120 msgid ""
36121 "C<errno> is not passed to the callback.  To get that the callback must call "
36122 "L</guestfs_last_errno>."
36123 msgstr ""
36124
36125 #. type: textblock
36126 #: ../src/guestfs.pod:1465
36127 msgid ""
36128 "Note that the message string C<msg> is freed as soon as the callback "
36129 "function returns, so if you want to stash it somewhere you must make your "
36130 "own copy."
36131 msgstr ""
36132
36133 #. type: textblock
36134 #: ../src/guestfs.pod:1469
36135 msgid "The default handler prints messages on C<stderr>."
36136 msgstr ""
36137
36138 #. type: textblock
36139 #: ../src/guestfs.pod:1471
36140 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
36141 msgstr ""
36142
36143 #. type: =head2
36144 #: ../src/guestfs.pod:1473
36145 msgid "guestfs_get_error_handler"
36146 msgstr "guestfs_get_error_handler"
36147
36148 #. type: verbatim
36149 #: ../src/guestfs.pod:1475
36150 #, no-wrap
36151 msgid ""
36152 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36153 "                                                     void **opaque_rtn);\n"
36154 "\n"
36155 msgstr ""
36156 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36157 "                                                     void **opaque_rtn);\n"
36158 "\n"
36159
36160 #. type: textblock
36161 #: ../src/guestfs.pod:1478
36162 msgid "Returns the current error handler callback."
36163 msgstr ""
36164
36165 #. type: =head2
36166 #: ../src/guestfs.pod:1480
36167 msgid "guestfs_set_out_of_memory_handler"
36168 msgstr "guestfs_set_out_of_memory_handler"
36169
36170 #. type: verbatim
36171 #: ../src/guestfs.pod:1482
36172 #, fuzzy, no-wrap
36173 #| msgid ""
36174 #| " typedef void (*guestfs_abort_cb) (void);\n"
36175 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36176 #| "                                        guestfs_abort_cb);\n"
36177 #| "\n"
36178 msgid ""
36179 " typedef void (*guestfs_abort_cb) (void);\n"
36180 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36181 "                                         guestfs_abort_cb);\n"
36182 "\n"
36183 msgstr ""
36184 " typedef void (*guestfs_abort_cb) (void);\n"
36185 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36186 "                                        guestfs_abort_cb);\n"
36187 "\n"
36188
36189 #. type: textblock
36190 #: ../src/guestfs.pod:1486
36191 msgid ""
36192 "The callback C<cb> will be called if there is an out of memory situation.  "
36193 "I<Note this callback must not return>."
36194 msgstr ""
36195
36196 #. type: textblock
36197 #: ../src/guestfs.pod:1489
36198 msgid "The default is to call L<abort(3)>."
36199 msgstr ""
36200
36201 #. type: textblock
36202 #: ../src/guestfs.pod:1491
36203 msgid ""
36204 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
36205 msgstr ""
36206
36207 #. type: =head2
36208 #: ../src/guestfs.pod:1494
36209 msgid "guestfs_get_out_of_memory_handler"
36210 msgstr "guestfs_get_out_of_memory_handler"
36211
36212 #. type: verbatim
36213 #: ../src/guestfs.pod:1496
36214 #, no-wrap
36215 msgid ""
36216 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36217 "\n"
36218 msgstr ""
36219 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36220 "\n"
36221
36222 #. type: textblock
36223 #: ../src/guestfs.pod:1498
36224 msgid "This returns the current out of memory handler."
36225 msgstr ""
36226
36227 #. type: =head1
36228 #: ../src/guestfs.pod:1500
36229 msgid "API CALLS"
36230 msgstr "ВИКЛИКИ API"
36231
36232 #. type: =head1
36233 #: ../src/guestfs.pod:1504
36234 msgid "STRUCTURES"
36235 msgstr "СТРУКТУРИ"
36236
36237 #. type: textblock
36238 #: ../src/guestfs.pod:1506
36239 msgid "@STRUCTS@"
36240 msgstr "@STRUCTS@"
36241
36242 #. type: =head1
36243 #: ../src/guestfs.pod:1508
36244 msgid "AVAILABILITY"
36245 msgstr "ДОСТУПНІСТЬ"
36246
36247 #. type: =head2
36248 #: ../src/guestfs.pod:1510
36249 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
36250 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
36251
36252 #. type: textblock
36253 #: ../src/guestfs.pod:1512
36254 msgid ""
36255 "Using L</guestfs_available> you can test availability of the following "
36256 "groups of functions.  This test queries the appliance to see if the "
36257 "appliance you are currently using supports the functionality."
36258 msgstr ""
36259
36260 #. type: textblock
36261 #: ../src/guestfs.pod:1517
36262 msgid "@AVAILABILITY@"
36263 msgstr "@AVAILABILITY@"
36264
36265 #. type: =head2
36266 #: ../src/guestfs.pod:1519
36267 msgid "GUESTFISH supported COMMAND"
36268 msgstr ""
36269
36270 #. type: textblock
36271 #: ../src/guestfs.pod:1521
36272 msgid ""
36273 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
36274 "prints out the available groups and whether they are supported by this build "
36275 "of libguestfs.  Note however that you have to do C<run> first."
36276 msgstr ""
36277
36278 #. type: =head2
36279 #: ../src/guestfs.pod:1526
36280 msgid "SINGLE CALLS AT COMPILE TIME"
36281 msgstr ""
36282
36283 #. type: textblock
36284 #: ../src/guestfs.pod:1528
36285 msgid ""
36286 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
36287 "function, such as:"
36288 msgstr ""
36289
36290 #. type: verbatim
36291 #: ../src/guestfs.pod:1531
36292 #, no-wrap
36293 msgid ""
36294 " #define LIBGUESTFS_HAVE_DD 1\n"
36295 "\n"
36296 msgstr ""
36297 " #define LIBGUESTFS_HAVE_DD 1\n"
36298 "\n"
36299
36300 #. type: textblock
36301 #: ../src/guestfs.pod:1533
36302 msgid "if L</guestfs_dd> is available."
36303 msgstr ""
36304
36305 #. type: textblock
36306 #: ../src/guestfs.pod:1535
36307 msgid ""
36308 "Before version 1.5.8, if you needed to test whether a single libguestfs "
36309 "function is available at compile time, we recommended using build tools such "
36310 "as autoconf or cmake.  For example in autotools you could use:"
36311 msgstr ""
36312
36313 #. type: verbatim
36314 #: ../src/guestfs.pod:1540
36315 #, no-wrap
36316 msgid ""
36317 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36318 " AC_CHECK_FUNCS([guestfs_dd])\n"
36319 "\n"
36320 msgstr ""
36321 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36322 " AC_CHECK_FUNCS([guestfs_dd])\n"
36323 "\n"
36324
36325 #. type: textblock
36326 #: ../src/guestfs.pod:1543
36327 msgid ""
36328 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
36329 "in your program."
36330 msgstr ""
36331
36332 #. type: =head2
36333 #: ../src/guestfs.pod:1546
36334 msgid "SINGLE CALLS AT RUN TIME"
36335 msgstr ""
36336
36337 #. type: textblock
36338 #: ../src/guestfs.pod:1548
36339 msgid ""
36340 "Testing at compile time doesn't guarantee that a function really exists in "
36341 "the library.  The reason is that you might be dynamically linked against a "
36342 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
36343 "This situation unfortunately results in a segmentation fault, which is a "
36344 "shortcoming of the C dynamic linking system itself."
36345 msgstr ""
36346
36347 #. type: textblock
36348 #: ../src/guestfs.pod:1555
36349 msgid ""
36350 "You can use L<dlopen(3)> to test if a function is available at run time, as "
36351 "in this example program (note that you still need the compile time check as "
36352 "well):"
36353 msgstr ""
36354
36355 #. type: verbatim
36356 #: ../src/guestfs.pod:1559
36357 #, no-wrap
36358 msgid ""
36359 " #include <stdio.h>\n"
36360 " #include <stdlib.h>\n"
36361 " #include <unistd.h>\n"
36362 " #include <dlfcn.h>\n"
36363 " #include <guestfs.h>\n"
36364 " \n"
36365 msgstr ""
36366 " #include <stdio.h>\n"
36367 " #include <stdlib.h>\n"
36368 " #include <unistd.h>\n"
36369 " #include <dlfcn.h>\n"
36370 " #include <guestfs.h>\n"
36371 " \n"
36372
36373 #. type: verbatim
36374 #: ../src/guestfs.pod:1565
36375 #, no-wrap
36376 msgid ""
36377 " main ()\n"
36378 " {\n"
36379 " #ifdef LIBGUESTFS_HAVE_DD\n"
36380 "   void *dl;\n"
36381 "   int has_function;\n"
36382 " \n"
36383 msgstr ""
36384 " main ()\n"
36385 " {\n"
36386 " #ifdef LIBGUESTFS_HAVE_DD\n"
36387 "   void *dl;\n"
36388 "   int has_function;\n"
36389 " \n"
36390
36391 #. type: verbatim
36392 #: ../src/guestfs.pod:1571
36393 #, no-wrap
36394 msgid ""
36395 "   /* Test if the function guestfs_dd is really available. */\n"
36396 "   dl = dlopen (NULL, RTLD_LAZY);\n"
36397 "   if (!dl) {\n"
36398 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
36399 "     exit (EXIT_FAILURE);\n"
36400 "   }\n"
36401 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
36402 "   dlclose (dl);\n"
36403 " \n"
36404 msgstr ""
36405
36406 #. type: verbatim
36407 #: ../src/guestfs.pod:1580
36408 #, no-wrap
36409 msgid ""
36410 "   if (!has_function)\n"
36411 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
36412 "   else {\n"
36413 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
36414 "     /* Now it's safe to call\n"
36415 "     guestfs_dd (g, \"foo\", \"bar\");\n"
36416 "     */\n"
36417 "   }\n"
36418 " #else\n"
36419 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
36420 " #endif\n"
36421 "  }\n"
36422 "\n"
36423 msgstr ""
36424
36425 #. type: textblock
36426 #: ../src/guestfs.pod:1593
36427 msgid ""
36428 "You may think the above is an awful lot of hassle, and it is.  There are "
36429 "other ways outside of the C linking system to ensure that this kind of "
36430 "incompatibility never arises, such as using package versioning:"
36431 msgstr ""
36432
36433 #. type: verbatim
36434 #: ../src/guestfs.pod:1598
36435 #, no-wrap
36436 msgid ""
36437 " Requires: libguestfs >= 1.0.80\n"
36438 "\n"
36439 msgstr ""
36440
36441 #. type: =head1
36442 #: ../src/guestfs.pod:1600
36443 msgid "CALLS WITH OPTIONAL ARGUMENTS"
36444 msgstr ""
36445
36446 #. type: textblock
36447 #: ../src/guestfs.pod:1602
36448 msgid ""
36449 "A recent feature of the API is the introduction of calls which take optional "
36450 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
36451 "takes variable arguments (ie. C<...>), as in this example:"
36452 msgstr ""
36453
36454 #. type: verbatim
36455 #: ../src/guestfs.pod:1607
36456 #, no-wrap
36457 msgid ""
36458 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36459 "\n"
36460 msgstr ""
36461 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36462 "\n"
36463
36464 #. type: textblock
36465 #: ../src/guestfs.pod:1609
36466 msgid ""
36467 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
36468 "call with no optional arguments specified:"
36469 msgstr ""
36470
36471 #. type: verbatim
36472 #: ../src/guestfs.pod:1612
36473 #, no-wrap
36474 msgid ""
36475 " guestfs_add_drive_opts (g, filename, -1);\n"
36476 "\n"
36477 msgstr ""
36478 " guestfs_add_drive_opts (g, filename, -1);\n"
36479 "\n"
36480
36481 #. type: textblock
36482 #: ../src/guestfs.pod:1614
36483 msgid "With a single optional argument:"
36484 msgstr ""
36485
36486 #. type: verbatim
36487 #: ../src/guestfs.pod:1616
36488 #, no-wrap
36489 msgid ""
36490 " guestfs_add_drive_opts (g, filename,\n"
36491 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36492 "                         -1);\n"
36493 "\n"
36494 msgstr ""
36495 " guestfs_add_drive_opts (g, filename,\n"
36496 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36497 "                         -1);\n"
36498 "\n"
36499
36500 #. type: textblock
36501 #: ../src/guestfs.pod:1620
36502 msgid "With two:"
36503 msgstr ""
36504
36505 #. type: verbatim
36506 #: ../src/guestfs.pod:1622
36507 #, no-wrap
36508 msgid ""
36509 " guestfs_add_drive_opts (g, filename,\n"
36510 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36511 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36512 "                         -1);\n"
36513 "\n"
36514 msgstr ""
36515 " guestfs_add_drive_opts (g, filename,\n"
36516 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36517 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36518 "                         -1);\n"
36519 "\n"
36520
36521 #. type: textblock
36522 #: ../src/guestfs.pod:1627
36523 msgid ""
36524 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
36525 "happen!"
36526 msgstr ""
36527
36528 #. type: =head2
36529 #: ../src/guestfs.pod:1630
36530 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
36531 msgstr ""
36532
36533 #. type: textblock
36534 #: ../src/guestfs.pod:1632
36535 msgid ""
36536 "The second variant has the same name with the suffix C<_va>, which works the "
36537 "same way but takes a C<va_list>.  See the C manual for details.  For the "
36538 "example function, this is declared:"
36539 msgstr ""
36540
36541 #. type: verbatim
36542 #: ../src/guestfs.pod:1636
36543 #, no-wrap
36544 msgid ""
36545 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36546 "                                va_list args);\n"
36547 "\n"
36548 msgstr ""
36549 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36550 "                                va_list args);\n"
36551 "\n"
36552
36553 #. type: =head2
36554 #: ../src/guestfs.pod:1639
36555 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
36556 msgstr ""
36557
36558 #. type: textblock
36559 #: ../src/guestfs.pod:1641
36560 msgid ""
36561 "The third variant is useful where you need to construct these calls.  You "
36562 "pass in a structure where you fill in the optional fields.  The structure "
36563 "has a bitmask as the first element which you must set to indicate which "
36564 "fields you have filled in.  For our example function the structure and call "
36565 "are declared:"
36566 msgstr ""
36567
36568 #. type: verbatim
36569 #: ../src/guestfs.pod:1647
36570 #, no-wrap
36571 msgid ""
36572 " struct guestfs_add_drive_opts_argv {\n"
36573 "   uint64_t bitmask;\n"
36574 "   int readonly;\n"
36575 "   const char *format;\n"
36576 "   /* ... */\n"
36577 " };\n"
36578 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36579 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
36580 "\n"
36581 msgstr ""
36582 " struct guestfs_add_drive_opts_argv {\n"
36583 "   uint64_t bitmask;\n"
36584 "   int readonly;\n"
36585 "   const char *format;\n"
36586 "   /* ... */\n"
36587 " };\n"
36588 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36589 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
36590 "\n"
36591
36592 #. type: textblock
36593 #: ../src/guestfs.pod:1656
36594 msgid "You could call it like this:"
36595 msgstr ""
36596
36597 #. type: verbatim
36598 #: ../src/guestfs.pod:1658
36599 #, no-wrap
36600 msgid ""
36601 " struct guestfs_add_drive_opts_argv optargs = {\n"
36602 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36603 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36604 "   .readonly = 1,\n"
36605 "   .format = \"qcow2\"\n"
36606 " };\n"
36607 " \n"
36608 msgstr ""
36609 " struct guestfs_add_drive_opts_argv optargs = {\n"
36610 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36611 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36612 "   .readonly = 1,\n"
36613 "   .format = \"qcow2\"\n"
36614 " };\n"
36615 " \n"
36616
36617 #. type: verbatim
36618 #: ../src/guestfs.pod:1665
36619 #, no-wrap
36620 msgid ""
36621 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36622 "\n"
36623 msgstr ""
36624 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36625 "\n"
36626
36627 #. type: textblock
36628 #: ../src/guestfs.pod:1673
36629 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
36630 msgstr ""
36631
36632 #. type: textblock
36633 #: ../src/guestfs.pod:1678
36634 msgid "You do not need to fill in all fields of the structure."
36635 msgstr ""
36636
36637 #. type: textblock
36638 #: ../src/guestfs.pod:1682
36639 msgid ""
36640 "There must be a one-to-one correspondence between fields of the structure "
36641 "that are filled in, and bits set in the bitmask."
36642 msgstr ""
36643
36644 #. type: =head2
36645 #: ../src/guestfs.pod:1687
36646 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
36647 msgstr ""
36648
36649 #. type: textblock
36650 #: ../src/guestfs.pod:1689
36651 msgid ""
36652 "In other languages, optional arguments are expressed in the way that is "
36653 "natural for that language.  We refer you to the language-specific "
36654 "documentation for more details on that."
36655 msgstr ""
36656
36657 #. type: textblock
36658 #: ../src/guestfs.pod:1693
36659 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
36660 msgstr ""
36661
36662 #. type: =head2
36663 #: ../src/guestfs.pod:1695
36664 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
36665 msgstr ""
36666
36667 #. type: textblock
36668 #: ../src/guestfs.pod:1697
36669 msgid ""
36670 "B<Note:> This section documents the generic event mechanism introduced in "
36671 "libguestfs 1.10, which you should use in new code if possible.  The old "
36672 "functions C<guestfs_set_log_message_callback>, "
36673 "C<guestfs_set_subprocess_quit_callback>, "
36674 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
36675 "C<guestfs_set_progress_callback> are no longer documented in this manual "
36676 "page.  Because of the ABI guarantee, the old functions continue to work."
36677 msgstr ""
36678
36679 #. type: textblock
36680 #: ../src/guestfs.pod:1706
36681 msgid ""
36682 "Handles generate events when certain things happen, such as log messages "
36683 "being generated, progress messages during long-running operations, or the "
36684 "handle being closed.  The API calls described below let you register a "
36685 "callback to be called when events happen.  You can register multiple "
36686 "callbacks (for the same, different or overlapping sets of events), and "
36687 "individually remove callbacks.  If callbacks are not removed, then they "
36688 "remain in force until the handle is closed."
36689 msgstr ""
36690
36691 #. type: textblock
36692 #: ../src/guestfs.pod:1714
36693 msgid ""
36694 "In the current implementation, events are only generated synchronously: that "
36695 "means that events (and hence callbacks) can only happen while you are in the "
36696 "middle of making another libguestfs call.  The callback is called in the "
36697 "same thread."
36698 msgstr ""
36699
36700 #. type: textblock
36701 #: ../src/guestfs.pod:1719
36702 msgid ""
36703 "Events may contain a payload, usually nothing (void), an array of 64 bit "
36704 "unsigned integers, or a message buffer.  Payloads are discussed later on."
36705 msgstr ""
36706
36707 #. type: =head3
36708 #: ../src/guestfs.pod:1723
36709 msgid "CLASSES OF EVENTS"
36710 msgstr ""
36711
36712 #. type: =item
36713 #: ../src/guestfs.pod:1727
36714 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
36715 msgstr ""
36716
36717 #. type: textblock
36718 #: ../src/guestfs.pod:1730
36719 msgid ""
36720 "The callback function will be called while the handle is being closed "
36721 "(synchronously from L</guestfs_close>)."
36722 msgstr ""
36723
36724 #. type: textblock
36725 #: ../src/guestfs.pod:1733
36726 msgid ""
36727 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
36728 "handles that are open when the program exits.  This means that this callback "
36729 "might be called indirectly from L<exit(3)>, which can cause unexpected "
36730 "problems in higher-level languages (eg. if your HLL interpreter has already "
36731 "been cleaned up by the time this is called, and if your callback then jumps "
36732 "into some HLL function)."
36733 msgstr ""
36734
36735 #. type: textblock
36736 #: ../src/guestfs.pod:1740
36737 msgid ""
36738 "If no callback is registered: the handle is closed without any callback "
36739 "being invoked."
36740 msgstr ""
36741
36742 #. type: =item
36743 #: ../src/guestfs.pod:1743
36744 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
36745 msgstr ""
36746
36747 #. type: textblock
36748 #: ../src/guestfs.pod:1746
36749 msgid ""
36750 "The callback function will be called when the child process quits, either "
36751 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
36752 "corresponds to a transition from any state to the CONFIG state)."
36753 msgstr ""
36754
36755 #. type: textblock
36756 #: ../src/guestfs.pod:1750 ../src/guestfs.pod:1759 ../src/guestfs.pod:1876
36757 msgid "If no callback is registered: the event is ignored."
36758 msgstr ""
36759
36760 #. type: =item
36761 #: ../src/guestfs.pod:1752
36762 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
36763 msgstr ""
36764
36765 #. type: textblock
36766 #: ../src/guestfs.pod:1755
36767 msgid ""
36768 "The callback function will be called when the child process becomes ready "
36769 "first time after it has been launched.  (This corresponds to a transition "
36770 "from LAUNCHING to the READY state)."
36771 msgstr ""
36772
36773 #. type: =item
36774 #: ../src/guestfs.pod:1761
36775 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
36776 msgstr ""
36777
36778 #. type: textblock
36779 #: ../src/guestfs.pod:1764
36780 msgid ""
36781 "Some long-running operations can generate progress messages.  If this "
36782 "callback is registered, then it will be called each time a progress message "
36783 "is generated (usually two seconds after the operation started, and three "
36784 "times per second thereafter until it completes, although the frequency may "
36785 "change in future versions)."
36786 msgstr ""
36787
36788 #. type: textblock
36789 #: ../src/guestfs.pod:1770
36790 msgid ""
36791 "The callback receives in the payload four unsigned 64 bit numbers which are "
36792 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
36793 msgstr ""
36794
36795 #. type: textblock
36796 #: ../src/guestfs.pod:1773
36797 msgid ""
36798 "The units of C<total> are not defined, although for some operations C<total> "
36799 "may relate in some way to the amount of data to be transferred (eg. in bytes "
36800 "or megabytes), and C<position> may be the portion which has been transferred."
36801 msgstr ""
36802
36803 #. type: textblock
36804 #: ../src/guestfs.pod:1778
36805 msgid "The only defined and stable parts of the API are:"
36806 msgstr ""
36807
36808 #. type: textblock
36809 #: ../src/guestfs.pod:1784
36810 msgid ""
36811 "The callback can display to the user some type of progress bar or indicator "
36812 "which shows the ratio of C<position>:C<total>."
36813 msgstr ""
36814
36815 #. type: textblock
36816 #: ../src/guestfs.pod:1789
36817 msgid "0 E<lt>= C<position> E<lt>= C<total>"
36818 msgstr ""
36819
36820 #. type: textblock
36821 #: ../src/guestfs.pod:1793
36822 msgid ""
36823 "If any progress notification is sent during a call, then a final progress "
36824 "notification is always sent when C<position> = C<total> (I<unless> the call "
36825 "fails with an error)."
36826 msgstr ""
36827
36828 #. type: textblock
36829 #: ../src/guestfs.pod:1797
36830 msgid ""
36831 "This is to simplify caller code, so callers can easily set the progress "
36832 "indicator to \"100%\" at the end of the operation, without requiring special "
36833 "code to detect this case."
36834 msgstr ""
36835
36836 #. type: textblock
36837 #: ../src/guestfs.pod:1803
36838 msgid ""
36839 "For some calls we are unable to estimate the progress of the call, but we "
36840 "can still generate progress messages to indicate activity.  This is known as "
36841 "\"pulse mode\", and is directly supported by certain progress bar "
36842 "implementations (eg. GtkProgressBar)."
36843 msgstr ""
36844
36845 #. type: textblock
36846 #: ../src/guestfs.pod:1808
36847 msgid ""
36848 "For these calls, zero or more progress messages are generated with "
36849 "C<position = 0> and C<total = 1>, followed by a final message with "
36850 "C<position = total = 1>."
36851 msgstr ""
36852
36853 #. type: textblock
36854 #: ../src/guestfs.pod:1812
36855 msgid ""
36856 "As noted above, if the call fails with an error then the final message may "
36857 "not be generated."
36858 msgstr ""
36859
36860 #. type: textblock
36861 #: ../src/guestfs.pod:1817
36862 msgid ""
36863 "The callback also receives the procedure number (C<proc_nr>) and serial "
36864 "number (C<serial>) of the call.  These are only useful for debugging "
36865 "protocol issues, and the callback can normally ignore them.  The callback "
36866 "may want to print these numbers in error messages or debugging messages."
36867 msgstr ""
36868
36869 #. type: textblock
36870 #: ../src/guestfs.pod:1823
36871 msgid "If no callback is registered: progress messages are discarded."
36872 msgstr ""
36873
36874 #. type: =item
36875 #: ../src/guestfs.pod:1825
36876 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
36877 msgstr ""
36878
36879 #. type: textblock
36880 #: ../src/guestfs.pod:1828
36881 msgid ""
36882 "The callback function is called whenever a log message is generated by qemu, "
36883 "the appliance kernel, guestfsd (daemon), or utility programs."
36884 msgstr ""
36885
36886 #. type: textblock
36887 #: ../src/guestfs.pod:1831
36888 msgid ""
36889 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
36890 "guestfs_launch>) then additional debug messages are generated."
36891 msgstr ""
36892
36893 #. type: textblock
36894 #: ../src/guestfs.pod:1834 ../src/guestfs.pod:1848
36895 msgid ""
36896 "If no callback is registered: the messages are discarded unless the verbose "
36897 "flag is set in which case they are sent to stderr.  You can override the "
36898 "printing of verbose messages to stderr by setting up a callback."
36899 msgstr ""
36900
36901 #. type: =item
36902 #: ../src/guestfs.pod:1839
36903 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
36904 msgstr ""
36905
36906 #. type: textblock
36907 #: ../src/guestfs.pod:1842
36908 msgid ""
36909 "The callback function is called whenever a log message is generated by the "
36910 "library part of libguestfs."
36911 msgstr ""
36912
36913 #. type: textblock
36914 #: ../src/guestfs.pod:1845
36915 msgid ""
36916 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
36917 "messages are generated."
36918 msgstr ""
36919
36920 #. type: =item
36921 #: ../src/guestfs.pod:1853
36922 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
36923 msgstr ""
36924
36925 #. type: textblock
36926 #: ../src/guestfs.pod:1856
36927 msgid ""
36928 "The callback function is called whenever a trace message is generated.  This "
36929 "only applies if the trace flag (L</guestfs_set_trace>) is set."
36930 msgstr ""
36931
36932 #. type: textblock
36933 #: ../src/guestfs.pod:1859
36934 msgid ""
36935 "If no callback is registered: the messages are sent to stderr.  You can "
36936 "override the printing of trace messages to stderr by setting up a callback."
36937 msgstr ""
36938
36939 #. type: =item
36940 #: ../src/guestfs.pod:1863
36941 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
36942 msgstr ""
36943
36944 #. type: textblock
36945 #: ../src/guestfs.pod:1866
36946 msgid ""
36947 "The callback function is called whenever a libguestfs function is entered."
36948 msgstr ""
36949
36950 #. type: textblock
36951 #: ../src/guestfs.pod:1869
36952 msgid ""
36953 "The payload is a string which contains the name of the function that we are "
36954 "entering (not including C<guestfs_> prefix)."
36955 msgstr ""
36956
36957 #. type: textblock
36958 #: ../src/guestfs.pod:1872
36959 msgid ""
36960 "Note that libguestfs functions can call themselves, so you may see many "
36961 "events from a single call.  A few libguestfs functions do not generate this "
36962 "event."
36963 msgstr ""
36964
36965 #. type: =head3
36966 #: ../src/guestfs.pod:1880
36967 msgid "guestfs_set_event_callback"
36968 msgstr ""
36969
36970 #. type: verbatim
36971 #: ../src/guestfs.pod:1882
36972 #, no-wrap
36973 msgid ""
36974 " int guestfs_set_event_callback (guestfs_h *g,\n"
36975 "                                 guestfs_event_callback cb,\n"
36976 "                                 uint64_t event_bitmask,\n"
36977 "                                 int flags,\n"
36978 "                                 void *opaque);\n"
36979 "\n"
36980 msgstr ""
36981
36982 #. type: textblock
36983 #: ../src/guestfs.pod:1888
36984 msgid ""
36985 "This function registers a callback (C<cb>) for all event classes in the "
36986 "C<event_bitmask>."
36987 msgstr ""
36988
36989 #. type: textblock
36990 #: ../src/guestfs.pod:1891
36991 msgid ""
36992 "For example, to register for all log message events, you could call this "
36993 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
36994 "To register a single callback for all possible classes of events, use "
36995 "C<GUESTFS_EVENT_ALL>."
36996 msgstr ""
36997
36998 #. type: textblock
36999 #: ../src/guestfs.pod:1897
37000 msgid "C<flags> should always be passed as 0."
37001 msgstr ""
37002
37003 #. type: textblock
37004 #: ../src/guestfs.pod:1899
37005 msgid ""
37006 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
37007 "it for any purpose."
37008 msgstr ""
37009
37010 #. type: textblock
37011 #: ../src/guestfs.pod:1902
37012 msgid ""
37013 "The return value is the event handle (an integer) which you can use to "
37014 "delete the callback (see below)."
37015 msgstr ""
37016
37017 #. type: textblock
37018 #: ../src/guestfs.pod:1905
37019 msgid ""
37020 "If there is an error, this function returns C<-1>, and sets the error in the "
37021 "handle in the usual way (see L</guestfs_last_error> etc.)"
37022 msgstr ""
37023
37024 #. type: textblock
37025 #: ../src/guestfs.pod:1908
37026 msgid ""
37027 "Callbacks remain in effect until they are deleted, or until the handle is "
37028 "closed."
37029 msgstr ""
37030
37031 #. type: textblock
37032 #: ../src/guestfs.pod:1911
37033 msgid ""
37034 "In the case where multiple callbacks are registered for a particular event "
37035 "class, all of the callbacks are called.  The order in which multiple "
37036 "callbacks are called is not defined."
37037 msgstr ""
37038
37039 #. type: =head3
37040 #: ../src/guestfs.pod:1915
37041 msgid "guestfs_delete_event_callback"
37042 msgstr ""
37043
37044 #. type: verbatim
37045 #: ../src/guestfs.pod:1917
37046 #, no-wrap
37047 msgid ""
37048 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37049 "\n"
37050 msgstr ""
37051
37052 #. type: textblock
37053 #: ../src/guestfs.pod:1919
37054 msgid ""
37055 "Delete a callback that was previously registered.  C<event_handle> should be "
37056 "the integer that was returned by a previous call to "
37057 "C<guestfs_set_event_callback> on the same handle."
37058 msgstr ""
37059
37060 #. type: =head3
37061 #: ../src/guestfs.pod:1923
37062 msgid "guestfs_event_callback"
37063 msgstr ""
37064
37065 #. type: verbatim
37066 #: ../src/guestfs.pod:1925
37067 #, no-wrap
37068 msgid ""
37069 " typedef void (*guestfs_event_callback) (\n"
37070 "                  guestfs_h *g,\n"
37071 "                  void *opaque,\n"
37072 "                  uint64_t event,\n"
37073 "                  int event_handle,\n"
37074 "                  int flags,\n"
37075 "                  const char *buf, size_t buf_len,\n"
37076 "                  const uint64_t *array, size_t array_len);\n"
37077 "\n"
37078 msgstr ""
37079
37080 #. type: textblock
37081 #: ../src/guestfs.pod:1934
37082 msgid ""
37083 "This is the type of the event callback function that you have to provide."
37084 msgstr ""
37085
37086 #. type: textblock
37087 #: ../src/guestfs.pod:1937
37088 msgid ""
37089 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37090 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37091 "handle, and C<flags> which in the current API you should ignore."
37092 msgstr ""
37093
37094 #. type: textblock
37095 #: ../src/guestfs.pod:1941
37096 msgid ""
37097 "The remaining parameters contain the event payload (if any).  Each event may "
37098 "contain a payload, which usually relates to the event class, but for future "
37099 "proofing your code should be written to handle any payload for any event "
37100 "class."
37101 msgstr ""
37102
37103 #. type: textblock
37104 #: ../src/guestfs.pod:1946
37105 msgid ""
37106 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37107 "there is no message buffer).  Note that this message buffer can contain "
37108 "arbitrary 8 bit data, including NUL bytes."
37109 msgstr ""
37110
37111 #. type: textblock
37112 #: ../src/guestfs.pod:1950
37113 msgid ""
37114 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
37115 "moment this is only used for progress messages."
37116 msgstr ""
37117
37118 #. type: =head3
37119 #: ../src/guestfs.pod:1953
37120 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37121 msgstr ""
37122
37123 #. type: textblock
37124 #: ../src/guestfs.pod:1955
37125 msgid ""
37126 "One motivation for the generic event API was to allow GUI programs to "
37127 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
37128 "unconditionally to C<stderr>."
37129 msgstr ""
37130
37131 #. type: textblock
37132 #: ../src/guestfs.pod:1959
37133 msgid ""
37134 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37135 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
37136 "messages are not events; you must capture error messages separately)."
37137 msgstr ""
37138
37139 #. type: textblock
37140 #: ../src/guestfs.pod:1964
37141 msgid ""
37142 "Programs have to set up a callback to capture the classes of events of "
37143 "interest:"
37144 msgstr ""
37145
37146 #. type: verbatim
37147 #: ../src/guestfs.pod:1967
37148 #, no-wrap
37149 msgid ""
37150 " int eh =\n"
37151 "   guestfs_set_event_callback\n"
37152 "     (g, message_callback,\n"
37153 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37154 "      GUESTFS_EVENT_TRACE,\n"
37155 "      0, NULL) == -1)\n"
37156 " if (eh == -1) {\n"
37157 "   // handle error in the usual way\n"
37158 " }\n"
37159 "\n"
37160 msgstr ""
37161
37162 #. type: textblock
37163 #: ../src/guestfs.pod:1977
37164 msgid ""
37165 "The callback can then direct messages to the appropriate place.  In this "
37166 "example, messages are directed to syslog:"
37167 msgstr ""
37168
37169 #. type: verbatim
37170 #: ../src/guestfs.pod:1980
37171 #, no-wrap
37172 msgid ""
37173 " static void\n"
37174 " message_callback (\n"
37175 "         guestfs_h *g,\n"
37176 "         void *opaque,\n"
37177 "         uint64_t event,\n"
37178 "         int event_handle,\n"
37179 "         int flags,\n"
37180 "         const char *buf, size_t buf_len,\n"
37181 "         const uint64_t *array, size_t array_len)\n"
37182 " {\n"
37183 "   const int priority = LOG_USER|LOG_INFO;\n"
37184 "   if (buf_len > 0)\n"
37185 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
37186 " }\n"
37187 "\n"
37188 msgstr ""
37189
37190 #. type: =head1
37191 #: ../src/guestfs.pod:1995
37192 msgid "CANCELLING LONG TRANSFERS"
37193 msgstr ""
37194
37195 #. type: textblock
37196 #: ../src/guestfs.pod:1997
37197 msgid ""
37198 "Some operations can be cancelled by the caller while they are in progress.  "
37199 "Currently only operations that involve uploading or downloading data can be "
37200 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
37201 "parameters in the generator)."
37202 msgstr ""
37203
37204 #. type: =head2
37205 #: ../src/guestfs.pod:2002
37206 msgid "guestfs_user_cancel"
37207 msgstr ""
37208
37209 #. type: verbatim
37210 #: ../src/guestfs.pod:2004
37211 #, no-wrap
37212 msgid ""
37213 " void guestfs_user_cancel (guestfs_h *g);\n"
37214 "\n"
37215 msgstr ""
37216
37217 #. type: textblock
37218 #: ../src/guestfs.pod:2006
37219 msgid ""
37220 "C<guestfs_user_cancel> cancels the current upload or download operation."
37221 msgstr ""
37222
37223 #. type: textblock
37224 #: ../src/guestfs.pod:2009
37225 msgid ""
37226 "Unlike most other libguestfs calls, this function is signal safe and thread "
37227 "safe.  You can call it from a signal handler or from another thread, without "
37228 "needing to do any locking."
37229 msgstr ""
37230
37231 #. type: textblock
37232 #: ../src/guestfs.pod:2013
37233 msgid ""
37234 "The transfer that was in progress (if there is one) will stop shortly "
37235 "afterwards, and will return an error.  The errno (see L</"
37236 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
37237 "out if the operation was cancelled or failed because of another error."
37238 msgstr ""
37239
37240 #. type: textblock
37241 #: ../src/guestfs.pod:2019
37242 msgid ""
37243 "No cleanup is performed: for example, if a file was being uploaded then "
37244 "after cancellation there may be a partially uploaded file.  It is the "
37245 "caller's responsibility to clean up if necessary."
37246 msgstr ""
37247
37248 #. type: textblock
37249 #: ../src/guestfs.pod:2023
37250 msgid "There are two common places that you might call C<guestfs_user_cancel>."
37251 msgstr ""
37252
37253 #. type: textblock
37254 #: ../src/guestfs.pod:2025
37255 msgid ""
37256 "In an interactive text-based program, you might call it from a C<SIGINT> "
37257 "signal handler so that pressing C<^C> cancels the current operation.  (You "
37258 "also need to call L</guestfs_set_pgroup> so that child processes don't "
37259 "receive the C<^C> signal)."
37260 msgstr ""
37261
37262 #. type: textblock
37263 #: ../src/guestfs.pod:2030
37264 msgid ""
37265 "In a graphical program, when the main thread is displaying a progress bar "
37266 "with a cancel button, wire up the cancel button to call this function."
37267 msgstr ""
37268
37269 #. type: =head1
37270 #: ../src/guestfs.pod:2034
37271 msgid "PRIVATE DATA AREA"
37272 msgstr ""
37273
37274 #. type: textblock
37275 #: ../src/guestfs.pod:2036
37276 msgid ""
37277 "You can attach named pieces of private data to the libguestfs handle, fetch "
37278 "them by name, and walk over them, for the lifetime of the handle.  This is "
37279 "called the private data area and is only available from the C API."
37280 msgstr ""
37281
37282 #. type: textblock
37283 #: ../src/guestfs.pod:2041
37284 msgid "To attach a named piece of data, use the following call:"
37285 msgstr ""
37286
37287 #. type: verbatim
37288 #: ../src/guestfs.pod:2043
37289 #, no-wrap
37290 msgid ""
37291 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37292 "\n"
37293 msgstr ""
37294 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37295 "\n"
37296
37297 #. type: textblock
37298 #: ../src/guestfs.pod:2045
37299 msgid ""
37300 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
37301 "pointer (which can be C<NULL>).  Any previous item with the same key is "
37302 "overwritten."
37303 msgstr ""
37304
37305 #. type: textblock
37306 #: ../src/guestfs.pod:2049
37307 msgid ""
37308 "You can use any C<key> you want, but your key should I<not> start with an "
37309 "underscore character.  Keys beginning with an underscore character are "
37310 "reserved for internal libguestfs purposes (eg. for implementing language "
37311 "bindings).  It is recommended that you prefix the key with some unique "
37312 "string to avoid collisions with other users."
37313 msgstr ""
37314
37315 #. type: textblock
37316 #: ../src/guestfs.pod:2055
37317 msgid "To retrieve the pointer, use:"
37318 msgstr ""
37319
37320 #. type: verbatim
37321 #: ../src/guestfs.pod:2057
37322 #, no-wrap
37323 msgid ""
37324 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37325 "\n"
37326 msgstr ""
37327 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37328 "\n"
37329
37330 #. type: textblock
37331 #: ../src/guestfs.pod:2059
37332 msgid ""
37333 "This function returns C<NULL> if either no data is found associated with "
37334 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
37335 "C<NULL>."
37336 msgstr ""
37337
37338 #. type: textblock
37339 #: ../src/guestfs.pod:2063
37340 msgid ""
37341 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
37342 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
37343 "all.  In particular, libguestfs does I<not> try to free the data when the "
37344 "handle is closed.  If the data must be freed, then the caller must either "
37345 "free it before calling L</guestfs_close> or must set up a close callback to "
37346 "do it (see L</GUESTFS_EVENT_CLOSE>)."
37347 msgstr ""
37348
37349 #. type: textblock
37350 #: ../src/guestfs.pod:2070
37351 msgid "To walk over all entries, use these two functions:"
37352 msgstr ""
37353
37354 #. type: verbatim
37355 #: ../src/guestfs.pod:2072
37356 #, no-wrap
37357 msgid ""
37358 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
37359 "\n"
37360 msgstr ""
37361
37362 #. type: verbatim
37363 #: ../src/guestfs.pod:2074
37364 #, no-wrap
37365 msgid ""
37366 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
37367 "\n"
37368 msgstr ""
37369
37370 #. type: textblock
37371 #: ../src/guestfs.pod:2076
37372 msgid ""
37373 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
37374 "not have any particular meaning -- keys are not returned in any defined "
37375 "order).  A pointer to the key is returned in C<*key_rtn> and the "
37376 "corresponding data pointer is returned from the function.  C<NULL> is "
37377 "returned if there are no keys stored in the handle."
37378 msgstr ""
37379
37380 #. type: textblock
37381 #: ../src/guestfs.pod:2082
37382 msgid ""
37383 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
37384 "value of this function is also C<NULL> is there are no further entries to "
37385 "return."
37386 msgstr ""
37387
37388 #. type: textblock
37389 #: ../src/guestfs.pod:2086
37390 msgid "Notes about walking over entries:"
37391 msgstr ""
37392
37393 #. type: textblock
37394 #: ../src/guestfs.pod:2092
37395 msgid ""
37396 "You must not call C<guestfs_set_private> while walking over the entries."
37397 msgstr ""
37398
37399 #. type: textblock
37400 #: ../src/guestfs.pod:2097
37401 msgid ""
37402 "The handle maintains an internal iterator which is reset when you call "
37403 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
37404 "call C<guestfs_set_private>."
37405 msgstr ""
37406
37407 #. type: textblock
37408 #: ../src/guestfs.pod:2103
37409 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
37410 msgstr ""
37411
37412 #. type: verbatim
37413 #: ../src/guestfs.pod:2105
37414 #, no-wrap
37415 msgid ""
37416 " guestfs_set_private (g, key, NULL);\n"
37417 "\n"
37418 msgstr ""
37419
37420 #. type: textblock
37421 #: ../src/guestfs.pod:2107
37422 msgid "then that C<key> is not returned when walking."
37423 msgstr ""
37424
37425 #. type: textblock
37426 #: ../src/guestfs.pod:2111
37427 msgid ""
37428 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
37429 "C<guestfs_next_private> or C<guestfs_set_private>."
37430 msgstr ""
37431
37432 #. type: textblock
37433 #: ../src/guestfs.pod:2117
37434 msgid ""
37435 "The following example code shows how to print all keys and data pointers "
37436 "that are associated with the handle C<g>:"
37437 msgstr ""
37438
37439 #. type: verbatim
37440 #: ../src/guestfs.pod:2120
37441 #, no-wrap
37442 msgid ""
37443 " const char *key;\n"
37444 " void *data = guestfs_first_private (g, &key);\n"
37445 " while (data != NULL)\n"
37446 "   {\n"
37447 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
37448 "     data = guestfs_next_private (g, &key);\n"
37449 "   }\n"
37450 "\n"
37451 msgstr ""
37452
37453 #. type: textblock
37454 #: ../src/guestfs.pod:2128
37455 msgid ""
37456 "More commonly you are only interested in keys that begin with an application-"
37457 "specific prefix C<foo_>.  Modify the loop like so:"
37458 msgstr ""
37459
37460 #. type: verbatim
37461 #: ../src/guestfs.pod:2131
37462 #, no-wrap
37463 msgid ""
37464 " const char *key;\n"
37465 " void *data = guestfs_first_private (g, &key);\n"
37466 " while (data != NULL)\n"
37467 "   {\n"
37468 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37469 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
37470 "     data = guestfs_next_private (g, &key);\n"
37471 "   }\n"
37472 "\n"
37473 msgstr ""
37474
37475 #. type: textblock
37476 #: ../src/guestfs.pod:2140
37477 msgid ""
37478 "If you need to modify keys while walking, then you have to jump back to the "
37479 "beginning of the loop.  For example, to delete all keys prefixed with "
37480 "C<foo_>:"
37481 msgstr ""
37482
37483 #. type: verbatim
37484 #: ../src/guestfs.pod:2144
37485 #, no-wrap
37486 msgid ""
37487 "  const char *key;\n"
37488 "  void *data;\n"
37489 " again:\n"
37490 "  data = guestfs_first_private (g, &key);\n"
37491 "  while (data != NULL)\n"
37492 "    {\n"
37493 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37494 "        {\n"
37495 "          guestfs_set_private (g, key, NULL);\n"
37496 "          /* note that 'key' pointer is now invalid, and so is\n"
37497 "             the internal iterator */\n"
37498 "          goto again;\n"
37499 "        }\n"
37500 "      data = guestfs_next_private (g, &key);\n"
37501 "    }\n"
37502 "\n"
37503 msgstr ""
37504
37505 #. type: textblock
37506 #: ../src/guestfs.pod:2160
37507 msgid ""
37508 "Note that the above loop is guaranteed to terminate because the keys are "
37509 "being deleted, but other manipulations of keys within the loop might not "
37510 "terminate unless you also maintain an indication of which keys have been "
37511 "visited."
37512 msgstr ""
37513
37514 #. type: =end
37515 #: ../src/guestfs.pod:2165 ../src/guestfs.pod:2170
37516 msgid "html"
37517 msgstr "html"
37518
37519 #. type: textblock
37520 #: ../src/guestfs.pod:2167
37521 msgid ""
37522 "<!-- old anchor for the next section --> <a name="
37523 "\"state_machine_and_low_level_event_api\"/>"
37524 msgstr ""
37525 "<!-- old anchor for the next section --> <a name="
37526 "\"state_machine_and_low_level_event_api\"/>"
37527
37528 #. type: =head1
37529 #: ../src/guestfs.pod:2172
37530 msgid "ARCHITECTURE"
37531 msgstr "АРХІТЕКТУРА"
37532
37533 #. type: textblock
37534 #: ../src/guestfs.pod:2174
37535 msgid ""
37536 "Internally, libguestfs is implemented by running an appliance (a special "
37537 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
37538 "process of the main program."
37539 msgstr ""
37540
37541 #. type: verbatim
37542 #: ../src/guestfs.pod:2178
37543 #, no-wrap
37544 msgid ""
37545 "  ___________________\n"
37546 " /                   \\\n"
37547 " | main program      |\n"
37548 " |                   |\n"
37549 " |                   |           child process / appliance\n"
37550 " |                   |           __________________________\n"
37551 " |                   |          / qemu                     \\\n"
37552 " +-------------------+   RPC    |      +-----------------+ |\n"
37553 " | libguestfs     <--------------------> guestfsd        | |\n"
37554 " |                   |          |      +-----------------+ |\n"
37555 " \\___________________/          |      | Linux kernel    | |\n"
37556 "                                |      +--^--------------+ |\n"
37557 "                                \\_________|________________/\n"
37558 "                                          |\n"
37559 "                                   _______v______\n"
37560 "                                  /              \\\n"
37561 "                                  | Device or    |\n"
37562 "                                  | disk image   |\n"
37563 "                                  \\______________/\n"
37564 "\n"
37565 msgstr ""
37566
37567 #. type: textblock
37568 #: ../src/guestfs.pod:2198
37569 msgid ""
37570 "The library, linked to the main program, creates the child process and hence "
37571 "the appliance in the L</guestfs_launch> function."
37572 msgstr ""
37573
37574 #. type: textblock
37575 #: ../src/guestfs.pod:2201
37576 msgid ""
37577 "Inside the appliance is a Linux kernel and a complete stack of userspace "
37578 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
37579 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
37580 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
37581 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
37582 "attached to the qemu process which translates device access by the "
37583 "appliance's Linux kernel into accesses to the image."
37584 msgstr ""
37585
37586 #. type: textblock
37587 #: ../src/guestfs.pod:2210
37588 msgid ""
37589 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
37590 "Although the disk image you are attached to might also be used by some "
37591 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
37592 "care if both libguestfs's qemu process and your virtual machine are trying "
37593 "to update the disk image at the same time, since these usually results in "
37594 "massive disk corruption)."
37595 msgstr ""
37596
37597 #. type: =head1
37598 #: ../src/guestfs.pod:2217
37599 msgid "STATE MACHINE"
37600 msgstr "СКІНЧЕННИЙ АВТОМАТ"
37601
37602 #. type: textblock
37603 #: ../src/guestfs.pod:2219
37604 msgid "libguestfs uses a state machine to model the child process:"
37605 msgstr ""
37606
37607 #. type: verbatim
37608 #: ../src/guestfs.pod:2221
37609 #, no-wrap
37610 msgid ""
37611 "                         |\n"
37612 "                    guestfs_create\n"
37613 "                         |\n"
37614 "                         |\n"
37615 "                     ____V_____\n"
37616 "                    /          \\\n"
37617 "                    |  CONFIG  |\n"
37618 "                    \\__________/\n"
37619 "                     ^ ^   ^  \\\n"
37620 "                    /  |    \\  \\ guestfs_launch\n"
37621 "                   /   |    _\\__V______\n"
37622 "                  /    |   /           \\\n"
37623 "                 /     |   | LAUNCHING |\n"
37624 "                /      |   \\___________/\n"
37625 "               /       |       /\n"
37626 "              /        |  guestfs_launch\n"
37627 "             /         |     /\n"
37628 "    ______  /        __|____V\n"
37629 "   /      \\ ------> /        \\\n"
37630 "   | BUSY |         | READY  |\n"
37631 "   \\______/ <------ \\________/\n"
37632 "\n"
37633 msgstr ""
37634
37635 #. type: textblock
37636 #: ../src/guestfs.pod:2243
37637 msgid ""
37638 "The normal transitions are (1) CONFIG (when the handle is created, but there "
37639 "is no child process), (2) LAUNCHING (when the child process is booting up), "
37640 "(3) alternating between READY and BUSY as commands are issued to, and "
37641 "carried out by, the child process."
37642 msgstr ""
37643
37644 #. type: textblock
37645 #: ../src/guestfs.pod:2248
37646 msgid ""
37647 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
37648 "asynchronously at any time (eg. due to some internal error), and that causes "
37649 "the state to transition back to CONFIG."
37650 msgstr ""
37651
37652 #. type: textblock
37653 #: ../src/guestfs.pod:2252
37654 msgid ""
37655 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
37656 "issued when in the CONFIG state."
37657 msgstr ""
37658
37659 #. type: textblock
37660 #: ../src/guestfs.pod:2255
37661 msgid ""
37662 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
37663 "L</guestfs_launch> blocks until the child process is READY to accept "
37664 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
37665 "moves the state from CONFIG to LAUNCHING while it is running."
37666 msgstr ""
37667
37668 #. type: textblock
37669 #: ../src/guestfs.pod:2261
37670 msgid ""
37671 "API actions such as L</guestfs_mount> can only be issued when in the READY "
37672 "state.  These API calls block waiting for the command to be carried out (ie. "
37673 "the state to transition to BUSY and then back to READY).  There are no non-"
37674 "blocking versions, and no way to issue more than one command per handle at "
37675 "the same time."
37676 msgstr ""
37677
37678 #. type: textblock
37679 #: ../src/guestfs.pod:2267
37680 msgid ""
37681 "Finally, the child process sends asynchronous messages back to the main "
37682 "program, such as kernel log messages.  You can register a callback to "
37683 "receive these messages."
37684 msgstr ""
37685
37686 #. type: =head1
37687 #: ../src/guestfs.pod:2271
37688 msgid "INTERNALS"
37689 msgstr ""
37690
37691 #. type: =head2
37692 #: ../src/guestfs.pod:2273
37693 msgid "APPLIANCE BOOT PROCESS"
37694 msgstr ""
37695
37696 #. type: textblock
37697 #: ../src/guestfs.pod:2275
37698 msgid ""
37699 "This process has evolved and continues to evolve.  The description here "
37700 "corresponds only to the current version of libguestfs and is provided for "
37701 "information only."
37702 msgstr ""
37703
37704 #. type: textblock
37705 #: ../src/guestfs.pod:2279
37706 msgid ""
37707 "In order to follow the stages involved below, enable libguestfs debugging "
37708 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
37709 msgstr ""
37710
37711 #. type: =item
37712 #: ../src/guestfs.pod:2284
37713 #, fuzzy
37714 #| msgid "C<appliance>"
37715 msgid "Create the appliance"
37716 msgstr "C<appliance>"
37717
37718 #. type: textblock
37719 #: ../src/guestfs.pod:2286
37720 msgid ""
37721 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
37722 "initrd and the appliance."
37723 msgstr ""
37724
37725 #. type: textblock
37726 #: ../src/guestfs.pod:2289
37727 msgid ""
37728 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
37729 "directory if C<TMPDIR> is set)."
37730 msgstr ""
37731
37732 #. type: textblock
37733 #: ../src/guestfs.pod:2292
37734 msgid ""
37735 "For a complete description of how the appliance is created and cached, read "
37736 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
37737 msgstr ""
37738
37739 #. type: =item
37740 #: ../src/guestfs.pod:2296
37741 msgid "Start qemu and boot the kernel"
37742 msgstr ""
37743
37744 #. type: textblock
37745 #: ../src/guestfs.pod:2298
37746 msgid "qemu is invoked to boot the kernel."
37747 msgstr ""
37748
37749 #. type: =item
37750 #: ../src/guestfs.pod:2300
37751 msgid "Run the initrd"
37752 msgstr ""
37753
37754 #. type: textblock
37755 #: ../src/guestfs.pod:2302
37756 msgid ""
37757 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
37758 "appliance.  The purpose of the initrd is to load enough kernel modules in "
37759 "order that the appliance itself can be mounted and started."
37760 msgstr ""
37761
37762 #. type: textblock
37763 #: ../src/guestfs.pod:2306
37764 msgid ""
37765 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
37766 "initrd>."
37767 msgstr ""
37768
37769 #. type: textblock
37770 #: ../src/guestfs.pod:2309
37771 msgid ""
37772 "When the initrd has started you will see messages showing that kernel "
37773 "modules are being loaded, similar to this:"
37774 msgstr ""
37775
37776 #. type: verbatim
37777 #: ../src/guestfs.pod:2312
37778 #, no-wrap
37779 msgid ""
37780 " febootstrap: ext2 mini initrd starting up\n"
37781 " febootstrap: mounting /sys\n"
37782 " febootstrap: internal insmod libcrc32c.ko\n"
37783 " febootstrap: internal insmod crc32c-intel.ko\n"
37784 "\n"
37785 msgstr ""
37786
37787 #. type: =item
37788 #: ../src/guestfs.pod:2317
37789 msgid "Find and mount the appliance device"
37790 msgstr ""
37791
37792 #. type: textblock
37793 #: ../src/guestfs.pod:2319
37794 msgid ""
37795 "The appliance is a sparse file containing an ext2 filesystem which contains "
37796 "a familiar (although reduced in size) Linux operating system.  It would "
37797 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
37798 msgstr ""
37799
37800 #. type: textblock
37801 #: ../src/guestfs.pod:2323
37802 msgid ""
37803 "The regular disks being inspected by libguestfs are the first devices "
37804 "exposed by qemu (eg. as C</dev/vda>)."
37805 msgstr ""
37806
37807 #. type: textblock
37808 #: ../src/guestfs.pod:2326
37809 msgid ""
37810 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
37811 "there was only one regular disk)."
37812 msgstr ""
37813
37814 #. type: textblock
37815 #: ../src/guestfs.pod:2329
37816 msgid ""
37817 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
37818 "and switch root into the appliance, and run C</init> from the appliance."
37819 msgstr ""
37820
37821 #. type: textblock
37822 #: ../src/guestfs.pod:2333
37823 msgid "If this works successfully you will see messages such as:"
37824 msgstr ""
37825
37826 #. type: verbatim
37827 #: ../src/guestfs.pod:2335
37828 #, no-wrap
37829 msgid ""
37830 " febootstrap: picked /sys/block/vdb/dev as root device\n"
37831 " febootstrap: creating /dev/root as block special 252:16\n"
37832 " febootstrap: mounting new root on /root\n"
37833 " febootstrap: chroot\n"
37834 " Starting /init script ...\n"
37835 "\n"
37836 msgstr ""
37837
37838 #. type: textblock
37839 #: ../src/guestfs.pod:2341
37840 msgid ""
37841 "Note that C<Starting /init script ...> indicates that the appliance's init "
37842 "script is now running."
37843 msgstr ""
37844
37845 #. type: =item
37846 #: ../src/guestfs.pod:2344
37847 msgid "Initialize the appliance"
37848 msgstr ""
37849
37850 #. type: textblock
37851 #: ../src/guestfs.pod:2346
37852 msgid ""
37853 "The appliance itself now initializes itself.  This involves starting certain "
37854 "processes like C<udev>, possibly printing some debug information, and "
37855 "finally running the daemon (C<guestfsd>)."
37856 msgstr ""
37857
37858 #. type: =item
37859 #: ../src/guestfs.pod:2350
37860 #, fuzzy
37861 #| msgid "C<daemon>"
37862 msgid "The daemon"
37863 msgstr "C<daemon>"
37864
37865 #. type: textblock
37866 #: ../src/guestfs.pod:2352
37867 msgid ""
37868 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
37869 "should see:"
37870 msgstr ""
37871
37872 #. type: verbatim
37873 #: ../src/guestfs.pod:2355
37874 #, fuzzy, no-wrap
37875 #| msgid ""
37876 #| " set-verbose true|false\n"
37877 #| "\n"
37878 msgid ""
37879 " verbose daemon enabled\n"
37880 "\n"
37881 msgstr ""
37882 " set-verbose true|false\n"
37883 "\n"
37884
37885 #. type: textblock
37886 #: ../src/guestfs.pod:2357
37887 msgid ""
37888 "The daemon expects to see a named virtio-serial port exposed by qemu and "
37889 "connected on the other end to the library."
37890 msgstr ""
37891
37892 #. type: textblock
37893 #: ../src/guestfs.pod:2360
37894 msgid ""
37895 "The daemon connects to this port (and hence to the library) and sends a four "
37896 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
37897 "protocol (see below)."
37898 msgstr ""
37899
37900 #. type: =head2
37901 #: ../src/guestfs.pod:2366
37902 msgid "COMMUNICATION PROTOCOL"
37903 msgstr ""
37904
37905 #. type: textblock
37906 #: ../src/guestfs.pod:2368
37907 msgid ""
37908 "Don't rely on using this protocol directly.  This section documents how it "
37909 "currently works, but it may change at any time."
37910 msgstr ""
37911
37912 #. type: textblock
37913 #: ../src/guestfs.pod:2371
37914 msgid ""
37915 "The protocol used to talk between the library and the daemon running inside "
37916 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
37917 "1014, RFC 1832, RFC 4506)."
37918 msgstr ""
37919
37920 #. type: textblock
37921 #: ../src/guestfs.pod:2375
37922 msgid ""
37923 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
37924 "this file is automatically generated)."
37925 msgstr ""
37926
37927 #. type: textblock
37928 #: ../src/guestfs.pod:2378
37929 msgid ""
37930 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
37931 "and C<FileOut> parameters, which are handled with very simple request/reply "
37932 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
37933 "parameters, which use the same request and reply messages, but they may also "
37934 "be followed by files sent using a chunked encoding."
37935 msgstr ""
37936
37937 #. type: =head3
37938 #: ../src/guestfs.pod:2385
37939 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
37940 msgstr ""
37941
37942 #. type: textblock
37943 #: ../src/guestfs.pod:2387
37944 msgid "For ordinary functions, the request message is:"
37945 msgstr ""
37946
37947 #. type: verbatim
37948 #: ../src/guestfs.pod:2389
37949 #, no-wrap
37950 msgid ""
37951 " total length (header + arguments,\n"
37952 "      but not including the length word itself)\n"
37953 " struct guestfs_message_header (encoded as XDR)\n"
37954 " struct guestfs_<foo>_args (encoded as XDR)\n"
37955 "\n"
37956 msgstr ""
37957
37958 #. type: textblock
37959 #: ../src/guestfs.pod:2394
37960 msgid ""
37961 "The total length field allows the daemon to allocate a fixed size buffer "
37962 "into which it slurps the rest of the message.  As a result, the total length "
37963 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
37964 "effective size of any request is limited to somewhere under this size."
37965 msgstr ""
37966
37967 #. type: textblock
37968 #: ../src/guestfs.pod:2400
37969 msgid ""
37970 "Note also that many functions don't take any arguments, in which case the "
37971 "C<guestfs_I<foo>_args> is completely omitted."
37972 msgstr ""
37973
37974 #. type: textblock
37975 #: ../src/guestfs.pod:2403
37976 msgid ""
37977 "The header contains the procedure number (C<guestfs_proc>) which is how the "
37978 "receiver knows what type of args structure to expect, or none at all."
37979 msgstr ""
37980
37981 #. type: textblock
37982 #: ../src/guestfs.pod:2407
37983 msgid ""
37984 "For functions that take optional arguments, the optional arguments are "
37985 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
37986 "arguments.  A bitmask in the header indicates which optional arguments are "
37987 "meaningful.  The bitmask is also checked to see if it contains bits set "
37988 "which the daemon does not know about (eg. if more optional arguments were "
37989 "added in a later version of the library), and this causes the call to be "
37990 "rejected."
37991 msgstr ""
37992
37993 #. type: textblock
37994 #: ../src/guestfs.pod:2415
37995 msgid "The reply message for ordinary functions is:"
37996 msgstr ""
37997
37998 #. type: verbatim
37999 #: ../src/guestfs.pod:2417
38000 #, no-wrap
38001 msgid ""
38002 " total length (header + ret,\n"
38003 "      but not including the length word itself)\n"
38004 " struct guestfs_message_header (encoded as XDR)\n"
38005 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38006 "\n"
38007 msgstr ""
38008
38009 #. type: textblock
38010 #: ../src/guestfs.pod:2422
38011 msgid ""
38012 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38013 "functions that return no formal return values."
38014 msgstr ""
38015
38016 #. type: textblock
38017 #: ../src/guestfs.pod:2425
38018 msgid ""
38019 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38020 msgstr ""
38021
38022 #. type: textblock
38023 #: ../src/guestfs.pod:2428
38024 msgid ""
38025 "In the case of an error, a flag is set in the header, and the reply message "
38026 "is slightly changed:"
38027 msgstr ""
38028
38029 #. type: verbatim
38030 #: ../src/guestfs.pod:2431
38031 #, no-wrap
38032 msgid ""
38033 " total length (header + error,\n"
38034 "      but not including the length word itself)\n"
38035 " struct guestfs_message_header (encoded as XDR)\n"
38036 " struct guestfs_message_error (encoded as XDR)\n"
38037 "\n"
38038 msgstr ""
38039
38040 #. type: textblock
38041 #: ../src/guestfs.pod:2436
38042 msgid ""
38043 "The C<guestfs_message_error> structure contains the error message as a "
38044 "string."
38045 msgstr ""
38046
38047 #. type: =head3
38048 #: ../src/guestfs.pod:2439
38049 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
38050 msgstr ""
38051
38052 #. type: textblock
38053 #: ../src/guestfs.pod:2441
38054 msgid ""
38055 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
38056 "The normal request message is sent (see above).  However this is followed by "
38057 "a sequence of file chunks."
38058 msgstr ""
38059
38060 #. type: verbatim
38061 #: ../src/guestfs.pod:2445
38062 #, no-wrap
38063 msgid ""
38064 " total length (header + arguments,\n"
38065 "      but not including the length word itself,\n"
38066 "      and not including the chunks)\n"
38067 " struct guestfs_message_header (encoded as XDR)\n"
38068 " struct guestfs_<foo>_args (encoded as XDR)\n"
38069 " sequence of chunks for FileIn param #0\n"
38070 " sequence of chunks for FileIn param #1 etc.\n"
38071 "\n"
38072 msgstr ""
38073
38074 #. type: textblock
38075 #: ../src/guestfs.pod:2453
38076 msgid "The \"sequence of chunks\" is:"
38077 msgstr ""
38078
38079 #. type: verbatim
38080 #: ../src/guestfs.pod:2455
38081 #, no-wrap
38082 msgid ""
38083 " length of chunk (not including length word itself)\n"
38084 " struct guestfs_chunk (encoded as XDR)\n"
38085 " length of chunk\n"
38086 " struct guestfs_chunk (encoded as XDR)\n"
38087 "   ...\n"
38088 " length of chunk\n"
38089 " struct guestfs_chunk (with data.data_len == 0)\n"
38090 "\n"
38091 msgstr ""
38092
38093 #. type: textblock
38094 #: ../src/guestfs.pod:2463
38095 msgid ""
38096 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
38097 "is set in the final chunk to indicate either successful completion or early "
38098 "cancellation."
38099 msgstr ""
38100
38101 #. type: textblock
38102 #: ../src/guestfs.pod:2467
38103 msgid ""
38104 "At time of writing there are no functions that have more than one FileIn "
38105 "parameter.  However this is (theoretically) supported, by sending the "
38106 "sequence of chunks for each FileIn parameter one after another (from left to "
38107 "right)."
38108 msgstr ""
38109
38110 #. type: textblock
38111 #: ../src/guestfs.pod:2472
38112 msgid ""
38113 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
38114 "transfer.  The library does this by sending a chunk with a special flag set "
38115 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
38116 "RPC, does I<not> send any reply, and goes back to reading the next request."
38117 msgstr ""
38118
38119 #. type: textblock
38120 #: ../src/guestfs.pod:2478
38121 msgid ""
38122 "The daemon may also cancel.  It does this by writing a special word "
38123 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
38124 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
38125 "cancel chunk).  The special word is chosen so that even if cancellation "
38126 "happens right at the end of the transfer (after the library has finished "
38127 "writing and has started listening for the reply), the \"spurious\" cancel "
38128 "flag will not be confused with the reply message."
38129 msgstr ""
38130
38131 #. type: textblock
38132 #: ../src/guestfs.pod:2487
38133 msgid ""
38134 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
38135 "limit), and also files where the size is not known in advance (eg. from "
38136 "pipes or sockets).  However the chunks are rather small "
38137 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
38138 "to keep much in memory."
38139 msgstr ""
38140
38141 #. type: =head3
38142 #: ../src/guestfs.pod:2493
38143 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
38144 msgstr ""
38145
38146 #. type: textblock
38147 #: ../src/guestfs.pod:2495
38148 msgid ""
38149 "The protocol for FileOut parameters is exactly the same as for FileIn "
38150 "parameters, but with the roles of daemon and library reversed."
38151 msgstr ""
38152
38153 #. type: verbatim
38154 #: ../src/guestfs.pod:2498
38155 #, no-wrap
38156 msgid ""
38157 " total length (header + ret,\n"
38158 "      but not including the length word itself,\n"
38159 "      and not including the chunks)\n"
38160 " struct guestfs_message_header (encoded as XDR)\n"
38161 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38162 " sequence of chunks for FileOut param #0\n"
38163 " sequence of chunks for FileOut param #1 etc.\n"
38164 "\n"
38165 msgstr ""
38166
38167 #. type: =head3
38168 #: ../src/guestfs.pod:2506
38169 msgid "INITIAL MESSAGE"
38170 msgstr ""
38171
38172 #. type: textblock
38173 #: ../src/guestfs.pod:2508
38174 msgid ""
38175 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
38176 "which indicates that the guest and daemon is alive.  This is what L</"
38177 "guestfs_launch> waits for."
38178 msgstr ""
38179
38180 #. type: =head3
38181 #: ../src/guestfs.pod:2512
38182 msgid "PROGRESS NOTIFICATION MESSAGES"
38183 msgstr ""
38184
38185 #. type: textblock
38186 #: ../src/guestfs.pod:2514
38187 msgid ""
38188 "The daemon may send progress notification messages at any time.  These are "
38189 "distinguished by the normal length word being replaced by "
38190 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
38191 msgstr ""
38192
38193 #. type: textblock
38194 #: ../src/guestfs.pod:2518
38195 msgid ""
38196 "The library turns them into progress callbacks (see L</"
38197 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
38198 "if not."
38199 msgstr ""
38200
38201 #. type: textblock
38202 #: ../src/guestfs.pod:2522
38203 msgid ""
38204 "The daemon self-limits the frequency of progress messages it sends (see "
38205 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
38206 "messages."
38207 msgstr ""
38208
38209 #. type: =head1
38210 #: ../src/guestfs.pod:2526
38211 msgid "LIBGUESTFS VERSION NUMBERS"
38212 msgstr ""
38213
38214 #. type: textblock
38215 #: ../src/guestfs.pod:2528
38216 msgid ""
38217 "Since April 2010, libguestfs has started to make separate development and "
38218 "stable releases, along with corresponding branches in our git repository.  "
38219 "These separate releases can be identified by version number:"
38220 msgstr ""
38221
38222 #. type: verbatim
38223 #: ../src/guestfs.pod:2533
38224 #, no-wrap
38225 msgid ""
38226 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
38227 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
38228 "       |\n"
38229 "       v\n"
38230 " 1  .  3  .  5\n"
38231 " ^           ^\n"
38232 " |           |\n"
38233 " |           `-------- sub-version\n"
38234 " |\n"
38235 " `------ always '1' because we don't change the ABI\n"
38236 "\n"
38237 msgstr ""
38238
38239 #. type: textblock
38240 #: ../src/guestfs.pod:2544
38241 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
38242 msgstr ""
38243
38244 #. type: textblock
38245 #: ../src/guestfs.pod:2546
38246 msgid ""
38247 "As time passes we cherry pick fixes from the development branch and backport "
38248 "those into the stable branch, the effect being that the stable branch should "
38249 "get more stable and less buggy over time.  So the stable releases are ideal "
38250 "for people who don't need new features but would just like the software to "
38251 "work."
38252 msgstr ""
38253
38254 #. type: textblock
38255 #: ../src/guestfs.pod:2552
38256 msgid "Our criteria for backporting changes are:"
38257 msgstr ""
38258
38259 #. type: textblock
38260 #: ../src/guestfs.pod:2558
38261 msgid ""
38262 "Documentation changes which don't affect any code are backported unless the "
38263 "documentation refers to a future feature which is not in stable."
38264 msgstr ""
38265
38266 #. type: textblock
38267 #: ../src/guestfs.pod:2564
38268 msgid ""
38269 "Bug fixes which are not controversial, fix obvious problems, and have been "
38270 "well tested are backported."
38271 msgstr ""
38272
38273 #. type: textblock
38274 #: ../src/guestfs.pod:2569
38275 msgid ""
38276 "Simple rearrangements of code which shouldn't affect how it works get "
38277 "backported.  This is so that the code in the two branches doesn't get too "
38278 "far out of step, allowing us to backport future fixes more easily."
38279 msgstr ""
38280
38281 #. type: textblock
38282 #: ../src/guestfs.pod:2575
38283 msgid ""
38284 "We I<don't> backport new features, new APIs, new tools etc, except in one "
38285 "exceptional case: the new feature is required in order to implement an "
38286 "important bug fix."
38287 msgstr ""
38288
38289 #. type: textblock
38290 #: ../src/guestfs.pod:2581
38291 msgid ""
38292 "A new stable branch starts when we think the new features in development are "
38293 "substantial and compelling enough over the current stable branch to warrant "
38294 "it.  When that happens we create new stable and development versions 1.N.0 "
38295 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
38296 "stable at this point, but by backporting fixes from development, that branch "
38297 "will stabilize over time."
38298 msgstr ""
38299
38300 #. type: =head1
38301 #: ../src/guestfs.pod:2589
38302 msgid "EXTENDING LIBGUESTFS"
38303 msgstr ""
38304
38305 #. type: =head2
38306 #: ../src/guestfs.pod:2591
38307 msgid "ADDING A NEW API ACTION"
38308 msgstr ""
38309
38310 #. type: textblock
38311 #: ../src/guestfs.pod:2593
38312 msgid ""
38313 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
38314 "documentation) are generated, and this makes it easy to extend the "
38315 "libguestfs API."
38316 msgstr ""
38317
38318 #. type: textblock
38319 #: ../src/guestfs.pod:2597
38320 msgid "To add a new API action there are two changes:"
38321 msgstr ""
38322
38323 #. type: textblock
38324 #: ../src/guestfs.pod:2603
38325 msgid ""
38326 "You need to add a description of the call (name, parameters, return type, "
38327 "tests, documentation) to C<generator/generator_actions.ml>."
38328 msgstr ""
38329
38330 #. type: textblock
38331 #: ../src/guestfs.pod:2606
38332 msgid ""
38333 "There are two sorts of API action, depending on whether the call goes "
38334 "through to the daemon in the appliance, or is serviced entirely by the "
38335 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
38336 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
38337 "an example of the latter, since a trace flag is maintained in the handle and "
38338 "all tracing is done on the library side."
38339 msgstr ""
38340
38341 #. type: textblock
38342 #: ../src/guestfs.pod:2614
38343 msgid ""
38344 "Most new actions are of the first type, and get added to the "
38345 "C<daemon_functions> list.  Each function has a unique procedure number used "
38346 "in the RPC protocol which is assigned to that action when we publish "
38347 "libguestfs and cannot be reused.  Take the latest procedure number and "
38348 "increment it."
38349 msgstr ""
38350
38351 #. type: textblock
38352 #: ../src/guestfs.pod:2620
38353 msgid ""
38354 "For library-only actions of the second type, add to the "
38355 "C<non_daemon_functions> list.  Since these functions are serviced by the "
38356 "library and do not travel over the RPC mechanism to the daemon, these "
38357 "functions do not need a procedure number, and so the procedure number is set "
38358 "to C<-1>."
38359 msgstr ""
38360
38361 #. type: textblock
38362 #: ../src/guestfs.pod:2628
38363 msgid "Implement the action (in C):"
38364 msgstr ""
38365
38366 #. type: textblock
38367 #: ../src/guestfs.pod:2630
38368 msgid ""
38369 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
38370 "C<daemon/> directory."
38371 msgstr ""
38372
38373 #. type: textblock
38374 #: ../src/guestfs.pod:2633
38375 msgid ""
38376 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
38377 "(note: double underscore) in the C<src/> directory."
38378 msgstr ""
38379
38380 #. type: textblock
38381 #: ../src/guestfs.pod:2636
38382 msgid "In either case, use another function as an example of what to do."
38383 msgstr ""
38384
38385 #. type: textblock
38386 #: ../src/guestfs.pod:2640
38387 msgid "After making these changes, use C<make> to compile."
38388 msgstr ""
38389
38390 #. type: textblock
38391 #: ../src/guestfs.pod:2642
38392 msgid ""
38393 "Note that you don't need to implement the RPC, language bindings, manual "
38394 "pages or anything else.  It's all automatically generated from the OCaml "
38395 "description."
38396 msgstr ""
38397
38398 #. type: =head2
38399 #: ../src/guestfs.pod:2646
38400 msgid "ADDING TESTS FOR AN API ACTION"
38401 msgstr ""
38402
38403 #. type: textblock
38404 #: ../src/guestfs.pod:2648
38405 msgid ""
38406 "You can supply zero or as many tests as you want per API call.  The tests "
38407 "can either be added as part of the API description (C<generator/"
38408 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
38409 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
38410 "slower, so if possible use the first method."
38411 msgstr ""
38412
38413 #. type: textblock
38414 #: ../src/guestfs.pod:2654
38415 msgid ""
38416 "The following describes the test environment used when you add an API test "
38417 "in C<generator_actions.ml>."
38418 msgstr ""
38419
38420 #. type: textblock
38421 #: ../src/guestfs.pod:2657
38422 msgid "The test environment has 4 block devices:"
38423 msgstr ""
38424
38425 #. type: =item
38426 #: ../src/guestfs.pod:2661
38427 msgid "C</dev/sda> 500MB"
38428 msgstr "C</dev/sda> 500 МБ"
38429
38430 #. type: textblock
38431 #: ../src/guestfs.pod:2663
38432 msgid "General block device for testing."
38433 msgstr ""
38434
38435 #. type: =item
38436 #: ../src/guestfs.pod:2665
38437 msgid "C</dev/sdb> 50MB"
38438 msgstr "C</dev/sdb> 50 МБ"
38439
38440 #. type: textblock
38441 #: ../src/guestfs.pod:2667
38442 msgid ""
38443 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
38444 "operations."
38445 msgstr ""
38446
38447 #. type: =item
38448 #: ../src/guestfs.pod:2670
38449 msgid "C</dev/sdc> 10MB"
38450 msgstr "C</dev/sdc> 10 МБ"
38451
38452 #. type: textblock
38453 #: ../src/guestfs.pod:2672
38454 msgid "Used in a few tests where two block devices are needed."
38455 msgstr ""
38456
38457 #. type: =item
38458 #: ../src/guestfs.pod:2674
38459 msgid "C</dev/sdd>"
38460 msgstr "C</dev/sdd>"
38461
38462 #. type: textblock
38463 #: ../src/guestfs.pod:2676
38464 msgid "ISO with fixed content (see C<images/test.iso>)."
38465 msgstr ""
38466
38467 #. type: textblock
38468 #: ../src/guestfs.pod:2680
38469 msgid ""
38470 "To be able to run the tests in a reasonable amount of time, the libguestfs "
38471 "appliance and block devices are reused between tests.  So don't try testing "
38472 "L</guestfs_kill_subprocess> :-x"
38473 msgstr ""
38474
38475 #. type: textblock
38476 #: ../src/guestfs.pod:2684
38477 msgid ""
38478 "Each test starts with an initial scenario, selected using one of the "
38479 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
38480 "initialize the disks mentioned above in a particular way as documented in "
38481 "C<generator_types.ml>.  You should not assume anything about the previous "
38482 "contents of other disks that are not initialized."
38483 msgstr ""
38484
38485 #. type: textblock
38486 #: ../src/guestfs.pod:2690
38487 msgid ""
38488 "You can add a prerequisite clause to any individual test.  This is a run-"
38489 "time check, which, if it fails, causes the test to be skipped.  Useful if "
38490 "testing a command which might not work on all variations of libguestfs "
38491 "builds.  A test that has prerequisite of C<Always> means to run "
38492 "unconditionally."
38493 msgstr ""
38494
38495 #. type: textblock
38496 #: ../src/guestfs.pod:2696
38497 msgid ""
38498 "In addition, packagers can skip individual tests by setting environment "
38499 "variables before running C<make check>."
38500 msgstr ""
38501
38502 #. type: verbatim
38503 #: ../src/guestfs.pod:2699
38504 #, no-wrap
38505 msgid ""
38506 " SKIP_TEST_<CMD>_<NUM>=1\n"
38507 "\n"
38508 msgstr ""
38509
38510 #. type: textblock
38511 #: ../src/guestfs.pod:2701
38512 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
38513 msgstr ""
38514
38515 #. type: textblock
38516 #: ../src/guestfs.pod:2703
38517 msgid "or:"
38518 msgstr "або:"
38519
38520 #. type: verbatim
38521 #: ../src/guestfs.pod:2705
38522 #, no-wrap
38523 msgid ""
38524 " SKIP_TEST_<CMD>=1\n"
38525 "\n"
38526 msgstr ""
38527
38528 #. type: textblock
38529 #: ../src/guestfs.pod:2707
38530 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
38531 msgstr ""
38532
38533 #. type: textblock
38534 #: ../src/guestfs.pod:2709
38535 msgid "Packagers can run only certain tests by setting for example:"
38536 msgstr ""
38537
38538 #. type: verbatim
38539 #: ../src/guestfs.pod:2711
38540 #, no-wrap
38541 msgid ""
38542 " TEST_ONLY=\"vfs_type zerofree\"\n"
38543 "\n"
38544 msgstr ""
38545
38546 #. type: textblock
38547 #: ../src/guestfs.pod:2713
38548 msgid ""
38549 "See C<capitests/tests.c> for more details of how these environment variables "
38550 "work."
38551 msgstr ""
38552
38553 #. type: =head2
38554 #: ../src/guestfs.pod:2716
38555 msgid "DEBUGGING NEW API ACTIONS"
38556 msgstr ""
38557
38558 #. type: textblock
38559 #: ../src/guestfs.pod:2718
38560 msgid "Test new actions work before submitting them."
38561 msgstr ""
38562
38563 #. type: textblock
38564 #: ../src/guestfs.pod:2720
38565 msgid "You can use guestfish to try out new commands."
38566 msgstr ""
38567
38568 #. type: textblock
38569 #: ../src/guestfs.pod:2722
38570 msgid ""
38571 "Debugging the daemon is a problem because it runs inside a minimal "
38572 "environment.  However you can fprintf messages in the daemon to stderr, and "
38573 "they will show up if you use C<guestfish -v>."
38574 msgstr ""
38575
38576 #. type: =head2
38577 #: ../src/guestfs.pod:2726
38578 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
38579 msgstr ""
38580
38581 #. type: textblock
38582 #: ../src/guestfs.pod:2728
38583 msgid ""
38584 "Our C source code generally adheres to some basic code-formatting "
38585 "conventions.  The existing code base is not totally consistent on this "
38586 "front, but we do prefer that contributed code be formatted similarly.  In "
38587 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
38588 "indentation level, and other than that, follow the K&R style."
38589 msgstr ""
38590
38591 #. type: textblock
38592 #: ../src/guestfs.pod:2734
38593 msgid ""
38594 "If you use Emacs, add the following to one of one of your start-up files (e."
38595 "g., ~/.emacs), to help ensure that you get indentation right:"
38596 msgstr ""
38597
38598 #. type: verbatim
38599 #: ../src/guestfs.pod:2737
38600 #, no-wrap
38601 msgid ""
38602 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
38603 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
38604 " (add-hook 'find-file-hook\n"
38605 "     '(lambda () (if (and buffer-file-name\n"
38606 "                          (string-match \"/libguestfs\\\\>\"\n"
38607 "                              (buffer-file-name))\n"
38608 "                          (not (string-equal mode-name \"Change Log\"))\n"
38609 "                          (not (string-equal mode-name \"Makefile\")))\n"
38610 "                     (setq indent-tabs-mode nil))))\n"
38611 " \n"
38612 msgstr ""
38613
38614 #. type: verbatim
38615 #: ../src/guestfs.pod:2747
38616 #, no-wrap
38617 msgid ""
38618 " ;;; When editing C sources in libguestfs, use this style.\n"
38619 " (defun libguestfs-c-mode ()\n"
38620 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
38621 "   (interactive)\n"
38622 "   (c-set-style \"K&R\")\n"
38623 "   (setq c-indent-level 2)\n"
38624 "   (setq c-basic-offset 2))\n"
38625 " (add-hook 'c-mode-hook\n"
38626 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
38627 "                               (buffer-file-name))\n"
38628 "                           (libguestfs-c-mode))))\n"
38629 "\n"
38630 msgstr ""
38631
38632 #. type: textblock
38633 #: ../src/guestfs.pod:2759
38634 msgid "Enable warnings when compiling (and fix any problems this finds):"
38635 msgstr ""
38636
38637 #. type: verbatim
38638 #: ../src/guestfs.pod:2762
38639 #, no-wrap
38640 msgid ""
38641 " ./configure --enable-gcc-warnings\n"
38642 "\n"
38643 msgstr ""
38644 " ./configure --enable-gcc-warnings\n"
38645 "\n"
38646
38647 #. type: textblock
38648 #: ../src/guestfs.pod:2764
38649 msgid "Useful targets are:"
38650 msgstr ""
38651
38652 #. type: verbatim
38653 #: ../src/guestfs.pod:2766
38654 #, no-wrap
38655 msgid ""
38656 " make syntax-check  # checks the syntax of the C code\n"
38657 " make check         # runs the test suite\n"
38658 "\n"
38659 msgstr ""
38660
38661 #. type: =head2
38662 #: ../src/guestfs.pod:2769
38663 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
38664 msgstr ""
38665
38666 #. type: textblock
38667 #: ../src/guestfs.pod:2771
38668 msgid ""
38669 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
38670 "which are used to do shell quoting."
38671 msgstr ""
38672
38673 #. type: =item
38674 #: ../src/guestfs.pod:2776
38675 msgid "%Q"
38676 msgstr "%Q"
38677
38678 #. type: textblock
38679 #: ../src/guestfs.pod:2778
38680 msgid ""
38681 "Simple shell quoted string.  Any spaces or other shell characters are "
38682 "escaped for you."
38683 msgstr ""
38684
38685 #. type: =item
38686 #: ../src/guestfs.pod:2781
38687 msgid "%R"
38688 msgstr "%R"
38689
38690 #. type: textblock
38691 #: ../src/guestfs.pod:2783
38692 msgid ""
38693 "Same as C<%Q> except the string is treated as a path which is prefixed by "
38694 "the sysroot."
38695 msgstr ""
38696
38697 #. type: verbatim
38698 #: ../src/guestfs.pod:2790
38699 #, no-wrap
38700 msgid ""
38701 " asprintf (&cmd, \"cat %R\", path);\n"
38702 "\n"
38703 msgstr ""
38704
38705 #. type: textblock
38706 #: ../src/guestfs.pod:2792
38707 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
38708 msgstr ""
38709
38710 #. type: textblock
38711 #: ../src/guestfs.pod:2794
38712 msgid ""
38713 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
38714 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
38715 "they are not passed via the shell (instead, straight to exec).  You probably "
38716 "want to use the C<sysroot_path()> function however."
38717 msgstr ""
38718
38719 #. type: =head2
38720 #: ../src/guestfs.pod:2800
38721 msgid "SUBMITTING YOUR NEW API ACTIONS"
38722 msgstr ""
38723
38724 #. type: textblock
38725 #: ../src/guestfs.pod:2802
38726 msgid ""
38727 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
38728 "libguestfs> and CC to L<rjones@redhat.com>."
38729 msgstr ""
38730
38731 #. type: =head2
38732 #: ../src/guestfs.pod:2806
38733 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
38734 msgstr ""
38735
38736 #. type: textblock
38737 #: ../src/guestfs.pod:2808
38738 msgid "We support i18n (gettext anyhow) in the library."
38739 msgstr ""
38740
38741 #. type: textblock
38742 #: ../src/guestfs.pod:2810
38743 msgid ""
38744 "However many messages come from the daemon, and we don't translate those at "
38745 "the moment.  One reason is that the appliance generally has all locale files "
38746 "removed from it, because they take up a lot of space.  So we'd have to readd "
38747 "some of those, as well as copying our PO files into the appliance."
38748 msgstr ""
38749
38750 #. type: textblock
38751 #: ../src/guestfs.pod:2816
38752 msgid ""
38753 "Debugging messages are never translated, since they are intended for the "
38754 "programmers."
38755 msgstr ""
38756
38757 #. type: =head2
38758 #: ../src/guestfs.pod:2819
38759 msgid "SOURCE CODE SUBDIRECTORIES"
38760 msgstr ""
38761
38762 #. type: textblock
38763 #: ../src/guestfs.pod:2825
38764 msgid "The libguestfs appliance, build scripts and so on."
38765 msgstr ""
38766
38767 #. type: =item
38768 #: ../src/guestfs.pod:2827
38769 msgid "C<capitests>"
38770 msgstr "C<capitests>"
38771
38772 #. type: textblock
38773 #: ../src/guestfs.pod:2829
38774 msgid "Automated tests of the C API."
38775 msgstr ""
38776
38777 #. type: =item
38778 #: ../src/guestfs.pod:2831
38779 msgid "C<cat>"
38780 msgstr "C<cat>"
38781
38782 #. type: textblock
38783 #: ../src/guestfs.pod:2833
38784 msgid ""
38785 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
38786 "documentation."
38787 msgstr ""
38788
38789 #. type: =item
38790 #: ../src/guestfs.pod:2836
38791 msgid "C<caution>"
38792 msgstr ""
38793
38794 #. type: textblock
38795 #: ../src/guestfs.pod:2838
38796 msgid ""
38797 "Safety and liveness tests of components that libguestfs depends upon (not of "
38798 "libguestfs itself).  Mainly this is for qemu and the kernel."
38799 msgstr ""
38800
38801 #. type: =item
38802 #: ../src/guestfs.pod:2841
38803 msgid "C<contrib>"
38804 msgstr "C<contrib>"
38805
38806 #. type: textblock
38807 #: ../src/guestfs.pod:2843
38808 msgid "Outside contributions, experimental parts."
38809 msgstr ""
38810
38811 #. type: =item
38812 #: ../src/guestfs.pod:2845
38813 msgid "C<daemon>"
38814 msgstr "C<daemon>"
38815
38816 #. type: textblock
38817 #: ../src/guestfs.pod:2847
38818 msgid ""
38819 "The daemon that runs inside the libguestfs appliance and carries out actions."
38820 msgstr ""
38821
38822 #. type: =item
38823 #: ../src/guestfs.pod:2850
38824 msgid "C<df>"
38825 msgstr "C<df>"
38826
38827 #. type: textblock
38828 #: ../src/guestfs.pod:2852
38829 msgid "L<virt-df(1)> command and documentation."
38830 msgstr ""
38831
38832 #. type: =item
38833 #: ../src/guestfs.pod:2854
38834 msgid "C<edit>"
38835 msgstr ""
38836
38837 #. type: textblock
38838 #: ../src/guestfs.pod:2856
38839 msgid "L<virt-edit(1)> command and documentation."
38840 msgstr ""
38841
38842 #. type: =item
38843 #: ../src/guestfs.pod:2858
38844 msgid "C<examples>"
38845 msgstr "C<examples>"
38846
38847 #. type: textblock
38848 #: ../src/guestfs.pod:2860
38849 msgid "C API example code."
38850 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
38851
38852 #. type: =item
38853 #: ../src/guestfs.pod:2862
38854 msgid "C<fish>"
38855 msgstr "C<fish>"
38856
38857 #. type: textblock
38858 #: ../src/guestfs.pod:2864
38859 msgid ""
38860 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
38861 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
38862 "L<virt-tar-out(1)>."
38863 msgstr ""
38864
38865 #. type: =item
38866 #: ../src/guestfs.pod:2868
38867 msgid "C<fuse>"
38868 msgstr "C<fuse>"
38869
38870 #. type: textblock
38871 #: ../src/guestfs.pod:2870
38872 msgid ""
38873 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
38874 msgstr ""
38875
38876 #. type: =item
38877 #: ../src/guestfs.pod:2872
38878 msgid "C<generator>"
38879 msgstr "C<generator>"
38880
38881 #. type: textblock
38882 #: ../src/guestfs.pod:2874
38883 msgid ""
38884 "The crucially important generator, used to automatically generate large "
38885 "amounts of boilerplate C code for things like RPC and bindings."
38886 msgstr ""
38887
38888 #. type: =item
38889 #: ../src/guestfs.pod:2877
38890 msgid "C<images>"
38891 msgstr "C<images>"
38892
38893 #. type: textblock
38894 #: ../src/guestfs.pod:2879
38895 msgid "Files used by the test suite."
38896 msgstr ""
38897
38898 #. type: textblock
38899 #: ../src/guestfs.pod:2881
38900 msgid "Some \"phony\" guest images which we test against."
38901 msgstr ""
38902
38903 #. type: =item
38904 #: ../src/guestfs.pod:2883
38905 msgid "C<inspector>"
38906 msgstr "C<inspector>"
38907
38908 #. type: textblock
38909 #: ../src/guestfs.pod:2885
38910 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
38911 msgstr ""
38912
38913 #. type: =item
38914 #: ../src/guestfs.pod:2887
38915 msgid "C<logo>"
38916 msgstr "C<logo>"
38917
38918 #. type: textblock
38919 #: ../src/guestfs.pod:2889
38920 msgid "Logo used on the website.  The fish is called Arthur by the way."
38921 msgstr ""
38922
38923 #. type: =item
38924 #: ../src/guestfs.pod:2891
38925 msgid "C<m4>"
38926 msgstr "C<m4>"
38927
38928 #. type: textblock
38929 #: ../src/guestfs.pod:2893
38930 msgid "M4 macros used by autoconf."
38931 msgstr ""
38932
38933 #. type: =item
38934 #: ../src/guestfs.pod:2895
38935 msgid "C<po>"
38936 msgstr "C<po>"
38937
38938 #. type: textblock
38939 #: ../src/guestfs.pod:2897
38940 msgid "Translations of simple gettext strings."
38941 msgstr "Переклади простих рядків gettext."
38942
38943 #. type: =item
38944 #: ../src/guestfs.pod:2899
38945 msgid "C<po-docs>"
38946 msgstr "C<po-docs>"
38947
38948 #. type: textblock
38949 #: ../src/guestfs.pod:2901
38950 msgid ""
38951 "The build infrastructure and PO files for translations of manpages and POD "
38952 "files.  Eventually this will be combined with the C<po> directory, but that "
38953 "is rather complicated."
38954 msgstr ""
38955
38956 #. type: =item
38957 #: ../src/guestfs.pod:2905
38958 msgid "C<regressions>"
38959 msgstr "C<regressions>"
38960
38961 #. type: textblock
38962 #: ../src/guestfs.pod:2907
38963 msgid "Regression tests."
38964 msgstr "Тести на регресії."
38965
38966 #. type: =item
38967 #: ../src/guestfs.pod:2909
38968 msgid "C<rescue>"
38969 msgstr "C<rescue>"
38970
38971 #. type: textblock
38972 #: ../src/guestfs.pod:2911
38973 msgid "L<virt-rescue(1)> command and documentation."
38974 msgstr ""
38975
38976 #. type: =item
38977 #: ../src/guestfs.pod:2913
38978 msgid "C<src>"
38979 msgstr "C<src>"
38980
38981 #. type: textblock
38982 #: ../src/guestfs.pod:2915
38983 msgid "Source code to the C library."
38984 msgstr ""
38985
38986 #. type: =item
38987 #: ../src/guestfs.pod:2917
38988 msgid "C<tools>"
38989 msgstr "C<tools>"
38990
38991 #. type: textblock
38992 #: ../src/guestfs.pod:2919
38993 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
38994 msgstr ""
38995
38996 #. type: =item
38997 #: ../src/guestfs.pod:2921
38998 msgid "C<test-tool>"
38999 msgstr "C<test-tool>"
39000
39001 #. type: textblock
39002 #: ../src/guestfs.pod:2923
39003 msgid ""
39004 "Test tool for end users to test if their qemu/kernel combination will work "
39005 "with libguestfs."
39006 msgstr ""
39007
39008 #. type: =item
39009 #: ../src/guestfs.pod:2926
39010 msgid "C<csharp>"
39011 msgstr "C<csharp>"
39012
39013 #. type: =item
39014 #: ../src/guestfs.pod:2928
39015 msgid "C<erlang>"
39016 msgstr ""
39017
39018 #. type: =item
39019 #: ../src/guestfs.pod:2930
39020 msgid "C<haskell>"
39021 msgstr "C<haskell>"
39022
39023 #. type: =item
39024 #: ../src/guestfs.pod:2932
39025 msgid "C<java>"
39026 msgstr "C<java>"
39027
39028 #. type: =item
39029 #: ../src/guestfs.pod:2934
39030 msgid "C<ocaml>"
39031 msgstr "C<ocaml>"
39032
39033 #. type: =item
39034 #: ../src/guestfs.pod:2936
39035 msgid "C<php>"
39036 msgstr "C<php>"
39037
39038 #. type: =item
39039 #: ../src/guestfs.pod:2938
39040 msgid "C<perl>"
39041 msgstr "C<perl>"
39042
39043 #. type: =item
39044 #: ../src/guestfs.pod:2940
39045 msgid "C<python>"
39046 msgstr "C<python>"
39047
39048 #. type: =item
39049 #: ../src/guestfs.pod:2942
39050 msgid "C<ruby>"
39051 msgstr "C<ruby>"
39052
39053 #. type: textblock
39054 #: ../src/guestfs.pod:2944
39055 msgid "Language bindings."
39056 msgstr "Прив’язки до мов програмування."
39057
39058 #. type: =head2
39059 #: ../src/guestfs.pod:2948
39060 msgid "MAKING A STABLE RELEASE"
39061 msgstr ""
39062
39063 #. type: textblock
39064 #: ../src/guestfs.pod:2950
39065 msgid ""
39066 "When we make a stable release, there are several steps documented here.  See "
39067 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
39068 "branch policy."
39069 msgstr ""
39070
39071 #. type: textblock
39072 #: ../src/guestfs.pod:2958
39073 msgid ""
39074 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
39075 msgstr ""
39076
39077 #. type: textblock
39078 #: ../src/guestfs.pod:2963
39079 msgid "Finalize RELEASE-NOTES."
39080 msgstr ""
39081
39082 #. type: textblock
39083 #: ../src/guestfs.pod:2967
39084 msgid "Update ROADMAP."
39085 msgstr ""
39086
39087 #. type: textblock
39088 #: ../src/guestfs.pod:2971
39089 msgid "Run C<src/api-support/update-from-tarballs.sh>."
39090 msgstr ""
39091
39092 #. type: textblock
39093 #: ../src/guestfs.pod:2975
39094 msgid "Push and pull from Transifex."
39095 msgstr ""
39096
39097 #. type: textblock
39098 #: ../src/guestfs.pod:2977
39099 msgid "Run:"
39100 msgstr ""
39101
39102 #. type: verbatim
39103 #: ../src/guestfs.pod:2979
39104 #, no-wrap
39105 msgid ""
39106 " tx push -s\n"
39107 "\n"
39108 msgstr ""
39109
39110 #. type: textblock
39111 #: ../src/guestfs.pod:2981
39112 msgid "to push the latest POT files to Transifex.  Then run:"
39113 msgstr ""
39114
39115 #. type: verbatim
39116 #: ../src/guestfs.pod:2983
39117 #, no-wrap
39118 msgid ""
39119 " ./tx-pull.sh\n"
39120 "\n"
39121 msgstr ""
39122
39123 #. type: textblock
39124 #: ../src/guestfs.pod:2985
39125 msgid "which is a wrapper to pull the latest translated C<*.po> files."
39126 msgstr ""
39127
39128 #. type: textblock
39129 #: ../src/guestfs.pod:2989
39130 msgid ""
39131 "Create new stable and development directories under L<http://libguestfs.org/"
39132 "download>."
39133 msgstr ""
39134
39135 #. type: textblock
39136 #: ../src/guestfs.pod:2994
39137 msgid "Create the branch in git:"
39138 msgstr ""
39139
39140 #. type: verbatim
39141 #: ../src/guestfs.pod:2996
39142 #, no-wrap
39143 msgid ""
39144 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
39145 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
39146 " git branch stable-1.XX\n"
39147 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
39148 "\n"
39149 msgstr ""
39150
39151 #. type: =head1
39152 #: ../src/guestfs.pod:3003
39153 msgid "LIMITS"
39154 msgstr ""
39155
39156 #. type: =head2
39157 #: ../src/guestfs.pod:3005
39158 msgid "PROTOCOL LIMITS"
39159 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
39160
39161 #. type: textblock
39162 #: ../src/guestfs.pod:3007
39163 msgid ""
39164 "Internally libguestfs uses a message-based protocol to pass API calls and "
39165 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
39166 "plenty more detail about this).  The maximum message size used by the "
39167 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
39168 "aware of this limit.  The API calls which may be affected are individually "
39169 "documented, with a link back to this section of the documentation."
39170 msgstr ""
39171
39172 #. type: textblock
39173 #: ../src/guestfs.pod:3015
39174 msgid ""
39175 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
39176 "a simple string.  Because this string is at some point internally encoded as "
39177 "a message, the maximum size that it can return is slightly under 4 MB.  If "
39178 "the requested file is larger than this then you will get an error."
39179 msgstr ""
39180
39181 #. type: textblock
39182 #: ../src/guestfs.pod:3021
39183 msgid ""
39184 "In order to transfer large files into and out of the guest filesystem, you "
39185 "need to use particular calls that support this.  The sections L</UPLOADING> "
39186 "and L</DOWNLOADING> document how to do this."
39187 msgstr ""
39188
39189 #. type: textblock
39190 #: ../src/guestfs.pod:3025
39191 msgid ""
39192 "You might also consider mounting the disk image using our FUSE filesystem "
39193 "support (L<guestmount(1)>)."
39194 msgstr ""
39195
39196 #. type: =head2
39197 #: ../src/guestfs.pod:3028
39198 msgid "MAXIMUM NUMBER OF DISKS"
39199 msgstr ""
39200
39201 #. type: textblock
39202 #: ../src/guestfs.pod:3030
39203 msgid "When using virtio disks (the default) the current limit is B<25> disks."
39204 msgstr ""
39205
39206 #. type: textblock
39207 #: ../src/guestfs.pod:3033
39208 msgid ""
39209 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
39210 "slots.  However febootstrap only understands disks with names C</dev/vda> "
39211 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
39212 "purposes."
39213 msgstr ""
39214
39215 #. type: textblock
39216 #: ../src/guestfs.pod:3038
39217 msgid ""
39218 "We are working to substantially raise this limit in future versions but it "
39219 "requires complex changes to qemu."
39220 msgstr ""
39221
39222 #. type: textblock
39223 #: ../src/guestfs.pod:3041
39224 msgid ""
39225 "In future versions of libguestfs it should also be possible to \"hot plug\" "
39226 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
39227 "requires changes to qemu."
39228 msgstr ""
39229
39230 #. type: =head2
39231 #: ../src/guestfs.pod:3045
39232 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
39233 msgstr ""
39234
39235 #. type: textblock
39236 #: ../src/guestfs.pod:3047
39237 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
39238 msgstr ""
39239
39240 #. type: textblock
39241 #: ../src/guestfs.pod:3049
39242 msgid ""
39243 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
39244 "vda>, and C</dev/vda1> through C</dev/vda15>)."
39245 msgstr ""
39246
39247 #. type: textblock
39248 #: ../src/guestfs.pod:3052
39249 msgid ""
39250 "If you attach a disk with more than 15 partitions, the extra partitions are "
39251 "ignored by libguestfs."
39252 msgstr ""
39253
39254 #. type: =head2
39255 #: ../src/guestfs.pod:3055
39256 msgid "MAXIMUM SIZE OF A DISK"
39257 msgstr ""
39258
39259 #. type: textblock
39260 #: ../src/guestfs.pod:3057
39261 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
39262 msgstr ""
39263
39264 #. type: textblock
39265 #: ../src/guestfs.pod:3059
39266 msgid ""
39267 "We have tested block devices up to 1 exabyte (2**60 or "
39268 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
39269 "filesystem."
39270 msgstr ""
39271
39272 #. type: textblock
39273 #: ../src/guestfs.pod:3063
39274 msgid ""
39275 "Although libguestfs probably does not impose any limit, the underlying host "
39276 "storage will.  If you store disk images on a host ext4 filesystem, then the "
39277 "maximum size will be limited by the maximum ext4 file size (currently 16 "
39278 "TB).  If you store disk images as host logical volumes then you are limited "
39279 "by the maximum size of an LV."
39280 msgstr ""
39281
39282 #. type: textblock
39283 #: ../src/guestfs.pod:3069
39284 msgid ""
39285 "For the hugest disk image files, we recommend using XFS on the host for "
39286 "storage."
39287 msgstr ""
39288
39289 #. type: =head2
39290 #: ../src/guestfs.pod:3072
39291 msgid "MAXIMUM SIZE OF A PARTITION"
39292 msgstr ""
39293
39294 #. type: textblock
39295 #: ../src/guestfs.pod:3074
39296 msgid ""
39297 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
39298 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
39299 "address a partition located beyond 2 TB on the disk."
39300 msgstr ""
39301
39302 #. type: textblock
39303 #: ../src/guestfs.pod:3078
39304 msgid ""
39305 "It is recommended that you use GPT partitions on disks which are larger than "
39306 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
39307 "which are theoretically larger than the largest disk we could support."
39308 msgstr ""
39309
39310 #. type: =head2
39311 #: ../src/guestfs.pod:3083
39312 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
39313 msgstr ""
39314
39315 #. type: textblock
39316 #: ../src/guestfs.pod:3085
39317 msgid ""
39318 "This depends on the filesystem type.  libguestfs itself does not impose any "
39319 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
39320 "what these limits are."
39321 msgstr ""
39322
39323 #. type: =head2
39324 #: ../src/guestfs.pod:3089
39325 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
39326 msgstr ""
39327
39328 #. type: textblock
39329 #: ../src/guestfs.pod:3091
39330 msgid ""
39331 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
39332 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
39333 "uploads and downloads."
39334 msgstr ""
39335
39336 #. type: =head2
39337 #: ../src/guestfs.pod:3095
39338 msgid "INSPECTION LIMITS"
39339 msgstr ""
39340
39341 #. type: textblock
39342 #: ../src/guestfs.pod:3097
39343 msgid ""
39344 "The inspection code has several arbitrary limits on things like the size of "
39345 "Windows Registry hive it will read, and the length of product name.  These "
39346 "are intended to stop a malicious guest from consuming arbitrary amounts of "
39347 "memory and disk space on the host, and should not be reached in practice.  "
39348 "See the source code for more information."
39349 msgstr ""
39350
39351 #. type: textblock
39352 #: ../src/guestfs.pod:3123
39353 msgid ""
39354 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
39355 "effect as calling C<guestfs_set_verbose (g, 1)>."
39356 msgstr ""
39357
39358 #. type: textblock
39359 #: ../src/guestfs.pod:3135
39360 msgid ""
39361 "Set the path that libguestfs uses to search for a supermin appliance.  See "
39362 "the discussion of paths in section L</PATH> above."
39363 msgstr ""
39364
39365 #. type: textblock
39366 #: ../src/guestfs.pod:3144
39367 msgid "See also L</QEMU WRAPPERS> above."
39368 msgstr ""
39369
39370 #. type: textblock
39371 #: ../src/guestfs.pod:3148
39372 msgid ""
39373 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
39374 "effect as calling C<guestfs_set_trace (g, 1)>."
39375 msgstr ""
39376
39377 #. type: textblock
39378 #: ../src/guestfs.pod:3166
39379 msgid ""
39380 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
39381 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
39382 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
39383 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
39384 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)"
39385 ">, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, "
39386 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
39387 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://"
39388 "libguestfs.org/>."
39389 msgstr ""
39390
39391 #. type: textblock
39392 #: ../src/guestfs.pod:3197
39393 msgid ""
39394 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
39395 "(8)>, L<disktype(1)>."
39396 msgstr ""
39397
39398 #. type: =head1
39399 #: ../src/guestfs.pod:3204 ../tools/virt-make-fs.pl:553
39400 #: ../tools/virt-win-reg.pl:761
39401 msgid "BUGS"
39402 msgstr "ВАДИ"
39403
39404 #. type: textblock
39405 #: ../src/guestfs.pod:3206
39406 msgid "To get a list of bugs against libguestfs use this link:"
39407 msgstr ""
39408 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
39409 "посиланням:"
39410
39411 #. type: textblock
39412 #: ../src/guestfs.pod:3208
39413 msgid ""
39414 "L<https://bugzilla.redhat.com/buglist.cgi?"
39415 "component=libguestfs&product=Virtualization+Tools>"
39416 msgstr ""
39417 "L<https://bugzilla.redhat.com/buglist.cgi?"
39418 "component=libguestfs&product=Virtualization+Tools>"
39419
39420 #. type: textblock
39421 #: ../src/guestfs.pod:3210
39422 msgid "To report a new bug against libguestfs use this link:"
39423 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
39424
39425 #. type: textblock
39426 #: ../src/guestfs.pod:3212
39427 msgid ""
39428 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
39429 "component=libguestfs&product=Virtualization+Tools>"
39430 msgstr ""
39431 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
39432 "component=libguestfs&product=Virtualization+Tools>"
39433
39434 #. type: textblock
39435 #: ../src/guestfs.pod:3214
39436 msgid "When reporting a bug, please check:"
39437 msgstr ""
39438
39439 #. type: textblock
39440 #: ../src/guestfs.pod:3220
39441 msgid "That the bug hasn't been reported already."
39442 msgstr ""
39443
39444 #. type: textblock
39445 #: ../src/guestfs.pod:3224
39446 msgid "That you are testing a recent version."
39447 msgstr ""
39448
39449 #. type: textblock
39450 #: ../src/guestfs.pod:3228
39451 msgid "Describe the bug accurately, and give a way to reproduce it."
39452 msgstr ""
39453
39454 #. type: textblock
39455 #: ../src/guestfs.pod:3232
39456 msgid ""
39457 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
39458 "bug report."
39459 msgstr ""
39460
39461 #. type: textblock
39462 #: ../test-tool/libguestfs-test-tool.pod:5
39463 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
39464 msgstr ""
39465
39466 #. type: verbatim
39467 #: ../test-tool/libguestfs-test-tool.pod:9
39468 #, no-wrap
39469 msgid ""
39470 " libguestfs-test-tool [--options]\n"
39471 "\n"
39472 msgstr ""
39473
39474 #. type: textblock
39475 #: ../test-tool/libguestfs-test-tool.pod:13
39476 msgid ""
39477 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
39478 "to check basic libguestfs functionality is working.  This is needed because "
39479 "libguestfs occasionally breaks for reasons beyond our control: usually "
39480 "because of changes in the underlying qemu or kernel packages, or the host "
39481 "environment."
39482 msgstr ""
39483
39484 #. type: textblock
39485 #: ../test-tool/libguestfs-test-tool.pod:19
39486 msgid "If you suspect a problem in libguestfs, then just run:"
39487 msgstr ""
39488
39489 #. type: verbatim
39490 #: ../test-tool/libguestfs-test-tool.pod:21
39491 #, no-wrap
39492 msgid ""
39493 " libguestfs-test-tool\n"
39494 "\n"
39495 msgstr ""
39496
39497 #. type: textblock
39498 #: ../test-tool/libguestfs-test-tool.pod:23
39499 msgid "It will print lots of diagnostic messages."
39500 msgstr ""
39501
39502 #. type: textblock
39503 #: ../test-tool/libguestfs-test-tool.pod:25
39504 msgid "If it runs to completion successfully, you will see this near the end:"
39505 msgstr ""
39506
39507 #. type: verbatim
39508 #: ../test-tool/libguestfs-test-tool.pod:27
39509 #, no-wrap
39510 msgid ""
39511 " ===== TEST FINISHED OK =====\n"
39512 "\n"
39513 msgstr ""
39514
39515 #. type: textblock
39516 #: ../test-tool/libguestfs-test-tool.pod:29
39517 msgid "and the test tool will exit with code 0."
39518 msgstr ""
39519
39520 #. type: textblock
39521 #: ../test-tool/libguestfs-test-tool.pod:31
39522 msgid ""
39523 "If it fails (and/or exits with non-zero error code), please paste the "
39524 "I<complete, unedited> output of the test tool into a bug report.  More "
39525 "information about reporting bugs can be found on the L<http://libguestfs.org/"
39526 "> website."
39527 msgstr ""
39528
39529 #. type: textblock
39530 #: ../test-tool/libguestfs-test-tool.pod:42
39531 msgid "Display short usage information and exit."
39532 msgstr ""
39533
39534 #. type: =item
39535 #: ../test-tool/libguestfs-test-tool.pod:44
39536 #, fuzzy
39537 #| msgid "I<--qemu qemu_binary>"
39538 msgid "B<--qemu qemu_binary>"
39539 msgstr "I<--qemu виконуваний_файл_qemu>"
39540
39541 #. type: textblock
39542 #: ../test-tool/libguestfs-test-tool.pod:46
39543 msgid ""
39544 "If you have downloaded another qemu binary, point this option at the full "
39545 "path of the binary to try it."
39546 msgstr ""
39547
39548 #. type: =item
39549 #: ../test-tool/libguestfs-test-tool.pod:49
39550 #, fuzzy
39551 #| msgid "I<--qemu qemu_binary>"
39552 msgid "B<--qemudir qemu_source_dir>"
39553 msgstr "I<--qemu виконуваний_файл_qemu>"
39554
39555 #. type: textblock
39556 #: ../test-tool/libguestfs-test-tool.pod:51
39557 msgid ""
39558 "If you have compiled qemu from source, point this option at the source "
39559 "directory to try it."
39560 msgstr ""
39561
39562 #. type: =item
39563 #: ../test-tool/libguestfs-test-tool.pod:54
39564 msgid "B<-t N>"
39565 msgstr ""
39566
39567 #. type: =item
39568 #: ../test-tool/libguestfs-test-tool.pod:56
39569 #, fuzzy
39570 #| msgid "I<--timeout N>"
39571 msgid "B<--timeout N>"
39572 msgstr "I<--timeout N>"
39573
39574 #. type: textblock
39575 #: ../test-tool/libguestfs-test-tool.pod:58
39576 msgid ""
39577 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
39578 "minutes) which does not usually need to be adjusted."
39579 msgstr ""
39580
39581 #. type: =head1
39582 #: ../test-tool/libguestfs-test-tool.pod:63
39583 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
39584 msgstr ""
39585
39586 #. type: textblock
39587 #: ../test-tool/libguestfs-test-tool.pod:65
39588 msgid ""
39589 "If you have compiled another version of qemu from source and would like to "
39590 "try that, then you can use the I<--qemudir> option to point to the qemu "
39591 "source directory."
39592 msgstr ""
39593
39594 #. type: textblock
39595 #: ../test-tool/libguestfs-test-tool.pod:69
39596 msgid ""
39597 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
39598 "option to point to the binary."
39599 msgstr ""
39600
39601 #. type: textblock
39602 #: ../test-tool/libguestfs-test-tool.pod:72
39603 msgid ""
39604 "Note when using these options, you can ignore the business of qemu wrapper "
39605 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
39606 "wrapper script for you if one is needed."
39607 msgstr ""
39608
39609 #. type: =head1
39610 #: ../test-tool/libguestfs-test-tool.pod:76
39611 msgid "TRYING OUT A DIFFERENT KERNEL"
39612 msgstr ""
39613
39614 #. type: textblock
39615 #: ../test-tool/libguestfs-test-tool.pod:78
39616 msgid ""
39617 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
39618 "libguestfs tries.  You do this by setting the environment variables "
39619 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
39620 msgstr ""
39621
39622 #. type: textblock
39623 #: ../test-tool/libguestfs-test-tool.pod:82
39624 msgid ""
39625 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
39626 "information."
39627 msgstr ""
39628
39629 #. type: =head1
39630 #: ../test-tool/libguestfs-test-tool.pod:85
39631 msgid "SELF-DIAGNOSIS"
39632 msgstr ""
39633
39634 #. type: textblock
39635 #: ../test-tool/libguestfs-test-tool.pod:87
39636 msgid ""
39637 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
39638 "produced by libguestfs-test-tool and/or possible errors."
39639 msgstr ""
39640
39641 #. type: textblock
39642 #: ../test-tool/libguestfs-test-tool.pod:92
39643 msgid ""
39644 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
39645 "I<1> if there was an error."
39646 msgstr ""
39647
39648 #. type: textblock
39649 #: ../test-tool/libguestfs-test-tool.pod:97
39650 msgid ""
39651 "For the full list of environment variables which may affect libguestfs, "
39652 "please see the L<guestfs(3)> manual page."
39653 msgstr ""
39654
39655 #. type: textblock
39656 #: ../test-tool/libguestfs-test-tool.pod:102
39657 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
39658 msgstr ""
39659
39660 #. type: textblock
39661 #: ../tools/virt-list-filesystems.pl:32
39662 msgid ""
39663 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
39664 msgstr ""
39665
39666 #. type: verbatim
39667 #: ../tools/virt-list-filesystems.pl:36
39668 #, no-wrap
39669 msgid ""
39670 " virt-list-filesystems [--options] domname\n"
39671 "\n"
39672 msgstr ""
39673
39674 #. type: verbatim
39675 #: ../tools/virt-list-filesystems.pl:38
39676 #, no-wrap
39677 msgid ""
39678 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
39679 "\n"
39680 msgstr ""
39681
39682 #. type: textblock
39683 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
39684 msgid ""
39685 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
39686 "replacement."
39687 msgstr ""
39688
39689 #. type: textblock
39690 #: ../tools/virt-list-filesystems.pl:45
39691 msgid ""
39692 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
39693 "are contained in a virtual machine or disk image."
39694 msgstr ""
39695
39696 #. type: textblock
39697 #: ../tools/virt-list-filesystems.pl:49
39698 msgid ""
39699 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
39700 "functionality.  For more complex cases you should look at the L<guestfish(1)"
39701 "> tool."
39702 msgstr ""
39703
39704 #. type: textblock
39705 #: ../tools/virt-list-filesystems.pl:112
39706 msgid ""
39707 "With this option, C<virt-list-filesystems> displays the type of each "
39708 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
39709 msgstr ""
39710
39711 #. type: =item
39712 #: ../tools/virt-list-filesystems.pl:119
39713 #, fuzzy
39714 #| msgid "B<-a image>"
39715 msgid "B<-a>"
39716 msgstr "B<-a образ>"
39717
39718 #. type: textblock
39719 #: ../tools/virt-list-filesystems.pl:123
39720 msgid ""
39721 "Normally we only show mountable filesystems.  If this option is given then "
39722 "swap devices are shown too."
39723 msgstr ""
39724
39725 #. type: textblock
39726 #: ../tools/virt-list-filesystems.pl:197
39727 msgid ""
39728 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
39729 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
39730 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39731 msgstr ""
39732 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
39733 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
39734 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39735
39736 #. type: textblock
39737 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
39738 msgid "Copyright (C) 2009 Red Hat Inc."
39739 msgstr "© Red Hat Inc., 2009"
39740
39741 #. type: textblock
39742 #: ../tools/virt-list-partitions.pl:32
39743 msgid ""
39744 "virt-list-partitions - List partitions in a virtual machine or disk image"
39745 msgstr ""
39746
39747 #. type: verbatim
39748 #: ../tools/virt-list-partitions.pl:36
39749 #, no-wrap
39750 msgid ""
39751 " virt-list-partitions [--options] domname\n"
39752 "\n"
39753 msgstr ""
39754 " virt-list-partitions [--параметри] назва_домену\n"
39755 "\n"
39756
39757 #. type: verbatim
39758 #: ../tools/virt-list-partitions.pl:38
39759 #, no-wrap
39760 msgid ""
39761 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
39762 "\n"
39763 msgstr ""
39764 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
39765 "\n"
39766
39767 #. type: textblock
39768 #: ../tools/virt-list-partitions.pl:45
39769 msgid ""
39770 "C<virt-list-partitions> is a command line tool to list the partitions that "
39771 "are contained in a virtual machine or disk image.  It is mainly useful as a "
39772 "first step to using L<virt-resize(1)>."
39773 msgstr ""
39774
39775 #. type: textblock
39776 #: ../tools/virt-list-partitions.pl:50
39777 msgid ""
39778 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
39779 "functionality.  For more complex cases you should look at the L<guestfish(1)"
39780 "> tool."
39781 msgstr ""
39782
39783 #. type: textblock
39784 #: ../tools/virt-list-partitions.pl:113
39785 msgid "Show sizes in human-readable form (eg. \"1G\")."
39786 msgstr ""
39787
39788 #. type: textblock
39789 #: ../tools/virt-list-partitions.pl:123
39790 msgid ""
39791 "With this option, C<virt-list-partitions> displays the type and size of each "
39792 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
39793 msgstr ""
39794
39795 #. type: =item
39796 #: ../tools/virt-list-partitions.pl:130
39797 msgid "B<-t>"
39798 msgstr ""
39799
39800 #. type: =item
39801 #: ../tools/virt-list-partitions.pl:132
39802 #, fuzzy
39803 #| msgid "B<-t> | B<--total>"
39804 msgid "B<--total>"
39805 msgstr "B<-t> | B<--total>"
39806
39807 #. type: textblock
39808 #: ../tools/virt-list-partitions.pl:134
39809 msgid ""
39810 "Display the total size of each block device (as a separate row or rows)."
39811 msgstr ""
39812
39813 #. type: textblock
39814 #: ../tools/virt-list-partitions.pl:267
39815 msgid ""
39816 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39817 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39818 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39819 msgstr ""
39820 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39821 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39822 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39823
39824 #. type: textblock
39825 #: ../tools/virt-list-partitions.pl:283
39826 msgid "Copyright (C) 2009-2010 Red Hat Inc."
39827 msgstr "© Red Hat Inc., 2009–2010"
39828
39829 #. type: textblock
39830 #: ../tools/virt-make-fs.pl:37
39831 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
39832 msgstr ""
39833
39834 #. type: verbatim
39835 #: ../tools/virt-make-fs.pl:41
39836 #, no-wrap
39837 msgid ""
39838 " virt-make-fs [--options] input.tar output.img\n"
39839 "\n"
39840 msgstr ""
39841
39842 #. type: verbatim
39843 #: ../tools/virt-make-fs.pl:43
39844 #, no-wrap
39845 msgid ""
39846 " virt-make-fs [--options] input.tar.gz output.img\n"
39847 "\n"
39848 msgstr ""
39849
39850 #. type: verbatim
39851 #: ../tools/virt-make-fs.pl:45
39852 #, no-wrap
39853 msgid ""
39854 " virt-make-fs [--options] directory output.img\n"
39855 "\n"
39856 msgstr ""
39857
39858 #. type: textblock
39859 #: ../tools/virt-make-fs.pl:49
39860 msgid ""
39861 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
39862 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
39863 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
39864 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
39865 "you want to attach these filesystems to existing virtual machines (eg. to "
39866 "import large amounts of read-only data to a VM)."
39867 msgstr ""
39868
39869 #. type: textblock
39870 #: ../tools/virt-make-fs.pl:57
39871 msgid "Basic usage is:"
39872 msgstr ""
39873
39874 #. type: verbatim
39875 #: ../tools/virt-make-fs.pl:59
39876 #, no-wrap
39877 msgid ""
39878 " virt-make-fs input output\n"
39879 "\n"
39880 msgstr ""
39881
39882 #. type: textblock
39883 #: ../tools/virt-make-fs.pl:61
39884 msgid ""
39885 "where C<input> is either a directory containing files that you want to add, "
39886 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
39887 "C<output> is a disk image.  The input type is detected automatically.  The "
39888 "output disk image defaults to a raw ext2 image unless you specify extra "
39889 "flags (see L</OPTIONS> below)."
39890 msgstr ""
39891
39892 #. type: =head2
39893 #: ../tools/virt-make-fs.pl:67
39894 msgid "EXTRA SPACE"
39895 msgstr ""
39896
39897 #. type: textblock
39898 #: ../tools/virt-make-fs.pl:69
39899 msgid ""
39900 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
39901 "the files that it contains, but might have extra space.  Depending on how "
39902 "you are going to use the output, you might think this extra space is wasted "
39903 "and want to minimize it, or you might want to leave space so that more files "
39904 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
39905 "but you can use the I<--size> flag to leave space in the filesystem if you "
39906 "want it."
39907 msgstr ""
39908
39909 #. type: textblock
39910 #: ../tools/virt-make-fs.pl:77
39911 msgid ""
39912 "An alternative way to leave extra space but not make the output image any "
39913 "bigger is to use an alternative disk image format (instead of the default "
39914 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
39915 "image format (check your hypervisor supports this before using it).  This "
39916 "allows you to choose a large I<--size> but the extra space won't actually be "
39917 "allocated in the image until you try to store something in it."
39918 msgstr ""
39919
39920 #. type: textblock
39921 #: ../tools/virt-make-fs.pl:85
39922 msgid ""
39923 "Don't forget that you can also use local commands including L<resize2fs(8)> "
39924 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
39925 "to build another image from scratch."
39926 msgstr ""
39927
39928 #. type: =head3
39929 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
39930 #: ../tools/virt-make-fs.pl:142
39931 msgid "EXAMPLE"
39932 msgstr "ПРИКЛАД"
39933
39934 #. type: verbatim
39935 #: ../tools/virt-make-fs.pl:91
39936 #, no-wrap
39937 msgid ""
39938 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39939 "\n"
39940 msgstr ""
39941 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39942 "\n"
39943
39944 #. type: =head2
39945 #: ../tools/virt-make-fs.pl:93
39946 msgid "FILESYSTEM TYPE"
39947 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
39948
39949 #. type: textblock
39950 #: ../tools/virt-make-fs.pl:95
39951 msgid ""
39952 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
39953 "libguestfs supports can be used (but I<not> read-only formats like "
39954 "ISO9660).  Here are some of the more common choices:"
39955 msgstr ""
39956
39957 #. type: =item
39958 #: ../tools/virt-make-fs.pl:101
39959 msgid "I<ext3>"
39960 msgstr "I<ext3>"
39961
39962 #. type: textblock
39963 #: ../tools/virt-make-fs.pl:103
39964 msgid ""
39965 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
39966 "you are not going to use the filesystem in a way that requires the journal, "
39967 "then this is just wasted overhead."
39968 msgstr ""
39969
39970 #. type: =item
39971 #: ../tools/virt-make-fs.pl:107
39972 msgid "I<ntfs> or I<vfat>"
39973 msgstr "I<ntfs> або I<vfat>"
39974
39975 #. type: textblock
39976 #: ../tools/virt-make-fs.pl:109
39977 msgid "Useful if exporting data to a Windows guest."
39978 msgstr ""
39979
39980 #. type: textblock
39981 #: ../tools/virt-make-fs.pl:111
39982 msgid ""
39983 "I<Note for vfat>: The tar archive or local directory must only contain files "
39984 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
39985 "program running within libguestfs is unable to change the ownership of non-"
39986 "root files, since vfat itself does not support this."
39987 msgstr ""
39988
39989 #. type: =item
39990 #: ../tools/virt-make-fs.pl:116
39991 msgid "I<minix>"
39992 msgstr "I<minix>"
39993
39994 #. type: textblock
39995 #: ../tools/virt-make-fs.pl:118
39996 msgid ""
39997 "Lower overhead than C<ext2>, but certain limitations on filename length and "
39998 "total filesystem size."
39999 msgstr ""
40000
40001 #. type: verbatim
40002 #: ../tools/virt-make-fs.pl:125
40003 #, no-wrap
40004 msgid ""
40005 " virt-make-fs --type=minix input minixfs.img\n"
40006 "\n"
40007 msgstr ""
40008
40009 #. type: =head2
40010 #: ../tools/virt-make-fs.pl:127
40011 msgid "TO PARTITION OR NOT TO PARTITION"
40012 msgstr ""
40013
40014 #. type: textblock
40015 #: ../tools/virt-make-fs.pl:129
40016 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40017 msgstr ""
40018
40019 #. type: textblock
40020 #: ../tools/virt-make-fs.pl:131
40021 msgid ""
40022 "Adding a partition can make the disk image more compatible with certain "
40023 "virtualized operating systems which don't expect to see a filesystem "
40024 "directly located on a block device (Linux doesn't care and will happily "
40025 "handle both types)."
40026 msgstr ""
40027
40028 #. type: textblock
40029 #: ../tools/virt-make-fs.pl:136
40030 msgid ""
40031 "On the other hand, if you have a partition table then the output image is no "
40032 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
40033 "directly on a partitioned disk image.  (However libguestfs tools such as "
40034 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40035 msgstr ""
40036
40037 #. type: textblock
40038 #: ../tools/virt-make-fs.pl:144
40039 msgid "Add an MBR partition:"
40040 msgstr ""
40041
40042 #. type: verbatim
40043 #: ../tools/virt-make-fs.pl:146
40044 #, no-wrap
40045 msgid ""
40046 " virt-make-fs --partition -- input disk.img\n"
40047 "\n"
40048 msgstr ""
40049
40050 #. type: textblock
40051 #: ../tools/virt-make-fs.pl:148
40052 msgid ""
40053 "If the output disk image could be terabyte-sized or larger, it's better to "
40054 "use an EFI/GPT-compatible partition table:"
40055 msgstr ""
40056
40057 #. type: verbatim
40058 #: ../tools/virt-make-fs.pl:151
40059 #, no-wrap
40060 msgid ""
40061 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
40062 "\n"
40063 msgstr ""
40064
40065 #. type: textblock
40066 #: ../tools/virt-make-fs.pl:179
40067 msgid "Enable debugging information."
40068 msgstr "Увімкнути виведення діагностичних даних."
40069
40070 #. type: =item
40071 #: ../tools/virt-make-fs.pl:185
40072 msgid "B<--size=E<lt>NE<gt>>"
40073 msgstr "B<--size=E<lt>NE<gt>>"
40074
40075 #. type: =item
40076 #: ../tools/virt-make-fs.pl:187
40077 msgid "B<--size=+E<lt>NE<gt>>"
40078 msgstr "B<--size=+E<lt>NE<gt>>"
40079
40080 #. type: =item
40081 #: ../tools/virt-make-fs.pl:189
40082 msgid "B<-s E<lt>NE<gt>>"
40083 msgstr "B<-s E<lt>NE<gt>>"
40084
40085 #. type: =item
40086 #: ../tools/virt-make-fs.pl:191
40087 msgid "B<-s +E<lt>NE<gt>>"
40088 msgstr "B<-s +E<lt>NE<gt>>"
40089
40090 #. type: textblock
40091 #: ../tools/virt-make-fs.pl:193
40092 msgid ""
40093 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
40094 msgstr ""
40095
40096 #. type: textblock
40097 #: ../tools/virt-make-fs.pl:196
40098 msgid ""
40099 "If this option is I<not> given, then the output image will be just large "
40100 "enough to contain all the files, with not much wasted space."
40101 msgstr ""
40102
40103 #. type: textblock
40104 #: ../tools/virt-make-fs.pl:199
40105 msgid ""
40106 "To choose a fixed size output disk, specify an absolute number followed by b/"
40107 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40108 "Petabytes or Exabytes.  This must be large enough to contain all the input "
40109 "files, else you will get an error."
40110 msgstr ""
40111
40112 #. type: textblock
40113 #: ../tools/virt-make-fs.pl:204
40114 msgid ""
40115 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
40116 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40117 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
40118 "the input files, and (approximately) an extra 200 MB free space."
40119 msgstr ""
40120
40121 #. type: textblock
40122 #: ../tools/virt-make-fs.pl:210
40123 msgid ""
40124 "Note that virt-make-fs estimates free space, and therefore will not produce "
40125 "filesystems containing precisely the free space requested.  (It is much more "
40126 "expensive and time-consuming to produce a filesystem which has precisely the "
40127 "desired free space)."
40128 msgstr ""
40129
40130 #. type: =item
40131 #: ../tools/virt-make-fs.pl:219
40132 msgid "B<--format=E<lt>fmtE<gt>>"
40133 msgstr ""
40134
40135 #. type: =item
40136 #: ../tools/virt-make-fs.pl:221
40137 msgid "B<-F E<lt>fmtE<gt>>"
40138 msgstr ""
40139
40140 #. type: textblock
40141 #: ../tools/virt-make-fs.pl:223
40142 msgid "Choose the output disk image format."
40143 msgstr ""
40144
40145 #. type: textblock
40146 #: ../tools/virt-make-fs.pl:225
40147 msgid "The default is C<raw> (raw disk image)."
40148 msgstr ""
40149
40150 #. type: textblock
40151 #: ../tools/virt-make-fs.pl:227
40152 msgid ""
40153 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
40154 "that would really make sense here is C<qcow2>."
40155 msgstr ""
40156
40157 #. type: =item
40158 #: ../tools/virt-make-fs.pl:234
40159 msgid "B<--type=E<lt>fsE<gt>>"
40160 msgstr ""
40161
40162 #. type: =item
40163 #: ../tools/virt-make-fs.pl:236
40164 msgid "B<-t E<lt>fsE<gt>>"
40165 msgstr ""
40166
40167 #. type: textblock
40168 #: ../tools/virt-make-fs.pl:238
40169 msgid "Choose the output filesystem type."
40170 msgstr ""
40171
40172 #. type: textblock
40173 #: ../tools/virt-make-fs.pl:240
40174 msgid "The default is C<ext2>."
40175 msgstr "Типовим значенням є C<ext2>."
40176
40177 #. type: textblock
40178 #: ../tools/virt-make-fs.pl:242
40179 msgid ""
40180 "Any filesystem which is supported read-write by libguestfs can be used here."
40181 msgstr ""
40182
40183 #. type: =item
40184 #: ../tools/virt-make-fs.pl:249
40185 msgid "B<--partition>"
40186 msgstr "B<--partition>"
40187
40188 #. type: =item
40189 #: ../tools/virt-make-fs.pl:251
40190 msgid "B<--partition=E<lt>parttypeE<gt>>"
40191 msgstr ""
40192
40193 #. type: textblock
40194 #: ../tools/virt-make-fs.pl:253
40195 msgid ""
40196 "If specified, this flag adds an MBR partition table to the output disk image."
40197 msgstr ""
40198
40199 #. type: textblock
40200 #: ../tools/virt-make-fs.pl:256
40201 msgid ""
40202 "You can change the partition table type, eg. I<--partition=gpt> for large "
40203 "disks."
40204 msgstr ""
40205
40206 #. type: textblock
40207 #: ../tools/virt-make-fs.pl:259
40208 msgid ""
40209 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
40210 "might consider the next parameter to be the partition type.  For example:"
40211 msgstr ""
40212
40213 #. type: verbatim
40214 #: ../tools/virt-make-fs.pl:263
40215 #, no-wrap
40216 msgid ""
40217 " virt-make-fs --partition input.tar ...\n"
40218 "\n"
40219 msgstr ""
40220
40221 #. type: textblock
40222 #: ../tools/virt-make-fs.pl:265
40223 msgid ""
40224 "would cause virt-make-fs to think you wanted to use a partition type of "
40225 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
40226 "dash) between options and the input file argument:"
40227 msgstr ""
40228
40229 #. type: verbatim
40230 #: ../tools/virt-make-fs.pl:269
40231 #, no-wrap
40232 msgid ""
40233 " virt-make-fs --partition -- input.tar ...\n"
40234 "\n"
40235 msgstr ""
40236 " virt-make-fs --partition -- input.tar ...\n"
40237 "\n"
40238
40239 #. type: textblock
40240 #: ../tools/virt-make-fs.pl:541
40241 msgid ""
40242 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40243 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40244 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40245 msgstr ""
40246 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40247 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40248 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40249
40250 #. type: textblock
40251 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
40252 msgid ""
40253 "When reporting bugs, please enable debugging and capture the I<complete> "
40254 "output:"
40255 msgstr ""
40256
40257 #. type: verbatim
40258 #: ../tools/virt-make-fs.pl:558
40259 #, no-wrap
40260 msgid ""
40261 " export LIBGUESTFS_DEBUG=1\n"
40262 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40263 "\n"
40264 msgstr ""
40265 " export LIBGUESTFS_DEBUG=1\n"
40266 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40267 "\n"
40268
40269 #. type: textblock
40270 #: ../tools/virt-make-fs.pl:561
40271 msgid ""
40272 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
40273 "redhat.com/>"
40274 msgstr ""
40275
40276 #. type: textblock
40277 #: ../tools/virt-tar.pl:33
40278 msgid "virt-tar - Extract or upload files to a virtual machine"
40279 msgstr ""
40280
40281 #. type: verbatim
40282 #: ../tools/virt-tar.pl:37
40283 #, no-wrap
40284 msgid ""
40285 " virt-tar [--options] -x domname directory tarball\n"
40286 "\n"
40287 msgstr ""
40288
40289 #. type: verbatim
40290 #: ../tools/virt-tar.pl:39
40291 #, no-wrap
40292 msgid ""
40293 " virt-tar [--options] -u domname tarball directory\n"
40294 "\n"
40295 msgstr ""
40296
40297 #. type: verbatim
40298 #: ../tools/virt-tar.pl:41
40299 #, no-wrap
40300 msgid ""
40301 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
40302 "\n"
40303 msgstr ""
40304
40305 #. type: verbatim
40306 #: ../tools/virt-tar.pl:43
40307 #, no-wrap
40308 msgid ""
40309 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
40310 "\n"
40311 msgstr ""
40312
40313 #. type: =head2
40314 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
40315 msgid "NOTE"
40316 msgstr "ПРИМІТКА"
40317
40318 #. type: textblock
40319 #: ../tools/virt-tar.pl:47
40320 msgid ""
40321 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
40322 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
40323 msgstr ""
40324
40325 #. type: textblock
40326 #: ../tools/virt-tar.pl:52
40327 msgid "Download C</home> from the VM into a local tarball:"
40328 msgstr ""
40329
40330 #. type: verbatim
40331 #: ../tools/virt-tar.pl:54
40332 #, no-wrap
40333 msgid ""
40334 " virt-tar -x domname /home home.tar\n"
40335 "\n"
40336 msgstr ""
40337
40338 #. type: verbatim
40339 #: ../tools/virt-tar.pl:56
40340 #, no-wrap
40341 msgid ""
40342 " virt-tar -zx domname /home home.tar.gz\n"
40343 "\n"
40344 msgstr ""
40345
40346 #. type: textblock
40347 #: ../tools/virt-tar.pl:58
40348 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
40349 msgstr ""
40350
40351 #. type: verbatim
40352 #: ../tools/virt-tar.pl:60
40353 #, no-wrap
40354 msgid ""
40355 " virt-tar -u domname uploadstuff.tar /tmp\n"
40356 "\n"
40357 msgstr ""
40358
40359 #. type: verbatim
40360 #: ../tools/virt-tar.pl:62
40361 #, no-wrap
40362 msgid ""
40363 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
40364 "\n"
40365 msgstr ""
40366
40367 #. type: textblock
40368 #: ../tools/virt-tar.pl:66
40369 msgid ""
40370 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
40371 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
40372 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
40373 msgstr ""
40374
40375 #. type: textblock
40376 #: ../tools/virt-tar.pl:71
40377 msgid ""
40378 "You can use I<-x> (extract) on live virtual machines, but you might get "
40379 "inconsistent results or errors if there is filesystem activity inside the "
40380 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
40381 "work, but the only way to guarantee consistent results is if the virtual "
40382 "machine is shut down."
40383 msgstr ""
40384
40385 #. type: textblock
40386 #: ../tools/virt-tar.pl:79
40387 msgid ""
40388 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
40389 "parts of a guest filesystem.  There are many possibilities: making backups, "
40390 "uploading data files, snooping on guest activity, fixing or customizing "
40391 "guests, etc."
40392 msgstr ""
40393
40394 #. type: textblock
40395 #: ../tools/virt-tar.pl:84
40396 msgid ""
40397 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
40398 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
40399 "should look at the L<guestfish(1)> tool."
40400 msgstr ""
40401
40402 #. type: textblock
40403 #: ../tools/virt-tar.pl:88
40404 msgid ""
40405 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
40406 "its contents (recursively) from the virtual machine into a local tarball.  "
40407 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
40408 "virtual machine.  You cannot use these two options together."
40409 msgstr ""
40410
40411 #. type: textblock
40412 #: ../tools/virt-tar.pl:94
40413 msgid ""
40414 "In addition, you may need to use the I<-z> (gZip) option to enable "
40415 "compression.  When uploading, you have to specify I<-z> if the upload file "
40416 "is compressed because virt-tar won't detect this on its own."
40417 msgstr ""
40418
40419 #. type: textblock
40420 #: ../tools/virt-tar.pl:98
40421 msgid ""
40422 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
40423 "example it cannot do PKZip files or bzip2 compression.  If you want that "
40424 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
40425 "the L<libguestfs(3)> API)."
40426 msgstr ""
40427
40428 #. type: =item
40429 #: ../tools/virt-tar.pl:160
40430 #, fuzzy
40431 #| msgid "B<--format>"
40432 msgid "B<--extract>"
40433 msgstr "B<--format>"
40434
40435 #. type: =item
40436 #: ../tools/virt-tar.pl:162
40437 #, fuzzy
40438 #| msgid "download"
40439 msgid "B<--download>"
40440 msgstr "download"
40441
40442 #. type: =item
40443 #: ../tools/virt-tar.pl:164
40444 msgid "B<-u>"
40445 msgstr ""
40446
40447 #. type: =item
40448 #: ../tools/virt-tar.pl:166
40449 #, fuzzy
40450 #| msgid "B<-u> | B<--upload>"
40451 msgid "B<--upload>"
40452 msgstr "B<-u> | B<--upload>"
40453
40454 #. type: textblock
40455 #: ../tools/virt-tar.pl:168
40456 msgid ""
40457 "Use I<-x> to extract (download) a directory from a virtual machine to a "
40458 "local tarball."
40459 msgstr ""
40460
40461 #. type: textblock
40462 #: ../tools/virt-tar.pl:171
40463 msgid ""
40464 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
40465 "Please read the L</WARNING> section above before using this option."
40466 msgstr ""
40467
40468 #. type: textblock
40469 #: ../tools/virt-tar.pl:175
40470 msgid "You must specify exactly one of these options."
40471 msgstr ""
40472
40473 #. type: =item
40474 #: ../tools/virt-tar.pl:181
40475 msgid "B<-z>"
40476 msgstr ""
40477
40478 #. type: =item
40479 #: ../tools/virt-tar.pl:183
40480 #, fuzzy
40481 #| msgid "B<-z> | B<--gzip>"
40482 msgid "B<--gzip>"
40483 msgstr "B<-z> | B<--gzip>"
40484
40485 #. type: textblock
40486 #: ../tools/virt-tar.pl:185
40487 msgid "Specify that the input or output tarball is gzip-compressed."
40488 msgstr ""
40489
40490 #. type: textblock
40491 #: ../tools/virt-tar.pl:298
40492 msgid ""
40493 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40494 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40495 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40496 "org/>."
40497 msgstr ""
40498 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40499 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40500 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40501 "org/>."
40502
40503 #. type: textblock
40504 #: ../tools/virt-win-reg.pl:37
40505 msgid ""
40506 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
40507 msgstr ""
40508
40509 #. type: verbatim
40510 #: ../tools/virt-win-reg.pl:41
40511 #, no-wrap
40512 msgid ""
40513 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
40514 "\n"
40515 msgstr ""
40516
40517 #. type: verbatim
40518 #: ../tools/virt-win-reg.pl:43
40519 #, no-wrap
40520 msgid ""
40521 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
40522 "\n"
40523 msgstr ""
40524
40525 #. type: verbatim
40526 #: ../tools/virt-win-reg.pl:45
40527 #, no-wrap
40528 msgid ""
40529 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
40530 "\n"
40531 msgstr ""
40532
40533 #. type: verbatim
40534 #: ../tools/virt-win-reg.pl:47
40535 #, no-wrap
40536 msgid ""
40537 " virt-win-reg --merge domname [input.reg ...]\n"
40538 "\n"
40539 msgstr ""
40540
40541 #. type: verbatim
40542 #: ../tools/virt-win-reg.pl:49
40543 #, no-wrap
40544 msgid ""
40545 " virt-win-reg [--options] disk.img ... # instead of domname\n"
40546 "\n"
40547 msgstr ""
40548
40549 #. type: textblock
40550 #: ../tools/virt-win-reg.pl:53
40551 msgid ""
40552 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
40553 "virtual machines.  If you do this, you I<will> get irreversible disk "
40554 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
40555 "but doesn't catch all cases."
40556 msgstr ""
40557
40558 #. type: textblock
40559 #: ../tools/virt-win-reg.pl:58
40560 msgid ""
40561 "Modifying the Windows Registry is an inherently risky operation.  The format "
40562 "is deliberately obscure and undocumented, and Registry changes can leave the "
40563 "system unbootable.  Therefore when using the I<--merge> option, make sure "
40564 "you have a reliable backup first."
40565 msgstr ""
40566
40567 #. type: textblock
40568 #: ../tools/virt-win-reg.pl:65
40569 msgid ""
40570 "This program can export and merge Windows Registry entries from a Windows "
40571 "guest."
40572 msgstr ""
40573
40574 #. type: textblock
40575 #: ../tools/virt-win-reg.pl:68
40576 msgid ""
40577 "The first parameter is the libvirt guest name or the raw disk image of a "
40578 "Windows guest."
40579 msgstr ""
40580
40581 #. type: textblock
40582 #: ../tools/virt-win-reg.pl:71
40583 msgid ""
40584 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
40585 "exported (recursively).  For example:"
40586 msgstr ""
40587
40588 #. type: verbatim
40589 #: ../tools/virt-win-reg.pl:74
40590 #, no-wrap
40591 msgid ""
40592 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
40593 "\n"
40594 msgstr ""
40595
40596 #. type: textblock
40597 #: ../tools/virt-win-reg.pl:76
40598 msgid ""
40599 "You can also display single values from within registry keys, for example:"
40600 msgstr ""
40601
40602 #. type: verbatim
40603 #: ../tools/virt-win-reg.pl:79
40604 #, no-wrap
40605 msgid ""
40606 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
40607 " $ virt-win-reg Windows7 $cvkey ProductName\n"
40608 " Windows 7 Enterprise\n"
40609 "\n"
40610 msgstr ""
40611
40612 #. type: textblock
40613 #: ../tools/virt-win-reg.pl:83
40614 msgid ""
40615 "With I<--merge>, you can merge a textual regedit file into the Windows "
40616 "Registry:"
40617 msgstr ""
40618
40619 #. type: verbatim
40620 #: ../tools/virt-win-reg.pl:86
40621 #, no-wrap
40622 msgid ""
40623 " $ virt-win-reg --merge Windows7 changes.reg\n"
40624 "\n"
40625 msgstr ""
40626
40627 #. type: textblock
40628 #: ../tools/virt-win-reg.pl:90
40629 msgid ""
40630 "This program is only meant for simple access to the registry.  If you want "
40631 "to do complicated things with the registry, we suggest you download the "
40632 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
40633 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
40634 "L<hivexregedit(1)>."
40635 msgstr ""
40636
40637 #. type: =item
40638 #: ../tools/virt-win-reg.pl:159
40639 msgid "B<--merge>"
40640 msgstr "B<--merge>"
40641
40642 #. type: textblock
40643 #: ../tools/virt-win-reg.pl:161
40644 msgid ""
40645 "In merge mode, this merges a textual regedit file into the Windows Registry "
40646 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
40647 "displays or exports Registry entries instead."
40648 msgstr ""
40649
40650 #. type: textblock
40651 #: ../tools/virt-win-reg.pl:165
40652 msgid ""
40653 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
40654 "result in disk corruption.  However exporting (without this flag)  is always "
40655 "safe."
40656 msgstr ""
40657
40658 #. type: =item
40659 #: ../tools/virt-win-reg.pl:173
40660 msgid "B<--encoding> UTF-16LE|ASCII"
40661 msgstr ""
40662
40663 #. type: textblock
40664 #: ../tools/virt-win-reg.pl:175
40665 msgid ""
40666 "When merging (only), you may need to specify the encoding for strings to be "
40667 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
40668 "(3)/ENCODING STRINGS>."
40669 msgstr ""
40670
40671 #. type: textblock
40672 #: ../tools/virt-win-reg.pl:179
40673 msgid ""
40674 "The default is to use UTF-16LE, which should work with recent versions of "
40675 "Windows."
40676 msgstr ""
40677
40678 #. type: =item
40679 #: ../tools/virt-win-reg.pl:186
40680 msgid "B<--unsafe-printable-strings>"
40681 msgstr ""
40682
40683 #. type: textblock
40684 #: ../tools/virt-win-reg.pl:188
40685 msgid ""
40686 "When exporting (only), assume strings are UTF-16LE and print them as strings "
40687 "instead of hex sequences.  Remove the final zero codepoint from strings if "
40688 "present."
40689 msgstr ""
40690
40691 #. type: textblock
40692 #: ../tools/virt-win-reg.pl:192
40693 msgid ""
40694 "This is unsafe and does not preserve the fidelity of strings in the original "
40695 "Registry for various reasons:"
40696 msgstr ""
40697
40698 #. type: textblock
40699 #: ../tools/virt-win-reg.pl:199
40700 msgid ""
40701 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
40702 "other encodings will be corrupted by this transformation."
40703 msgstr ""
40704
40705 #. type: textblock
40706 #: ../tools/virt-win-reg.pl:204
40707 msgid ""
40708 "Assumes that everything which has type 1 or 2 is really a string and that "
40709 "everything else is not a string, but the type field in real Registries is "
40710 "not reliable."
40711 msgstr ""
40712
40713 #. type: textblock
40714 #: ../tools/virt-win-reg.pl:210
40715 msgid ""
40716 "Loses information about whether a zero codepoint followed the string in the "
40717 "Registry or not."
40718 msgstr ""
40719
40720 #. type: textblock
40721 #: ../tools/virt-win-reg.pl:215
40722 msgid ""
40723 "This all happens because the Registry itself contains no information about "
40724 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
40725 msgstr ""
40726
40727 #. type: textblock
40728 #: ../tools/virt-win-reg.pl:219
40729 msgid ""
40730 "You should only use this option for quick hacking and debugging of the "
40731 "Registry contents, and I<never> use it if the output is going to be passed "
40732 "into another program or stored in another Registry."
40733 msgstr ""
40734
40735 #. type: =head1
40736 #: ../tools/virt-win-reg.pl:556
40737 msgid "SUPPORTED SYSTEMS"
40738 msgstr ""
40739
40740 #. type: textblock
40741 #: ../tools/virt-win-reg.pl:558
40742 msgid ""
40743 "The program currently supports Windows NT-derived guests starting with "
40744 "Windows XP through to at least Windows 7."
40745 msgstr ""
40746
40747 #. type: textblock
40748 #: ../tools/virt-win-reg.pl:561
40749 msgid "The following Registry keys are supported:"
40750 msgstr ""
40751
40752 #. type: =item
40753 #: ../tools/virt-win-reg.pl:565
40754 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
40755 msgstr ""
40756
40757 #. type: =item
40758 #: ../tools/virt-win-reg.pl:567
40759 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
40760 msgstr ""
40761
40762 #. type: =item
40763 #: ../tools/virt-win-reg.pl:569
40764 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
40765 msgstr ""
40766
40767 #. type: =item
40768 #: ../tools/virt-win-reg.pl:571
40769 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
40770 msgstr ""
40771
40772 #. type: =item
40773 #: ../tools/virt-win-reg.pl:573
40774 msgid "C<HKEY_USERS\\.DEFAULT>"
40775 msgstr ""
40776
40777 #. type: =item
40778 #: ../tools/virt-win-reg.pl:575
40779 msgid "C<HKEY_USERS\\I<SID>>"
40780 msgstr ""
40781
40782 #. type: textblock
40783 #: ../tools/virt-win-reg.pl:577
40784 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
40785 msgstr ""
40786
40787 #. type: =item
40788 #: ../tools/virt-win-reg.pl:579
40789 msgid "C<HKEY_USERS\\I<username>>"
40790 msgstr ""
40791
40792 #. type: textblock
40793 #: ../tools/virt-win-reg.pl:581
40794 msgid ""
40795 "where I<username> is a local user name (this is a libguestfs extension)."
40796 msgstr ""
40797
40798 #. type: textblock
40799 #: ../tools/virt-win-reg.pl:585
40800 msgid ""
40801 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
40802 "C<HKEY_USERS>."
40803 msgstr ""
40804
40805 #. type: textblock
40806 #: ../tools/virt-win-reg.pl:588
40807 msgid ""
40808 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
40809 "supported (there is no \"current user\")."
40810 msgstr ""
40811
40812 #. type: =head1
40813 #: ../tools/virt-win-reg.pl:591
40814 msgid "ENCODING"
40815 msgstr "КОДУВАННЯ"
40816
40817 #. type: textblock
40818 #: ../tools/virt-win-reg.pl:593
40819 msgid ""
40820 "C<virt-win-reg> expects that regedit files have already been reencoded in "
40821 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
40822 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
40823 "Windows-style line endings, you may need to reencode the whole file before "
40824 "or after processing."
40825 msgstr ""
40826
40827 #. type: textblock
40828 #: ../tools/virt-win-reg.pl:599
40829 msgid ""
40830 "To reencode a file from Windows format to Linux (before processing it with "
40831 "the I<--merge> option), you would do something like this:"
40832 msgstr ""
40833
40834 #. type: verbatim
40835 #: ../tools/virt-win-reg.pl:602
40836 #, no-wrap
40837 msgid ""
40838 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
40839 "\n"
40840 msgstr ""
40841
40842 #. type: textblock
40843 #: ../tools/virt-win-reg.pl:604
40844 msgid ""
40845 "To go in the opposite direction, after exporting and before sending the file "
40846 "to a Windows user, do something like this:"
40847 msgstr ""
40848
40849 #. type: verbatim
40850 #: ../tools/virt-win-reg.pl:607
40851 #, no-wrap
40852 msgid ""
40853 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
40854 "\n"
40855 msgstr ""
40856
40857 #. type: textblock
40858 #: ../tools/virt-win-reg.pl:609
40859 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
40860 msgstr ""
40861
40862 #. type: textblock
40863 #: ../tools/virt-win-reg.pl:611
40864 msgid ""
40865 "If you are unsure about the current encoding, use the L<file(1)> command.  "
40866 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
40867 "style (CRLF) line endings, like this:"
40868 msgstr ""
40869
40870 #. type: verbatim
40871 #: ../tools/virt-win-reg.pl:615
40872 #, no-wrap
40873 msgid ""
40874 " $ file software.reg\n"
40875 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
40876 " with CRLF line terminators\n"
40877 "\n"
40878 msgstr ""
40879
40880 #. type: textblock
40881 #: ../tools/virt-win-reg.pl:619
40882 msgid "This file would need conversion before you could I<--merge> it."
40883 msgstr ""
40884
40885 #. type: =head1
40886 #: ../tools/virt-win-reg.pl:621
40887 msgid "CurrentControlSet etc."
40888 msgstr ""
40889
40890 #. type: textblock
40891 #: ../tools/virt-win-reg.pl:623
40892 msgid ""
40893 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
40894 "Registry at the level of the hive file, and therefore you cannot modify "
40895 "these."
40896 msgstr ""
40897
40898 #. type: textblock
40899 #: ../tools/virt-win-reg.pl:627
40900 msgid ""
40901 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
40902 "circumstances it might refer to another control set.  The way to find out is "
40903 "to look at the C<HKLM\\SYSTEM\\Select> key:"
40904 msgstr ""
40905
40906 #. type: verbatim
40907 #: ../tools/virt-win-reg.pl:631
40908 #, no-wrap
40909 msgid ""
40910 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
40911 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
40912 " \"Current\"=dword:00000001\n"
40913 " \"Default\"=dword:00000001\n"
40914 " \"Failed\"=dword:00000000\n"
40915 " \"LastKnownGood\"=dword:00000002\n"
40916 "\n"
40917 msgstr ""
40918
40919 #. type: textblock
40920 #: ../tools/virt-win-reg.pl:638
40921 msgid "\"Current\" is the one which Windows will choose when it boots."
40922 msgstr ""
40923
40924 #. type: textblock
40925 #: ../tools/virt-win-reg.pl:640
40926 msgid ""
40927 "Similarly, other C<Current...> keys in the path may need to be replaced."
40928 msgstr ""
40929
40930 #. type: =head1
40931 #: ../tools/virt-win-reg.pl:643
40932 msgid "WINDOWS TIPS"
40933 msgstr ""
40934
40935 #. type: textblock
40936 #: ../tools/virt-win-reg.pl:645
40937 msgid ""
40938 "Note that some of these tips modify the guest disk image.  The guest I<must> "
40939 "be shut off, else you will get disk corruption."
40940 msgstr ""
40941
40942 #. type: =head2
40943 #: ../tools/virt-win-reg.pl:648
40944 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
40945 msgstr ""
40946
40947 #. type: textblock
40948 #: ../tools/virt-win-reg.pl:650
40949 msgid ""
40950 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
40951 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
40952 "is uploaded into C<C:\\>:"
40953 msgstr ""
40954
40955 #. type: verbatim
40956 #: ../tools/virt-win-reg.pl:654
40957 #, no-wrap
40958 msgid ""
40959 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
40960 "\n"
40961 msgstr ""
40962
40963 #. type: textblock
40964 #: ../tools/virt-win-reg.pl:656
40965 msgid "Prepare a regedit file containing the registry change:"
40966 msgstr ""
40967
40968 #. type: verbatim
40969 #: ../tools/virt-win-reg.pl:658
40970 #, no-wrap
40971 msgid ""
40972 " cat > test.reg <<'EOF'\n"
40973 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
40974 " \"Test\"=\"c:\\\\test.bat\"\n"
40975 " EOF\n"
40976 "\n"
40977 msgstr ""
40978
40979 #. type: textblock
40980 #: ../tools/virt-win-reg.pl:663
40981 msgid ""
40982 "In this example we use the key C<RunOnce> which means that the script will "
40983 "run precisely once when the first user logs in.  If you want it to run every "
40984 "time a user logs in, replace C<RunOnce> with C<Run>."
40985 msgstr ""
40986
40987 #. type: textblock
40988 #: ../tools/virt-win-reg.pl:667
40989 msgid "Now update the registry:"
40990 msgstr ""
40991
40992 #. type: verbatim
40993 #: ../tools/virt-win-reg.pl:669
40994 #, no-wrap
40995 msgid ""
40996 " virt-win-reg --merge WindowsGuest test.reg\n"
40997 "\n"
40998 msgstr ""
40999
41000 #. type: =head2
41001 #: ../tools/virt-win-reg.pl:671
41002 msgid "INSTALLING A SERVICE"
41003 msgstr ""
41004
41005 #. type: textblock
41006 #: ../tools/virt-win-reg.pl:673
41007 msgid ""
41008 "This section assumes you are familiar with Windows services, and you either "
41009 "have a program which handles the Windows Service Control Protocol directly "
41010 "or you want to run any program using a service wrapper like SrvAny or the "
41011 "free RHSrvAny."
41012 msgstr ""
41013
41014 #. type: textblock
41015 #: ../tools/virt-win-reg.pl:678
41016 msgid ""
41017 "First upload the program and optionally the service wrapper.  In this case "
41018 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
41019 msgstr ""
41020
41021 #. type: verbatim
41022 #: ../tools/virt-win-reg.pl:682
41023 #, no-wrap
41024 msgid ""
41025 " guestfish -i -d WindowsGuest <<EOF\n"
41026 "   upload rhsrvany.exe /rhsrvany.exe\n"
41027 "   upload test.exe /test.exe\n"
41028 " EOF\n"
41029 "\n"
41030 msgstr ""
41031
41032 #. type: textblock
41033 #: ../tools/virt-win-reg.pl:687
41034 msgid ""
41035 "Prepare a regedit file containing the registry changes.  In this example, "
41036 "the first registry change is needed for the service itself or the service "
41037 "wrapper (if used).  The second registry change is only needed because I am "
41038 "using the RHSrvAny service wrapper."
41039 msgstr ""
41040
41041 #. type: verbatim
41042 #: ../tools/virt-win-reg.pl:692
41043 #, no-wrap
41044 msgid ""
41045 " cat > service.reg <<'EOF'\n"
41046 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
41047 " \"Type\"=dword:00000010\n"
41048 " \"Start\"=dword:00000002\n"
41049 " \"ErrorControl\"=dword:00000001\n"
41050 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
41051 " \"DisplayName\"=\"RHSrvAny\"\n"
41052 " \"ObjectName\"=\"NetworkService\"\n"
41053 " \n"
41054 msgstr ""
41055
41056 #. type: verbatim
41057 #: ../tools/virt-win-reg.pl:701
41058 #, no-wrap
41059 msgid ""
41060 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
41061 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
41062 " \"PWD\"=\"c:\\\\Temp\"\n"
41063 " EOF\n"
41064 "\n"
41065 msgstr ""
41066
41067 #. type: textblock
41068 #: ../tools/virt-win-reg.pl:712
41069 msgid ""
41070 "For use of C<ControlSet001> see the section above in this manual page.  You "
41071 "may need to adjust this according to the control set that is in use by the "
41072 "guest."
41073 msgstr ""
41074
41075 #. type: textblock
41076 #: ../tools/virt-win-reg.pl:718
41077 msgid ""
41078 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
41079 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
41080 "privileged account."
41081 msgstr ""
41082
41083 #. type: textblock
41084 #: ../tools/virt-win-reg.pl:724
41085 msgid ""
41086 "For the meaning of the magic numbers, see this Microsoft KB article: "
41087 "L<http://support.microsoft.com/kb/103000>."
41088 msgstr ""
41089
41090 #. type: textblock
41091 #: ../tools/virt-win-reg.pl:729
41092 msgid "Update the registry:"
41093 msgstr ""
41094
41095 #. type: verbatim
41096 #: ../tools/virt-win-reg.pl:731
41097 #, no-wrap
41098 msgid ""
41099 " virt-win-reg --merge WindowsGuest service.reg\n"
41100 "\n"
41101 msgstr ""
41102
41103 #. type: textblock
41104 #: ../tools/virt-win-reg.pl:735
41105 msgid ""
41106 "Be careful when passing parameters containing C<\\> (backslash) in the "
41107 "shell.  Usually you will have to use 'single quotes' or double backslashes "
41108 "(but not both) to protect them from the shell."
41109 msgstr ""
41110
41111 #. type: textblock
41112 #: ../tools/virt-win-reg.pl:739
41113 msgid "Paths and value names are case-insensitive."
41114 msgstr ""
41115
41116 #. type: textblock
41117 #: ../tools/virt-win-reg.pl:748
41118 msgid ""
41119 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
41120 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
41121 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41122 msgstr ""
41123
41124 #. type: verbatim
41125 #: ../tools/virt-win-reg.pl:766
41126 #, no-wrap
41127 msgid ""
41128 " export LIBGUESTFS_DEBUG=1\n"
41129 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
41130 "\n"
41131 msgstr ""
41132
41133 #. type: textblock
41134 #: ../tools/virt-win-reg.pl:769
41135 msgid ""
41136 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
41137 "redhat.com/>"
41138 msgstr ""
41139
41140 #~ msgid "I<--help>"
41141 #~ msgstr "I<--help>"
41142
41143 #~ msgid "EXIT CODE"
41144 #~ msgstr "КОД ВИХОДУ"
41145
41146 #~ msgid "B<-a> | B<--all>"
41147 #~ msgstr "B<-a> | B<--all>"
41148
41149 #~ msgid "B<-x> | B<--extract> | B<--download>"
41150 #~ msgstr "B<-x> | B<--extract> | B<--download>"