2f3d17b99535685ef42d06820fa54f4f2e76800a
[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-10-01 14:27+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:2791
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:3167 ../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:3244 ../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:4245
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:1094
2707 #: ../src/guestfs.pod:1098 ../src/guestfs.pod:1102 ../src/guestfs.pod:1107
2708 #: ../src/guestfs.pod:1115 ../src/guestfs.pod:1134 ../src/guestfs.pod:1142
2709 #: ../src/guestfs.pod:1164 ../src/guestfs.pod:1168 ../src/guestfs.pod:1172
2710 #: ../src/guestfs.pod:1176 ../src/guestfs.pod:1180 ../src/guestfs.pod:1184
2711 #: ../src/guestfs.pod:1674 ../src/guestfs.pod:1679 ../src/guestfs.pod:1683
2712 #: ../src/guestfs.pod:1785 ../src/guestfs.pod:1790 ../src/guestfs.pod:1794
2713 #: ../src/guestfs.pod:1804 ../src/guestfs.pod:2093 ../src/guestfs.pod:2098
2714 #: ../src/guestfs.pod:2104 ../src/guestfs.pod:2112 ../src/guestfs.pod:2559
2715 #: ../src/guestfs.pod:2565 ../src/guestfs.pod:2570 ../src/guestfs.pod:2576
2716 #: ../src/guestfs.pod:2959 ../src/guestfs.pod:2964 ../src/guestfs.pod:2968
2717 #: ../src/guestfs.pod:2972 ../src/guestfs.pod:2976 ../src/guestfs.pod:2990
2718 #: ../src/guestfs.pod:2995 ../src/guestfs.pod:3221 ../src/guestfs.pod:3225
2719 #: ../src/guestfs.pod:3229 ../src/guestfs.pod:3233
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:3106
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:3240
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:3242
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:3249
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:3254
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:3259
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:1670
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:3468
4791 #: ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:4429
4792 #: ../fish/guestfish-actions.pod:4452 ../fish/guestfish-actions.pod:4474
4793 #: ../fish/guestfish-actions.pod:4512 ../fish/guestfish-actions.pod:5161
4794 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:10
4795 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
4796 #: ../src/guestfs-actions.pod:1615 ../src/guestfs-actions.pod:2114
4797 #: ../src/guestfs-actions.pod:2135 ../src/guestfs-actions.pod:4765
4798 #: ../src/guestfs-actions.pod:5287 ../src/guestfs-actions.pod:5387
4799 #: ../src/guestfs-actions.pod:6667 ../src/guestfs-actions.pod:6711
4800 #: ../src/guestfs-actions.pod:6745 ../src/guestfs-actions.pod:6808
4801 #: ../src/guestfs-actions.pod:7740 ../src/guestfs-actions.pod:7849
4802 #: ../src/guestfs-actions.pod:8032
4803 msgid ""
4804 "Deprecated functions will not be removed from the API, but the fact that "
4805 "they are deprecated indicates that there are problems with correct use of "
4806 "these functions."
4807 msgstr ""
4808
4809 #. type: =head2
4810 #: ../fish/guestfish-actions.pod:35
4811 msgid "add-domain"
4812 msgstr "add-domain"
4813
4814 #. type: =head2
4815 #: ../fish/guestfish-actions.pod:37
4816 msgid "domain"
4817 msgstr ""
4818
4819 #. type: verbatim
4820 #: ../fish/guestfish-actions.pod:39
4821 #, no-wrap
4822 msgid ""
4823 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4824 "\n"
4825 msgstr ""
4826
4827 #. type: textblock
4828 #: ../fish/guestfish-actions.pod:41
4829 msgid ""
4830 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4831 "It works by connecting to libvirt, requesting the domain and domain XML from "
4832 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4833 msgstr ""
4834
4835 #. type: textblock
4836 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4837 msgid ""
4838 "The number of disks added is returned.  This operation is atomic: if an "
4839 "error is returned, then no disks are added."
4840 msgstr ""
4841
4842 #. type: textblock
4843 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4844 msgid ""
4845 "This function does some minimal checks to make sure the libvirt domain is "
4846 "not running (unless C<readonly> is true).  In a future version we will try "
4847 "to acquire the libvirt lock on each disk."
4848 msgstr ""
4849
4850 #. type: textblock
4851 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4852 msgid ""
4853 "Disks must be accessible locally.  This often means that adding disks from a "
4854 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4855 "unless those disks are accessible via the same device path locally too."
4856 msgstr ""
4857
4858 #. type: textblock
4859 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4860 msgid ""
4861 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4862 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4863 "libvirt URI (or one set through an environment variable, see the libvirt "
4864 "documentation for full details)."
4865 msgstr ""
4866
4867 #. type: textblock
4868 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4869 msgid ""
4870 "The optional C<live> flag controls whether this call will try to connect to "
4871 "a running virtual machine C<guestfsd> process if it sees a suitable "
4872 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4873 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4874 "DAEMONS> for more information."
4875 msgstr ""
4876
4877 #. type: textblock
4878 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4879 msgid ""
4880 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4881 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4882 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4883 "as usual."
4884 msgstr ""
4885
4886 #. type: textblock
4887 #: ../fish/guestfish-actions.pod:76
4888 msgid ""
4889 "The other optional parameters are passed directly through to L</add-drive-"
4890 "opts>."
4891 msgstr ""
4892
4893 #. type: textblock
4894 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4895 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
4896 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040
4897 #: ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3369
4898 #: ../fish/guestfish-actions.pod:3504
4899 msgid ""
4900 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
4901 msgstr ""
4902
4903 #. type: =head2
4904 #: ../fish/guestfish-actions.pod:81
4905 msgid "add-drive"
4906 msgstr "add-drive"
4907
4908 #. type: verbatim
4909 #: ../fish/guestfish-actions.pod:83
4910 #, no-wrap
4911 msgid ""
4912 " add-drive filename\n"
4913 "\n"
4914 msgstr ""
4915 " add-drive назва_файла\n"
4916 "\n"
4917
4918 #. type: textblock
4919 #: ../fish/guestfish-actions.pod:85
4920 msgid ""
4921 "This function is the equivalent of calling L</add-drive-opts> with no "
4922 "optional parameters, so the disk is added writable, with the format being "
4923 "detected automatically."
4924 msgstr ""
4925
4926 #. type: textblock
4927 #: ../fish/guestfish-actions.pod:89
4928 msgid ""
4929 "Automatic detection of the format opens you up to a potential security hole "
4930 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
4931 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
4932 "you should think about replacing calls to this function with calls to L</add-"
4933 "drive-opts>, and specifying the format."
4934 msgstr ""
4935
4936 #. type: =head2
4937 #: ../fish/guestfish-actions.pod:96
4938 msgid "add-drive-opts"
4939 msgstr "add-drive-opts"
4940
4941 #. type: =head2
4942 #: ../fish/guestfish-actions.pod:98
4943 msgid "add"
4944 msgstr "add"
4945
4946 #. type: verbatim
4947 #: ../fish/guestfish-actions.pod:100
4948 #, no-wrap
4949 msgid ""
4950 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
4951 "\n"
4952 msgstr ""
4953
4954 #. type: textblock
4955 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
4956 msgid ""
4957 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
4958 "The first time you call this function, the disk appears as C</dev/sda>, the "
4959 "second time as C</dev/sdb>, and so on."
4960 msgstr ""
4961
4962 #. type: textblock
4963 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
4964 msgid ""
4965 "You don't necessarily need to be root when using libguestfs.  However you "
4966 "obviously do need sufficient permissions to access the filename for whatever "
4967 "operations you want to perform (ie. read access if you just want to read the "
4968 "image or write access if you want to modify the image)."
4969 msgstr ""
4970
4971 #. type: textblock
4972 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
4973 msgid "This call checks that C<filename> exists."
4974 msgstr ""
4975
4976 #. type: textblock
4977 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168
4978 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4802
4979 msgid "The optional arguments are:"
4980 msgstr ""
4981
4982 #. type: =item
4983 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
4984 msgid "C<readonly>"
4985 msgstr "C<readonly>"
4986
4987 #. type: textblock
4988 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
4989 msgid ""
4990 "If true then the image is treated as read-only.  Writes are still allowed, "
4991 "but they are stored in a temporary snapshot overlay which is discarded at "
4992 "the end.  The disk that you add is not modified."
4993 msgstr ""
4994
4995 #. type: =item
4996 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
4997 msgid "C<format>"
4998 msgstr "C<format>"
4999
5000 #. type: textblock
5001 #: ../fish/guestfish-actions.pod:127
5002 msgid ""
5003 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
5004 "add-drive-ro>) then the format is automatically detected.  Possible formats "
5005 "include C<raw> and C<qcow2>."
5006 msgstr ""
5007
5008 #. type: textblock
5009 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
5010 msgid ""
5011 "Automatic detection of the format opens you up to a potential security hole "
5012 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5013 "RHBZ#642934.  Specifying the format closes this security hole."
5014 msgstr ""
5015
5016 #. type: =item
5017 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
5018 msgid "C<iface>"
5019 msgstr "C<iface>"
5020
5021 #. type: textblock
5022 #: ../fish/guestfish-actions.pod:138
5023 msgid ""
5024 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
5025 "add-drive-with-if> call (q.v.)"
5026 msgstr ""
5027
5028 #. type: =head2
5029 #: ../fish/guestfish-actions.pod:145
5030 msgid "add-drive-ro"
5031 msgstr "add-drive-ro"
5032
5033 #. type: =head2
5034 #: ../fish/guestfish-actions.pod:147
5035 msgid "add-ro"
5036 msgstr "add-ro"
5037
5038 #. type: verbatim
5039 #: ../fish/guestfish-actions.pod:149
5040 #, no-wrap
5041 msgid ""
5042 " add-drive-ro filename\n"
5043 "\n"
5044 msgstr ""
5045
5046 #. type: textblock
5047 #: ../fish/guestfish-actions.pod:151
5048 msgid ""
5049 "This function is the equivalent of calling L</add-drive-opts> with the "
5050 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
5051 "is added read-only, with the format being detected automatically."
5052 msgstr ""
5053
5054 #. type: =head2
5055 #: ../fish/guestfish-actions.pod:156
5056 msgid "add-drive-ro-with-if"
5057 msgstr ""
5058
5059 #. type: verbatim
5060 #: ../fish/guestfish-actions.pod:158
5061 #, no-wrap
5062 msgid ""
5063 " add-drive-ro-with-if filename iface\n"
5064 "\n"
5065 msgstr ""
5066
5067 #. type: textblock
5068 #: ../fish/guestfish-actions.pod:160
5069 msgid ""
5070 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
5071 "interface emulation to use at run time."
5072 msgstr ""
5073
5074 #. type: =head2
5075 #: ../fish/guestfish-actions.pod:170
5076 msgid "add-drive-with-if"
5077 msgstr ""
5078
5079 #. type: verbatim
5080 #: ../fish/guestfish-actions.pod:172
5081 #, no-wrap
5082 msgid ""
5083 " add-drive-with-if filename iface\n"
5084 "\n"
5085 msgstr ""
5086
5087 #. type: textblock
5088 #: ../fish/guestfish-actions.pod:174
5089 msgid ""
5090 "This is the same as L</add-drive> but it allows you to specify the QEMU "
5091 "interface emulation to use at run time."
5092 msgstr ""
5093
5094 #. type: =head2
5095 #: ../fish/guestfish-actions.pod:184
5096 msgid "aug-clear"
5097 msgstr ""
5098
5099 #. type: verbatim
5100 #: ../fish/guestfish-actions.pod:186
5101 #, no-wrap
5102 msgid ""
5103 " aug-clear augpath\n"
5104 "\n"
5105 msgstr ""
5106
5107 #. type: textblock
5108 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
5109 msgid ""
5110 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
5111 "L<augtool(1)> C<clear> command."
5112 msgstr ""
5113
5114 #. type: =head2
5115 #: ../fish/guestfish-actions.pod:191
5116 msgid "aug-close"
5117 msgstr ""
5118
5119 #. type: verbatim
5120 #: ../fish/guestfish-actions.pod:193
5121 #, no-wrap
5122 msgid ""
5123 " aug-close\n"
5124 "\n"
5125 msgstr ""
5126
5127 #. type: textblock
5128 #: ../fish/guestfish-actions.pod:195
5129 msgid ""
5130 "Close the current Augeas handle and free up any resources used by it.  After "
5131 "calling this, you have to call L</aug-init> again before you can use any "
5132 "other Augeas functions."
5133 msgstr ""
5134
5135 #. type: =head2
5136 #: ../fish/guestfish-actions.pod:200
5137 msgid "aug-defnode"
5138 msgstr ""
5139
5140 #. type: verbatim
5141 #: ../fish/guestfish-actions.pod:202
5142 #, no-wrap
5143 msgid ""
5144 " aug-defnode name expr val\n"
5145 "\n"
5146 msgstr ""
5147
5148 #. type: textblock
5149 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
5150 msgid ""
5151 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
5152 msgstr ""
5153
5154 #. type: textblock
5155 #: ../fish/guestfish-actions.pod:207
5156 msgid ""
5157 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
5158 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
5159 "containing that single node."
5160 msgstr ""
5161
5162 #. type: textblock
5163 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
5164 msgid ""
5165 "On success this returns a pair containing the number of nodes in the "
5166 "nodeset, and a boolean flag if a node was created."
5167 msgstr ""
5168
5169 #. type: =head2
5170 #: ../fish/guestfish-actions.pod:215
5171 msgid "aug-defvar"
5172 msgstr ""
5173
5174 #. type: verbatim
5175 #: ../fish/guestfish-actions.pod:217
5176 #, no-wrap
5177 msgid ""
5178 " aug-defvar name expr\n"
5179 "\n"
5180 msgstr ""
5181
5182 #. type: textblock
5183 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
5184 msgid ""
5185 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5186 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
5187 msgstr ""
5188
5189 #. type: textblock
5190 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
5191 msgid ""
5192 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5193 "evaluates to something which is not a nodeset."
5194 msgstr ""
5195
5196 #. type: =head2
5197 #: ../fish/guestfish-actions.pod:226
5198 msgid "aug-get"
5199 msgstr ""
5200
5201 #. type: verbatim
5202 #: ../fish/guestfish-actions.pod:228
5203 #, no-wrap
5204 msgid ""
5205 " aug-get augpath\n"
5206 "\n"
5207 msgstr ""
5208
5209 #. type: textblock
5210 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
5211 msgid ""
5212 "Look up the value associated with C<path>.  If C<path> matches exactly one "
5213 "node, the C<value> is returned."
5214 msgstr ""
5215
5216 #. type: =head2
5217 #: ../fish/guestfish-actions.pod:233
5218 msgid "aug-init"
5219 msgstr ""
5220
5221 #. type: verbatim
5222 #: ../fish/guestfish-actions.pod:235
5223 #, no-wrap
5224 msgid ""
5225 " aug-init root flags\n"
5226 "\n"
5227 msgstr ""
5228
5229 #. type: textblock
5230 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
5231 msgid ""
5232 "Create a new Augeas handle for editing configuration files.  If there was "
5233 "any previous Augeas handle associated with this guestfs session, then it is "
5234 "closed."
5235 msgstr ""
5236
5237 #. type: textblock
5238 #: ../fish/guestfish-actions.pod:241
5239 msgid "You must call this before using any other L</aug-*> commands."
5240 msgstr ""
5241
5242 #. type: textblock
5243 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
5244 msgid ""
5245 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5246 msgstr ""
5247
5248 #. type: textblock
5249 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
5250 msgid ""
5251 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5252 "logical I<or> of the following integers:"
5253 msgstr ""
5254
5255 #. type: =item
5256 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5257 msgid "C<AUG_SAVE_BACKUP> = 1"
5258 msgstr "C<AUG_SAVE_BACKUP> = 1"
5259
5260 #. type: textblock
5261 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5262 msgid "Keep the original file with a C<.augsave> extension."
5263 msgstr ""
5264
5265 #. type: =item
5266 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5267 msgid "C<AUG_SAVE_NEWFILE> = 2"
5268 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5269
5270 #. type: textblock
5271 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5272 msgid ""
5273 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5274 "original.  Overrides C<AUG_SAVE_BACKUP>."
5275 msgstr ""
5276
5277 #. type: =item
5278 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5279 msgid "C<AUG_TYPE_CHECK> = 4"
5280 msgstr "C<AUG_TYPE_CHECK> = 4"
5281
5282 #. type: textblock
5283 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5284 msgid "Typecheck lenses."
5285 msgstr ""
5286
5287 #. type: textblock
5288 #: ../fish/guestfish-actions.pod:266
5289 msgid ""
5290 "This option is only useful when debugging Augeas lenses.  Use of this option "
5291 "may require additional memory for the libguestfs appliance.  You may need to "
5292 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5293 msgstr ""
5294
5295 #. type: =item
5296 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5297 msgid "C<AUG_NO_STDINC> = 8"
5298 msgstr "C<AUG_NO_STDINC> = 8"
5299
5300 #. type: textblock
5301 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5302 msgid "Do not use standard load path for modules."
5303 msgstr ""
5304
5305 #. type: =item
5306 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5307 msgid "C<AUG_SAVE_NOOP> = 16"
5308 msgstr "C<AUG_SAVE_NOOP> = 16"
5309
5310 #. type: textblock
5311 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5312 msgid "Make save a no-op, just record what would have been changed."
5313 msgstr ""
5314
5315 #. type: =item
5316 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5317 msgid "C<AUG_NO_LOAD> = 32"
5318 msgstr "C<AUG_NO_LOAD> = 32"
5319
5320 #. type: textblock
5321 #: ../fish/guestfish-actions.pod:281
5322 msgid "Do not load the tree in L</aug-init>."
5323 msgstr ""
5324
5325 #. type: textblock
5326 #: ../fish/guestfish-actions.pod:285
5327 msgid "To close the handle, you can call L</aug-close>."
5328 msgstr ""
5329
5330 #. type: textblock
5331 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5332 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5333 msgstr ""
5334
5335 #. type: =head2
5336 #: ../fish/guestfish-actions.pod:289
5337 msgid "aug-insert"
5338 msgstr ""
5339
5340 #. type: verbatim
5341 #: ../fish/guestfish-actions.pod:291
5342 #, no-wrap
5343 msgid ""
5344 " aug-insert augpath label true|false\n"
5345 "\n"
5346 msgstr ""
5347
5348 #. type: textblock
5349 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5350 msgid ""
5351 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5352 "or after C<path> (depending on the boolean flag C<before>)."
5353 msgstr ""
5354
5355 #. type: textblock
5356 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5357 msgid ""
5358 "C<path> must match exactly one existing node in the tree, and C<label> must "
5359 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5360 msgstr ""
5361
5362 #. type: =head2
5363 #: ../fish/guestfish-actions.pod:301
5364 msgid "aug-load"
5365 msgstr ""
5366
5367 #. type: verbatim
5368 #: ../fish/guestfish-actions.pod:303
5369 #, no-wrap
5370 msgid ""
5371 " aug-load\n"
5372 "\n"
5373 msgstr ""
5374
5375 #. type: textblock
5376 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5377 msgid "Load files into the tree."
5378 msgstr "Завантажити файли до ієрархії."
5379
5380 #. type: textblock
5381 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5382 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5383 msgstr ""
5384
5385 #. type: =head2
5386 #: ../fish/guestfish-actions.pod:310
5387 msgid "aug-ls"
5388 msgstr ""
5389
5390 #. type: verbatim
5391 #: ../fish/guestfish-actions.pod:312
5392 #, no-wrap
5393 msgid ""
5394 " aug-ls augpath\n"
5395 "\n"
5396 msgstr ""
5397
5398 #. type: textblock
5399 #: ../fish/guestfish-actions.pod:314
5400 msgid ""
5401 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5402 "resulting nodes into alphabetical order."
5403 msgstr ""
5404
5405 #. type: =head2
5406 #: ../fish/guestfish-actions.pod:317
5407 msgid "aug-match"
5408 msgstr ""
5409
5410 #. type: verbatim
5411 #: ../fish/guestfish-actions.pod:319
5412 #, no-wrap
5413 msgid ""
5414 " aug-match augpath\n"
5415 "\n"
5416 msgstr ""
5417
5418 #. type: textblock
5419 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5420 msgid ""
5421 "Returns a list of paths which match the path expression C<path>.  The "
5422 "returned paths are sufficiently qualified so that they match exactly one "
5423 "node in the current tree."
5424 msgstr ""
5425
5426 #. type: =head2
5427 #: ../fish/guestfish-actions.pod:325
5428 msgid "aug-mv"
5429 msgstr ""
5430
5431 #. type: verbatim
5432 #: ../fish/guestfish-actions.pod:327
5433 #, no-wrap
5434 msgid ""
5435 " aug-mv src dest\n"
5436 "\n"
5437 msgstr ""
5438
5439 #. type: textblock
5440 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5441 msgid ""
5442 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5443 "C<dest> is overwritten if it exists."
5444 msgstr ""
5445
5446 #. type: =head2
5447 #: ../fish/guestfish-actions.pod:332
5448 msgid "aug-rm"
5449 msgstr ""
5450
5451 #. type: verbatim
5452 #: ../fish/guestfish-actions.pod:334
5453 #, no-wrap
5454 msgid ""
5455 " aug-rm augpath\n"
5456 "\n"
5457 msgstr ""
5458
5459 #. type: textblock
5460 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5461 msgid "Remove C<path> and all of its children."
5462 msgstr ""
5463
5464 #. type: textblock
5465 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5466 msgid "On success this returns the number of entries which were removed."
5467 msgstr ""
5468
5469 #. type: =head2
5470 #: ../fish/guestfish-actions.pod:340
5471 msgid "aug-save"
5472 msgstr ""
5473
5474 #. type: verbatim
5475 #: ../fish/guestfish-actions.pod:342
5476 #, no-wrap
5477 msgid ""
5478 " aug-save\n"
5479 "\n"
5480 msgstr ""
5481
5482 #. type: textblock
5483 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5484 msgid "This writes all pending changes to disk."
5485 msgstr ""
5486
5487 #. type: textblock
5488 #: ../fish/guestfish-actions.pod:346
5489 msgid ""
5490 "The flags which were passed to L</aug-init> affect exactly how files are "
5491 "saved."
5492 msgstr ""
5493
5494 #. type: =head2
5495 #: ../fish/guestfish-actions.pod:349
5496 msgid "aug-set"
5497 msgstr ""
5498
5499 #. type: verbatim
5500 #: ../fish/guestfish-actions.pod:351
5501 #, no-wrap
5502 msgid ""
5503 " aug-set augpath val\n"
5504 "\n"
5505 msgstr ""
5506
5507 #. type: textblock
5508 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5509 msgid "Set the value associated with C<path> to C<val>."
5510 msgstr ""
5511
5512 #. type: textblock
5513 #: ../fish/guestfish-actions.pod:355
5514 msgid ""
5515 "In the Augeas API, it is possible to clear a node by setting the value to "
5516 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5517 "this call.  Instead you must use the L</aug-clear> call."
5518 msgstr ""
5519
5520 #. type: =head2
5521 #: ../fish/guestfish-actions.pod:360
5522 msgid "available"
5523 msgstr ""
5524
5525 #. type: verbatim
5526 #: ../fish/guestfish-actions.pod:362
5527 #, no-wrap
5528 msgid ""
5529 " available 'groups ...'\n"
5530 "\n"
5531 msgstr ""
5532
5533 #. type: textblock
5534 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5535 msgid ""
5536 "This command is used to check the availability of some groups of "
5537 "functionality in the appliance, which not all builds of the libguestfs "
5538 "appliance will be able to provide."
5539 msgstr ""
5540
5541 #. type: textblock
5542 #: ../fish/guestfish-actions.pod:368
5543 msgid ""
5544 "The libguestfs groups, and the functions that those groups correspond to, "
5545 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5546 "runtime by calling L</available-all-groups>."
5547 msgstr ""
5548
5549 #. type: textblock
5550 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5551 msgid ""
5552 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5553 "\"]> would check for the availability of the Linux inotify functions and "
5554 "Augeas (configuration file editing) functions."
5555 msgstr ""
5556
5557 #. type: textblock
5558 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5559 msgid "The command returns no error if I<all> requested groups are available."
5560 msgstr ""
5561
5562 #. type: textblock
5563 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5564 msgid ""
5565 "It fails with an error if one or more of the requested groups is unavailable "
5566 "in the appliance."
5567 msgstr ""
5568
5569 #. type: textblock
5570 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5571 msgid ""
5572 "If an unknown group name is included in the list of groups then an error is "
5573 "always returned."
5574 msgstr ""
5575
5576 #. type: textblock
5577 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5578 msgid "I<Notes:>"
5579 msgstr "I<Нотатки:>"
5580
5581 #. type: textblock
5582 #: ../fish/guestfish-actions.pod:392
5583 msgid "You must call L</launch> before calling this function."
5584 msgstr ""
5585
5586 #. type: textblock
5587 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5588 msgid ""
5589 "The reason is because we don't know what groups are supported by the "
5590 "appliance/daemon until it is running and can be queried."
5591 msgstr ""
5592
5593 #. type: textblock
5594 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5595 msgid ""
5596 "If a group of functions is available, this does not necessarily mean that "
5597 "they will work.  You still have to check for errors when calling individual "
5598 "API functions even if they are available."
5599 msgstr ""
5600
5601 #. type: textblock
5602 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5603 msgid ""
5604 "It is usually the job of distro packagers to build complete functionality "
5605 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5606 "with all requirements satisfied, will support everything."
5607 msgstr ""
5608
5609 #. type: textblock
5610 #: ../fish/guestfish-actions.pod:414
5611 msgid ""
5612 "This call was added in version C<1.0.80>.  In previous versions of "
5613 "libguestfs all you could do would be to speculatively execute a command to "
5614 "find out if the daemon implemented it.  See also L</version>."
5615 msgstr ""
5616
5617 #. type: =head2
5618 #: ../fish/guestfish-actions.pod:421
5619 msgid "available-all-groups"
5620 msgstr ""
5621
5622 #. type: verbatim
5623 #: ../fish/guestfish-actions.pod:423
5624 #, no-wrap
5625 msgid ""
5626 " available-all-groups\n"
5627 "\n"
5628 msgstr ""
5629
5630 #. type: textblock
5631 #: ../fish/guestfish-actions.pod:425
5632 msgid ""
5633 "This command returns a list of all optional groups that this daemon knows "
5634 "about.  Note this returns both supported and unsupported groups.  To find "
5635 "out which ones the daemon can actually support you have to call L</"
5636 "available> on each member of the returned list."
5637 msgstr ""
5638
5639 #. type: textblock
5640 #: ../fish/guestfish-actions.pod:431
5641 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
5642 msgstr ""
5643
5644 #. type: =head2
5645 #: ../fish/guestfish-actions.pod:433
5646 msgid "base64-in"
5647 msgstr ""
5648
5649 #. type: verbatim
5650 #: ../fish/guestfish-actions.pod:435
5651 #, no-wrap
5652 msgid ""
5653 " base64-in (base64file|-) filename\n"
5654 "\n"
5655 msgstr ""
5656
5657 #. type: textblock
5658 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
5659 msgid ""
5660 "This command uploads base64-encoded data from C<base64file> to C<filename>."
5661 msgstr ""
5662
5663 #. type: textblock
5664 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
5665 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782
5666 #: ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902
5667 #: ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295
5668 #: ../fish/guestfish-actions.pod:4732 ../fish/guestfish-actions.pod:4744
5669 #: ../fish/guestfish-actions.pod:4755 ../fish/guestfish-actions.pod:4766
5670 #: ../fish/guestfish-actions.pod:4818 ../fish/guestfish-actions.pod:4827
5671 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4904
5672 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5673 msgstr ""
5674
5675 #. type: =head2
5676 #: ../fish/guestfish-actions.pod:442
5677 msgid "base64-out"
5678 msgstr ""
5679
5680 #. type: verbatim
5681 #: ../fish/guestfish-actions.pod:444
5682 #, no-wrap
5683 msgid ""
5684 " base64-out filename (base64file|-)\n"
5685 "\n"
5686 msgstr ""
5687
5688 #. type: textblock
5689 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5690 msgid ""
5691 "This command downloads the contents of C<filename>, writing it out to local "
5692 "file C<base64file> encoded as base64."
5693 msgstr ""
5694
5695 #. type: =head2
5696 #: ../fish/guestfish-actions.pod:451
5697 msgid "blockdev-flushbufs"
5698 msgstr ""
5699
5700 #. type: verbatim
5701 #: ../fish/guestfish-actions.pod:453
5702 #, no-wrap
5703 msgid ""
5704 " blockdev-flushbufs device\n"
5705 "\n"
5706 msgstr ""
5707
5708 #. type: textblock
5709 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5710 msgid ""
5711 "This tells the kernel to flush internal buffers associated with C<device>."
5712 msgstr ""
5713
5714 #. type: textblock
5715 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5716 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5717 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5718 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5719 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5720 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5721 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5722 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5723 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5724 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5725 msgid "This uses the L<blockdev(8)> command."
5726 msgstr ""
5727
5728 #. type: =head2
5729 #: ../fish/guestfish-actions.pod:460
5730 msgid "blockdev-getbsz"
5731 msgstr ""
5732
5733 #. type: verbatim
5734 #: ../fish/guestfish-actions.pod:462
5735 #, no-wrap
5736 msgid ""
5737 " blockdev-getbsz device\n"
5738 "\n"
5739 msgstr ""
5740
5741 #. type: textblock
5742 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5743 msgid "This returns the block size of a device."
5744 msgstr ""
5745
5746 #. type: textblock
5747 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5748 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5749 msgid ""
5750 "(Note this is different from both I<size in blocks> and I<filesystem block "
5751 "size>)."
5752 msgstr ""
5753
5754 #. type: =head2
5755 #: ../fish/guestfish-actions.pod:471
5756 msgid "blockdev-getro"
5757 msgstr ""
5758
5759 #. type: verbatim
5760 #: ../fish/guestfish-actions.pod:473
5761 #, no-wrap
5762 msgid ""
5763 " blockdev-getro device\n"
5764 "\n"
5765 msgstr ""
5766
5767 #. type: textblock
5768 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5769 msgid ""
5770 "Returns a boolean indicating if the block device is read-only (true if read-"
5771 "only, false if not)."
5772 msgstr ""
5773
5774 #. type: =head2
5775 #: ../fish/guestfish-actions.pod:480
5776 msgid "blockdev-getsize64"
5777 msgstr ""
5778
5779 #. type: verbatim
5780 #: ../fish/guestfish-actions.pod:482
5781 #, no-wrap
5782 msgid ""
5783 " blockdev-getsize64 device\n"
5784 "\n"
5785 msgstr ""
5786
5787 #. type: textblock
5788 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5789 msgid "This returns the size of the device in bytes."
5790 msgstr ""
5791
5792 #. type: textblock
5793 #: ../fish/guestfish-actions.pod:486
5794 msgid "See also L</blockdev-getsz>."
5795 msgstr ""
5796
5797 #. type: =head2
5798 #: ../fish/guestfish-actions.pod:490
5799 msgid "blockdev-getss"
5800 msgstr ""
5801
5802 #. type: verbatim
5803 #: ../fish/guestfish-actions.pod:492
5804 #, no-wrap
5805 msgid ""
5806 " blockdev-getss device\n"
5807 "\n"
5808 msgstr ""
5809
5810 #. type: textblock
5811 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5812 msgid ""
5813 "This returns the size of sectors on a block device.  Usually 512, but can be "
5814 "larger for modern devices."
5815 msgstr ""
5816
5817 #. type: textblock
5818 #: ../fish/guestfish-actions.pod:497
5819 msgid ""
5820 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5821 msgstr ""
5822
5823 #. type: =head2
5824 #: ../fish/guestfish-actions.pod:502
5825 msgid "blockdev-getsz"
5826 msgstr ""
5827
5828 #. type: verbatim
5829 #: ../fish/guestfish-actions.pod:504
5830 #, no-wrap
5831 msgid ""
5832 " blockdev-getsz device\n"
5833 "\n"
5834 msgstr ""
5835
5836 #. type: textblock
5837 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5838 msgid ""
5839 "This returns the size of the device in units of 512-byte sectors (even if "
5840 "the sectorsize isn't 512 bytes ... weird)."
5841 msgstr ""
5842
5843 #. type: textblock
5844 #: ../fish/guestfish-actions.pod:509
5845 msgid ""
5846 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5847 "blockdev-getsize64> for the more useful I<size in bytes>."
5848 msgstr ""
5849
5850 #. type: =head2
5851 #: ../fish/guestfish-actions.pod:515
5852 msgid "blockdev-rereadpt"
5853 msgstr ""
5854
5855 #. type: verbatim
5856 #: ../fish/guestfish-actions.pod:517
5857 #, no-wrap
5858 msgid ""
5859 " blockdev-rereadpt device\n"
5860 "\n"
5861 msgstr ""
5862
5863 #. type: textblock
5864 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5865 msgid "Reread the partition table on C<device>."
5866 msgstr ""
5867
5868 #. type: =head2
5869 #: ../fish/guestfish-actions.pod:523
5870 msgid "blockdev-setbsz"
5871 msgstr ""
5872
5873 #. type: verbatim
5874 #: ../fish/guestfish-actions.pod:525
5875 #, no-wrap
5876 msgid ""
5877 " blockdev-setbsz device blocksize\n"
5878 "\n"
5879 msgstr ""
5880
5881 #. type: textblock
5882 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5883 msgid "This sets the block size of a device."
5884 msgstr ""
5885
5886 #. type: =head2
5887 #: ../fish/guestfish-actions.pod:534
5888 msgid "blockdev-setro"
5889 msgstr ""
5890
5891 #. type: verbatim
5892 #: ../fish/guestfish-actions.pod:536
5893 #, no-wrap
5894 msgid ""
5895 " blockdev-setro device\n"
5896 "\n"
5897 msgstr ""
5898
5899 #. type: textblock
5900 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5901 msgid "Sets the block device named C<device> to read-only."
5902 msgstr ""
5903
5904 #. type: =head2
5905 #: ../fish/guestfish-actions.pod:542
5906 msgid "blockdev-setrw"
5907 msgstr ""
5908
5909 #. type: verbatim
5910 #: ../fish/guestfish-actions.pod:544
5911 #, no-wrap
5912 msgid ""
5913 " blockdev-setrw device\n"
5914 "\n"
5915 msgstr ""
5916
5917 #. type: textblock
5918 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5919 msgid "Sets the block device named C<device> to read-write."
5920 msgstr ""
5921
5922 #. type: =head2
5923 #: ../fish/guestfish-actions.pod:550
5924 msgid "btrfs-filesystem-resize"
5925 msgstr ""
5926
5927 #. type: verbatim
5928 #: ../fish/guestfish-actions.pod:552
5929 #, no-wrap
5930 msgid ""
5931 " btrfs-filesystem-resize mountpoint [size:..]\n"
5932 "\n"
5933 msgstr ""
5934
5935 #. type: textblock
5936 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5937 msgid "This command resizes a btrfs filesystem."
5938 msgstr ""
5939
5940 #. type: textblock
5941 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5942 msgid ""
5943 "Note that unlike other resize calls, the filesystem has to be mounted and "
5944 "the parameter is the mountpoint not the device (this is a requirement of "
5945 "btrfs itself)."
5946 msgstr ""
5947
5948 #. type: textblock
5949 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3479
5950 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5326
5951 msgid "The optional parameters are:"
5952 msgstr ""
5953
5954 #. type: =item
5955 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3483
5956 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5330
5957 msgid "C<size>"
5958 msgstr ""
5959
5960 #. type: textblock
5961 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5962 msgid ""
5963 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5964 "resized to the maximum size."
5965 msgstr ""
5966
5967 #. type: textblock
5968 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5969 msgid "See also L<btrfs(8)>."
5970 msgstr ""
5971
5972 #. type: =head2
5973 #: ../fish/guestfish-actions.pod:575
5974 msgid "case-sensitive-path"
5975 msgstr ""
5976
5977 #. type: verbatim
5978 #: ../fish/guestfish-actions.pod:577
5979 #, no-wrap
5980 msgid ""
5981 " case-sensitive-path path\n"
5982 "\n"
5983 msgstr ""
5984
5985 #. type: textblock
5986 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5987 msgid ""
5988 "This can be used to resolve case insensitive paths on a filesystem which is "
5989 "case sensitive.  The use case is to resolve paths which you have read from "
5990 "Windows configuration files or the Windows Registry, to the true path."
5991 msgstr ""
5992
5993 #. type: textblock
5994 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5995 msgid ""
5996 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5997 "(and probably others), which is that although the underlying filesystem is "
5998 "case-insensitive, the driver exports the filesystem to Linux as case-"
5999 "sensitive."
6000 msgstr ""
6001
6002 #. type: textblock
6003 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
6004 msgid ""
6005 "One consequence of this is that special directories such as C<c:\\windows> "
6006 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6007 "precise details of how they were created.  In Windows itself this would not "
6008 "be a problem."
6009 msgstr ""
6010
6011 #. type: textblock
6012 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
6013 msgid ""
6014 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
6015 "#posixfilenames1>"
6016 msgstr ""
6017
6018 #. type: textblock
6019 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
6020 msgid ""
6021 "This function resolves the true case of each element in the path and returns "
6022 "the case-sensitive path."
6023 msgstr ""
6024
6025 #. type: textblock
6026 #: ../fish/guestfish-actions.pod:601
6027 msgid ""
6028 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
6029 "WINDOWS/system32\"> (the exact return value would depend on details of how "
6030 "the directories were originally created under Windows)."
6031 msgstr ""
6032
6033 #. type: textblock
6034 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
6035 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6036 msgstr ""
6037
6038 #. type: textblock
6039 #: ../fish/guestfish-actions.pod:609
6040 msgid "See also L</realpath>."
6041 msgstr ""
6042
6043 #. type: =head2
6044 #: ../fish/guestfish-actions.pod:611
6045 msgid "cat"
6046 msgstr "cat"
6047
6048 #. type: verbatim
6049 #: ../fish/guestfish-actions.pod:613
6050 #, no-wrap
6051 msgid ""
6052 " cat path\n"
6053 "\n"
6054 msgstr ""
6055 " cat шлях\n"
6056 "\n"
6057
6058 #. type: textblock
6059 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3899
6060 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5969
6061 msgid "Return the contents of the file named C<path>."
6062 msgstr ""
6063
6064 #. type: textblock
6065 #: ../fish/guestfish-actions.pod:617
6066 msgid ""
6067 "Note that this function cannot correctly handle binary files (specifically, "
6068 "files containing C<\\0> character which is treated as end of string).  For "
6069 "those you need to use the L</read-file> or L</download> functions which have "
6070 "a more complex interface."
6071 msgstr ""
6072
6073 #. type: textblock
6074 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
6075 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980
6076 #: ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057
6077 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259
6078 #: ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582
6079 #: ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647
6080 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676
6081 #: ../fish/guestfish-actions.pod:3769 ../fish/guestfish-actions.pod:3784
6082 #: ../fish/guestfish-actions.pod:3860 ../fish/guestfish-actions.pod:3877
6083 #: ../fish/guestfish-actions.pod:3892 ../fish/guestfish-actions.pod:4573
6084 #: ../fish/guestfish-actions.pod:4619 ../fish/guestfish-actions.pod:4704
6085 #: ../fish/guestfish-actions.pod:4719 ../fish/guestfish-actions.pod:5125
6086 #: ../fish/guestfish-actions.pod:5137 ../fish/guestfish-actions.pod:5155
6087 #: ../fish/guestfish-actions.pod:5172 ../fish/guestfish-actions.pod:5182
6088 #: ../fish/guestfish-actions.pod:5239 ../fish/guestfish-actions.pod:5249
6089 #: ../fish/guestfish-actions.pod:5278 ../fish/guestfish-actions.pod:5288
6090 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
6091 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1550
6092 #: ../src/guestfs-actions.pod:1569 ../src/guestfs-actions.pod:1672
6093 #: ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1937
6094 #: ../src/guestfs-actions.pod:2417 ../src/guestfs-actions.pod:2436
6095 #: ../src/guestfs-actions.pod:2501 ../src/guestfs-actions.pod:2525
6096 #: ../src/guestfs-actions.pod:2542 ../src/guestfs-actions.pod:2571
6097 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5777
6098 #: ../src/guestfs-actions.pod:5908 ../src/guestfs-actions.pod:5934
6099 #: ../src/guestfs-actions.pod:5958 ../src/guestfs-actions.pod:6923
6100 #: ../src/guestfs-actions.pod:6978 ../src/guestfs-actions.pod:7124
6101 #: ../src/guestfs-actions.pod:7148 ../src/guestfs-actions.pod:7813
6102 #: ../src/guestfs-actions.pod:7833 ../src/guestfs-actions.pod:7866
6103 #: ../src/guestfs-actions.pod:7885 ../src/guestfs-actions.pod:7904
6104 #: ../src/guestfs-actions.pod:7998 ../src/guestfs-actions.pod:8017
6105 #: ../src/guestfs-actions.pod:8063 ../src/guestfs-actions.pod:8082
6106 msgid ""
6107 "Because of the message protocol, there is a transfer limit of somewhere "
6108 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
6109 msgstr ""
6110
6111 #. type: =head2
6112 #: ../fish/guestfish-actions.pod:625
6113 msgid "checksum"
6114 msgstr "checksum"
6115
6116 #. type: verbatim
6117 #: ../fish/guestfish-actions.pod:627
6118 #, no-wrap
6119 msgid ""
6120 " checksum csumtype path\n"
6121 "\n"
6122 msgstr ""
6123
6124 #. type: textblock
6125 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
6126 msgid ""
6127 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6128 msgstr ""
6129
6130 #. type: textblock
6131 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
6132 msgid ""
6133 "The type of checksum to compute is given by the C<csumtype> parameter which "
6134 "must have one of the following values:"
6135 msgstr ""
6136
6137 #. type: =item
6138 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
6139 msgid "C<crc>"
6140 msgstr "C<crc>"
6141
6142 #. type: textblock
6143 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
6144 msgid ""
6145 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6146 "C<cksum> command."
6147 msgstr ""
6148
6149 #. type: =item
6150 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
6151 msgid "C<md5>"
6152 msgstr "C<md5>"
6153
6154 #. type: textblock
6155 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
6156 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6157 msgstr ""
6158
6159 #. type: =item
6160 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
6161 msgid "C<sha1>"
6162 msgstr "C<sha1>"
6163
6164 #. type: textblock
6165 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
6166 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6167 msgstr ""
6168
6169 #. type: =item
6170 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
6171 msgid "C<sha224>"
6172 msgstr "C<sha224>"
6173
6174 #. type: textblock
6175 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
6176 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6177 msgstr ""
6178
6179 #. type: =item
6180 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
6181 msgid "C<sha256>"
6182 msgstr "C<sha256>"
6183
6184 #. type: textblock
6185 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
6186 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6187 msgstr ""
6188
6189 #. type: =item
6190 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
6191 msgid "C<sha384>"
6192 msgstr "C<sha384>"
6193
6194 #. type: textblock
6195 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
6196 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6197 msgstr ""
6198
6199 #. type: =item
6200 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
6201 msgid "C<sha512>"
6202 msgstr "C<sha512>"
6203
6204 #. type: textblock
6205 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
6206 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6207 msgstr ""
6208
6209 #. type: textblock
6210 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
6211 msgid "The checksum is returned as a printable string."
6212 msgstr ""
6213
6214 #. type: textblock
6215 #: ../fish/guestfish-actions.pod:670
6216 msgid "To get the checksum for a device, use L</checksum-device>."
6217 msgstr ""
6218
6219 #. type: textblock
6220 #: ../fish/guestfish-actions.pod:672
6221 msgid "To get the checksums for many files, use L</checksums-out>."
6222 msgstr ""
6223
6224 #. type: =head2
6225 #: ../fish/guestfish-actions.pod:674
6226 msgid "checksum-device"
6227 msgstr "checksum-device"
6228
6229 #. type: verbatim
6230 #: ../fish/guestfish-actions.pod:676
6231 #, no-wrap
6232 msgid ""
6233 " checksum-device csumtype device\n"
6234 "\n"
6235 msgstr ""
6236
6237 #. type: textblock
6238 #: ../fish/guestfish-actions.pod:678
6239 msgid ""
6240 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6241 "device named C<device>.  For the types of checksums supported see the L</"
6242 "checksum> command."
6243 msgstr ""
6244
6245 #. type: =head2
6246 #: ../fish/guestfish-actions.pod:682
6247 msgid "checksums-out"
6248 msgstr ""
6249
6250 #. type: verbatim
6251 #: ../fish/guestfish-actions.pod:684
6252 #, no-wrap
6253 msgid ""
6254 " checksums-out csumtype directory (sumsfile|-)\n"
6255 "\n"
6256 msgstr ""
6257
6258 #. type: textblock
6259 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6260 msgid ""
6261 "This command computes the checksums of all regular files in C<directory> and "
6262 "then emits a list of those checksums to the local output file C<sumsfile>."
6263 msgstr ""
6264
6265 #. type: textblock
6266 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6267 msgid ""
6268 "This can be used for verifying the integrity of a virtual machine.  However "
6269 "to be properly secure you should pay attention to the output of the checksum "
6270 "command (it uses the ones from GNU coreutils).  In particular when the "
6271 "filename is not printable, coreutils uses a special backslash syntax.  For "
6272 "more information, see the GNU coreutils info file."
6273 msgstr ""
6274
6275 #. type: =head2
6276 #: ../fish/guestfish-actions.pod:700
6277 msgid "chmod"
6278 msgstr "chmod"
6279
6280 #. type: verbatim
6281 #: ../fish/guestfish-actions.pod:702
6282 #, no-wrap
6283 msgid ""
6284 " chmod mode path\n"
6285 "\n"
6286 msgstr ""
6287
6288 #. type: textblock
6289 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6290 msgid ""
6291 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6292 "supported."
6293 msgstr ""
6294
6295 #. type: textblock
6296 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6297 msgid ""
6298 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6299 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6300 "C<700>."
6301 msgstr ""
6302
6303 #. type: textblock
6304 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3132
6305 #: ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3281
6306 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:1064
6307 #: ../src/guestfs-actions.pod:4733 ../src/guestfs-actions.pod:4942
6308 #: ../src/guestfs-actions.pod:4961 ../src/guestfs-actions.pod:4980
6309 msgid "The mode actually set is affected by the umask."
6310 msgstr ""
6311
6312 #. type: =head2
6313 #: ../fish/guestfish-actions.pod:713
6314 msgid "chown"
6315 msgstr "chown"
6316
6317 #. type: verbatim
6318 #: ../fish/guestfish-actions.pod:715
6319 #, no-wrap
6320 msgid ""
6321 " chown owner group path\n"
6322 "\n"
6323 msgstr ""
6324
6325 #. type: textblock
6326 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6327 msgid "Change the file owner to C<owner> and group to C<group>."
6328 msgstr ""
6329
6330 #. type: textblock
6331 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567
6332 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3804
6333 msgid ""
6334 "Only numeric uid and gid are supported.  If you want to use names, you will "
6335 "need to locate and parse the password file yourself (Augeas support makes "
6336 "this relatively easy)."
6337 msgstr ""
6338
6339 #. type: =head2
6340 #: ../fish/guestfish-actions.pod:723
6341 msgid "command"
6342 msgstr ""
6343
6344 #. type: verbatim
6345 #: ../fish/guestfish-actions.pod:725
6346 #, no-wrap
6347 msgid ""
6348 " command 'arguments ...'\n"
6349 "\n"
6350 msgstr ""
6351
6352 #. type: textblock
6353 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6354 msgid ""
6355 "This call runs a command from the guest filesystem.  The filesystem must be "
6356 "mounted, and must contain a compatible operating system (ie. something "
6357 "Linux, with the same or compatible processor architecture)."
6358 msgstr ""
6359
6360 #. type: textblock
6361 #: ../fish/guestfish-actions.pod:732
6362 msgid ""
6363 "The single parameter is an argv-style list of arguments.  The first element "
6364 "is the name of the program to run.  Subsequent elements are parameters.  The "
6365 "list must be non-empty (ie. must contain a program name).  Note that the "
6366 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6367 msgstr ""
6368
6369 #. type: textblock
6370 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6371 msgid "The return value is anything printed to I<stdout> by the command."
6372 msgstr ""
6373
6374 #. type: textblock
6375 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6376 msgid ""
6377 "If the command returns a non-zero exit status, then this function returns an "
6378 "error message.  The error message string is the content of I<stderr> from "
6379 "the command."
6380 msgstr ""
6381
6382 #. type: textblock
6383 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6384 msgid ""
6385 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6386 "bin>.  If you require a program from another location, you should provide "
6387 "the full path in the first parameter."
6388 msgstr ""
6389
6390 #. type: textblock
6391 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6392 msgid ""
6393 "Shared libraries and data files required by the program must be available on "
6394 "filesystems which are mounted in the correct places.  It is the caller's "
6395 "responsibility to ensure all filesystems that are needed are mounted at the "
6396 "right locations."
6397 msgstr ""
6398
6399 #. type: =head2
6400 #: ../fish/guestfish-actions.pod:760
6401 msgid "command-lines"
6402 msgstr ""
6403
6404 #. type: verbatim
6405 #: ../fish/guestfish-actions.pod:762
6406 #, no-wrap
6407 msgid ""
6408 " command-lines 'arguments ...'\n"
6409 "\n"
6410 msgstr ""
6411
6412 #. type: textblock
6413 #: ../fish/guestfish-actions.pod:764
6414 msgid ""
6415 "This is the same as L</command>, but splits the result into a list of lines."
6416 msgstr ""
6417
6418 #. type: textblock
6419 #: ../fish/guestfish-actions.pod:767
6420 msgid "See also: L</sh-lines>"
6421 msgstr ""
6422
6423 #. type: =head2
6424 #: ../fish/guestfish-actions.pod:772
6425 #, fuzzy
6426 #| msgid "pread-device"
6427 msgid "compress-device-out"
6428 msgstr "pread-device"
6429
6430 #. type: verbatim
6431 #: ../fish/guestfish-actions.pod:774
6432 #, no-wrap
6433 msgid ""
6434 " compress-device-out ctype device (zdevice|-) [level:..]\n"
6435 "\n"
6436 msgstr ""
6437
6438 #. type: textblock
6439 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
6440 msgid ""
6441 "This command compresses C<device> and writes it out to the local file "
6442 "C<zdevice>."
6443 msgstr ""
6444
6445 #. type: textblock
6446 #: ../fish/guestfish-actions.pod:779
6447 msgid ""
6448 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
6449 "compress-out>."
6450 msgstr ""
6451
6452 #. type: =head2
6453 #: ../fish/guestfish-actions.pod:786
6454 #, fuzzy
6455 #| msgid "copy-out"
6456 msgid "compress-out"
6457 msgstr "copy-out"
6458
6459 #. type: verbatim
6460 #: ../fish/guestfish-actions.pod:788
6461 #, no-wrap
6462 msgid ""
6463 " compress-out ctype file (zfile|-) [level:..]\n"
6464 "\n"
6465 msgstr ""
6466
6467 #. type: textblock
6468 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1218
6469 msgid ""
6470 "This command compresses C<file> and writes it out to the local file C<zfile>."
6471 msgstr ""
6472
6473 #. type: textblock
6474 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1221
6475 msgid ""
6476 "The compression program used is controlled by the C<ctype> parameter.  "
6477 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
6478 "Some compression types may not be supported by particular builds of "
6479 "libguestfs, in which case you will get an error containing the substring "
6480 "\"not supported\"."
6481 msgstr ""
6482
6483 #. type: textblock
6484 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1227
6485 msgid ""
6486 "The optional C<level> parameter controls compression level.  The meaning and "
6487 "default for this parameter depends on the compression program being used."
6488 msgstr ""
6489
6490 #. type: =head2
6491 #: ../fish/guestfish-actions.pod:807
6492 msgid "config"
6493 msgstr ""
6494
6495 #. type: verbatim
6496 #: ../fish/guestfish-actions.pod:809
6497 #, no-wrap
6498 msgid ""
6499 " config qemuparam qemuvalue\n"
6500 "\n"
6501 msgstr ""
6502
6503 #. type: textblock
6504 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1266
6505 msgid ""
6506 "This can be used to add arbitrary qemu command line parameters of the form "
6507 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6508 "setting some parameters which would interfere with parameters that we use."
6509 msgstr ""
6510
6511 #. type: textblock
6512 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1271
6513 msgid "The first character of C<param> string must be a C<-> (dash)."
6514 msgstr ""
6515
6516 #. type: textblock
6517 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1273
6518 msgid "C<value> can be NULL."
6519 msgstr ""
6520
6521 #. type: =head2
6522 #: ../fish/guestfish-actions.pod:820
6523 msgid "copy-size"
6524 msgstr ""
6525
6526 #. type: verbatim
6527 #: ../fish/guestfish-actions.pod:822
6528 #, no-wrap
6529 msgid ""
6530 " copy-size src dest size\n"
6531 "\n"
6532 msgstr ""
6533
6534 #. type: textblock
6535 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1287
6536 msgid ""
6537 "This command copies exactly C<size> bytes from one source device or file "
6538 "C<src> to another destination device or file C<dest>."
6539 msgstr ""
6540
6541 #. type: textblock
6542 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1290
6543 msgid ""
6544 "Note this will fail if the source is too short or if the destination is not "
6545 "large enough."
6546 msgstr ""
6547
6548 #. type: =head2
6549 #: ../fish/guestfish-actions.pod:830
6550 msgid "cp"
6551 msgstr "cp"
6552
6553 #. type: verbatim
6554 #: ../fish/guestfish-actions.pod:832
6555 #, no-wrap
6556 msgid ""
6557 " cp src dest\n"
6558 "\n"
6559 msgstr ""
6560
6561 #. type: textblock
6562 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1309
6563 msgid ""
6564 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6565 "destination filename or destination directory."
6566 msgstr ""
6567
6568 #. type: =head2
6569 #: ../fish/guestfish-actions.pod:837
6570 msgid "cp-a"
6571 msgstr "cp-a"
6572
6573 #. type: verbatim
6574 #: ../fish/guestfish-actions.pod:839
6575 #, no-wrap
6576 msgid ""
6577 " cp-a src dest\n"
6578 "\n"
6579 msgstr ""
6580
6581 #. type: textblock
6582 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1323
6583 msgid ""
6584 "This copies a file or directory from C<src> to C<dest> recursively using the "
6585 "C<cp -a> command."
6586 msgstr ""
6587
6588 #. type: =head2
6589 #: ../fish/guestfish-actions.pod:844
6590 msgid "dd"
6591 msgstr "dd"
6592
6593 #. type: verbatim
6594 #: ../fish/guestfish-actions.pod:846
6595 #, no-wrap
6596 msgid ""
6597 " dd src dest\n"
6598 "\n"
6599 msgstr ""
6600
6601 #. type: textblock
6602 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1337
6603 msgid ""
6604 "This command copies from one source device or file C<src> to another "
6605 "destination device or file C<dest>.  Normally you would use this to copy to "
6606 "or from a device or partition, for example to duplicate a filesystem."
6607 msgstr ""
6608
6609 #. type: textblock
6610 #: ../fish/guestfish-actions.pod:853
6611 msgid ""
6612 "If the destination is a device, it must be as large or larger than the "
6613 "source file or device, otherwise the copy will fail.  This command cannot do "
6614 "partial copies (see L</copy-size>)."
6615 msgstr ""
6616
6617 #. type: =head2
6618 #: ../fish/guestfish-actions.pod:857
6619 msgid "df"
6620 msgstr "df"
6621
6622 #. type: verbatim
6623 #: ../fish/guestfish-actions.pod:859
6624 #, no-wrap
6625 msgid ""
6626 " df\n"
6627 "\n"
6628 msgstr ""
6629 " df\n"
6630 "\n"
6631
6632 #. type: textblock
6633 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1355
6634 msgid "This command runs the C<df> command to report disk space used."
6635 msgstr ""
6636
6637 #. type: textblock
6638 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
6639 msgid ""
6640 "This command is mostly useful for interactive sessions.  It is I<not> "
6641 "intended that you try to parse the output string.  Use L</statvfs> from "
6642 "programs."
6643 msgstr ""
6644
6645 #. type: =head2
6646 #: ../fish/guestfish-actions.pod:867
6647 msgid "df-h"
6648 msgstr "df-h"
6649
6650 #. type: verbatim
6651 #: ../fish/guestfish-actions.pod:869
6652 #, no-wrap
6653 msgid ""
6654 " df-h\n"
6655 "\n"
6656 msgstr ""
6657 " df-h\n"
6658 "\n"
6659
6660 #. type: textblock
6661 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1371
6662 msgid ""
6663 "This command runs the C<df -h> command to report disk space used in human-"
6664 "readable format."
6665 msgstr ""
6666
6667 #. type: =head2
6668 #: ../fish/guestfish-actions.pod:878
6669 msgid "dmesg"
6670 msgstr "dmesg"
6671
6672 #. type: verbatim
6673 #: ../fish/guestfish-actions.pod:880
6674 #, no-wrap
6675 msgid ""
6676 " dmesg\n"
6677 "\n"
6678 msgstr ""
6679 " dmesg\n"
6680 "\n"
6681
6682 #. type: textblock
6683 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1388
6684 msgid ""
6685 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6686 "This is sometimes useful for extended debugging of problems."
6687 msgstr ""
6688
6689 #. type: textblock
6690 #: ../fish/guestfish-actions.pod:886
6691 msgid ""
6692 "Another way to get the same information is to enable verbose messages with "
6693 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6694 "before running the program."
6695 msgstr ""
6696
6697 #. type: =head2
6698 #: ../fish/guestfish-actions.pod:891
6699 msgid "download"
6700 msgstr "download"
6701
6702 #. type: verbatim
6703 #: ../fish/guestfish-actions.pod:893
6704 #, no-wrap
6705 msgid ""
6706 " download remotefilename (filename|-)\n"
6707 "\n"
6708 msgstr ""
6709
6710 #. type: textblock
6711 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908
6712 #: ../src/guestfs-actions.pod:1409 ../src/guestfs-actions.pod:1434
6713 msgid ""
6714 "Download file C<remotefilename> and save it as C<filename> on the local "
6715 "machine."
6716 msgstr ""
6717
6718 #. type: textblock
6719 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4877
6720 #: ../src/guestfs-actions.pod:1412 ../src/guestfs-actions.pod:7383
6721 msgid "C<filename> can also be a named pipe."
6722 msgstr ""
6723
6724 #. type: textblock
6725 #: ../fish/guestfish-actions.pod:900
6726 msgid "See also L</upload>, L</cat>."
6727 msgstr ""
6728
6729 #. type: =head2
6730 #: ../fish/guestfish-actions.pod:904
6731 msgid "download-offset"
6732 msgstr "download-offset"
6733
6734 #. type: verbatim
6735 #: ../fish/guestfish-actions.pod:906
6736 #, no-wrap
6737 msgid ""
6738 " download-offset remotefilename (filename|-) offset size\n"
6739 "\n"
6740 msgstr ""
6741
6742 #. type: textblock
6743 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1437
6744 msgid ""
6745 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6746 "region must be within the file or device)."
6747 msgstr ""
6748
6749 #. type: textblock
6750 #: ../fish/guestfish-actions.pod:914
6751 msgid ""
6752 "Note that there is no limit on the amount of data that can be downloaded "
6753 "with this call, unlike with L</pread>, and this call always reads the full "
6754 "amount unless an error occurs."
6755 msgstr ""
6756
6757 #. type: textblock
6758 #: ../fish/guestfish-actions.pod:919
6759 msgid "See also L</download>, L</pread>."
6760 msgstr ""
6761
6762 #. type: =head2
6763 #: ../fish/guestfish-actions.pod:923
6764 msgid "drop-caches"
6765 msgstr ""
6766
6767 #. type: verbatim
6768 #: ../fish/guestfish-actions.pod:925
6769 #, no-wrap
6770 msgid ""
6771 " drop-caches whattodrop\n"
6772 "\n"
6773 msgstr ""
6774
6775 #. type: textblock
6776 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1462
6777 msgid ""
6778 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6779 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6780 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6781 msgstr ""
6782
6783 #. type: textblock
6784 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1467
6785 msgid "Setting C<whattodrop> to 3 should drop everything."
6786 msgstr ""
6787
6788 #. type: textblock
6789 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1469
6790 msgid ""
6791 "This automatically calls L<sync(2)> before the operation, so that the "
6792 "maximum guest memory is freed."
6793 msgstr ""
6794
6795 #. type: =head2
6796 #: ../fish/guestfish-actions.pod:937
6797 msgid "du"
6798 msgstr "du"
6799
6800 #. type: verbatim
6801 #: ../fish/guestfish-actions.pod:939
6802 #, no-wrap
6803 msgid ""
6804 " du path\n"
6805 "\n"
6806 msgstr ""
6807 " du шлях\n"
6808 "\n"
6809
6810 #. type: textblock
6811 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1482
6812 msgid ""
6813 "This command runs the C<du -s> command to estimate file space usage for "
6814 "C<path>."
6815 msgstr ""
6816
6817 #. type: textblock
6818 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1485
6819 msgid ""
6820 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6821 "estimate includes the contents of the directory and all subdirectories "
6822 "(recursively)."
6823 msgstr ""
6824
6825 #. type: textblock
6826 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1489
6827 msgid ""
6828 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6829 msgstr ""
6830
6831 #. type: =head2
6832 #: ../fish/guestfish-actions.pod:951
6833 msgid "e2fsck-f"
6834 msgstr "e2fsck-f"
6835
6836 #. type: verbatim
6837 #: ../fish/guestfish-actions.pod:953
6838 #, no-wrap
6839 msgid ""
6840 " e2fsck-f device\n"
6841 "\n"
6842 msgstr ""
6843
6844 #. type: textblock
6845 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1507
6846 msgid ""
6847 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6848 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6849 "clean (I<-f>)."
6850 msgstr ""
6851
6852 #. type: textblock
6853 #: ../fish/guestfish-actions.pod:959
6854 msgid ""
6855 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6856 "should use L</fsck>."
6857 msgstr ""
6858
6859 #. type: =head2
6860 #: ../fish/guestfish-actions.pod:962
6861 msgid "echo-daemon"
6862 msgstr ""
6863
6864 #. type: verbatim
6865 #: ../fish/guestfish-actions.pod:964
6866 #, no-wrap
6867 msgid ""
6868 " echo-daemon 'words ...'\n"
6869 "\n"
6870 msgstr ""
6871
6872 #. type: textblock
6873 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1524
6874 msgid ""
6875 "This command concatenates the list of C<words> passed with single spaces "
6876 "between them and returns the resulting string."
6877 msgstr ""
6878
6879 #. type: textblock
6880 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1527
6881 msgid "You can use this command to test the connection through to the daemon."
6882 msgstr ""
6883
6884 #. type: textblock
6885 #: ../fish/guestfish-actions.pod:971
6886 msgid "See also L</ping-daemon>."
6887 msgstr ""
6888
6889 #. type: =head2
6890 #: ../fish/guestfish-actions.pod:973
6891 msgid "egrep"
6892 msgstr "egrep"
6893
6894 #. type: verbatim
6895 #: ../fish/guestfish-actions.pod:975
6896 #, no-wrap
6897 msgid ""
6898 " egrep regex path\n"
6899 "\n"
6900 msgstr ""
6901
6902 #. type: textblock
6903 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1543
6904 msgid ""
6905 "This calls the external C<egrep> program and returns the matching lines."
6906 msgstr ""
6907
6908 #. type: =head2
6909 #: ../fish/guestfish-actions.pod:983
6910 msgid "egrepi"
6911 msgstr "egrepi"
6912
6913 #. type: verbatim
6914 #: ../fish/guestfish-actions.pod:985
6915 #, no-wrap
6916 msgid ""
6917 " egrepi regex path\n"
6918 "\n"
6919 msgstr ""
6920
6921 #. type: textblock
6922 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1562
6923 msgid ""
6924 "This calls the external C<egrep -i> program and returns the matching lines."
6925 msgstr ""
6926
6927 #. type: =head2
6928 #: ../fish/guestfish-actions.pod:993
6929 msgid "equal"
6930 msgstr "equal"
6931
6932 #. type: verbatim
6933 #: ../fish/guestfish-actions.pod:995
6934 #, no-wrap
6935 msgid ""
6936 " equal file1 file2\n"
6937 "\n"
6938 msgstr ""
6939 " equal файл1 файл2\n"
6940 "\n"
6941
6942 #. type: textblock
6943 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1581
6944 msgid ""
6945 "This compares the two files C<file1> and C<file2> and returns true if their "
6946 "content is exactly equal, or false otherwise."
6947 msgstr ""
6948
6949 #. type: textblock
6950 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1584
6951 msgid "The external L<cmp(1)> program is used for the comparison."
6952 msgstr ""
6953
6954 #. type: =head2
6955 #: ../fish/guestfish-actions.pod:1002
6956 msgid "exists"
6957 msgstr "exists"
6958
6959 #. type: verbatim
6960 #: ../fish/guestfish-actions.pod:1004
6961 #, no-wrap
6962 msgid ""
6963 " exists path\n"
6964 "\n"
6965 msgstr ""
6966 " exists шлях\n"
6967 "\n"
6968
6969 #. type: textblock
6970 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1596
6971 msgid ""
6972 "This returns C<true> if and only if there is a file, directory (or anything) "
6973 "with the given C<path> name."
6974 msgstr ""
6975
6976 #. type: textblock
6977 #: ../fish/guestfish-actions.pod:1009
6978 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6979 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6980
6981 #. type: =head2
6982 #: ../fish/guestfish-actions.pod:1011
6983 msgid "fallocate"
6984 msgstr "fallocate"
6985
6986 #. type: verbatim
6987 #: ../fish/guestfish-actions.pod:1013
6988 #, no-wrap
6989 msgid ""
6990 " fallocate path len\n"
6991 "\n"
6992 msgstr ""
6993 " fallocate шлях довжина\n"
6994 "\n"
6995
6996 #. type: textblock
6997 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034
6998 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:1638
6999 msgid ""
7000 "This command preallocates a file (containing zero bytes) named C<path> of "
7001 "size C<len> bytes.  If the file exists already, it is overwritten."
7002 msgstr ""
7003
7004 #. type: textblock
7005 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1623
7006 msgid ""
7007 "Do not confuse this with the guestfish-specific C<alloc> command which "
7008 "allocates a file in the host and attaches it as a device."
7009 msgstr ""
7010
7011 #. type: textblock
7012 #: ../fish/guestfish-actions.pod:1023
7013 msgid ""
7014 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7015 "instead."
7016 msgstr ""
7017
7018 #. type: =head2
7019 #: ../fish/guestfish-actions.pod:1030
7020 msgid "fallocate64"
7021 msgstr "fallocate64"
7022
7023 #. type: verbatim
7024 #: ../fish/guestfish-actions.pod:1032
7025 #, no-wrap
7026 msgid ""
7027 " fallocate64 path len\n"
7028 "\n"
7029 msgstr ""
7030 " fallocate64 шлях довжина\n"
7031 "\n"
7032
7033 #. type: textblock
7034 #: ../fish/guestfish-actions.pod:1038
7035 msgid ""
7036 "Note that this call allocates disk blocks for the file.  To create a sparse "
7037 "file use L</truncate-size> instead."
7038 msgstr ""
7039
7040 #. type: textblock
7041 #: ../fish/guestfish-actions.pod:1041
7042 msgid ""
7043 "The deprecated call L</fallocate> does the same, but owing to an oversight "
7044 "it only allowed 30 bit lengths to be specified, effectively limiting the "
7045 "maximum size of files created through that call to 1GB."
7046 msgstr ""
7047
7048 #. type: textblock
7049 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1650
7050 msgid ""
7051 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7052 "commands which create a file in the host and attach it as a device."
7053 msgstr ""
7054
7055 #. type: =head2
7056 #: ../fish/guestfish-actions.pod:1050
7057 msgid "fgrep"
7058 msgstr "fgrep"
7059
7060 #. type: verbatim
7061 #: ../fish/guestfish-actions.pod:1052
7062 #, no-wrap
7063 msgid ""
7064 " fgrep pattern path\n"
7065 "\n"
7066 msgstr ""
7067 " fgrep шаблон шлях\n"
7068 "\n"
7069
7070 #. type: textblock
7071 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1665
7072 msgid ""
7073 "This calls the external C<fgrep> program and returns the matching lines."
7074 msgstr ""
7075
7076 #. type: =head2
7077 #: ../fish/guestfish-actions.pod:1060
7078 msgid "fgrepi"
7079 msgstr "fgrepi"
7080
7081 #. type: verbatim
7082 #: ../fish/guestfish-actions.pod:1062
7083 #, no-wrap
7084 msgid ""
7085 " fgrepi pattern path\n"
7086 "\n"
7087 msgstr ""
7088 " fgrepi шаблон шлях\n"
7089 "\n"
7090
7091 #. type: textblock
7092 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1684
7093 msgid ""
7094 "This calls the external C<fgrep -i> program and returns the matching lines."
7095 msgstr ""
7096
7097 #. type: =head2
7098 #: ../fish/guestfish-actions.pod:1070
7099 msgid "file"
7100 msgstr "file"
7101
7102 #. type: verbatim
7103 #: ../fish/guestfish-actions.pod:1072
7104 #, no-wrap
7105 msgid ""
7106 " file path\n"
7107 "\n"
7108 msgstr ""
7109 " file шлях\n"
7110 "\n"
7111
7112 #. type: textblock
7113 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1702
7114 msgid ""
7115 "This call uses the standard L<file(1)> command to determine the type or "
7116 "contents of the file."
7117 msgstr ""
7118
7119 #. type: textblock
7120 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1705
7121 msgid ""
7122 "This call will also transparently look inside various types of compressed "
7123 "file."
7124 msgstr ""
7125
7126 #. type: textblock
7127 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1708
7128 msgid ""
7129 "The exact command which runs is C<file -zb path>.  Note in particular that "
7130 "the filename is not prepended to the output (the I<-b> option)."
7131 msgstr ""
7132
7133 #. type: textblock
7134 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1712
7135 msgid ""
7136 "The output depends on the output of the underlying L<file(1)> command and it "
7137 "can change in future in ways beyond our control.  In other words, the output "
7138 "is not guaranteed by the ABI."
7139 msgstr ""
7140
7141 #. type: textblock
7142 #: ../fish/guestfish-actions.pod:1088
7143 msgid ""
7144 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7145 "(etc), L</is-zero>."
7146 msgstr ""
7147
7148 #. type: =head2
7149 #: ../fish/guestfish-actions.pod:1091
7150 msgid "file-architecture"
7151 msgstr "file-architecture"
7152
7153 #. type: verbatim
7154 #: ../fish/guestfish-actions.pod:1093
7155 #, no-wrap
7156 msgid ""
7157 " file-architecture filename\n"
7158 "\n"
7159 msgstr ""
7160 " file-architecture назва_файла\n"
7161 "\n"
7162
7163 #. type: textblock
7164 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1730
7165 msgid ""
7166 "This detects the architecture of the binary C<filename>, and returns it if "
7167 "known."
7168 msgstr ""
7169
7170 #. type: textblock
7171 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1733
7172 msgid "Currently defined architectures are:"
7173 msgstr ""
7174
7175 #. type: =item
7176 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1737
7177 msgid "\"i386\""
7178 msgstr "\"i386\""
7179
7180 #. type: textblock
7181 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1739
7182 msgid ""
7183 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7184 "irrespective of the precise processor requirements of the binary."
7185 msgstr ""
7186
7187 #. type: =item
7188 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1742
7189 msgid "\"x86_64\""
7190 msgstr "\"x86_64\""
7191
7192 #. type: textblock
7193 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1744
7194 msgid "64 bit x86-64."
7195 msgstr ""
7196
7197 #. type: =item
7198 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1746
7199 msgid "\"sparc\""
7200 msgstr ""
7201
7202 #. type: textblock
7203 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1748
7204 msgid "32 bit SPARC."
7205 msgstr ""
7206
7207 #. type: =item
7208 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1750
7209 msgid "\"sparc64\""
7210 msgstr ""
7211
7212 #. type: textblock
7213 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1752
7214 msgid "64 bit SPARC V9 and above."
7215 msgstr ""
7216
7217 #. type: =item
7218 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1754
7219 msgid "\"ia64\""
7220 msgstr "\"ia64\""
7221
7222 #. type: textblock
7223 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1756
7224 msgid "Intel Itanium."
7225 msgstr "Intel Itanium."
7226
7227 #. type: =item
7228 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1758
7229 msgid "\"ppc\""
7230 msgstr ""
7231
7232 #. type: textblock
7233 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1760
7234 msgid "32 bit Power PC."
7235 msgstr ""
7236
7237 #. type: =item
7238 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1762
7239 msgid "\"ppc64\""
7240 msgstr ""
7241
7242 #. type: textblock
7243 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1764
7244 msgid "64 bit Power PC."
7245 msgstr ""
7246
7247 #. type: textblock
7248 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1768
7249 msgid "Libguestfs may return other architecture strings in future."
7250 msgstr ""
7251
7252 #. type: textblock
7253 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1770
7254 msgid "The function works on at least the following types of files:"
7255 msgstr ""
7256
7257 #. type: textblock
7258 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1776
7259 msgid "many types of Un*x and Linux binary"
7260 msgstr ""
7261
7262 #. type: textblock
7263 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1780
7264 msgid "many types of Un*x and Linux shared library"
7265 msgstr ""
7266
7267 #. type: textblock
7268 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1784
7269 msgid "Windows Win32 and Win64 binaries"
7270 msgstr ""
7271
7272 #. type: textblock
7273 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1788
7274 msgid "Windows Win32 and Win64 DLLs"
7275 msgstr ""
7276
7277 #. type: textblock
7278 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1790
7279 msgid "Win32 binaries and DLLs return C<i386>."
7280 msgstr ""
7281
7282 #. type: textblock
7283 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1792
7284 msgid "Win64 binaries and DLLs return C<x86_64>."
7285 msgstr ""
7286
7287 #. type: textblock
7288 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1796
7289 msgid "Linux kernel modules"
7290 msgstr ""
7291
7292 #. type: textblock
7293 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1800
7294 msgid "Linux new-style initrd images"
7295 msgstr ""
7296
7297 #. type: textblock
7298 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1804
7299 msgid "some non-x86 Linux vmlinuz kernels"
7300 msgstr ""
7301
7302 #. type: textblock
7303 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1808
7304 msgid "What it can't do currently:"
7305 msgstr ""
7306
7307 #. type: textblock
7308 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1814
7309 msgid "static libraries (libfoo.a)"
7310 msgstr ""
7311
7312 #. type: textblock
7313 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1818
7314 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7315 msgstr ""
7316
7317 #. type: textblock
7318 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1822
7319 msgid "x86 Linux vmlinuz kernels"
7320 msgstr ""
7321
7322 #. type: textblock
7323 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1824
7324 msgid ""
7325 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7326 "compressed code, and are horribly hard to unpack.  If you want to find the "
7327 "architecture of a kernel, use the architecture of the associated initrd or "
7328 "kernel module(s) instead."
7329 msgstr ""
7330
7331 #. type: =head2
7332 #: ../fish/guestfish-actions.pod:1196
7333 msgid "filesize"
7334 msgstr "filesize"
7335
7336 #. type: verbatim
7337 #: ../fish/guestfish-actions.pod:1198
7338 #, no-wrap
7339 msgid ""
7340 " filesize file\n"
7341 "\n"
7342 msgstr ""
7343 " filesize файл\n"
7344 "\n"
7345
7346 #. type: textblock
7347 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1842
7348 msgid "This command returns the size of C<file> in bytes."
7349 msgstr ""
7350
7351 #. type: textblock
7352 #: ../fish/guestfish-actions.pod:1202
7353 msgid ""
7354 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7355 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
7356 msgstr ""
7357
7358 #. type: =head2
7359 #: ../fish/guestfish-actions.pod:1206
7360 msgid "fill"
7361 msgstr "fill"
7362
7363 #. type: verbatim
7364 #: ../fish/guestfish-actions.pod:1208
7365 #, no-wrap
7366 msgid ""
7367 " fill c len path\n"
7368 "\n"
7369 msgstr ""
7370
7371 #. type: textblock
7372 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1860
7373 msgid ""
7374 "This command creates a new file called C<path>.  The initial content of the "
7375 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7376 "[0..255]>."
7377 msgstr ""
7378
7379 #. type: textblock
7380 #: ../fish/guestfish-actions.pod:1214
7381 msgid ""
7382 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7383 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7384 "L</fill-pattern>."
7385 msgstr ""
7386
7387 #. type: =head2
7388 #: ../fish/guestfish-actions.pod:1219
7389 msgid "fill-pattern"
7390 msgstr "fill-pattern"
7391
7392 #. type: verbatim
7393 #: ../fish/guestfish-actions.pod:1221
7394 #, no-wrap
7395 msgid ""
7396 " fill-pattern pattern len path\n"
7397 "\n"
7398 msgstr ""
7399
7400 #. type: textblock
7401 #: ../fish/guestfish-actions.pod:1223
7402 msgid ""
7403 "This function is like L</fill> except that it creates a new file of length "
7404 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7405 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7406 "bytes."
7407 msgstr ""
7408
7409 #. type: =head2
7410 #: ../fish/guestfish-actions.pod:1228
7411 msgid "find"
7412 msgstr "find"
7413
7414 #. type: verbatim
7415 #: ../fish/guestfish-actions.pod:1230
7416 #, no-wrap
7417 msgid ""
7418 " find directory\n"
7419 "\n"
7420 msgstr ""
7421 " find каталог\n"
7422 "\n"
7423
7424 #. type: textblock
7425 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1906
7426 msgid ""
7427 "This command lists out all files and directories, recursively, starting at "
7428 "C<directory>.  It is essentially equivalent to running the shell command "
7429 "C<find directory -print> but some post-processing happens on the output, "
7430 "described below."
7431 msgstr ""
7432
7433 #. type: textblock
7434 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1911
7435 msgid ""
7436 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7437 "structure was:"
7438 msgstr ""
7439
7440 #. type: verbatim
7441 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1914
7442 #, no-wrap
7443 msgid ""
7444 " /tmp/a\n"
7445 " /tmp/b\n"
7446 " /tmp/c/d\n"
7447 "\n"
7448 msgstr ""
7449
7450 #. type: textblock
7451 #: ../fish/guestfish-actions.pod:1244
7452 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7453 msgstr ""
7454
7455 #. type: verbatim
7456 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1921
7457 #, no-wrap
7458 msgid ""
7459 " a\n"
7460 " b\n"
7461 " c\n"
7462 " c/d\n"
7463 "\n"
7464 msgstr ""
7465
7466 #. type: textblock
7467 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1926
7468 msgid "If C<directory> is not a directory, then this command returns an error."
7469 msgstr ""
7470
7471 #. type: textblock
7472 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1929
7473 msgid "The returned list is sorted."
7474 msgstr ""
7475
7476 #. type: textblock
7477 #: ../fish/guestfish-actions.pod:1257
7478 msgid "See also L</find0>."
7479 msgstr "Див. також L</find0>."
7480
7481 #. type: =head2
7482 #: ../fish/guestfish-actions.pod:1262
7483 msgid "find0"
7484 msgstr "find0"
7485
7486 #. type: verbatim
7487 #: ../fish/guestfish-actions.pod:1264
7488 #, no-wrap
7489 msgid ""
7490 " find0 directory (files|-)\n"
7491 "\n"
7492 msgstr ""
7493 " find0 каталог (файли|-)\n"
7494 "\n"
7495
7496 #. type: textblock
7497 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1949
7498 msgid ""
7499 "This command lists out all files and directories, recursively, starting at "
7500 "C<directory>, placing the resulting list in the external file called "
7501 "C<files>."
7502 msgstr ""
7503
7504 #. type: textblock
7505 #: ../fish/guestfish-actions.pod:1270
7506 msgid ""
7507 "This command works the same way as L</find> with the following exceptions:"
7508 msgstr ""
7509
7510 #. type: textblock
7511 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1960
7512 msgid "The resulting list is written to an external file."
7513 msgstr ""
7514
7515 #. type: textblock
7516 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1964
7517 msgid ""
7518 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7519 "L<find(1)> option I<-print0>."
7520 msgstr ""
7521
7522 #. type: textblock
7523 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1969
7524 msgid "This command is not limited in the number of names that it can return."
7525 msgstr ""
7526
7527 #. type: textblock
7528 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1974
7529 msgid "The result list is not sorted."
7530 msgstr ""
7531
7532 #. type: =head2
7533 #: ../fish/guestfish-actions.pod:1297
7534 msgid "findfs-label"
7535 msgstr "findfs-label"
7536
7537 #. type: verbatim
7538 #: ../fish/guestfish-actions.pod:1299
7539 #, no-wrap
7540 msgid ""
7541 " findfs-label label\n"
7542 "\n"
7543 msgstr ""
7544 " findfs-label мітка\n"
7545 "\n"
7546
7547 #. type: textblock
7548 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1988
7549 msgid ""
7550 "This command searches the filesystems and returns the one which has the "
7551 "given label.  An error is returned if no such filesystem can be found."
7552 msgstr ""
7553
7554 #. type: textblock
7555 #: ../fish/guestfish-actions.pod:1305
7556 msgid "To find the label of a filesystem, use L</vfs-label>."
7557 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7558
7559 #. type: =head2
7560 #: ../fish/guestfish-actions.pod:1307
7561 msgid "findfs-uuid"
7562 msgstr "findfs-uuid"
7563
7564 #. type: verbatim
7565 #: ../fish/guestfish-actions.pod:1309
7566 #, no-wrap
7567 msgid ""
7568 " findfs-uuid uuid\n"
7569 "\n"
7570 msgstr ""
7571 " findfs-uuid uuid\n"
7572 "\n"
7573
7574 #. type: textblock
7575 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2005
7576 msgid ""
7577 "This command searches the filesystems and returns the one which has the "
7578 "given UUID.  An error is returned if no such filesystem can be found."
7579 msgstr ""
7580
7581 #. type: textblock
7582 #: ../fish/guestfish-actions.pod:1315
7583 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7584 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7585
7586 #. type: =head2
7587 #: ../fish/guestfish-actions.pod:1317
7588 msgid "fsck"
7589 msgstr "fsck"
7590
7591 #. type: verbatim
7592 #: ../fish/guestfish-actions.pod:1319
7593 #, no-wrap
7594 msgid ""
7595 " fsck fstype device\n"
7596 "\n"
7597 msgstr ""
7598 " fsck тип_файлової_системи пристрій\n"
7599 "\n"
7600
7601 #. type: textblock
7602 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2023
7603 msgid ""
7604 "This runs the filesystem checker (fsck) on C<device> which should have "
7605 "filesystem type C<fstype>."
7606 msgstr ""
7607
7608 #. type: textblock
7609 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2026
7610 msgid ""
7611 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7612 "codes from C<fsck>."
7613 msgstr ""
7614
7615 #. type: textblock
7616 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2035
7617 msgid "Multiple status codes can be summed together."
7618 msgstr ""
7619
7620 #. type: textblock
7621 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2039
7622 msgid ""
7623 "A non-zero return code can mean \"success\", for example if errors have been "
7624 "corrected on the filesystem."
7625 msgstr ""
7626
7627 #. type: textblock
7628 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2044
7629 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7630 msgstr ""
7631
7632 #. type: textblock
7633 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2049
7634 msgid ""
7635 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7636 msgstr ""
7637
7638 #. type: =head2
7639 #: ../fish/guestfish-actions.pod:1349
7640 msgid "get-append"
7641 msgstr "get-append"
7642
7643 #. type: verbatim
7644 #: ../fish/guestfish-actions.pod:1351
7645 #, no-wrap
7646 msgid ""
7647 " get-append\n"
7648 "\n"
7649 msgstr ""
7650 " get-append\n"
7651 "\n"
7652
7653 #. type: textblock
7654 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2060
7655 msgid ""
7656 "Return the additional kernel options which are added to the guest kernel "
7657 "command line."
7658 msgstr ""
7659
7660 #. type: textblock
7661 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2063
7662 msgid "If C<NULL> then no options are added."
7663 msgstr ""
7664
7665 #. type: =head2
7666 #: ../fish/guestfish-actions.pod:1358
7667 msgid "get-attach-method"
7668 msgstr "get-attach-method"
7669
7670 #. type: verbatim
7671 #: ../fish/guestfish-actions.pod:1360
7672 #, no-wrap
7673 msgid ""
7674 " get-attach-method\n"
7675 "\n"
7676 msgstr ""
7677 " get-attach-method\n"
7678 "\n"
7679
7680 #. type: textblock
7681 #: ../fish/guestfish-actions.pod:1362
7682 msgid "Return the current attach method.  See L</set-attach-method>."
7683 msgstr ""
7684
7685 #. type: =head2
7686 #: ../fish/guestfish-actions.pod:1364
7687 msgid "get-autosync"
7688 msgstr "get-autosync"
7689
7690 #. type: verbatim
7691 #: ../fish/guestfish-actions.pod:1366
7692 #, no-wrap
7693 msgid ""
7694 " get-autosync\n"
7695 "\n"
7696 msgstr ""
7697 " get-autosync\n"
7698 "\n"
7699
7700 #. type: textblock
7701 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2088
7702 msgid "Get the autosync flag."
7703 msgstr ""
7704
7705 #. type: =head2
7706 #: ../fish/guestfish-actions.pod:1370
7707 msgid "get-direct"
7708 msgstr "get-direct"
7709
7710 #. type: verbatim
7711 #: ../fish/guestfish-actions.pod:1372
7712 #, no-wrap
7713 msgid ""
7714 " get-direct\n"
7715 "\n"
7716 msgstr ""
7717 " get-direct\n"
7718 "\n"
7719
7720 #. type: textblock
7721 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2099
7722 msgid "Return the direct appliance mode flag."
7723 msgstr ""
7724
7725 #. type: =head2
7726 #: ../fish/guestfish-actions.pod:1376
7727 msgid "get-e2label"
7728 msgstr "get-e2label"
7729
7730 #. type: verbatim
7731 #: ../fish/guestfish-actions.pod:1378
7732 #, no-wrap
7733 msgid ""
7734 " get-e2label device\n"
7735 "\n"
7736 msgstr ""
7737 " get-e2label пристрій\n"
7738 "\n"
7739
7740 #. type: textblock
7741 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2118
7742 msgid ""
7743 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7744 msgstr ""
7745
7746 #. type: textblock
7747 #: ../fish/guestfish-actions.pod:1383
7748 msgid ""
7749 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7750 "instead."
7751 msgstr ""
7752
7753 #. type: =head2
7754 #: ../fish/guestfish-actions.pod:1390
7755 msgid "get-e2uuid"
7756 msgstr "get-e2uuid"
7757
7758 #. type: verbatim
7759 #: ../fish/guestfish-actions.pod:1392
7760 #, no-wrap
7761 msgid ""
7762 " get-e2uuid device\n"
7763 "\n"
7764 msgstr ""
7765 " get-e2uuid пристрій\n"
7766 "\n"
7767
7768 #. type: textblock
7769 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2139
7770 msgid ""
7771 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7772 msgstr ""
7773
7774 #. type: textblock
7775 #: ../fish/guestfish-actions.pod:1397
7776 msgid ""
7777 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7778 "instead."
7779 msgstr ""
7780
7781 #. type: =head2
7782 #: ../fish/guestfish-actions.pod:1404
7783 msgid "get-memsize"
7784 msgstr "get-memsize"
7785
7786 #. type: verbatim
7787 #: ../fish/guestfish-actions.pod:1406
7788 #, no-wrap
7789 msgid ""
7790 " get-memsize\n"
7791 "\n"
7792 msgstr ""
7793 " get-memsize\n"
7794 "\n"
7795
7796 #. type: textblock
7797 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2152
7798 msgid ""
7799 "This gets the memory size in megabytes allocated to the qemu subprocess."
7800 msgstr ""
7801
7802 #. type: textblock
7803 #: ../fish/guestfish-actions.pod:1411
7804 msgid ""
7805 "If L</set-memsize> was not called on this handle, and if "
7806 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7807 "value for memsize."
7808 msgstr ""
7809
7810 #. type: textblock
7811 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472
7812 #: ../fish/guestfish-actions.pod:4225 ../fish/guestfish-actions.pod:4327
7813 #: ../src/guestfs-actions.pod:2159 ../src/guestfs-actions.pod:2251
7814 #: ../src/guestfs-actions.pod:6430 ../src/guestfs-actions.pod:6556
7815 msgid ""
7816 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7817 msgstr ""
7818
7819 #. type: =head2
7820 #: ../fish/guestfish-actions.pod:1418
7821 msgid "get-network"
7822 msgstr "get-network"
7823
7824 #. type: verbatim
7825 #: ../fish/guestfish-actions.pod:1420
7826 #, no-wrap
7827 msgid ""
7828 " get-network\n"
7829 "\n"
7830 msgstr ""
7831 " get-network\n"
7832 "\n"
7833
7834 #. type: textblock
7835 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2171
7836 msgid "This returns the enable network flag."
7837 msgstr ""
7838
7839 #. type: =head2
7840 #: ../fish/guestfish-actions.pod:1424
7841 msgid "get-path"
7842 msgstr "get-path"
7843
7844 #. type: verbatim
7845 #: ../fish/guestfish-actions.pod:1426
7846 #, no-wrap
7847 msgid ""
7848 " get-path\n"
7849 "\n"
7850 msgstr ""
7851 " get-path\n"
7852 "\n"
7853
7854 #. type: textblock
7855 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2182
7856 msgid "Return the current search path."
7857 msgstr ""
7858
7859 #. type: textblock
7860 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2184
7861 msgid ""
7862 "This is always non-NULL.  If it wasn't set already, then this will return "
7863 "the default path."
7864 msgstr ""
7865
7866 #. type: =head2
7867 #: ../fish/guestfish-actions.pod:1433
7868 msgid "get-pgroup"
7869 msgstr ""
7870
7871 #. type: verbatim
7872 #: ../fish/guestfish-actions.pod:1435
7873 #, no-wrap
7874 msgid ""
7875 " get-pgroup\n"
7876 "\n"
7877 msgstr ""
7878
7879 #. type: textblock
7880 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2197
7881 msgid "This returns the process group flag."
7882 msgstr ""
7883
7884 #. type: =head2
7885 #: ../fish/guestfish-actions.pod:1439
7886 msgid "get-pid"
7887 msgstr "get-pid"
7888
7889 #. type: =head2
7890 #: ../fish/guestfish-actions.pod:1441
7891 msgid "pid"
7892 msgstr ""
7893
7894 #. type: verbatim
7895 #: ../fish/guestfish-actions.pod:1443
7896 #, no-wrap
7897 msgid ""
7898 " get-pid\n"
7899 "\n"
7900 msgstr ""
7901 " get-pid\n"
7902 "\n"
7903
7904 #. type: textblock
7905 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2208
7906 msgid ""
7907 "Return the process ID of the qemu subprocess.  If there is no qemu "
7908 "subprocess, then this will return an error."
7909 msgstr ""
7910
7911 #. type: textblock
7912 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2211
7913 msgid "This is an internal call used for debugging and testing."
7914 msgstr ""
7915
7916 #. type: =head2
7917 #: ../fish/guestfish-actions.pod:1450
7918 msgid "get-qemu"
7919 msgstr "get-qemu"
7920
7921 #. type: verbatim
7922 #: ../fish/guestfish-actions.pod:1452
7923 #, no-wrap
7924 msgid ""
7925 " get-qemu\n"
7926 "\n"
7927 msgstr ""
7928 " get-qemu\n"
7929 "\n"
7930
7931 #. type: textblock
7932 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2222
7933 msgid "Return the current qemu binary."
7934 msgstr ""
7935
7936 #. type: textblock
7937 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2224
7938 msgid ""
7939 "This is always non-NULL.  If it wasn't set already, then this will return "
7940 "the default qemu binary name."
7941 msgstr ""
7942
7943 #. type: =head2
7944 #: ../fish/guestfish-actions.pod:1459
7945 msgid "get-recovery-proc"
7946 msgstr "get-recovery-proc"
7947
7948 #. type: verbatim
7949 #: ../fish/guestfish-actions.pod:1461
7950 #, no-wrap
7951 msgid ""
7952 " get-recovery-proc\n"
7953 "\n"
7954 msgstr ""
7955 " get-recovery-proc\n"
7956 "\n"
7957
7958 #. type: textblock
7959 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2237
7960 msgid "Return the recovery process enabled flag."
7961 msgstr ""
7962
7963 #. type: =head2
7964 #: ../fish/guestfish-actions.pod:1465
7965 msgid "get-selinux"
7966 msgstr "get-selinux"
7967
7968 #. type: verbatim
7969 #: ../fish/guestfish-actions.pod:1467
7970 #, no-wrap
7971 msgid ""
7972 " get-selinux\n"
7973 "\n"
7974 msgstr ""
7975 " get-selinux\n"
7976 "\n"
7977
7978 #. type: textblock
7979 #: ../fish/guestfish-actions.pod:1469
7980 msgid ""
7981 "This returns the current setting of the selinux flag which is passed to the "
7982 "appliance at boot time.  See L</set-selinux>."
7983 msgstr ""
7984
7985 #. type: =head2
7986 #: ../fish/guestfish-actions.pod:1475
7987 #, fuzzy
7988 #| msgid "get-pid"
7989 msgid "get-smp"
7990 msgstr "get-pid"
7991
7992 #. type: verbatim
7993 #: ../fish/guestfish-actions.pod:1477
7994 #, fuzzy, no-wrap
7995 #| msgid ""
7996 #| " get-pid\n"
7997 #| "\n"
7998 msgid ""
7999 " get-smp\n"
8000 "\n"
8001 msgstr ""
8002 " get-pid\n"
8003 "\n"
8004
8005 #. type: textblock
8006 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2263
8007 msgid "This returns the number of virtual CPUs assigned to the appliance."
8008 msgstr ""
8009
8010 #. type: =head2
8011 #: ../fish/guestfish-actions.pod:1481
8012 msgid "get-state"
8013 msgstr "get-state"
8014
8015 #. type: verbatim
8016 #: ../fish/guestfish-actions.pod:1483
8017 #, no-wrap
8018 msgid ""
8019 " get-state\n"
8020 "\n"
8021 msgstr ""
8022 " get-state\n"
8023 "\n"
8024
8025 #. type: textblock
8026 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2272
8027 msgid ""
8028 "This returns the current state as an opaque integer.  This is only useful "
8029 "for printing debug and internal error messages."
8030 msgstr ""
8031
8032 #. type: textblock
8033 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2434
8034 #: ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2490
8035 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:2275
8036 #: ../src/guestfs-actions.pod:3581 ../src/guestfs-actions.pod:3610
8037 #: ../src/guestfs-actions.pod:3671 ../src/guestfs-actions.pod:3698
8038 msgid "For more information on states, see L<guestfs(3)>."
8039 msgstr ""
8040
8041 #. type: =head2
8042 #: ../fish/guestfish-actions.pod:1490
8043 msgid "get-trace"
8044 msgstr "get-trace"
8045
8046 #. type: verbatim
8047 #: ../fish/guestfish-actions.pod:1492
8048 #, no-wrap
8049 msgid ""
8050 " get-trace\n"
8051 "\n"
8052 msgstr ""
8053 " get-trace\n"
8054 "\n"
8055
8056 #. type: textblock
8057 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2286
8058 msgid "Return the command trace flag."
8059 msgstr ""
8060
8061 #. type: =head2
8062 #: ../fish/guestfish-actions.pod:1496
8063 msgid "get-umask"
8064 msgstr "get-umask"
8065
8066 #. type: verbatim
8067 #: ../fish/guestfish-actions.pod:1498
8068 #, no-wrap
8069 msgid ""
8070 " get-umask\n"
8071 "\n"
8072 msgstr ""
8073 " get-umask\n"
8074 "\n"
8075
8076 #. type: textblock
8077 #: ../fish/guestfish-actions.pod:1500
8078 msgid ""
8079 "Return the current umask.  By default the umask is C<022> unless it has been "
8080 "set by calling L</umask>."
8081 msgstr ""
8082
8083 #. type: =head2
8084 #: ../fish/guestfish-actions.pod:1503
8085 msgid "get-verbose"
8086 msgstr "get-verbose"
8087
8088 #. type: verbatim
8089 #: ../fish/guestfish-actions.pod:1505
8090 #, no-wrap
8091 msgid ""
8092 " get-verbose\n"
8093 "\n"
8094 msgstr ""
8095 " get-verbose\n"
8096 "\n"
8097
8098 #. type: textblock
8099 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2309
8100 msgid "This returns the verbose messages flag."
8101 msgstr ""
8102
8103 #. type: =head2
8104 #: ../fish/guestfish-actions.pod:1509
8105 msgid "getcon"
8106 msgstr "getcon"
8107
8108 #. type: verbatim
8109 #: ../fish/guestfish-actions.pod:1511
8110 #, no-wrap
8111 msgid ""
8112 " getcon\n"
8113 "\n"
8114 msgstr ""
8115 " getcon\n"
8116 "\n"
8117
8118 #. type: textblock
8119 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2320
8120 msgid "This gets the SELinux security context of the daemon."
8121 msgstr ""
8122
8123 #. type: textblock
8124 #: ../fish/guestfish-actions.pod:1515
8125 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
8126 msgstr ""
8127
8128 #. type: =head2
8129 #: ../fish/guestfish-actions.pod:1518
8130 msgid "getxattr"
8131 msgstr "getxattr"
8132
8133 #. type: verbatim
8134 #: ../fish/guestfish-actions.pod:1520
8135 #, no-wrap
8136 msgid ""
8137 " getxattr path name\n"
8138 "\n"
8139 msgstr ""
8140 " getxattr шлях назва\n"
8141 "\n"
8142
8143 #. type: textblock
8144 #: ../fish/guestfish-actions.pod:1522
8145 msgid ""
8146 "Get a single extended attribute from file C<path> named C<name>.  This call "
8147 "follows symlinks.  If you want to lookup an extended attribute for the "
8148 "symlink itself, use L</lgetxattr>."
8149 msgstr ""
8150
8151 #. type: textblock
8152 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
8153 msgid ""
8154 "Normally it is better to get all extended attributes from a file in one go "
8155 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
8156 "buggy and do not provide a way to list out attributes.  For these "
8157 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
8158 "attributes you want in advance and call this function."
8159 msgstr ""
8160
8161 #. type: textblock
8162 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586
8163 #: ../src/guestfs-actions.pod:2349 ../src/guestfs-actions.pod:3831
8164 msgid ""
8165 "Extended attribute values are blobs of binary data.  If there is no extended "
8166 "attribute named C<name>, this returns an error."
8167 msgstr ""
8168
8169 #. type: textblock
8170 #: ../fish/guestfish-actions.pod:1536
8171 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8172 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8173
8174 #. type: =head2
8175 #: ../fish/guestfish-actions.pod:1538
8176 msgid "getxattrs"
8177 msgstr "getxattrs"
8178
8179 #. type: verbatim
8180 #: ../fish/guestfish-actions.pod:1540
8181 #, no-wrap
8182 msgid ""
8183 " getxattrs path\n"
8184 "\n"
8185 msgstr ""
8186 " getxattrs шлях\n"
8187 "\n"
8188
8189 #. type: textblock
8190 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2366
8191 msgid ""
8192 "This call lists the extended attributes of the file or directory C<path>."
8193 msgstr ""
8194
8195 #. type: textblock
8196 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2369
8197 msgid ""
8198 "At the system call level, this is a combination of the L<listxattr(2)> and "
8199 "L<getxattr(2)> calls."
8200 msgstr ""
8201
8202 #. type: textblock
8203 #: ../fish/guestfish-actions.pod:1548
8204 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8205 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
8206
8207 #. type: =head2
8208 #: ../fish/guestfish-actions.pod:1550
8209 msgid "glob-expand"
8210 msgstr "glob-expand"
8211
8212 #. type: verbatim
8213 #: ../fish/guestfish-actions.pod:1552
8214 #, no-wrap
8215 msgid ""
8216 " glob-expand pattern\n"
8217 "\n"
8218 msgstr ""
8219 " glob-expand шаблон\n"
8220 "\n"
8221
8222 #. type: textblock
8223 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2386
8224 msgid ""
8225 "This command searches for all the pathnames matching C<pattern> according to "
8226 "the wildcard expansion rules used by the shell."
8227 msgstr ""
8228
8229 #. type: textblock
8230 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2390
8231 msgid ""
8232 "If no paths match, then this returns an empty list (note: not an error)."
8233 msgstr ""
8234
8235 #. type: textblock
8236 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2393
8237 msgid ""
8238 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8239 "GLOB_BRACE>.  See that manual page for more details."
8240 msgstr ""
8241
8242 #. type: =head2
8243 #: ../fish/guestfish-actions.pod:1565
8244 msgid "grep"
8245 msgstr "grep"
8246
8247 #. type: verbatim
8248 #: ../fish/guestfish-actions.pod:1567
8249 #, no-wrap
8250 msgid ""
8251 " grep regex path\n"
8252 "\n"
8253 msgstr ""
8254 " grepi формальний_вираз шлях\n"
8255 "\n"
8256
8257 #. type: textblock
8258 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2410
8259 msgid "This calls the external C<grep> program and returns the matching lines."
8260 msgstr ""
8261
8262 #. type: =head2
8263 #: ../fish/guestfish-actions.pod:1575
8264 msgid "grepi"
8265 msgstr "grepi"
8266
8267 #. type: verbatim
8268 #: ../fish/guestfish-actions.pod:1577
8269 #, no-wrap
8270 msgid ""
8271 " grepi regex path\n"
8272 "\n"
8273 msgstr ""
8274 " grepi формальний_вираз шлях\n"
8275 "\n"
8276
8277 #. type: textblock
8278 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2429
8279 msgid ""
8280 "This calls the external C<grep -i> program and returns the matching lines."
8281 msgstr ""
8282
8283 #. type: =head2
8284 #: ../fish/guestfish-actions.pod:1585
8285 msgid "grub-install"
8286 msgstr "grub-install"
8287
8288 #. type: verbatim
8289 #: ../fish/guestfish-actions.pod:1587
8290 #, no-wrap
8291 msgid ""
8292 " grub-install root device\n"
8293 "\n"
8294 msgstr ""
8295 " grub-install кореневий пристрій\n"
8296 "\n"
8297
8298 #. type: textblock
8299 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2448
8300 msgid ""
8301 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8302 "with the root directory being C<root>."
8303 msgstr ""
8304
8305 #. type: textblock
8306 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2457
8307 msgid ""
8308 "There is currently no way in the API to install grub2, which is used by most "
8309 "modern Linux guests.  It is possible to run the grub2 command from the "
8310 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8311 msgstr ""
8312
8313 #. type: textblock
8314 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2464
8315 msgid ""
8316 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
8317 "compatible with itself, so this only works in rather narrow circumstances.  "
8318 "Careful testing with each guest version is advisable."
8319 msgstr ""
8320
8321 #. type: textblock
8322 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2471
8323 msgid ""
8324 "If grub-install reports the error \"No suitable drive was found in the "
8325 "generated device map.\" it may be that you need to create a C</boot/grub/"
8326 "device.map> file first that contains the mapping between grub device names "
8327 "and Linux device names.  It is usually sufficient to create a file "
8328 "containing:"
8329 msgstr ""
8330
8331 #. type: verbatim
8332 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2478
8333 #, no-wrap
8334 msgid ""
8335 " (hd0) /dev/vda\n"
8336 "\n"
8337 msgstr ""
8338
8339 #. type: textblock
8340 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2480
8341 msgid "replacing C</dev/vda> with the name of the installation device."
8342 msgstr ""
8343
8344 #. type: =head2
8345 #: ../fish/guestfish-actions.pod:1625
8346 msgid "head"
8347 msgstr "head"
8348
8349 #. type: verbatim
8350 #: ../fish/guestfish-actions.pod:1627
8351 #, no-wrap
8352 msgid ""
8353 " head path\n"
8354 "\n"
8355 msgstr ""
8356 " head шлях\n"
8357 "\n"
8358
8359 #. type: textblock
8360 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2494
8361 msgid ""
8362 "This command returns up to the first 10 lines of a file as a list of strings."
8363 msgstr ""
8364
8365 #. type: =head2
8366 #: ../fish/guestfish-actions.pod:1635
8367 msgid "head-n"
8368 msgstr "head-n"
8369
8370 #. type: verbatim
8371 #: ../fish/guestfish-actions.pod:1637
8372 #, no-wrap
8373 msgid ""
8374 " head-n nrlines path\n"
8375 "\n"
8376 msgstr ""
8377
8378 #. type: textblock
8379 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2513
8380 msgid ""
8381 "If the parameter C<nrlines> is a positive number, this returns the first "
8382 "C<nrlines> lines of the file C<path>."
8383 msgstr ""
8384
8385 #. type: textblock
8386 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2516
8387 msgid ""
8388 "If the parameter C<nrlines> is a negative number, this returns lines from "
8389 "the file C<path>, excluding the last C<nrlines> lines."
8390 msgstr ""
8391
8392 #. type: textblock
8393 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4717
8394 #: ../src/guestfs-actions.pod:2519 ../src/guestfs-actions.pod:7142
8395 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8396 msgstr ""
8397
8398 #. type: =head2
8399 #: ../fish/guestfish-actions.pod:1650
8400 msgid "hexdump"
8401 msgstr "hexdump"
8402
8403 #. type: verbatim
8404 #: ../fish/guestfish-actions.pod:1652
8405 #, no-wrap
8406 msgid ""
8407 " hexdump path\n"
8408 "\n"
8409 msgstr ""
8410 " hexdump шлях\n"
8411 "\n"
8412
8413 #. type: textblock
8414 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2536
8415 msgid ""
8416 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8417 "readable, canonical hex dump of the file."
8418 msgstr ""
8419
8420 #. type: =head2
8421 #: ../fish/guestfish-actions.pod:1660
8422 msgid "initrd-cat"
8423 msgstr "initrd-cat"
8424
8425 #. type: verbatim
8426 #: ../fish/guestfish-actions.pod:1662
8427 #, no-wrap
8428 msgid ""
8429 " initrd-cat initrdpath filename\n"
8430 "\n"
8431 msgstr ""
8432 " initrd-cat шлях_initrd назва_файла\n"
8433 "\n"
8434
8435 #. type: textblock
8436 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2555
8437 msgid ""
8438 "This command unpacks the file C<filename> from the initrd file called "
8439 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8440 "character."
8441 msgstr ""
8442
8443 #. type: textblock
8444 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2559
8445 msgid ""
8446 "For example, in guestfish you could use the following command to examine the "
8447 "boot script (usually called C</init>)  contained in a Linux initrd or "
8448 "initramfs image:"
8449 msgstr ""
8450
8451 #. type: verbatim
8452 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2563
8453 #, no-wrap
8454 msgid ""
8455 " initrd-cat /boot/initrd-<version>.img init\n"
8456 "\n"
8457 msgstr ""
8458
8459 #. type: textblock
8460 #: ../fish/guestfish-actions.pod:1674
8461 msgid "See also L</initrd-list>."
8462 msgstr "Див. також L</initrd-list>."
8463
8464 #. type: =head2
8465 #: ../fish/guestfish-actions.pod:1679
8466 msgid "initrd-list"
8467 msgstr "initrd-list"
8468
8469 #. type: verbatim
8470 #: ../fish/guestfish-actions.pod:1681
8471 #, no-wrap
8472 msgid ""
8473 " initrd-list path\n"
8474 "\n"
8475 msgstr ""
8476 " initrd-list шлях\n"
8477 "\n"
8478
8479 #. type: textblock
8480 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2582
8481 msgid "This command lists out files contained in an initrd."
8482 msgstr ""
8483
8484 #. type: textblock
8485 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2584
8486 msgid ""
8487 "The files are listed without any initial C</> character.  The files are "
8488 "listed in the order they appear (not necessarily alphabetical).  Directory "
8489 "names are listed as separate items."
8490 msgstr ""
8491
8492 #. type: textblock
8493 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2588
8494 msgid ""
8495 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8496 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8497 "files)."
8498 msgstr ""
8499
8500 #. type: =head2
8501 #: ../fish/guestfish-actions.pod:1693
8502 msgid "inotify-add-watch"
8503 msgstr "inotify-add-watch"
8504
8505 #. type: verbatim
8506 #: ../fish/guestfish-actions.pod:1695
8507 #, no-wrap
8508 msgid ""
8509 " inotify-add-watch path mask\n"
8510 "\n"
8511 msgstr ""
8512 " inotify-add-watch шлях маска\n"
8513 "\n"
8514
8515 #. type: textblock
8516 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2605
8517 msgid "Watch C<path> for the events listed in C<mask>."
8518 msgstr ""
8519
8520 #. type: textblock
8521 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2607
8522 msgid ""
8523 "Note that if C<path> is a directory then events within that directory are "
8524 "watched, but this does I<not> happen recursively (in subdirectories)."
8525 msgstr ""
8526
8527 #. type: textblock
8528 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2611
8529 msgid ""
8530 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8531 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8532 msgstr ""
8533
8534 #. type: =head2
8535 #: ../fish/guestfish-actions.pod:1707
8536 msgid "inotify-close"
8537 msgstr "inotify-close"
8538
8539 #. type: verbatim
8540 #: ../fish/guestfish-actions.pod:1709
8541 #, no-wrap
8542 msgid ""
8543 " inotify-close\n"
8544 "\n"
8545 msgstr ""
8546 " inotify-close\n"
8547 "\n"
8548
8549 #. type: textblock
8550 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2624
8551 msgid ""
8552 "This closes the inotify handle which was previously opened by inotify_init.  "
8553 "It removes all watches, throws away any pending events, and deallocates all "
8554 "resources."
8555 msgstr ""
8556
8557 #. type: =head2
8558 #: ../fish/guestfish-actions.pod:1715
8559 msgid "inotify-files"
8560 msgstr "inotify-files"
8561
8562 #. type: verbatim
8563 #: ../fish/guestfish-actions.pod:1717
8564 #, no-wrap
8565 msgid ""
8566 " inotify-files\n"
8567 "\n"
8568 msgstr ""
8569 " inotify-files\n"
8570 "\n"
8571
8572 #. type: textblock
8573 #: ../fish/guestfish-actions.pod:1719
8574 msgid ""
8575 "This function is a helpful wrapper around L</inotify-read> which just "
8576 "returns a list of pathnames of objects that were touched.  The returned "
8577 "pathnames are sorted and deduplicated."
8578 msgstr ""
8579
8580 #. type: =head2
8581 #: ../fish/guestfish-actions.pod:1723
8582 msgid "inotify-init"
8583 msgstr "inotify-init"
8584
8585 #. type: verbatim
8586 #: ../fish/guestfish-actions.pod:1725
8587 #, no-wrap
8588 msgid ""
8589 " inotify-init maxevents\n"
8590 "\n"
8591 msgstr ""
8592
8593 #. type: textblock
8594 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2653
8595 msgid ""
8596 "This command creates a new inotify handle.  The inotify subsystem can be "
8597 "used to notify events which happen to objects in the guest filesystem."
8598 msgstr ""
8599
8600 #. type: textblock
8601 #: ../fish/guestfish-actions.pod:1731
8602 msgid ""
8603 "C<maxevents> is the maximum number of events which will be queued up between "
8604 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8605 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8606 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8607 "but records the fact that it threw them away by setting a flag "
8608 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8609 msgstr ""
8610
8611 #. type: textblock
8612 #: ../fish/guestfish-actions.pod:1741
8613 msgid ""
8614 "Before any events are generated, you have to add some watches to the "
8615 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8616 "L</inotify-watch-all>."
8617 msgstr ""
8618
8619 #. type: textblock
8620 #: ../fish/guestfish-actions.pod:1747
8621 msgid ""
8622 "Queued up events should be read periodically by calling L</inotify-read> (or "
8623 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8624 "If you don't read the events out often enough then you risk the internal "
8625 "queue overflowing."
8626 msgstr ""
8627
8628 #. type: textblock
8629 #: ../fish/guestfish-actions.pod:1754
8630 msgid ""
8631 "The handle should be closed after use by calling L</inotify-close>.  This "
8632 "also removes any watches automatically."
8633 msgstr ""
8634
8635 #. type: textblock
8636 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2684
8637 msgid ""
8638 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8639 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8640 "that there is one global inotify handle per libguestfs instance."
8641 msgstr ""
8642
8643 #. type: =head2
8644 #: ../fish/guestfish-actions.pod:1763
8645 msgid "inotify-read"
8646 msgstr "inotify-read"
8647
8648 #. type: verbatim
8649 #: ../fish/guestfish-actions.pod:1765
8650 #, no-wrap
8651 msgid ""
8652 " inotify-read\n"
8653 "\n"
8654 msgstr ""
8655 " inotify-read\n"
8656 "\n"
8657
8658 #. type: textblock
8659 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2698
8660 msgid ""
8661 "Return the complete queue of events that have happened since the previous "
8662 "read call."
8663 msgstr ""
8664
8665 #. type: textblock
8666 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2701
8667 msgid "If no events have happened, this returns an empty list."
8668 msgstr ""
8669
8670 #. type: textblock
8671 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2703
8672 msgid ""
8673 "I<Note>: In order to make sure that all events have been read, you must call "
8674 "this function repeatedly until it returns an empty list.  The reason is that "
8675 "the call will read events up to the maximum appliance-to-host message size "
8676 "and leave remaining events in the queue."
8677 msgstr ""
8678
8679 #. type: =head2
8680 #: ../fish/guestfish-actions.pod:1778
8681 msgid "inotify-rm-watch"
8682 msgstr "inotify-rm-watch"
8683
8684 #. type: verbatim
8685 #: ../fish/guestfish-actions.pod:1780
8686 #, no-wrap
8687 msgid ""
8688 " inotify-rm-watch wd\n"
8689 "\n"
8690 msgstr ""
8691
8692 #. type: textblock
8693 #: ../fish/guestfish-actions.pod:1782
8694 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8695 msgstr ""
8696
8697 #. type: =head2
8698 #: ../fish/guestfish-actions.pod:1785
8699 msgid "inspect-get-arch"
8700 msgstr "inspect-get-arch"
8701
8702 #. type: verbatim
8703 #: ../fish/guestfish-actions.pod:1787
8704 #, no-wrap
8705 msgid ""
8706 " inspect-get-arch root\n"
8707 "\n"
8708 msgstr ""
8709 " inspect-get-arch корінь\n"
8710 "\n"
8711
8712 #. type: textblock
8713 #: ../fish/guestfish-actions.pod:1789
8714 msgid ""
8715 "This returns the architecture of the inspected operating system.  The "
8716 "possible return values are listed under L</file-architecture>."
8717 msgstr ""
8718
8719 #. type: textblock
8720 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2738
8721 msgid ""
8722 "If the architecture could not be determined, then the string C<unknown> is "
8723 "returned."
8724 msgstr ""
8725
8726 #. type: textblock
8727 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1883
8728 #: ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1974
8729 #: ../fish/guestfish-actions.pod:2058 ../fish/guestfish-actions.pod:2119
8730 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2154
8731 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2226
8732 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252
8733 #: ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:2272
8734 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2380
8735 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:2741
8736 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2939
8737 #: ../src/guestfs-actions.pod:2958 ../src/guestfs-actions.pod:3089
8738 #: ../src/guestfs-actions.pod:3172 ../src/guestfs-actions.pod:3200
8739 #: ../src/guestfs-actions.pod:3221 ../src/guestfs-actions.pod:3274
8740 #: ../src/guestfs-actions.pod:3314 ../src/guestfs-actions.pod:3334
8741 #: ../src/guestfs-actions.pod:3354 ../src/guestfs-actions.pod:3371
8742 #: ../src/guestfs-actions.pod:3387 ../src/guestfs-actions.pod:3405
8743 #: ../src/guestfs-actions.pod:3507 ../src/guestfs-actions.pod:3548
8744 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8745 msgstr ""
8746
8747 #. type: =head2
8748 #: ../fish/guestfish-actions.pod:1798
8749 msgid "inspect-get-distro"
8750 msgstr "inspect-get-distro"
8751
8752 #. type: verbatim
8753 #: ../fish/guestfish-actions.pod:1800
8754 #, no-wrap
8755 msgid ""
8756 " inspect-get-distro root\n"
8757 "\n"
8758 msgstr ""
8759 " inspect-get-distro корінь\n"
8760 "\n"
8761
8762 #. type: textblock
8763 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2754
8764 msgid ""
8765 "This returns the distro (distribution) of the inspected operating system."
8766 msgstr ""
8767
8768 #. type: textblock
8769 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2757
8770 msgid "Currently defined distros are:"
8771 msgstr ""
8772
8773 #. type: =item
8774 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2761
8775 msgid "\"archlinux\""
8776 msgstr "\"archlinux\""
8777
8778 #. type: textblock
8779 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2763
8780 msgid "Arch Linux."
8781 msgstr "Arch Linux."
8782
8783 #. type: =item
8784 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2765
8785 msgid "\"centos\""
8786 msgstr ""
8787
8788 #. type: textblock
8789 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2767
8790 msgid "CentOS."
8791 msgstr ""
8792
8793 #. type: =item
8794 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2769
8795 msgid "\"debian\""
8796 msgstr "\"debian\""
8797
8798 #. type: textblock
8799 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2771
8800 msgid "Debian."
8801 msgstr "Debian."
8802
8803 #. type: =item
8804 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2773
8805 msgid "\"fedora\""
8806 msgstr "\"fedora\""
8807
8808 #. type: textblock
8809 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2775
8810 msgid "Fedora."
8811 msgstr "Fedora."
8812
8813 #. type: =item
8814 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2777
8815 msgid "\"gentoo\""
8816 msgstr "\"gentoo\""
8817
8818 #. type: textblock
8819 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2779
8820 msgid "Gentoo."
8821 msgstr "Gentoo."
8822
8823 #. type: =item
8824 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2781
8825 msgid "\"linuxmint\""
8826 msgstr "\"linuxmint\""
8827
8828 #. type: textblock
8829 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2783
8830 msgid "Linux Mint."
8831 msgstr "Linux Mint."
8832
8833 #. type: =item
8834 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2785
8835 msgid "\"mandriva\""
8836 msgstr "\"mandriva\""
8837
8838 #. type: textblock
8839 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2787
8840 msgid "Mandriva."
8841 msgstr "Mandriva."
8842
8843 #. type: =item
8844 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2789
8845 msgid "\"meego\""
8846 msgstr "\"meego\""
8847
8848 #. type: textblock
8849 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2791
8850 msgid "MeeGo."
8851 msgstr "MeeGo."
8852
8853 #. type: =item
8854 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2793
8855 msgid "\"pardus\""
8856 msgstr "\"pardus\""
8857
8858 #. type: textblock
8859 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2795
8860 msgid "Pardus."
8861 msgstr "Pardus."
8862
8863 #. type: =item
8864 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2797
8865 msgid "\"redhat-based\""
8866 msgstr "\"redhat-based\""
8867
8868 #. type: textblock
8869 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2799
8870 msgid "Some Red Hat-derived distro."
8871 msgstr "Дистрибутив, що походить від Red Hat."
8872
8873 #. type: =item
8874 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2801
8875 msgid "\"rhel\""
8876 msgstr "\"rhel\""
8877
8878 #. type: textblock
8879 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2803
8880 msgid "Red Hat Enterprise Linux."
8881 msgstr ""
8882
8883 #. type: =item
8884 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2805
8885 msgid "\"scientificlinux\""
8886 msgstr ""
8887
8888 #. type: textblock
8889 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2807
8890 msgid "Scientific Linux."
8891 msgstr ""
8892
8893 #. type: =item
8894 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2809
8895 msgid "\"slackware\""
8896 msgstr ""
8897
8898 #. type: textblock
8899 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2811
8900 msgid "Slackware."
8901 msgstr ""
8902
8903 #. type: =item
8904 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2813
8905 #, fuzzy
8906 #| msgid "\"linux\""
8907 msgid "\"ttylinux\""
8908 msgstr "\"linux\""
8909
8910 #. type: textblock
8911 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2815
8912 #, fuzzy
8913 #| msgid "\"linux\""
8914 msgid "ttylinux."
8915 msgstr "\"linux\""
8916
8917 #. type: =item
8918 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2817
8919 msgid "\"ubuntu\""
8920 msgstr "\"ubuntu\""
8921
8922 #. type: textblock
8923 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2819
8924 msgid "Ubuntu."
8925 msgstr "Ubuntu."
8926
8927 #. type: =item
8928 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953
8929 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2821
8930 #: ../src/guestfs-actions.pod:2930 ../src/guestfs-actions.pod:3305
8931 msgid "\"unknown\""
8932 msgstr "\"unknown\""
8933
8934 #. type: textblock
8935 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2823
8936 msgid "The distro could not be determined."
8937 msgstr "Дистрибутив, тип якого не вдалося визначити."
8938
8939 #. type: =item
8940 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209
8941 #: ../src/guestfs-actions.pod:2825 ../src/guestfs-actions.pod:3297
8942 msgid "\"windows\""
8943 msgstr "\"windows\""
8944
8945 #. type: textblock
8946 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2827
8947 msgid ""
8948 "Windows does not have distributions.  This string is returned if the OS type "
8949 "is Windows."
8950 msgstr ""
8951
8952 #. type: textblock
8953 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959
8954 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2832
8955 #: ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
8956 msgid ""
8957 "Future versions of libguestfs may return other strings here.  The caller "
8958 "should be prepared to handle any string."
8959 msgstr ""
8960
8961 #. type: =head2
8962 #: ../fish/guestfish-actions.pod:1885
8963 msgid "inspect-get-drive-mappings"
8964 msgstr ""
8965
8966 #. type: verbatim
8967 #: ../fish/guestfish-actions.pod:1887
8968 #, no-wrap
8969 msgid ""
8970 " inspect-get-drive-mappings root\n"
8971 "\n"
8972 msgstr ""
8973
8974 #. type: textblock
8975 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2848
8976 msgid ""
8977 "This call is useful for Windows which uses a primitive system of assigning "
8978 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8979 "Windows Registry to find out how disks/partitions are mapped to drive "
8980 "letters, and returns a hash table as in the example below:"
8981 msgstr ""
8982
8983 #. type: verbatim
8984 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2854
8985 #, no-wrap
8986 msgid ""
8987 " C      =>     /dev/vda2\n"
8988 " E      =>     /dev/vdb1\n"
8989 " F      =>     /dev/vdc1\n"
8990 "\n"
8991 msgstr ""
8992
8993 #. type: textblock
8994 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2858
8995 msgid ""
8996 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8997 "and just contains the drive letter, without the customary colon separator "
8998 "character."
8999 msgstr ""
9000
9001 #. type: textblock
9002 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2862
9003 msgid ""
9004 "In future we may support other operating systems that also used drive "
9005 "letters, but the keys for those might not be case insensitive and might be "
9006 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
9007 "C<h1> etc."
9008 msgstr ""
9009
9010 #. type: textblock
9011 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2867
9012 msgid ""
9013 "For Windows guests, currently only hard drive mappings are returned.  "
9014 "Removable disks (eg. DVD-ROMs) are ignored."
9015 msgstr ""
9016
9017 #. type: textblock
9018 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2870
9019 msgid ""
9020 "For guests that do not use drive mappings, or if the drive mappings could "
9021 "not be determined, this returns an empty hash table."
9022 msgstr ""
9023
9024 #. type: textblock
9025 #: ../fish/guestfish-actions.pod:1914
9026 msgid ""
9027 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9028 "get-mountpoints>, L</inspect-get-filesystems>."
9029 msgstr ""
9030
9031 #. type: =head2
9032 #: ../fish/guestfish-actions.pod:1918
9033 msgid "inspect-get-filesystems"
9034 msgstr "inspect-get-filesystems"
9035
9036 #. type: verbatim
9037 #: ../fish/guestfish-actions.pod:1920
9038 #, no-wrap
9039 msgid ""
9040 " inspect-get-filesystems root\n"
9041 "\n"
9042 msgstr ""
9043 " inspect-get-filesystems корінь\n"
9044 "\n"
9045
9046 #. type: textblock
9047 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2891
9048 msgid ""
9049 "This returns a list of all the filesystems that we think are associated with "
9050 "this operating system.  This includes the root filesystem, other ordinary "
9051 "filesystems, and non-mounted devices like swap partitions."
9052 msgstr ""
9053
9054 #. type: textblock
9055 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2896
9056 msgid ""
9057 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9058 "to be shared between operating systems."
9059 msgstr ""
9060
9061 #. type: textblock
9062 #: ../fish/guestfish-actions.pod:1930
9063 msgid ""
9064 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9065 "get-mountpoints>."
9066 msgstr ""
9067
9068 #. type: =head2
9069 #: ../fish/guestfish-actions.pod:1933
9070 msgid "inspect-get-format"
9071 msgstr "inspect-get-format"
9072
9073 #. type: verbatim
9074 #: ../fish/guestfish-actions.pod:1935
9075 #, no-wrap
9076 msgid ""
9077 " inspect-get-format root\n"
9078 "\n"
9079 msgstr ""
9080 " inspect-get-format корінь\n"
9081 "\n"
9082
9083 #. type: textblock
9084 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2914
9085 msgid ""
9086 "This returns the format of the inspected operating system.  You can use it "
9087 "to detect install images, live CDs and similar."
9088 msgstr ""
9089
9090 #. type: textblock
9091 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2917
9092 msgid "Currently defined formats are:"
9093 msgstr ""
9094
9095 #. type: =item
9096 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2921
9097 msgid "\"installed\""
9098 msgstr "\"installed\""
9099
9100 #. type: textblock
9101 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2923
9102 msgid "This is an installed operating system."
9103 msgstr "Це встановлена операційна система."
9104
9105 #. type: =item
9106 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2925
9107 msgid "\"installer\""
9108 msgstr ""
9109
9110 #. type: textblock
9111 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2927
9112 msgid ""
9113 "The disk image being inspected is not an installed operating system, but a "
9114 "I<bootable> install disk, live CD, or similar."
9115 msgstr ""
9116
9117 #. type: textblock
9118 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2932
9119 msgid "The format of this disk image is not known."
9120 msgstr ""
9121
9122 #. type: =head2
9123 #: ../fish/guestfish-actions.pod:1964
9124 msgid "inspect-get-hostname"
9125 msgstr "inspect-get-hostname"
9126
9127 #. type: verbatim
9128 #: ../fish/guestfish-actions.pod:1966
9129 #, no-wrap
9130 msgid ""
9131 " inspect-get-hostname root\n"
9132 "\n"
9133 msgstr ""
9134 " inspect-get-hostname корінь\n"
9135 "\n"
9136
9137 #. type: textblock
9138 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
9139 msgid ""
9140 "This function returns the hostname of the operating system as found by "
9141 "inspection of the guest's configuration files."
9142 msgstr ""
9143
9144 #. type: textblock
9145 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2955
9146 msgid ""
9147 "If the hostname could not be determined, then the string C<unknown> is "
9148 "returned."
9149 msgstr ""
9150
9151 #. type: =head2
9152 #: ../fish/guestfish-actions.pod:1976
9153 msgid "inspect-get-icon"
9154 msgstr ""
9155
9156 #. type: verbatim
9157 #: ../fish/guestfish-actions.pod:1978
9158 #, no-wrap
9159 msgid ""
9160 " inspect-get-icon root [favicon:..] [highquality:..]\n"
9161 "\n"
9162 msgstr ""
9163
9164 #. type: textblock
9165 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2981
9166 msgid ""
9167 "This function returns an icon corresponding to the inspected operating "
9168 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
9169 "to PNG if necessary)."
9170 msgstr ""
9171
9172 #. type: textblock
9173 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2985
9174 msgid ""
9175 "If it was not possible to get an icon this function returns a zero-length "
9176 "(non-NULL) buffer.  I<Callers must check for this case>."
9177 msgstr ""
9178
9179 #. type: textblock
9180 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2988
9181 msgid ""
9182 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
9183 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
9184 "this file will be returned.  You can disable favicons by passing the "
9185 "optional C<favicon> boolean as false (default is true)."
9186 msgstr ""
9187
9188 #. type: textblock
9189 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:2994
9190 msgid ""
9191 "If finding the favicon fails, then we look in other places in the guest for "
9192 "a suitable icon."
9193 msgstr ""
9194
9195 #. type: textblock
9196 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:2997
9197 msgid ""
9198 "If the optional C<highquality> boolean is true then only high quality icons "
9199 "are returned, which means only icons of high resolution with an alpha "
9200 "channel.  The default (false) is to return any icon we can, even if it is of "
9201 "substandard quality."
9202 msgstr ""
9203
9204 #. type: textblock
9205 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3008
9206 msgid ""
9207 "Unlike most other inspection API calls, the guest's disks must be mounted up "
9208 "before you call this, since it needs to read information from the guest "
9209 "filesystem during the call."
9210 msgstr ""
9211
9212 #. type: textblock
9213 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3014
9214 msgid ""
9215 "B<Security:> The icon data comes from the untrusted guest, and should be "
9216 "treated with caution.  PNG files have been known to contain exploits.  "
9217 "Ensure that libpng (or other relevant libraries) are fully up to date before "
9218 "trying to process or display the icon."
9219 msgstr ""
9220
9221 #. type: textblock
9222 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3022
9223 msgid ""
9224 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
9225 "tries to return the largest, highest quality icon available.  The "
9226 "application must scale the icon to the required size."
9227 msgstr ""
9228
9229 #. type: textblock
9230 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3029
9231 msgid ""
9232 "Extracting icons from Windows guests requires the external C<wrestool> "
9233 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
9234 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
9235 "installed separately."
9236 msgstr ""
9237
9238 #. type: textblock
9239 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3036
9240 msgid ""
9241 "Operating system icons are usually trademarks.  Seek legal advice before "
9242 "using trademarks in applications."
9243 msgstr ""
9244
9245 #. type: =head2
9246 #: ../fish/guestfish-actions.pod:2042
9247 msgid "inspect-get-major-version"
9248 msgstr "inspect-get-major-version"
9249
9250 #. type: verbatim
9251 #: ../fish/guestfish-actions.pod:2044
9252 #, no-wrap
9253 msgid ""
9254 " inspect-get-major-version root\n"
9255 "\n"
9256 msgstr ""
9257 " inspect-get-major-version корінь\n"
9258 "\n"
9259
9260 #. type: textblock
9261 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3077
9262 msgid ""
9263 "This returns the major version number of the inspected operating system."
9264 msgstr ""
9265
9266 #. type: textblock
9267 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3080
9268 msgid ""
9269 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9270 "popular public names used by the operating system.  Notably the operating "
9271 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9272 "1).  You can find out the real versions corresponding to releases of Windows "
9273 "by consulting Wikipedia or MSDN."
9274 msgstr ""
9275
9276 #. type: textblock
9277 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067
9278 #: ../src/guestfs-actions.pod:3087 ../src/guestfs-actions.pod:3104
9279 msgid "If the version could not be determined, then C<0> is returned."
9280 msgstr ""
9281
9282 #. type: =head2
9283 #: ../fish/guestfish-actions.pod:2060
9284 msgid "inspect-get-minor-version"
9285 msgstr "inspect-get-minor-version"
9286
9287 #. type: verbatim
9288 #: ../fish/guestfish-actions.pod:2062
9289 #, no-wrap
9290 msgid ""
9291 " inspect-get-minor-version root\n"
9292 "\n"
9293 msgstr ""
9294 " inspect-get-minor-version корінь\n"
9295 "\n"
9296
9297 #. type: textblock
9298 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3101
9299 msgid ""
9300 "This returns the minor version number of the inspected operating system."
9301 msgstr ""
9302
9303 #. type: textblock
9304 #: ../fish/guestfish-actions.pod:2069
9305 msgid ""
9306 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9307 "get-major-version>."
9308 msgstr ""
9309
9310 #. type: =head2
9311 #: ../fish/guestfish-actions.pod:2072
9312 msgid "inspect-get-mountpoints"
9313 msgstr "inspect-get-mountpoints"
9314
9315 #. type: verbatim
9316 #: ../fish/guestfish-actions.pod:2074
9317 #, no-wrap
9318 msgid ""
9319 " inspect-get-mountpoints root\n"
9320 "\n"
9321 msgstr ""
9322 " inspect-get-mountpoints корінь\n"
9323 "\n"
9324
9325 #. type: textblock
9326 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3119
9327 msgid ""
9328 "This returns a hash of where we think the filesystems associated with this "
9329 "operating system should be mounted.  Callers should note that this is at "
9330 "best an educated guess made by reading configuration files such as C</etc/"
9331 "fstab>.  I<In particular note> that this may return filesystems which are "
9332 "non-existent or not mountable and callers should be prepared to handle or "
9333 "ignore failures if they try to mount them."
9334 msgstr ""
9335
9336 #. type: textblock
9337 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3128
9338 msgid ""
9339 "Each element in the returned hashtable has a key which is the path of the "
9340 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9341 "mounted there (eg. C</dev/sda1>)."
9342 msgstr ""
9343
9344 #. type: textblock
9345 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3133
9346 msgid ""
9347 "Non-mounted devices such as swap devices are I<not> returned in this list."
9348 msgstr ""
9349
9350 #. type: textblock
9351 #: ../fish/guestfish-actions.pod:2093
9352 msgid ""
9353 "For operating systems like Windows which still use drive letters, this call "
9354 "will only return an entry for the first drive \"mounted on\" C</>.  For "
9355 "information about the mapping of drive letters to partitions, see L</inspect-"
9356 "get-drive-mappings>."
9357 msgstr ""
9358
9359 #. type: textblock
9360 #: ../fish/guestfish-actions.pod:2099
9361 msgid ""
9362 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9363 "get-filesystems>."
9364 msgstr ""
9365
9366 #. type: =head2
9367 #: ../fish/guestfish-actions.pod:2102
9368 msgid "inspect-get-package-format"
9369 msgstr "inspect-get-package-format"
9370
9371 #. type: verbatim
9372 #: ../fish/guestfish-actions.pod:2104
9373 #, no-wrap
9374 msgid ""
9375 " inspect-get-package-format root\n"
9376 "\n"
9377 msgstr ""
9378 " inspect-get-package-format корінь\n"
9379 "\n"
9380
9381 #. type: textblock
9382 #: ../fish/guestfish-actions.pod:2106
9383 msgid ""
9384 "This function and L</inspect-get-package-management> return the package "
9385 "format and package management tool used by the inspected operating system.  "
9386 "For example for Fedora these functions would return C<rpm> (package format) "
9387 "and C<yum> (package management)."
9388 msgstr ""
9389
9390 #. type: textblock
9391 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3165
9392 msgid ""
9393 "This returns the string C<unknown> if we could not determine the package "
9394 "format I<or> if the operating system does not have a real packaging system "
9395 "(eg. Windows)."
9396 msgstr ""
9397
9398 #. type: textblock
9399 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3169
9400 msgid ""
9401 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9402 "Future versions of libguestfs may return other strings."
9403 msgstr ""
9404
9405 #. type: =head2
9406 #: ../fish/guestfish-actions.pod:2121
9407 msgid "inspect-get-package-management"
9408 msgstr "inspect-get-package-management"
9409
9410 #. type: verbatim
9411 #: ../fish/guestfish-actions.pod:2123
9412 #, no-wrap
9413 msgid ""
9414 " inspect-get-package-management root\n"
9415 "\n"
9416 msgstr ""
9417 " inspect-get-package-management корінь\n"
9418 "\n"
9419
9420 #. type: textblock
9421 #: ../fish/guestfish-actions.pod:2125
9422 msgid ""
9423 "L</inspect-get-package-format> and this function return the package format "
9424 "and package management tool used by the inspected operating system.  For "
9425 "example for Fedora these functions would return C<rpm> (package format) and "
9426 "C<yum> (package management)."
9427 msgstr ""
9428
9429 #. type: textblock
9430 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3191
9431 msgid ""
9432 "This returns the string C<unknown> if we could not determine the package "
9433 "management tool I<or> if the operating system does not have a real packaging "
9434 "system (eg. Windows)."
9435 msgstr ""
9436
9437 #. type: textblock
9438 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3195
9439 msgid ""
9440 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9441 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9442 "libguestfs may return other strings."
9443 msgstr ""
9444
9445 #. type: =head2
9446 #: ../fish/guestfish-actions.pod:2142
9447 msgid "inspect-get-product-name"
9448 msgstr "inspect-get-product-name"
9449
9450 #. type: verbatim
9451 #: ../fish/guestfish-actions.pod:2144
9452 #, no-wrap
9453 msgid ""
9454 " inspect-get-product-name root\n"
9455 "\n"
9456 msgstr ""
9457 " inspect-get-product-name корінь\n"
9458 "\n"
9459
9460 #. type: textblock
9461 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3213
9462 msgid ""
9463 "This returns the product name of the inspected operating system.  The "
9464 "product name is generally some freeform string which can be displayed to the "
9465 "user, but should not be parsed by programs."
9466 msgstr ""
9467
9468 #. type: textblock
9469 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3218
9470 msgid ""
9471 "If the product name could not be determined, then the string C<unknown> is "
9472 "returned."
9473 msgstr ""
9474
9475 #. type: =head2
9476 #: ../fish/guestfish-actions.pod:2156
9477 msgid "inspect-get-product-variant"
9478 msgstr ""
9479
9480 #. type: verbatim
9481 #: ../fish/guestfish-actions.pod:2158
9482 #, no-wrap
9483 msgid ""
9484 " inspect-get-product-variant root\n"
9485 "\n"
9486 msgstr ""
9487
9488 #. type: textblock
9489 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
9490 msgid "This returns the product variant of the inspected operating system."
9491 msgstr ""
9492
9493 #. type: textblock
9494 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3237
9495 msgid ""
9496 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9497 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9498 "is usually a string such as C<Client> or C<Server> (other values are "
9499 "possible).  This can be used to distinguish consumer and enterprise versions "
9500 "of Windows that have the same version number (for example, Windows 7 and "
9501 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9502 "the latter is C<Server>)."
9503 msgstr ""
9504
9505 #. type: textblock
9506 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3246
9507 msgid ""
9508 "For enterprise Linux guests, in future we intend this to return the product "
9509 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9510 "implemented at present."
9511 msgstr ""
9512
9513 #. type: textblock
9514 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3250
9515 msgid ""
9516 "If the product variant could not be determined, then the string C<unknown> "
9517 "is returned."
9518 msgstr ""
9519
9520 #. type: textblock
9521 #: ../fish/guestfish-actions.pod:2179
9522 msgid ""
9523 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9524 "get-product-name>, L</inspect-get-major-version>."
9525 msgstr ""
9526
9527 #. type: =head2
9528 #: ../fish/guestfish-actions.pod:2183
9529 msgid "inspect-get-roots"
9530 msgstr "inspect-get-roots"
9531
9532 #. type: verbatim
9533 #: ../fish/guestfish-actions.pod:2185
9534 #, no-wrap
9535 msgid ""
9536 " inspect-get-roots\n"
9537 "\n"
9538 msgstr ""
9539 " inspect-get-roots\n"
9540 "\n"
9541
9542 #. type: textblock
9543 #: ../fish/guestfish-actions.pod:2187
9544 msgid ""
9545 "This function is a convenient way to get the list of root devices, as "
9546 "returned from a previous call to L</inspect-os>, but without redoing the "
9547 "whole inspection process."
9548 msgstr ""
9549
9550 #. type: textblock
9551 #: ../fish/guestfish-actions.pod:2191
9552 msgid ""
9553 "This returns an empty list if either no root devices were found or the "
9554 "caller has not called L</inspect-os>."
9555 msgstr ""
9556
9557 #. type: =head2
9558 #: ../fish/guestfish-actions.pod:2196
9559 msgid "inspect-get-type"
9560 msgstr "inspect-get-type"
9561
9562 #. type: verbatim
9563 #: ../fish/guestfish-actions.pod:2198
9564 #, no-wrap
9565 msgid ""
9566 " inspect-get-type root\n"
9567 "\n"
9568 msgstr ""
9569 " inspect-get-type корінь\n"
9570 "\n"
9571
9572 #. type: textblock
9573 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3288
9574 msgid ""
9575 "This returns the type of the inspected operating system.  Currently defined "
9576 "types are:"
9577 msgstr ""
9578
9579 #. type: =item
9580 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3293
9581 msgid "\"linux\""
9582 msgstr "\"linux\""
9583
9584 #. type: textblock
9585 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3295
9586 msgid "Any Linux-based operating system."
9587 msgstr ""
9588
9589 #. type: textblock
9590 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3299
9591 msgid "Any Microsoft Windows operating system."
9592 msgstr ""
9593
9594 #. type: =item
9595 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3301
9596 msgid "\"freebsd\""
9597 msgstr "\"freebsd\""
9598
9599 #. type: textblock
9600 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3303
9601 msgid "FreeBSD."
9602 msgstr "FreeBSD."
9603
9604 #. type: textblock
9605 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3307
9606 msgid "The operating system type could not be determined."
9607 msgstr ""
9608
9609 #. type: =head2
9610 #: ../fish/guestfish-actions.pod:2228
9611 msgid "inspect-get-windows-current-control-set"
9612 msgstr ""
9613
9614 #. type: verbatim
9615 #: ../fish/guestfish-actions.pod:2230
9616 #, no-wrap
9617 msgid ""
9618 " inspect-get-windows-current-control-set root\n"
9619 "\n"
9620 msgstr ""
9621
9622 #. type: textblock
9623 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3327
9624 msgid ""
9625 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9626 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9627 msgstr ""
9628
9629 #. type: textblock
9630 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3330
9631 msgid ""
9632 "This call assumes that the guest is Windows and that the Registry could be "
9633 "examined by inspection.  If this is not the case then an error is returned."
9634 msgstr ""
9635
9636 #. type: =head2
9637 #: ../fish/guestfish-actions.pod:2241
9638 msgid "inspect-get-windows-systemroot"
9639 msgstr "inspect-get-windows-systemroot"
9640
9641 #. type: verbatim
9642 #: ../fish/guestfish-actions.pod:2243
9643 #, no-wrap
9644 msgid ""
9645 " inspect-get-windows-systemroot root\n"
9646 "\n"
9647 msgstr ""
9648 " inspect-get-windows-systemroot корінь\n"
9649 "\n"
9650
9651 #. type: textblock
9652 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3347
9653 msgid ""
9654 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9655 "is a directory path such as C</WINDOWS>."
9656 msgstr ""
9657
9658 #. type: textblock
9659 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3350
9660 msgid ""
9661 "This call assumes that the guest is Windows and that the systemroot could be "
9662 "determined by inspection.  If this is not the case then an error is returned."
9663 msgstr ""
9664
9665 #. type: =head2
9666 #: ../fish/guestfish-actions.pod:2254
9667 msgid "inspect-is-live"
9668 msgstr "inspect-is-live"
9669
9670 #. type: verbatim
9671 #: ../fish/guestfish-actions.pod:2256
9672 #, no-wrap
9673 msgid ""
9674 " inspect-is-live root\n"
9675 "\n"
9676 msgstr ""
9677 " inspect-is-live корінь\n"
9678 "\n"
9679
9680 #. type: textblock
9681 #: ../fish/guestfish-actions.pod:2258
9682 msgid ""
9683 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9684 "then this returns true if a live image was detected on the disk."
9685 msgstr ""
9686
9687 #. type: =head2
9688 #: ../fish/guestfish-actions.pod:2264
9689 msgid "inspect-is-multipart"
9690 msgstr "inspect-is-multipart"
9691
9692 #. type: verbatim
9693 #: ../fish/guestfish-actions.pod:2266
9694 #, no-wrap
9695 msgid ""
9696 " inspect-is-multipart root\n"
9697 "\n"
9698 msgstr ""
9699 " inspect-is-multipart корінь\n"
9700 "\n"
9701
9702 #. type: textblock
9703 #: ../fish/guestfish-actions.pod:2268
9704 msgid ""
9705 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9706 "then this returns true if the disk is part of a set."
9707 msgstr ""
9708
9709 #. type: =head2
9710 #: ../fish/guestfish-actions.pod:2274
9711 msgid "inspect-is-netinst"
9712 msgstr "inspect-is-netinst"
9713
9714 #. type: verbatim
9715 #: ../fish/guestfish-actions.pod:2276
9716 #, no-wrap
9717 msgid ""
9718 " inspect-is-netinst root\n"
9719 "\n"
9720 msgstr ""
9721 " inspect-is-netinst корінь\n"
9722 "\n"
9723
9724 #. type: textblock
9725 #: ../fish/guestfish-actions.pod:2278
9726 msgid ""
9727 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9728 "then this returns true if the disk is a network installer, ie. not a self-"
9729 "contained install CD but one which is likely to require network access to "
9730 "complete the install."
9731 msgstr ""
9732
9733 #. type: =head2
9734 #: ../fish/guestfish-actions.pod:2286
9735 msgid "inspect-list-applications"
9736 msgstr "inspect-list-applications"
9737
9738 #. type: verbatim
9739 #: ../fish/guestfish-actions.pod:2288
9740 #, no-wrap
9741 msgid ""
9742 " inspect-list-applications root\n"
9743 "\n"
9744 msgstr ""
9745 " inspect-list-applications кореневий_каталог\n"
9746 "\n"
9747
9748 #. type: textblock
9749 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3417
9750 msgid "Return the list of applications installed in the operating system."
9751 msgstr ""
9752
9753 #. type: textblock
9754 #: ../fish/guestfish-actions.pod:2292
9755 msgid ""
9756 "I<Note:> This call works differently from other parts of the inspection "
9757 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9758 "then mount up the disks, before calling this.  Listing applications is a "
9759 "significantly more difficult operation which requires access to the full "
9760 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9761 "are just returning data cached in the libguestfs handle, this call actually "
9762 "reads parts of the mounted filesystems during the call."
9763 msgstr ""
9764
9765 #. type: textblock
9766 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3429
9767 msgid ""
9768 "This returns an empty list if the inspection code was not able to determine "
9769 "the list of applications."
9770 msgstr ""
9771
9772 #. type: textblock
9773 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3432
9774 msgid "The application structure contains the following fields:"
9775 msgstr ""
9776
9777 #. type: =item
9778 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3436
9779 msgid "C<app_name>"
9780 msgstr "C<app_name>"
9781
9782 #. type: textblock
9783 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3438
9784 msgid ""
9785 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9786 "guests, this is the package name."
9787 msgstr ""
9788
9789 #. type: =item
9790 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3441
9791 msgid "C<app_display_name>"
9792 msgstr "C<app_display_name>"
9793
9794 #. type: textblock
9795 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3443
9796 msgid ""
9797 "The display name of the application, sometimes localized to the install "
9798 "language of the guest operating system."
9799 msgstr ""
9800
9801 #. type: textblock
9802 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3446
9803 msgid ""
9804 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9805 "to display something can use C<app_name> instead."
9806 msgstr ""
9807
9808 #. type: =item
9809 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3449
9810 msgid "C<app_epoch>"
9811 msgstr "C<app_epoch>"
9812
9813 #. type: textblock
9814 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3451
9815 msgid ""
9816 "For package managers which use epochs, this contains the epoch of the "
9817 "package (an integer).  If unavailable, this is returned as C<0>."
9818 msgstr ""
9819
9820 #. type: =item
9821 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3454
9822 msgid "C<app_version>"
9823 msgstr "C<app_version>"
9824
9825 #. type: textblock
9826 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3456
9827 msgid ""
9828 "The version string of the application or package.  If unavailable this is "
9829 "returned as an empty string C<\"\">."
9830 msgstr ""
9831
9832 #. type: =item
9833 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3459
9834 msgid "C<app_release>"
9835 msgstr "C<app_release>"
9836
9837 #. type: textblock
9838 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3461
9839 msgid ""
9840 "The release string of the application or package, for package managers that "
9841 "use this.  If unavailable this is returned as an empty string C<\"\">."
9842 msgstr ""
9843
9844 #. type: =item
9845 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3465
9846 msgid "C<app_install_path>"
9847 msgstr "C<app_install_path>"
9848
9849 #. type: textblock
9850 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3467
9851 msgid ""
9852 "The installation path of the application (on operating systems such as "
9853 "Windows which use installation paths).  This path is in the format used by "
9854 "the guest operating system, it is not a libguestfs path."
9855 msgstr ""
9856
9857 #. type: textblock
9858 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3472
9859 msgid "If unavailable this is returned as an empty string C<\"\">."
9860 msgstr ""
9861
9862 #. type: =item
9863 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3474
9864 msgid "C<app_trans_path>"
9865 msgstr "C<app_trans_path>"
9866
9867 #. type: textblock
9868 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3476
9869 msgid ""
9870 "The install path translated into a libguestfs path.  If unavailable this is "
9871 "returned as an empty string C<\"\">."
9872 msgstr ""
9873
9874 #. type: =item
9875 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3479
9876 msgid "C<app_publisher>"
9877 msgstr "C<app_publisher>"
9878
9879 #. type: textblock
9880 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3481
9881 msgid ""
9882 "The name of the publisher of the application, for package managers that use "
9883 "this.  If unavailable this is returned as an empty string C<\"\">."
9884 msgstr ""
9885
9886 #. type: =item
9887 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3485
9888 msgid "C<app_url>"
9889 msgstr "C<app_url>"
9890
9891 #. type: textblock
9892 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3487
9893 msgid ""
9894 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9895 "returned as an empty string C<\"\">."
9896 msgstr ""
9897
9898 #. type: =item
9899 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3490
9900 msgid "C<app_source_package>"
9901 msgstr "C<app_source_package>"
9902
9903 #. type: textblock
9904 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3492
9905 msgid ""
9906 "For packaging systems which support this, the name of the source package.  "
9907 "If unavailable this is returned as an empty string C<\"\">."
9908 msgstr ""
9909
9910 #. type: =item
9911 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3495
9912 msgid "C<app_summary>"
9913 msgstr "C<app_summary>"
9914
9915 #. type: textblock
9916 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3497
9917 msgid ""
9918 "A short (usually one line) description of the application or package.  If "
9919 "unavailable this is returned as an empty string C<\"\">."
9920 msgstr ""
9921
9922 #. type: =item
9923 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3500
9924 msgid "C<app_description>"
9925 msgstr "C<app_description>"
9926
9927 #. type: textblock
9928 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3502
9929 msgid ""
9930 "A longer description of the application or package.  If unavailable this is "
9931 "returned as an empty string C<\"\">."
9932 msgstr ""
9933
9934 #. type: =head2
9935 #: ../fish/guestfish-actions.pod:2382
9936 msgid "inspect-os"
9937 msgstr "inspect-os"
9938
9939 #. type: verbatim
9940 #: ../fish/guestfish-actions.pod:2384
9941 #, no-wrap
9942 msgid ""
9943 " inspect-os\n"
9944 "\n"
9945 msgstr ""
9946 " inspect-os\n"
9947 "\n"
9948
9949 #. type: textblock
9950 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
9951 msgid ""
9952 "This function uses other libguestfs functions and certain heuristics to "
9953 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9954 "for operating systems."
9955 msgstr ""
9956
9957 #. type: textblock
9958 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3524
9959 msgid "The list returned is empty if no operating systems were found."
9960 msgstr ""
9961
9962 #. type: textblock
9963 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3526
9964 msgid ""
9965 "If one operating system was found, then this returns a list with a single "
9966 "element, which is the name of the root filesystem of this operating system.  "
9967 "It is also possible for this function to return a list containing more than "
9968 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9969 "element being the root filesystem of one of the operating systems."
9970 msgstr ""
9971
9972 #. type: textblock
9973 #: ../fish/guestfish-actions.pod:2399
9974 msgid ""
9975 "You can pass the root string(s) returned to other L</inspect-get-*> "
9976 "functions in order to query further information about each operating system, "
9977 "such as the name and version."
9978 msgstr ""
9979
9980 #. type: textblock
9981 #: ../fish/guestfish-actions.pod:2404
9982 msgid ""
9983 "This function uses other libguestfs features such as L</mount-ro> and L</"
9984 "umount-all> in order to mount and unmount filesystems and look at the "
9985 "contents.  This should be called with no disks currently mounted.  The "
9986 "function may also use Augeas, so any existing Augeas handle will be closed."
9987 msgstr ""
9988
9989 #. type: textblock
9990 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3544
9991 msgid ""
9992 "This function cannot decrypt encrypted disks.  The caller must do that first "
9993 "(supplying the necessary keys) if the disk is encrypted."
9994 msgstr ""
9995
9996 #. type: textblock
9997 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614
9998 #: ../fish/guestfish-actions.pod:2673
9999 msgid "See also L</list-filesystems>."
10000 msgstr "Див. також L</list-filesystems>."
10001
10002 #. type: =head2
10003 #: ../fish/guestfish-actions.pod:2418
10004 msgid "is-blockdev"
10005 msgstr "is-blockdev"
10006
10007 #. type: verbatim
10008 #: ../fish/guestfish-actions.pod:2420
10009 #, no-wrap
10010 msgid ""
10011 " is-blockdev path\n"
10012 "\n"
10013 msgstr ""
10014 " is-blockdev шлях\n"
10015 "\n"
10016
10017 #. type: textblock
10018 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3564
10019 msgid ""
10020 "This returns C<true> if and only if there is a block device with the given "
10021 "C<path> name."
10022 msgstr ""
10023
10024 #. type: textblock
10025 #: ../fish/guestfish-actions.pod:2425 ../fish/guestfish-actions.pod:2443
10026 #: ../fish/guestfish-actions.pod:2462 ../fish/guestfish-actions.pod:2471
10027 #: ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2515
10028 #: ../fish/guestfish-actions.pod:2524
10029 msgid "See also L</stat>."
10030 msgstr "Див. також L</stat>."
10031
10032 #. type: =head2
10033 #: ../fish/guestfish-actions.pod:2427
10034 msgid "is-busy"
10035 msgstr "is-busy"
10036
10037 #. type: verbatim
10038 #: ../fish/guestfish-actions.pod:2429
10039 #, no-wrap
10040 msgid ""
10041 " is-busy\n"
10042 "\n"
10043 msgstr ""
10044 " is-busy\n"
10045 "\n"
10046
10047 #. type: textblock
10048 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3578
10049 msgid ""
10050 "This returns true iff this handle is busy processing a command (in the "
10051 "C<BUSY> state)."
10052 msgstr ""
10053
10054 #. type: =head2
10055 #: ../fish/guestfish-actions.pod:2436
10056 msgid "is-chardev"
10057 msgstr "is-chardev"
10058
10059 #. type: verbatim
10060 #: ../fish/guestfish-actions.pod:2438
10061 #, no-wrap
10062 msgid ""
10063 " is-chardev path\n"
10064 "\n"
10065 msgstr ""
10066 " is-chardev шлях\n"
10067 "\n"
10068
10069 #. type: textblock
10070 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3593
10071 msgid ""
10072 "This returns C<true> if and only if there is a character device with the "
10073 "given C<path> name."
10074 msgstr ""
10075
10076 #. type: =head2
10077 #: ../fish/guestfish-actions.pod:2445
10078 msgid "is-config"
10079 msgstr "is-config"
10080
10081 #. type: verbatim
10082 #: ../fish/guestfish-actions.pod:2447
10083 #, no-wrap
10084 msgid ""
10085 " is-config\n"
10086 "\n"
10087 msgstr ""
10088 " is-config\n"
10089 "\n"
10090
10091 #. type: textblock
10092 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3607
10093 msgid ""
10094 "This returns true iff this handle is being configured (in the C<CONFIG> "
10095 "state)."
10096 msgstr ""
10097
10098 #. type: =head2
10099 #: ../fish/guestfish-actions.pod:2454
10100 msgid "is-dir"
10101 msgstr "is-dir"
10102
10103 #. type: verbatim
10104 #: ../fish/guestfish-actions.pod:2456
10105 #, no-wrap
10106 msgid ""
10107 " is-dir path\n"
10108 "\n"
10109 msgstr ""
10110 " is-dir шлях\n"
10111 "\n"
10112
10113 #. type: textblock
10114 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3622
10115 msgid ""
10116 "This returns C<true> if and only if there is a directory with the given "
10117 "C<path> name.  Note that it returns false for other objects like files."
10118 msgstr ""
10119
10120 #. type: =head2
10121 #: ../fish/guestfish-actions.pod:2464
10122 msgid "is-fifo"
10123 msgstr "is-fifo"
10124
10125 #. type: verbatim
10126 #: ../fish/guestfish-actions.pod:2466
10127 #, no-wrap
10128 msgid ""
10129 " is-fifo path\n"
10130 "\n"
10131 msgstr ""
10132 " is-fifo шлях\n"
10133 "\n"
10134
10135 #. type: textblock
10136 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3638
10137 msgid ""
10138 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
10139 "given C<path> name."
10140 msgstr ""
10141
10142 #. type: =head2
10143 #: ../fish/guestfish-actions.pod:2473
10144 msgid "is-file"
10145 msgstr "is-file"
10146
10147 #. type: verbatim
10148 #: ../fish/guestfish-actions.pod:2475
10149 #, no-wrap
10150 msgid ""
10151 " is-file path\n"
10152 "\n"
10153 msgstr ""
10154 " is-file шлях\n"
10155 "\n"
10156
10157 #. type: textblock
10158 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3653
10159 msgid ""
10160 "This returns C<true> if and only if there is a regular file with the given "
10161 "C<path> name.  Note that it returns false for other objects like directories."
10162 msgstr ""
10163
10164 #. type: =head2
10165 #: ../fish/guestfish-actions.pod:2483
10166 msgid "is-launching"
10167 msgstr "is-launching"
10168
10169 #. type: verbatim
10170 #: ../fish/guestfish-actions.pod:2485
10171 #, no-wrap
10172 msgid ""
10173 " is-launching\n"
10174 "\n"
10175 msgstr ""
10176 " is-launching\n"
10177 "\n"
10178
10179 #. type: textblock
10180 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3668
10181 msgid ""
10182 "This returns true iff this handle is launching the subprocess (in the "
10183 "C<LAUNCHING> state)."
10184 msgstr ""
10185
10186 #. type: =head2
10187 #: ../fish/guestfish-actions.pod:2492
10188 msgid "is-lv"
10189 msgstr "is-lv"
10190
10191 #. type: verbatim
10192 #: ../fish/guestfish-actions.pod:2494
10193 #, no-wrap
10194 msgid ""
10195 " is-lv device\n"
10196 "\n"
10197 msgstr ""
10198 " is-lv пристрій\n"
10199 "\n"
10200
10201 #. type: textblock
10202 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3683
10203 msgid ""
10204 "This command tests whether C<device> is a logical volume, and returns true "
10205 "iff this is the case."
10206 msgstr ""
10207
10208 #. type: =head2
10209 #: ../fish/guestfish-actions.pod:2499
10210 msgid "is-ready"
10211 msgstr "is-ready"
10212
10213 #. type: verbatim
10214 #: ../fish/guestfish-actions.pod:2501
10215 #, no-wrap
10216 msgid ""
10217 " is-ready\n"
10218 "\n"
10219 msgstr ""
10220 " is-ready\n"
10221 "\n"
10222
10223 #. type: textblock
10224 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3695
10225 msgid ""
10226 "This returns true iff this handle is ready to accept commands (in the "
10227 "C<READY> state)."
10228 msgstr ""
10229
10230 #. type: =head2
10231 #: ../fish/guestfish-actions.pod:2508
10232 msgid "is-socket"
10233 msgstr "is-socket"
10234
10235 #. type: verbatim
10236 #: ../fish/guestfish-actions.pod:2510
10237 #, no-wrap
10238 msgid ""
10239 " is-socket path\n"
10240 "\n"
10241 msgstr ""
10242 " is-socket шлях\n"
10243 "\n"
10244
10245 #. type: textblock
10246 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3710
10247 msgid ""
10248 "This returns C<true> if and only if there is a Unix domain socket with the "
10249 "given C<path> name."
10250 msgstr ""
10251
10252 #. type: =head2
10253 #: ../fish/guestfish-actions.pod:2517
10254 msgid "is-symlink"
10255 msgstr "is-symlink"
10256
10257 #. type: verbatim
10258 #: ../fish/guestfish-actions.pod:2519
10259 #, no-wrap
10260 msgid ""
10261 " is-symlink path\n"
10262 "\n"
10263 msgstr ""
10264 " is-symlink шлях\n"
10265 "\n"
10266
10267 #. type: textblock
10268 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3725
10269 msgid ""
10270 "This returns C<true> if and only if there is a symbolic link with the given "
10271 "C<path> name."
10272 msgstr ""
10273
10274 #. type: =head2
10275 #: ../fish/guestfish-actions.pod:2526
10276 msgid "is-zero"
10277 msgstr ""
10278
10279 #. type: verbatim
10280 #: ../fish/guestfish-actions.pod:2528
10281 #, no-wrap
10282 msgid ""
10283 " is-zero path\n"
10284 "\n"
10285 msgstr ""
10286
10287 #. type: textblock
10288 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3740
10289 msgid ""
10290 "This returns true iff the file exists and the file is empty or it contains "
10291 "all zero bytes."
10292 msgstr ""
10293
10294 #. type: =head2
10295 #: ../fish/guestfish-actions.pod:2533
10296 msgid "is-zero-device"
10297 msgstr ""
10298
10299 #. type: verbatim
10300 #: ../fish/guestfish-actions.pod:2535
10301 #, no-wrap
10302 msgid ""
10303 " is-zero-device device\n"
10304 "\n"
10305 msgstr ""
10306
10307 #. type: textblock
10308 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3753
10309 msgid "This returns true iff the device exists and contains all zero bytes."
10310 msgstr ""
10311
10312 #. type: textblock
10313 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3755
10314 msgid "Note that for large devices this can take a long time to run."
10315 msgstr ""
10316
10317 #. type: =head2
10318 #: ../fish/guestfish-actions.pod:2541
10319 msgid "kill-subprocess"
10320 msgstr "kill-subprocess"
10321
10322 #. type: verbatim
10323 #: ../fish/guestfish-actions.pod:2543
10324 #, no-wrap
10325 msgid ""
10326 " kill-subprocess\n"
10327 "\n"
10328 msgstr ""
10329 " kill-subprocess\n"
10330 "\n"
10331
10332 #. type: textblock
10333 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3766
10334 msgid "This kills the qemu subprocess.  You should never need to call this."
10335 msgstr ""
10336
10337 #. type: =head2
10338 #: ../fish/guestfish-actions.pod:2547
10339 msgid "launch"
10340 msgstr "launch"
10341
10342 #. type: =head2
10343 #: ../fish/guestfish-actions.pod:2549
10344 msgid "run"
10345 msgstr ""
10346
10347 #. type: verbatim
10348 #: ../fish/guestfish-actions.pod:2551
10349 #, no-wrap
10350 msgid ""
10351 " launch\n"
10352 "\n"
10353 msgstr ""
10354 " launch\n"
10355 "\n"
10356
10357 #. type: textblock
10358 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3777
10359 msgid ""
10360 "Internally libguestfs is implemented by running a virtual machine using "
10361 "L<qemu(1)>."
10362 msgstr ""
10363
10364 #. type: textblock
10365 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3780
10366 msgid ""
10367 "You should call this after configuring the handle (eg. adding drives) but "
10368 "before performing any actions."
10369 msgstr ""
10370
10371 #. type: =head2
10372 #: ../fish/guestfish-actions.pod:2559
10373 msgid "lchown"
10374 msgstr "lchown"
10375
10376 #. type: verbatim
10377 #: ../fish/guestfish-actions.pod:2561
10378 #, no-wrap
10379 msgid ""
10380 " lchown owner group path\n"
10381 "\n"
10382 msgstr ""
10383 " lchown власник група шлях\n"
10384 "\n"
10385
10386 #. type: textblock
10387 #: ../fish/guestfish-actions.pod:2563
10388 msgid ""
10389 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
10390 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10391 "target."
10392 msgstr ""
10393
10394 #. type: =head2
10395 #: ../fish/guestfish-actions.pod:2571
10396 msgid "lgetxattr"
10397 msgstr "lgetxattr"
10398
10399 #. type: verbatim
10400 #: ../fish/guestfish-actions.pod:2573
10401 #, no-wrap
10402 msgid ""
10403 " lgetxattr path name\n"
10404 "\n"
10405 msgstr ""
10406 " lgetxattr шлях назва\n"
10407 "\n"
10408
10409 #. type: textblock
10410 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3820
10411 msgid ""
10412 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10413 "is a symlink, then this call returns an extended attribute from the symlink."
10414 msgstr ""
10415
10416 #. type: textblock
10417 #: ../fish/guestfish-actions.pod:2589
10418 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10419 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10420
10421 #. type: =head2
10422 #: ../fish/guestfish-actions.pod:2591
10423 msgid "lgetxattrs"
10424 msgstr "lgetxattrs"
10425
10426 #. type: verbatim
10427 #: ../fish/guestfish-actions.pod:2593
10428 #, no-wrap
10429 msgid ""
10430 " lgetxattrs path\n"
10431 "\n"
10432 msgstr ""
10433 " lgetxattrs шлях\n"
10434 "\n"
10435
10436 #. type: textblock
10437 #: ../fish/guestfish-actions.pod:2595
10438 msgid ""
10439 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10440 "it returns the extended attributes of the link itself."
10441 msgstr ""
10442
10443 #. type: =head2
10444 #: ../fish/guestfish-actions.pod:2599
10445 msgid "list-9p"
10446 msgstr ""
10447
10448 #. type: verbatim
10449 #: ../fish/guestfish-actions.pod:2601
10450 #, no-wrap
10451 msgid ""
10452 " list-9p\n"
10453 "\n"
10454 msgstr ""
10455
10456 #. type: textblock
10457 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3863
10458 msgid ""
10459 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10460 "returned."
10461 msgstr ""
10462
10463 #. type: =head2
10464 #: ../fish/guestfish-actions.pod:2606
10465 msgid "list-devices"
10466 msgstr "list-devices"
10467
10468 #. type: verbatim
10469 #: ../fish/guestfish-actions.pod:2608
10470 #, no-wrap
10471 msgid ""
10472 " list-devices\n"
10473 "\n"
10474 msgstr ""
10475 " list-devices\n"
10476 "\n"
10477
10478 #. type: textblock
10479 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3877
10480 msgid "List all the block devices."
10481 msgstr ""
10482
10483 #. type: textblock
10484 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3879
10485 msgid "The full block device names are returned, eg. C</dev/sda>."
10486 msgstr ""
10487
10488 #. type: =head2
10489 #: ../fish/guestfish-actions.pod:2616
10490 msgid "list-dm-devices"
10491 msgstr ""
10492
10493 #. type: verbatim
10494 #: ../fish/guestfish-actions.pod:2618
10495 #, no-wrap
10496 msgid ""
10497 " list-dm-devices\n"
10498 "\n"
10499 msgstr ""
10500
10501 #. type: textblock
10502 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3894
10503 msgid "List all device mapper devices."
10504 msgstr ""
10505
10506 #. type: textblock
10507 #: ../fish/guestfish-actions.pod:2622
10508 msgid ""
10509 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10510 "previous call to L</luks-open>."
10511 msgstr ""
10512
10513 #. type: textblock
10514 #: ../fish/guestfish-actions.pod:2625
10515 msgid ""
10516 "Device mapper devices which correspond to logical volumes are I<not> "
10517 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10518 msgstr ""
10519
10520 #. type: =head2
10521 #: ../fish/guestfish-actions.pod:2629
10522 msgid "list-filesystems"
10523 msgstr "list-filesystems"
10524
10525 #. type: verbatim
10526 #: ../fish/guestfish-actions.pod:2631
10527 #, no-wrap
10528 msgid ""
10529 " list-filesystems\n"
10530 "\n"
10531 msgstr ""
10532 " list-filesystems\n"
10533 "\n"
10534
10535 #. type: textblock
10536 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3914
10537 msgid ""
10538 "This inspection command looks for filesystems on partitions, block devices "
10539 "and logical volumes, returning a list of devices containing filesystems and "
10540 "their type."
10541 msgstr ""
10542
10543 #. type: textblock
10544 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3918
10545 msgid ""
10546 "The return value is a hash, where the keys are the devices containing "
10547 "filesystems, and the values are the filesystem types.  For example:"
10548 msgstr ""
10549
10550 #. type: verbatim
10551 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3922
10552 #, no-wrap
10553 msgid ""
10554 " \"/dev/sda1\" => \"ntfs\"\n"
10555 " \"/dev/sda2\" => \"ext2\"\n"
10556 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10557 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10558 "\n"
10559 msgstr ""
10560
10561 #. type: textblock
10562 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3927
10563 msgid ""
10564 "The value can have the special value \"unknown\", meaning the content of the "
10565 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10566 msgstr ""
10567
10568 #. type: textblock
10569 #: ../fish/guestfish-actions.pod:2650
10570 msgid ""
10571 "This command runs other libguestfs commands, which might include L</mount> "
10572 "and L</umount>, and therefore you should use this soon after launch and only "
10573 "when nothing is mounted."
10574 msgstr ""
10575
10576 #. type: textblock
10577 #: ../fish/guestfish-actions.pod:2654
10578 msgid ""
10579 "Not all of the filesystems returned will be mountable.  In particular, swap "
10580 "partitions are returned in the list.  Also this command does not check that "
10581 "each filesystem found is valid and mountable, and some filesystems might be "
10582 "mountable but require special options.  Filesystems may not all belong to a "
10583 "single logical operating system (use L</inspect-os> to look for OSes)."
10584 msgstr ""
10585
10586 #. type: =head2
10587 #: ../fish/guestfish-actions.pod:2662
10588 msgid "list-partitions"
10589 msgstr "list-partitions"
10590
10591 #. type: verbatim
10592 #: ../fish/guestfish-actions.pod:2664
10593 #, no-wrap
10594 msgid ""
10595 " list-partitions\n"
10596 "\n"
10597 msgstr ""
10598 " list-partitions\n"
10599 "\n"
10600
10601 #. type: textblock
10602 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3956
10603 msgid "List all the partitions detected on all block devices."
10604 msgstr ""
10605
10606 #. type: textblock
10607 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3958
10608 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10609 msgstr ""
10610
10611 #. type: textblock
10612 #: ../fish/guestfish-actions.pod:2670
10613 msgid ""
10614 "This does not return logical volumes.  For that you will need to call L</"
10615 "lvs>."
10616 msgstr ""
10617
10618 #. type: =head2
10619 #: ../fish/guestfish-actions.pod:2675
10620 msgid "ll"
10621 msgstr "ll"
10622
10623 #. type: verbatim
10624 #: ../fish/guestfish-actions.pod:2677
10625 #, no-wrap
10626 msgid ""
10627 " ll directory\n"
10628 "\n"
10629 msgstr ""
10630 " ll каталог\n"
10631 "\n"
10632
10633 #. type: textblock
10634 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3977
10635 msgid ""
10636 "List the files in C<directory> (relative to the root directory, there is no "
10637 "cwd) in the format of 'ls -la'."
10638 msgstr ""
10639
10640 #. type: textblock
10641 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3980
10642 msgid ""
10643 "This command is mostly useful for interactive sessions.  It is I<not> "
10644 "intended that you try to parse the output string."
10645 msgstr ""
10646
10647 #. type: =head2
10648 #: ../fish/guestfish-actions.pod:2685
10649 msgid "ln"
10650 msgstr "ln"
10651
10652 #. type: verbatim
10653 #: ../fish/guestfish-actions.pod:2687
10654 #, no-wrap
10655 msgid ""
10656 " ln target linkname\n"
10657 "\n"
10658 msgstr ""
10659 " ln призначення назва_посилання\n"
10660 "\n"
10661
10662 #. type: textblock
10663 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:3995
10664 msgid "This command creates a hard link using the C<ln> command."
10665 msgstr ""
10666
10667 #. type: =head2
10668 #: ../fish/guestfish-actions.pod:2691
10669 msgid "ln-f"
10670 msgstr "ln-f"
10671
10672 #. type: verbatim
10673 #: ../fish/guestfish-actions.pod:2693
10674 #, no-wrap
10675 msgid ""
10676 " ln-f target linkname\n"
10677 "\n"
10678 msgstr ""
10679 " ln-f призначення назва_посилання\n"
10680 "\n"
10681
10682 #. type: textblock
10683 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4008
10684 msgid ""
10685 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10686 "option removes the link (C<linkname>) if it exists already."
10687 msgstr ""
10688
10689 #. type: =head2
10690 #: ../fish/guestfish-actions.pod:2698
10691 msgid "ln-s"
10692 msgstr "ln-s"
10693
10694 #. type: verbatim
10695 #: ../fish/guestfish-actions.pod:2700
10696 #, no-wrap
10697 msgid ""
10698 " ln-s target linkname\n"
10699 "\n"
10700 msgstr ""
10701 " ln-s призначення назва_посилання\n"
10702 "\n"
10703
10704 #. type: textblock
10705 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4022
10706 msgid "This command creates a symbolic link using the C<ln -s> command."
10707 msgstr ""
10708
10709 #. type: =head2
10710 #: ../fish/guestfish-actions.pod:2704
10711 msgid "ln-sf"
10712 msgstr "ln-sf"
10713
10714 #. type: verbatim
10715 #: ../fish/guestfish-actions.pod:2706
10716 #, no-wrap
10717 msgid ""
10718 " ln-sf target linkname\n"
10719 "\n"
10720 msgstr ""
10721 " ln-sf призначення назва_посилання\n"
10722 "\n"
10723
10724 #. type: textblock
10725 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4035
10726 msgid ""
10727 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10728 "option removes the link (C<linkname>) if it exists already."
10729 msgstr ""
10730
10731 #. type: =head2
10732 #: ../fish/guestfish-actions.pod:2711
10733 msgid "lremovexattr"
10734 msgstr "lremovexattr"
10735
10736 #. type: verbatim
10737 #: ../fish/guestfish-actions.pod:2713
10738 #, no-wrap
10739 msgid ""
10740 " lremovexattr xattr path\n"
10741 "\n"
10742 msgstr ""
10743
10744 #. type: textblock
10745 #: ../fish/guestfish-actions.pod:2715
10746 msgid ""
10747 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10748 "it removes an extended attribute of the link itself."
10749 msgstr ""
10750
10751 #. type: =head2
10752 #: ../fish/guestfish-actions.pod:2719
10753 msgid "ls"
10754 msgstr "ls"
10755
10756 #. type: verbatim
10757 #: ../fish/guestfish-actions.pod:2721
10758 #, no-wrap
10759 msgid ""
10760 " ls directory\n"
10761 "\n"
10762 msgstr ""
10763 " ls каталог\n"
10764 "\n"
10765
10766 #. type: textblock
10767 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4063
10768 msgid ""
10769 "List the files in C<directory> (relative to the root directory, there is no "
10770 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10771 msgstr ""
10772
10773 #. type: textblock
10774 #: ../fish/guestfish-actions.pod:2727
10775 msgid ""
10776 "This command is mostly useful for interactive sessions.  Programs should "
10777 "probably use L</readdir> instead."
10778 msgstr ""
10779
10780 #. type: =head2
10781 #: ../fish/guestfish-actions.pod:2730
10782 msgid "lsetxattr"
10783 msgstr "lsetxattr"
10784
10785 #. type: verbatim
10786 #: ../fish/guestfish-actions.pod:2732
10787 #, no-wrap
10788 msgid ""
10789 " lsetxattr xattr val vallen path\n"
10790 "\n"
10791 msgstr ""
10792
10793 #. type: textblock
10794 #: ../fish/guestfish-actions.pod:2734
10795 msgid ""
10796 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10797 "sets an extended attribute of the link itself."
10798 msgstr ""
10799
10800 #. type: =head2
10801 #: ../fish/guestfish-actions.pod:2738
10802 msgid "lstat"
10803 msgstr "lstat"
10804
10805 #. type: verbatim
10806 #: ../fish/guestfish-actions.pod:2740
10807 #, no-wrap
10808 msgid ""
10809 " lstat path\n"
10810 "\n"
10811 msgstr ""
10812 " lstat шлях\n"
10813 "\n"
10814
10815 #. type: textblock
10816 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4552
10817 #: ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:6882
10818 msgid "Returns file information for the given C<path>."
10819 msgstr ""
10820
10821 #. type: textblock
10822 #: ../fish/guestfish-actions.pod:2744
10823 msgid ""
10824 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10825 "the link is stat-ed, not the file it refers to."
10826 msgstr ""
10827
10828 #. type: textblock
10829 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4105
10830 msgid "This is the same as the C<lstat(2)> system call."
10831 msgstr ""
10832
10833 #. type: =head2
10834 #: ../fish/guestfish-actions.pod:2750
10835 msgid "lstatlist"
10836 msgstr "lstatlist"
10837
10838 #. type: verbatim
10839 #: ../fish/guestfish-actions.pod:2752
10840 #, no-wrap
10841 msgid ""
10842 " lstatlist path 'names ...'\n"
10843 "\n"
10844 msgstr ""
10845
10846 #. type: textblock
10847 #: ../fish/guestfish-actions.pod:2754
10848 msgid ""
10849 "This call allows you to perform the L</lstat> operation on multiple files, "
10850 "where all files are in the directory C<path>.  C<names> is the list of files "
10851 "from this directory."
10852 msgstr ""
10853
10854 #. type: textblock
10855 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4124
10856 msgid ""
10857 "On return you get a list of stat structs, with a one-to-one correspondence "
10858 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10859 "then the C<ino> field of that structure is set to C<-1>."
10860 msgstr ""
10861
10862 #. type: textblock
10863 #: ../fish/guestfish-actions.pod:2763
10864 msgid ""
10865 "This call is intended for programs that want to efficiently list a directory "
10866 "contents without making many round-trips.  See also L</lxattrlist> for a "
10867 "similarly efficient call for getting extended attributes.  Very long "
10868 "directory listings might cause the protocol message size to be exceeded, "
10869 "causing this call to fail.  The caller must split up such requests into "
10870 "smaller groups of names."
10871 msgstr ""
10872
10873 #. type: =head2
10874 #: ../fish/guestfish-actions.pod:2771
10875 msgid "luks-add-key"
10876 msgstr "luks-add-key"
10877
10878 #. type: verbatim
10879 #: ../fish/guestfish-actions.pod:2773
10880 #, no-wrap
10881 msgid ""
10882 " luks-add-key device keyslot\n"
10883 "\n"
10884 msgstr ""
10885
10886 #. type: textblock
10887 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4152
10888 msgid ""
10889 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10890 "existing key, and is used to access the device.  C<newkey> is the new key to "
10891 "add.  C<keyslot> is the key slot that will be replaced."
10892 msgstr ""
10893
10894 #. type: textblock
10895 #: ../fish/guestfish-actions.pod:2780
10896 msgid ""
10897 "Note that if C<keyslot> already contains a key, then this command will "
10898 "fail.  You have to use L</luks-kill-slot> first to remove that key."
10899 msgstr ""
10900
10901 #. type: textblock
10902 #: ../fish/guestfish-actions.pod:2784 ../fish/guestfish-actions.pod:2806
10903 #: ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2833
10904 #: ../fish/guestfish-actions.pod:2859 ../fish/guestfish-actions.pod:2869
10905 msgid ""
10906 "This command has one or more key or passphrase parameters.  Guestfish will "
10907 "prompt for these separately."
10908 msgstr ""
10909
10910 #. type: =head2
10911 #: ../fish/guestfish-actions.pod:2787
10912 msgid "luks-close"
10913 msgstr "luks-close"
10914
10915 #. type: verbatim
10916 #: ../fish/guestfish-actions.pod:2789
10917 #, no-wrap
10918 msgid ""
10919 " luks-close device\n"
10920 "\n"
10921 msgstr ""
10922 " luks-close пристрій\n"
10923 "\n"
10924
10925 #. type: textblock
10926 #: ../fish/guestfish-actions.pod:2791
10927 msgid ""
10928 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10929 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
10930 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10931 "block device."
10932 msgstr ""
10933
10934 #. type: =head2
10935 #: ../fish/guestfish-actions.pod:2797
10936 msgid "luks-format"
10937 msgstr "luks-format"
10938
10939 #. type: verbatim
10940 #: ../fish/guestfish-actions.pod:2799
10941 #, no-wrap
10942 msgid ""
10943 " luks-format device keyslot\n"
10944 "\n"
10945 msgstr ""
10946
10947 #. type: textblock
10948 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4193
10949 msgid ""
10950 "This command erases existing data on C<device> and formats the device as a "
10951 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10952 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10953 msgstr ""
10954
10955 #. type: textblock
10956 #: ../fish/guestfish-actions.pod:2809 ../fish/guestfish-actions.pod:2822
10957 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:3560
10958 #: ../fish/guestfish-actions.pod:4086 ../fish/guestfish-actions.pod:4423
10959 #: ../fish/guestfish-actions.pod:4446 ../fish/guestfish-actions.pod:4468
10960 #: ../fish/guestfish-actions.pod:5214 ../src/guestfs-actions.pod:4200
10961 #: ../src/guestfs-actions.pod:4223 ../src/guestfs-actions.pod:4366
10962 #: ../src/guestfs-actions.pod:5459 ../src/guestfs-actions.pod:6247
10963 #: ../src/guestfs-actions.pod:6696 ../src/guestfs-actions.pod:6726
10964 #: ../src/guestfs-actions.pod:6759 ../src/guestfs-actions.pod:7958
10965 msgid ""
10966 "B<This command is dangerous.  Without careful use you can easily destroy all "
10967 "your data>."
10968 msgstr ""
10969
10970 #. type: =head2
10971 #: ../fish/guestfish-actions.pod:2812
10972 msgid "luks-format-cipher"
10973 msgstr "luks-format-cipher"
10974
10975 #. type: verbatim
10976 #: ../fish/guestfish-actions.pod:2814
10977 #, no-wrap
10978 msgid ""
10979 " luks-format-cipher device keyslot cipher\n"
10980 "\n"
10981 msgstr ""
10982
10983 #. type: textblock
10984 #: ../fish/guestfish-actions.pod:2816
10985 msgid ""
10986 "This command is the same as L</luks-format> but it also allows you to set "
10987 "the C<cipher> used."
10988 msgstr ""
10989
10990 #. type: =head2
10991 #: ../fish/guestfish-actions.pod:2825
10992 msgid "luks-kill-slot"
10993 msgstr "luks-kill-slot"
10994
10995 #. type: verbatim
10996 #: ../fish/guestfish-actions.pod:2827
10997 #, no-wrap
10998 msgid ""
10999 " luks-kill-slot device keyslot\n"
11000 "\n"
11001 msgstr ""
11002
11003 #. type: textblock
11004 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4240
11005 msgid ""
11006 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11007 "device C<device>.  C<key> must be one of the I<other> keys."
11008 msgstr ""
11009
11010 #. type: =head2
11011 #: ../fish/guestfish-actions.pod:2836
11012 msgid "luks-open"
11013 msgstr "luks-open"
11014
11015 #. type: verbatim
11016 #: ../fish/guestfish-actions.pod:2838
11017 #, no-wrap
11018 msgid ""
11019 " luks-open device mapname\n"
11020 "\n"
11021 msgstr ""
11022
11023 #. type: textblock
11024 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4260
11025 msgid ""
11026 "This command opens a block device which has been encrypted according to the "
11027 "Linux Unified Key Setup (LUKS) standard."
11028 msgstr ""
11029
11030 #. type: textblock
11031 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4263
11032 msgid "C<device> is the encrypted block device or partition."
11033 msgstr ""
11034
11035 #. type: textblock
11036 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4265
11037 msgid ""
11038 "The caller must supply one of the keys associated with the LUKS block "
11039 "device, in the C<key> parameter."
11040 msgstr ""
11041
11042 #. type: textblock
11043 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4268
11044 msgid ""
11045 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
11046 "writes to this block device are decrypted from and encrypted to the "
11047 "underlying C<device> respectively."
11048 msgstr ""
11049
11050 #. type: textblock
11051 #: ../fish/guestfish-actions.pod:2852
11052 msgid ""
11053 "If this block device contains LVM volume groups, then calling L</vgscan> "
11054 "followed by L</vg-activate-all> will make them visible."
11055 msgstr ""
11056
11057 #. type: textblock
11058 #: ../fish/guestfish-actions.pod:2856
11059 msgid "Use L</list-dm-devices> to list all device mapper devices."
11060 msgstr ""
11061
11062 #. type: =head2
11063 #: ../fish/guestfish-actions.pod:2862
11064 msgid "luks-open-ro"
11065 msgstr "luks-open-ro"
11066
11067 #. type: verbatim
11068 #: ../fish/guestfish-actions.pod:2864
11069 #, no-wrap
11070 msgid ""
11071 " luks-open-ro device mapname\n"
11072 "\n"
11073 msgstr ""
11074
11075 #. type: textblock
11076 #: ../fish/guestfish-actions.pod:2866
11077 msgid ""
11078 "This is the same as L</luks-open> except that a read-only mapping is created."
11079 msgstr ""
11080
11081 #. type: =head2
11082 #: ../fish/guestfish-actions.pod:2872
11083 msgid "lvcreate"
11084 msgstr "lvcreate"
11085
11086 #. type: verbatim
11087 #: ../fish/guestfish-actions.pod:2874
11088 #, no-wrap
11089 msgid ""
11090 " lvcreate logvol volgroup mbytes\n"
11091 "\n"
11092 msgstr ""
11093
11094 #. type: textblock
11095 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4314
11096 msgid ""
11097 "This creates an LVM logical volume called C<logvol> on the volume group "
11098 "C<volgroup>, with C<size> megabytes."
11099 msgstr ""
11100
11101 #. type: =head2
11102 #: ../fish/guestfish-actions.pod:2879
11103 msgid "lvm-canonical-lv-name"
11104 msgstr "lvm-canonical-lv-name"
11105
11106 #. type: verbatim
11107 #: ../fish/guestfish-actions.pod:2881
11108 #, no-wrap
11109 msgid ""
11110 " lvm-canonical-lv-name lvname\n"
11111 "\n"
11112 msgstr ""
11113
11114 #. type: textblock
11115 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4327
11116 msgid ""
11117 "This converts alternative naming schemes for LVs that you might find to the "
11118 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
11119 "LV>."
11120 msgstr ""
11121
11122 #. type: textblock
11123 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4331
11124 msgid ""
11125 "This command returns an error if the C<lvname> parameter does not refer to a "
11126 "logical volume."
11127 msgstr ""
11128
11129 #. type: textblock
11130 #: ../fish/guestfish-actions.pod:2890
11131 msgid "See also L</is-lv>."
11132 msgstr "Див. також L</is-lv>."
11133
11134 #. type: =head2
11135 #: ../fish/guestfish-actions.pod:2892
11136 msgid "lvm-clear-filter"
11137 msgstr "lvm-clear-filter"
11138
11139 #. type: verbatim
11140 #: ../fish/guestfish-actions.pod:2894
11141 #, no-wrap
11142 msgid ""
11143 " lvm-clear-filter\n"
11144 "\n"
11145 msgstr ""
11146 " lvm-clear-filter\n"
11147 "\n"
11148
11149 #. type: textblock
11150 #: ../fish/guestfish-actions.pod:2896
11151 msgid ""
11152 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
11153 "block device."
11154 msgstr ""
11155
11156 #. type: textblock
11157 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930
11158 #: ../src/guestfs-actions.pod:4349 ../src/guestfs-actions.pod:4391
11159 msgid ""
11160 "This command also clears the LVM cache and performs a volume group scan."
11161 msgstr ""
11162
11163 #. type: =head2
11164 #: ../fish/guestfish-actions.pod:2902
11165 msgid "lvm-remove-all"
11166 msgstr "lvm-remove-all"
11167
11168 #. type: verbatim
11169 #: ../fish/guestfish-actions.pod:2904
11170 #, no-wrap
11171 msgid ""
11172 " lvm-remove-all\n"
11173 "\n"
11174 msgstr ""
11175 " lvm-remove-all\n"
11176 "\n"
11177
11178 #. type: textblock
11179 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4361
11180 msgid ""
11181 "This command removes all LVM logical volumes, volume groups and physical "
11182 "volumes."
11183 msgstr ""
11184
11185 #. type: =head2
11186 #: ../fish/guestfish-actions.pod:2912
11187 msgid "lvm-set-filter"
11188 msgstr "lvm-set-filter"
11189
11190 #. type: verbatim
11191 #: ../fish/guestfish-actions.pod:2914
11192 #, no-wrap
11193 msgid ""
11194 " lvm-set-filter 'devices ...'\n"
11195 "\n"
11196 msgstr ""
11197 " lvm-set-filter 'пристрої...'\n"
11198 "\n"
11199
11200 #. type: textblock
11201 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4377
11202 msgid ""
11203 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11204 "block devices in the list C<devices>, and will ignore all other attached "
11205 "block devices."
11206 msgstr ""
11207
11208 #. type: textblock
11209 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4381
11210 msgid ""
11211 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11212 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
11213 "there are two types of duplication possible: either cloned PVs/VGs which "
11214 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11215 "same name.  In normal operation you cannot create this situation, but you "
11216 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
11217 "inside the LVM metadata."
11218 msgstr ""
11219
11220 #. type: textblock
11221 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4394
11222 msgid "You can filter whole block devices or individual partitions."
11223 msgstr ""
11224
11225 #. type: textblock
11226 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4396
11227 msgid ""
11228 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
11229 "filesystem), even if you are not filtering out that VG."
11230 msgstr ""
11231
11232 #. type: =head2
11233 #: ../fish/guestfish-actions.pod:2939
11234 msgid "lvremove"
11235 msgstr "lvremove"
11236
11237 #. type: verbatim
11238 #: ../fish/guestfish-actions.pod:2941
11239 #, no-wrap
11240 msgid ""
11241 " lvremove device\n"
11242 "\n"
11243 msgstr ""
11244 " lvremove пристрій\n"
11245 "\n"
11246
11247 #. type: textblock
11248 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4410
11249 msgid ""
11250 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11251 "LV, such as C</dev/VG/LV>."
11252 msgstr ""
11253
11254 #. type: textblock
11255 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4413
11256 msgid ""
11257 "You can also remove all LVs in a volume group by specifying the VG name, C</"
11258 "dev/VG>."
11259 msgstr ""
11260
11261 #. type: =head2
11262 #: ../fish/guestfish-actions.pod:2949
11263 msgid "lvrename"
11264 msgstr "lvrename"
11265
11266 #. type: verbatim
11267 #: ../fish/guestfish-actions.pod:2951
11268 #, no-wrap
11269 msgid ""
11270 " lvrename logvol newlogvol\n"
11271 "\n"
11272 msgstr ""
11273
11274 #. type: textblock
11275 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4427
11276 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11277 msgstr ""
11278
11279 #. type: =head2
11280 #: ../fish/guestfish-actions.pod:2955
11281 msgid "lvresize"
11282 msgstr "lvresize"
11283
11284 #. type: verbatim
11285 #: ../fish/guestfish-actions.pod:2957
11286 #, no-wrap
11287 msgid ""
11288 " lvresize device mbytes\n"
11289 "\n"
11290 msgstr ""
11291
11292 #. type: textblock
11293 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4440
11294 msgid ""
11295 "This resizes (expands or shrinks) an existing LVM logical volume to "
11296 "C<mbytes>.  When reducing, data in the reduced part is lost."
11297 msgstr ""
11298
11299 #. type: =head2
11300 #: ../fish/guestfish-actions.pod:2963
11301 msgid "lvresize-free"
11302 msgstr "lvresize-free"
11303
11304 #. type: verbatim
11305 #: ../fish/guestfish-actions.pod:2965
11306 #, no-wrap
11307 msgid ""
11308 " lvresize-free lv percent\n"
11309 "\n"
11310 msgstr ""
11311
11312 #. type: textblock
11313 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4455
11314 msgid ""
11315 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11316 "remaining free space in the volume group.  Commonly you would call this with "
11317 "pc = 100 which expands the logical volume as much as possible, using all "
11318 "remaining free space in the volume group."
11319 msgstr ""
11320
11321 #. type: =head2
11322 #: ../fish/guestfish-actions.pod:2973
11323 msgid "lvs"
11324 msgstr "lvs"
11325
11326 #. type: verbatim
11327 #: ../fish/guestfish-actions.pod:2975
11328 #, no-wrap
11329 msgid ""
11330 " lvs\n"
11331 "\n"
11332 msgstr ""
11333 " lvs\n"
11334 "\n"
11335
11336 #. type: textblock
11337 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4470
11338 msgid ""
11339 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11340 "(8)> command."
11341 msgstr ""
11342
11343 #. type: textblock
11344 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4473
11345 msgid ""
11346 "This returns a list of the logical volume device names (eg. C</dev/"
11347 "VolGroup00/LogVol00>)."
11348 msgstr ""
11349
11350 #. type: textblock
11351 #: ../fish/guestfish-actions.pod:2983
11352 msgid "See also L</lvs-full>, L</list-filesystems>."
11353 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
11354
11355 #. type: =head2
11356 #: ../fish/guestfish-actions.pod:2985
11357 msgid "lvs-full"
11358 msgstr "lvs-full"
11359
11360 #. type: verbatim
11361 #: ../fish/guestfish-actions.pod:2987
11362 #, no-wrap
11363 msgid ""
11364 " lvs-full\n"
11365 "\n"
11366 msgstr ""
11367 " lvs-full\n"
11368 "\n"
11369
11370 #. type: textblock
11371 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4489
11372 msgid ""
11373 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11374 "(8)> command.  The \"full\" version includes all fields."
11375 msgstr ""
11376
11377 #. type: =head2
11378 #: ../fish/guestfish-actions.pod:2992
11379 msgid "lvuuid"
11380 msgstr "lvuuid"
11381
11382 #. type: verbatim
11383 #: ../fish/guestfish-actions.pod:2994
11384 #, no-wrap
11385 msgid ""
11386 " lvuuid device\n"
11387 "\n"
11388 msgstr ""
11389 " lvuuid пристрій\n"
11390 "\n"
11391
11392 #. type: textblock
11393 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4504
11394 msgid "This command returns the UUID of the LVM LV C<device>."
11395 msgstr ""
11396
11397 #. type: =head2
11398 #: ../fish/guestfish-actions.pod:2998
11399 msgid "lxattrlist"
11400 msgstr "lxattrlist"
11401
11402 #. type: verbatim
11403 #: ../fish/guestfish-actions.pod:3000
11404 #, no-wrap
11405 msgid ""
11406 " lxattrlist path 'names ...'\n"
11407 "\n"
11408 msgstr ""
11409
11410 #. type: textblock
11411 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4518
11412 msgid ""
11413 "This call allows you to get the extended attributes of multiple files, where "
11414 "all files are in the directory C<path>.  C<names> is the list of files from "
11415 "this directory."
11416 msgstr ""
11417
11418 #. type: textblock
11419 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4522
11420 msgid ""
11421 "On return you get a flat list of xattr structs which must be interpreted "
11422 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11423 "C<attrval> in this struct is zero-length to indicate there was an error "
11424 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11425 "number (the number of following attributes for this file, which could be C<"
11426 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11427 "for the first named file.  This repeats for the second and subsequent files."
11428 msgstr ""
11429
11430 #. type: textblock
11431 #: ../fish/guestfish-actions.pod:3016
11432 msgid ""
11433 "This call is intended for programs that want to efficiently list a directory "
11434 "contents without making many round-trips.  See also L</lstatlist> for a "
11435 "similarly efficient call for getting standard stats.  Very long directory "
11436 "listings might cause the protocol message size to be exceeded, causing this "
11437 "call to fail.  The caller must split up such requests into smaller groups of "
11438 "names."
11439 msgstr ""
11440
11441 #. type: =head2
11442 #: ../fish/guestfish-actions.pod:3024
11443 msgid "mkdir"
11444 msgstr "mkdir"
11445
11446 #. type: verbatim
11447 #: ../fish/guestfish-actions.pod:3026
11448 #, no-wrap
11449 msgid ""
11450 " mkdir path\n"
11451 "\n"
11452 msgstr ""
11453 " mkdir шлях\n"
11454 "\n"
11455
11456 #. type: textblock
11457 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4552
11458 msgid "Create a directory named C<path>."
11459 msgstr ""
11460
11461 #. type: =head2
11462 #: ../fish/guestfish-actions.pod:3030
11463 msgid "mkdir-mode"
11464 msgstr "mkdir-mode"
11465
11466 #. type: verbatim
11467 #: ../fish/guestfish-actions.pod:3032
11468 #, no-wrap
11469 msgid ""
11470 " mkdir-mode path mode\n"
11471 "\n"
11472 msgstr ""
11473 " mkdir-mode шлях режим\n"
11474 "\n"
11475
11476 #. type: textblock
11477 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4565
11478 msgid ""
11479 "This command creates a directory, setting the initial permissions of the "
11480 "directory to C<mode>."
11481 msgstr ""
11482
11483 #. type: textblock
11484 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4568
11485 msgid ""
11486 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11487 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11488 "other ways."
11489 msgstr ""
11490
11491 #. type: textblock
11492 #: ../fish/guestfish-actions.pod:3041
11493 msgid "See also L</mkdir>, L</umask>"
11494 msgstr "Див. також L</mkdir>, L</umask>"
11495
11496 #. type: =head2
11497 #: ../fish/guestfish-actions.pod:3043
11498 msgid "mkdir-p"
11499 msgstr "mkdir-p"
11500
11501 #. type: verbatim
11502 #: ../fish/guestfish-actions.pod:3045
11503 #, no-wrap
11504 msgid ""
11505 " mkdir-p path\n"
11506 "\n"
11507 msgstr ""
11508 " mkdir-p шлях\n"
11509 "\n"
11510
11511 #. type: textblock
11512 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4584
11513 msgid ""
11514 "Create a directory named C<path>, creating any parent directories as "
11515 "necessary.  This is like the C<mkdir -p> shell command."
11516 msgstr ""
11517
11518 #. type: =head2
11519 #: ../fish/guestfish-actions.pod:3050
11520 msgid "mkdtemp"
11521 msgstr "mkdtemp"
11522
11523 #. type: verbatim
11524 #: ../fish/guestfish-actions.pod:3052
11525 #, no-wrap
11526 msgid ""
11527 " mkdtemp template\n"
11528 "\n"
11529 msgstr ""
11530 " mkdtemp шаблон\n"
11531 "\n"
11532
11533 #. type: textblock
11534 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4597
11535 msgid ""
11536 "This command creates a temporary directory.  The C<template> parameter "
11537 "should be a full pathname for the temporary directory name with the final "
11538 "six characters being \"XXXXXX\"."
11539 msgstr ""
11540
11541 #. type: textblock
11542 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4602
11543 msgid ""
11544 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11545 "being suitable for Windows filesystems."
11546 msgstr ""
11547
11548 #. type: textblock
11549 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4605
11550 msgid "The name of the temporary directory that was created is returned."
11551 msgstr ""
11552
11553 #. type: textblock
11554 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4608
11555 msgid "The temporary directory is created with mode 0700 and is owned by root."
11556 msgstr ""
11557
11558 #. type: textblock
11559 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4611
11560 msgid ""
11561 "The caller is responsible for deleting the temporary directory and its "
11562 "contents after use."
11563 msgstr ""
11564
11565 #. type: textblock
11566 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4614
11567 msgid "See also: L<mkdtemp(3)>"
11568 msgstr ""
11569
11570 #. type: =head2
11571 #: ../fish/guestfish-actions.pod:3073
11572 msgid "mke2fs-J"
11573 msgstr "mke2fs-J"
11574
11575 #. type: verbatim
11576 #: ../fish/guestfish-actions.pod:3075
11577 #, no-wrap
11578 msgid ""
11579 " mke2fs-J fstype blocksize device journal\n"
11580 "\n"
11581 msgstr ""
11582
11583 #. type: textblock
11584 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4630
11585 msgid ""
11586 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11587 "C<journal>.  It is equivalent to the command:"
11588 msgstr ""
11589
11590 #. type: verbatim
11591 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4634
11592 #, no-wrap
11593 msgid ""
11594 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11595 "\n"
11596 msgstr ""
11597 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11598 "\n"
11599
11600 #. type: textblock
11601 #: ../fish/guestfish-actions.pod:3083
11602 msgid "See also L</mke2journal>."
11603 msgstr "Див. також L</mke2journal>."
11604
11605 #. type: =head2
11606 #: ../fish/guestfish-actions.pod:3085
11607 msgid "mke2fs-JL"
11608 msgstr "mke2fs-JL"
11609
11610 #. type: verbatim
11611 #: ../fish/guestfish-actions.pod:3087
11612 #, no-wrap
11613 msgid ""
11614 " mke2fs-JL fstype blocksize device label\n"
11615 "\n"
11616 msgstr ""
11617
11618 #. type: textblock
11619 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4651
11620 msgid ""
11621 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11622 "the journal labeled C<label>."
11623 msgstr ""
11624
11625 #. type: textblock
11626 #: ../fish/guestfish-actions.pod:3092
11627 msgid "See also L</mke2journal-L>."
11628 msgstr "Див. також L</mke2journal-L>."
11629
11630 #. type: =head2
11631 #: ../fish/guestfish-actions.pod:3094
11632 msgid "mke2fs-JU"
11633 msgstr "mke2fs-JU"
11634
11635 #. type: verbatim
11636 #: ../fish/guestfish-actions.pod:3096
11637 #, no-wrap
11638 msgid ""
11639 " mke2fs-JU fstype blocksize device uuid\n"
11640 "\n"
11641 msgstr ""
11642
11643 #. type: textblock
11644 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4669
11645 msgid ""
11646 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11647 "the journal with UUID C<uuid>."
11648 msgstr ""
11649
11650 #. type: textblock
11651 #: ../fish/guestfish-actions.pod:3101
11652 msgid "See also L</mke2journal-U>."
11653 msgstr "Див. також L</mke2journal-U>."
11654
11655 #. type: =head2
11656 #: ../fish/guestfish-actions.pod:3103
11657 msgid "mke2journal"
11658 msgstr "mke2journal"
11659
11660 #. type: verbatim
11661 #: ../fish/guestfish-actions.pod:3105
11662 #, no-wrap
11663 msgid ""
11664 " mke2journal blocksize device\n"
11665 "\n"
11666 msgstr ""
11667
11668 #. type: textblock
11669 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4685
11670 msgid ""
11671 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11672 "command:"
11673 msgstr ""
11674
11675 #. type: verbatim
11676 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4688
11677 #, no-wrap
11678 msgid ""
11679 " mke2fs -O journal_dev -b blocksize device\n"
11680 "\n"
11681 msgstr ""
11682
11683 #. type: =head2
11684 #: ../fish/guestfish-actions.pod:3112
11685 msgid "mke2journal-L"
11686 msgstr "mke2journal-L"
11687
11688 #. type: verbatim
11689 #: ../fish/guestfish-actions.pod:3114
11690 #, no-wrap
11691 msgid ""
11692 " mke2journal-L blocksize label device\n"
11693 "\n"
11694 msgstr ""
11695
11696 #. type: textblock
11697 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4702
11698 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11699 msgstr ""
11700
11701 #. type: =head2
11702 #: ../fish/guestfish-actions.pod:3118
11703 msgid "mke2journal-U"
11704 msgstr "mke2journal-U"
11705
11706 #. type: verbatim
11707 #: ../fish/guestfish-actions.pod:3120
11708 #, no-wrap
11709 msgid ""
11710 " mke2journal-U blocksize uuid device\n"
11711 "\n"
11712 msgstr ""
11713
11714 #. type: textblock
11715 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4716
11716 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11717 msgstr ""
11718
11719 #. type: =head2
11720 #: ../fish/guestfish-actions.pod:3124
11721 msgid "mkfifo"
11722 msgstr "mkfifo"
11723
11724 #. type: verbatim
11725 #: ../fish/guestfish-actions.pod:3126
11726 #, no-wrap
11727 msgid ""
11728 " mkfifo mode path\n"
11729 "\n"
11730 msgstr ""
11731 " mkfifo режим шлях\n"
11732 "\n"
11733
11734 #. type: textblock
11735 #: ../fish/guestfish-actions.pod:3128
11736 msgid ""
11737 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11738 "is just a convenient wrapper around L</mknod>."
11739 msgstr ""
11740
11741 #. type: =head2
11742 #: ../fish/guestfish-actions.pod:3134
11743 msgid "mkfs"
11744 msgstr "mkfs"
11745
11746 #. type: verbatim
11747 #: ../fish/guestfish-actions.pod:3136
11748 #, no-wrap
11749 msgid ""
11750 " mkfs fstype device\n"
11751 "\n"
11752 msgstr ""
11753 " mkfs тип_файлової_системи пристрій\n"
11754 "\n"
11755
11756 #. type: textblock
11757 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4746
11758 msgid ""
11759 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11760 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11761 msgstr ""
11762
11763 #. type: =head2
11764 #: ../fish/guestfish-actions.pod:3142
11765 msgid "mkfs-b"
11766 msgstr "mkfs-b"
11767
11768 #. type: verbatim
11769 #: ../fish/guestfish-actions.pod:3144
11770 #, no-wrap
11771 msgid ""
11772 " mkfs-b fstype blocksize device\n"
11773 "\n"
11774 msgstr ""
11775
11776 #. type: textblock
11777 #: ../fish/guestfish-actions.pod:3146
11778 msgid ""
11779 "This call is similar to L</mkfs>, but it allows you to control the block "
11780 "size of the resulting filesystem.  Supported block sizes depend on the "
11781 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11782 msgstr ""
11783
11784 #. type: textblock
11785 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178
11786 #: ../src/guestfs-actions.pod:4774 ../src/guestfs-actions.pod:4812
11787 msgid ""
11788 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11789 "cluster size."
11790 msgstr ""
11791
11792 #. type: textblock
11793 #: ../fish/guestfish-actions.pod:3154
11794 msgid ""
11795 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11796 "instead."
11797 msgstr ""
11798
11799 #. type: =head2
11800 #: ../fish/guestfish-actions.pod:3161
11801 msgid "mkfs-opts"
11802 msgstr "mkfs-opts"
11803
11804 #. type: verbatim
11805 #: ../fish/guestfish-actions.pod:3163
11806 #, no-wrap
11807 msgid ""
11808 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11809 "\n"
11810 msgstr ""
11811
11812 #. type: textblock
11813 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4799
11814 msgid ""
11815 "This function creates a filesystem on C<device>.  The filesystem type is "
11816 "C<fstype>, for example C<ext3>."
11817 msgstr ""
11818
11819 #. type: =item
11820 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4806
11821 msgid "C<blocksize>"
11822 msgstr "C<blocksize>"
11823
11824 #. type: textblock
11825 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4808
11826 msgid ""
11827 "The filesystem block size.  Supported block sizes depend on the filesystem "
11828 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11829 "filesystems."
11830 msgstr ""
11831
11832 #. type: textblock
11833 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4815
11834 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11835 msgstr ""
11836
11837 #. type: =item
11838 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4817
11839 msgid "C<features>"
11840 msgstr "C<features>"
11841
11842 #. type: textblock
11843 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4819
11844 msgid "This passes the I<-O> parameter to the external mkfs program."
11845 msgstr ""
11846
11847 #. type: textblock
11848 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4821
11849 msgid ""
11850 "For certain filesystem types, this allows extra filesystem features to be "
11851 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11852 msgstr ""
11853
11854 #. type: textblock
11855 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4825
11856 msgid ""
11857 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11858 "type."
11859 msgstr ""
11860
11861 #. type: =item
11862 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4828
11863 msgid "C<inode>"
11864 msgstr ""
11865
11866 #. type: textblock
11867 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4830
11868 msgid ""
11869 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11870 "sets the inode size (only for ext2/3/4 filesystems at present)."
11871 msgstr ""
11872
11873 #. type: =item
11874 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4833
11875 msgid "C<sectorsize>"
11876 msgstr ""
11877
11878 #. type: textblock
11879 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4835
11880 msgid ""
11881 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11882 "sets sector size for ufs filesystem."
11883 msgstr ""
11884
11885 #. type: =head2
11886 #: ../fish/guestfish-actions.pod:3208
11887 msgid "mkmountpoint"
11888 msgstr "mkmountpoint"
11889
11890 #. type: verbatim
11891 #: ../fish/guestfish-actions.pod:3210
11892 #, no-wrap
11893 msgid ""
11894 " mkmountpoint exemptpath\n"
11895 "\n"
11896 msgstr ""
11897
11898 #. type: textblock
11899 #: ../fish/guestfish-actions.pod:3212
11900 msgid ""
11901 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11902 "to create extra mountpoints before mounting the first filesystem."
11903 msgstr ""
11904
11905 #. type: textblock
11906 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4878
11907 msgid ""
11908 "These calls are I<only> necessary in some very limited circumstances, mainly "
11909 "the case where you want to mount a mix of unrelated and/or read-only "
11910 "filesystems together."
11911 msgstr ""
11912
11913 #. type: textblock
11914 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4882
11915 msgid ""
11916 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11917 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11918 "inside that.  You can unpack this as follows in guestfish:"
11919 msgstr ""
11920
11921 #. type: verbatim
11922 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4887
11923 #, no-wrap
11924 msgid ""
11925 " add-ro Fedora-11-i686-Live.iso\n"
11926 " run\n"
11927 " mkmountpoint /cd\n"
11928 " mkmountpoint /sqsh\n"
11929 " mkmountpoint /ext3fs\n"
11930 " mount /dev/sda /cd\n"
11931 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11932 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11933 "\n"
11934 msgstr ""
11935 " add-ro Fedora-11-i686-Live.iso\n"
11936 " run\n"
11937 " mkmountpoint /cd\n"
11938 " mkmountpoint /sqsh\n"
11939 " mkmountpoint /ext3fs\n"
11940 " mount /dev/sda /cd\n"
11941 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11942 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11943 "\n"
11944
11945 #. type: textblock
11946 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4896
11947 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11948 msgstr ""
11949
11950 #. type: textblock
11951 #: ../fish/guestfish-actions.pod:3236
11952 msgid ""
11953 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
11954 "unexpected errors if you try to mix these calls.  It is safest to manually "
11955 "unmount filesystems and remove mountpoints after use."
11956 msgstr ""
11957
11958 #. type: textblock
11959 #: ../fish/guestfish-actions.pod:3240
11960 msgid ""
11961 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11962 "for this to work for manual mountpoints, you must ensure that the innermost "
11963 "mountpoints have the longest pathnames, as in the example code above."
11964 msgstr ""
11965
11966 #. type: textblock
11967 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4907
11968 msgid ""
11969 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11970 msgstr ""
11971
11972 #. type: textblock
11973 #: ../fish/guestfish-actions.pod:3247
11974 msgid ""
11975 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11976 "L</umount-all> to be called when the handle is closed which can also trigger "
11977 "these issues."
11978 msgstr ""
11979
11980 #. type: =head2
11981 #: ../fish/guestfish-actions.pod:3251
11982 msgid "mknod"
11983 msgstr "mknod"
11984
11985 #. type: verbatim
11986 #: ../fish/guestfish-actions.pod:3253
11987 #, no-wrap
11988 msgid ""
11989 " mknod mode devmajor devminor path\n"
11990 "\n"
11991 msgstr ""
11992
11993 #. type: textblock
11994 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4926
11995 msgid ""
11996 "This call creates block or character special devices, or named pipes (FIFOs)."
11997 msgstr ""
11998
11999 #. type: textblock
12000 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4929
12001 msgid ""
12002 "The C<mode> parameter should be the mode, using the standard constants.  "
12003 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12004 "used when creating block and character special devices."
12005 msgstr ""
12006
12007 #. type: textblock
12008 #: ../fish/guestfish-actions.pod:3263
12009 msgid ""
12010 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12011 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12012 "regular file).  These constants are available in the standard Linux header "
12013 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12014 "wrappers around this command which bitwise OR in the appropriate constant "
12015 "for you."
12016 msgstr ""
12017
12018 #. type: =head2
12019 #: ../fish/guestfish-actions.pod:3273
12020 msgid "mknod-b"
12021 msgstr "mknod-b"
12022
12023 #. type: verbatim
12024 #: ../fish/guestfish-actions.pod:3275
12025 #, no-wrap
12026 msgid ""
12027 " mknod-b mode devmajor devminor path\n"
12028 "\n"
12029 msgstr ""
12030
12031 #. type: textblock
12032 #: ../fish/guestfish-actions.pod:3277
12033 msgid ""
12034 "This call creates a block device node called C<path> with mode C<mode> and "
12035 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12036 "wrapper around L</mknod>."
12037 msgstr ""
12038
12039 #. type: =head2
12040 #: ../fish/guestfish-actions.pod:3283
12041 msgid "mknod-c"
12042 msgstr "mknod-c"
12043
12044 #. type: verbatim
12045 #: ../fish/guestfish-actions.pod:3285
12046 #, no-wrap
12047 msgid ""
12048 " mknod-c mode devmajor devminor path\n"
12049 "\n"
12050 msgstr ""
12051
12052 #. type: textblock
12053 #: ../fish/guestfish-actions.pod:3287
12054 msgid ""
12055 "This call creates a char device node called C<path> with mode C<mode> and "
12056 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12057 "wrapper around L</mknod>."
12058 msgstr ""
12059
12060 #. type: =head2
12061 #: ../fish/guestfish-actions.pod:3293
12062 msgid "mkswap"
12063 msgstr "mkswap"
12064
12065 #. type: verbatim
12066 #: ../fish/guestfish-actions.pod:3295
12067 #, no-wrap
12068 msgid ""
12069 " mkswap device\n"
12070 "\n"
12071 msgstr ""
12072 " mkswap пристрій\n"
12073 "\n"
12074
12075 #. type: textblock
12076 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4992
12077 msgid "Create a swap partition on C<device>."
12078 msgstr ""
12079
12080 #. type: =head2
12081 #: ../fish/guestfish-actions.pod:3299
12082 msgid "mkswap-L"
12083 msgstr "mkswap-L"
12084
12085 #. type: verbatim
12086 #: ../fish/guestfish-actions.pod:3301
12087 #, no-wrap
12088 msgid ""
12089 " mkswap-L label device\n"
12090 "\n"
12091 msgstr ""
12092 " mkswap-L мітка пристрій\n"
12093 "\n"
12094
12095 #. type: textblock
12096 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5005
12097 msgid "Create a swap partition on C<device> with label C<label>."
12098 msgstr ""
12099
12100 #. type: textblock
12101 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5007
12102 msgid ""
12103 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
12104 "sda>), just to a partition.  This appears to be a limitation of the kernel "
12105 "or swap tools."
12106 msgstr ""
12107
12108 #. type: =head2
12109 #: ../fish/guestfish-actions.pod:3309
12110 msgid "mkswap-U"
12111 msgstr "mkswap-U"
12112
12113 #. type: verbatim
12114 #: ../fish/guestfish-actions.pod:3311
12115 #, no-wrap
12116 msgid ""
12117 " mkswap-U uuid device\n"
12118 "\n"
12119 msgstr ""
12120 " mkswap-U uuid пристрій\n"
12121 "\n"
12122
12123 #. type: textblock
12124 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5022
12125 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12126 msgstr ""
12127
12128 #. type: =head2
12129 #: ../fish/guestfish-actions.pod:3315
12130 msgid "mkswap-file"
12131 msgstr "mkswap-file"
12132
12133 #. type: verbatim
12134 #: ../fish/guestfish-actions.pod:3317
12135 #, no-wrap
12136 msgid ""
12137 " mkswap-file path\n"
12138 "\n"
12139 msgstr ""
12140 " mkswap-file шлях\n"
12141 "\n"
12142
12143 #. type: textblock
12144 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5034
12145 msgid "Create a swap file."
12146 msgstr "Створити файл резервної пам’яті."
12147
12148 #. type: textblock
12149 #: ../fish/guestfish-actions.pod:3321
12150 msgid ""
12151 "This command just writes a swap file signature to an existing file.  To "
12152 "create the file itself, use something like L</fallocate>."
12153 msgstr ""
12154
12155 #. type: =head2
12156 #: ../fish/guestfish-actions.pod:3324
12157 msgid "modprobe"
12158 msgstr "modprobe"
12159
12160 #. type: verbatim
12161 #: ../fish/guestfish-actions.pod:3326
12162 #, no-wrap
12163 msgid ""
12164 " modprobe modulename\n"
12165 "\n"
12166 msgstr ""
12167 " modprobe назва_модуля\n"
12168 "\n"
12169
12170 #. type: textblock
12171 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5049
12172 msgid "This loads a kernel module in the appliance."
12173 msgstr ""
12174
12175 #. type: textblock
12176 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5051
12177 msgid ""
12178 "The kernel module must have been whitelisted when libguestfs was built (see "
12179 "C<appliance/kmod.whitelist.in> in the source)."
12180 msgstr ""
12181
12182 #. type: =head2
12183 #: ../fish/guestfish-actions.pod:3333
12184 msgid "mount"
12185 msgstr "mount"
12186
12187 #. type: verbatim
12188 #: ../fish/guestfish-actions.pod:3335
12189 #, no-wrap
12190 msgid ""
12191 " mount device mountpoint\n"
12192 "\n"
12193 msgstr ""
12194 " mount пристрій точка_монтування\n"
12195 "\n"
12196
12197 #. type: textblock
12198 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5065
12199 msgid ""
12200 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12201 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12202 "those block devices contain partitions, they will have the usual names (eg. "
12203 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12204 msgstr ""
12205
12206 #. type: textblock
12207 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5071
12208 msgid ""
12209 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12210 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12211 "mounted on directories which already exist."
12212 msgstr ""
12213
12214 #. type: textblock
12215 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5076
12216 msgid ""
12217 "The mounted filesystem is writable, if we have sufficient permissions on the "
12218 "underlying device."
12219 msgstr ""
12220
12221 #. type: textblock
12222 #: ../fish/guestfish-actions.pod:3351
12223 msgid ""
12224 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
12225 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
12226 "problems for users.  If your program might need to work with older versions "
12227 "of libguestfs, use L</mount-options> instead (using an empty string for the "
12228 "first parameter if you don't want any options)."
12229 msgstr ""
12230
12231 #. type: =head2
12232 #: ../fish/guestfish-actions.pod:3358
12233 msgid "mount-9p"
12234 msgstr ""
12235
12236 #. type: verbatim
12237 #: ../fish/guestfish-actions.pod:3360
12238 #, no-wrap
12239 msgid ""
12240 " mount-9p mounttag mountpoint [options:..]\n"
12241 "\n"
12242 msgstr ""
12243
12244 #. type: textblock
12245 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5105
12246 msgid ""
12247 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12248 "C<mountpoint>."
12249 msgstr ""
12250
12251 #. type: textblock
12252 #: ../fish/guestfish-actions.pod:3365 ../src/guestfs-actions.pod:5108
12253 msgid ""
12254 "If required, C<trans=virtio> will be automatically added to the options.  "
12255 "Any other options required can be passed in the optional C<options> "
12256 "parameter."
12257 msgstr ""
12258
12259 #. type: =head2
12260 #: ../fish/guestfish-actions.pod:3371
12261 msgid "mount-loop"
12262 msgstr "mount-loop"
12263
12264 #. type: verbatim
12265 #: ../fish/guestfish-actions.pod:3373
12266 #, no-wrap
12267 msgid ""
12268 " mount-loop file mountpoint\n"
12269 "\n"
12270 msgstr ""
12271
12272 #. type: textblock
12273 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5147
12274 msgid ""
12275 "This command lets you mount C<file> (a filesystem image in a file) on a "
12276 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
12277 "mountpoint>."
12278 msgstr ""
12279
12280 #. type: =head2
12281 #: ../fish/guestfish-actions.pod:3379
12282 msgid "mount-options"
12283 msgstr "mount-options"
12284
12285 #. type: verbatim
12286 #: ../fish/guestfish-actions.pod:3381
12287 #, no-wrap
12288 msgid ""
12289 " mount-options options device mountpoint\n"
12290 "\n"
12291 msgstr ""
12292
12293 #. type: textblock
12294 #: ../fish/guestfish-actions.pod:3383
12295 msgid ""
12296 "This is the same as the L</mount> command, but it allows you to set the "
12297 "mount options as for the L<mount(8)> I<-o> flag."
12298 msgstr ""
12299
12300 #. type: textblock
12301 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5167
12302 msgid ""
12303 "If the C<options> parameter is an empty string, then no options are passed "
12304 "(all options default to whatever the filesystem uses)."
12305 msgstr ""
12306
12307 #. type: =head2
12308 #: ../fish/guestfish-actions.pod:3391
12309 msgid "mount-ro"
12310 msgstr "mount-ro"
12311
12312 #. type: verbatim
12313 #: ../fish/guestfish-actions.pod:3393
12314 #, no-wrap
12315 msgid ""
12316 " mount-ro device mountpoint\n"
12317 "\n"
12318 msgstr ""
12319 " mount-ro пристрій точка_монтування\n"
12320 "\n"
12321
12322 #. type: textblock
12323 #: ../fish/guestfish-actions.pod:3395
12324 msgid ""
12325 "This is the same as the L</mount> command, but it mounts the filesystem with "
12326 "the read-only (I<-o ro>) flag."
12327 msgstr ""
12328
12329 #. type: =head2
12330 #: ../fish/guestfish-actions.pod:3398
12331 msgid "mount-vfs"
12332 msgstr "mount-vfs"
12333
12334 #. type: verbatim
12335 #: ../fish/guestfish-actions.pod:3400
12336 #, no-wrap
12337 msgid ""
12338 " mount-vfs options vfstype device mountpoint\n"
12339 "\n"
12340 msgstr ""
12341
12342 #. type: textblock
12343 #: ../fish/guestfish-actions.pod:3402
12344 msgid ""
12345 "This is the same as the L</mount> command, but it allows you to set both the "
12346 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12347 msgstr ""
12348
12349 #. type: =head2
12350 #: ../fish/guestfish-actions.pod:3406
12351 msgid "mountpoints"
12352 msgstr "mountpoints"
12353
12354 #. type: verbatim
12355 #: ../fish/guestfish-actions.pod:3408
12356 #, no-wrap
12357 msgid ""
12358 " mountpoints\n"
12359 "\n"
12360 msgstr ""
12361 " mountpoints\n"
12362 "\n"
12363
12364 #. type: textblock
12365 #: ../fish/guestfish-actions.pod:3410
12366 msgid ""
12367 "This call is similar to L</mounts>.  That call returns a list of devices.  "
12368 "This one returns a hash table (map) of device name to directory where the "
12369 "device is mounted."
12370 msgstr ""
12371
12372 #. type: =head2
12373 #: ../fish/guestfish-actions.pod:3414
12374 msgid "mounts"
12375 msgstr "mounts"
12376
12377 #. type: verbatim
12378 #: ../fish/guestfish-actions.pod:3416
12379 #, no-wrap
12380 msgid ""
12381 " mounts\n"
12382 "\n"
12383 msgstr ""
12384 " mounts\n"
12385 "\n"
12386
12387 #. type: textblock
12388 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5228
12389 msgid ""
12390 "This returns the list of currently mounted filesystems.  It returns the list "
12391 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12392 msgstr ""
12393
12394 #. type: textblock
12395 #: ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:5231
12396 msgid "Some internal mounts are not shown."
12397 msgstr ""
12398
12399 #. type: textblock
12400 #: ../fish/guestfish-actions.pod:3423
12401 msgid "See also: L</mountpoints>"
12402 msgstr "Див. також L</mountpoints>"
12403
12404 #. type: =head2
12405 #: ../fish/guestfish-actions.pod:3425
12406 msgid "mv"
12407 msgstr "mv"
12408
12409 #. type: verbatim
12410 #: ../fish/guestfish-actions.pod:3427
12411 #, no-wrap
12412 msgid ""
12413 " mv src dest\n"
12414 "\n"
12415 msgstr ""
12416 " mv джерело призначення\n"
12417 "\n"
12418
12419 #. type: textblock
12420 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5248
12421 msgid ""
12422 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12423 "destination filename or destination directory."
12424 msgstr ""
12425
12426 #. type: =head2
12427 #: ../fish/guestfish-actions.pod:3432
12428 msgid "ntfs-3g-probe"
12429 msgstr "ntfs-3g-probe"
12430
12431 #. type: verbatim
12432 #: ../fish/guestfish-actions.pod:3434
12433 #, no-wrap
12434 msgid ""
12435 " ntfs-3g-probe true|false device\n"
12436 "\n"
12437 msgstr ""
12438
12439 #. type: textblock
12440 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5262
12441 msgid ""
12442 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12443 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12444 "write, and some cannot be mounted at all)."
12445 msgstr ""
12446
12447 #. type: textblock
12448 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5266
12449 msgid ""
12450 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12451 "can be mounted read-write.  Set it to false if you want to test if the "
12452 "volume can be mounted read-only."
12453 msgstr ""
12454
12455 #. type: textblock
12456 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5270
12457 msgid ""
12458 "The return value is an integer which C<0> if the operation would succeed, or "
12459 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12460 msgstr ""
12461
12462 #. type: =head2
12463 #: ../fish/guestfish-actions.pod:3448
12464 msgid "ntfsresize"
12465 msgstr "ntfsresize"
12466
12467 #. type: verbatim
12468 #: ../fish/guestfish-actions.pod:3450
12469 #, no-wrap
12470 msgid ""
12471 " ntfsresize device\n"
12472 "\n"
12473 msgstr ""
12474 " ntfsresize пристрій\n"
12475 "\n"
12476
12477 #. type: textblock
12478 #: ../fish/guestfish-actions.pod:3452 ../fish/guestfish-actions.pod:3476
12479 #: ../src/guestfs-actions.pod:5291 ../src/guestfs-actions.pod:5323
12480 msgid ""
12481 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12482 "size of the underlying device."
12483 msgstr ""
12484
12485 #. type: textblock
12486 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5294
12487 msgid ""
12488 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12489 "consistency check (for safety).  You have to boot into Windows to perform "
12490 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12491 "resize filesystems which have been marked in this way.  So in effect it is "
12492 "not possible to call ntfsresize multiple times on a single filesystem "
12493 "without booting into Windows between each resize."
12494 msgstr ""
12495
12496 #. type: textblock
12497 #: ../fish/guestfish-actions.pod:3463 ../fish/guestfish-actions.pod:3502
12498 #: ../src/guestfs-actions.pod:5302 ../src/guestfs-actions.pod:5349
12499 msgid "See also L<ntfsresize(8)>."
12500 msgstr ""
12501
12502 #. type: textblock
12503 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3513
12504 msgid ""
12505 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12506 "call instead."
12507 msgstr ""
12508
12509 #. type: =head2
12510 #: ../fish/guestfish-actions.pod:3472
12511 msgid "ntfsresize-opts"
12512 msgstr ""
12513
12514 #. type: verbatim
12515 #: ../fish/guestfish-actions.pod:3474
12516 #, no-wrap
12517 msgid ""
12518 " ntfsresize-opts device [size:..] [force:..]\n"
12519 "\n"
12520 msgstr ""
12521
12522 #. type: textblock
12523 #: ../fish/guestfish-actions.pod:3485 ../src/guestfs-actions.pod:5332
12524 msgid ""
12525 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12526 "resized to fit the container (eg. partition)."
12527 msgstr ""
12528
12529 #. type: =item
12530 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5335
12531 msgid "C<force>"
12532 msgstr ""
12533
12534 #. type: textblock
12535 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5337
12536 msgid ""
12537 "If this option is true, then force the resize of the filesystem even if the "
12538 "filesystem is marked as requiring a consistency check."
12539 msgstr ""
12540
12541 #. type: textblock
12542 #: ../fish/guestfish-actions.pod:3493
12543 msgid ""
12544 "After the resize operation, the filesystem is always marked as requiring a "
12545 "consistency check (for safety).  You have to boot into Windows to perform "
12546 "this check and clear this condition.  If you I<don't> set the C<force> "
12547 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12548 "a single filesystem without booting into Windows between each resize."
12549 msgstr ""
12550
12551 #. type: =head2
12552 #: ../fish/guestfish-actions.pod:3506
12553 msgid "ntfsresize-size"
12554 msgstr "ntfsresize-size"
12555
12556 #. type: verbatim
12557 #: ../fish/guestfish-actions.pod:3508
12558 #, no-wrap
12559 msgid ""
12560 " ntfsresize-size device size\n"
12561 "\n"
12562 msgstr ""
12563
12564 #. type: textblock
12565 #: ../fish/guestfish-actions.pod:3510
12566 msgid ""
12567 "This command is the same as L</ntfsresize> except that it allows you to "
12568 "specify the new size (in bytes) explicitly."
12569 msgstr ""
12570
12571 #. type: =head2
12572 #: ../fish/guestfish-actions.pod:3520
12573 msgid "part-add"
12574 msgstr "part-add"
12575
12576 #. type: verbatim
12577 #: ../fish/guestfish-actions.pod:3522
12578 #, no-wrap
12579 msgid ""
12580 " part-add device prlogex startsect endsect\n"
12581 "\n"
12582 msgstr ""
12583
12584 #. type: textblock
12585 #: ../fish/guestfish-actions.pod:3524
12586 msgid ""
12587 "This command adds a partition to C<device>.  If there is no partition table "
12588 "on the device, call L</part-init> first."
12589 msgstr ""
12590
12591 #. type: textblock
12592 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5410
12593 msgid ""
12594 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12595 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12596 "C<logical>) and C<e> (or C<extended>) partition types."
12597 msgstr ""
12598
12599 #. type: textblock
12600 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5415
12601 msgid ""
12602 "C<startsect> and C<endsect> are the start and end of the partition in "
12603 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12604 "from the end of the disk (C<-1> is the last sector)."
12605 msgstr ""
12606
12607 #. type: textblock
12608 #: ../fish/guestfish-actions.pod:3536
12609 msgid ""
12610 "Creating a partition which covers the whole disk is not so easy.  Use L</"
12611 "part-disk> to do that."
12612 msgstr ""
12613
12614 #. type: =head2
12615 #: ../fish/guestfish-actions.pod:3539
12616 msgid "part-del"
12617 msgstr "part-del"
12618
12619 #. type: verbatim
12620 #: ../fish/guestfish-actions.pod:3541
12621 #, no-wrap
12622 msgid ""
12623 " part-del device partnum\n"
12624 "\n"
12625 msgstr ""
12626
12627 #. type: textblock
12628 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5433
12629 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12630 msgstr ""
12631
12632 #. type: textblock
12633 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5435
12634 msgid ""
12635 "Note that in the case of MBR partitioning, deleting an extended partition "
12636 "also deletes any logical partitions it contains."
12637 msgstr ""
12638
12639 #. type: =head2
12640 #: ../fish/guestfish-actions.pod:3549
12641 msgid "part-disk"
12642 msgstr "part-disk"
12643
12644 #. type: verbatim
12645 #: ../fish/guestfish-actions.pod:3551
12646 #, no-wrap
12647 msgid ""
12648 " part-disk device parttype\n"
12649 "\n"
12650 msgstr ""
12651 " part-disk пристрій тип_розділу\n"
12652 "\n"
12653
12654 #. type: textblock
12655 #: ../fish/guestfish-actions.pod:3553
12656 msgid ""
12657 "This command is simply a combination of L</part-init> followed by L</part-"
12658 "add> to create a single primary partition covering the whole disk."
12659 msgstr ""
12660
12661 #. type: textblock
12662 #: ../fish/guestfish-actions.pod:3557
12663 msgid ""
12664 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12665 "possible values are described in L</part-init>."
12666 msgstr ""
12667
12668 #. type: =head2
12669 #: ../fish/guestfish-actions.pod:3563
12670 msgid "part-get-bootable"
12671 msgstr "part-get-bootable"
12672
12673 #. type: verbatim
12674 #: ../fish/guestfish-actions.pod:3565
12675 #, no-wrap
12676 msgid ""
12677 " part-get-bootable device partnum\n"
12678 "\n"
12679 msgstr ""
12680
12681 #. type: textblock
12682 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5471
12683 msgid ""
12684 "This command returns true if the partition C<partnum> on C<device> has the "
12685 "bootable flag set."
12686 msgstr ""
12687
12688 #. type: textblock
12689 #: ../fish/guestfish-actions.pod:3570
12690 msgid "See also L</part-set-bootable>."
12691 msgstr "Див. також L</part-set-bootable>."
12692
12693 #. type: =head2
12694 #: ../fish/guestfish-actions.pod:3572
12695 msgid "part-get-mbr-id"
12696 msgstr "part-get-mbr-id"
12697
12698 #. type: verbatim
12699 #: ../fish/guestfish-actions.pod:3574
12700 #, no-wrap
12701 msgid ""
12702 " part-get-mbr-id device partnum\n"
12703 "\n"
12704 msgstr ""
12705
12706 #. type: textblock
12707 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5487
12708 msgid ""
12709 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12710 "partition C<partnum>."
12711 msgstr ""
12712
12713 #. type: textblock
12714 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3723
12715 msgid ""
12716 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12717 "undefined results for other partition table types (see L</part-get-"
12718 "parttype>)."
12719 msgstr ""
12720
12721 #. type: =head2
12722 #: ../fish/guestfish-actions.pod:3583
12723 msgid "part-get-parttype"
12724 msgstr "part-get-parttype"
12725
12726 #. type: verbatim
12727 #: ../fish/guestfish-actions.pod:3585
12728 #, no-wrap
12729 msgid ""
12730 " part-get-parttype device\n"
12731 "\n"
12732 msgstr ""
12733 " part-get-parttype пристрій\n"
12734 "\n"
12735
12736 #. type: textblock
12737 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5504
12738 msgid ""
12739 "This command examines the partition table on C<device> and returns the "
12740 "partition table type (format) being used."
12741 msgstr ""
12742
12743 #. type: textblock
12744 #: ../fish/guestfish-actions.pod:3590
12745 msgid ""
12746 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12747 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12748 "possible, although unusual.  See L</part-init> for a full list."
12749 msgstr ""
12750
12751 #. type: =head2
12752 #: ../fish/guestfish-actions.pod:3595
12753 msgid "part-init"
12754 msgstr "part-init"
12755
12756 #. type: verbatim
12757 #: ../fish/guestfish-actions.pod:3597
12758 #, no-wrap
12759 msgid ""
12760 " part-init device parttype\n"
12761 "\n"
12762 msgstr ""
12763
12764 #. type: textblock
12765 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5524
12766 msgid ""
12767 "This creates an empty partition table on C<device> of one of the partition "
12768 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12769 "(for large disks)."
12770 msgstr ""
12771
12772 #. type: textblock
12773 #: ../fish/guestfish-actions.pod:3603
12774 msgid ""
12775 "Initially there are no partitions.  Following this, you should call L</part-"
12776 "add> for each partition required."
12777 msgstr ""
12778
12779 #. type: textblock
12780 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5531
12781 msgid "Possible values for C<parttype> are:"
12782 msgstr ""
12783
12784 #. type: =item
12785 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5535
12786 msgid "B<efi>"
12787 msgstr ""
12788
12789 #. type: =item
12790 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5537
12791 msgid "B<gpt>"
12792 msgstr ""
12793
12794 #. type: textblock
12795 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5539
12796 msgid "Intel EFI / GPT partition table."
12797 msgstr ""
12798
12799 #. type: textblock
12800 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5541
12801 msgid ""
12802 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12803 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12804 "the C<mbr> format."
12805 msgstr ""
12806
12807 #. type: =item
12808 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5545
12809 msgid "B<mbr>"
12810 msgstr ""
12811
12812 #. type: =item
12813 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5547
12814 msgid "B<msdos>"
12815 msgstr ""
12816
12817 #. type: textblock
12818 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5549
12819 msgid ""
12820 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12821 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12822 "TB.  For large disks we recommend using C<gpt>."
12823 msgstr ""
12824
12825 #. type: textblock
12826 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5556
12827 msgid ""
12828 "Other partition table types that may work but are not supported include:"
12829 msgstr ""
12830
12831 #. type: =item
12832 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5561
12833 msgid "B<aix>"
12834 msgstr "B<aix>"
12835
12836 #. type: textblock
12837 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5563
12838 msgid "AIX disk labels."
12839 msgstr "Мітки дисків AIX."
12840
12841 #. type: =item
12842 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5565
12843 #, fuzzy
12844 #| msgid "B<amiga> | B<rdb>"
12845 msgid "B<amiga>"
12846 msgstr "B<amiga> | B<rdb>"
12847
12848 #. type: =item
12849 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5567
12850 msgid "B<rdb>"
12851 msgstr ""
12852
12853 #. type: textblock
12854 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5569
12855 msgid "Amiga \"Rigid Disk Block\" format."
12856 msgstr "Формат \"Rigid Disk Block\" Amiga."
12857
12858 #. type: =item
12859 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5571
12860 msgid "B<bsd>"
12861 msgstr "B<bsd>"
12862
12863 #. type: textblock
12864 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5573
12865 msgid "BSD disk labels."
12866 msgstr "Мітки дисків BSD."
12867
12868 #. type: =item
12869 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5575
12870 msgid "B<dasd>"
12871 msgstr "B<dasd>"
12872
12873 #. type: textblock
12874 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5577
12875 msgid "DASD, used on IBM mainframes."
12876 msgstr "DASD, використовувалися у мейнфреймах IBM."
12877
12878 #. type: =item
12879 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5579
12880 msgid "B<dvh>"
12881 msgstr "B<dvh>"
12882
12883 #. type: textblock
12884 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5581
12885 msgid "MIPS/SGI volumes."
12886 msgstr "Томи MIPS/SGI."
12887
12888 #. type: =item
12889 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5583
12890 msgid "B<mac>"
12891 msgstr "B<mac>"
12892
12893 #. type: textblock
12894 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5585
12895 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12896 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12897
12898 #. type: =item
12899 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5587
12900 msgid "B<pc98>"
12901 msgstr "B<pc98>"
12902
12903 #. type: textblock
12904 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5589
12905 msgid "NEC PC-98 format, common in Japan apparently."
12906 msgstr "Формат NEC PC-98, поширений у Японії."
12907
12908 #. type: =item
12909 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5591
12910 msgid "B<sun>"
12911 msgstr "B<sun>"
12912
12913 #. type: textblock
12914 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5593
12915 msgid "Sun disk labels."
12916 msgstr "Мітки дисків Sun."
12917
12918 #. type: =head2
12919 #: ../fish/guestfish-actions.pod:3672
12920 msgid "part-list"
12921 msgstr "part-list"
12922
12923 #. type: verbatim
12924 #: ../fish/guestfish-actions.pod:3674
12925 #, no-wrap
12926 msgid ""
12927 " part-list device\n"
12928 "\n"
12929 msgstr ""
12930 " part-list device\n"
12931 "\n"
12932
12933 #. type: textblock
12934 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5607
12935 msgid ""
12936 "This command parses the partition table on C<device> and returns the list of "
12937 "partitions found."
12938 msgstr ""
12939
12940 #. type: textblock
12941 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5610
12942 msgid "The fields in the returned structure are:"
12943 msgstr ""
12944
12945 #. type: =item
12946 #: ../fish/guestfish-actions.pod:3683 ../src/guestfs-actions.pod:5614
12947 msgid "B<part_num>"
12948 msgstr "B<part_num>"
12949
12950 #. type: textblock
12951 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5616
12952 msgid "Partition number, counting from 1."
12953 msgstr ""
12954
12955 #. type: =item
12956 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5618
12957 msgid "B<part_start>"
12958 msgstr "B<part_start>"
12959
12960 #. type: textblock
12961 #: ../fish/guestfish-actions.pod:3689
12962 msgid ""
12963 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12964 "the device's sector size, see L</blockdev-getss>."
12965 msgstr ""
12966
12967 #. type: =item
12968 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5623
12969 msgid "B<part_end>"
12970 msgstr "B<part_end>"
12971
12972 #. type: textblock
12973 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5625
12974 msgid "End of the partition in bytes."
12975 msgstr ""
12976
12977 #. type: =item
12978 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5627
12979 msgid "B<part_size>"
12980 msgstr "B<part_size>"
12981
12982 #. type: textblock
12983 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5629
12984 msgid "Size of the partition in bytes."
12985 msgstr ""
12986
12987 #. type: =head2
12988 #: ../fish/guestfish-actions.pod:3702
12989 msgid "part-set-bootable"
12990 msgstr "part-set-bootable"
12991
12992 #. type: verbatim
12993 #: ../fish/guestfish-actions.pod:3704
12994 #, no-wrap
12995 msgid ""
12996 " part-set-bootable device partnum true|false\n"
12997 "\n"
12998 msgstr ""
12999
13000 #. type: textblock
13001 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5647
13002 msgid ""
13003 "This sets the bootable flag on partition numbered C<partnum> on device "
13004 "C<device>.  Note that partitions are numbered from 1."
13005 msgstr ""
13006
13007 #. type: textblock
13008 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5650
13009 msgid ""
13010 "The bootable flag is used by some operating systems (notably Windows) to "
13011 "determine which partition to boot from.  It is by no means universally "
13012 "recognized."
13013 msgstr ""
13014
13015 #. type: =head2
13016 #: ../fish/guestfish-actions.pod:3713
13017 msgid "part-set-mbr-id"
13018 msgstr "part-set-mbr-id"
13019
13020 #. type: verbatim
13021 #: ../fish/guestfish-actions.pod:3715
13022 #, no-wrap
13023 msgid ""
13024 " part-set-mbr-id device partnum idbyte\n"
13025 "\n"
13026 msgstr ""
13027
13028 #. type: textblock
13029 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5666
13030 msgid ""
13031 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13032 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13033 "documentation are in fact hexadecimal numbers, but usually documented "
13034 "without any leading \"0x\" which might be confusing."
13035 msgstr ""
13036
13037 #. type: =head2
13038 #: ../fish/guestfish-actions.pod:3727
13039 msgid "part-set-name"
13040 msgstr "part-set-name"
13041
13042 #. type: verbatim
13043 #: ../fish/guestfish-actions.pod:3729
13044 #, no-wrap
13045 msgid ""
13046 " part-set-name device partnum name\n"
13047 "\n"
13048 msgstr ""
13049
13050 #. type: textblock
13051 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5688
13052 msgid ""
13053 "This sets the partition name on partition numbered C<partnum> on device "
13054 "C<device>.  Note that partitions are numbered from 1."
13055 msgstr ""
13056
13057 #. type: textblock
13058 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5691
13059 msgid ""
13060 "The partition name can only be set on certain types of partition table.  "
13061 "This works on C<gpt> but not on C<mbr> partitions."
13062 msgstr ""
13063
13064 #. type: =head2
13065 #: ../fish/guestfish-actions.pod:3737
13066 msgid "part-to-dev"
13067 msgstr "part-to-dev"
13068
13069 #. type: verbatim
13070 #: ../fish/guestfish-actions.pod:3739
13071 #, no-wrap
13072 msgid ""
13073 " part-to-dev partition\n"
13074 "\n"
13075 msgstr ""
13076 " part-to-dev розділ\n"
13077 "\n"
13078
13079 #. type: textblock
13080 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5704
13081 msgid ""
13082 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13083 "partition number, returning the device name (eg. \"/dev/sdb\")."
13084 msgstr ""
13085
13086 #. type: textblock
13087 #: ../fish/guestfish-actions.pod:3745
13088 msgid ""
13089 "The named partition must exist, for example as a string returned from L</"
13090 "list-partitions>."
13091 msgstr ""
13092
13093 #. type: =head2
13094 #: ../fish/guestfish-actions.pod:3748
13095 msgid "ping-daemon"
13096 msgstr "ping-daemon"
13097
13098 #. type: verbatim
13099 #: ../fish/guestfish-actions.pod:3750
13100 #, no-wrap
13101 msgid ""
13102 " ping-daemon\n"
13103 "\n"
13104 msgstr ""
13105 " ping-daemon\n"
13106 "\n"
13107
13108 #. type: textblock
13109 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5721
13110 msgid ""
13111 "This is a test probe into the guestfs daemon running inside the qemu "
13112 "subprocess.  Calling this function checks that the daemon responds to the "
13113 "ping message, without affecting the daemon or attached block device(s) in "
13114 "any other way."
13115 msgstr ""
13116
13117 #. type: =head2
13118 #: ../fish/guestfish-actions.pod:3757
13119 msgid "pread"
13120 msgstr "pread"
13121
13122 #. type: verbatim
13123 #: ../fish/guestfish-actions.pod:3759
13124 #, no-wrap
13125 msgid ""
13126 " pread path count offset\n"
13127 "\n"
13128 msgstr ""
13129
13130 #. type: textblock
13131 #: ../fish/guestfish-actions.pod:3761 ../src/guestfs-actions.pod:5739
13132 msgid ""
13133 "This command lets you read part of a file.  It reads C<count> bytes of the "
13134 "file, starting at C<offset>, from file C<path>."
13135 msgstr ""
13136
13137 #. type: textblock
13138 #: ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3779
13139 #: ../src/guestfs-actions.pod:5742 ../src/guestfs-actions.pod:5768
13140 msgid ""
13141 "This may read fewer bytes than requested.  For further details see the "
13142 "L<pread(2)> system call."
13143 msgstr ""
13144
13145 #. type: textblock
13146 #: ../fish/guestfish-actions.pod:3767
13147 msgid "See also L</pwrite>, L</pread-device>."
13148 msgstr "Див. також L</pwrite>, L</pread-device>."
13149
13150 #. type: =head2
13151 #: ../fish/guestfish-actions.pod:3772
13152 msgid "pread-device"
13153 msgstr "pread-device"
13154
13155 #. type: verbatim
13156 #: ../fish/guestfish-actions.pod:3774
13157 #, no-wrap
13158 msgid ""
13159 " pread-device device count offset\n"
13160 "\n"
13161 msgstr ""
13162
13163 #. type: textblock
13164 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5765
13165 msgid ""
13166 "This command lets you read part of a file.  It reads C<count> bytes of "
13167 "C<device>, starting at C<offset>."
13168 msgstr ""
13169
13170 #. type: textblock
13171 #: ../fish/guestfish-actions.pod:3782
13172 msgid "See also L</pread>."
13173 msgstr "Див. також L</pread>."
13174
13175 #. type: =head2
13176 #: ../fish/guestfish-actions.pod:3787
13177 msgid "pvcreate"
13178 msgstr "pvcreate"
13179
13180 #. type: verbatim
13181 #: ../fish/guestfish-actions.pod:3789
13182 #, no-wrap
13183 msgid ""
13184 " pvcreate device\n"
13185 "\n"
13186 msgstr ""
13187 " pvcreate пристрій\n"
13188 "\n"
13189
13190 #. type: textblock
13191 #: ../fish/guestfish-actions.pod:3791 ../src/guestfs-actions.pod:5788
13192 msgid ""
13193 "This creates an LVM physical volume on the named C<device>, where C<device> "
13194 "should usually be a partition name such as C</dev/sda1>."
13195 msgstr ""
13196
13197 #. type: =head2
13198 #: ../fish/guestfish-actions.pod:3795
13199 msgid "pvremove"
13200 msgstr "pvremove"
13201
13202 #. type: verbatim
13203 #: ../fish/guestfish-actions.pod:3797
13204 #, no-wrap
13205 msgid ""
13206 " pvremove device\n"
13207 "\n"
13208 msgstr ""
13209 " pvremove пристрій\n"
13210 "\n"
13211
13212 #. type: textblock
13213 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5802
13214 msgid ""
13215 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13216 "it."
13217 msgstr ""
13218
13219 #. type: textblock
13220 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5805
13221 msgid ""
13222 "The implementation uses the C<pvremove> command which refuses to wipe "
13223 "physical volumes that contain any volume groups, so you have to remove those "
13224 "first."
13225 msgstr ""
13226
13227 #. type: =head2
13228 #: ../fish/guestfish-actions.pod:3806
13229 msgid "pvresize"
13230 msgstr "pvresize"
13231
13232 #. type: verbatim
13233 #: ../fish/guestfish-actions.pod:3808
13234 #, no-wrap
13235 msgid ""
13236 " pvresize device\n"
13237 "\n"
13238 msgstr ""
13239 " pvresize пристрій\n"
13240 "\n"
13241
13242 #. type: textblock
13243 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5819
13244 msgid ""
13245 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13246 "the new size of the underlying device."
13247 msgstr ""
13248
13249 #. type: =head2
13250 #: ../fish/guestfish-actions.pod:3813
13251 msgid "pvresize-size"
13252 msgstr "pvresize-size"
13253
13254 #. type: verbatim
13255 #: ../fish/guestfish-actions.pod:3815
13256 #, no-wrap
13257 msgid ""
13258 " pvresize-size device size\n"
13259 "\n"
13260 msgstr ""
13261
13262 #. type: textblock
13263 #: ../fish/guestfish-actions.pod:3817
13264 msgid ""
13265 "This command is the same as L</pvresize> except that it allows you to "
13266 "specify the new size (in bytes) explicitly."
13267 msgstr ""
13268
13269 #. type: =head2
13270 #: ../fish/guestfish-actions.pod:3820
13271 msgid "pvs"
13272 msgstr "pvs"
13273
13274 #. type: verbatim
13275 #: ../fish/guestfish-actions.pod:3822
13276 #, no-wrap
13277 msgid ""
13278 " pvs\n"
13279 "\n"
13280 msgstr ""
13281 " pvs\n"
13282 "\n"
13283
13284 #. type: textblock
13285 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5845
13286 msgid ""
13287 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13288 "(8)> command."
13289 msgstr ""
13290
13291 #. type: textblock
13292 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5848
13293 msgid ""
13294 "This returns a list of just the device names that contain PVs (eg. C</dev/"
13295 "sda2>)."
13296 msgstr ""
13297
13298 #. type: textblock
13299 #: ../fish/guestfish-actions.pod:3830
13300 msgid "See also L</pvs-full>."
13301 msgstr "Див. також L</pvs-full>."
13302
13303 #. type: =head2
13304 #: ../fish/guestfish-actions.pod:3832
13305 msgid "pvs-full"
13306 msgstr "pvs-full"
13307
13308 #. type: verbatim
13309 #: ../fish/guestfish-actions.pod:3834
13310 #, no-wrap
13311 msgid ""
13312 " pvs-full\n"
13313 "\n"
13314 msgstr ""
13315 " pvs-full\n"
13316 "\n"
13317
13318 #. type: textblock
13319 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5864
13320 msgid ""
13321 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13322 "(8)> command.  The \"full\" version includes all fields."
13323 msgstr ""
13324
13325 #. type: =head2
13326 #: ../fish/guestfish-actions.pod:3839
13327 msgid "pvuuid"
13328 msgstr "pvuuid"
13329
13330 #. type: verbatim
13331 #: ../fish/guestfish-actions.pod:3841
13332 #, no-wrap
13333 msgid ""
13334 " pvuuid device\n"
13335 "\n"
13336 msgstr ""
13337 " pvuuid пристрій\n"
13338 "\n"
13339
13340 #. type: textblock
13341 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:5879
13342 msgid "This command returns the UUID of the LVM PV C<device>."
13343 msgstr ""
13344
13345 #. type: =head2
13346 #: ../fish/guestfish-actions.pod:3845
13347 msgid "pwrite"
13348 msgstr "pwrite"
13349
13350 #. type: verbatim
13351 #: ../fish/guestfish-actions.pod:3847
13352 #, no-wrap
13353 msgid ""
13354 " pwrite path content offset\n"
13355 "\n"
13356 msgstr ""
13357
13358 #. type: textblock
13359 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5895
13360 msgid ""
13361 "This command writes to part of a file.  It writes the data buffer C<content> "
13362 "to the file C<path> starting at offset C<offset>."
13363 msgstr ""
13364
13365 #. type: textblock
13366 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:5898
13367 msgid ""
13368 "This command implements the L<pwrite(2)> system call, and like that system "
13369 "call it may not write the full data requested.  The return value is the "
13370 "number of bytes that were actually written to the file.  This could even be "
13371 "0, although short writes are unlikely for regular files in ordinary "
13372 "circumstances."
13373 msgstr ""
13374
13375 #. type: textblock
13376 #: ../fish/guestfish-actions.pod:3858
13377 msgid "See also L</pread>, L</pwrite-device>."
13378 msgstr "Див. також L</pread>, L</pwrite-device>."
13379
13380 #. type: =head2
13381 #: ../fish/guestfish-actions.pod:3863
13382 msgid "pwrite-device"
13383 msgstr "pwrite-device"
13384
13385 #. type: verbatim
13386 #: ../fish/guestfish-actions.pod:3865
13387 #, no-wrap
13388 msgid ""
13389 " pwrite-device device content offset\n"
13390 "\n"
13391 msgstr ""
13392
13393 #. type: textblock
13394 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5922
13395 msgid ""
13396 "This command writes to part of a device.  It writes the data buffer "
13397 "C<content> to C<device> starting at offset C<offset>."
13398 msgstr ""
13399
13400 #. type: textblock
13401 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5925
13402 msgid ""
13403 "This command implements the L<pwrite(2)> system call, and like that system "
13404 "call it may not write the full data requested (although short writes to disk "
13405 "devices and partitions are probably impossible with standard Linux kernels)."
13406 msgstr ""
13407
13408 #. type: textblock
13409 #: ../fish/guestfish-actions.pod:3875
13410 msgid "See also L</pwrite>."
13411 msgstr "Див. також L</pwrite>."
13412
13413 #. type: =head2
13414 #: ../fish/guestfish-actions.pod:3880
13415 msgid "read-file"
13416 msgstr "read-file"
13417
13418 #. type: verbatim
13419 #: ../fish/guestfish-actions.pod:3882
13420 #, no-wrap
13421 msgid ""
13422 " read-file path\n"
13423 "\n"
13424 msgstr ""
13425 " read-file шлях\n"
13426 "\n"
13427
13428 #. type: textblock
13429 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5946
13430 msgid "This calls returns the contents of the file C<path> as a buffer."
13431 msgstr ""
13432
13433 #. type: textblock
13434 #: ../fish/guestfish-actions.pod:3887
13435 msgid ""
13436 "Unlike L</cat>, this function can correctly handle files that contain "
13437 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13438 "is limited in the total size of file that can be handled."
13439 msgstr ""
13440
13441 #. type: =head2
13442 #: ../fish/guestfish-actions.pod:3895
13443 msgid "read-lines"
13444 msgstr "read-lines"
13445
13446 #. type: verbatim
13447 #: ../fish/guestfish-actions.pod:3897
13448 #, no-wrap
13449 msgid ""
13450 " read-lines path\n"
13451 "\n"
13452 msgstr ""
13453 " read-lines шлях\n"
13454 "\n"
13455
13456 #. type: textblock
13457 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5971
13458 msgid ""
13459 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13460 "C<CRLF> character sequences are I<not> returned."
13461 msgstr ""
13462
13463 #. type: textblock
13464 #: ../fish/guestfish-actions.pod:3904
13465 msgid ""
13466 "Note that this function cannot correctly handle binary files (specifically, "
13467 "files containing C<\\0> character which is treated as end of line).  For "
13468 "those you need to use the L</read-file> function which has a more complex "
13469 "interface."
13470 msgstr ""
13471
13472 #. type: =head2
13473 #: ../fish/guestfish-actions.pod:3909
13474 msgid "readdir"
13475 msgstr "readdir"
13476
13477 #. type: verbatim
13478 #: ../fish/guestfish-actions.pod:3911
13479 #, no-wrap
13480 msgid ""
13481 " readdir dir\n"
13482 "\n"
13483 msgstr ""
13484 " readdir каталог\n"
13485 "\n"
13486
13487 #. type: textblock
13488 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5991
13489 msgid "This returns the list of directory entries in directory C<dir>."
13490 msgstr ""
13491
13492 #. type: textblock
13493 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5993
13494 msgid ""
13495 "All entries in the directory are returned, including C<.> and C<..>.  The "
13496 "entries are I<not> sorted, but returned in the same order as the underlying "
13497 "filesystem."
13498 msgstr ""
13499
13500 #. type: textblock
13501 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5997
13502 msgid ""
13503 "Also this call returns basic file type information about each file.  The "
13504 "C<ftyp> field will contain one of the following characters:"
13505 msgstr ""
13506
13507 #. type: =item
13508 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6002
13509 msgid "'b'"
13510 msgstr "'b'"
13511
13512 #. type: textblock
13513 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6004
13514 msgid "Block special"
13515 msgstr "Блоковий особливий"
13516
13517 #. type: =item
13518 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6006
13519 msgid "'c'"
13520 msgstr "'c'"
13521
13522 #. type: textblock
13523 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6008
13524 msgid "Char special"
13525 msgstr "Символьний особливий"
13526
13527 #. type: =item
13528 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6010
13529 msgid "'d'"
13530 msgstr "'d'"
13531
13532 #. type: textblock
13533 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6012
13534 msgid "Directory"
13535 msgstr "Каталог"
13536
13537 #. type: =item
13538 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6014
13539 msgid "'f'"
13540 msgstr "'f'"
13541
13542 #. type: textblock
13543 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6016
13544 msgid "FIFO (named pipe)"
13545 msgstr "FIFO (іменований канал)"
13546
13547 #. type: =item
13548 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6018
13549 msgid "'l'"
13550 msgstr "'l'"
13551
13552 #. type: textblock
13553 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6020
13554 msgid "Symbolic link"
13555 msgstr "Символічне посилання"
13556
13557 #. type: =item
13558 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6022
13559 msgid "'r'"
13560 msgstr "'r'"
13561
13562 #. type: textblock
13563 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6024
13564 msgid "Regular file"
13565 msgstr "Звичайний файл"
13566
13567 #. type: =item
13568 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6026
13569 msgid "'s'"
13570 msgstr "'s'"
13571
13572 #. type: textblock
13573 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6028
13574 msgid "Socket"
13575 msgstr "Сокет"
13576
13577 #. type: =item
13578 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6030
13579 msgid "'u'"
13580 msgstr "'u'"
13581
13582 #. type: textblock
13583 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6032
13584 msgid "Unknown file type"
13585 msgstr "Невідомий тип файла"
13586
13587 #. type: =item
13588 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6034
13589 msgid "'?'"
13590 msgstr ""
13591
13592 #. type: textblock
13593 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6036
13594 msgid ""
13595 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13596 msgstr ""
13597
13598 #. type: textblock
13599 #: ../fish/guestfish-actions.pod:3963
13600 msgid ""
13601 "This function is primarily intended for use by programs.  To get a simple "
13602 "list of names, use L</ls>.  To get a printable directory for human "
13603 "consumption, use L</ll>."
13604 msgstr ""
13605
13606 #. type: =head2
13607 #: ../fish/guestfish-actions.pod:3967
13608 msgid "readlink"
13609 msgstr "readlink"
13610
13611 #. type: verbatim
13612 #: ../fish/guestfish-actions.pod:3969
13613 #, no-wrap
13614 msgid ""
13615 " readlink path\n"
13616 "\n"
13617 msgstr ""
13618 " readlink шлях\n"
13619 "\n"
13620
13621 #. type: textblock
13622 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6057
13623 msgid "This command reads the target of a symbolic link."
13624 msgstr ""
13625
13626 #. type: =head2
13627 #: ../fish/guestfish-actions.pod:3973
13628 msgid "readlinklist"
13629 msgstr "readlinklist"
13630
13631 #. type: verbatim
13632 #: ../fish/guestfish-actions.pod:3975
13633 #, no-wrap
13634 msgid ""
13635 " readlinklist path 'names ...'\n"
13636 "\n"
13637 msgstr ""
13638
13639 #. type: textblock
13640 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6071
13641 msgid ""
13642 "This call allows you to do a C<readlink> operation on multiple files, where "
13643 "all files are in the directory C<path>.  C<names> is the list of files from "
13644 "this directory."
13645 msgstr ""
13646
13647 #. type: textblock
13648 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6075
13649 msgid ""
13650 "On return you get a list of strings, with a one-to-one correspondence to the "
13651 "C<names> list.  Each string is the value of the symbolic link."
13652 msgstr ""
13653
13654 #. type: textblock
13655 #: ../fish/guestfish-actions.pod:3985 ../src/guestfs-actions.pod:6079
13656 msgid ""
13657 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13658 "result string is the empty string C<\"\">.  However the whole operation is "
13659 "completed even if there were C<readlink(2)> errors, and so you can call this "
13660 "function with names where you don't know if they are symbolic links already "
13661 "(albeit slightly less efficient)."
13662 msgstr ""
13663
13664 #. type: textblock
13665 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6086
13666 msgid ""
13667 "This call is intended for programs that want to efficiently list a directory "
13668 "contents without making many round-trips.  Very long directory listings "
13669 "might cause the protocol message size to be exceeded, causing this call to "
13670 "fail.  The caller must split up such requests into smaller groups of names."
13671 msgstr ""
13672
13673 #. type: =head2
13674 #: ../fish/guestfish-actions.pod:3999
13675 msgid "realpath"
13676 msgstr "realpath"
13677
13678 #. type: verbatim
13679 #: ../fish/guestfish-actions.pod:4001
13680 #, no-wrap
13681 msgid ""
13682 " realpath path\n"
13683 "\n"
13684 msgstr ""
13685 " realpath шлях\n"
13686 "\n"
13687
13688 #. type: textblock
13689 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6105
13690 msgid ""
13691 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13692 "has no C<.>, C<..> or symbolic link path elements."
13693 msgstr ""
13694
13695 #. type: =head2
13696 #: ../fish/guestfish-actions.pod:4006
13697 msgid "removexattr"
13698 msgstr "removexattr"
13699
13700 #. type: verbatim
13701 #: ../fish/guestfish-actions.pod:4008
13702 #, no-wrap
13703 msgid ""
13704 " removexattr xattr path\n"
13705 "\n"
13706 msgstr ""
13707
13708 #. type: textblock
13709 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6120
13710 msgid ""
13711 "This call removes the extended attribute named C<xattr> of the file C<path>."
13712 msgstr ""
13713
13714 #. type: textblock
13715 #: ../fish/guestfish-actions.pod:4013
13716 msgid "See also: L</lremovexattr>, L<attr(5)>."
13717 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13718
13719 #. type: =head2
13720 #: ../fish/guestfish-actions.pod:4015
13721 msgid "resize2fs"
13722 msgstr "resize2fs"
13723
13724 #. type: verbatim
13725 #: ../fish/guestfish-actions.pod:4017
13726 #, no-wrap
13727 msgid ""
13728 " resize2fs device\n"
13729 "\n"
13730 msgstr ""
13731 " resize2fs пристрій\n"
13732 "\n"
13733
13734 #. type: textblock
13735 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6135
13736 msgid ""
13737 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13738 "underlying device."
13739 msgstr ""
13740
13741 #. type: textblock
13742 #: ../fish/guestfish-actions.pod:4022
13743 msgid ""
13744 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13745 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13746 "gives an error about this and sometimes not.  In any case, it is always safe "
13747 "to call L</e2fsck-f> before calling this function."
13748 msgstr ""
13749
13750 #. type: =head2
13751 #: ../fish/guestfish-actions.pod:4028
13752 msgid "resize2fs-M"
13753 msgstr "resize2fs-M"
13754
13755 #. type: verbatim
13756 #: ../fish/guestfish-actions.pod:4030
13757 #, no-wrap
13758 msgid ""
13759 " resize2fs-M device\n"
13760 "\n"
13761 msgstr ""
13762 " resize2fs-M пристрій\n"
13763 "\n"
13764
13765 #. type: textblock
13766 #: ../fish/guestfish-actions.pod:4032
13767 msgid ""
13768 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13769 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13770 "command."
13771 msgstr ""
13772
13773 #. type: textblock
13774 #: ../fish/guestfish-actions.pod:4036
13775 msgid ""
13776 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13777 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13778 "multiplied together, give the resulting size of the minimal filesystem in "
13779 "bytes."
13780 msgstr ""
13781
13782 #. type: =head2
13783 #: ../fish/guestfish-actions.pod:4041
13784 msgid "resize2fs-size"
13785 msgstr "resize2fs-size"
13786
13787 #. type: verbatim
13788 #: ../fish/guestfish-actions.pod:4043
13789 #, no-wrap
13790 msgid ""
13791 " resize2fs-size device size\n"
13792 "\n"
13793 msgstr ""
13794
13795 #. type: textblock
13796 #: ../fish/guestfish-actions.pod:4045
13797 msgid ""
13798 "This command is the same as L</resize2fs> except that it allows you to "
13799 "specify the new size (in bytes) explicitly."
13800 msgstr ""
13801
13802 #. type: =head2
13803 #: ../fish/guestfish-actions.pod:4048
13804 msgid "rm"
13805 msgstr "rm"
13806
13807 #. type: verbatim
13808 #: ../fish/guestfish-actions.pod:4050
13809 #, no-wrap
13810 msgid ""
13811 " rm path\n"
13812 "\n"
13813 msgstr ""
13814 " rm шлях\n"
13815 "\n"
13816
13817 #. type: textblock
13818 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6187
13819 msgid "Remove the single file C<path>."
13820 msgstr ""
13821
13822 #. type: =head2
13823 #: ../fish/guestfish-actions.pod:4054
13824 msgid "rm-rf"
13825 msgstr "rm-rf"
13826
13827 #. type: verbatim
13828 #: ../fish/guestfish-actions.pod:4056
13829 #, no-wrap
13830 msgid ""
13831 " rm-rf path\n"
13832 "\n"
13833 msgstr ""
13834 " rm-rf шлях\n"
13835 "\n"
13836
13837 #. type: textblock
13838 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6199
13839 msgid ""
13840 "Remove the file or directory C<path>, recursively removing the contents if "
13841 "its a directory.  This is like the C<rm -rf> shell command."
13842 msgstr ""
13843
13844 #. type: =head2
13845 #: ../fish/guestfish-actions.pod:4062
13846 msgid "rmdir"
13847 msgstr "rmdir"
13848
13849 #. type: verbatim
13850 #: ../fish/guestfish-actions.pod:4064
13851 #, no-wrap
13852 msgid ""
13853 " rmdir path\n"
13854 "\n"
13855 msgstr ""
13856 " rmdir шлях\n"
13857 "\n"
13858
13859 #. type: textblock
13860 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6213
13861 msgid "Remove the single directory C<path>."
13862 msgstr ""
13863
13864 #. type: =head2
13865 #: ../fish/guestfish-actions.pod:4068
13866 msgid "rmmountpoint"
13867 msgstr "rmmountpoint"
13868
13869 #. type: verbatim
13870 #: ../fish/guestfish-actions.pod:4070
13871 #, no-wrap
13872 msgid ""
13873 " rmmountpoint exemptpath\n"
13874 "\n"
13875 msgstr ""
13876
13877 #. type: textblock
13878 #: ../fish/guestfish-actions.pod:4072
13879 msgid ""
13880 "This calls removes a mountpoint that was previously created with L</"
13881 "mkmountpoint>.  See L</mkmountpoint> for full details."
13882 msgstr ""
13883
13884 #. type: =head2
13885 #: ../fish/guestfish-actions.pod:4076
13886 msgid "scrub-device"
13887 msgstr "scrub-device"
13888
13889 #. type: verbatim
13890 #: ../fish/guestfish-actions.pod:4078
13891 #, no-wrap
13892 msgid ""
13893 " scrub-device device\n"
13894 "\n"
13895 msgstr ""
13896 " scrub-device пристрій\n"
13897 "\n"
13898
13899 #. type: textblock
13900 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6239
13901 msgid ""
13902 "This command writes patterns over C<device> to make data retrieval more "
13903 "difficult."
13904 msgstr ""
13905
13906 #. type: textblock
13907 #: ../fish/guestfish-actions.pod:4083 ../fish/guestfish-actions.pod:4098
13908 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6242
13909 #: ../src/guestfs-actions.pod:6263 ../src/guestfs-actions.pod:6282
13910 msgid ""
13911 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13912 "more details."
13913 msgstr ""
13914
13915 #. type: =head2
13916 #: ../fish/guestfish-actions.pod:4089
13917 msgid "scrub-file"
13918 msgstr "scrub-file"
13919
13920 #. type: verbatim
13921 #: ../fish/guestfish-actions.pod:4091
13922 #, no-wrap
13923 msgid ""
13924 " scrub-file file\n"
13925 "\n"
13926 msgstr ""
13927 " scrub-file файл\n"
13928 "\n"
13929
13930 #. type: textblock
13931 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6258
13932 msgid ""
13933 "This command writes patterns over a file to make data retrieval more "
13934 "difficult."
13935 msgstr ""
13936
13937 #. type: textblock
13938 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6261
13939 msgid "The file is I<removed> after scrubbing."
13940 msgstr ""
13941
13942 #. type: =head2
13943 #: ../fish/guestfish-actions.pod:4101
13944 msgid "scrub-freespace"
13945 msgstr "scrub-freespace"
13946
13947 #. type: verbatim
13948 #: ../fish/guestfish-actions.pod:4103
13949 #, no-wrap
13950 msgid ""
13951 " scrub-freespace dir\n"
13952 "\n"
13953 msgstr ""
13954 " scrub-freespace каталог\n"
13955 "\n"
13956
13957 #. type: textblock
13958 #: ../fish/guestfish-actions.pod:4105
13959 msgid ""
13960 "This command creates the directory C<dir> and then fills it with files until "
13961 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13962 "deletes them.  The intention is to scrub any free space on the partition "
13963 "containing C<dir>."
13964 msgstr ""
13965
13966 #. type: =head2
13967 #: ../fish/guestfish-actions.pod:4114
13968 msgid "set-append"
13969 msgstr "set-append"
13970
13971 #. type: =head2
13972 #: ../fish/guestfish-actions.pod:4116
13973 msgid "append"
13974 msgstr ""
13975
13976 #. type: verbatim
13977 #: ../fish/guestfish-actions.pod:4118
13978 #, no-wrap
13979 msgid ""
13980 " set-append append\n"
13981 "\n"
13982 msgstr ""
13983
13984 #. type: textblock
13985 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6295
13986 msgid ""
13987 "This function is used to add additional options to the guest kernel command "
13988 "line."
13989 msgstr ""
13990
13991 #. type: textblock
13992 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6298
13993 msgid ""
13994 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13995 "environment variable."
13996 msgstr ""
13997
13998 #. type: textblock
13999 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6301
14000 msgid ""
14001 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14002 "(libguestfs always adds a few of its own)."
14003 msgstr ""
14004
14005 #. type: =head2
14006 #: ../fish/guestfish-actions.pod:4129
14007 msgid "set-attach-method"
14008 msgstr "set-attach-method"
14009
14010 #. type: =head2
14011 #: ../fish/guestfish-actions.pod:4131
14012 msgid "attach-method"
14013 msgstr ""
14014
14015 #. type: verbatim
14016 #: ../fish/guestfish-actions.pod:4133
14017 #, no-wrap
14018 msgid ""
14019 " set-attach-method attachmethod\n"
14020 "\n"
14021 msgstr ""
14022
14023 #. type: textblock
14024 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6314
14025 msgid ""
14026 "Set the method that libguestfs uses to connect to the back end guestfsd "
14027 "daemon.  Possible methods are:"
14028 msgstr ""
14029
14030 #. type: =item
14031 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6319
14032 #: ../src/guestfs.pod:2826
14033 msgid "C<appliance>"
14034 msgstr "C<appliance>"
14035
14036 #. type: textblock
14037 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6321
14038 msgid ""
14039 "Launch an appliance and connect to it.  This is the ordinary method and the "
14040 "default."
14041 msgstr ""
14042
14043 #. type: =item
14044 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6324
14045 msgid "C<unix:I<path>>"
14046 msgstr "C<unix:I<шлях>>"
14047
14048 #. type: textblock
14049 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6326
14050 msgid "Connect to the Unix domain socket I<path>."
14051 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
14052
14053 #. type: textblock
14054 #: ../fish/guestfish-actions.pod:4149 ../src/guestfs-actions.pod:6328
14055 msgid ""
14056 "This method lets you connect to an existing daemon or (using virtio-serial) "
14057 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
14058 "RUNNING DAEMONS>."
14059 msgstr ""
14060
14061 #. type: =head2
14062 #: ../fish/guestfish-actions.pod:4155
14063 msgid "set-autosync"
14064 msgstr "set-autosync"
14065
14066 #. type: =head2
14067 #: ../fish/guestfish-actions.pod:4157
14068 msgid "autosync"
14069 msgstr "autosync"
14070
14071 #. type: verbatim
14072 #: ../fish/guestfish-actions.pod:4159
14073 #, no-wrap
14074 msgid ""
14075 " set-autosync true|false\n"
14076 "\n"
14077 msgstr ""
14078 " set-autosync true|false\n"
14079 "\n"
14080
14081 #. type: textblock
14082 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6344
14083 msgid ""
14084 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
14085 "effort attempt to make filesystems consistent and synchronized when the "
14086 "handle is closed (also if the program exits without closing handles)."
14087 msgstr ""
14088
14089 #. type: textblock
14090 #: ../fish/guestfish-actions.pod:4166 ../src/guestfs-actions.pod:6349
14091 msgid ""
14092 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14093 "disabled by default)."
14094 msgstr ""
14095
14096 #. type: =head2
14097 #: ../fish/guestfish-actions.pod:4169
14098 msgid "set-direct"
14099 msgstr "set-direct"
14100
14101 #. type: =head2
14102 #: ../fish/guestfish-actions.pod:4171
14103 msgid "direct"
14104 msgstr "direct"
14105
14106 #. type: verbatim
14107 #: ../fish/guestfish-actions.pod:4173
14108 #, no-wrap
14109 msgid ""
14110 " set-direct true|false\n"
14111 "\n"
14112 msgstr ""
14113 " set-direct true|false\n"
14114 "\n"
14115
14116 #. type: textblock
14117 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6362
14118 msgid ""
14119 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14120 "passed directly through to the appliance once it is launched."
14121 msgstr ""
14122
14123 #. type: textblock
14124 #: ../fish/guestfish-actions.pod:4179
14125 msgid ""
14126 "One consequence of this is that log messages aren't caught by the library "
14127 "and handled by L</set-log-message-callback>, but go straight to stdout."
14128 msgstr ""
14129
14130 #. type: textblock
14131 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6370
14132 msgid "You probably don't want to use this unless you know what you are doing."
14133 msgstr ""
14134
14135 #. type: textblock
14136 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6373
14137 msgid "The default is disabled."
14138 msgstr ""
14139
14140 #. type: =head2
14141 #: ../fish/guestfish-actions.pod:4188
14142 msgid "set-e2label"
14143 msgstr "set-e2label"
14144
14145 #. type: verbatim
14146 #: ../fish/guestfish-actions.pod:4190
14147 #, no-wrap
14148 msgid ""
14149 " set-e2label device label\n"
14150 "\n"
14151 msgstr ""
14152
14153 #. type: textblock
14154 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6386
14155 msgid ""
14156 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14157 "C<label>.  Filesystem labels are limited to 16 characters."
14158 msgstr ""
14159
14160 #. type: textblock
14161 #: ../fish/guestfish-actions.pod:4196
14162 msgid ""
14163 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14164 "label on a filesystem."
14165 msgstr ""
14166
14167 #. type: =head2
14168 #: ../fish/guestfish-actions.pod:4199
14169 msgid "set-e2uuid"
14170 msgstr "set-e2uuid"
14171
14172 #. type: verbatim
14173 #: ../fish/guestfish-actions.pod:4201
14174 #, no-wrap
14175 msgid ""
14176 " set-e2uuid device uuid\n"
14177 "\n"
14178 msgstr ""
14179
14180 #. type: textblock
14181 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6404
14182 msgid ""
14183 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14184 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
14185 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14186 msgstr ""
14187
14188 #. type: textblock
14189 #: ../fish/guestfish-actions.pod:4208
14190 msgid ""
14191 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14192 "UUID of a filesystem."
14193 msgstr ""
14194
14195 #. type: =head2
14196 #: ../fish/guestfish-actions.pod:4211
14197 msgid "set-memsize"
14198 msgstr "set-memsize"
14199
14200 #. type: =head2
14201 #: ../fish/guestfish-actions.pod:4213
14202 msgid "memsize"
14203 msgstr ""
14204
14205 #. type: verbatim
14206 #: ../fish/guestfish-actions.pod:4215
14207 #, no-wrap
14208 msgid ""
14209 " set-memsize memsize\n"
14210 "\n"
14211 msgstr ""
14212
14213 #. type: textblock
14214 #: ../fish/guestfish-actions.pod:4217
14215 msgid ""
14216 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
14217 "This only has any effect if called before L</launch>."
14218 msgstr ""
14219
14220 #. type: textblock
14221 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6426
14222 msgid ""
14223 "You can also change this by setting the environment variable "
14224 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14225 msgstr ""
14226
14227 #. type: =head2
14228 #: ../fish/guestfish-actions.pod:4228
14229 msgid "set-network"
14230 msgstr "set-network"
14231
14232 #. type: =head2
14233 #: ../fish/guestfish-actions.pod:4230
14234 msgid "network"
14235 msgstr "network"
14236
14237 #. type: verbatim
14238 #: ../fish/guestfish-actions.pod:4232
14239 #, no-wrap
14240 msgid ""
14241 " set-network true|false\n"
14242 "\n"
14243 msgstr ""
14244 " set-network true|false\n"
14245 "\n"
14246
14247 #. type: textblock
14248 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6443
14249 msgid ""
14250 "If C<network> is true, then the network is enabled in the libguestfs "
14251 "appliance.  The default is false."
14252 msgstr ""
14253
14254 #. type: textblock
14255 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6446
14256 msgid ""
14257 "This affects whether commands are able to access the network (see L<guestfs"
14258 "(3)/RUNNING COMMANDS>)."
14259 msgstr ""
14260
14261 #. type: textblock
14262 #: ../fish/guestfish-actions.pod:4240
14263 msgid ""
14264 "You must call this before calling L</launch>, otherwise it has no effect."
14265 msgstr ""
14266
14267 #. type: =head2
14268 #: ../fish/guestfish-actions.pod:4243
14269 msgid "set-path"
14270 msgstr "set-path"
14271
14272 #. type: verbatim
14273 #: ../fish/guestfish-actions.pod:4247
14274 #, no-wrap
14275 msgid ""
14276 " set-path searchpath\n"
14277 "\n"
14278 msgstr ""
14279
14280 #. type: textblock
14281 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6462
14282 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14283 msgstr ""
14284
14285 #. type: textblock
14286 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6464
14287 msgid ""
14288 "The default is C<$libdir/guestfs> unless overridden by setting "
14289 "C<LIBGUESTFS_PATH> environment variable."
14290 msgstr ""
14291
14292 #. type: textblock
14293 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6467
14294 msgid "Setting C<path> to C<NULL> restores the default path."
14295 msgstr ""
14296
14297 #. type: =head2
14298 #: ../fish/guestfish-actions.pod:4256
14299 msgid "set-pgroup"
14300 msgstr ""
14301
14302 #. type: =head2
14303 #: ../fish/guestfish-actions.pod:4258
14304 msgid "pgroup"
14305 msgstr ""
14306
14307 #. type: verbatim
14308 #: ../fish/guestfish-actions.pod:4260
14309 #, no-wrap
14310 msgid ""
14311 " set-pgroup true|false\n"
14312 "\n"
14313 msgstr ""
14314
14315 #. type: textblock
14316 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6479
14317 msgid ""
14318 "If C<pgroup> is true, child processes are placed into their own process "
14319 "group."
14320 msgstr ""
14321
14322 #. type: textblock
14323 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6482
14324 msgid ""
14325 "The practical upshot of this is that signals like C<SIGINT> (from users "
14326 "pressing C<^C>) won't be received by the child process."
14327 msgstr ""
14328
14329 #. type: textblock
14330 #: ../fish/guestfish-actions.pod:4268 ../src/guestfs-actions.pod:6485
14331 msgid ""
14332 "The default for this flag is false, because usually you want C<^C> to kill "
14333 "the subprocess."
14334 msgstr ""
14335
14336 #. type: =head2
14337 #: ../fish/guestfish-actions.pod:4271
14338 msgid "set-qemu"
14339 msgstr "set-qemu"
14340
14341 #. type: =head2
14342 #: ../fish/guestfish-actions.pod:4273
14343 msgid "qemu"
14344 msgstr "qemu"
14345
14346 #. type: verbatim
14347 #: ../fish/guestfish-actions.pod:4275
14348 #, no-wrap
14349 msgid ""
14350 " set-qemu qemu\n"
14351 "\n"
14352 msgstr ""
14353 " set-qemu qemu\n"
14354 "\n"
14355
14356 #. type: textblock
14357 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6498
14358 msgid "Set the qemu binary that we will use."
14359 msgstr ""
14360
14361 #. type: textblock
14362 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6500
14363 msgid ""
14364 "The default is chosen when the library was compiled by the configure script."
14365 msgstr ""
14366
14367 #. type: textblock
14368 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6503
14369 msgid ""
14370 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14371 "variable."
14372 msgstr ""
14373
14374 #. type: textblock
14375 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6506
14376 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14377 msgstr ""
14378
14379 #. type: textblock
14380 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6508
14381 msgid ""
14382 "Note that you should call this function as early as possible after creating "
14383 "the handle.  This is because some pre-launch operations depend on testing "
14384 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14385 "don't retest features, and so you might see inconsistent results.  Using the "
14386 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14387 "the qemu binary at the same time as the handle is created."
14388 msgstr ""
14389
14390 #. type: =head2
14391 #: ../fish/guestfish-actions.pod:4295
14392 msgid "set-recovery-proc"
14393 msgstr "set-recovery-proc"
14394
14395 #. type: =head2
14396 #: ../fish/guestfish-actions.pod:4297
14397 msgid "recovery-proc"
14398 msgstr "recovery-proc"
14399
14400 #. type: verbatim
14401 #: ../fish/guestfish-actions.pod:4299
14402 #, no-wrap
14403 msgid ""
14404 " set-recovery-proc true|false\n"
14405 "\n"
14406 msgstr ""
14407 " set-recovery-proc true|false\n"
14408 "\n"
14409
14410 #. type: textblock
14411 #: ../fish/guestfish-actions.pod:4301
14412 msgid ""
14413 "If this is called with the parameter C<false> then L</launch> does not "
14414 "create a recovery process.  The purpose of the recovery process is to stop "
14415 "runaway qemu processes in the case where the main program aborts abruptly."
14416 msgstr ""
14417
14418 #. type: textblock
14419 #: ../fish/guestfish-actions.pod:4306
14420 msgid ""
14421 "This only has any effect if called before L</launch>, and the default is "
14422 "true."
14423 msgstr ""
14424
14425 #. type: textblock
14426 #: ../fish/guestfish-actions.pod:4309 ../src/guestfs-actions.pod:6534
14427 msgid ""
14428 "About the only time when you would want to disable this is if the main "
14429 "process will fork itself into the background (\"daemonize\" itself).  In "
14430 "this case the recovery process thinks that the main program has disappeared "
14431 "and so kills qemu, which is not very helpful."
14432 msgstr ""
14433
14434 #. type: =head2
14435 #: ../fish/guestfish-actions.pod:4315
14436 msgid "set-selinux"
14437 msgstr "set-selinux"
14438
14439 #. type: =head2
14440 #: ../fish/guestfish-actions.pod:4317
14441 msgid "selinux"
14442 msgstr "selinux"
14443
14444 #. type: verbatim
14445 #: ../fish/guestfish-actions.pod:4319
14446 #, no-wrap
14447 msgid ""
14448 " set-selinux true|false\n"
14449 "\n"
14450 msgstr ""
14451 " set-selinux true|false\n"
14452 "\n"
14453
14454 #. type: textblock
14455 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6550
14456 msgid ""
14457 "This sets the selinux flag that is passed to the appliance at boot time.  "
14458 "The default is C<selinux=0> (disabled)."
14459 msgstr ""
14460
14461 #. type: textblock
14462 #: ../fish/guestfish-actions.pod:4324 ../src/guestfs-actions.pod:6553
14463 msgid ""
14464 "Note that if SELinux is enabled, it is always in Permissive mode "
14465 "(C<enforcing=0>)."
14466 msgstr ""
14467
14468 #. type: =head2
14469 #: ../fish/guestfish-actions.pod:4330
14470 #, fuzzy
14471 #| msgid "set-path"
14472 msgid "set-smp"
14473 msgstr "set-path"
14474
14475 #. type: =head2
14476 #: ../fish/guestfish-actions.pod:4332
14477 msgid "smp"
14478 msgstr ""
14479
14480 #. type: verbatim
14481 #: ../fish/guestfish-actions.pod:4334
14482 #, fuzzy, no-wrap
14483 #| msgid ""
14484 #| " set-qemu qemu\n"
14485 #| "\n"
14486 msgid ""
14487 " set-smp smp\n"
14488 "\n"
14489 msgstr ""
14490 " set-qemu qemu\n"
14491 "\n"
14492
14493 #. type: textblock
14494 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6569
14495 msgid ""
14496 "Change the number of virtual CPUs assigned to the appliance.  The default is "
14497 "C<1>.  Increasing this may improve performance, though often it has no "
14498 "effect."
14499 msgstr ""
14500
14501 #. type: textblock
14502 #: ../fish/guestfish-actions.pod:4340
14503 msgid "This function must be called before L</launch>."
14504 msgstr ""
14505
14506 #. type: =head2
14507 #: ../fish/guestfish-actions.pod:4342
14508 msgid "set-trace"
14509 msgstr "set-trace"
14510
14511 #. type: =head2
14512 #: ../fish/guestfish-actions.pod:4344
14513 msgid "trace"
14514 msgstr "trace"
14515
14516 #. type: verbatim
14517 #: ../fish/guestfish-actions.pod:4346
14518 #, no-wrap
14519 msgid ""
14520 " set-trace true|false\n"
14521 "\n"
14522 msgstr ""
14523 " set-trace true|false\n"
14524 "\n"
14525
14526 #. type: textblock
14527 #: ../fish/guestfish-actions.pod:4348 ../src/guestfs-actions.pod:6583
14528 msgid ""
14529 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14530 "return values are traced."
14531 msgstr ""
14532
14533 #. type: textblock
14534 #: ../fish/guestfish-actions.pod:4351 ../src/guestfs-actions.pod:6586
14535 msgid ""
14536 "If you want to trace C API calls into libguestfs (and other libraries) then "
14537 "possibly a better way is to use the external ltrace(1) command."
14538 msgstr ""
14539
14540 #. type: textblock
14541 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6590
14542 msgid ""
14543 "Command traces are disabled unless the environment variable "
14544 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14545 msgstr ""
14546
14547 #. type: textblock
14548 #: ../fish/guestfish-actions.pod:4358
14549 msgid ""
14550 "Trace messages are normally sent to C<stderr>, unless you register a "
14551 "callback to send them somewhere else (see L</set-event-callback>)."
14552 msgstr ""
14553
14554 #. type: =head2
14555 #: ../fish/guestfish-actions.pod:4362
14556 msgid "set-verbose"
14557 msgstr "set-verbose"
14558
14559 #. type: =head2
14560 #: ../fish/guestfish-actions.pod:4364
14561 msgid "verbose"
14562 msgstr ""
14563
14564 #. type: verbatim
14565 #: ../fish/guestfish-actions.pod:4366
14566 #, no-wrap
14567 msgid ""
14568 " set-verbose true|false\n"
14569 "\n"
14570 msgstr ""
14571 " set-verbose true|false\n"
14572 "\n"
14573
14574 #. type: textblock
14575 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6607
14576 msgid "If C<verbose> is true, this turns on verbose messages."
14577 msgstr ""
14578
14579 #. type: textblock
14580 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6609
14581 msgid ""
14582 "Verbose messages are disabled unless the environment variable "
14583 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14584 msgstr ""
14585
14586 #. type: textblock
14587 #: ../fish/guestfish-actions.pod:4373
14588 msgid ""
14589 "Verbose messages are normally sent to C<stderr>, unless you register a "
14590 "callback to send them somewhere else (see L</set-event-callback>)."
14591 msgstr ""
14592
14593 #. type: =head2
14594 #: ../fish/guestfish-actions.pod:4377
14595 msgid "setcon"
14596 msgstr "setcon"
14597
14598 #. type: verbatim
14599 #: ../fish/guestfish-actions.pod:4379
14600 #, no-wrap
14601 msgid ""
14602 " setcon context\n"
14603 "\n"
14604 msgstr ""
14605 " setcon контекст\n"
14606 "\n"
14607
14608 #. type: textblock
14609 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6626
14610 msgid ""
14611 "This sets the SELinux security context of the daemon to the string "
14612 "C<context>."
14613 msgstr ""
14614
14615 #. type: textblock
14616 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6629
14617 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14618 msgstr ""
14619
14620 #. type: =head2
14621 #: ../fish/guestfish-actions.pod:4386
14622 msgid "setxattr"
14623 msgstr "setxattr"
14624
14625 #. type: verbatim
14626 #: ../fish/guestfish-actions.pod:4388
14627 #, no-wrap
14628 msgid ""
14629 " setxattr xattr val vallen path\n"
14630 "\n"
14631 msgstr ""
14632
14633 #. type: textblock
14634 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6644
14635 msgid ""
14636 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14637 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14638 msgstr ""
14639
14640 #. type: textblock
14641 #: ../fish/guestfish-actions.pod:4394
14642 msgid "See also: L</lsetxattr>, L<attr(5)>."
14643 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14644
14645 #. type: =head2
14646 #: ../fish/guestfish-actions.pod:4396
14647 msgid "sfdisk"
14648 msgstr "sfdisk"
14649
14650 #. type: verbatim
14651 #: ../fish/guestfish-actions.pod:4398
14652 #, no-wrap
14653 msgid ""
14654 " sfdisk device cyls heads sectors 'lines ...'\n"
14655 "\n"
14656 msgstr ""
14657
14658 #. type: textblock
14659 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6671
14660 msgid ""
14661 "This is a direct interface to the L<sfdisk(8)> program for creating "
14662 "partitions on block devices."
14663 msgstr ""
14664
14665 #. type: textblock
14666 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6674
14667 msgid "C<device> should be a block device, for example C</dev/sda>."
14668 msgstr ""
14669
14670 #. type: textblock
14671 #: ../fish/guestfish-actions.pod:4405 ../src/guestfs-actions.pod:6676
14672 msgid ""
14673 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14674 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14675 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14676 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14677 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14678 "the kernel) cannot work out the right geometry and you will need to tell it."
14679 msgstr ""
14680
14681 #. type: textblock
14682 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6684
14683 msgid ""
14684 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14685 "refer to the L<sfdisk(8)> manpage."
14686 msgstr ""
14687
14688 #. type: textblock
14689 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6687
14690 msgid ""
14691 "To create a single partition occupying the whole disk, you would pass "
14692 "C<lines> as a single element list, when the single element being the string "
14693 "C<,> (comma)."
14694 msgstr ""
14695
14696 #. type: textblock
14697 #: ../fish/guestfish-actions.pod:4420
14698 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14699 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14700
14701 #. type: textblock
14702 #: ../fish/guestfish-actions.pod:4426 ../fish/guestfish-actions.pod:4449
14703 #: ../fish/guestfish-actions.pod:4471
14704 msgid ""
14705 "I<This function is deprecated.> In new code, use the L</part_add> call "
14706 "instead."
14707 msgstr ""
14708
14709 #. type: =head2
14710 #: ../fish/guestfish-actions.pod:4433
14711 msgid "sfdiskM"
14712 msgstr "sfdiskM"
14713
14714 #. type: verbatim
14715 #: ../fish/guestfish-actions.pod:4435
14716 #, no-wrap
14717 msgid ""
14718 " sfdiskM device 'lines ...'\n"
14719 "\n"
14720 msgstr ""
14721
14722 #. type: textblock
14723 #: ../fish/guestfish-actions.pod:4437
14724 msgid ""
14725 "This is a simplified interface to the L</sfdisk> command, where partition "
14726 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14727 "you don't need to specify the cyls, heads and sectors parameters which were "
14728 "rarely if ever used anyway."
14729 msgstr ""
14730
14731 #. type: textblock
14732 #: ../fish/guestfish-actions.pod:4443
14733 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14734 msgstr ""
14735 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14736
14737 #. type: =head2
14738 #: ../fish/guestfish-actions.pod:4456
14739 msgid "sfdisk-N"
14740 msgstr "sfdisk-N"
14741
14742 #. type: verbatim
14743 #: ../fish/guestfish-actions.pod:4458
14744 #, no-wrap
14745 msgid ""
14746 " sfdisk-N device partnum cyls heads sectors line\n"
14747 "\n"
14748 msgstr ""
14749
14750 #. type: textblock
14751 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6749
14752 msgid ""
14753 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14754 "(note: C<n> counts from 1)."
14755 msgstr ""
14756
14757 #. type: textblock
14758 #: ../fish/guestfish-actions.pod:4463
14759 msgid ""
14760 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
14761 "cyls/heads/sectors parameters."
14762 msgstr ""
14763
14764 #. type: textblock
14765 #: ../fish/guestfish-actions.pod:4466
14766 msgid "See also: L</part-add>"
14767 msgstr "Див. також L</part-add>"
14768
14769 #. type: =head2
14770 #: ../fish/guestfish-actions.pod:4478
14771 msgid "sfdisk-disk-geometry"
14772 msgstr "sfdisk-disk-geometry"
14773
14774 #. type: verbatim
14775 #: ../fish/guestfish-actions.pod:4480
14776 #, no-wrap
14777 msgid ""
14778 " sfdisk-disk-geometry device\n"
14779 "\n"
14780 msgstr ""
14781 " sfdisk-disk-geometry пристрій\n"
14782 "\n"
14783
14784 #. type: textblock
14785 #: ../fish/guestfish-actions.pod:4482
14786 msgid ""
14787 "This displays the disk geometry of C<device> read from the partition table.  "
14788 "Especially in the case where the underlying block device has been resized, "
14789 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14790 "kernel-geometry>)."
14791 msgstr ""
14792
14793 #. type: textblock
14794 #: ../fish/guestfish-actions.pod:4487 ../fish/guestfish-actions.pod:4496
14795 #: ../src/guestfs-actions.pod:6775 ../src/guestfs-actions.pod:6791
14796 msgid "The result is in human-readable format, and not designed to be parsed."
14797 msgstr ""
14798
14799 #. type: =head2
14800 #: ../fish/guestfish-actions.pod:4490
14801 msgid "sfdisk-kernel-geometry"
14802 msgstr "sfdisk-kernel-geometry"
14803
14804 #. type: verbatim
14805 #: ../fish/guestfish-actions.pod:4492
14806 #, no-wrap
14807 msgid ""
14808 " sfdisk-kernel-geometry device\n"
14809 "\n"
14810 msgstr ""
14811 " sfdisk-kernel-geometry пристрій\n"
14812 "\n"
14813
14814 #. type: textblock
14815 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6789
14816 msgid "This displays the kernel's idea of the geometry of C<device>."
14817 msgstr ""
14818
14819 #. type: =head2
14820 #: ../fish/guestfish-actions.pod:4499
14821 msgid "sfdisk-l"
14822 msgstr "sfdisk-l"
14823
14824 #. type: verbatim
14825 #: ../fish/guestfish-actions.pod:4501
14826 #, no-wrap
14827 msgid ""
14828 " sfdisk-l device\n"
14829 "\n"
14830 msgstr ""
14831 " sfdisk-l пристрій\n"
14832 "\n"
14833
14834 #. type: textblock
14835 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6812
14836 msgid ""
14837 "This displays the partition table on C<device>, in the human-readable output "
14838 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14839 msgstr ""
14840
14841 #. type: textblock
14842 #: ../fish/guestfish-actions.pod:4507
14843 msgid "See also: L</part-list>"
14844 msgstr "Див. також L</part-list>"
14845
14846 #. type: textblock
14847 #: ../fish/guestfish-actions.pod:4509
14848 msgid ""
14849 "I<This function is deprecated.> In new code, use the L</part_list> call "
14850 "instead."
14851 msgstr ""
14852
14853 #. type: =head2
14854 #: ../fish/guestfish-actions.pod:4516
14855 msgid "sh"
14856 msgstr "sh"
14857
14858 #. type: verbatim
14859 #: ../fish/guestfish-actions.pod:4518
14860 #, no-wrap
14861 msgid ""
14862 " sh command\n"
14863 "\n"
14864 msgstr ""
14865 " sh команда\n"
14866 "\n"
14867
14868 #. type: textblock
14869 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6829
14870 msgid ""
14871 "This call runs a command from the guest filesystem via the guest's C</bin/"
14872 "sh>."
14873 msgstr ""
14874
14875 #. type: textblock
14876 #: ../fish/guestfish-actions.pod:4523
14877 msgid "This is like L</command>, but passes the command to:"
14878 msgstr ""
14879
14880 #. type: verbatim
14881 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6834
14882 #, no-wrap
14883 msgid ""
14884 " /bin/sh -c \"command\"\n"
14885 "\n"
14886 msgstr ""
14887
14888 #. type: textblock
14889 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6836
14890 msgid ""
14891 "Depending on the guest's shell, this usually results in wildcards being "
14892 "expanded, shell expressions being interpolated and so on."
14893 msgstr ""
14894
14895 #. type: textblock
14896 #: ../fish/guestfish-actions.pod:4531
14897 msgid "All the provisos about L</command> apply to this call."
14898 msgstr ""
14899
14900 #. type: =head2
14901 #: ../fish/guestfish-actions.pod:4533
14902 msgid "sh-lines"
14903 msgstr "sh-lines"
14904
14905 #. type: verbatim
14906 #: ../fish/guestfish-actions.pod:4535
14907 #, no-wrap
14908 msgid ""
14909 " sh-lines command\n"
14910 "\n"
14911 msgstr ""
14912 " sh-lines команда\n"
14913 "\n"
14914
14915 #. type: textblock
14916 #: ../fish/guestfish-actions.pod:4537
14917 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14918 msgstr ""
14919
14920 #. type: textblock
14921 #: ../fish/guestfish-actions.pod:4540
14922 msgid "See also: L</command-lines>"
14923 msgstr "Див. також L</command-lines>"
14924
14925 #. type: =head2
14926 #: ../fish/guestfish-actions.pod:4542
14927 msgid "sleep"
14928 msgstr "sleep"
14929
14930 #. type: verbatim
14931 #: ../fish/guestfish-actions.pod:4544
14932 #, no-wrap
14933 msgid ""
14934 " sleep secs\n"
14935 "\n"
14936 msgstr ""
14937 " sleep час_у_секундах\n"
14938 "\n"
14939
14940 #. type: textblock
14941 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6870
14942 msgid "Sleep for C<secs> seconds."
14943 msgstr ""
14944
14945 #. type: =head2
14946 #: ../fish/guestfish-actions.pod:4548
14947 msgid "stat"
14948 msgstr "stat"
14949
14950 #. type: verbatim
14951 #: ../fish/guestfish-actions.pod:4550
14952 #, no-wrap
14953 msgid ""
14954 " stat path\n"
14955 "\n"
14956 msgstr ""
14957 " stat шлях\n"
14958 "\n"
14959
14960 #. type: textblock
14961 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6884
14962 msgid "This is the same as the C<stat(2)> system call."
14963 msgstr ""
14964
14965 #. type: =head2
14966 #: ../fish/guestfish-actions.pod:4556
14967 msgid "statvfs"
14968 msgstr "statvfs"
14969
14970 #. type: verbatim
14971 #: ../fish/guestfish-actions.pod:4558
14972 #, no-wrap
14973 msgid ""
14974 " statvfs path\n"
14975 "\n"
14976 msgstr ""
14977 " statvfs шлях\n"
14978 "\n"
14979
14980 #. type: textblock
14981 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6898
14982 msgid ""
14983 "Returns file system statistics for any mounted file system.  C<path> should "
14984 "be a file or directory in the mounted file system (typically it is the mount "
14985 "point itself, but it doesn't need to be)."
14986 msgstr ""
14987
14988 #. type: textblock
14989 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6902
14990 msgid "This is the same as the C<statvfs(2)> system call."
14991 msgstr ""
14992
14993 #. type: =head2
14994 #: ../fish/guestfish-actions.pod:4566
14995 msgid "strings"
14996 msgstr "strings"
14997
14998 #. type: verbatim
14999 #: ../fish/guestfish-actions.pod:4568
15000 #, no-wrap
15001 msgid ""
15002 " strings path\n"
15003 "\n"
15004 msgstr ""
15005 " strings шлях\n"
15006 "\n"
15007
15008 #. type: textblock
15009 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6916
15010 msgid ""
15011 "This runs the L<strings(1)> command on a file and returns the list of "
15012 "printable strings found."
15013 msgstr ""
15014
15015 #. type: =head2
15016 #: ../fish/guestfish-actions.pod:4576
15017 msgid "strings-e"
15018 msgstr "strings-e"
15019
15020 #. type: verbatim
15021 #: ../fish/guestfish-actions.pod:4578
15022 #, no-wrap
15023 msgid ""
15024 " strings-e encoding path\n"
15025 "\n"
15026 msgstr ""
15027 " strings-e кодування шлях\n"
15028 "\n"
15029
15030 #. type: textblock
15031 #: ../fish/guestfish-actions.pod:4580
15032 msgid ""
15033 "This is like the L</strings> command, but allows you to specify the encoding "
15034 "of strings that are looked for in the source file C<path>."
15035 msgstr ""
15036
15037 #. type: textblock
15038 #: ../fish/guestfish-actions.pod:4584 ../src/guestfs-actions.pod:6939
15039 msgid "Allowed encodings are:"
15040 msgstr "Можливими кодуваннями є:"
15041
15042 #. type: =item
15043 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6943
15044 msgid "s"
15045 msgstr "s"
15046
15047 #. type: textblock
15048 #: ../fish/guestfish-actions.pod:4590
15049 msgid ""
15050 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15051 "ISO-8859-X (this is what L</strings> uses)."
15052 msgstr ""
15053
15054 #. type: =item
15055 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6948
15056 msgid "S"
15057 msgstr "S"
15058
15059 #. type: textblock
15060 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:6950
15061 msgid "Single 8-bit-byte characters."
15062 msgstr "Окремі 8-бітові-байтові символи."
15063
15064 #. type: =item
15065 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6952
15066 msgid "b"
15067 msgstr "b"
15068
15069 #. type: textblock
15070 #: ../fish/guestfish-actions.pod:4599 ../src/guestfs-actions.pod:6954
15071 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15072 msgstr ""
15073
15074 #. type: =item
15075 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6957
15076 msgid "l (lower case letter L)"
15077 msgstr ""
15078
15079 #. type: textblock
15080 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6959
15081 msgid ""
15082 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15083 "examining binaries in Windows guests."
15084 msgstr ""
15085
15086 #. type: =item
15087 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6962
15088 msgid "B"
15089 msgstr "B"
15090
15091 #. type: textblock
15092 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6964
15093 msgid "32-bit big endian such as UCS-4BE."
15094 msgstr ""
15095
15096 #. type: =item
15097 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6966
15098 msgid "L"
15099 msgstr "L"
15100
15101 #. type: textblock
15102 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6968
15103 msgid "32-bit little endian such as UCS-4LE."
15104 msgstr ""
15105
15106 #. type: textblock
15107 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6972
15108 msgid "The returned strings are transcoded to UTF-8."
15109 msgstr ""
15110
15111 #. type: =head2
15112 #: ../fish/guestfish-actions.pod:4622
15113 msgid "swapoff-device"
15114 msgstr "swapoff-device"
15115
15116 #. type: verbatim
15117 #: ../fish/guestfish-actions.pod:4624
15118 #, no-wrap
15119 msgid ""
15120 " swapoff-device device\n"
15121 "\n"
15122 msgstr ""
15123 " swapoff-device пристрій\n"
15124 "\n"
15125
15126 #. type: textblock
15127 #: ../fish/guestfish-actions.pod:4626
15128 msgid ""
15129 "This command disables the libguestfs appliance swap device or partition "
15130 "named C<device>.  See L</swapon-device>."
15131 msgstr ""
15132
15133 #. type: =head2
15134 #: ../fish/guestfish-actions.pod:4630
15135 msgid "swapoff-file"
15136 msgstr "swapoff-file"
15137
15138 #. type: verbatim
15139 #: ../fish/guestfish-actions.pod:4632
15140 #, no-wrap
15141 msgid ""
15142 " swapoff-file file\n"
15143 "\n"
15144 msgstr ""
15145 " swapoff-file файл\n"
15146 "\n"
15147
15148 #. type: textblock
15149 #: ../fish/guestfish-actions.pod:4634 ../src/guestfs-actions.pod:7003
15150 msgid "This command disables the libguestfs appliance swap on file."
15151 msgstr ""
15152
15153 #. type: =head2
15154 #: ../fish/guestfish-actions.pod:4636
15155 msgid "swapoff-label"
15156 msgstr "swapoff-label"
15157
15158 #. type: verbatim
15159 #: ../fish/guestfish-actions.pod:4638
15160 #, no-wrap
15161 msgid ""
15162 " swapoff-label label\n"
15163 "\n"
15164 msgstr ""
15165 " swapoff-label мітка\n"
15166 "\n"
15167
15168 #. type: textblock
15169 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:7015
15170 msgid ""
15171 "This command disables the libguestfs appliance swap on labeled swap "
15172 "partition."
15173 msgstr ""
15174
15175 #. type: =head2
15176 #: ../fish/guestfish-actions.pod:4643
15177 msgid "swapoff-uuid"
15178 msgstr "swapoff-uuid"
15179
15180 #. type: verbatim
15181 #: ../fish/guestfish-actions.pod:4645
15182 #, no-wrap
15183 msgid ""
15184 " swapoff-uuid uuid\n"
15185 "\n"
15186 msgstr ""
15187 " swapoff-uuid uuid\n"
15188 "\n"
15189
15190 #. type: textblock
15191 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7028
15192 msgid ""
15193 "This command disables the libguestfs appliance swap partition with the given "
15194 "UUID."
15195 msgstr ""
15196
15197 #. type: =head2
15198 #: ../fish/guestfish-actions.pod:4650
15199 msgid "swapon-device"
15200 msgstr "swapon-device"
15201
15202 #. type: verbatim
15203 #: ../fish/guestfish-actions.pod:4652
15204 #, no-wrap
15205 msgid ""
15206 " swapon-device device\n"
15207 "\n"
15208 msgstr ""
15209 " swapon-device пристрій\n"
15210 "\n"
15211
15212 #. type: textblock
15213 #: ../fish/guestfish-actions.pod:4654
15214 msgid ""
15215 "This command enables the libguestfs appliance to use the swap device or "
15216 "partition named C<device>.  The increased memory is made available for all "
15217 "commands, for example those run using L</command> or L</sh>."
15218 msgstr ""
15219
15220 #. type: textblock
15221 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7046
15222 msgid ""
15223 "Note that you should not swap to existing guest swap partitions unless you "
15224 "know what you are doing.  They may contain hibernation information, or other "
15225 "information that the guest doesn't want you to trash.  You also risk leaking "
15226 "information about the host to the guest this way.  Instead, attach a new "
15227 "host device to the guest and swap on that."
15228 msgstr ""
15229
15230 #. type: =head2
15231 #: ../fish/guestfish-actions.pod:4666
15232 msgid "swapon-file"
15233 msgstr "swapon-file"
15234
15235 #. type: verbatim
15236 #: ../fish/guestfish-actions.pod:4668
15237 #, no-wrap
15238 msgid ""
15239 " swapon-file file\n"
15240 "\n"
15241 msgstr ""
15242 " swapon-file файл\n"
15243 "\n"
15244
15245 #. type: textblock
15246 #: ../fish/guestfish-actions.pod:4670
15247 msgid ""
15248 "This command enables swap to a file.  See L</swapon-device> for other notes."
15249 msgstr ""
15250
15251 #. type: =head2
15252 #: ../fish/guestfish-actions.pod:4673
15253 msgid "swapon-label"
15254 msgstr "swapon-label"
15255
15256 #. type: verbatim
15257 #: ../fish/guestfish-actions.pod:4675
15258 #, no-wrap
15259 msgid ""
15260 " swapon-label label\n"
15261 "\n"
15262 msgstr ""
15263 " swapon-label мітка\n"
15264 "\n"
15265
15266 #. type: textblock
15267 #: ../fish/guestfish-actions.pod:4677
15268 msgid ""
15269 "This command enables swap to a labeled swap partition.  See L</swapon-"
15270 "device> for other notes."
15271 msgstr ""
15272
15273 #. type: =head2
15274 #: ../fish/guestfish-actions.pod:4680
15275 msgid "swapon-uuid"
15276 msgstr "swapon-uuid"
15277
15278 #. type: verbatim
15279 #: ../fish/guestfish-actions.pod:4682
15280 #, no-wrap
15281 msgid ""
15282 " swapon-uuid uuid\n"
15283 "\n"
15284 msgstr ""
15285 " swapon-uuid uuid\n"
15286 "\n"
15287
15288 #. type: textblock
15289 #: ../fish/guestfish-actions.pod:4684
15290 msgid ""
15291 "This command enables swap to a swap partition with the given UUID.  See L</"
15292 "swapon-device> for other notes."
15293 msgstr ""
15294
15295 #. type: =head2
15296 #: ../fish/guestfish-actions.pod:4687
15297 msgid "sync"
15298 msgstr "sync"
15299
15300 #. type: verbatim
15301 #: ../fish/guestfish-actions.pod:4689
15302 #, no-wrap
15303 msgid ""
15304 " sync\n"
15305 "\n"
15306 msgstr ""
15307 " sync\n"
15308 "\n"
15309
15310 #. type: textblock
15311 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7101
15312 msgid ""
15313 "This syncs the disk, so that any writes are flushed through to the "
15314 "underlying disk image."
15315 msgstr ""
15316
15317 #. type: textblock
15318 #: ../fish/guestfish-actions.pod:4694 ../src/guestfs-actions.pod:7104
15319 msgid ""
15320 "You should always call this if you have modified a disk image, before "
15321 "closing the handle."
15322 msgstr ""
15323
15324 #. type: =head2
15325 #: ../fish/guestfish-actions.pod:4697
15326 msgid "tail"
15327 msgstr "tail"
15328
15329 #. type: verbatim
15330 #: ../fish/guestfish-actions.pod:4699
15331 #, no-wrap
15332 msgid ""
15333 " tail path\n"
15334 "\n"
15335 msgstr ""
15336 " tail шлях\n"
15337 "\n"
15338
15339 #. type: textblock
15340 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7117
15341 msgid ""
15342 "This command returns up to the last 10 lines of a file as a list of strings."
15343 msgstr ""
15344
15345 #. type: =head2
15346 #: ../fish/guestfish-actions.pod:4707
15347 msgid "tail-n"
15348 msgstr "tail-n"
15349
15350 #. type: verbatim
15351 #: ../fish/guestfish-actions.pod:4709
15352 #, no-wrap
15353 msgid ""
15354 " tail-n nrlines path\n"
15355 "\n"
15356 msgstr ""
15357
15358 #. type: textblock
15359 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7136
15360 msgid ""
15361 "If the parameter C<nrlines> is a positive number, this returns the last "
15362 "C<nrlines> lines of the file C<path>."
15363 msgstr ""
15364
15365 #. type: textblock
15366 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7139
15367 msgid ""
15368 "If the parameter C<nrlines> is a negative number, this returns lines from "
15369 "the file C<path>, starting with the C<-nrlines>th line."
15370 msgstr ""
15371
15372 #. type: =head2
15373 #: ../fish/guestfish-actions.pod:4722
15374 msgid "tar-in"
15375 msgstr "tar-in"
15376
15377 #. type: verbatim
15378 #: ../fish/guestfish-actions.pod:4724
15379 #, no-wrap
15380 msgid ""
15381 " tar-in (tarfile|-) directory\n"
15382 "\n"
15383 msgstr ""
15384 " tar-in (файл_tar|-) каталог\n"
15385 "\n"
15386
15387 #. type: textblock
15388 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7160
15389 msgid ""
15390 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15391 "tar file) into C<directory>."
15392 msgstr ""
15393
15394 #. type: textblock
15395 #: ../fish/guestfish-actions.pod:4729
15396 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15397 msgstr ""
15398
15399 #. type: =head2
15400 #: ../fish/guestfish-actions.pod:4734
15401 msgid "tar-out"
15402 msgstr "tar-out"
15403
15404 #. type: verbatim
15405 #: ../fish/guestfish-actions.pod:4736
15406 #, no-wrap
15407 msgid ""
15408 " tar-out directory (tarfile|-)\n"
15409 "\n"
15410 msgstr ""
15411 " tar-out каталог (файл tar|-)\n"
15412 "\n"
15413
15414 #. type: textblock
15415 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7177
15416 msgid ""
15417 "This command packs the contents of C<directory> and downloads it to local "
15418 "file C<tarfile>."
15419 msgstr ""
15420
15421 #. type: textblock
15422 #: ../fish/guestfish-actions.pod:4741
15423 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15424 msgstr ""
15425
15426 #. type: =head2
15427 #: ../fish/guestfish-actions.pod:4746
15428 msgid "tgz-in"
15429 msgstr "tgz-in"
15430
15431 #. type: verbatim
15432 #: ../fish/guestfish-actions.pod:4748
15433 #, no-wrap
15434 msgid ""
15435 " tgz-in (tarball|-) directory\n"
15436 "\n"
15437 msgstr ""
15438 " tgz-in (архів tar|-) каталог\n"
15439 "\n"
15440
15441 #. type: textblock
15442 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7194
15443 msgid ""
15444 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15445 "tar file) into C<directory>."
15446 msgstr ""
15447
15448 #. type: textblock
15449 #: ../fish/guestfish-actions.pod:4753
15450 msgid "To upload an uncompressed tarball, use L</tar-in>."
15451 msgstr ""
15452
15453 #. type: =head2
15454 #: ../fish/guestfish-actions.pod:4757
15455 msgid "tgz-out"
15456 msgstr "tgz-out"
15457
15458 #. type: verbatim
15459 #: ../fish/guestfish-actions.pod:4759
15460 #, no-wrap
15461 msgid ""
15462 " tgz-out directory (tarball|-)\n"
15463 "\n"
15464 msgstr ""
15465 " tgz-out каталог (архів tar|-)\n"
15466 "\n"
15467
15468 #. type: textblock
15469 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7210
15470 msgid ""
15471 "This command packs the contents of C<directory> and downloads it to local "
15472 "file C<tarball>."
15473 msgstr ""
15474
15475 #. type: textblock
15476 #: ../fish/guestfish-actions.pod:4764
15477 msgid "To download an uncompressed tarball, use L</tar-out>."
15478 msgstr ""
15479
15480 #. type: =head2
15481 #: ../fish/guestfish-actions.pod:4768
15482 msgid "touch"
15483 msgstr "touch"
15484
15485 #. type: verbatim
15486 #: ../fish/guestfish-actions.pod:4770
15487 #, no-wrap
15488 msgid ""
15489 " touch path\n"
15490 "\n"
15491 msgstr ""
15492 " touch шлях\n"
15493 "\n"
15494
15495 #. type: textblock
15496 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7225
15497 msgid ""
15498 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15499 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15500 "length file."
15501 msgstr ""
15502
15503 #. type: textblock
15504 #: ../fish/guestfish-actions.pod:4776 ../src/guestfs-actions.pod:7229
15505 msgid ""
15506 "This command only works on regular files, and will fail on other file types "
15507 "such as directories, symbolic links, block special etc."
15508 msgstr ""
15509
15510 #. type: =head2
15511 #: ../fish/guestfish-actions.pod:4779
15512 msgid "truncate"
15513 msgstr "truncate"
15514
15515 #. type: verbatim
15516 #: ../fish/guestfish-actions.pod:4781
15517 #, no-wrap
15518 msgid ""
15519 " truncate path\n"
15520 "\n"
15521 msgstr ""
15522 " truncate шлях\n"
15523 "\n"
15524
15525 #. type: textblock
15526 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7242
15527 msgid ""
15528 "This command truncates C<path> to a zero-length file.  The file must exist "
15529 "already."
15530 msgstr ""
15531
15532 #. type: =head2
15533 #: ../fish/guestfish-actions.pod:4786
15534 msgid "truncate-size"
15535 msgstr "truncate-size"
15536
15537 #. type: verbatim
15538 #: ../fish/guestfish-actions.pod:4788
15539 #, no-wrap
15540 msgid ""
15541 " truncate-size path size\n"
15542 "\n"
15543 msgstr ""
15544 " truncate-size шлях розмір\n"
15545 "\n"
15546
15547 #. type: textblock
15548 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7256
15549 msgid ""
15550 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15551 "already."
15552 msgstr ""
15553
15554 #. type: textblock
15555 #: ../fish/guestfish-actions.pod:4793
15556 msgid ""
15557 "If the current file size is less than C<size> then the file is extended to "
15558 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15559 "blocks are not allocated for the file until you write to it).  To create a "
15560 "non-sparse file of zeroes, use L</fallocate64> instead."
15561 msgstr ""
15562
15563 #. type: =head2
15564 #: ../fish/guestfish-actions.pod:4799
15565 msgid "tune2fs-l"
15566 msgstr "tune2fs-l"
15567
15568 #. type: verbatim
15569 #: ../fish/guestfish-actions.pod:4801
15570 #, no-wrap
15571 msgid ""
15572 " tune2fs-l device\n"
15573 "\n"
15574 msgstr ""
15575 " tune2fs-l пристрій\n"
15576 "\n"
15577
15578 #. type: textblock
15579 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7275
15580 msgid ""
15581 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15582 "C<device>."
15583 msgstr ""
15584
15585 #. type: textblock
15586 #: ../fish/guestfish-actions.pod:4806 ../src/guestfs-actions.pod:7278
15587 msgid ""
15588 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15589 "for more details.  The list of fields returned isn't clearly defined, and "
15590 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15591 "and the filesystem itself."
15592 msgstr ""
15593
15594 #. type: =head2
15595 #: ../fish/guestfish-actions.pod:4811
15596 msgid "txz-in"
15597 msgstr "txz-in"
15598
15599 #. type: verbatim
15600 #: ../fish/guestfish-actions.pod:4813
15601 #, no-wrap
15602 msgid ""
15603 " txz-in (tarball|-) directory\n"
15604 "\n"
15605 msgstr ""
15606 " txz-in (архів tar|-) каталог\n"
15607 "\n"
15608
15609 #. type: textblock
15610 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7298
15611 msgid ""
15612 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15613 "tar file) into C<directory>."
15614 msgstr ""
15615
15616 #. type: =head2
15617 #: ../fish/guestfish-actions.pod:4820
15618 msgid "txz-out"
15619 msgstr "txz-out"
15620
15621 #. type: verbatim
15622 #: ../fish/guestfish-actions.pod:4822
15623 #, no-wrap
15624 msgid ""
15625 " txz-out directory (tarball|-)\n"
15626 "\n"
15627 msgstr ""
15628 " txz-out каталог (архів tar|-)\n"
15629 "\n"
15630
15631 #. type: textblock
15632 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7312
15633 msgid ""
15634 "This command packs the contents of C<directory> and downloads it to local "
15635 "file C<tarball> (as an xz compressed tar archive)."
15636 msgstr ""
15637
15638 #. type: =head2
15639 #: ../fish/guestfish-actions.pod:4829
15640 msgid "umask"
15641 msgstr "umask"
15642
15643 #. type: verbatim
15644 #: ../fish/guestfish-actions.pod:4831
15645 #, no-wrap
15646 msgid ""
15647 " umask mask\n"
15648 "\n"
15649 msgstr ""
15650 " umask маска\n"
15651 "\n"
15652
15653 #. type: textblock
15654 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7325
15655 msgid ""
15656 "This function sets the mask used for creating new files and device nodes to "
15657 "C<mask & 0777>."
15658 msgstr ""
15659
15660 #. type: textblock
15661 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7328
15662 msgid ""
15663 "Typical umask values would be C<022> which creates new files with "
15664 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15665 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15666 msgstr ""
15667
15668 #. type: textblock
15669 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7333
15670 msgid ""
15671 "The default umask is C<022>.  This is important because it means that "
15672 "directories and device nodes will be created with C<0644> or C<0755> mode "
15673 "even if you specify C<0777>."
15674 msgstr ""
15675
15676 #. type: textblock
15677 #: ../fish/guestfish-actions.pod:4845
15678 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15679 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15680
15681 #. type: textblock
15682 #: ../fish/guestfish-actions.pod:4848 ../src/guestfs-actions.pod:7340
15683 msgid "This call returns the previous umask."
15684 msgstr ""
15685
15686 #. type: =head2
15687 #: ../fish/guestfish-actions.pod:4850
15688 msgid "umount"
15689 msgstr "umount"
15690
15691 #. type: =head2
15692 #: ../fish/guestfish-actions.pod:4852
15693 msgid "unmount"
15694 msgstr "unmount"
15695
15696 #. type: verbatim
15697 #: ../fish/guestfish-actions.pod:4854
15698 #, no-wrap
15699 msgid ""
15700 " umount pathordevice\n"
15701 "\n"
15702 msgstr ""
15703 " umount шлях_або_пристрій\n"
15704 "\n"
15705
15706 #. type: textblock
15707 #: ../fish/guestfish-actions.pod:4856 ../src/guestfs-actions.pod:7352
15708 msgid ""
15709 "This unmounts the given filesystem.  The filesystem may be specified either "
15710 "by its mountpoint (path) or the device which contains the filesystem."
15711 msgstr ""
15712
15713 #. type: =head2
15714 #: ../fish/guestfish-actions.pod:4860
15715 msgid "umount-all"
15716 msgstr "umount-all"
15717
15718 #. type: =head2
15719 #: ../fish/guestfish-actions.pod:4862
15720 msgid "unmount-all"
15721 msgstr "unmount-all"
15722
15723 #. type: verbatim
15724 #: ../fish/guestfish-actions.pod:4864
15725 #, no-wrap
15726 msgid ""
15727 " umount-all\n"
15728 "\n"
15729 msgstr ""
15730 " umount-all\n"
15731 "\n"
15732
15733 #. type: textblock
15734 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7365
15735 msgid "This unmounts all mounted filesystems."
15736 msgstr ""
15737
15738 #. type: textblock
15739 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7367
15740 msgid "Some internal mounts are not unmounted by this call."
15741 msgstr ""
15742
15743 #. type: =head2
15744 #: ../fish/guestfish-actions.pod:4870
15745 msgid "upload"
15746 msgstr "upload"
15747
15748 #. type: verbatim
15749 #: ../fish/guestfish-actions.pod:4872
15750 #, no-wrap
15751 msgid ""
15752 " upload (filename|-) remotefilename\n"
15753 "\n"
15754 msgstr ""
15755 " upload (назва_файла|-) назва_віддаленого_файла\n"
15756 "\n"
15757
15758 #. type: textblock
15759 #: ../fish/guestfish-actions.pod:4874 ../fish/guestfish-actions.pod:4887
15760 #: ../src/guestfs-actions.pod:7380 ../src/guestfs-actions.pod:7404
15761 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15762 msgstr ""
15763
15764 #. type: textblock
15765 #: ../fish/guestfish-actions.pod:4879
15766 msgid "See also L</download>."
15767 msgstr "Див. також L</download>."
15768
15769 #. type: =head2
15770 #: ../fish/guestfish-actions.pod:4883
15771 msgid "upload-offset"
15772 msgstr "upload-offset"
15773
15774 #. type: verbatim
15775 #: ../fish/guestfish-actions.pod:4885
15776 #, no-wrap
15777 msgid ""
15778 " upload-offset (filename|-) remotefilename offset\n"
15779 "\n"
15780 msgstr ""
15781 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15782 "\n"
15783
15784 #. type: textblock
15785 #: ../fish/guestfish-actions.pod:4890 ../src/guestfs-actions.pod:7407
15786 msgid ""
15787 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15788 "The intention is to overwrite parts of existing files or devices, although "
15789 "if a non-existant file is specified then it is created with a \"hole\" "
15790 "before C<offset>.  The size of the data written is implicit in the size of "
15791 "the source C<filename>."
15792 msgstr ""
15793
15794 #. type: textblock
15795 #: ../fish/guestfish-actions.pod:4897
15796 msgid ""
15797 "Note that there is no limit on the amount of data that can be uploaded with "
15798 "this call, unlike with L</pwrite>, and this call always writes the full "
15799 "amount unless an error occurs."
15800 msgstr ""
15801
15802 #. type: textblock
15803 #: ../fish/guestfish-actions.pod:4902
15804 msgid "See also L</upload>, L</pwrite>."
15805 msgstr "Див. також L</upload>, L</pwrite>."
15806
15807 #. type: =head2
15808 #: ../fish/guestfish-actions.pod:4906
15809 msgid "utimens"
15810 msgstr "utimens"
15811
15812 #. type: verbatim
15813 #: ../fish/guestfish-actions.pod:4908
15814 #, no-wrap
15815 msgid ""
15816 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15817 "\n"
15818 msgstr ""
15819
15820 #. type: textblock
15821 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7440
15822 msgid "This command sets the timestamps of a file with nanosecond precision."
15823 msgstr ""
15824
15825 #. type: textblock
15826 #: ../fish/guestfish-actions.pod:4913 ../src/guestfs-actions.pod:7443
15827 msgid ""
15828 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15829 "from the epoch."
15830 msgstr ""
15831
15832 #. type: textblock
15833 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7446
15834 msgid ""
15835 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15836 "nanoseconds from the epoch."
15837 msgstr ""
15838
15839 #. type: textblock
15840 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7449
15841 msgid ""
15842 "If the C<*nsecs> field contains the special value C<-1> then the "
15843 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15844 "ignored in this case)."
15845 msgstr ""
15846
15847 #. type: textblock
15848 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7453
15849 msgid ""
15850 "If the C<*nsecs> field contains the special value C<-2> then the "
15851 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15852 "in this case)."
15853 msgstr ""
15854
15855 #. type: =head2
15856 #: ../fish/guestfish-actions.pod:4927
15857 msgid "version"
15858 msgstr "version"
15859
15860 #. type: verbatim
15861 #: ../fish/guestfish-actions.pod:4929
15862 #, no-wrap
15863 msgid ""
15864 " version\n"
15865 "\n"
15866 msgstr ""
15867 " version\n"
15868 "\n"
15869
15870 #. type: textblock
15871 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7466
15872 msgid ""
15873 "Return the libguestfs version number that the program is linked against."
15874 msgstr ""
15875
15876 #. type: textblock
15877 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7469
15878 msgid ""
15879 "Note that because of dynamic linking this is not necessarily the version of "
15880 "libguestfs that you compiled against.  You can compile the program, and then "
15881 "at runtime dynamically link against a completely different C<libguestfs.so> "
15882 "library."
15883 msgstr ""
15884
15885 #. type: textblock
15886 #: ../fish/guestfish-actions.pod:4939 ../src/guestfs-actions.pod:7474
15887 msgid ""
15888 "This call was added in version C<1.0.58>.  In previous versions of "
15889 "libguestfs there was no way to get the version number.  From C code you can "
15890 "use dynamic linker functions to find out if this symbol exists (if it "
15891 "doesn't, then it's an earlier version)."
15892 msgstr ""
15893
15894 #. type: textblock
15895 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7480
15896 msgid ""
15897 "The call returns a structure with four elements.  The first three (C<major>, "
15898 "C<minor> and C<release>) are numbers and correspond to the usual version "
15899 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15900 "but may be used for distro-specific information."
15901 msgstr ""
15902
15903 #. type: textblock
15904 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7486
15905 msgid ""
15906 "To construct the original version string: C<$major.$minor.$release$extra>"
15907 msgstr ""
15908
15909 #. type: textblock
15910 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7489
15911 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15912 msgstr ""
15913
15914 #. type: textblock
15915 #: ../fish/guestfish-actions.pod:4956
15916 msgid ""
15917 "I<Note:> Don't use this call to test for availability of features.  In "
15918 "enterprise distributions we backport features from later versions into "
15919 "earlier versions, making this an unreliable way to test for features.  Use "
15920 "L</available> instead."
15921 msgstr ""
15922
15923 #. type: =head2
15924 #: ../fish/guestfish-actions.pod:4962
15925 msgid "vfs-label"
15926 msgstr "vfs-label"
15927
15928 #. type: verbatim
15929 #: ../fish/guestfish-actions.pod:4964
15930 #, no-wrap
15931 msgid ""
15932 " vfs-label device\n"
15933 "\n"
15934 msgstr ""
15935 " vfs-label пристрій\n"
15936 "\n"
15937
15938 #. type: textblock
15939 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7509
15940 msgid "This returns the filesystem label of the filesystem on C<device>."
15941 msgstr ""
15942
15943 #. type: textblock
15944 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7512
15945 msgid "If the filesystem is unlabeled, this returns the empty string."
15946 msgstr ""
15947
15948 #. type: textblock
15949 #: ../fish/guestfish-actions.pod:4971
15950 msgid "To find a filesystem from the label, use L</findfs-label>."
15951 msgstr ""
15952
15953 #. type: =head2
15954 #: ../fish/guestfish-actions.pod:4973
15955 msgid "vfs-type"
15956 msgstr "vfs-type"
15957
15958 #. type: verbatim
15959 #: ../fish/guestfish-actions.pod:4975
15960 #, no-wrap
15961 msgid ""
15962 " vfs-type device\n"
15963 "\n"
15964 msgstr ""
15965 " vfs-type пристрій\n"
15966 "\n"
15967
15968 #. type: textblock
15969 #: ../fish/guestfish-actions.pod:4977 ../src/guestfs-actions.pod:7527
15970 msgid ""
15971 "This command gets the filesystem type corresponding to the filesystem on "
15972 "C<device>."
15973 msgstr ""
15974
15975 #. type: textblock
15976 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7530
15977 msgid ""
15978 "For most filesystems, the result is the name of the Linux VFS module which "
15979 "would be used to mount this filesystem if you mounted it without specifying "
15980 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15981 msgstr ""
15982
15983 #. type: =head2
15984 #: ../fish/guestfish-actions.pod:4985
15985 msgid "vfs-uuid"
15986 msgstr "vfs-uuid"
15987
15988 #. type: verbatim
15989 #: ../fish/guestfish-actions.pod:4987
15990 #, no-wrap
15991 msgid ""
15992 " vfs-uuid device\n"
15993 "\n"
15994 msgstr ""
15995 " vfs-uuid пристрій\n"
15996 "\n"
15997
15998 #. type: textblock
15999 #: ../fish/guestfish-actions.pod:4989 ../src/guestfs-actions.pod:7546
16000 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16001 msgstr ""
16002
16003 #. type: textblock
16004 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7549
16005 msgid "If the filesystem does not have a UUID, this returns the empty string."
16006 msgstr ""
16007
16008 #. type: textblock
16009 #: ../fish/guestfish-actions.pod:4994
16010 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16011 msgstr ""
16012
16013 #. type: =head2
16014 #: ../fish/guestfish-actions.pod:4996
16015 msgid "vg-activate"
16016 msgstr "vg-activate"
16017
16018 #. type: verbatim
16019 #: ../fish/guestfish-actions.pod:4998
16020 #, no-wrap
16021 msgid ""
16022 " vg-activate true|false 'volgroups ...'\n"
16023 "\n"
16024 msgstr ""
16025
16026 #. type: textblock
16027 #: ../fish/guestfish-actions.pod:5000 ../src/guestfs-actions.pod:7565
16028 msgid ""
16029 "This command activates or (if C<activate> is false) deactivates all logical "
16030 "volumes in the listed volume groups C<volgroups>."
16031 msgstr ""
16032
16033 #. type: textblock
16034 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7568
16035 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16036 msgstr ""
16037
16038 #. type: textblock
16039 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7570
16040 msgid ""
16041 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16042 "activated or deactivated."
16043 msgstr ""
16044
16045 #. type: =head2
16046 #: ../fish/guestfish-actions.pod:5008
16047 msgid "vg-activate-all"
16048 msgstr "vg-activate-all"
16049
16050 #. type: verbatim
16051 #: ../fish/guestfish-actions.pod:5010
16052 #, no-wrap
16053 msgid ""
16054 " vg-activate-all true|false\n"
16055 "\n"
16056 msgstr ""
16057 " vg-activate-all true|false\n"
16058 "\n"
16059
16060 #. type: textblock
16061 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7583
16062 msgid ""
16063 "This command activates or (if C<activate> is false) deactivates all logical "
16064 "volumes in all volume groups."
16065 msgstr ""
16066
16067 #. type: textblock
16068 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7586
16069 msgid "This command is the same as running C<vgchange -a y|n>"
16070 msgstr ""
16071
16072 #. type: =head2
16073 #: ../fish/guestfish-actions.pod:5017
16074 msgid "vgcreate"
16075 msgstr "vgcreate"
16076
16077 #. type: verbatim
16078 #: ../fish/guestfish-actions.pod:5019
16079 #, no-wrap
16080 msgid ""
16081 " vgcreate volgroup 'physvols ...'\n"
16082 "\n"
16083 msgstr ""
16084
16085 #. type: textblock
16086 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7599
16087 msgid ""
16088 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16089 "of physical volumes C<physvols>."
16090 msgstr ""
16091
16092 #. type: =head2
16093 #: ../fish/guestfish-actions.pod:5024
16094 msgid "vglvuuids"
16095 msgstr "vglvuuids"
16096
16097 #. type: verbatim
16098 #: ../fish/guestfish-actions.pod:5026
16099 #, no-wrap
16100 msgid ""
16101 " vglvuuids vgname\n"
16102 "\n"
16103 msgstr ""
16104
16105 #. type: textblock
16106 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7612
16107 msgid ""
16108 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16109 "volumes created in this volume group."
16110 msgstr ""
16111
16112 #. type: textblock
16113 #: ../fish/guestfish-actions.pod:5031
16114 msgid ""
16115 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16116 "logical volumes and volume groups."
16117 msgstr ""
16118
16119 #. type: textblock
16120 #: ../fish/guestfish-actions.pod:5034
16121 msgid "See also L</vgpvuuids>."
16122 msgstr "Див. також L</vgpvuuids>."
16123
16124 #. type: =head2
16125 #: ../fish/guestfish-actions.pod:5036
16126 msgid "vgpvuuids"
16127 msgstr "vgpvuuids"
16128
16129 #. type: verbatim
16130 #: ../fish/guestfish-actions.pod:5038
16131 #, no-wrap
16132 msgid ""
16133 " vgpvuuids vgname\n"
16134 "\n"
16135 msgstr ""
16136
16137 #. type: textblock
16138 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7632
16139 msgid ""
16140 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16141 "volumes that this volume group resides on."
16142 msgstr ""
16143
16144 #. type: textblock
16145 #: ../fish/guestfish-actions.pod:5043
16146 msgid ""
16147 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16148 "physical volumes and volume groups."
16149 msgstr ""
16150
16151 #. type: textblock
16152 #: ../fish/guestfish-actions.pod:5046
16153 msgid "See also L</vglvuuids>."
16154 msgstr "Див. також L</vglvuuids>."
16155
16156 #. type: =head2
16157 #: ../fish/guestfish-actions.pod:5048
16158 msgid "vgremove"
16159 msgstr "vgremove"
16160
16161 #. type: verbatim
16162 #: ../fish/guestfish-actions.pod:5050
16163 #, no-wrap
16164 msgid ""
16165 " vgremove vgname\n"
16166 "\n"
16167 msgstr ""
16168
16169 #. type: textblock
16170 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7652
16171 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16172 msgstr ""
16173
16174 #. type: textblock
16175 #: ../fish/guestfish-actions.pod:5054 ../src/guestfs-actions.pod:7654
16176 msgid ""
16177 "This also forcibly removes all logical volumes in the volume group (if any)."
16178 msgstr ""
16179
16180 #. type: =head2
16181 #: ../fish/guestfish-actions.pod:5057
16182 msgid "vgrename"
16183 msgstr "vgrename"
16184
16185 #. type: verbatim
16186 #: ../fish/guestfish-actions.pod:5059
16187 #, no-wrap
16188 msgid ""
16189 " vgrename volgroup newvolgroup\n"
16190 "\n"
16191 msgstr ""
16192
16193 #. type: textblock
16194 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7668
16195 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16196 msgstr ""
16197
16198 #. type: =head2
16199 #: ../fish/guestfish-actions.pod:5063
16200 msgid "vgs"
16201 msgstr "vgs"
16202
16203 #. type: verbatim
16204 #: ../fish/guestfish-actions.pod:5065
16205 #, no-wrap
16206 msgid ""
16207 " vgs\n"
16208 "\n"
16209 msgstr ""
16210 " vgs\n"
16211 "\n"
16212
16213 #. type: textblock
16214 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7679
16215 msgid ""
16216 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16217 "> command."
16218 msgstr ""
16219
16220 #. type: textblock
16221 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7682
16222 msgid ""
16223 "This returns a list of just the volume group names that were detected (eg. "
16224 "C<VolGroup00>)."
16225 msgstr ""
16226
16227 #. type: textblock
16228 #: ../fish/guestfish-actions.pod:5073
16229 msgid "See also L</vgs-full>."
16230 msgstr "Див. також L</vgs-full>."
16231
16232 #. type: =head2
16233 #: ../fish/guestfish-actions.pod:5075
16234 msgid "vgs-full"
16235 msgstr "vgs-full"
16236
16237 #. type: verbatim
16238 #: ../fish/guestfish-actions.pod:5077
16239 #, no-wrap
16240 msgid ""
16241 " vgs-full\n"
16242 "\n"
16243 msgstr ""
16244 " vgs-full\n"
16245 "\n"
16246
16247 #. type: textblock
16248 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7698
16249 msgid ""
16250 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16251 "> command.  The \"full\" version includes all fields."
16252 msgstr ""
16253
16254 #. type: =head2
16255 #: ../fish/guestfish-actions.pod:5082
16256 msgid "vgscan"
16257 msgstr "vgscan"
16258
16259 #. type: verbatim
16260 #: ../fish/guestfish-actions.pod:5084
16261 #, no-wrap
16262 msgid ""
16263 " vgscan\n"
16264 "\n"
16265 msgstr ""
16266 " vgscan\n"
16267 "\n"
16268
16269 #. type: textblock
16270 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7712
16271 msgid ""
16272 "This rescans all block devices and rebuilds the list of LVM physical "
16273 "volumes, volume groups and logical volumes."
16274 msgstr ""
16275
16276 #. type: =head2
16277 #: ../fish/guestfish-actions.pod:5089
16278 msgid "vguuid"
16279 msgstr "vguuid"
16280
16281 #. type: verbatim
16282 #: ../fish/guestfish-actions.pod:5091
16283 #, no-wrap
16284 msgid ""
16285 " vguuid vgname\n"
16286 "\n"
16287 msgstr ""
16288
16289 #. type: textblock
16290 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7725
16291 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16292 msgstr ""
16293
16294 #. type: =head2
16295 #: ../fish/guestfish-actions.pod:5095
16296 msgid "wc-c"
16297 msgstr "wc-c"
16298
16299 #. type: verbatim
16300 #: ../fish/guestfish-actions.pod:5097
16301 #, no-wrap
16302 msgid ""
16303 " wc-c path\n"
16304 "\n"
16305 msgstr ""
16306 " wc-c шлях\n"
16307 "\n"
16308
16309 #. type: textblock
16310 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7765
16311 msgid ""
16312 "This command counts the characters in a file, using the C<wc -c> external "
16313 "command."
16314 msgstr ""
16315
16316 #. type: =head2
16317 #: ../fish/guestfish-actions.pod:5102
16318 msgid "wc-l"
16319 msgstr "wc-l"
16320
16321 #. type: verbatim
16322 #: ../fish/guestfish-actions.pod:5104
16323 #, no-wrap
16324 msgid ""
16325 " wc-l path\n"
16326 "\n"
16327 msgstr ""
16328 " wc-l шлях\n"
16329 "\n"
16330
16331 #. type: textblock
16332 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7778
16333 msgid ""
16334 "This command counts the lines in a file, using the C<wc -l> external command."
16335 msgstr ""
16336
16337 #. type: =head2
16338 #: ../fish/guestfish-actions.pod:5109
16339 msgid "wc-w"
16340 msgstr "wc-w"
16341
16342 #. type: verbatim
16343 #: ../fish/guestfish-actions.pod:5111
16344 #, no-wrap
16345 msgid ""
16346 " wc-w path\n"
16347 "\n"
16348 msgstr ""
16349 " wc-w шлях\n"
16350 "\n"
16351
16352 #. type: textblock
16353 #: ../fish/guestfish-actions.pod:5113 ../src/guestfs-actions.pod:7791
16354 msgid ""
16355 "This command counts the words in a file, using the C<wc -w> external command."
16356 msgstr ""
16357
16358 #. type: =head2
16359 #: ../fish/guestfish-actions.pod:5116
16360 msgid "write"
16361 msgstr "write"
16362
16363 #. type: verbatim
16364 #: ../fish/guestfish-actions.pod:5118
16365 #, no-wrap
16366 msgid ""
16367 " write path content\n"
16368 "\n"
16369 msgstr ""
16370 " write шлях дані\n"
16371 "\n"
16372
16373 #. type: textblock
16374 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7806
16375 msgid ""
16376 "This call creates a file called C<path>.  The content of the file is the "
16377 "string C<content> (which can contain any 8 bit data)."
16378 msgstr ""
16379
16380 #. type: textblock
16381 #: ../fish/guestfish-actions.pod:5123
16382 msgid "See also L</write-append>."
16383 msgstr ""
16384
16385 #. type: =head2
16386 #: ../fish/guestfish-actions.pod:5128
16387 msgid "write-append"
16388 msgstr ""
16389
16390 #. type: verbatim
16391 #: ../fish/guestfish-actions.pod:5130
16392 #, no-wrap
16393 msgid ""
16394 " write-append path content\n"
16395 "\n"
16396 msgstr ""
16397
16398 #. type: textblock
16399 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7826
16400 msgid ""
16401 "This call appends C<content> to the end of file C<path>.  If C<path> does "
16402 "not exist, then a new file is created."
16403 msgstr ""
16404
16405 #. type: textblock
16406 #: ../fish/guestfish-actions.pod:5135
16407 msgid "See also L</write>."
16408 msgstr ""
16409
16410 #. type: =head2
16411 #: ../fish/guestfish-actions.pod:5140
16412 msgid "write-file"
16413 msgstr "write-file"
16414
16415 #. type: verbatim
16416 #: ../fish/guestfish-actions.pod:5142
16417 #, no-wrap
16418 msgid ""
16419 " write-file path content size\n"
16420 "\n"
16421 msgstr ""
16422
16423 #. type: textblock
16424 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7853
16425 msgid ""
16426 "This call creates a file called C<path>.  The contents of the file is the "
16427 "string C<content> (which can contain any 8 bit data), with length C<size>."
16428 msgstr ""
16429
16430 #. type: textblock
16431 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7857
16432 msgid ""
16433 "As a special case, if C<size> is C<0> then the length is calculated using "
16434 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16435 msgstr ""
16436
16437 #. type: textblock
16438 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7861
16439 msgid ""
16440 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16441 "I<not> work, even if the length is specified."
16442 msgstr ""
16443
16444 #. type: textblock
16445 #: ../fish/guestfish-actions.pod:5158
16446 msgid ""
16447 "I<This function is deprecated.> In new code, use the L</write> call instead."
16448 msgstr ""
16449
16450 #. type: =head2
16451 #: ../fish/guestfish-actions.pod:5165
16452 msgid "zegrep"
16453 msgstr "zegrep"
16454
16455 #. type: verbatim
16456 #: ../fish/guestfish-actions.pod:5167
16457 #, no-wrap
16458 msgid ""
16459 " zegrep regex path\n"
16460 "\n"
16461 msgstr ""
16462 " zegrep формальний_вираз шлях\n"
16463 "\n"
16464
16465 #. type: textblock
16466 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7878
16467 msgid ""
16468 "This calls the external C<zegrep> program and returns the matching lines."
16469 msgstr ""
16470
16471 #. type: =head2
16472 #: ../fish/guestfish-actions.pod:5175
16473 msgid "zegrepi"
16474 msgstr "zegrepi"
16475
16476 #. type: verbatim
16477 #: ../fish/guestfish-actions.pod:5177
16478 #, no-wrap
16479 msgid ""
16480 " zegrepi regex path\n"
16481 "\n"
16482 msgstr ""
16483
16484 #. type: textblock
16485 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7897
16486 msgid ""
16487 "This calls the external C<zegrep -i> program and returns the matching lines."
16488 msgstr ""
16489
16490 #. type: =head2
16491 #: ../fish/guestfish-actions.pod:5185
16492 msgid "zero"
16493 msgstr "zero"
16494
16495 #. type: verbatim
16496 #: ../fish/guestfish-actions.pod:5187
16497 #, no-wrap
16498 msgid ""
16499 " zero device\n"
16500 "\n"
16501 msgstr ""
16502 " zero пристрій\n"
16503 "\n"
16504
16505 #. type: textblock
16506 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7915
16507 msgid "This command writes zeroes over the first few blocks of C<device>."
16508 msgstr ""
16509
16510 #. type: textblock
16511 #: ../fish/guestfish-actions.pod:5191 ../src/guestfs-actions.pod:7917
16512 msgid ""
16513 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16514 "securely wipe the device).  It should be sufficient to remove any partition "
16515 "tables, filesystem superblocks and so on."
16516 msgstr ""
16517
16518 #. type: textblock
16519 #: ../fish/guestfish-actions.pod:5195 ../fish/guestfish-actions.pod:5210
16520 #: ../src/guestfs-actions.pod:7921 ../src/guestfs-actions.pod:7947
16521 msgid ""
16522 "If blocks are already zero, then this command avoids writing zeroes.  This "
16523 "prevents the underlying device from becoming non-sparse or growing "
16524 "unnecessarily."
16525 msgstr ""
16526
16527 #. type: textblock
16528 #: ../fish/guestfish-actions.pod:5199
16529 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16530 msgstr ""
16531
16532 #. type: =head2
16533 #: ../fish/guestfish-actions.pod:5202
16534 msgid "zero-device"
16535 msgstr "zero-device"
16536
16537 #. type: verbatim
16538 #: ../fish/guestfish-actions.pod:5204
16539 #, no-wrap
16540 msgid ""
16541 " zero-device device\n"
16542 "\n"
16543 msgstr ""
16544 " zero-device пристрій\n"
16545 "\n"
16546
16547 #. type: textblock
16548 #: ../fish/guestfish-actions.pod:5206
16549 msgid ""
16550 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16551 "which just zeroes the first few blocks of a device."
16552 msgstr ""
16553
16554 #. type: =head2
16555 #: ../fish/guestfish-actions.pod:5217
16556 msgid "zerofree"
16557 msgstr "zerofree"
16558
16559 #. type: verbatim
16560 #: ../fish/guestfish-actions.pod:5219
16561 #, no-wrap
16562 msgid ""
16563 " zerofree device\n"
16564 "\n"
16565 msgstr ""
16566 " zerofree пристрій\n"
16567 "\n"
16568
16569 #. type: textblock
16570 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:7969
16571 msgid ""
16572 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16573 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16574 "possible to compress the filesystem more effectively."
16575 msgstr ""
16576
16577 #. type: textblock
16578 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:7974
16579 msgid "You should B<not> run this program if the filesystem is mounted."
16580 msgstr ""
16581
16582 #. type: textblock
16583 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:7977
16584 msgid ""
16585 "It is possible that using this program can damage the filesystem or data on "
16586 "the filesystem."
16587 msgstr ""
16588
16589 #. type: =head2
16590 #: ../fish/guestfish-actions.pod:5232
16591 msgid "zfgrep"
16592 msgstr "zfgrep"
16593
16594 #. type: verbatim
16595 #: ../fish/guestfish-actions.pod:5234
16596 #, no-wrap
16597 msgid ""
16598 " zfgrep pattern path\n"
16599 "\n"
16600 msgstr ""
16601 " zfgrep шаблон шлях\n"
16602 "\n"
16603
16604 #. type: textblock
16605 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7991
16606 msgid ""
16607 "This calls the external C<zfgrep> program and returns the matching lines."
16608 msgstr ""
16609
16610 #. type: =head2
16611 #: ../fish/guestfish-actions.pod:5242
16612 msgid "zfgrepi"
16613 msgstr "zfgrepi"
16614
16615 #. type: verbatim
16616 #: ../fish/guestfish-actions.pod:5244
16617 #, no-wrap
16618 msgid ""
16619 " zfgrepi pattern path\n"
16620 "\n"
16621 msgstr ""
16622 " zfgrepi шаблон шлях\n"
16623 "\n"
16624
16625 #. type: textblock
16626 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8010
16627 msgid ""
16628 "This calls the external C<zfgrep -i> program and returns the matching lines."
16629 msgstr ""
16630
16631 #. type: =head2
16632 #: ../fish/guestfish-actions.pod:5252
16633 msgid "zfile"
16634 msgstr "zfile"
16635
16636 #. type: verbatim
16637 #: ../fish/guestfish-actions.pod:5254
16638 #, no-wrap
16639 msgid ""
16640 " zfile meth path\n"
16641 "\n"
16642 msgstr ""
16643 " zfile метод шлях\n"
16644 "\n"
16645
16646 #. type: textblock
16647 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8036
16648 msgid ""
16649 "This command runs C<file> after first decompressing C<path> using C<method>."
16650 msgstr ""
16651
16652 #. type: textblock
16653 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8039
16654 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16655 msgstr ""
16656
16657 #. type: textblock
16658 #: ../fish/guestfish-actions.pod:5261
16659 msgid ""
16660 "Since 1.0.63, use L</file> instead which can now process compressed files."
16661 msgstr ""
16662
16663 #. type: textblock
16664 #: ../fish/guestfish-actions.pod:5264
16665 msgid ""
16666 "I<This function is deprecated.> In new code, use the L</file> call instead."
16667 msgstr ""
16668
16669 #. type: =head2
16670 #: ../fish/guestfish-actions.pod:5271
16671 msgid "zgrep"
16672 msgstr "zgrep"
16673
16674 #. type: verbatim
16675 #: ../fish/guestfish-actions.pod:5273
16676 #, no-wrap
16677 msgid ""
16678 " zgrep regex path\n"
16679 "\n"
16680 msgstr ""
16681 " zgrep формальний_вираз шлях\n"
16682 "\n"
16683
16684 #. type: textblock
16685 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8056
16686 msgid ""
16687 "This calls the external C<zgrep> program and returns the matching lines."
16688 msgstr ""
16689
16690 #. type: =head2
16691 #: ../fish/guestfish-actions.pod:5281
16692 msgid "zgrepi"
16693 msgstr "zgrepi"
16694
16695 #. type: verbatim
16696 #: ../fish/guestfish-actions.pod:5283
16697 #, no-wrap
16698 msgid ""
16699 " zgrepi regex path\n"
16700 "\n"
16701 msgstr ""
16702 " zgrepi формальний_вираз шлях\n"
16703 "\n"
16704
16705 #. type: textblock
16706 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8075
16707 msgid ""
16708 "This calls the external C<zgrep -i> program and returns the matching lines."
16709 msgstr ""
16710
16711 #. type: =head2
16712 #: ../fish/guestfish-commands.pod:1
16713 msgid "alloc"
16714 msgstr "alloc"
16715
16716 #. type: =head2
16717 #: ../fish/guestfish-commands.pod:3
16718 msgid "allocate"
16719 msgstr ""
16720
16721 #. type: verbatim
16722 #: ../fish/guestfish-commands.pod:5
16723 #, no-wrap
16724 msgid ""
16725 " alloc filename size\n"
16726 "\n"
16727 msgstr ""
16728
16729 #. type: textblock
16730 #: ../fish/guestfish-commands.pod:7
16731 msgid ""
16732 "This creates an empty (zeroed) file of the given size, and then adds so it "
16733 "can be further examined."
16734 msgstr ""
16735
16736 #. type: textblock
16737 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16738 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16739 msgstr ""
16740
16741 #. type: textblock
16742 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16743 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16744 msgstr ""
16745
16746 #. type: textblock
16747 #: ../fish/guestfish-commands.pod:14
16748 msgid ""
16749 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16750 "image, see L</PREPARED DISK IMAGES>."
16751 msgstr ""
16752
16753 #. type: =head2
16754 #: ../fish/guestfish-commands.pod:17
16755 msgid "copy-in"
16756 msgstr "copy-in"
16757
16758 #. type: verbatim
16759 #: ../fish/guestfish-commands.pod:19
16760 #, no-wrap
16761 msgid ""
16762 " copy-in local [local ...] /remotedir\n"
16763 "\n"
16764 msgstr ""
16765
16766 #. type: textblock
16767 #: ../fish/guestfish-commands.pod:21
16768 msgid ""
16769 "C<copy-in> copies local files or directories recursively into the disk "
16770 "image, placing them in the directory called C</remotedir> (which must "
16771 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16772 "other commands as necessary."
16773 msgstr ""
16774
16775 #. type: textblock
16776 #: ../fish/guestfish-commands.pod:26
16777 msgid ""
16778 "Multiple local files and directories can be specified, but the last "
16779 "parameter must always be a remote directory.  Wildcards cannot be used."
16780 msgstr ""
16781
16782 #. type: =head2
16783 #: ../fish/guestfish-commands.pod:30
16784 msgid "copy-out"
16785 msgstr "copy-out"
16786
16787 #. type: verbatim
16788 #: ../fish/guestfish-commands.pod:32
16789 #, no-wrap
16790 msgid ""
16791 " copy-out remote [remote ...] localdir\n"
16792 "\n"
16793 msgstr ""
16794
16795 #. type: textblock
16796 #: ../fish/guestfish-commands.pod:34
16797 msgid ""
16798 "C<copy-out> copies remote files or directories recursively out of the disk "
16799 "image, placing them on the host disk in a local directory called C<localdir> "
16800 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
16801 "download>, L</tar-out> and other commands as necessary."
16802 msgstr ""
16803
16804 #. type: textblock
16805 #: ../fish/guestfish-commands.pod:40
16806 msgid ""
16807 "Multiple remote files and directories can be specified, but the last "
16808 "parameter must always be a local directory.  To download to the current "
16809 "directory, use C<.> as in:"
16810 msgstr ""
16811
16812 #. type: verbatim
16813 #: ../fish/guestfish-commands.pod:44
16814 #, no-wrap
16815 msgid ""
16816 " copy-out /home .\n"
16817 "\n"
16818 msgstr ""
16819 " copy-out /home .\n"
16820 "\n"
16821
16822 #. type: textblock
16823 #: ../fish/guestfish-commands.pod:46
16824 msgid ""
16825 "Wildcards cannot be used in the ordinary command, but you can use them with "
16826 "the help of L</glob> like this:"
16827 msgstr ""
16828
16829 #. type: verbatim
16830 #: ../fish/guestfish-commands.pod:49
16831 #, no-wrap
16832 msgid ""
16833 " glob copy-out /home/* .\n"
16834 "\n"
16835 msgstr ""
16836 " glob copy-out /home/* .\n"
16837 "\n"
16838
16839 #. type: =head2
16840 #: ../fish/guestfish-commands.pod:51
16841 msgid "display"
16842 msgstr ""
16843
16844 #. type: verbatim
16845 #: ../fish/guestfish-commands.pod:53
16846 #, no-wrap
16847 msgid ""
16848 " display filename\n"
16849 "\n"
16850 msgstr ""
16851
16852 #. type: textblock
16853 #: ../fish/guestfish-commands.pod:55
16854 msgid ""
16855 "Use C<display> (a graphical display program) to display an image file.  It "
16856 "downloads the file, and runs C<display> on it."
16857 msgstr ""
16858
16859 #. type: textblock
16860 #: ../fish/guestfish-commands.pod:58
16861 msgid ""
16862 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16863 "environment variable.  For example to use the GNOME display program:"
16864 msgstr ""
16865
16866 #. type: verbatim
16867 #: ../fish/guestfish-commands.pod:61
16868 #, no-wrap
16869 msgid ""
16870 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16871 "\n"
16872 msgstr ""
16873
16874 #. type: textblock
16875 #: ../fish/guestfish-commands.pod:63
16876 msgid "See also L<display(1)>."
16877 msgstr ""
16878
16879 #. type: =head2
16880 #: ../fish/guestfish-commands.pod:65
16881 msgid "echo"
16882 msgstr "echo"
16883
16884 #. type: verbatim
16885 #: ../fish/guestfish-commands.pod:67
16886 #, no-wrap
16887 msgid ""
16888 " echo [params ...]\n"
16889 "\n"
16890 msgstr ""
16891 " echo [параметри...]\n"
16892 "\n"
16893
16894 #. type: textblock
16895 #: ../fish/guestfish-commands.pod:69
16896 msgid "This echos the parameters to the terminal."
16897 msgstr ""
16898
16899 #. type: =head2
16900 #: ../fish/guestfish-commands.pod:71
16901 msgid "edit"
16902 msgstr "edit"
16903
16904 #. type: =head2
16905 #: ../fish/guestfish-commands.pod:73
16906 msgid "vi"
16907 msgstr "vi"
16908
16909 #. type: =head2
16910 #: ../fish/guestfish-commands.pod:75
16911 msgid "emacs"
16912 msgstr "emacs"
16913
16914 #. type: verbatim
16915 #: ../fish/guestfish-commands.pod:77
16916 #, no-wrap
16917 msgid ""
16918 " edit filename\n"
16919 "\n"
16920 msgstr ""
16921 " edit назва_файла\n"
16922 "\n"
16923
16924 #. type: textblock
16925 #: ../fish/guestfish-commands.pod:79
16926 msgid ""
16927 "This is used to edit a file.  It downloads the file, edits it locally using "
16928 "your editor, then uploads the result."
16929 msgstr ""
16930
16931 #. type: textblock
16932 #: ../fish/guestfish-commands.pod:82
16933 msgid ""
16934 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16935 "or C<emacs> you will get those corresponding editors."
16936 msgstr ""
16937
16938 #. type: =head2
16939 #: ../fish/guestfish-commands.pod:86
16940 msgid "glob"
16941 msgstr "glob"
16942
16943 #. type: verbatim
16944 #: ../fish/guestfish-commands.pod:88
16945 #, no-wrap
16946 msgid ""
16947 " glob command args...\n"
16948 "\n"
16949 msgstr ""
16950 " glob команда параметри...\n"
16951 "\n"
16952
16953 #. type: textblock
16954 #: ../fish/guestfish-commands.pod:90
16955 msgid ""
16956 "Expand wildcards in any paths in the args list, and run C<command> "
16957 "repeatedly on each matching path."
16958 msgstr ""
16959
16960 #. type: textblock
16961 #: ../fish/guestfish-commands.pod:93
16962 msgid "See L</WILDCARDS AND GLOBBING>."
16963 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16964
16965 #. type: =head2
16966 #: ../fish/guestfish-commands.pod:95
16967 msgid "hexedit"
16968 msgstr "hexedit"
16969
16970 #. type: verbatim
16971 #: ../fish/guestfish-commands.pod:97
16972 #, no-wrap
16973 msgid ""
16974 " hexedit <filename|device>\n"
16975 " hexedit <filename|device> <max>\n"
16976 " hexedit <filename|device> <start> <max>\n"
16977 "\n"
16978 msgstr ""
16979
16980 #. type: textblock
16981 #: ../fish/guestfish-commands.pod:101
16982 msgid ""
16983 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16984 "device."
16985 msgstr ""
16986
16987 #. type: textblock
16988 #: ../fish/guestfish-commands.pod:104
16989 msgid ""
16990 "This command works by downloading potentially the whole file or device, "
16991 "editing it locally, then uploading it.  If the file or device is large, you "
16992 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16993 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16994 "usual modifiers allowed such as C<1M> (1 megabyte)."
16995 msgstr ""
16996
16997 #. type: textblock
16998 #: ../fish/guestfish-commands.pod:111
16999 msgid "For example to edit the first few sectors of a disk you might do:"
17000 msgstr ""
17001
17002 #. type: verbatim
17003 #: ../fish/guestfish-commands.pod:114
17004 #, no-wrap
17005 msgid ""
17006 " hexedit /dev/sda 1M\n"
17007 "\n"
17008 msgstr ""
17009 " hexedit /dev/sda 1M\n"
17010 "\n"
17011
17012 #. type: textblock
17013 #: ../fish/guestfish-commands.pod:116
17014 msgid ""
17015 "which would allow you to edit anywhere within the first megabyte of the disk."
17016 msgstr ""
17017
17018 #. type: textblock
17019 #: ../fish/guestfish-commands.pod:119
17020 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17021 msgstr ""
17022
17023 #. type: verbatim
17024 #: ../fish/guestfish-commands.pod:121
17025 #, no-wrap
17026 msgid ""
17027 " hexedit /dev/sda1 0x400 0x400\n"
17028 "\n"
17029 msgstr ""
17030 " hexedit /dev/sda1 0x400 0x400\n"
17031 "\n"
17032
17033 #. type: textblock
17034 #: ../fish/guestfish-commands.pod:123
17035 msgid "(assuming the superblock is in the standard location)."
17036 msgstr ""
17037
17038 #. type: textblock
17039 #: ../fish/guestfish-commands.pod:125
17040 msgid ""
17041 "This command requires the external L<hexedit(1)> program.  You can specify "
17042 "another program to use by setting the C<HEXEDITOR> environment variable."
17043 msgstr ""
17044
17045 #. type: textblock
17046 #: ../fish/guestfish-commands.pod:129
17047 msgid "See also L</hexdump>."
17048 msgstr "Див. також L</hexdump>."
17049
17050 #. type: =head2
17051 #: ../fish/guestfish-commands.pod:131
17052 msgid "lcd"
17053 msgstr "lcd"
17054
17055 #. type: verbatim
17056 #: ../fish/guestfish-commands.pod:133
17057 #, no-wrap
17058 msgid ""
17059 " lcd directory\n"
17060 "\n"
17061 msgstr ""
17062
17063 #. type: textblock
17064 #: ../fish/guestfish-commands.pod:135
17065 msgid ""
17066 "Change the local directory, ie. the current directory of guestfish itself."
17067 msgstr ""
17068
17069 #. type: textblock
17070 #: ../fish/guestfish-commands.pod:138
17071 msgid "Note that C<!cd> won't do what you might expect."
17072 msgstr ""
17073
17074 #. type: =head2
17075 #: ../fish/guestfish-commands.pod:140
17076 msgid "man"
17077 msgstr "man"
17078
17079 #. type: =head2
17080 #: ../fish/guestfish-commands.pod:142
17081 msgid "manual"
17082 msgstr ""
17083
17084 #. type: verbatim
17085 #: ../fish/guestfish-commands.pod:144
17086 #, no-wrap
17087 msgid ""
17088 "  man\n"
17089 "\n"
17090 msgstr ""
17091 "  man\n"
17092 "\n"
17093
17094 #. type: textblock
17095 #: ../fish/guestfish-commands.pod:146
17096 msgid "Opens the manual page for guestfish."
17097 msgstr ""
17098
17099 #. type: =head2
17100 #: ../fish/guestfish-commands.pod:148
17101 msgid "more"
17102 msgstr "more"
17103
17104 #. type: =head2
17105 #: ../fish/guestfish-commands.pod:150
17106 msgid "less"
17107 msgstr "less"
17108
17109 #. type: verbatim
17110 #: ../fish/guestfish-commands.pod:152
17111 #, no-wrap
17112 msgid ""
17113 " more filename\n"
17114 "\n"
17115 msgstr ""
17116
17117 #. type: verbatim
17118 #: ../fish/guestfish-commands.pod:154
17119 #, no-wrap
17120 msgid ""
17121 " less filename\n"
17122 "\n"
17123 msgstr ""
17124
17125 #. type: textblock
17126 #: ../fish/guestfish-commands.pod:156
17127 msgid "This is used to view a file."
17128 msgstr ""
17129
17130 #. type: textblock
17131 #: ../fish/guestfish-commands.pod:158
17132 msgid ""
17133 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17134 "C<less> you will get the C<less> command specifically."
17135 msgstr ""
17136
17137 #. type: =head2
17138 #: ../fish/guestfish-commands.pod:161
17139 msgid "reopen"
17140 msgstr "reopen"
17141
17142 #. type: verbatim
17143 #: ../fish/guestfish-commands.pod:163
17144 #, no-wrap
17145 msgid ""
17146 "  reopen\n"
17147 "\n"
17148 msgstr ""
17149
17150 #. type: textblock
17151 #: ../fish/guestfish-commands.pod:165
17152 msgid ""
17153 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17154 "normally, because the handle is closed properly when guestfish exits.  "
17155 "However this is occasionally useful for testing."
17156 msgstr ""
17157
17158 #. type: =head2
17159 #: ../fish/guestfish-commands.pod:169
17160 msgid "setenv"
17161 msgstr ""
17162
17163 #. type: verbatim
17164 #: ../fish/guestfish-commands.pod:171
17165 #, no-wrap
17166 msgid ""
17167 "  setenv VAR value\n"
17168 "\n"
17169 msgstr ""
17170
17171 #. type: textblock
17172 #: ../fish/guestfish-commands.pod:173
17173 msgid "Set the environment variable C<VAR> to the string C<value>."
17174 msgstr ""
17175
17176 #. type: textblock
17177 #: ../fish/guestfish-commands.pod:175
17178 msgid ""
17179 "To print the value of an environment variable use a shell command such as:"
17180 msgstr ""
17181
17182 #. type: verbatim
17183 #: ../fish/guestfish-commands.pod:178
17184 #, no-wrap
17185 msgid ""
17186 " !echo $VAR\n"
17187 "\n"
17188 msgstr ""
17189
17190 #. type: =head2
17191 #: ../fish/guestfish-commands.pod:180
17192 msgid "sparse"
17193 msgstr "sparse"
17194
17195 #. type: verbatim
17196 #: ../fish/guestfish-commands.pod:182
17197 #, no-wrap
17198 msgid ""
17199 " sparse filename size\n"
17200 "\n"
17201 msgstr ""
17202
17203 #. type: textblock
17204 #: ../fish/guestfish-commands.pod:184
17205 msgid ""
17206 "This creates an empty sparse file of the given size, and then adds so it can "
17207 "be further examined."
17208 msgstr ""
17209
17210 #. type: textblock
17211 #: ../fish/guestfish-commands.pod:187
17212 msgid ""
17213 "In all respects it works the same as the L</alloc> command, except that the "
17214 "image file is allocated sparsely, which means that disk blocks are not "
17215 "assigned to the file until they are needed.  Sparse disk files only use "
17216 "space when written to, but they are slower and there is a danger you could "
17217 "run out of real disk space during a write operation."
17218 msgstr ""
17219
17220 #. type: =head2
17221 #: ../fish/guestfish-commands.pod:197
17222 msgid "supported"
17223 msgstr "supported"
17224
17225 #. type: verbatim
17226 #: ../fish/guestfish-commands.pod:199
17227 #, no-wrap
17228 msgid ""
17229 " supported\n"
17230 "\n"
17231 msgstr ""
17232 " supported\n"
17233 "\n"
17234
17235 #. type: textblock
17236 #: ../fish/guestfish-commands.pod:201
17237 msgid ""
17238 "This command returns a list of the optional groups known to the daemon, and "
17239 "indicates which ones are supported by this build of the libguestfs appliance."
17240 msgstr ""
17241
17242 #. type: textblock
17243 #: ../fish/guestfish-commands.pod:205
17244 msgid "See also L<guestfs(3)/AVAILABILITY>."
17245 msgstr ""
17246
17247 #. type: =head2
17248 #: ../fish/guestfish-commands.pod:207
17249 msgid "time"
17250 msgstr "time"
17251
17252 #. type: verbatim
17253 #: ../fish/guestfish-commands.pod:209
17254 #, no-wrap
17255 msgid ""
17256 " time command args...\n"
17257 "\n"
17258 msgstr ""
17259
17260 #. type: textblock
17261 #: ../fish/guestfish-commands.pod:211
17262 msgid ""
17263 "Run the command as usual, but print the elapsed time afterwards.  This can "
17264 "be useful for benchmarking operations."
17265 msgstr ""
17266
17267 #. type: =head2
17268 #: ../fish/guestfish-commands.pod:214
17269 msgid "unsetenv"
17270 msgstr ""
17271
17272 #. type: verbatim
17273 #: ../fish/guestfish-commands.pod:216
17274 #, no-wrap
17275 msgid ""
17276 "  unsetenv VAR\n"
17277 "\n"
17278 msgstr ""
17279
17280 #. type: textblock
17281 #: ../fish/guestfish-commands.pod:218
17282 msgid "Remove C<VAR> from the environment."
17283 msgstr ""
17284
17285 #. type: textblock
17286 #: ../fish/guestfish.pod:5
17287 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17288 msgstr ""
17289
17290 #. type: verbatim
17291 #: ../fish/guestfish.pod:9
17292 #, no-wrap
17293 msgid ""
17294 " guestfish [--options] [commands]\n"
17295 "\n"
17296 msgstr ""
17297
17298 #. type: verbatim
17299 #: ../fish/guestfish.pod:11
17300 #, no-wrap
17301 msgid ""
17302 " guestfish\n"
17303 "\n"
17304 msgstr ""
17305
17306 #. type: verbatim
17307 #: ../fish/guestfish.pod:13
17308 #, no-wrap
17309 msgid ""
17310 " guestfish [--ro|--rw] -a disk.img\n"
17311 "\n"
17312 msgstr ""
17313
17314 #. type: verbatim
17315 #: ../fish/guestfish.pod:15
17316 #, no-wrap
17317 msgid ""
17318 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17319 "\n"
17320 msgstr ""
17321
17322 #. type: verbatim
17323 #: ../fish/guestfish.pod:17
17324 #, no-wrap
17325 msgid ""
17326 " guestfish -d libvirt-domain\n"
17327 "\n"
17328 msgstr ""
17329
17330 #. type: verbatim
17331 #: ../fish/guestfish.pod:19
17332 #, no-wrap
17333 msgid ""
17334 " guestfish [--ro|--rw] -a disk.img -i\n"
17335 "\n"
17336 msgstr ""
17337
17338 #. type: verbatim
17339 #: ../fish/guestfish.pod:21
17340 #, no-wrap
17341 msgid ""
17342 " guestfish -d libvirt-domain -i\n"
17343 "\n"
17344 msgstr ""
17345
17346 #. type: textblock
17347 #: ../fish/guestfish.pod:25
17348 msgid ""
17349 "Using guestfish in read/write mode on live virtual machines can be "
17350 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17351 "option to use guestfish safely if the disk image or virtual machine might be "
17352 "live."
17353 msgstr ""
17354
17355 #. type: textblock
17356 #: ../fish/guestfish.pod:32
17357 msgid ""
17358 "Guestfish is a shell and command-line tool for examining and modifying "
17359 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17360 "functionality of the guestfs API, see L<guestfs(3)>."
17361 msgstr ""
17362
17363 #. type: textblock
17364 #: ../fish/guestfish.pod:36
17365 msgid ""
17366 "Guestfish gives you structured access to the libguestfs API, from shell "
17367 "scripts or the command line or interactively.  If you want to rescue a "
17368 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17369 "command."
17370 msgstr ""
17371
17372 #. type: =head2
17373 #: ../fish/guestfish.pod:43
17374 msgid "As an interactive shell"
17375 msgstr ""
17376
17377 #. type: verbatim
17378 #: ../fish/guestfish.pod:45
17379 #, no-wrap
17380 msgid ""
17381 " $ guestfish\n"
17382 " \n"
17383 msgstr ""
17384
17385 #. type: verbatim
17386 #: ../fish/guestfish.pod:47
17387 #, no-wrap
17388 msgid ""
17389 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17390 " editing virtual machine filesystems.\n"
17391 " \n"
17392 msgstr ""
17393
17394 #. type: verbatim
17395 #: ../fish/guestfish.pod:50
17396 #, no-wrap
17397 msgid ""
17398 " Type: 'help' for a list of commands\n"
17399 "       'man' to read the manual\n"
17400 "       'quit' to quit the shell\n"
17401 " \n"
17402 msgstr ""
17403
17404 #. type: verbatim
17405 #: ../fish/guestfish.pod:54
17406 #, no-wrap
17407 msgid ""
17408 " ><fs> add-ro disk.img\n"
17409 " ><fs> run\n"
17410 " ><fs> list-filesystems\n"
17411 " /dev/sda1: ext4\n"
17412 " /dev/vg_guest/lv_root: ext4\n"
17413 " /dev/vg_guest/lv_swap: swap\n"
17414 " ><fs> mount /dev/vg_guest/lv_root /\n"
17415 " ><fs> cat /etc/fstab\n"
17416 " # /etc/fstab\n"
17417 " # Created by anaconda\n"
17418 " [...]\n"
17419 " ><fs> exit\n"
17420 "\n"
17421 msgstr ""
17422
17423 #. type: =head2
17424 #: ../fish/guestfish.pod:67
17425 msgid "From shell scripts"
17426 msgstr ""
17427
17428 #. type: textblock
17429 #: ../fish/guestfish.pod:69
17430 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17431 msgstr ""
17432
17433 #. type: verbatim
17434 #: ../fish/guestfish.pod:71
17435 #, no-wrap
17436 msgid ""
17437 " guestfish <<_EOF_\n"
17438 " add disk.img\n"
17439 " run\n"
17440 " mount /dev/vg_guest/lv_root /\n"
17441 " write /etc/motd \"Welcome, new users\"\n"
17442 " _EOF_\n"
17443 "\n"
17444 msgstr ""
17445
17446 #. type: textblock
17447 #: ../fish/guestfish.pod:78
17448 msgid "List the LVM logical volumes in a disk image:"
17449 msgstr ""
17450
17451 #. type: verbatim
17452 #: ../fish/guestfish.pod:80
17453 #, no-wrap
17454 msgid ""
17455 " guestfish -a disk.img --ro <<_EOF_\n"
17456 " run\n"
17457 " lvs\n"
17458 " _EOF_\n"
17459 "\n"
17460 msgstr ""
17461
17462 #. type: textblock
17463 #: ../fish/guestfish.pod:85
17464 msgid "List all the filesystems in a disk image:"
17465 msgstr ""
17466
17467 #. type: verbatim
17468 #: ../fish/guestfish.pod:87
17469 #, no-wrap
17470 msgid ""
17471 " guestfish -a disk.img --ro <<_EOF_\n"
17472 " run\n"
17473 " list-filesystems\n"
17474 " _EOF_\n"
17475 "\n"
17476 msgstr ""
17477
17478 #. type: =head2
17479 #: ../fish/guestfish.pod:92
17480 msgid "On one command line"
17481 msgstr ""
17482
17483 #. type: textblock
17484 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17485 msgid "Update C</etc/resolv.conf> in a guest:"
17486 msgstr ""
17487
17488 #. type: verbatim
17489 #: ../fish/guestfish.pod:96
17490 #, no-wrap
17491 msgid ""
17492 " guestfish \\\n"
17493 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17494 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17495 "\n"
17496 msgstr ""
17497
17498 #. type: textblock
17499 #: ../fish/guestfish.pod:100
17500 msgid "Edit C</boot/grub/grub.conf> interactively:"
17501 msgstr ""
17502
17503 #. type: verbatim
17504 #: ../fish/guestfish.pod:102
17505 #, no-wrap
17506 msgid ""
17507 " guestfish --rw --add disk.img \\\n"
17508 "   --mount /dev/vg_guest/lv_root \\\n"
17509 "   --mount /dev/sda1:/boot \\\n"
17510 "   edit /boot/grub/grub.conf\n"
17511 "\n"
17512 msgstr ""
17513
17514 #. type: =head2
17515 #: ../fish/guestfish.pod:107
17516 msgid "Mount disks automatically"
17517 msgstr ""
17518
17519 #. type: textblock
17520 #: ../fish/guestfish.pod:109
17521 msgid ""
17522 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17523 msgstr ""
17524
17525 #. type: verbatim
17526 #: ../fish/guestfish.pod:112
17527 #, no-wrap
17528 msgid ""
17529 " guestfish --ro -a disk.img -i cat /etc/group\n"
17530 "\n"
17531 msgstr ""
17532
17533 #. type: verbatim
17534 #: ../fish/guestfish.pod:114
17535 #, no-wrap
17536 msgid ""
17537 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17538 "\n"
17539 msgstr ""
17540
17541 #. type: textblock
17542 #: ../fish/guestfish.pod:116
17543 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17544 msgstr ""
17545
17546 #. type: verbatim
17547 #: ../fish/guestfish.pod:118
17548 #, no-wrap
17549 msgid ""
17550 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17551 "\n"
17552 msgstr ""
17553
17554 #. type: =head2
17555 #: ../fish/guestfish.pod:120
17556 msgid "As a script interpreter"
17557 msgstr ""
17558
17559 #. type: textblock
17560 #: ../fish/guestfish.pod:122
17561 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17562 msgstr ""
17563
17564 #. type: verbatim
17565 #: ../fish/guestfish.pod:124
17566 #, no-wrap
17567 msgid ""
17568 " #!/usr/bin/guestfish -f\n"
17569 " sparse test1.img 100M\n"
17570 " run\n"
17571 " part-disk /dev/sda mbr\n"
17572 " mkfs ext2 /dev/sda1\n"
17573 "\n"
17574 msgstr ""
17575
17576 #. type: =head2
17577 #: ../fish/guestfish.pod:130
17578 msgid "Start with a prepared disk"
17579 msgstr ""
17580
17581 #. type: textblock
17582 #: ../fish/guestfish.pod:132
17583 msgid ""
17584 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17585 "single ext2-formatted partition:"
17586 msgstr ""
17587
17588 #. type: verbatim
17589 #: ../fish/guestfish.pod:135
17590 #, no-wrap
17591 msgid ""
17592 " guestfish -N fs\n"
17593 "\n"
17594 msgstr ""
17595
17596 #. type: textblock
17597 #: ../fish/guestfish.pod:137
17598 msgid "To list what is available do:"
17599 msgstr ""
17600
17601 #. type: verbatim
17602 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17603 #, no-wrap
17604 msgid ""
17605 " guestfish -N help | less\n"
17606 "\n"
17607 msgstr ""
17608
17609 #. type: =head2
17610 #: ../fish/guestfish.pod:141
17611 msgid "Remote control"
17612 msgstr "Дистанційне керування"
17613
17614 #. type: verbatim
17615 #: ../fish/guestfish.pod:143
17616 #, no-wrap
17617 msgid ""
17618 " eval \"`guestfish --listen`\"\n"
17619 " guestfish --remote add-ro disk.img\n"
17620 " guestfish --remote run\n"
17621 " guestfish --remote lvs\n"
17622 "\n"
17623 msgstr ""
17624 " eval \"`guestfish --listen`\"\n"
17625 " guestfish --remote add-ro disk.img\n"
17626 " guestfish --remote run\n"
17627 " guestfish --remote lvs\n"
17628 "\n"
17629
17630 #. type: textblock
17631 #: ../fish/guestfish.pod:154
17632 msgid "Displays general help on options."
17633 msgstr ""
17634
17635 #. type: =item
17636 #: ../fish/guestfish.pod:158
17637 msgid "B<--cmd-help>"
17638 msgstr "B<--cmd-help>"
17639
17640 #. type: textblock
17641 #: ../fish/guestfish.pod:160
17642 msgid "Lists all available guestfish commands."
17643 msgstr ""
17644
17645 #. type: =item
17646 #: ../fish/guestfish.pod:162
17647 msgid "B<-h cmd>"
17648 msgstr "B<-h команда>"
17649
17650 #. type: =item
17651 #: ../fish/guestfish.pod:164
17652 msgid "B<--cmd-help cmd>"
17653 msgstr "B<--cmd-help команда>"
17654
17655 #. type: textblock
17656 #: ../fish/guestfish.pod:166
17657 msgid "Displays detailed help on a single command C<cmd>."
17658 msgstr ""
17659
17660 #. type: =item
17661 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17662 msgid "B<-a image>"
17663 msgstr "B<-a образ>"
17664
17665 #. type: =item
17666 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17667 msgid "B<--add image>"
17668 msgstr "B<--add образ>"
17669
17670 #. type: textblock
17671 #: ../fish/guestfish.pod:172
17672 msgid "Add a block device or virtual machine image to the shell."
17673 msgstr ""
17674
17675 #. type: textblock
17676 #: ../fish/guestfish.pod:177
17677 msgid ""
17678 "Using this flag is mostly equivalent to using the C<add> command, with "
17679 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17680 "the I<--format=...> flag was given."
17681 msgstr ""
17682
17683 #. type: textblock
17684 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17685 msgid ""
17686 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17687 "URI to use.  The default is to use the default libvirt connection."
17688 msgstr ""
17689
17690 #. type: =item
17691 #: ../fish/guestfish.pod:189
17692 msgid "B<--csh>"
17693 msgstr "B<--csh>"
17694
17695 #. type: textblock
17696 #: ../fish/guestfish.pod:191
17697 msgid ""
17698 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17699 "section L</REMOTE CONTROL AND CSH> below."
17700 msgstr ""
17701
17702 #. type: =item
17703 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17704 msgid "B<-d libvirt-domain>"
17705 msgstr "B<-d домен-libvirt>"
17706
17707 #. type: =item
17708 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17709 msgid "B<--domain libvirt-domain>"
17710 msgstr "B<--domain домен-libvirt>"
17711
17712 #. type: textblock
17713 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17714 msgid ""
17715 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17716 "used, then any libvirt domain can be used.  However in write mode, only "
17717 "libvirt domains which are shut down can be named here."
17718 msgstr ""
17719
17720 #. type: textblock
17721 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17722 msgid "Domain UUIDs can be used instead of names."
17723 msgstr ""
17724
17725 #. type: textblock
17726 #: ../fish/guestfish.pod:204
17727 msgid ""
17728 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17729 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17730 "if the I<--format:...> flag was given."
17731 msgstr ""
17732
17733 #. type: =item
17734 #: ../fish/guestfish.pod:208
17735 msgid "B<-D>"
17736 msgstr "B<-D>"
17737
17738 #. type: =item
17739 #: ../fish/guestfish.pod:210
17740 msgid "B<--no-dest-paths>"
17741 msgstr "B<--no-dest-paths>"
17742
17743 #. type: textblock
17744 #: ../fish/guestfish.pod:212
17745 msgid ""
17746 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17747 "to hit the tab key to complete paths on the guest filesystem, but this "
17748 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17749 "allow this feature to be disabled."
17750 msgstr ""
17751
17752 #. type: textblock
17753 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17754 msgid ""
17755 "When prompting for keys and passphrases, guestfish normally turns echoing "
17756 "off so you cannot see what you are typing.  If you are not worried about "
17757 "Tempest attacks and there is no one else in the room you can specify this "
17758 "flag to see what you are typing."
17759 msgstr ""
17760
17761 #. type: =item
17762 #: ../fish/guestfish.pod:224
17763 msgid "B<-f file>"
17764 msgstr "B<-f файл>"
17765
17766 #. type: =item
17767 #: ../fish/guestfish.pod:226
17768 msgid "B<--file file>"
17769 msgstr "B<--file файл>"
17770
17771 #. type: textblock
17772 #: ../fish/guestfish.pod:228
17773 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17774 msgstr ""
17775
17776 #. type: verbatim
17777 #: ../fish/guestfish.pod:231
17778 #, no-wrap
17779 msgid ""
17780 " #!/usr/bin/guestfish -f\n"
17781 "\n"
17782 msgstr ""
17783 " #!/usr/bin/guestfish -f\n"
17784 "\n"
17785
17786 #. type: verbatim
17787 #: ../fish/guestfish.pod:244
17788 #, no-wrap
17789 msgid ""
17790 " guestfish --format=raw -a disk.img\n"
17791 "\n"
17792 msgstr ""
17793 " guestfish --format=raw -a disk.img\n"
17794 "\n"
17795
17796 #. type: verbatim
17797 #: ../fish/guestfish.pod:248
17798 #, no-wrap
17799 msgid ""
17800 " guestfish --format=raw -a disk.img --format -a another.img\n"
17801 "\n"
17802 msgstr ""
17803 " guestfish --format=raw -a disk.img --format -a another.img\n"
17804 "\n"
17805
17806 #. type: textblock
17807 #: ../fish/guestfish.pod:253
17808 msgid ""
17809 "If you have untrusted raw-format guest disk images, you should use this "
17810 "option to specify the disk format.  This avoids a possible security problem "
17811 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17812 msgstr ""
17813
17814 #. type: =item
17815 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17816 msgid "B<--inspector>"
17817 msgstr "B<--inspector>"
17818
17819 #. type: textblock
17820 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17821 msgid ""
17822 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17823 "system and mount filesystems as they would be mounted on the real virtual "
17824 "machine."
17825 msgstr ""
17826
17827 #. type: textblock
17828 #: ../fish/guestfish.pod:266
17829 msgid "Typical usage is either:"
17830 msgstr ""
17831
17832 #. type: verbatim
17833 #: ../fish/guestfish.pod:268
17834 #, no-wrap
17835 msgid ""
17836 " guestfish -d myguest -i\n"
17837 "\n"
17838 msgstr ""
17839 " guestfish -d myguest -i\n"
17840 "\n"
17841
17842 #. type: textblock
17843 #: ../fish/guestfish.pod:270
17844 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17845 msgstr ""
17846
17847 #. type: verbatim
17848 #: ../fish/guestfish.pod:272
17849 #, no-wrap
17850 msgid ""
17851 " guestfish --ro -d myguest -i\n"
17852 "\n"
17853 msgstr ""
17854 " guestfish --ro -d myguest -i\n"
17855 "\n"
17856
17857 #. type: textblock
17858 #: ../fish/guestfish.pod:274
17859 msgid "(for active domains, readonly), or specify the block device directly:"
17860 msgstr ""
17861
17862 #. type: verbatim
17863 #: ../fish/guestfish.pod:276
17864 #, no-wrap
17865 msgid ""
17866 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17867 "\n"
17868 msgstr ""
17869 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17870 "\n"
17871
17872 #. type: textblock
17873 #: ../fish/guestfish.pod:278
17874 msgid ""
17875 "Note that the command line syntax changed slightly over older versions of "
17876 "guestfish.  You can still use the old syntax:"
17877 msgstr ""
17878
17879 #. type: verbatim
17880 #: ../fish/guestfish.pod:281
17881 #, no-wrap
17882 msgid ""
17883 " guestfish [--ro] -i disk.img\n"
17884 "\n"
17885 msgstr ""
17886 " guestfish [--ro] -i disk.img\n"
17887 "\n"
17888
17889 #. type: verbatim
17890 #: ../fish/guestfish.pod:283
17891 #, no-wrap
17892 msgid ""
17893 " guestfish [--ro] -i libvirt-domain\n"
17894 "\n"
17895 msgstr ""
17896
17897 #. type: textblock
17898 #: ../fish/guestfish.pod:285
17899 msgid ""
17900 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17901 "then using other commands to mount the filesystems that were found."
17902 msgstr ""
17903
17904 #. type: =item
17905 #: ../fish/guestfish.pod:294
17906 msgid "B<--listen>"
17907 msgstr "B<--listen>"
17908
17909 #. type: textblock
17910 #: ../fish/guestfish.pod:296
17911 msgid ""
17912 "Fork into the background and listen for remote commands.  See section L</"
17913 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17914 msgstr ""
17915
17916 #. type: =item
17917 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17918 msgid "B<--live>"
17919 msgstr "B<--live>"
17920
17921 #. type: textblock
17922 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17923 msgid ""
17924 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
17925 "ATTACHING TO RUNNING DAEMONS>)."
17926 msgstr ""
17927
17928 #. type: =item
17929 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17930 msgid "B<-m dev[:mountpoint[:options]]>"
17931 msgstr ""
17932
17933 #. type: =item
17934 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17935 msgid "B<--mount dev[:mountpoint[:options]]>"
17936 msgstr ""
17937
17938 #. type: textblock
17939 #: ../fish/guestfish.pod:308
17940 msgid "Mount the named partition or logical volume on the given mountpoint."
17941 msgstr ""
17942
17943 #. type: textblock
17944 #: ../fish/guestfish.pod:310
17945 msgid "If the mountpoint is omitted, it defaults to C</>."
17946 msgstr ""
17947
17948 #. type: textblock
17949 #: ../fish/guestfish.pod:312
17950 msgid "You have to mount something on C</> before most commands will work."
17951 msgstr ""
17952
17953 #. type: textblock
17954 #: ../fish/guestfish.pod:314
17955 msgid ""
17956 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17957 "launched."
17958 msgstr ""
17959
17960 #. type: textblock
17961 #: ../fish/guestfish.pod:317
17962 msgid ""
17963 "If you don't know what filesystems a disk image contains, you can either run "
17964 "guestfish without this option, then list the partitions, filesystems and LVs "
17965 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17966 "commands), or you can use the L<virt-filesystems(1)> program."
17967 msgstr ""
17968
17969 #. type: textblock
17970 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17971 msgid ""
17972 "The third (and rarely used) part of the mount parameter is the list of mount "
17973 "options used to mount the underlying filesystem.  If this is not given, then "
17974 "the mount options are either the empty string or C<ro> (the latter if the "
17975 "I<--ro> flag is used).  By specifying the mount options, you override this "
17976 "default choice.  Probably the only time you would use this is to enable ACLs "
17977 "and/or extended attributes if the filesystem can support them:"
17978 msgstr ""
17979
17980 #. type: verbatim
17981 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17982 #, no-wrap
17983 msgid ""
17984 " -m /dev/sda1:/:acl,user_xattr\n"
17985 "\n"
17986 msgstr ""
17987
17988 #. type: textblock
17989 #: ../fish/guestfish.pod:333
17990 msgid "Using this flag is equivalent to using the C<mount-options> command."
17991 msgstr ""
17992
17993 #. type: =item
17994 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17995 #: ../resize/virt-resize.pod:358
17996 msgid "B<-n>"
17997 msgstr "B<-n>"
17998
17999 #. type: =item
18000 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
18001 msgid "B<--no-sync>"
18002 msgstr "B<--no-sync>"
18003
18004 #. type: textblock
18005 #: ../fish/guestfish.pod:339
18006 msgid ""
18007 "Disable autosync.  This is enabled by default.  See the discussion of "
18008 "autosync in the L<guestfs(3)> manpage."
18009 msgstr ""
18010
18011 #. type: =item
18012 #: ../fish/guestfish.pod:342
18013 msgid "B<-N type>"
18014 msgstr "B<-N тип>"
18015
18016 #. type: =item
18017 #: ../fish/guestfish.pod:344
18018 msgid "B<--new type>"
18019 msgstr "B<--new тип>"
18020
18021 #. type: =item
18022 #: ../fish/guestfish.pod:346
18023 msgid "B<-N help>"
18024 msgstr "B<-N help>"
18025
18026 #. type: textblock
18027 #: ../fish/guestfish.pod:348
18028 msgid ""
18029 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
18030 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18031 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18032 "IMAGES> below."
18033 msgstr ""
18034
18035 #. type: =item
18036 #: ../fish/guestfish.pod:353
18037 msgid "B<--progress-bars>"
18038 msgstr "B<--progress-bars>"
18039
18040 #. type: textblock
18041 #: ../fish/guestfish.pod:355
18042 msgid "Enable progress bars, even when guestfish is used non-interactively."
18043 msgstr ""
18044
18045 #. type: textblock
18046 #: ../fish/guestfish.pod:357
18047 msgid ""
18048 "Progress bars are enabled by default when guestfish is used as an "
18049 "interactive shell."
18050 msgstr ""
18051
18052 #. type: =item
18053 #: ../fish/guestfish.pod:360
18054 msgid "B<--no-progress-bars>"
18055 msgstr "B<--no-progress-bars>"
18056
18057 #. type: textblock
18058 #: ../fish/guestfish.pod:362
18059 msgid "Disable progress bars."
18060 msgstr ""
18061
18062 #. type: =item
18063 #: ../fish/guestfish.pod:364
18064 msgid "B<--remote[=pid]>"
18065 msgstr "B<--remote[=pid]>"
18066
18067 #. type: textblock
18068 #: ../fish/guestfish.pod:366
18069 msgid ""
18070 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18071 "CONTROL GUESTFISH OVER A SOCKET> below."
18072 msgstr ""
18073
18074 #. type: =item
18075 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
18076 #: ../rescue/virt-rescue.pod:161
18077 msgid "B<-r>"
18078 msgstr "B<-r>"
18079
18080 #. type: =item
18081 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
18082 #: ../rescue/virt-rescue.pod:163
18083 msgid "B<--ro>"
18084 msgstr "B<--ro>"
18085
18086 #. type: textblock
18087 #: ../fish/guestfish.pod:373
18088 msgid ""
18089 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18090 "mounts are done read-only."
18091 msgstr ""
18092
18093 #. type: textblock
18094 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18095 msgid ""
18096 "The option must always be used if the disk image or virtual machine might be "
18097 "running, and is generally recommended in cases where you don't need write "
18098 "access to the disk."
18099 msgstr ""
18100
18101 #. type: textblock
18102 #: ../fish/guestfish.pod:380
18103 msgid ""
18104 "Note that prepared disk images created with I<-N> are not affected by this "
18105 "option.  Also commands like C<add> are not affected - you have to specify "
18106 "the C<readonly:true> option explicitly if you need it."
18107 msgstr ""
18108
18109 #. type: textblock
18110 #: ../fish/guestfish.pod:384
18111 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18112 msgstr ""
18113
18114 #. type: =item
18115 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
18116 #: ../rescue/virt-rescue.pod:173
18117 msgid "B<--selinux>"
18118 msgstr "B<--selinux>"
18119
18120 #. type: textblock
18121 #: ../fish/guestfish.pod:388
18122 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18123 msgstr ""
18124
18125 #. type: textblock
18126 #: ../fish/guestfish.pod:394
18127 msgid ""
18128 "Enable very verbose messages.  This is particularly useful if you find a bug."
18129 msgstr ""
18130
18131 #. type: textblock
18132 #: ../fish/guestfish.pod:401
18133 msgid "Display the guestfish / libguestfs version number and exit."
18134 msgstr ""
18135
18136 #. type: =item
18137 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
18138 #: ../rescue/virt-rescue.pod:194
18139 msgid "B<-w>"
18140 msgstr "B<-w>"
18141
18142 #. type: =item
18143 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
18144 #: ../rescue/virt-rescue.pod:196
18145 msgid "B<--rw>"
18146 msgstr "B<--rw>"
18147
18148 #. type: textblock
18149 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
18150 msgid ""
18151 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18152 "mounts are done read-write."
18153 msgstr ""
18154
18155 #. type: textblock
18156 #: ../fish/guestfish.pod:410
18157 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18158 msgstr ""
18159
18160 #. type: textblock
18161 #: ../fish/guestfish.pod:414
18162 msgid "Echo each command before executing it."
18163 msgstr ""
18164
18165 #. type: =head1
18166 #: ../fish/guestfish.pod:418
18167 msgid "COMMANDS ON COMMAND LINE"
18168 msgstr ""
18169
18170 #. type: textblock
18171 #: ../fish/guestfish.pod:420
18172 msgid ""
18173 "Any additional (non-option) arguments are treated as commands to execute."
18174 msgstr ""
18175
18176 #. type: textblock
18177 #: ../fish/guestfish.pod:423
18178 msgid ""
18179 "Commands to execute should be separated by a colon (C<:>), where the colon "
18180 "is a separate parameter.  Thus:"
18181 msgstr ""
18182
18183 #. type: verbatim
18184 #: ../fish/guestfish.pod:426
18185 #, no-wrap
18186 msgid ""
18187 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18188 "\n"
18189 msgstr ""
18190
18191 #. type: textblock
18192 #: ../fish/guestfish.pod:428
18193 msgid ""
18194 "If there are no additional arguments, then we enter a shell, either an "
18195 "interactive shell with a prompt (if the input is a terminal) or a non-"
18196 "interactive shell."
18197 msgstr ""
18198
18199 #. type: textblock
18200 #: ../fish/guestfish.pod:432
18201 msgid ""
18202 "In either command line mode or non-interactive shell, the first command that "
18203 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18204 "prompt) if a command fails, you can continue to enter commands."
18205 msgstr ""
18206
18207 #. type: =head1
18208 #: ../fish/guestfish.pod:437
18209 msgid "USING launch (OR run)"
18210 msgstr ""
18211
18212 #. type: textblock
18213 #: ../fish/guestfish.pod:439
18214 msgid ""
18215 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18216 "then launch it, then mount any disks you need, and finally issue actions/"
18217 "commands.  So the general order of the day is:"
18218 msgstr ""
18219
18220 #. type: textblock
18221 #: ../fish/guestfish.pod:447
18222 msgid "add or -a/--add"
18223 msgstr ""
18224
18225 #. type: textblock
18226 #: ../fish/guestfish.pod:451
18227 msgid "launch (aka run)"
18228 msgstr ""
18229
18230 #. type: textblock
18231 #: ../fish/guestfish.pod:455
18232 msgid "mount or -m/--mount"
18233 msgstr ""
18234
18235 #. type: textblock
18236 #: ../fish/guestfish.pod:459
18237 msgid "any other commands"
18238 msgstr ""
18239
18240 #. type: textblock
18241 #: ../fish/guestfish.pod:463
18242 msgid ""
18243 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18244 "guest before mounting or performing any other commands."
18245 msgstr ""
18246
18247 #. type: textblock
18248 #: ../fish/guestfish.pod:466
18249 msgid ""
18250 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18251 "I<--new> options were given then C<run> is done automatically, simply "
18252 "because guestfish can't perform the action you asked for without doing this."
18253 msgstr ""
18254
18255 #. type: =head1
18256 #: ../fish/guestfish.pod:471
18257 msgid "OPENING DISKS FOR READ AND WRITE"
18258 msgstr ""
18259
18260 #. type: textblock
18261 #: ../fish/guestfish.pod:473
18262 msgid ""
18263 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18264 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18265 "I<-i> and I<-m> open disk images read-only or for writing."
18266 msgstr ""
18267
18268 #. type: textblock
18269 #: ../fish/guestfish.pod:478
18270 msgid ""
18271 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18272 "opening disk images supplied on the command line for write.  To open a disk "
18273 "image read-only you have to do I<-a image --ro>."
18274 msgstr ""
18275
18276 #. type: textblock
18277 #: ../fish/guestfish.pod:482
18278 msgid ""
18279 "This matters: If you accidentally open a live VM disk image writable then "
18280 "you will cause irreversible disk corruption."
18281 msgstr ""
18282
18283 #. type: textblock
18284 #: ../fish/guestfish.pod:485
18285 msgid ""
18286 "In a future libguestfs we intend to change the default the other way.  Disk "
18287 "images will be opened read-only.  You will have to either specify "
18288 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18289 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18290 "access for disk images specified by those other command line options."
18291 msgstr ""
18292
18293 #. type: textblock
18294 #: ../fish/guestfish.pod:492
18295 msgid ""
18296 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18297 "which does nothing (it is already the default).  However it is highly "
18298 "recommended that you use this option to indicate that you need write access, "
18299 "and prepare your scripts for the day when this option will be required for "
18300 "write access."
18301 msgstr ""
18302
18303 #. type: textblock
18304 #: ../fish/guestfish.pod:498
18305 msgid ""
18306 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18307 "other libguestfs program apart from guestfish and guestmount."
18308 msgstr ""
18309
18310 #. type: =head1
18311 #: ../fish/guestfish.pod:501
18312 msgid "QUOTING"
18313 msgstr ""
18314
18315 #. type: textblock
18316 #: ../fish/guestfish.pod:503
18317 msgid ""
18318 "You can quote ordinary parameters using either single or double quotes.  For "
18319 "example:"
18320 msgstr ""
18321
18322 #. type: verbatim
18323 #: ../fish/guestfish.pod:506
18324 #, no-wrap
18325 msgid ""
18326 " add \"file with a space.img\"\n"
18327 "\n"
18328 msgstr ""
18329
18330 #. type: verbatim
18331 #: ../fish/guestfish.pod:508
18332 #, no-wrap
18333 msgid ""
18334 " rm '/file name'\n"
18335 "\n"
18336 msgstr ""
18337
18338 #. type: verbatim
18339 #: ../fish/guestfish.pod:510
18340 #, no-wrap
18341 msgid ""
18342 " rm '/\"'\n"
18343 "\n"
18344 msgstr ""
18345
18346 #. type: textblock
18347 #: ../fish/guestfish.pod:512
18348 msgid ""
18349 "A few commands require a list of strings to be passed.  For these, use a "
18350 "whitespace-separated list, enclosed in quotes.  Strings containing "
18351 "whitespace to be passed through must be enclosed in single quotes.  A "
18352 "literal single quote must be escaped with a backslash."
18353 msgstr ""
18354
18355 #. type: verbatim
18356 #: ../fish/guestfish.pod:517
18357 #, no-wrap
18358 msgid ""
18359 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18360 " command \"/bin/echo 'foo      bar'\"\n"
18361 " command \"/bin/echo \\'foo\\'\"\n"
18362 "\n"
18363 msgstr ""
18364
18365 #. type: =head2
18366 #: ../fish/guestfish.pod:521
18367 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18368 msgstr ""
18369
18370 #. type: textblock
18371 #: ../fish/guestfish.pod:523
18372 msgid ""
18373 "In double-quoted arguments (only) use backslash to insert special characters:"
18374 msgstr ""
18375
18376 #. type: =item
18377 #: ../fish/guestfish.pod:528
18378 msgid "C<\\a>"
18379 msgstr ""
18380
18381 #. type: textblock
18382 #: ../fish/guestfish.pod:530
18383 msgid "Alert (bell) character."
18384 msgstr ""
18385
18386 #. type: =item
18387 #: ../fish/guestfish.pod:532
18388 msgid "C<\\b>"
18389 msgstr ""
18390
18391 #. type: textblock
18392 #: ../fish/guestfish.pod:534
18393 msgid "Backspace character."
18394 msgstr ""
18395
18396 #. type: =item
18397 #: ../fish/guestfish.pod:536
18398 msgid "C<\\f>"
18399 msgstr ""
18400
18401 #. type: textblock
18402 #: ../fish/guestfish.pod:538
18403 msgid "Form feed character."
18404 msgstr ""
18405
18406 #. type: =item
18407 #: ../fish/guestfish.pod:540
18408 msgid "C<\\n>"
18409 msgstr ""
18410
18411 #. type: textblock
18412 #: ../fish/guestfish.pod:542
18413 msgid "Newline character."
18414 msgstr ""
18415
18416 #. type: =item
18417 #: ../fish/guestfish.pod:544
18418 msgid "C<\\r>"
18419 msgstr ""
18420
18421 #. type: textblock
18422 #: ../fish/guestfish.pod:546
18423 msgid "Carriage return character."
18424 msgstr ""
18425
18426 #. type: =item
18427 #: ../fish/guestfish.pod:548
18428 msgid "C<\\t>"
18429 msgstr ""
18430
18431 #. type: textblock
18432 #: ../fish/guestfish.pod:550
18433 msgid "Horizontal tab character."
18434 msgstr ""
18435
18436 #. type: =item
18437 #: ../fish/guestfish.pod:552
18438 msgid "C<\\v>"
18439 msgstr ""
18440
18441 #. type: textblock
18442 #: ../fish/guestfish.pod:554
18443 msgid "Vertical tab character."
18444 msgstr ""
18445
18446 #. type: =item
18447 #: ../fish/guestfish.pod:556
18448 msgid "C<\\\">"
18449 msgstr ""
18450
18451 #. type: textblock
18452 #: ../fish/guestfish.pod:558
18453 msgid "A literal double quote character."
18454 msgstr ""
18455
18456 #. type: =item
18457 #: ../fish/guestfish.pod:560
18458 msgid "C<\\ooo>"
18459 msgstr ""
18460
18461 #. type: textblock
18462 #: ../fish/guestfish.pod:562
18463 msgid ""
18464 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18465 "(unlike C)."
18466 msgstr ""
18467
18468 #. type: =item
18469 #: ../fish/guestfish.pod:565
18470 msgid "C<\\xhh>"
18471 msgstr ""
18472
18473 #. type: textblock
18474 #: ../fish/guestfish.pod:567
18475 msgid ""
18476 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18477 msgstr ""
18478
18479 #. type: textblock
18480 #: ../fish/guestfish.pod:570
18481 msgid ""
18482 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18483 "strings."
18484 msgstr ""
18485
18486 #. type: =item
18487 #: ../fish/guestfish.pod:573
18488 msgid "C<\\\\>"
18489 msgstr ""
18490
18491 #. type: textblock
18492 #: ../fish/guestfish.pod:575
18493 msgid "A literal backslash character."
18494 msgstr ""
18495
18496 #. type: =head1
18497 #: ../fish/guestfish.pod:579
18498 msgid "OPTIONAL ARGUMENTS"
18499 msgstr ""
18500
18501 #. type: textblock
18502 #: ../fish/guestfish.pod:581
18503 msgid ""
18504 "Some commands take optional arguments.  These arguments appear in this "
18505 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18506 msgstr ""
18507
18508 #. type: verbatim
18509 #: ../fish/guestfish.pod:585
18510 #, no-wrap
18511 msgid ""
18512 " add-drive-opts filename\n"
18513 "\n"
18514 msgstr ""
18515
18516 #. type: verbatim
18517 #: ../fish/guestfish.pod:587
18518 #, no-wrap
18519 msgid ""
18520 " add-drive-opts filename readonly:true\n"
18521 "\n"
18522 msgstr ""
18523
18524 #. type: verbatim
18525 #: ../fish/guestfish.pod:589
18526 #, no-wrap
18527 msgid ""
18528 " add-drive-opts filename format:qcow2 readonly:false\n"
18529 "\n"
18530 msgstr ""
18531
18532 #. type: textblock
18533 #: ../fish/guestfish.pod:591
18534 msgid ""
18535 "Each optional argument can appear at most once.  All optional arguments must "
18536 "appear after the required ones."
18537 msgstr ""
18538
18539 #. type: =head1
18540 #: ../fish/guestfish.pod:594
18541 msgid "NUMBERS"
18542 msgstr "ЧИСЛА"
18543
18544 #. type: textblock
18545 #: ../fish/guestfish.pod:596
18546 msgid ""
18547 "This section applies to all commands which can take integers as parameters."
18548 msgstr ""
18549
18550 #. type: =head2
18551 #: ../fish/guestfish.pod:599
18552 msgid "SIZE SUFFIX"
18553 msgstr ""
18554
18555 #. type: textblock
18556 #: ../fish/guestfish.pod:601
18557 msgid ""
18558 "When the command takes a parameter measured in bytes, you can use one of the "
18559 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18560 msgstr ""
18561
18562 #. type: =item
18563 #: ../fish/guestfish.pod:607
18564 msgid "B<k> or B<K> or B<KiB>"
18565 msgstr "B<k>, B<K> або B<KiB>"
18566
18567 #. type: textblock
18568 #: ../fish/guestfish.pod:609
18569 msgid "The size in kilobytes (multiplied by 1024)."
18570 msgstr ""
18571
18572 #. type: =item
18573 #: ../fish/guestfish.pod:611
18574 msgid "B<KB>"
18575 msgstr "B<KB>"
18576
18577 #. type: textblock
18578 #: ../fish/guestfish.pod:613
18579 msgid "The size in SI 1000 byte units."
18580 msgstr ""
18581
18582 #. type: =item
18583 #: ../fish/guestfish.pod:615
18584 msgid "B<M> or B<MiB>"
18585 msgstr "B<M> або B<MiB>"
18586
18587 #. type: textblock
18588 #: ../fish/guestfish.pod:617
18589 msgid "The size in megabytes (multiplied by 1048576)."
18590 msgstr ""
18591
18592 #. type: =item
18593 #: ../fish/guestfish.pod:619
18594 msgid "B<MB>"
18595 msgstr "B<MB>"
18596
18597 #. type: textblock
18598 #: ../fish/guestfish.pod:621
18599 msgid "The size in SI 1000000 byte units."
18600 msgstr ""
18601
18602 #. type: =item
18603 #: ../fish/guestfish.pod:623
18604 msgid "B<G> or B<GiB>"
18605 msgstr "B<G> або B<GiB>"
18606
18607 #. type: textblock
18608 #: ../fish/guestfish.pod:625
18609 msgid "The size in gigabytes (multiplied by 2**30)."
18610 msgstr "Розмір у гігабайтах (з множником 2**30)."
18611
18612 #. type: =item
18613 #: ../fish/guestfish.pod:627
18614 msgid "B<GB>"
18615 msgstr "B<GB>"
18616
18617 #. type: textblock
18618 #: ../fish/guestfish.pod:629
18619 msgid "The size in SI 10**9 byte units."
18620 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18621
18622 #. type: =item
18623 #: ../fish/guestfish.pod:631
18624 msgid "B<T> or B<TiB>"
18625 msgstr "B<T> або B<TiB>"
18626
18627 #. type: textblock
18628 #: ../fish/guestfish.pod:633
18629 msgid "The size in terabytes (multiplied by 2**40)."
18630 msgstr "Розмір у терабайтах (з множником 2**40)."
18631
18632 #. type: =item
18633 #: ../fish/guestfish.pod:635
18634 msgid "B<TB>"
18635 msgstr "B<TB>"
18636
18637 #. type: textblock
18638 #: ../fish/guestfish.pod:637
18639 msgid "The size in SI 10**12 byte units."
18640 msgstr ""
18641
18642 #. type: =item
18643 #: ../fish/guestfish.pod:639
18644 msgid "B<P> or B<PiB>"
18645 msgstr "B<P> або B<PiB>"
18646
18647 #. type: textblock
18648 #: ../fish/guestfish.pod:641
18649 msgid "The size in petabytes (multiplied by 2**50)."
18650 msgstr ""
18651
18652 #. type: =item
18653 #: ../fish/guestfish.pod:643
18654 msgid "B<PB>"
18655 msgstr "B<PB>"
18656
18657 #. type: textblock
18658 #: ../fish/guestfish.pod:645
18659 msgid "The size in SI 10**15 byte units."
18660 msgstr ""
18661
18662 #. type: =item
18663 #: ../fish/guestfish.pod:647
18664 msgid "B<E> or B<EiB>"
18665 msgstr "B<E> або B<EiB>"
18666
18667 #. type: textblock
18668 #: ../fish/guestfish.pod:649
18669 msgid "The size in exabytes (multiplied by 2**60)."
18670 msgstr ""
18671
18672 #. type: =item
18673 #: ../fish/guestfish.pod:651
18674 msgid "B<EB>"
18675 msgstr "B<EB>"
18676
18677 #. type: textblock
18678 #: ../fish/guestfish.pod:653
18679 msgid "The size in SI 10**18 byte units."
18680 msgstr ""
18681
18682 #. type: =item
18683 #: ../fish/guestfish.pod:655
18684 msgid "B<Z> or B<ZiB>"
18685 msgstr "B<Z> або B<ZiB>"
18686
18687 #. type: textblock
18688 #: ../fish/guestfish.pod:657
18689 msgid "The size in zettabytes (multiplied by 2**70)."
18690 msgstr ""
18691
18692 #. type: =item
18693 #: ../fish/guestfish.pod:659
18694 msgid "B<ZB>"
18695 msgstr "B<ZB>"
18696
18697 #. type: textblock
18698 #: ../fish/guestfish.pod:661
18699 msgid "The size in SI 10**21 byte units."
18700 msgstr ""
18701
18702 #. type: =item
18703 #: ../fish/guestfish.pod:663
18704 msgid "B<Y> or B<YiB>"
18705 msgstr "B<Y> або B<YiB>"
18706
18707 #. type: textblock
18708 #: ../fish/guestfish.pod:665
18709 msgid "The size in yottabytes (multiplied by 2**80)."
18710 msgstr ""
18711
18712 #. type: =item
18713 #: ../fish/guestfish.pod:667
18714 msgid "B<YB>"
18715 msgstr "B<YB>"
18716
18717 #. type: textblock
18718 #: ../fish/guestfish.pod:669
18719 msgid "The size in SI 10**24 byte units."
18720 msgstr ""
18721
18722 #. type: verbatim
18723 #: ../fish/guestfish.pod:675
18724 #, no-wrap
18725 msgid ""
18726 " truncate-size /file 1G\n"
18727 "\n"
18728 msgstr ""
18729
18730 #. type: textblock
18731 #: ../fish/guestfish.pod:677
18732 msgid "would truncate the file to 1 gigabyte."
18733 msgstr ""
18734
18735 #. type: textblock
18736 #: ../fish/guestfish.pod:679
18737 msgid ""
18738 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18739 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18740 "suffix will probably not do what you expect."
18741 msgstr ""
18742
18743 #. type: =head2
18744 #: ../fish/guestfish.pod:683
18745 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18746 msgstr ""
18747
18748 #. type: textblock
18749 #: ../fish/guestfish.pod:685
18750 msgid ""
18751 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18752 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18753 msgstr ""
18754
18755 #. type: verbatim
18756 #: ../fish/guestfish.pod:688
18757 #, no-wrap
18758 msgid ""
18759 " 1234      decimal number 1234\n"
18760 " 02322     octal number, equivalent to decimal 1234\n"
18761 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18762 "\n"
18763 msgstr ""
18764
18765 #. type: textblock
18766 #: ../fish/guestfish.pod:692
18767 msgid ""
18768 "When using the C<chmod> command, you almost always want to specify an octal "
18769 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18770 "L<chmod(1)> program):"
18771 msgstr ""
18772
18773 #. type: verbatim
18774 #: ../fish/guestfish.pod:696
18775 #, no-wrap
18776 msgid ""
18777 " chmod 0777 /public  # OK\n"
18778 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18779 "\n"
18780 msgstr ""
18781
18782 #. type: textblock
18783 #: ../fish/guestfish.pod:699
18784 msgid ""
18785 "Commands that return numbers usually print them in decimal, but some "
18786 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18787 "octal, preceeded by C<0>)."
18788 msgstr ""
18789
18790 #. type: =head1
18791 #: ../fish/guestfish.pod:703
18792 msgid "WILDCARDS AND GLOBBING"
18793 msgstr ""
18794
18795 #. type: textblock
18796 #: ../fish/guestfish.pod:705
18797 msgid ""
18798 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18799 "(globbing) by default.  So for example the following will not do what you "
18800 "expect:"
18801 msgstr ""
18802
18803 #. type: verbatim
18804 #: ../fish/guestfish.pod:709
18805 #, no-wrap
18806 msgid ""
18807 " rm-rf /home/*\n"
18808 "\n"
18809 msgstr ""
18810
18811 #. type: textblock
18812 #: ../fish/guestfish.pod:711
18813 msgid ""
18814 "Assuming you don't have a directory called literally C</home/*> then the "
18815 "above command will return an error."
18816 msgstr ""
18817
18818 #. type: textblock
18819 #: ../fish/guestfish.pod:714
18820 msgid "To perform wildcard expansion, use the C<glob> command."
18821 msgstr ""
18822
18823 #. type: verbatim
18824 #: ../fish/guestfish.pod:716
18825 #, no-wrap
18826 msgid ""
18827 " glob rm-rf /home/*\n"
18828 "\n"
18829 msgstr ""
18830
18831 #. type: textblock
18832 #: ../fish/guestfish.pod:718
18833 msgid ""
18834 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18835 "many times), equivalent to:"
18836 msgstr ""
18837
18838 #. type: verbatim
18839 #: ../fish/guestfish.pod:721
18840 #, no-wrap
18841 msgid ""
18842 " rm-rf /home/jim\n"
18843 " rm-rf /home/joe\n"
18844 " rm-rf /home/mary\n"
18845 "\n"
18846 msgstr ""
18847
18848 #. type: textblock
18849 #: ../fish/guestfish.pod:725
18850 msgid "C<glob> only works on simple guest paths and not on device names."
18851 msgstr ""
18852
18853 #. type: textblock
18854 #: ../fish/guestfish.pod:727
18855 msgid ""
18856 "If you have several parameters, each containing a wildcard, then glob will "
18857 "perform a Cartesian product."
18858 msgstr ""
18859
18860 #. type: =head1
18861 #: ../fish/guestfish.pod:730
18862 msgid "COMMENTS"
18863 msgstr "КОМЕНТАРІ"
18864
18865 #. type: textblock
18866 #: ../fish/guestfish.pod:732
18867 msgid ""
18868 "Any line which starts with a I<#> character is treated as a comment and "
18869 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18870 "a command.  For example:"
18871 msgstr ""
18872
18873 #. type: verbatim
18874 #: ../fish/guestfish.pod:736
18875 #, no-wrap
18876 msgid ""
18877 " # this is a comment\n"
18878 "         # this is a comment\n"
18879 " foo # NOT a comment\n"
18880 "\n"
18881 msgstr ""
18882
18883 #. type: textblock
18884 #: ../fish/guestfish.pod:740
18885 msgid "Blank lines are also ignored."
18886 msgstr ""
18887
18888 #. type: =head1
18889 #: ../fish/guestfish.pod:742
18890 msgid "RUNNING COMMANDS LOCALLY"
18891 msgstr ""
18892
18893 #. type: textblock
18894 #: ../fish/guestfish.pod:744
18895 msgid ""
18896 "Any line which starts with a I<!> character is treated as a command sent to "
18897 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18898 msgstr ""
18899
18900 #. type: verbatim
18901 #: ../fish/guestfish.pod:748
18902 #, no-wrap
18903 msgid ""
18904 " !mkdir local\n"
18905 " tgz-out /remote local/remote-data.tar.gz\n"
18906 "\n"
18907 msgstr ""
18908
18909 #. type: textblock
18910 #: ../fish/guestfish.pod:751
18911 msgid ""
18912 "will create a directory C<local> on the host, and then export the contents "
18913 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18914 "(See C<tgz-out>)."
18915 msgstr ""
18916
18917 #. type: textblock
18918 #: ../fish/guestfish.pod:755
18919 msgid ""
18920 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18921 "effect, due to the way that subprocesses work in Unix."
18922 msgstr ""
18923
18924 #. type: =head2
18925 #: ../fish/guestfish.pod:758
18926 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18927 msgstr ""
18928
18929 #. type: textblock
18930 #: ../fish/guestfish.pod:760
18931 msgid ""
18932 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18933 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18934 "and executed as guestfish commands."
18935 msgstr ""
18936
18937 #. type: textblock
18938 #: ../fish/guestfish.pod:764
18939 msgid ""
18940 "Thus you can use shell script to construct arbitrary guestfish commands "
18941 "which are then parsed by guestfish."
18942 msgstr ""
18943
18944 #. type: textblock
18945 #: ../fish/guestfish.pod:767
18946 msgid ""
18947 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18948 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18949 "if we use a shell script to create the guestfish commands for us:"
18950 msgstr ""
18951
18952 #. type: verbatim
18953 #: ../fish/guestfish.pod:772
18954 #, no-wrap
18955 msgid ""
18956 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18957 "\n"
18958 msgstr ""
18959
18960 #. type: textblock
18961 #: ../fish/guestfish.pod:774
18962 msgid "or with names like C</foo.001>:"
18963 msgstr ""
18964
18965 #. type: verbatim
18966 #: ../fish/guestfish.pod:776
18967 #, no-wrap
18968 msgid ""
18969 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18970 "\n"
18971 msgstr ""
18972
18973 #. type: textblock
18974 #: ../fish/guestfish.pod:778
18975 msgid ""
18976 "When using guestfish interactively it can be helpful to just run the shell "
18977 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18978 "ordinary I<!> local command), see what guestfish commands it would run, and "
18979 "when you are happy with those prepend the C<E<lt>> character to run the "
18980 "guestfish commands for real."
18981 msgstr ""
18982
18983 #. type: =head1
18984 #: ../fish/guestfish.pod:784
18985 msgid "PIPES"
18986 msgstr "КАНАЛИ"
18987
18988 #. type: textblock
18989 #: ../fish/guestfish.pod:786
18990 msgid ""
18991 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18992 "command (a guestfish command) to the second command (any host command).  For "
18993 "example:"
18994 msgstr ""
18995
18996 #. type: verbatim
18997 #: ../fish/guestfish.pod:790
18998 #, no-wrap
18999 msgid ""
19000 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19001 "\n"
19002 msgstr ""
19003
19004 #. type: textblock
19005 #: ../fish/guestfish.pod:792
19006 msgid ""
19007 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19008 "program).  The above command would list all accounts in the guest filesystem "
19009 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
19010 msgstr ""
19011
19012 #. type: verbatim
19013 #: ../fish/guestfish.pod:797
19014 #, no-wrap
19015 msgid ""
19016 " hexdump /bin/ls | head\n"
19017 " list-devices | tail -1\n"
19018 " tgz-out / - | tar ztf -\n"
19019 "\n"
19020 msgstr ""
19021
19022 #. type: textblock
19023 #: ../fish/guestfish.pod:801
19024 msgid ""
19025 "The space before the pipe symbol is required, any space after the pipe "
19026 "symbol is optional.  Everything after the pipe symbol is just passed "
19027 "straight to the host shell, so it can contain redirections, globs and "
19028 "anything else that makes sense on the host side."
19029 msgstr ""
19030
19031 #. type: textblock
19032 #: ../fish/guestfish.pod:806
19033 msgid ""
19034 "To use a literal argument which begins with a pipe symbol, you have to quote "
19035 "it, eg:"
19036 msgstr ""
19037
19038 #. type: verbatim
19039 #: ../fish/guestfish.pod:809
19040 #, no-wrap
19041 msgid ""
19042 " echo \"|\"\n"
19043 "\n"
19044 msgstr ""
19045
19046 #. type: =head1
19047 #: ../fish/guestfish.pod:811
19048 msgid "HOME DIRECTORIES"
19049 msgstr ""
19050
19051 #. type: textblock
19052 #: ../fish/guestfish.pod:813
19053 msgid ""
19054 "If a parameter starts with the character C<~> then the tilde may be expanded "
19055 "as a home directory path (either C<~> for the current user's home directory, "
19056 "or C<~user> for another user)."
19057 msgstr ""
19058
19059 #. type: textblock
19060 #: ../fish/guestfish.pod:817
19061 msgid ""
19062 "Note that home directory expansion happens for users known I<on the host>, "
19063 "not in the guest filesystem."
19064 msgstr ""
19065
19066 #. type: textblock
19067 #: ../fish/guestfish.pod:820
19068 msgid ""
19069 "To use a literal argument which begins with a tilde, you have to quote it, "
19070 "eg:"
19071 msgstr ""
19072
19073 #. type: verbatim
19074 #: ../fish/guestfish.pod:823
19075 #, no-wrap
19076 msgid ""
19077 " echo \"~\"\n"
19078 "\n"
19079 msgstr ""
19080
19081 #. type: =head2
19082 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
19083 msgid "ENCRYPTED DISKS"
19084 msgstr "ЗАШИФРОВАНІ ДИСКИ"
19085
19086 #. type: textblock
19087 #: ../fish/guestfish.pod:827
19088 msgid ""
19089 "Libguestfs has some support for Linux guests encrypted according to the "
19090 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19091 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
19092 "LUKS is supported."
19093 msgstr ""
19094
19095 #. type: textblock
19096 #: ../fish/guestfish.pod:832
19097 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19098 msgstr ""
19099
19100 #. type: verbatim
19101 #: ../fish/guestfish.pod:834
19102 #, no-wrap
19103 msgid ""
19104 " ><fs> vfs-type /dev/sda2\n"
19105 " crypto_LUKS\n"
19106 "\n"
19107 msgstr ""
19108
19109 #. type: textblock
19110 #: ../fish/guestfish.pod:837
19111 msgid ""
19112 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19113 "device called C</dev/mapper/luksdev>."
19114 msgstr ""
19115
19116 #. type: verbatim
19117 #: ../fish/guestfish.pod:840
19118 #, no-wrap
19119 msgid ""
19120 " ><fs> luks-open /dev/sda2 luksdev\n"
19121 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19122 "\n"
19123 msgstr ""
19124
19125 #. type: textblock
19126 #: ../fish/guestfish.pod:843
19127 msgid ""
19128 "Finally you have to tell LVM to scan for volume groups on the newly created "
19129 "mapper device:"
19130 msgstr ""
19131
19132 #. type: verbatim
19133 #: ../fish/guestfish.pod:846
19134 #, no-wrap
19135 msgid ""
19136 " vgscan\n"
19137 " vg-activate-all true\n"
19138 "\n"
19139 msgstr ""
19140
19141 #. type: textblock
19142 #: ../fish/guestfish.pod:849
19143 msgid "The logical volume(s) can now be mounted in the usual way."
19144 msgstr ""
19145
19146 #. type: textblock
19147 #: ../fish/guestfish.pod:851
19148 msgid ""
19149 "Before closing a LUKS device you must unmount any logical volumes on it and "
19150 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19151 "one.  Then you can close the mapper device:"
19152 msgstr ""
19153
19154 #. type: verbatim
19155 #: ../fish/guestfish.pod:855
19156 #, no-wrap
19157 msgid ""
19158 " vg-activate false /dev/VG\n"
19159 " luks-close /dev/mapper/luksdev\n"
19160 "\n"
19161 msgstr ""
19162
19163 #. type: textblock
19164 #: ../fish/guestfish.pod:860
19165 msgid ""
19166 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19167 "letters and paths (with some limitations).  The following commands are "
19168 "equivalent:"
19169 msgstr ""
19170
19171 #. type: verbatim
19172 #: ../fish/guestfish.pod:864
19173 #, no-wrap
19174 msgid ""
19175 " file /WINDOWS/system32/config/system.LOG\n"
19176 "\n"
19177 msgstr ""
19178
19179 #. type: verbatim
19180 #: ../fish/guestfish.pod:866
19181 #, no-wrap
19182 msgid ""
19183 " file win:\\windows\\system32\\config\\system.log\n"
19184 "\n"
19185 msgstr ""
19186
19187 #. type: verbatim
19188 #: ../fish/guestfish.pod:868
19189 #, no-wrap
19190 msgid ""
19191 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19192 "\n"
19193 msgstr ""
19194
19195 #. type: textblock
19196 #: ../fish/guestfish.pod:870
19197 msgid ""
19198 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19199 "where the drive is mounted, prepending that to the path, changing all "
19200 "backslash characters to forward slash, then resolving the result using L</"
19201 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
19202 "the parameter might be rewritten like this:"
19203 msgstr ""
19204
19205 #. type: verbatim
19206 #: ../fish/guestfish.pod:876
19207 #, no-wrap
19208 msgid ""
19209 " win:e:\\foo\\bar => /e/FOO/bar\n"
19210 "\n"
19211 msgstr ""
19212
19213 #. type: textblock
19214 #: ../fish/guestfish.pod:878
19215 msgid "This only works in argument positions that expect a path."
19216 msgstr ""
19217
19218 #. type: =head1
19219 #: ../fish/guestfish.pod:880
19220 msgid "UPLOADING AND DOWNLOADING FILES"
19221 msgstr ""
19222
19223 #. type: textblock
19224 #: ../fish/guestfish.pod:882
19225 msgid ""
19226 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19227 "others which upload from or download to a local file, you can use the "
19228 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19229 msgstr ""
19230
19231 #. type: verbatim
19232 #: ../fish/guestfish.pod:886
19233 #, no-wrap
19234 msgid ""
19235 " upload - /foo\n"
19236 "\n"
19237 msgstr ""
19238
19239 #. type: textblock
19240 #: ../fish/guestfish.pod:888
19241 msgid ""
19242 "reads stdin and creates from that a file C</foo> in the disk image, and:"
19243 msgstr ""
19244
19245 #. type: verbatim
19246 #: ../fish/guestfish.pod:891
19247 #, no-wrap
19248 msgid ""
19249 " tar-out /etc - | tar tf -\n"
19250 "\n"
19251 msgstr ""
19252
19253 #. type: textblock
19254 #: ../fish/guestfish.pod:893
19255 msgid ""
19256 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19257 "command (see L</PIPES>)."
19258 msgstr ""
19259
19260 #. type: textblock
19261 #: ../fish/guestfish.pod:896
19262 msgid ""
19263 "When using C<-> to read from stdin, the input is read up to the end of "
19264 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19265 "some arbitrary end marker:"
19266 msgstr ""
19267
19268 #. type: verbatim
19269 #: ../fish/guestfish.pod:900
19270 #, no-wrap
19271 msgid ""
19272 " upload -<<END /foo\n"
19273 " input line 1\n"
19274 " input line 2\n"
19275 " input line 3\n"
19276 " END\n"
19277 "\n"
19278 msgstr ""
19279
19280 #. type: textblock
19281 #: ../fish/guestfish.pod:906
19282 msgid ""
19283 "Any string of characters can be used instead of C<END>.  The end marker must "
19284 "appear on a line of its own, without any preceeding or following characters "
19285 "(not even spaces)."
19286 msgstr ""
19287
19288 #. type: textblock
19289 #: ../fish/guestfish.pod:910
19290 msgid ""
19291 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19292 "upload local files (so-called \"FileIn\" parameters in the generator)."
19293 msgstr ""
19294
19295 #. type: =head1
19296 #: ../fish/guestfish.pod:913
19297 msgid "EXIT ON ERROR BEHAVIOUR"
19298 msgstr ""
19299
19300 #. type: textblock
19301 #: ../fish/guestfish.pod:915
19302 msgid ""
19303 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19304 "taking commands from a human over a tty), and will exit on the first error "
19305 "in non-interactive mode (scripts, commands given on the command line)."
19306 msgstr ""
19307
19308 #. type: textblock
19309 #: ../fish/guestfish.pod:920
19310 msgid ""
19311 "If you prefix a command with a I<-> character, then that command will not "
19312 "cause guestfish to exit, even if that (one) command returns an error."
19313 msgstr ""
19314
19315 #. type: =head1
19316 #: ../fish/guestfish.pod:924
19317 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19318 msgstr ""
19319
19320 #. type: textblock
19321 #: ../fish/guestfish.pod:926
19322 msgid ""
19323 "Guestfish can be remote-controlled over a socket.  This is useful "
19324 "particularly in shell scripts where you want to make several different "
19325 "changes to a filesystem, but you don't want the overhead of starting up a "
19326 "guestfish process each time."
19327 msgstr ""
19328
19329 #. type: textblock
19330 #: ../fish/guestfish.pod:931
19331 msgid "Start a guestfish server process using:"
19332 msgstr ""
19333
19334 #. type: verbatim
19335 #: ../fish/guestfish.pod:933
19336 #, no-wrap
19337 msgid ""
19338 " eval \"`guestfish --listen`\"\n"
19339 "\n"
19340 msgstr ""
19341
19342 #. type: textblock
19343 #: ../fish/guestfish.pod:935
19344 msgid "and then send it commands by doing:"
19345 msgstr ""
19346
19347 #. type: verbatim
19348 #: ../fish/guestfish.pod:937
19349 #, no-wrap
19350 msgid ""
19351 " guestfish --remote cmd [...]\n"
19352 "\n"
19353 msgstr ""
19354
19355 #. type: textblock
19356 #: ../fish/guestfish.pod:939
19357 msgid "To cause the server to exit, send it the exit command:"
19358 msgstr ""
19359
19360 #. type: textblock
19361 #: ../fish/guestfish.pod:943
19362 msgid ""
19363 "Note that the server will normally exit if there is an error in a command.  "
19364 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19365 "BEHAVIOUR>."
19366 msgstr ""
19367
19368 #. type: =head2
19369 #: ../fish/guestfish.pod:947
19370 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19371 msgstr ""
19372
19373 #. type: textblock
19374 #: ../fish/guestfish.pod:949
19375 msgid ""
19376 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19377 "is how the I<--remote> option knows where to send the commands.  You can "
19378 "have several guestfish listener processes running using:"
19379 msgstr ""
19380
19381 #. type: verbatim
19382 #: ../fish/guestfish.pod:953
19383 #, no-wrap
19384 msgid ""
19385 " eval \"`guestfish --listen`\"\n"
19386 " pid1=$GUESTFISH_PID\n"
19387 " eval \"`guestfish --listen`\"\n"
19388 " pid2=$GUESTFISH_PID\n"
19389 " ...\n"
19390 " guestfish --remote=$pid1 cmd\n"
19391 " guestfish --remote=$pid2 cmd\n"
19392 "\n"
19393 msgstr ""
19394
19395 #. type: =head2
19396 #: ../fish/guestfish.pod:961
19397 msgid "REMOTE CONTROL AND CSH"
19398 msgstr ""
19399
19400 #. type: textblock
19401 #: ../fish/guestfish.pod:963
19402 msgid ""
19403 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19404 "option:"
19405 msgstr ""
19406
19407 #. type: verbatim
19408 #: ../fish/guestfish.pod:966
19409 #, no-wrap
19410 msgid ""
19411 " eval \"`guestfish --listen --csh`\"\n"
19412 "\n"
19413 msgstr ""
19414
19415 #. type: =head2
19416 #: ../fish/guestfish.pod:968
19417 msgid "REMOTE CONTROL DETAILS"
19418 msgstr ""
19419
19420 #. type: textblock
19421 #: ../fish/guestfish.pod:970
19422 msgid ""
19423 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19424 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19425 "and C<$PID> is the process ID of the server."
19426 msgstr ""
19427
19428 #. type: textblock
19429 #: ../fish/guestfish.pod:974
19430 msgid "Guestfish client and server versions must match exactly."
19431 msgstr ""
19432
19433 #. type: =head2
19434 #: ../fish/guestfish.pod:976
19435 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19436 msgstr ""
19437
19438 #. type: textblock
19439 #: ../fish/guestfish.pod:978
19440 msgid ""
19441 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19442 "context hangs, ie. don't do (note the backquotes):"
19443 msgstr ""
19444
19445 #. type: verbatim
19446 #: ../fish/guestfish.pod:981
19447 #, fuzzy, no-wrap
19448 #| msgid ""
19449 #| " guestfish --ro -d myguest -i\n"
19450 #| "\n"
19451 msgid ""
19452 " a=`guestfish --remote run`\n"
19453 "\n"
19454 msgstr ""
19455 " guestfish --ro -d myguest -i\n"
19456 "\n"
19457
19458 #. type: textblock
19459 #: ../fish/guestfish.pod:983
19460 msgid ""
19461 "Since the C<run> command produces no output on stdout, this is not useful "
19462 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
19463 "cgi?id=592910>."
19464 msgstr ""
19465
19466 #. type: =head1
19467 #: ../fish/guestfish.pod:987
19468 msgid "PREPARED DISK IMAGES"
19469 msgstr ""
19470
19471 #. type: textblock
19472 #: ../fish/guestfish.pod:989
19473 msgid ""
19474 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19475 "preformatted disk images that guestfish can make for you to save typing.  "
19476 "This is particularly useful for testing purposes.  This option is used "
19477 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19478 "can be mixed with I<-a>)."
19479 msgstr ""
19480
19481 #. type: textblock
19482 #: ../fish/guestfish.pod:995
19483 msgid ""
19484 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19485 "the second and so on.  Existing files in the current directory are "
19486 "I<overwritten>."
19487 msgstr ""
19488
19489 #. type: textblock
19490 #: ../fish/guestfish.pod:999
19491 msgid ""
19492 "The type briefly describes how the disk should be sized, partitioned, how "
19493 "filesystem(s) should be created, and how content should be added.  "
19494 "Optionally the type can be followed by extra parameters, separated by C<:> "
19495 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
19496 "allocated disk, containing a single partition, with the partition formatted "
19497 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19498 "disk instead."
19499 msgstr ""
19500
19501 #. type: textblock
19502 #: ../fish/guestfish.pod:1007
19503 msgid "To list the available types and any extra parameters they take, run:"
19504 msgstr ""
19505
19506 #. type: textblock
19507 #: ../fish/guestfish.pod:1011
19508 msgid ""
19509 "Note that the prepared filesystem is not mounted.  You would usually have to "
19510 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19511 msgstr ""
19512
19513 #. type: textblock
19514 #: ../fish/guestfish.pod:1015
19515 msgid ""
19516 "If any I<-N> or I<--new> options are given, the guest is automatically "
19517 "launched."
19518 msgstr ""
19519
19520 #. type: textblock
19521 #: ../fish/guestfish.pod:1020
19522 msgid "Create a 100MB disk with an ext4-formatted partition:"
19523 msgstr ""
19524
19525 #. type: verbatim
19526 #: ../fish/guestfish.pod:1022
19527 #, no-wrap
19528 msgid ""
19529 " guestfish -N fs:ext4\n"
19530 "\n"
19531 msgstr ""
19532
19533 #. type: textblock
19534 #: ../fish/guestfish.pod:1024
19535 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19536 msgstr ""
19537
19538 #. type: verbatim
19539 #: ../fish/guestfish.pod:1026
19540 #, no-wrap
19541 msgid ""
19542 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19543 "\n"
19544 msgstr ""
19545
19546 #. type: textblock
19547 #: ../fish/guestfish.pod:1028
19548 msgid "Create a blank 200MB disk:"
19549 msgstr ""
19550
19551 #. type: verbatim
19552 #: ../fish/guestfish.pod:1030
19553 #, no-wrap
19554 msgid ""
19555 " guestfish -N disk:200M\n"
19556 "\n"
19557 msgstr ""
19558
19559 #. type: =head1
19560 #: ../fish/guestfish.pod:1032
19561 msgid "PROGRESS BARS"
19562 msgstr ""
19563
19564 #. type: textblock
19565 #: ../fish/guestfish.pod:1034
19566 msgid ""
19567 "Some (not all) long-running commands send progress notification messages as "
19568 "they are running.  Guestfish turns these messages into progress bars."
19569 msgstr ""
19570
19571 #. type: textblock
19572 #: ../fish/guestfish.pod:1038
19573 msgid ""
19574 "When a command that supports progress bars takes longer than two seconds to "
19575 "run, and if progress bars are enabled, then you will see one appearing below "
19576 "the command:"
19577 msgstr ""
19578
19579 #. type: verbatim
19580 #: ../fish/guestfish.pod:1042
19581 #, no-wrap
19582 msgid ""
19583 " ><fs> copy-size /large-file /another-file 2048M\n"
19584 " / 10% [#####-----------------------------------------] 00:30\n"
19585 "\n"
19586 msgstr ""
19587
19588 #. type: textblock
19589 #: ../fish/guestfish.pod:1045
19590 msgid ""
19591 "The spinner on the left hand side moves round once for every progress "
19592 "notification received from the backend.  This is a (reasonably) golden "
19593 "assurance that the command is \"doing something\" even if the progress bar "
19594 "is not moving, because the command is able to send the progress "
19595 "notifications.  When the bar reaches 100% and the command finishes, the "
19596 "spinner disappears."
19597 msgstr ""
19598
19599 #. type: textblock
19600 #: ../fish/guestfish.pod:1052
19601 msgid ""
19602 "Progress bars are enabled by default when guestfish is used interactively.  "
19603 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19604 "and you can disable them completely using I<--no-progress-bars>."
19605 msgstr ""
19606
19607 #. type: =head1
19608 #: ../fish/guestfish.pod:1057
19609 msgid "GUESTFISH COMMANDS"
19610 msgstr ""
19611
19612 #. type: textblock
19613 #: ../fish/guestfish.pod:1059
19614 msgid ""
19615 "The commands in this section are guestfish convenience commands, in other "
19616 "words, they are not part of the L<guestfs(3)> API."
19617 msgstr ""
19618
19619 #. type: =head2
19620 #: ../fish/guestfish.pod:1062
19621 msgid "help"
19622 msgstr "help"
19623
19624 #. type: verbatim
19625 #: ../fish/guestfish.pod:1064
19626 #, no-wrap
19627 msgid ""
19628 " help\n"
19629 " help cmd\n"
19630 "\n"
19631 msgstr ""
19632 " help\n"
19633 " help команда\n"
19634 "\n"
19635
19636 #. type: textblock
19637 #: ../fish/guestfish.pod:1067
19638 msgid "Without any parameter, this provides general help."
19639 msgstr "Без параметра показує загальну довідкову інформацію."
19640
19641 #. type: textblock
19642 #: ../fish/guestfish.pod:1069
19643 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19644 msgstr ""
19645
19646 #. type: =head2
19647 #: ../fish/guestfish.pod:1071
19648 msgid "quit | exit"
19649 msgstr ""
19650
19651 #. type: textblock
19652 #: ../fish/guestfish.pod:1073
19653 msgid "This exits guestfish.  You can also use C<^D> key."
19654 msgstr ""
19655
19656 #. type: textblock
19657 #: ../fish/guestfish.pod:1075
19658 msgid "@FISH_COMMANDS@"
19659 msgstr ""
19660
19661 #. type: =head1
19662 #: ../fish/guestfish.pod:1077
19663 msgid "COMMANDS"
19664 msgstr "КОМАНДИ"
19665
19666 #. type: textblock
19667 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1505
19668 msgid "@ACTIONS@"
19669 msgstr "@ACTIONS@"
19670
19671 #. type: textblock
19672 #: ../fish/guestfish.pod:1083
19673 msgid ""
19674 "guestfish returns 0 if the commands completed without error, or 1 if there "
19675 "was an error."
19676 msgstr ""
19677
19678 #. type: =item
19679 #: ../fish/guestfish.pod:1090
19680 msgid "EDITOR"
19681 msgstr "РЕДАКТОР"
19682
19683 #. type: textblock
19684 #: ../fish/guestfish.pod:1092
19685 msgid ""
19686 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19687 "C<vi>."
19688 msgstr ""
19689
19690 #. type: =item
19691 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3110
19692 msgid "FEBOOTSTRAP_KERNEL"
19693 msgstr ""
19694
19695 #. type: =item
19696 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3112
19697 msgid "FEBOOTSTRAP_MODULES"
19698 msgstr ""
19699
19700 #. type: textblock
19701 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3114
19702 msgid ""
19703 "These two environment variables allow the kernel that libguestfs uses in the "
19704 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19705 "most recent host kernel is chosen.  For more information about kernel "
19706 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19707 "available in febootstrap E<ge> 3.8."
19708 msgstr ""
19709
19710 #. type: =item
19711 #: ../fish/guestfish.pod:1105
19712 msgid "GUESTFISH_DISPLAY_IMAGE"
19713 msgstr ""
19714
19715 #. type: textblock
19716 #: ../fish/guestfish.pod:1107
19717 msgid ""
19718 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19719 "If not set, it uses L<display(1)>."
19720 msgstr ""
19721
19722 #. type: =item
19723 #: ../fish/guestfish.pod:1110
19724 msgid "GUESTFISH_PID"
19725 msgstr ""
19726
19727 #. type: textblock
19728 #: ../fish/guestfish.pod:1112
19729 msgid ""
19730 "Used with the I<--remote> option to specify the remote guestfish process to "
19731 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19732 msgstr ""
19733
19734 #. type: =item
19735 #: ../fish/guestfish.pod:1116
19736 msgid "HEXEDITOR"
19737 msgstr ""
19738
19739 #. type: textblock
19740 #: ../fish/guestfish.pod:1118
19741 msgid ""
19742 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19743 "not specified, the external L<hexedit(1)> program is used."
19744 msgstr ""
19745
19746 #. type: =item
19747 #: ../fish/guestfish.pod:1122
19748 msgid "HOME"
19749 msgstr "ДОМІВКА"
19750
19751 #. type: textblock
19752 #: ../fish/guestfish.pod:1124
19753 msgid ""
19754 "If compiled with GNU readline support, various files in the home directory "
19755 "can be used.  See L</FILES>."
19756 msgstr ""
19757
19758 #. type: =item
19759 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3120
19760 msgid "LIBGUESTFS_APPEND"
19761 msgstr ""
19762
19763 #. type: textblock
19764 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3122
19765 msgid "Pass additional options to the guest kernel."
19766 msgstr ""
19767
19768 #. type: =item
19769 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3124
19770 msgid "LIBGUESTFS_DEBUG"
19771 msgstr "LIBGUESTFS_DEBUG"
19772
19773 #. type: textblock
19774 #: ../fish/guestfish.pod:1133
19775 msgid ""
19776 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19777 "effect as using the B<-v> option."
19778 msgstr ""
19779
19780 #. type: =item
19781 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3129
19782 msgid "LIBGUESTFS_MEMSIZE"
19783 msgstr "LIBGUESTFS_MEMSIZE"
19784
19785 #. type: textblock
19786 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3131
19787 msgid ""
19788 "Set the memory allocated to the qemu process, in megabytes.  For example:"
19789 msgstr ""
19790
19791 #. type: verbatim
19792 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3134
19793 #, no-wrap
19794 msgid ""
19795 " LIBGUESTFS_MEMSIZE=700\n"
19796 "\n"
19797 msgstr ""
19798 " LIBGUESTFS_MEMSIZE=700\n"
19799 "\n"
19800
19801 #. type: =item
19802 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3136
19803 msgid "LIBGUESTFS_PATH"
19804 msgstr ""
19805
19806 #. type: textblock
19807 #: ../fish/guestfish.pod:1145
19808 msgid ""
19809 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19810 "the discussion of paths in L<guestfs(3)>."
19811 msgstr ""
19812
19813 #. type: =item
19814 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3141
19815 msgid "LIBGUESTFS_QEMU"
19816 msgstr ""
19817
19818 #. type: textblock
19819 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3143
19820 msgid ""
19821 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19822 "which was found at compile time by the configure script is used."
19823 msgstr ""
19824
19825 #. type: =item
19826 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3149
19827 msgid "LIBGUESTFS_TRACE"
19828 msgstr ""
19829
19830 #. type: textblock
19831 #: ../fish/guestfish.pod:1156
19832 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19833 msgstr ""
19834
19835 #. type: =item
19836 #: ../fish/guestfish.pod:1158
19837 msgid "PAGER"
19838 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19839
19840 #. type: textblock
19841 #: ../fish/guestfish.pod:1160
19842 msgid ""
19843 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19844 "C<more>."
19845 msgstr ""
19846
19847 #. type: =item
19848 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3154
19849 msgid "TMPDIR"
19850 msgstr ""
19851
19852 #. type: textblock
19853 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3156
19854 msgid ""
19855 "Location of temporary directory, defaults to C</tmp> except for the cached "
19856 "supermin appliance which defaults to C</var/tmp>."
19857 msgstr ""
19858
19859 #. type: textblock
19860 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3159
19861 msgid ""
19862 "If libguestfs was compiled to use the supermin appliance then the real "
19863 "appliance is cached in this directory, shared between all handles belonging "
19864 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19865 "use in case C</var/tmp> is not large enough."
19866 msgstr ""
19867
19868 #. type: =head1
19869 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19870 #: ../rescue/virt-rescue.pod:273
19871 msgid "FILES"
19872 msgstr "ФАЙЛИ"
19873
19874 #. type: =item
19875 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19876 #: ../rescue/virt-rescue.pod:277
19877 msgid "$HOME/.libguestfs-tools.rc"
19878 msgstr ""
19879
19880 #. type: =item
19881 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19882 #: ../rescue/virt-rescue.pod:279
19883 msgid "/etc/libguestfs-tools.conf"
19884 msgstr ""
19885
19886 #. type: textblock
19887 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19888 #: ../rescue/virt-rescue.pod:281
19889 msgid ""
19890 "This configuration file controls the default read-only or read-write mode "
19891 "(I<--ro> or I<--rw>)."
19892 msgstr ""
19893
19894 #. type: textblock
19895 #: ../fish/guestfish.pod:1187
19896 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19897 msgstr ""
19898
19899 #. type: =item
19900 #: ../fish/guestfish.pod:1189
19901 msgid "$HOME/.guestfish"
19902 msgstr ""
19903
19904 #. type: textblock
19905 #: ../fish/guestfish.pod:1191
19906 msgid ""
19907 "If compiled with GNU readline support, then the command history is saved in "
19908 "this file."
19909 msgstr ""
19910
19911 #. type: =item
19912 #: ../fish/guestfish.pod:1194
19913 msgid "$HOME/.inputrc"
19914 msgstr ""
19915
19916 #. type: =item
19917 #: ../fish/guestfish.pod:1196
19918 msgid "/etc/inputrc"
19919 msgstr ""
19920
19921 #. type: textblock
19922 #: ../fish/guestfish.pod:1198
19923 msgid ""
19924 "If compiled with GNU readline support, then these files can be used to "
19925 "configure readline.  For further information, please see L<readline(3)/"
19926 "INITIALIZATION FILE>."
19927 msgstr ""
19928
19929 #. type: textblock
19930 #: ../fish/guestfish.pod:1202
19931 msgid "To write rules which only apply to guestfish, use:"
19932 msgstr ""
19933
19934 #. type: verbatim
19935 #: ../fish/guestfish.pod:1204
19936 #, no-wrap
19937 msgid ""
19938 " $if guestfish\n"
19939 " ...\n"
19940 " $endif\n"
19941 "\n"
19942 msgstr ""
19943
19944 #. type: textblock
19945 #: ../fish/guestfish.pod:1208
19946 msgid ""
19947 "Variables that you can set in inputrc that change the behaviour of guestfish "
19948 "in useful ways include:"
19949 msgstr ""
19950
19951 #. type: =item
19952 #: ../fish/guestfish.pod:1213
19953 msgid "completion-ignore-case (default: on)"
19954 msgstr ""
19955
19956 #. type: textblock
19957 #: ../fish/guestfish.pod:1215
19958 msgid ""
19959 "By default, guestfish will ignore case when tab-completing paths on the "
19960 "disk.  Use:"
19961 msgstr ""
19962
19963 #. type: verbatim
19964 #: ../fish/guestfish.pod:1218
19965 #, no-wrap
19966 msgid ""
19967 " set completion-ignore-case off\n"
19968 "\n"
19969 msgstr ""
19970
19971 #. type: textblock
19972 #: ../fish/guestfish.pod:1220
19973 msgid "to make guestfish case sensitive."
19974 msgstr ""
19975
19976 #. type: =item
19977 #: ../fish/guestfish.pod:1224
19978 msgid "test1.img"
19979 msgstr ""
19980
19981 #. type: =item
19982 #: ../fish/guestfish.pod:1226
19983 msgid "test2.img (etc)"
19984 msgstr ""
19985
19986 #. type: textblock
19987 #: ../fish/guestfish.pod:1228
19988 msgid ""
19989 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19990 "will be created in the file C<test1.img> in the current directory.  The "
19991 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19992 "the same name will be overwritten."
19993 msgstr ""
19994
19995 #. type: textblock
19996 #: ../fish/guestfish.pod:1237
19997 msgid ""
19998 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19999 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
20000 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
20001 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
20002 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
20003 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
20004 msgstr ""
20005
20006 #. type: textblock
20007 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3246
20008 #: ../test-tool/libguestfs-test-tool.pod:112
20009 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
20010 msgstr ""
20011
20012 #. type: textblock
20013 #: ../fish/virt-copy-in.pod:5
20014 msgid ""
20015 "virt-copy-in - Copy files and directories into a virtual machine disk image."
20016 msgstr ""
20017
20018 #. type: verbatim
20019 #: ../fish/virt-copy-in.pod:9
20020 #, no-wrap
20021 msgid ""
20022 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20023 "\n"
20024 msgstr ""
20025
20026 #. type: verbatim
20027 #: ../fish/virt-copy-in.pod:11
20028 #, no-wrap
20029 msgid ""
20030 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20031 "\n"
20032 msgstr ""
20033
20034 #. type: textblock
20035 #: ../fish/virt-copy-in.pod:15
20036 msgid ""
20037 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20038 "causing disk corruption.  The virtual machine must be shut down before you "
20039 "use this command."
20040 msgstr ""
20041
20042 #. type: textblock
20043 #: ../fish/virt-copy-in.pod:21
20044 msgid ""
20045 "C<virt-copy-in> copies files and directories from the local disk into a "
20046 "virtual machine disk image or named libvirt domain."
20047 msgstr ""
20048
20049 #. type: textblock
20050 #: ../fish/virt-copy-in.pod:24
20051 msgid ""
20052 "You can give one of more filenames and directories on the command line.  "
20053 "Directories are copied in recursively.  The final parameter must be the "
20054 "destination directory in the disk image which must be an absolute path "
20055 "starting with a C</> character."
20056 msgstr ""
20057
20058 #. type: verbatim
20059 #: ../fish/virt-copy-in.pod:33
20060 #, no-wrap
20061 msgid ""
20062 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20063 "\n"
20064 msgstr ""
20065
20066 #. type: textblock
20067 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20068 msgid "Upload a home directory to a guest:"
20069 msgstr ""
20070
20071 #. type: verbatim
20072 #: ../fish/virt-copy-in.pod:37
20073 #, no-wrap
20074 msgid ""
20075 " virt-copy-in -d MyGuest skel /home\n"
20076 "\n"
20077 msgstr ""
20078
20079 #. type: =head1
20080 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
20081 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20082 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20083 msgstr ""
20084
20085 #. type: textblock
20086 #: ../fish/virt-copy-in.pod:41
20087 msgid ""
20088 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20089 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
20090 "are probably better off using guestfish directly."
20091 msgstr ""
20092
20093 #. type: textblock
20094 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
20095 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20096 msgid ""
20097 "Since the shell script just passes options straight to guestfish, read "
20098 "L<guestfish(1)> to see the full list of options."
20099 msgstr ""
20100
20101 #. type: textblock
20102 #: ../fish/virt-copy-in.pod:52
20103 #, fuzzy
20104 #| msgid ""
20105 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20106 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20107 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20108 #| "libguestfs.org/>."
20109 msgid ""
20110 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20111 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20112 msgstr ""
20113 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20114 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20115 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20116 "org/>."
20117
20118 #. type: textblock
20119 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
20120 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20121 #, fuzzy
20122 #| msgid "Copyright (C) 2009 Red Hat Inc."
20123 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20124 msgstr "© Red Hat Inc., 2009"
20125
20126 #. type: textblock
20127 #: ../fish/virt-copy-out.pod:5
20128 msgid ""
20129 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20130 "image."
20131 msgstr ""
20132
20133 #. type: verbatim
20134 #: ../fish/virt-copy-out.pod:9
20135 #, no-wrap
20136 msgid ""
20137 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20138 "\n"
20139 msgstr ""
20140
20141 #. type: verbatim
20142 #: ../fish/virt-copy-out.pod:11
20143 #, no-wrap
20144 msgid ""
20145 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20146 "\n"
20147 msgstr ""
20148
20149 #. type: textblock
20150 #: ../fish/virt-copy-out.pod:15
20151 msgid ""
20152 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20153 "image or named libvirt domain."
20154 msgstr ""
20155
20156 #. type: textblock
20157 #: ../fish/virt-copy-out.pod:18
20158 msgid ""
20159 "You can give one of more filenames and directories on the command line.  "
20160 "Directories are copied out recursively."
20161 msgstr ""
20162
20163 #. type: textblock
20164 #: ../fish/virt-copy-out.pod:23
20165 msgid "Download the home directories from a virtual machine:"
20166 msgstr ""
20167
20168 #. type: verbatim
20169 #: ../fish/virt-copy-out.pod:25
20170 #, no-wrap
20171 msgid ""
20172 " mkdir homes\n"
20173 " virt-copy-out -d MyGuest /home homes\n"
20174 "\n"
20175 msgstr ""
20176
20177 #. type: textblock
20178 #: ../fish/virt-copy-out.pod:30
20179 msgid ""
20180 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20181 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
20182 "are probably better off using guestfish directly."
20183 msgstr ""
20184
20185 #. type: textblock
20186 #: ../fish/virt-copy-out.pod:41
20187 #, fuzzy
20188 #| msgid ""
20189 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20190 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20191 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20192 #| "libguestfs.org/>."
20193 msgid ""
20194 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
20195 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20196 msgstr ""
20197 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20198 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20199 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20200 "org/>."
20201
20202 #. type: textblock
20203 #: ../fish/virt-tar-in.pod:5
20204 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20205 msgstr ""
20206
20207 #. type: verbatim
20208 #: ../fish/virt-tar-in.pod:9
20209 #, no-wrap
20210 msgid ""
20211 " virt-tar-in -a disk.img data.tar /destination\n"
20212 "\n"
20213 msgstr ""
20214
20215 #. type: verbatim
20216 #: ../fish/virt-tar-in.pod:11
20217 #, no-wrap
20218 msgid ""
20219 " virt-tar-in -d domain data.tar /destination\n"
20220 "\n"
20221 msgstr ""
20222
20223 #. type: verbatim
20224 #: ../fish/virt-tar-in.pod:13
20225 #, no-wrap
20226 msgid ""
20227 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20228 "\n"
20229 msgstr ""
20230
20231 #. type: textblock
20232 #: ../fish/virt-tar-in.pod:17
20233 msgid ""
20234 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20235 "causing disk corruption.  The virtual machine must be shut down before you "
20236 "use this command."
20237 msgstr ""
20238
20239 #. type: textblock
20240 #: ../fish/virt-tar-in.pod:23
20241 msgid ""
20242 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20243 "image or named libvirt domain."
20244 msgstr ""
20245
20246 #. type: textblock
20247 #: ../fish/virt-tar-in.pod:26
20248 msgid ""
20249 "The first parameter is the tar file.  Use C<-> to read the tar file from "
20250 "standard input.  The second parameter is the absolute target directory to "
20251 "unpack into."
20252 msgstr ""
20253
20254 #. type: verbatim
20255 #: ../fish/virt-tar-in.pod:34
20256 #, no-wrap
20257 msgid ""
20258 " virt-tar-in -d MyGuest homes.tar /home\n"
20259 "\n"
20260 msgstr ""
20261
20262 #. type: textblock
20263 #: ../fish/virt-tar-in.pod:38
20264 msgid ""
20265 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20266 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
20267 "probably better off using guestfish directly."
20268 msgstr ""
20269
20270 #. type: textblock
20271 #: ../fish/virt-tar-in.pod:49
20272 #, fuzzy
20273 #| msgid ""
20274 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20275 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20276 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20277 #| "libguestfs.org/>."
20278 msgid ""
20279 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20280 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
20281 "org/>."
20282 msgstr ""
20283 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20284 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20285 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20286 "org/>."
20287
20288 #. type: textblock
20289 #: ../fish/virt-tar-out.pod:5
20290 msgid ""
20291 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20292 msgstr ""
20293
20294 #. type: verbatim
20295 #: ../fish/virt-tar-out.pod:9
20296 #, no-wrap
20297 msgid ""
20298 " virt-tar-out -a disk.img /dir files.tar\n"
20299 "\n"
20300 msgstr ""
20301
20302 #. type: verbatim
20303 #: ../fish/virt-tar-out.pod:11
20304 #, no-wrap
20305 msgid ""
20306 " virt-tar-out -d domain /dir files.tar\n"
20307 "\n"
20308 msgstr ""
20309
20310 #. type: verbatim
20311 #: ../fish/virt-tar-out.pod:13
20312 #, no-wrap
20313 msgid ""
20314 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20315 "\n"
20316 msgstr ""
20317
20318 #. type: textblock
20319 #: ../fish/virt-tar-out.pod:17
20320 msgid ""
20321 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20322 msgstr ""
20323
20324 #. type: textblock
20325 #: ../fish/virt-tar-out.pod:20
20326 msgid ""
20327 "The first parameter is the absolute path of the virtual machine directory.  "
20328 "The second parameter is the tar file to write.  Use C<-> to write to "
20329 "standard output."
20330 msgstr ""
20331
20332 #. type: textblock
20333 #: ../fish/virt-tar-out.pod:26
20334 msgid "Download the home directories from a guest:"
20335 msgstr ""
20336
20337 #. type: verbatim
20338 #: ../fish/virt-tar-out.pod:28
20339 #, no-wrap
20340 msgid ""
20341 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20342 "\n"
20343 msgstr ""
20344
20345 #. type: textblock
20346 #: ../fish/virt-tar-out.pod:32
20347 msgid ""
20348 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20349 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
20350 "are probably better off using guestfish directly."
20351 msgstr ""
20352
20353 #. type: textblock
20354 #: ../fish/virt-tar-out.pod:43
20355 #, fuzzy
20356 #| msgid ""
20357 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20358 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20359 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20360 #| "libguestfs.org/>."
20361 msgid ""
20362 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20363 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20364 msgstr ""
20365 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20366 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20367 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20368 "org/>."
20369
20370 #. type: textblock
20371 #: ../fuse/guestmount.pod:5
20372 msgid ""
20373 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20374 msgstr ""
20375
20376 #. type: verbatim
20377 #: ../fuse/guestmount.pod:9
20378 #, no-wrap
20379 msgid ""
20380 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20381 "\n"
20382 msgstr ""
20383
20384 #. type: verbatim
20385 #: ../fuse/guestmount.pod:11
20386 #, no-wrap
20387 msgid ""
20388 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20389 "\n"
20390 msgstr ""
20391
20392 #. type: verbatim
20393 #: ../fuse/guestmount.pod:13
20394 #, no-wrap
20395 msgid ""
20396 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20397 "\n"
20398 msgstr ""
20399
20400 #. type: textblock
20401 #: ../fuse/guestmount.pod:17
20402 msgid ""
20403 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20404 "machines.  If you do this, you risk disk corruption in the VM."
20405 msgstr ""
20406
20407 #. type: textblock
20408 #: ../fuse/guestmount.pod:22
20409 msgid ""
20410 "The guestmount program can be used to mount virtual machine filesystems and "
20411 "other disk images on the host.  It uses libguestfs for access to the guest "
20412 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20413 "a mountable device."
20414 msgstr ""
20415
20416 #. type: textblock
20417 #: ../fuse/guestmount.pod:27
20418 msgid ""
20419 "Along with other options, you have to give at least one device (I<-a> "
20420 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20421 "option) or use the I<-i> inspection option.  How this works is better "
20422 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20423 "below."
20424 msgstr ""
20425
20426 #. type: textblock
20427 #: ../fuse/guestmount.pod:33
20428 msgid ""
20429 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20430 "by you, and the filesystem will not be visible to any other users unless you "
20431 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20432 "the filesystem, use the C<fusermount -u> command."
20433 msgstr ""
20434
20435 #. type: textblock
20436 #: ../fuse/guestmount.pod:41
20437 msgid ""
20438 "For a typical Windows guest which has its main filesystem on the first "
20439 "partition:"
20440 msgstr ""
20441
20442 #. type: verbatim
20443 #: ../fuse/guestmount.pod:44
20444 #, no-wrap
20445 msgid ""
20446 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20447 "\n"
20448 msgstr ""
20449
20450 #. type: textblock
20451 #: ../fuse/guestmount.pod:46
20452 msgid ""
20453 "For a typical Linux guest which has a /boot filesystem on the first "
20454 "partition, and the root filesystem on a logical volume:"
20455 msgstr ""
20456
20457 #. type: verbatim
20458 #: ../fuse/guestmount.pod:49
20459 #, no-wrap
20460 msgid ""
20461 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20462 "\n"
20463 msgstr ""
20464
20465 #. type: textblock
20466 #: ../fuse/guestmount.pod:51
20467 msgid "To get libguestfs to detect guest mountpoints for you:"
20468 msgstr ""
20469
20470 #. type: verbatim
20471 #: ../fuse/guestmount.pod:53
20472 #, no-wrap
20473 msgid ""
20474 " guestmount -a guest.img -i --ro /mnt\n"
20475 "\n"
20476 msgstr ""
20477
20478 #. type: textblock
20479 #: ../fuse/guestmount.pod:55
20480 msgid "For a libvirt guest called \"Guest\" you could do:"
20481 msgstr ""
20482
20483 #. type: verbatim
20484 #: ../fuse/guestmount.pod:57
20485 #, no-wrap
20486 msgid ""
20487 " guestmount -d Guest -i --ro /mnt\n"
20488 "\n"
20489 msgstr ""
20490
20491 #. type: textblock
20492 #: ../fuse/guestmount.pod:59
20493 msgid ""
20494 "If you don't know what filesystems are contained in a guest or disk image, "
20495 "use L<virt-filesystems(1)> first:"
20496 msgstr ""
20497
20498 #. type: verbatim
20499 #: ../fuse/guestmount.pod:62
20500 #, no-wrap
20501 msgid ""
20502 " virt-filesystems MyGuest\n"
20503 "\n"
20504 msgstr ""
20505
20506 #. type: textblock
20507 #: ../fuse/guestmount.pod:64
20508 msgid ""
20509 "If you want to trace the libguestfs calls but without excessive debugging "
20510 "information, we recommend:"
20511 msgstr ""
20512
20513 #. type: verbatim
20514 #: ../fuse/guestmount.pod:67
20515 #, no-wrap
20516 msgid ""
20517 " guestmount [...] --trace /mnt\n"
20518 "\n"
20519 msgstr ""
20520
20521 #. type: textblock
20522 #: ../fuse/guestmount.pod:69
20523 msgid "If you want to debug the program, we recommend:"
20524 msgstr ""
20525
20526 #. type: verbatim
20527 #: ../fuse/guestmount.pod:71
20528 #, no-wrap
20529 msgid ""
20530 " guestmount [...] --trace --verbose /mnt\n"
20531 "\n"
20532 msgstr ""
20533
20534 #. type: =head1
20535 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20536 #: ../resize/virt-resize.pod:544
20537 msgid "NOTES"
20538 msgstr "ПРИМІТКИ"
20539
20540 #. type: =head2
20541 #: ../fuse/guestmount.pod:75
20542 msgid "Other users cannot see the filesystem by default"
20543 msgstr ""
20544
20545 #. type: textblock
20546 #: ../fuse/guestmount.pod:77
20547 msgid ""
20548 "If you mount a filesystem as one user (eg. root), then other users will not "
20549 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20550 "option when mounting:"
20551 msgstr ""
20552
20553 #. type: verbatim
20554 #: ../fuse/guestmount.pod:81
20555 #, no-wrap
20556 msgid ""
20557 " sudo guestmount [...] -o allow_other /mnt\n"
20558 "\n"
20559 msgstr ""
20560
20561 #. type: textblock
20562 #: ../fuse/guestmount.pod:91
20563 msgid "Add a block device or virtual machine image."
20564 msgstr ""
20565
20566 #. type: =item
20567 #: ../fuse/guestmount.pod:114
20568 msgid "B<--dir-cache-timeout N>"
20569 msgstr "B<--dir-cache-timeout N>"
20570
20571 #. type: textblock
20572 #: ../fuse/guestmount.pod:116
20573 msgid ""
20574 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20575 "seconds.  The readdir cache [actually, there are several semi-independent "
20576 "caches] is populated after a readdir(2) call with the stat and extended "
20577 "attributes of the files in the directory, in anticipation that they will be "
20578 "requested soon after."
20579 msgstr ""
20580
20581 #. type: textblock
20582 #: ../fuse/guestmount.pod:122
20583 msgid ""
20584 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20585 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20586 "requests, only cache existing ones."
20587 msgstr ""
20588
20589 #. type: textblock
20590 #: ../fuse/guestmount.pod:142
20591 msgid ""
20592 "If you have untrusted raw-format guest disk images, you should use this "
20593 "option to specify the disk format.  This avoids a possible security problem "
20594 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
20595 "guestfs_add_drive_opts>."
20596 msgstr ""
20597
20598 #. type: =item
20599 #: ../fuse/guestmount.pod:147
20600 msgid "B<--fuse-help>"
20601 msgstr "B<--fuse-help>"
20602
20603 #. type: textblock
20604 #: ../fuse/guestmount.pod:149
20605 msgid "Display help on special FUSE options (see I<-o> below)."
20606 msgstr ""
20607
20608 #. type: textblock
20609 #: ../fuse/guestmount.pod:153
20610 msgid "Display brief help and exit."
20611 msgstr ""
20612
20613 #. type: textblock
20614 #: ../fuse/guestmount.pod:177
20615 msgid ""
20616 "Mount the named partition or logical volume on the given mountpoint B<in the "
20617 "guest> (this has nothing to do with mountpoints in the host)."
20618 msgstr ""
20619
20620 #. type: textblock
20621 #: ../fuse/guestmount.pod:180
20622 msgid ""
20623 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20624 "something on C</>."
20625 msgstr ""
20626
20627 #. type: textblock
20628 #: ../fuse/guestmount.pod:197
20629 msgid ""
20630 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20631 "unmounted.  If you specify this option, then we don't attempt to sync the "
20632 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20633 msgstr ""
20634
20635 #. type: =item
20636 #: ../fuse/guestmount.pod:202
20637 #, fuzzy
20638 #| msgid "B<--partition>"
20639 msgid "B<-o option>"
20640 msgstr "B<--partition>"
20641
20642 #. type: =item
20643 #: ../fuse/guestmount.pod:204
20644 #, fuzzy
20645 #| msgid "B<--partition>"
20646 msgid "B<--option option>"
20647 msgstr "B<--partition>"
20648
20649 #. type: textblock
20650 #: ../fuse/guestmount.pod:206
20651 msgid "Pass extra options to FUSE."
20652 msgstr ""
20653
20654 #. type: textblock
20655 #: ../fuse/guestmount.pod:208
20656 msgid ""
20657 "To get a list of all the extra options supported by FUSE, use the command "
20658 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20659 "of them are a good idea."
20660 msgstr ""
20661
20662 #. type: verbatim
20663 #: ../fuse/guestmount.pod:212
20664 #, no-wrap
20665 msgid ""
20666 " guestmount --fuse-help\n"
20667 "\n"
20668 msgstr ""
20669
20670 #. type: textblock
20671 #: ../fuse/guestmount.pod:214
20672 msgid "Some potentially useful FUSE options:"
20673 msgstr ""
20674
20675 #. type: =item
20676 #: ../fuse/guestmount.pod:218
20677 msgid "B<-o allow_other>"
20678 msgstr ""
20679
20680 #. type: textblock
20681 #: ../fuse/guestmount.pod:220
20682 msgid "Allow other users to see the filesystem."
20683 msgstr ""
20684
20685 #. type: =item
20686 #: ../fuse/guestmount.pod:222
20687 msgid "B<-o attr_timeout=N>"
20688 msgstr "B<-o attr_timeout=N>"
20689
20690 #. type: textblock
20691 #: ../fuse/guestmount.pod:224
20692 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20693 msgstr ""
20694
20695 #. type: =item
20696 #: ../fuse/guestmount.pod:226
20697 msgid "B<-o kernel_cache>"
20698 msgstr ""
20699
20700 #. type: textblock
20701 #: ../fuse/guestmount.pod:228
20702 msgid ""
20703 "Allow the kernel to cache files (reduces the number of reads that have to go "
20704 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20705 "afford the extra memory usage."
20706 msgstr ""
20707
20708 #. type: =item
20709 #: ../fuse/guestmount.pod:232
20710 msgid "B<-o uid=N> B<-o gid=N>"
20711 msgstr ""
20712
20713 #. type: textblock
20714 #: ../fuse/guestmount.pod:234
20715 msgid ""
20716 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20717 "the chosen values."
20718 msgstr ""
20719
20720 #. type: textblock
20721 #: ../fuse/guestmount.pod:243
20722 msgid ""
20723 "Add devices and mount everything read-only.  Also disallow writes and make "
20724 "the disk appear read-only to FUSE."
20725 msgstr ""
20726
20727 #. type: textblock
20728 #: ../fuse/guestmount.pod:246
20729 msgid ""
20730 "This is highly recommended if you are not going to edit the guest disk.  If "
20731 "the guest is running and this option is I<not> supplied, then there is a "
20732 "strong risk of disk corruption in the guest.  We try to prevent this from "
20733 "happening, but it is not always possible."
20734 msgstr ""
20735
20736 #. type: textblock
20737 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20738 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20739 msgstr ""
20740
20741 #. type: textblock
20742 #: ../fuse/guestmount.pod:255
20743 msgid "Enable SELinux support for the guest."
20744 msgstr ""
20745
20746 #. type: textblock
20747 #: ../fuse/guestmount.pod:261
20748 msgid "Enable verbose messages from underlying libguestfs."
20749 msgstr ""
20750
20751 #. type: textblock
20752 #: ../fuse/guestmount.pod:267
20753 msgid "Display the program version and exit."
20754 msgstr ""
20755
20756 #. type: textblock
20757 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20758 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
20759 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20760 msgstr ""
20761
20762 #. type: =item
20763 #: ../fuse/guestmount.pod:280
20764 #, fuzzy
20765 #| msgid "B<--ro>"
20766 msgid "B<--trace>"
20767 msgstr "B<--ro>"
20768
20769 #. type: textblock
20770 #: ../fuse/guestmount.pod:282
20771 msgid "Trace libguestfs calls and entry into each FUSE function."
20772 msgstr ""
20773
20774 #. type: textblock
20775 #: ../fuse/guestmount.pod:284
20776 msgid "This also stops the daemon from forking into the background."
20777 msgstr ""
20778
20779 #. type: textblock
20780 #: ../fuse/guestmount.pod:310
20781 msgid ""
20782 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20783 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20784 "net/>."
20785 msgstr ""
20786
20787 #. type: textblock
20788 #: ../fuse/guestmount.pod:325
20789 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20790 msgstr ""
20791
20792 #. type: textblock
20793 #: ../inspector/virt-inspector.pod:5
20794 msgid ""
20795 "virt-inspector - Display operating system version and other information "
20796 "about a virtual machine"
20797 msgstr ""
20798
20799 #. type: verbatim
20800 #: ../inspector/virt-inspector.pod:9
20801 #, fuzzy, no-wrap
20802 #| msgid ""
20803 #| " virt-list-partitions [--options] domname\n"
20804 #| "\n"
20805 msgid ""
20806 " virt-inspector [--options] -d domname\n"
20807 "\n"
20808 msgstr ""
20809 " virt-list-partitions [--параметри] назва_домену\n"
20810 "\n"
20811
20812 #. type: verbatim
20813 #: ../inspector/virt-inspector.pod:11
20814 #, fuzzy, no-wrap
20815 #| msgid ""
20816 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20817 #| "\n"
20818 msgid ""
20819 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20820 "\n"
20821 msgstr ""
20822 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20823 "\n"
20824
20825 #. type: verbatim
20826 #: ../inspector/virt-inspector.pod:15
20827 #, fuzzy, no-wrap
20828 #| msgid ""
20829 #| " virt-list-partitions [--options] domname\n"
20830 #| "\n"
20831 msgid ""
20832 " virt-inspector domname\n"
20833 "\n"
20834 msgstr ""
20835 " virt-list-partitions [--параметри] назва_домену\n"
20836 "\n"
20837
20838 #. type: verbatim
20839 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20840 #, fuzzy, no-wrap
20841 #| msgid ""
20842 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20843 #| "\n"
20844 msgid ""
20845 " virt-inspector disk.img [disk.img ...]\n"
20846 "\n"
20847 msgstr ""
20848 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20849 "\n"
20850
20851 #. type: textblock
20852 #: ../inspector/virt-inspector.pod:21
20853 msgid ""
20854 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20855 "determine the version of the operating system and other information about "
20856 "the virtual machine."
20857 msgstr ""
20858
20859 #. type: textblock
20860 #: ../inspector/virt-inspector.pod:25
20861 msgid "Virt-inspector produces XML output for feeding into other programs."
20862 msgstr ""
20863
20864 #. type: textblock
20865 #: ../inspector/virt-inspector.pod:27
20866 msgid ""
20867 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20868 "the libvirt domain (see: C<virsh list --all>)."
20869 msgstr ""
20870
20871 #. type: textblock
20872 #: ../inspector/virt-inspector.pod:30
20873 msgid ""
20874 "You can also run virt-inspector directly on disk images from a single "
20875 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20876 "has several block devices, in which case you should list several I<-a> "
20877 "options one after another, with the first corresponding to the guest's C</"
20878 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20879 msgstr ""
20880
20881 #. type: textblock
20882 #: ../inspector/virt-inspector.pod:37
20883 msgid ""
20884 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20885 "keys and similar."
20886 msgstr ""
20887
20888 #. type: textblock
20889 #: ../inspector/virt-inspector.pod:40
20890 msgid ""
20891 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20892 "inspect several virtual machines, you have to run virt-inspector several "
20893 "times (for example, from a shell script for-loop)."
20894 msgstr ""
20895
20896 #. type: textblock
20897 #: ../inspector/virt-inspector.pod:45
20898 msgid ""
20899 "Because virt-inspector needs direct access to guest images, it won't "
20900 "normally work over remote libvirt connections."
20901 msgstr ""
20902
20903 #. type: textblock
20904 #: ../inspector/virt-inspector.pod:48
20905 msgid ""
20906 "All of the information available from virt-inspector is also available "
20907 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20908 "The same information can also be fetched using guestfish or via libguestfs "
20909 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20910 "WITH OTHER PROGRAMMING LANGUAGES>)."
20911 msgstr ""
20912
20913 #. type: textblock
20914 #: ../inspector/virt-inspector.pod:81
20915 msgid ""
20916 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20917 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20918 "at all."
20919 msgstr ""
20920
20921 #. type: textblock
20922 #: ../inspector/virt-inspector.pod:94
20923 msgid ""
20924 "When prompting for keys and passphrases, virt-inspector normally turns "
20925 "echoing off so you cannot see what you are typing.  If you are not worried "
20926 "about Tempest attacks and there is no one else in the room you can specify "
20927 "this flag to see what you are typing."
20928 msgstr ""
20929
20930 #. type: textblock
20931 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20932 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20933 #: ../tools/virt-win-reg.pl:144
20934 msgid ""
20935 "Specify the format of disk images given on the command line.  If this is "
20936 "omitted then the format is autodetected from the content of the disk image."
20937 msgstr ""
20938
20939 #. type: textblock
20940 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20941 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20942 #: ../tools/virt-win-reg.pl:148
20943 msgid ""
20944 "If disk images are requested from libvirt, then this program asks libvirt "
20945 "for this information.  In this case, the value of the format parameter is "
20946 "ignored."
20947 msgstr ""
20948
20949 #. type: textblock
20950 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20951 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
20952 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20953 #: ../tools/virt-win-reg.pl:152
20954 msgid ""
20955 "If working with untrusted raw-format guest disk images, you should ensure "
20956 "the format is always specified."
20957 msgstr ""
20958
20959 #. type: textblock
20960 #: ../inspector/virt-inspector.pod:139
20961 msgid "Previous versions of virt-inspector allowed you to write either:"
20962 msgstr ""
20963
20964 #. type: verbatim
20965 #: ../inspector/virt-inspector.pod:145
20966 #, fuzzy, no-wrap
20967 #| msgid ""
20968 #| " inspect-get-hostname root\n"
20969 #| "\n"
20970 msgid ""
20971 " virt-inspector guestname\n"
20972 "\n"
20973 msgstr ""
20974 " inspect-get-hostname корінь\n"
20975 "\n"
20976
20977 #. type: =head1
20978 #: ../inspector/virt-inspector.pod:153
20979 msgid "XML FORMAT"
20980 msgstr ""
20981
20982 #. type: textblock
20983 #: ../inspector/virt-inspector.pod:155
20984 msgid ""
20985 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20986 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
20987 "just an overview."
20988 msgstr ""
20989
20990 #. type: textblock
20991 #: ../inspector/virt-inspector.pod:159
20992 msgid ""
20993 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20994 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
20995 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20996 "which is vanishingly rare in real world VMs."
20997 msgstr ""
20998
20999 #. type: =head2
21000 #: ../inspector/virt-inspector.pod:164
21001 msgid "E<lt>operatingsystemE<gt>"
21002 msgstr ""
21003
21004 #. type: textblock
21005 #: ../inspector/virt-inspector.pod:166
21006 msgid ""
21007 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21008 "describe the operating system, its architecture, the descriptive \"product "
21009 "name\" string, the type of OS and so on, as in this example:"
21010 msgstr ""
21011
21012 #. type: verbatim
21013 #: ../inspector/virt-inspector.pod:170
21014 #, no-wrap
21015 msgid ""
21016 " <operatingsystems>\n"
21017 "   <operatingsystem>\n"
21018 "     <root>/dev/sda2</root>\n"
21019 "     <name>windows</name>\n"
21020 "     <arch>i386</arch>\n"
21021 "     <distro>windows</distro>\n"
21022 "     <product_name>Windows 7 Enterprise</product_name>\n"
21023 "     <product_variant>Client</product_variant>\n"
21024 "     <major_version>6</major_version>\n"
21025 "     <minor_version>1</minor_version>\n"
21026 "     <windows_systemroot>/Windows</windows_systemroot>\n"
21027 "     <format>installed</format>\n"
21028 "\n"
21029 msgstr ""
21030
21031 #. type: textblock
21032 #: ../inspector/virt-inspector.pod:183
21033 msgid ""
21034 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21035 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21036 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21037 "architecture.  The other fields are fairly self-explanatory, but because "
21038 "these fields are taken directly from the libguestfs inspection API you can "
21039 "find precise information from L<guestfs(3)/INSPECTION>."
21040 msgstr ""
21041
21042 #. type: textblock
21043 #: ../inspector/virt-inspector.pod:191
21044 msgid ""
21045 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21046 "of view of libguestfs (block devices may have completely different names "
21047 "inside the VM itself)."
21048 msgstr ""
21049
21050 #. type: =head2
21051 #: ../inspector/virt-inspector.pod:195
21052 #, fuzzy
21053 #| msgid "mountpoints"
21054 msgid "E<lt>mountpointsE<gt>"
21055 msgstr "mountpoints"
21056
21057 #. type: textblock
21058 #: ../inspector/virt-inspector.pod:197
21059 msgid ""
21060 "Un*x-like guests typically have multiple filesystems which are mounted at "
21061 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21062 "element which looks like this:"
21063 msgstr ""
21064
21065 #. type: verbatim
21066 #: ../inspector/virt-inspector.pod:201
21067 #, no-wrap
21068 msgid ""
21069 " <operatingsystems>\n"
21070 "   <operatingsystem>\n"
21071 "     ...\n"
21072 "     <mountpoints>\n"
21073 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21074 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21075 "     </mountpoints>\n"
21076 "\n"
21077 msgstr ""
21078
21079 #. type: textblock
21080 #: ../inspector/virt-inspector.pod:209
21081 msgid ""
21082 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21083 "and may have completely different names inside the guest.  Only mountable "
21084 "filesystems appear in this list, not things like swap devices."
21085 msgstr ""
21086
21087 #. type: =head2
21088 #: ../inspector/virt-inspector.pod:214
21089 #, fuzzy
21090 #| msgid "list-filesystems"
21091 msgid "E<lt>filesystemsE<gt>"
21092 msgstr "list-filesystems"
21093
21094 #. type: textblock
21095 #: ../inspector/virt-inspector.pod:216
21096 msgid ""
21097 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21098 "filesystems belonging to the guest, including swap and empty partitions.  "
21099 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21100 "this OS or shared with this OS and other OSes)."
21101 msgstr ""
21102
21103 #. type: textblock
21104 #: ../inspector/virt-inspector.pod:222
21105 msgid "You might see something like this:"
21106 msgstr ""
21107
21108 #. type: verbatim
21109 #: ../inspector/virt-inspector.pod:224
21110 #, no-wrap
21111 msgid ""
21112 " <operatingsystems>\n"
21113 "   <operatingsystem>\n"
21114 "     ...\n"
21115 "     <filesystems>\n"
21116 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21117 "         <type>ext4</type>\n"
21118 "         <label>Fedora-13-x86_64</label>\n"
21119 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21120 "       </filesystem>\n"
21121 "\n"
21122 msgstr ""
21123
21124 #. type: textblock
21125 #: ../inspector/virt-inspector.pod:234
21126 msgid ""
21127 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21128 "the label, and the UUID."
21129 msgstr ""
21130
21131 #. type: =head2
21132 #: ../inspector/virt-inspector.pod:237
21133 msgid "E<lt>applicationsE<gt>"
21134 msgstr ""
21135
21136 #. type: textblock
21137 #: ../inspector/virt-inspector.pod:239
21138 msgid ""
21139 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21140 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21141 "machine."
21142 msgstr ""
21143
21144 #. type: textblock
21145 #: ../inspector/virt-inspector.pod:243
21146 msgid ""
21147 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21148 "Typical values would be C<rpm> and C<deb>."
21149 msgstr ""
21150
21151 #. type: textblock
21152 #: ../inspector/virt-inspector.pod:246
21153 msgid ""
21154 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21155 "Typical values include C<yum>, C<up2date> and C<apt>"
21156 msgstr ""
21157
21158 #. type: textblock
21159 #: ../inspector/virt-inspector.pod:249
21160 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21161 msgstr ""
21162
21163 #. type: verbatim
21164 #: ../inspector/virt-inspector.pod:252
21165 #, no-wrap
21166 msgid ""
21167 " <operatingsystems>\n"
21168 "   <operatingsystem>\n"
21169 "     ...\n"
21170 "     <applications>\n"
21171 "       <application>\n"
21172 "         <name>coreutils</name>\n"
21173 "         <version>8.5</version>\n"
21174 "         <release>1</release>\n"
21175 "       </application>\n"
21176 "\n"
21177 msgstr ""
21178
21179 #. type: textblock
21180 #: ../inspector/virt-inspector.pod:262
21181 msgid ""
21182 "The version and release fields may not be available for some types guests.  "
21183 "Other fields are possible, see L<guestfs(3)/"
21184 "guestfs_inspect_list_applications>."
21185 msgstr ""
21186
21187 #. type: =head2
21188 #: ../inspector/virt-inspector.pod:266
21189 msgid "E<lt>drive_mappingsE<gt>"
21190 msgstr ""
21191
21192 #. type: textblock
21193 #: ../inspector/virt-inspector.pod:268
21194 msgid ""
21195 "For operating systems like Windows which use drive letters, virt-inspector "
21196 "is able to find out how drive letters map to filesystems."
21197 msgstr ""
21198
21199 #. type: verbatim
21200 #: ../inspector/virt-inspector.pod:272
21201 #, no-wrap
21202 msgid ""
21203 " <operatingsystems>\n"
21204 "   <operatingsystem>\n"
21205 "     ...\n"
21206 "     <drive_mappings>\n"
21207 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21208 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21209 "     </drive_mappings>\n"
21210 "\n"
21211 msgstr ""
21212
21213 #. type: textblock
21214 #: ../inspector/virt-inspector.pod:280
21215 msgid ""
21216 "In the example above, drive C maps to the filesystem on the second partition "
21217 "on the first disk, and drive E maps to the filesystem on the first partition "
21218 "on the second disk."
21219 msgstr ""
21220
21221 #. type: textblock
21222 #: ../inspector/virt-inspector.pod:284
21223 msgid ""
21224 "Note that this only covers permanent local filesystem mappings, not things "
21225 "like network shares.  Furthermore NTFS volume mount points may not be listed "
21226 "here."
21227 msgstr ""
21228
21229 #. type: =head2
21230 #: ../inspector/virt-inspector.pod:288
21231 #, fuzzy
21232 #| msgid "B<-s E<lt>NE<gt>>"
21233 msgid "E<lt>iconE<gt>"
21234 msgstr "B<-s E<lt>NE<gt>>"
21235
21236 #. type: textblock
21237 #: ../inspector/virt-inspector.pod:290
21238 msgid ""
21239 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
21240 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
21241 "very large and high quality."
21242 msgstr ""
21243
21244 #. type: verbatim
21245 #: ../inspector/virt-inspector.pod:294
21246 #, no-wrap
21247 msgid ""
21248 " <operatingsystems>\n"
21249 "   <operatingsystem>\n"
21250 "     ...\n"
21251 "     <icon>\n"
21252 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21253 "       [... many lines of base64 data ...]\n"
21254 "     </icon>\n"
21255 "\n"
21256 msgstr ""
21257
21258 #. type: textblock
21259 #: ../inspector/virt-inspector.pod:302
21260 msgid ""
21261 "To display the icon, you have to extract it and convert the base64 data back "
21262 "to a binary file.  Use an XPath query or simply an editor to extract the "
21263 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21264 "to a PNG file:"
21265 msgstr ""
21266
21267 #. type: verbatim
21268 #: ../inspector/virt-inspector.pod:307
21269 #, no-wrap
21270 msgid ""
21271 " base64 -i -d < icon.data > icon.png\n"
21272 "\n"
21273 msgstr ""
21274
21275 #. type: =head2
21276 #: ../inspector/virt-inspector.pod:309
21277 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21278 msgstr ""
21279
21280 #. type: textblock
21281 #: ../inspector/virt-inspector.pod:311
21282 msgid ""
21283 "Virt-inspector can detect some operating system installers on install disks, "
21284 "live CDs, bootable USB keys and more."
21285 msgstr ""
21286
21287 #. type: textblock
21288 #: ../inspector/virt-inspector.pod:314
21289 msgid ""
21290 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21291 "fields may be present to indicate a live CD, network installer, or one part "
21292 "of a multipart CD.  For example:"
21293 msgstr ""
21294
21295 #. type: verbatim
21296 #: ../inspector/virt-inspector.pod:318
21297 #, no-wrap
21298 msgid ""
21299 " <operatingsystems>\n"
21300 "   <operatingsystem>\n"
21301 "     <root>/dev/sda</root>\n"
21302 "     <name>linux</name>\n"
21303 "     <arch>i386</arch>\n"
21304 "     <distro>ubuntu</distro>\n"
21305 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
21306 "     <major_version>10</major_version>\n"
21307 "     <minor_version>10</minor_version>\n"
21308 "     <format>installer</format>\n"
21309 "     <live/>\n"
21310 "\n"
21311 msgstr ""
21312
21313 #. type: =head1
21314 #: ../inspector/virt-inspector.pod:330
21315 msgid "USING XPATH"
21316 msgstr ""
21317
21318 #. type: textblock
21319 #: ../inspector/virt-inspector.pod:332
21320 msgid ""
21321 "You can use the XPath query language to select parts of the XML.  We "
21322 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
21323 msgstr ""
21324
21325 #. type: verbatim
21326 #: ../inspector/virt-inspector.pod:338
21327 #, no-wrap
21328 msgid ""
21329 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21330 " <filesystems>\n"
21331 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21332 "        <type>ext4</type>\n"
21333 " [...]\n"
21334 "\n"
21335 msgstr ""
21336
21337 #. type: verbatim
21338 #: ../inspector/virt-inspector.pod:344
21339 #, no-wrap
21340 msgid ""
21341 " $ virt-inspector -d Guest | \\\n"
21342 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21343 " ext4\n"
21344 "\n"
21345 msgstr ""
21346
21347 #. type: verbatim
21348 #: ../inspector/virt-inspector.pod:348
21349 #, no-wrap
21350 msgid ""
21351 " $ virt-inspector -d Guest | \\\n"
21352 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21353 " [displays the guest icon, if there is one]\n"
21354 "\n"
21355 msgstr ""
21356
21357 #. type: =head1
21358 #: ../inspector/virt-inspector.pod:359
21359 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21360 msgstr ""
21361
21362 #. type: textblock
21363 #: ../inspector/virt-inspector.pod:361
21364 msgid ""
21365 "Early versions of libguestfs shipped with a different virt-inspector program "
21366 "written in Perl (the current version is written in C).  The XML output of "
21367 "the Perl virt-inspector was different and it could also output in other "
21368 "formats like text."
21369 msgstr ""
21370
21371 #. type: textblock
21372 #: ../inspector/virt-inspector.pod:366
21373 msgid ""
21374 "The old virt-inspector is no longer supported or shipped with libguestfs."
21375 msgstr ""
21376
21377 #. type: textblock
21378 #: ../inspector/virt-inspector.pod:369
21379 msgid ""
21380 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21381 "versions of virt-inspector with different names:"
21382 msgstr ""
21383
21384 #. type: verbatim
21385 #: ../inspector/virt-inspector.pod:372
21386 #, no-wrap
21387 msgid ""
21388 " virt-inspector     Old Perl version.\n"
21389 " virt-inspector2    New C version.\n"
21390 "\n"
21391 msgstr ""
21392
21393 #. type: textblock
21394 #: ../inspector/virt-inspector.pod:382
21395 #, fuzzy
21396 #| msgid ""
21397 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21398 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21399 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21400 msgid ""
21401 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
21402 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21403 msgstr ""
21404 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21405 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21406 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21407
21408 #. type: textblock
21409 #: ../inspector/virt-inspector.pod:399
21410 msgid "Matthew Booth L<mbooth@redhat.com>"
21411 msgstr ""
21412
21413 #. type: textblock
21414 #: ../java/examples/guestfs-java.pod:5
21415 msgid "guestfs-java - How to use libguestfs from Java"
21416 msgstr ""
21417
21418 #. type: verbatim
21419 #: ../java/examples/guestfs-java.pod:9
21420 #, no-wrap
21421 msgid ""
21422 " import com.redhat.et.libguestfs.*;\n"
21423 " \n"
21424 msgstr ""
21425
21426 #. type: verbatim
21427 #: ../java/examples/guestfs-java.pod:11
21428 #, no-wrap
21429 msgid ""
21430 " GuestFS g = new GuestFS ();\n"
21431 " g.add_drive_opts (\"disk.img\", null);\n"
21432 " g.launch ();\n"
21433 "\n"
21434 msgstr ""
21435
21436 #. type: textblock
21437 #: ../java/examples/guestfs-java.pod:17
21438 msgid ""
21439 "This manual page documents how to call libguestfs from the Java programming "
21440 "language.  This page just documents the differences from the C API and gives "
21441 "some examples.  If you are not familiar with using libguestfs, you also need "
21442 "to read L<guestfs(3)>."
21443 msgstr ""
21444
21445 #. type: =head2
21446 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21447 msgid "CLOSING THE HANDLE"
21448 msgstr ""
21449
21450 #. type: textblock
21451 #: ../java/examples/guestfs-java.pod:24
21452 msgid ""
21453 "The handle is closed when it is reaped by the garbage collector.  Because "
21454 "libguestfs handles include a lot of state, it is also possible to close (and "
21455 "hence free) them explicitly by calling the C<close> method."
21456 msgstr ""
21457
21458 #. type: =head2
21459 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21460 #: ../python/examples/guestfs-python.pod:21
21461 #: ../ruby/examples/guestfs-ruby.pod:22
21462 #, fuzzy
21463 #| msgid "OPTIONS"
21464 msgid "EXCEPTIONS"
21465 msgstr "ПАРАМЕТРИ"
21466
21467 #. type: textblock
21468 #: ../java/examples/guestfs-java.pod:31
21469 msgid ""
21470 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21471 "exception.  This has a single parameter which is the error message (a "
21472 "C<String>)."
21473 msgstr ""
21474
21475 #. type: textblock
21476 #: ../java/examples/guestfs-java.pod:35
21477 msgid "Calling any method on a closed handle raises the same exception."
21478 msgstr ""
21479
21480 #. type: textblock
21481 #: ../java/examples/guestfs-java.pod:47
21482 #, fuzzy
21483 #| msgid ""
21484 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21485 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21486 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21487 msgid ""
21488 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
21489 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21490 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21491 msgstr ""
21492 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21493 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21494 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21495
21496 #. type: textblock
21497 #: ../ocaml/examples/guestfs-ocaml.pod:5
21498 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21499 msgstr ""
21500
21501 #. type: textblock
21502 #: ../ocaml/examples/guestfs-ocaml.pod:9
21503 msgid "Module style:"
21504 msgstr ""
21505
21506 #. type: verbatim
21507 #: ../ocaml/examples/guestfs-ocaml.pod:11
21508 #, no-wrap
21509 msgid ""
21510 " let g = Guestfs.create () in\n"
21511 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21512 " Guestfs.launch g;\n"
21513 "\n"
21514 msgstr ""
21515
21516 #. type: textblock
21517 #: ../ocaml/examples/guestfs-ocaml.pod:15
21518 msgid "Object-oriented style:"
21519 msgstr ""
21520
21521 #. type: verbatim
21522 #: ../ocaml/examples/guestfs-ocaml.pod:17
21523 #, no-wrap
21524 msgid ""
21525 " let g = new Guestfs.guestfs () in\n"
21526 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21527 " g#launch ();\n"
21528 "\n"
21529 msgstr ""
21530
21531 #. type: verbatim
21532 #: ../ocaml/examples/guestfs-ocaml.pod:21
21533 #, no-wrap
21534 msgid ""
21535 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21536 "or:\n"
21537 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21538 "\n"
21539 msgstr ""
21540
21541 #. type: textblock
21542 #: ../ocaml/examples/guestfs-ocaml.pod:27
21543 msgid ""
21544 "This manual page documents how to call libguestfs from the OCaml programming "
21545 "language.  This page just documents the differences from the C API and gives "
21546 "some examples.  If you are not familiar with using libguestfs, you also need "
21547 "to read L<guestfs(3)>."
21548 msgstr ""
21549
21550 #. type: =head2
21551 #: ../ocaml/examples/guestfs-ocaml.pod:32
21552 msgid "PROGRAMMING STYLES"
21553 msgstr ""
21554
21555 #. type: textblock
21556 #: ../ocaml/examples/guestfs-ocaml.pod:34
21557 msgid ""
21558 "There are two different programming styles supported by the OCaml bindings.  "
21559 "You can use a module style, with each C function mapped to an OCaml function:"
21560 msgstr ""
21561
21562 #. type: verbatim
21563 #: ../ocaml/examples/guestfs-ocaml.pod:38
21564 #, fuzzy, no-wrap
21565 #| msgid ""
21566 #| " int guestfs_last_errno (guestfs_h *g);\n"
21567 #| "\n"
21568 msgid ""
21569 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21570 "\n"
21571 msgstr ""
21572 " int guestfs_last_errno (guestfs_h *g);\n"
21573 "\n"
21574
21575 #. type: textblock
21576 #: ../ocaml/examples/guestfs-ocaml.pod:40
21577 msgid "becomes:"
21578 msgstr ""
21579
21580 #. type: verbatim
21581 #: ../ocaml/examples/guestfs-ocaml.pod:42
21582 #, no-wrap
21583 msgid ""
21584 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21585 "\n"
21586 msgstr ""
21587
21588 #. type: textblock
21589 #: ../ocaml/examples/guestfs-ocaml.pod:44
21590 msgid ""
21591 "Alternately you can use an object-oriented style, calling methods on the "
21592 "class C<Guestfs.guestfs>:"
21593 msgstr ""
21594
21595 #. type: verbatim
21596 #: ../ocaml/examples/guestfs-ocaml.pod:47
21597 #, no-wrap
21598 msgid ""
21599 " method set_verbose : bool -> unit\n"
21600 "\n"
21601 msgstr ""
21602
21603 #. type: textblock
21604 #: ../ocaml/examples/guestfs-ocaml.pod:49
21605 msgid ""
21606 "The object-oriented style is usually briefer, and the minor performance "
21607 "penalty isn't noticable in the general overhead of performing libguestfs "
21608 "functions."
21609 msgstr ""
21610
21611 #. type: textblock
21612 #: ../ocaml/examples/guestfs-ocaml.pod:55
21613 msgid ""
21614 "The handle is closed when it is reaped by the garbage collector.  Because "
21615 "libguestfs handles include a lot of state, it is also possible to close (and "
21616 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21617 "method."
21618 msgstr ""
21619
21620 #. type: textblock
21621 #: ../ocaml/examples/guestfs-ocaml.pod:62
21622 msgid ""
21623 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21624 "exception.  This has a single parameter which is the error message (a "
21625 "string)."
21626 msgstr ""
21627
21628 #. type: textblock
21629 #: ../ocaml/examples/guestfs-ocaml.pod:66
21630 msgid ""
21631 "Calling any function/method on a closed handle raises C<Guestfs."
21632 "Handle_closed>.  The single parameter is the name of the function that you "
21633 "called."
21634 msgstr ""
21635
21636 #. type: textblock
21637 #: ../ocaml/examples/guestfs-ocaml.pod:80
21638 #, fuzzy
21639 #| msgid ""
21640 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21641 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21642 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21643 msgid ""
21644 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21645 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21646 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21647 msgstr ""
21648 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21649 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21650 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21651
21652 #. type: textblock
21653 #: ../perl/examples/guestfs-perl.pod:5
21654 msgid "guestfs-perl - How to use libguestfs from Perl"
21655 msgstr ""
21656
21657 #. type: verbatim
21658 #: ../perl/examples/guestfs-perl.pod:9
21659 #, no-wrap
21660 msgid ""
21661 " use Sys::Guestfs;\n"
21662 " \n"
21663 msgstr ""
21664
21665 #. type: verbatim
21666 #: ../perl/examples/guestfs-perl.pod:11
21667 #, no-wrap
21668 msgid ""
21669 " my $h = Sys::Guestfs->new ();\n"
21670 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21671 " $h->launch ();\n"
21672 " $h->mount_options ('', '/dev/sda1', '/');\n"
21673 " $h->touch ('/hello');\n"
21674 " $h->sync ();\n"
21675 "\n"
21676 msgstr ""
21677
21678 #. type: textblock
21679 #: ../perl/examples/guestfs-perl.pod:20
21680 msgid ""
21681 "This manual page documents how to call libguestfs from the Perl programming "
21682 "language.  This page just documents the differences from the C API and gives "
21683 "some examples.  If you are not familiar with using libguestfs, you also need "
21684 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21685 msgstr ""
21686
21687 #. type: =head2
21688 #: ../perl/examples/guestfs-perl.pod:26
21689 msgid "ERRORS"
21690 msgstr ""
21691
21692 #. type: textblock
21693 #: ../perl/examples/guestfs-perl.pod:28
21694 msgid ""
21695 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21696 ">)."
21697 msgstr ""
21698
21699 #. type: textblock
21700 #: ../perl/examples/guestfs-perl.pod:41
21701 #, fuzzy
21702 #| msgid ""
21703 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21704 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21705 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21706 msgid ""
21707 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
21708 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
21709 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21710 msgstr ""
21711 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21712 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21713 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21714
21715 #. type: textblock
21716 #: ../python/examples/guestfs-python.pod:5
21717 msgid "guestfs-python - How to use libguestfs from Python"
21718 msgstr ""
21719
21720 #. type: verbatim
21721 #: ../python/examples/guestfs-python.pod:9
21722 #, no-wrap
21723 msgid ""
21724 " import guestfs\n"
21725 " g = guestfs.GuestFS ()\n"
21726 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21727 " g.launch\n"
21728 "\n"
21729 msgstr ""
21730
21731 #. type: textblock
21732 #: ../python/examples/guestfs-python.pod:16
21733 msgid ""
21734 "This manual page documents how to call libguestfs from the Python "
21735 "programming language.  This page just documents the differences from the C "
21736 "API and gives some examples.  If you are not familiar with using libguestfs, "
21737 "you also need to read L<guestfs(3)>."
21738 msgstr ""
21739
21740 #. type: textblock
21741 #: ../python/examples/guestfs-python.pod:23
21742 msgid ""
21743 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21744 "single string argument which is the error message."
21745 msgstr ""
21746
21747 #. type: =head2
21748 #: ../python/examples/guestfs-python.pod:26
21749 msgid "MORE DOCUMENTATION"
21750 msgstr ""
21751
21752 #. type: textblock
21753 #: ../python/examples/guestfs-python.pod:28
21754 msgid "Type:"
21755 msgstr ""
21756
21757 #. type: verbatim
21758 #: ../python/examples/guestfs-python.pod:30
21759 #, no-wrap
21760 msgid ""
21761 " $ python\n"
21762 " >>> import guestfs\n"
21763 " >>> help (guestfs)\n"
21764 "\n"
21765 msgstr ""
21766
21767 #. type: textblock
21768 #: ../python/examples/guestfs-python.pod:44
21769 #, fuzzy
21770 #| msgid ""
21771 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21772 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21773 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21774 msgid ""
21775 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21776 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
21777 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21778 msgstr ""
21779 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21780 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21781 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21782
21783 #. type: textblock
21784 #: ../rescue/virt-rescue.pod:5
21785 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21786 msgstr ""
21787
21788 #. type: verbatim
21789 #: ../rescue/virt-rescue.pod:9
21790 #, fuzzy, no-wrap
21791 #| msgid ""
21792 #| " virt-list-partitions [--options] domname\n"
21793 #| "\n"
21794 msgid ""
21795 " virt-rescue [--options] -d domname\n"
21796 "\n"
21797 msgstr ""
21798 " virt-list-partitions [--параметри] назва_домену\n"
21799 "\n"
21800
21801 #. type: verbatim
21802 #: ../rescue/virt-rescue.pod:11
21803 #, fuzzy, no-wrap
21804 #| msgid ""
21805 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21806 #| "\n"
21807 msgid ""
21808 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21809 "\n"
21810 msgstr ""
21811 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21812 "\n"
21813
21814 #. type: verbatim
21815 #: ../rescue/virt-rescue.pod:15
21816 #, fuzzy, no-wrap
21817 #| msgid ""
21818 #| " virt-list-partitions [--options] domname\n"
21819 #| "\n"
21820 msgid ""
21821 " virt-rescue [--options] domname\n"
21822 "\n"
21823 msgstr ""
21824 " virt-list-partitions [--параметри] назва_домену\n"
21825 "\n"
21826
21827 #. type: verbatim
21828 #: ../rescue/virt-rescue.pod:17
21829 #, fuzzy, no-wrap
21830 #| msgid ""
21831 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21832 #| "\n"
21833 msgid ""
21834 " virt-rescue [--options] disk.img [disk.img ...]\n"
21835 "\n"
21836 msgstr ""
21837 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21838 "\n"
21839
21840 #. type: textblock
21841 #: ../rescue/virt-rescue.pod:21
21842 msgid ""
21843 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21844 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21845 "you from doing this, but doesn't catch all cases."
21846 msgstr ""
21847
21848 #. type: textblock
21849 #: ../rescue/virt-rescue.pod:25
21850 msgid ""
21851 "However if you use the I<--ro> (read only) option, then you can attach a "
21852 "shell to a live virtual machine.  The results might be strange or "
21853 "inconsistent at times but you won't get disk corruption."
21854 msgstr ""
21855
21856 #. type: textblock
21857 #: ../rescue/virt-rescue.pod:31
21858 msgid ""
21859 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21860 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21861 "recovery tools which you can use to examine or rescue a virtual machine or "
21862 "disk image."
21863 msgstr ""
21864
21865 #. type: textblock
21866 #: ../rescue/virt-rescue.pod:36
21867 msgid ""
21868 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21869 "on disk image(s):"
21870 msgstr ""
21871
21872 #. type: verbatim
21873 #: ../rescue/virt-rescue.pod:39
21874 #, no-wrap
21875 msgid ""
21876 " virt-rescue -d GuestName\n"
21877 "\n"
21878 msgstr ""
21879
21880 #. type: verbatim
21881 #: ../rescue/virt-rescue.pod:41
21882 #, no-wrap
21883 msgid ""
21884 " virt-rescue --ro -a /path/to/disk.img\n"
21885 "\n"
21886 msgstr ""
21887
21888 #. type: verbatim
21889 #: ../rescue/virt-rescue.pod:43
21890 #, no-wrap
21891 msgid ""
21892 " virt-rescue -a /dev/sdc\n"
21893 "\n"
21894 msgstr ""
21895
21896 #. type: textblock
21897 #: ../rescue/virt-rescue.pod:45
21898 msgid "For live VMs you I<must> use the --ro option."
21899 msgstr ""
21900
21901 #. type: textblock
21902 #: ../rescue/virt-rescue.pod:47
21903 msgid ""
21904 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21905 "in an interactive bash shell where you can use many ordinary Linux "
21906 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21907 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21908 "is an empty directory called C</sysroot> where you can mount filesystems."
21909 msgstr ""
21910
21911 #. type: textblock
21912 #: ../rescue/virt-rescue.pod:54
21913 msgid ""
21914 "In the example below, we list logical volumes, then choose one to mount "
21915 "under C</sysroot>:"
21916 msgstr ""
21917
21918 #. type: verbatim
21919 #: ../rescue/virt-rescue.pod:57
21920 #, no-wrap
21921 msgid ""
21922 " ><rescue> lvs\n"
21923 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21924 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21925 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21926 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21927 " ><rescue> ls /sysroot\n"
21928 "\n"
21929 msgstr ""
21930
21931 #. type: textblock
21932 #: ../rescue/virt-rescue.pod:64
21933 msgid ""
21934 "If you don't know what filesystems are available on the virtual machine then "
21935 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21936 msgstr ""
21937
21938 #. type: textblock
21939 #: ../rescue/virt-rescue.pod:70
21940 msgid ""
21941 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21942 "virtual machine.  For example you can use it on a blank file if you want to "
21943 "partition that file (although we would recommend using L<guestfish(1)> "
21944 "instead as it is more suitable for this purpose).  You can even use virt-"
21945 "rescue on things like SD cards."
21946 msgstr ""
21947
21948 #. type: textblock
21949 #: ../rescue/virt-rescue.pod:76
21950 msgid ""
21951 "Virt-rescue does not require root.  You only need to run it as root if you "
21952 "need root to open the disk image."
21953 msgstr ""
21954
21955 #. type: textblock
21956 #: ../rescue/virt-rescue.pod:79
21957 msgid ""
21958 "This tool is just designed for quick interactive hacking on a virtual "
21959 "machine.  For more structured access to a virtual machine disk image, you "
21960 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21961 "make scripted changes to guests, use L<guestfish(1)>."
21962 msgstr ""
21963
21964 #. type: =item
21965 #: ../rescue/virt-rescue.pod:103
21966 msgid "B<--append kernelopts>"
21967 msgstr ""
21968
21969 #. type: textblock
21970 #: ../rescue/virt-rescue.pod:105
21971 msgid "Pass additional options to the rescue kernel."
21972 msgstr ""
21973
21974 #. type: verbatim
21975 #: ../rescue/virt-rescue.pod:135
21976 #, fuzzy, no-wrap
21977 #| msgid ""
21978 #| " guestfish --format=raw -a disk.img\n"
21979 #| "\n"
21980 msgid ""
21981 " virt-rescue --format=raw -a disk.img\n"
21982 "\n"
21983 msgstr ""
21984 " guestfish --format=raw -a disk.img\n"
21985 "\n"
21986
21987 #. type: verbatim
21988 #: ../rescue/virt-rescue.pod:139
21989 #, fuzzy, no-wrap
21990 #| msgid ""
21991 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21992 #| "\n"
21993 msgid ""
21994 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21995 "\n"
21996 msgstr ""
21997 " guestfish --format=raw -a disk.img --format -a another.img\n"
21998 "\n"
21999
22000 #. type: =item
22001 #: ../rescue/virt-rescue.pod:148
22002 msgid "B<-m MB>"
22003 msgstr ""
22004
22005 #. type: =item
22006 #: ../rescue/virt-rescue.pod:150
22007 #, fuzzy
22008 #| msgid "B<--merge>"
22009 msgid "B<--memsize MB>"
22010 msgstr "B<--merge>"
22011
22012 #. type: textblock
22013 #: ../rescue/virt-rescue.pod:152
22014 msgid ""
22015 "Change the amount of memory allocated to the rescue system.  The default is "
22016 "set by libguestfs and is small but adequate for running system tools.  The "
22017 "occasional program might need more memory.  The parameter is specified in "
22018 "megabytes."
22019 msgstr ""
22020
22021 #. type: =item
22022 #: ../rescue/virt-rescue.pod:157
22023 #, fuzzy
22024 #| msgid "B<--inspector>"
22025 msgid "B<--network>"
22026 msgstr "B<--inspector>"
22027
22028 #. type: textblock
22029 #: ../rescue/virt-rescue.pod:159
22030 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22031 msgstr ""
22032
22033 #. type: textblock
22034 #: ../rescue/virt-rescue.pod:165
22035 msgid "Open the image read-only."
22036 msgstr ""
22037
22038 #. type: textblock
22039 #: ../rescue/virt-rescue.pod:175
22040 msgid ""
22041 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
22042 "SELINUX> before using this option."
22043 msgstr ""
22044
22045 #. type: =item
22046 #: ../rescue/virt-rescue.pod:178
22047 #, fuzzy
22048 #| msgid "B<--csh>"
22049 msgid "B<--smp> N"
22050 msgstr "B<--csh>"
22051
22052 #. type: textblock
22053 #: ../rescue/virt-rescue.pod:180
22054 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22055 msgstr ""
22056
22057 #. type: textblock
22058 #: ../rescue/virt-rescue.pod:198
22059 msgid ""
22060 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22061 "are done read-write."
22062 msgstr ""
22063
22064 #. type: textblock
22065 #: ../rescue/virt-rescue.pod:211
22066 msgid "Previous versions of virt-rescue allowed you to write either:"
22067 msgstr ""
22068
22069 #. type: verbatim
22070 #: ../rescue/virt-rescue.pod:213
22071 #, fuzzy, no-wrap
22072 #| msgid ""
22073 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22074 #| "\n"
22075 msgid ""
22076 " virt-rescue disk.img [disk.img ...]\n"
22077 "\n"
22078 msgstr ""
22079 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22080 "\n"
22081
22082 #. type: verbatim
22083 #: ../rescue/virt-rescue.pod:217
22084 #, fuzzy, no-wrap
22085 #| msgid ""
22086 #| " file-architecture filename\n"
22087 #| "\n"
22088 msgid ""
22089 " virt-rescue guestname\n"
22090 "\n"
22091 msgstr ""
22092 " file-architecture назва_файла\n"
22093 "\n"
22094
22095 #. type: =head1
22096 #: ../rescue/virt-rescue.pod:225
22097 msgid "NETWORK"
22098 msgstr ""
22099
22100 #. type: textblock
22101 #: ../rescue/virt-rescue.pod:227
22102 msgid ""
22103 "Adding the I<--network> option enables QEMU user networking in the rescue "
22104 "appliance.  There are some differences between user networking and ordinary "
22105 "networking:"
22106 msgstr ""
22107
22108 #. type: =item
22109 #: ../rescue/virt-rescue.pod:233
22110 msgid "ping does not work"
22111 msgstr ""
22112
22113 #. type: textblock
22114 #: ../rescue/virt-rescue.pod:235
22115 msgid ""
22116 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22117 "send the ping packets, and because virt-rescue must be able to run as non-"
22118 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
22119 "The ping command will appear to resolve addresses but will not be able to "
22120 "send or receive any packets.  This does not mean that the network is not "
22121 "working."
22122 msgstr ""
22123
22124 #. type: =item
22125 #: ../rescue/virt-rescue.pod:242
22126 msgid "cannot receive connections"
22127 msgstr ""
22128
22129 #. type: textblock
22130 #: ../rescue/virt-rescue.pod:244
22131 msgid "QEMU user networking cannot receive incoming connections."
22132 msgstr ""
22133
22134 #. type: =item
22135 #: ../rescue/virt-rescue.pod:246
22136 msgid "making TCP connections"
22137 msgstr ""
22138
22139 #. type: textblock
22140 #: ../rescue/virt-rescue.pod:248
22141 msgid ""
22142 "The virt-rescue appliance needs to be small and so does not include many "
22143 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22144 "make TCP connections from the shell using the magical C</dev/tcp/"
22145 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22146 msgstr ""
22147
22148 #. type: verbatim
22149 #: ../rescue/virt-rescue.pod:253
22150 #, no-wrap
22151 msgid ""
22152 " exec 3<>/dev/tcp/redhat.com/80\n"
22153 " echo \"GET /\" >&3\n"
22154 " cat <&3\n"
22155 "\n"
22156 msgstr ""
22157
22158 #. type: textblock
22159 #: ../rescue/virt-rescue.pod:257
22160 msgid "See L<bash(1)> for more details."
22161 msgstr ""
22162
22163 #. type: textblock
22164 #: ../rescue/virt-rescue.pod:263
22165 msgid ""
22166 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
22167 "ENVIRONMENT VARIABLES> for the complete list."
22168 msgstr ""
22169
22170 #. type: textblock
22171 #: ../rescue/virt-rescue.pod:290
22172 #, fuzzy
22173 #| msgid ""
22174 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22175 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22176 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22177 msgid ""
22178 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22179 "libguestfs.org/>."
22180 msgstr ""
22181 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22182 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22183 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22184
22185 #. type: textblock
22186 #: ../resize/virt-resize.pod:5
22187 msgid "virt-resize - Resize a virtual machine disk"
22188 msgstr ""
22189
22190 #. type: verbatim
22191 #: ../resize/virt-resize.pod:9
22192 #, no-wrap
22193 msgid ""
22194 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22195 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22196 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22197 "\n"
22198 msgstr ""
22199
22200 #. type: textblock
22201 #: ../resize/virt-resize.pod:15
22202 msgid ""
22203 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22204 "larger or smaller overall, and resizing or deleting any partitions contained "
22205 "within."
22206 msgstr ""
22207
22208 #. type: textblock
22209 #: ../resize/virt-resize.pod:19
22210 msgid ""
22211 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22212 "not> be used on live virtual machines - for consistent results, shut the "
22213 "virtual machine down before resizing it."
22214 msgstr ""
22215
22216 #. type: textblock
22217 #: ../resize/virt-resize.pod:23
22218 msgid ""
22219 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22220 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22221 msgstr ""
22222
22223 #. type: =item
22224 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
22225 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1287 ../src/guestfs.pod:1426
22226 #: ../src/guestfs.pod:2604
22227 msgid "1."
22228 msgstr "1."
22229
22230 #. type: textblock
22231 #: ../resize/virt-resize.pod:33
22232 msgid ""
22233 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22234 "fill the extra 5GB of space."
22235 msgstr ""
22236
22237 #. type: verbatim
22238 #: ../resize/virt-resize.pod:36
22239 #, no-wrap
22240 msgid ""
22241 " virt-filesystems --long -h --all -a olddisk\n"
22242 " \n"
22243 msgstr ""
22244
22245 #. type: verbatim
22246 #: ../resize/virt-resize.pod:38
22247 #, no-wrap
22248 msgid ""
22249 " truncate -r olddisk newdisk\n"
22250 " truncate -s +5G newdisk\n"
22251 " \n"
22252 msgstr ""
22253
22254 #. type: verbatim
22255 #: ../resize/virt-resize.pod:41
22256 #, no-wrap
22257 msgid ""
22258 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22259 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22260 "\n"
22261 msgstr ""
22262
22263 #. type: =item
22264 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
22265 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1291 ../src/guestfs.pod:1430
22266 #: ../src/guestfs.pod:2629
22267 msgid "2."
22268 msgstr "2."
22269
22270 #. type: textblock
22271 #: ../resize/virt-resize.pod:46
22272 msgid ""
22273 "As above, but make the /boot partition 200MB bigger, while giving the "
22274 "remaining space to /dev/sda2:"
22275 msgstr ""
22276
22277 #. type: verbatim
22278 #: ../resize/virt-resize.pod:49
22279 #, no-wrap
22280 msgid ""
22281 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22282 "   olddisk newdisk\n"
22283 "\n"
22284 msgstr ""
22285
22286 #. type: =item
22287 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
22288 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1436
22289 msgid "3."
22290 msgstr "3."
22291
22292 #. type: textblock
22293 #: ../resize/virt-resize.pod:54
22294 msgid ""
22295 "As in the first example, but expand a logical volume as the final step.  "
22296 "This is what you would typically use for Linux guests that use LVM:"
22297 msgstr ""
22298
22299 #. type: verbatim
22300 #: ../resize/virt-resize.pod:58
22301 #, no-wrap
22302 msgid ""
22303 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22304 "   olddisk newdisk\n"
22305 "\n"
22306 msgstr ""
22307
22308 #. type: =item
22309 #: ../resize/virt-resize.pod:61
22310 msgid "4."
22311 msgstr ""
22312
22313 #. type: textblock
22314 #: ../resize/virt-resize.pod:63
22315 msgid ""
22316 "As in the first example, but the output format will be qcow2 instead of a "
22317 "raw disk:"
22318 msgstr ""
22319
22320 #. type: verbatim
22321 #: ../resize/virt-resize.pod:66
22322 #, no-wrap
22323 msgid ""
22324 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22325 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22326 "\n"
22327 msgstr ""
22328
22329 #. type: =head1
22330 #: ../resize/virt-resize.pod:71
22331 msgid "DETAILED USAGE"
22332 msgstr ""
22333
22334 #. type: =head2
22335 #: ../resize/virt-resize.pod:73
22336 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22337 msgstr ""
22338
22339 #. type: =item
22340 #: ../resize/virt-resize.pod:77
22341 msgid "1. Shut down the virtual machine"
22342 msgstr ""
22343
22344 #. type: =item
22345 #: ../resize/virt-resize.pod:79
22346 msgid "2. Locate input disk image"
22347 msgstr ""
22348
22349 #. type: textblock
22350 #: ../resize/virt-resize.pod:81
22351 msgid ""
22352 "Locate the input disk image (ie. the file or device on the host containing "
22353 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
22354 "dumpxml> like this to find the disk image name:"
22355 msgstr ""
22356
22357 #. type: verbatim
22358 #: ../resize/virt-resize.pod:85
22359 #, no-wrap
22360 msgid ""
22361 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22362 " Found 1 nodes:\n"
22363 " -- NODE --\n"
22364 " <source dev=\"/dev/vg/lv_guest\" />\n"
22365 "\n"
22366 msgstr ""
22367
22368 #. type: =item
22369 #: ../resize/virt-resize.pod:90
22370 msgid "3. Look at current sizing"
22371 msgstr ""
22372
22373 #. type: textblock
22374 #: ../resize/virt-resize.pod:92
22375 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22376 msgstr ""
22377
22378 #. type: verbatim
22379 #: ../resize/virt-resize.pod:95
22380 #, no-wrap
22381 msgid ""
22382 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22383 " Name       Type       Size  Parent\n"
22384 " /dev/sda1  partition  101M  /dev/sda\n"
22385 " /dev/sda2  partition  7.9G  /dev/sda\n"
22386 " /dev/sda   device     8.0G  -\n"
22387 "\n"
22388 msgstr ""
22389
22390 #. type: textblock
22391 #: ../resize/virt-resize.pod:101
22392 msgid ""
22393 "(This example is a virtual machine with an 8 GB disk which we would like to "
22394 "expand up to 10 GB)."
22395 msgstr ""
22396
22397 #. type: =item
22398 #: ../resize/virt-resize.pod:104
22399 msgid "4. Create output disk"
22400 msgstr ""
22401
22402 #. type: textblock
22403 #: ../resize/virt-resize.pod:106
22404 msgid ""
22405 "Virt-resize cannot do in-place disk modifications.  You have to have space "
22406 "to store the resized output disk."
22407 msgstr ""
22408
22409 #. type: textblock
22410 #: ../resize/virt-resize.pod:109
22411 msgid ""
22412 "To store the resized disk image in a file, create a file of a suitable size:"
22413 msgstr ""
22414
22415 #. type: verbatim
22416 #: ../resize/virt-resize.pod:112
22417 #, no-wrap
22418 msgid ""
22419 " # rm -f outdisk\n"
22420 " # truncate -s 10G outdisk\n"
22421 "\n"
22422 msgstr ""
22423
22424 #. type: textblock
22425 #: ../resize/virt-resize.pod:115
22426 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22427 msgstr ""
22428
22429 #. type: verbatim
22430 #: ../resize/virt-resize.pod:117
22431 #, no-wrap
22432 msgid ""
22433 " # lvcreate -L 10G -n lv_name vg_name\n"
22434 "\n"
22435 msgstr ""
22436
22437 #. type: textblock
22438 #: ../resize/virt-resize.pod:119
22439 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22440 msgstr ""
22441
22442 #. type: verbatim
22443 #: ../resize/virt-resize.pod:121
22444 #, no-wrap
22445 msgid ""
22446 " # virsh pool-list\n"
22447 " # virsh vol-create-as poolname newvol 10G\n"
22448 "\n"
22449 msgstr ""
22450
22451 #. type: =item
22452 #: ../resize/virt-resize.pod:124
22453 msgid "5. Resize"
22454 msgstr ""
22455
22456 #. type: textblock
22457 #: ../resize/virt-resize.pod:126
22458 msgid ""
22459 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22460 "file) and the output disk.  The output disk is the one created in the "
22461 "previous step."
22462 msgstr ""
22463
22464 #. type: verbatim
22465 #: ../resize/virt-resize.pod:130
22466 #, no-wrap
22467 msgid ""
22468 " # virt-resize indisk outdisk\n"
22469 "\n"
22470 msgstr ""
22471
22472 #. type: textblock
22473 #: ../resize/virt-resize.pod:132
22474 msgid ""
22475 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22476 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22477 "larger, then an extra, empty partition is created at the end of the disk "
22478 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22479 "error."
22480 msgstr ""
22481
22482 #. type: textblock
22483 #: ../resize/virt-resize.pod:138
22484 msgid ""
22485 "More realistically you'd want to expand existing partitions in the disk "
22486 "image by passing extra options (for the full list see the L</OPTIONS> "
22487 "section below)."
22488 msgstr ""
22489
22490 #. type: textblock
22491 #: ../resize/virt-resize.pod:142
22492 msgid ""
22493 "L</--expand> is the most useful option.  It expands the named partition "
22494 "within the disk to fill any extra space:"
22495 msgstr ""
22496
22497 #. type: verbatim
22498 #: ../resize/virt-resize.pod:145
22499 #, no-wrap
22500 msgid ""
22501 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22502 "\n"
22503 msgstr ""
22504
22505 #. type: textblock
22506 #: ../resize/virt-resize.pod:147
22507 msgid ""
22508 "(In this case, an extra partition is I<not> created at the end of the disk, "
22509 "because there will be no unused space)."
22510 msgstr ""
22511
22512 #. type: textblock
22513 #: ../resize/virt-resize.pod:150
22514 msgid ""
22515 "L</--resize> is the other commonly used option.  The following would "
22516 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22517 "rest of the available space:"
22518 msgstr ""
22519
22520 #. type: verbatim
22521 #: ../resize/virt-resize.pod:154
22522 #, no-wrap
22523 msgid ""
22524 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22525 "     indisk outdisk\n"
22526 "\n"
22527 msgstr ""
22528
22529 #. type: textblock
22530 #: ../resize/virt-resize.pod:157
22531 msgid ""
22532 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22533 "if virt-resize knows how, it will resize the contents, the equivalent of "
22534 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22535 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22536 "filesystems, so you would have to online resize them after booting the guest."
22537 msgstr ""
22538
22539 #. type: textblock
22540 #: ../resize/virt-resize.pod:164
22541 msgid "Other options are covered below."
22542 msgstr ""
22543
22544 #. type: =item
22545 #: ../resize/virt-resize.pod:166
22546 msgid "6. Test"
22547 msgstr ""
22548
22549 #. type: textblock
22550 #: ../resize/virt-resize.pod:168
22551 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22552 msgstr ""
22553
22554 #. type: textblock
22555 #: ../resize/virt-resize.pod:170
22556 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22557 msgstr ""
22558
22559 #. type: verbatim
22560 #: ../resize/virt-resize.pod:172
22561 #, fuzzy, no-wrap
22562 #| msgid ""
22563 #| " edit filename\n"
22564 #| "\n"
22565 msgid ""
22566 " # virsh edit guestname\n"
22567 "\n"
22568 msgstr ""
22569 " edit назва_файла\n"
22570 "\n"
22571
22572 #. type: textblock
22573 #: ../resize/virt-resize.pod:174
22574 msgid ""
22575 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22576 "html#elementsDisks>"
22577 msgstr ""
22578
22579 #. type: textblock
22580 #: ../resize/virt-resize.pod:177
22581 msgid "Then start up the domain with the new, resized disk:"
22582 msgstr ""
22583
22584 #. type: verbatim
22585 #: ../resize/virt-resize.pod:179
22586 #, fuzzy, no-wrap
22587 #| msgid ""
22588 #| " ln-s target linkname\n"
22589 #| "\n"
22590 msgid ""
22591 " # virsh start guestname\n"
22592 "\n"
22593 msgstr ""
22594 " ln-s призначення назва_посилання\n"
22595 "\n"
22596
22597 #. type: textblock
22598 #: ../resize/virt-resize.pod:181
22599 msgid ""
22600 "and check that it still works.  See also the L</NOTES> section below for "
22601 "additional information."
22602 msgstr ""
22603
22604 #. type: =item
22605 #: ../resize/virt-resize.pod:184
22606 msgid "7. Resize LVs etc inside the guest"
22607 msgstr ""
22608
22609 #. type: textblock
22610 #: ../resize/virt-resize.pod:186
22611 msgid "(This can also be done offline using L<guestfish(1)>)"
22612 msgstr ""
22613
22614 #. type: textblock
22615 #: ../resize/virt-resize.pod:188
22616 msgid ""
22617 "Once the guest has booted you should see the new space available, at least "
22618 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22619 "may need to resize LVs inside PVs, and also resize filesystem types that "
22620 "virt-resize does not know how to expand."
22621 msgstr ""
22622
22623 #. type: =head2
22624 #: ../resize/virt-resize.pod:195
22625 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22626 msgstr ""
22627
22628 #. type: textblock
22629 #: ../resize/virt-resize.pod:197
22630 msgid ""
22631 "Shrinking is somewhat more complex than expanding, and only an overview is "
22632 "given here."
22633 msgstr ""
22634
22635 #. type: textblock
22636 #: ../resize/virt-resize.pod:200
22637 msgid ""
22638 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22639 "filesystems).  The user has to shrink content before passing the disk image "
22640 "to virt-resize, and virt-resize will check that the content has been shrunk "
22641 "properly."
22642 msgstr ""
22643
22644 #. type: textblock
22645 #: ../resize/virt-resize.pod:205
22646 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22647 msgstr ""
22648
22649 #. type: textblock
22650 #: ../resize/virt-resize.pod:207
22651 msgid ""
22652 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22653 "steps 3 and 4 above to allocate a new disk image."
22654 msgstr ""
22655
22656 #. type: textblock
22657 #: ../resize/virt-resize.pod:210
22658 msgid ""
22659 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22660 msgstr ""
22661
22662 #. type: =head2
22663 #: ../resize/virt-resize.pod:213
22664 msgid "IGNORING OR DELETING PARTITIONS"
22665 msgstr ""
22666
22667 #. type: textblock
22668 #: ../resize/virt-resize.pod:215
22669 msgid ""
22670 "virt-resize also gives a convenient way to ignore or delete partitions when "
22671 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22672 "up the copy where you don't care about the existing contents of a "
22673 "partition.  Deleting a partition removes it completely, but note that it "
22674 "also renumbers any partitions after the one which is deleted, which can "
22675 "leave some guests unbootable."
22676 msgstr ""
22677
22678 #. type: =head2
22679 #: ../resize/virt-resize.pod:222
22680 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22681 msgstr ""
22682
22683 #. type: textblock
22684 #: ../resize/virt-resize.pod:224
22685 msgid ""
22686 "If the input disk is in qcow2 format, then you may prefer that the output is "
22687 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22688 "the fly.  The output format is simply determined by the format of the empty "
22689 "output container that you provide.  Thus to create qcow2 output, use:"
22690 msgstr ""
22691
22692 #. type: verbatim
22693 #: ../resize/virt-resize.pod:230
22694 #, no-wrap
22695 msgid ""
22696 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22697 "\n"
22698 msgstr ""
22699
22700 #. type: textblock
22701 #: ../resize/virt-resize.pod:232
22702 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22703 msgstr ""
22704
22705 #. type: textblock
22706 #: ../resize/virt-resize.pod:234
22707 msgid "Similarly, to get non-sparse raw output use:"
22708 msgstr ""
22709
22710 #. type: verbatim
22711 #: ../resize/virt-resize.pod:236
22712 #, fuzzy, no-wrap
22713 #| msgid ""
22714 #| " fallocate path len\n"
22715 #| "\n"
22716 msgid ""
22717 " fallocate -l size outdisk\n"
22718 "\n"
22719 msgstr ""
22720 " fallocate шлях довжина\n"
22721 "\n"
22722
22723 #. type: textblock
22724 #: ../resize/virt-resize.pod:238
22725 msgid ""
22726 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22727 "dev/zero of=outdisk bs=1M count=..>)"
22728 msgstr ""
22729
22730 #. type: textblock
22731 #: ../resize/virt-resize.pod:247
22732 msgid "Display help."
22733 msgstr ""
22734
22735 #. type: =item
22736 #: ../resize/virt-resize.pod:249
22737 msgid "B<-d>"
22738 msgstr ""
22739
22740 #. type: =item
22741 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22742 #: ../tools/virt-win-reg.pl:120
22743 msgid "B<--debug>"
22744 msgstr "B<--debug>"
22745
22746 #. type: textblock
22747 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22748 msgid "Enable debugging messages."
22749 msgstr ""
22750
22751 #. type: =item
22752 #: ../resize/virt-resize.pod:255
22753 #, fuzzy
22754 #| msgid "B<--no-dest-paths>"
22755 msgid "B<--delete part>"
22756 msgstr "B<--no-dest-paths>"
22757
22758 #. type: textblock
22759 #: ../resize/virt-resize.pod:257
22760 msgid ""
22761 "Delete the named partition.  It would be more accurate to describe this as "
22762 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22763 "the original disk image is left intact."
22764 msgstr ""
22765
22766 #. type: textblock
22767 #: ../resize/virt-resize.pod:261
22768 msgid ""
22769 "Note that when you delete a partition, then anything contained in the "
22770 "partition is also deleted.  Furthermore, this causes any partitions that "
22771 "come after to be I<renumbered>, which can easily make your guest unbootable."
22772 msgstr ""
22773
22774 #. type: textblock
22775 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22776 #: ../resize/virt-resize.pod:454
22777 msgid "You can give this option multiple times."
22778 msgstr ""
22779
22780 #. type: =item
22781 #: ../resize/virt-resize.pod:268
22782 #, fuzzy
22783 #| msgid "B<--partition>"
22784 msgid "B<--expand part>"
22785 msgstr "B<--partition>"
22786
22787 #. type: textblock
22788 #: ../resize/virt-resize.pod:270
22789 msgid ""
22790 "Expand the named partition so it uses up all extra space (space left over "
22791 "after any other resize changes that you request have been done)."
22792 msgstr ""
22793
22794 #. type: textblock
22795 #: ../resize/virt-resize.pod:273
22796 msgid ""
22797 "If virt-resize knows how, it will expand the direct content of the "
22798 "partition.  For example, if the partition is an LVM PV, it will expand the "
22799 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22800 "content it doesn't know about alone."
22801 msgstr ""
22802
22803 #. type: textblock
22804 #: ../resize/virt-resize.pod:278
22805 msgid "Currently virt-resize can resize:"
22806 msgstr ""
22807
22808 #. type: textblock
22809 #: ../resize/virt-resize.pod:284
22810 msgid "ext2, ext3 and ext4 filesystems."
22811 msgstr ""
22812
22813 #. type: textblock
22814 #: ../resize/virt-resize.pod:288
22815 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22816 msgstr ""
22817
22818 #. type: textblock
22819 #: ../resize/virt-resize.pod:290
22820 msgid ""
22821 "The filesystem must have been shut down consistently last time it was used.  "
22822 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22823 "consistency check, so at the first boot after resizing Windows will check "
22824 "the disk."
22825 msgstr ""
22826
22827 #. type: textblock
22828 #: ../resize/virt-resize.pod:297
22829 msgid ""
22830 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22831 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22832 "resize LVs as desired after boot."
22833 msgstr ""
22834
22835 #. type: textblock
22836 #: ../resize/virt-resize.pod:303
22837 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22838 msgstr ""
22839
22840 #. type: textblock
22841 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22842 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22843 msgstr ""
22844
22845 #. type: =item
22846 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22847 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22848 #: ../tools/virt-win-reg.pl:142
22849 msgid "B<--format> raw"
22850 msgstr ""
22851
22852 #. type: textblock
22853 #: ../resize/virt-resize.pod:311
22854 msgid ""
22855 "Specify the format of the input disk image.  If this flag is not given then "
22856 "it is auto-detected from the image itself."
22857 msgstr ""
22858
22859 #. type: textblock
22860 #: ../resize/virt-resize.pod:317
22861 msgid ""
22862 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22863 "AND NON-SPARSE RAW FORMATS>."
22864 msgstr ""
22865
22866 #. type: =item
22867 #: ../resize/virt-resize.pod:320
22868 #, fuzzy
22869 #| msgid "B<--format>"
22870 msgid "B<--ignore part>"
22871 msgstr "B<--format>"
22872
22873 #. type: textblock
22874 #: ../resize/virt-resize.pod:322
22875 msgid ""
22876 "Ignore the named partition.  Effectively this means the partition is "
22877 "allocated on the destination disk, but the content is not copied across from "
22878 "the source disk.  The content of the partition will be blank (all zero "
22879 "bytes)."
22880 msgstr ""
22881
22882 #. type: =item
22883 #: ../resize/virt-resize.pod:329
22884 msgid "B<--LV-expand logvol>"
22885 msgstr ""
22886
22887 #. type: textblock
22888 #: ../resize/virt-resize.pod:331
22889 msgid ""
22890 "This takes the logical volume and, as a final step, expands it to fill all "
22891 "the space available in its volume group.  A typical usage, assuming a Linux "
22892 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22893 "lv_root> would be:"
22894 msgstr ""
22895
22896 #. type: verbatim
22897 #: ../resize/virt-resize.pod:336
22898 #, no-wrap
22899 msgid ""
22900 " virt-resize indisk outdisk \\\n"
22901 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22902 "\n"
22903 msgstr ""
22904
22905 #. type: textblock
22906 #: ../resize/virt-resize.pod:339
22907 msgid ""
22908 "This would first expand the partition (and PV), and then expand the root "
22909 "device to fill the extra space in the PV."
22910 msgstr ""
22911
22912 #. type: textblock
22913 #: ../resize/virt-resize.pod:342
22914 msgid ""
22915 "The contents of the LV are also resized if virt-resize knows how to do "
22916 "that.  You can stop virt-resize from trying to expand the content by using "
22917 "the option I<--no-expand-content>."
22918 msgstr ""
22919
22920 #. type: textblock
22921 #: ../resize/virt-resize.pod:346
22922 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22923 msgstr ""
22924
22925 #. type: textblock
22926 #: ../resize/virt-resize.pod:348
22927 msgid ""
22928 "You can give this option multiple times, I<but> it doesn't make sense to do "
22929 "this unless the logical volumes you specify are all in different volume "
22930 "groups."
22931 msgstr ""
22932
22933 #. type: =item
22934 #: ../resize/virt-resize.pod:352
22935 #, fuzzy
22936 #| msgid "B<-h> | B<--human-readable>"
22937 msgid "B<--machine-readable>"
22938 msgstr "B<-h> | B<--human-readable>"
22939
22940 #. type: textblock
22941 #: ../resize/virt-resize.pod:354
22942 msgid ""
22943 "This option is used to make the output more machine friendly when being "
22944 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
22945 msgstr ""
22946
22947 #. type: =item
22948 #: ../resize/virt-resize.pod:360
22949 #, fuzzy
22950 #| msgid "B<--debug>"
22951 msgid "B<--dryrun>"
22952 msgstr "B<--debug>"
22953
22954 #. type: textblock
22955 #: ../resize/virt-resize.pod:362
22956 msgid "Print a summary of what would be done, but don't do anything."
22957 msgstr ""
22958
22959 #. type: =item
22960 #: ../resize/virt-resize.pod:364
22961 msgid "B<--no-copy-boot-loader>"
22962 msgstr ""
22963
22964 #. type: textblock
22965 #: ../resize/virt-resize.pod:366
22966 msgid ""
22967 "By default, virt-resize copies over some sectors at the start of the disk "
22968 "(up to the beginning of the first partition).  Commonly these sectors "
22969 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22970 "in order for the guest to boot correctly."
22971 msgstr ""
22972
22973 #. type: textblock
22974 #: ../resize/virt-resize.pod:371
22975 msgid ""
22976 "If you specify this flag, then this initial copy is not done.  You may need "
22977 "to reinstall the boot loader in this case."
22978 msgstr ""
22979
22980 #. type: =item
22981 #: ../resize/virt-resize.pod:374
22982 #, fuzzy
22983 #| msgid "B<--partition>"
22984 msgid "B<--no-extra-partition>"
22985 msgstr "B<--partition>"
22986
22987 #. type: textblock
22988 #: ../resize/virt-resize.pod:376
22989 msgid ""
22990 "By default, virt-resize creates an extra partition if there is any extra, "
22991 "unused space after all resizing has happened.  Use this option to prevent "
22992 "the extra partition from being created.  If you do this then the extra space "
22993 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22994 "tool in the guest."
22995 msgstr ""
22996
22997 #. type: textblock
22998 #: ../resize/virt-resize.pod:382
22999 msgid ""
23000 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23001 "will be created."
23002 msgstr ""
23003
23004 #. type: =item
23005 #: ../resize/virt-resize.pod:385
23006 #, fuzzy
23007 #| msgid "B<--no-dest-paths>"
23008 msgid "B<--no-expand-content>"
23009 msgstr "B<--no-dest-paths>"
23010
23011 #. type: textblock
23012 #: ../resize/virt-resize.pod:387
23013 msgid ""
23014 "By default, virt-resize will try to expand the direct contents of "
23015 "partitions, if it knows how (see I<--expand> option above)."
23016 msgstr ""
23017
23018 #. type: textblock
23019 #: ../resize/virt-resize.pod:390
23020 msgid ""
23021 "If you give the I<--no-expand-content> option then virt-resize will not "
23022 "attempt this."
23023 msgstr ""
23024
23025 #. type: =item
23026 #: ../resize/virt-resize.pod:393
23027 #, fuzzy
23028 #| msgid "ntfsresize-size"
23029 msgid "B<--ntfsresize-force>"
23030 msgstr "ntfsresize-size"
23031
23032 #. type: textblock
23033 #: ../resize/virt-resize.pod:395
23034 msgid ""
23035 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23036 "the NTFS disk is marked as needing a consistency check.  You have to use "
23037 "this option if you want to resize a Windows guest multiple times without "
23038 "booting into Windows between each resize."
23039 msgstr ""
23040
23041 #. type: =item
23042 #: ../resize/virt-resize.pod:401
23043 #, fuzzy
23044 #| msgid "B<--format>"
23045 msgid "B<--output-format> raw"
23046 msgstr "B<--format>"
23047
23048 #. type: textblock
23049 #: ../resize/virt-resize.pod:403
23050 msgid ""
23051 "Specify the format of the output disk image.  If this flag is not given then "
23052 "it is auto-detected from the image itself."
23053 msgstr ""
23054
23055 #. type: textblock
23056 #: ../resize/virt-resize.pod:409
23057 msgid ""
23058 "Note that this option I<does not create> the output format.  This option "
23059 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23060 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
23061 "SPARSE RAW FORMATS>."
23062 msgstr ""
23063
23064 #. type: =item
23065 #: ../resize/virt-resize.pod:414
23066 msgid "B<-q>"
23067 msgstr ""
23068
23069 #. type: =item
23070 #: ../resize/virt-resize.pod:416
23071 #, fuzzy
23072 #| msgid "B<--live>"
23073 msgid "B<--quiet>"
23074 msgstr "B<--live>"
23075
23076 #. type: textblock
23077 #: ../resize/virt-resize.pod:418
23078 msgid "Don't print the summary."
23079 msgstr ""
23080
23081 #. type: =item
23082 #: ../resize/virt-resize.pod:420
23083 #, fuzzy
23084 #| msgid "B<part_size>"
23085 msgid "B<--resize part=size>"
23086 msgstr "B<part_size>"
23087
23088 #. type: textblock
23089 #: ../resize/virt-resize.pod:422
23090 msgid ""
23091 "Resize the named partition (expanding or shrinking it) so that it has the "
23092 "given size."
23093 msgstr ""
23094
23095 #. type: textblock
23096 #: ../resize/virt-resize.pod:425
23097 msgid ""
23098 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23099 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23100 "size; or as a relative number or percentage.  For example:"
23101 msgstr ""
23102
23103 #. type: verbatim
23104 #: ../resize/virt-resize.pod:431
23105 #, fuzzy, no-wrap
23106 #| msgid ""
23107 #| " hexedit /dev/sda 1M\n"
23108 #| "\n"
23109 msgid ""
23110 " --resize /dev/sda2=10G\n"
23111 "\n"
23112 msgstr ""
23113 " hexedit /dev/sda 1M\n"
23114 "\n"
23115
23116 #. type: verbatim
23117 #: ../resize/virt-resize.pod:433
23118 #, fuzzy, no-wrap
23119 #| msgid ""
23120 #| " pvresize device\n"
23121 #| "\n"
23122 msgid ""
23123 " --resize /dev/sda4=90%\n"
23124 "\n"
23125 msgstr ""
23126 " pvresize пристрій\n"
23127 "\n"
23128
23129 #. type: verbatim
23130 #: ../resize/virt-resize.pod:435
23131 #, fuzzy, no-wrap
23132 #| msgid ""
23133 #| " hexedit /dev/sda 1M\n"
23134 #| "\n"
23135 msgid ""
23136 " --resize /dev/sda2=+1G\n"
23137 "\n"
23138 msgstr ""
23139 " hexedit /dev/sda 1M\n"
23140 "\n"
23141
23142 #. type: verbatim
23143 #: ../resize/virt-resize.pod:437
23144 #, fuzzy, no-wrap
23145 #| msgid ""
23146 #| " hexedit /dev/sda 1M\n"
23147 #| "\n"
23148 msgid ""
23149 " --resize /dev/sda2=-200M\n"
23150 "\n"
23151 msgstr ""
23152 " hexedit /dev/sda 1M\n"
23153 "\n"
23154
23155 #. type: verbatim
23156 #: ../resize/virt-resize.pod:439
23157 #, fuzzy, no-wrap
23158 #| msgid ""
23159 #| " hexedit /dev/sda 1M\n"
23160 #| "\n"
23161 msgid ""
23162 " --resize /dev/sda1=+128K\n"
23163 "\n"
23164 msgstr ""
23165 " hexedit /dev/sda 1M\n"
23166 "\n"
23167
23168 #. type: verbatim
23169 #: ../resize/virt-resize.pod:441
23170 #, fuzzy, no-wrap
23171 #| msgid ""
23172 #| " hexedit /dev/sda 1M\n"
23173 #| "\n"
23174 msgid ""
23175 " --resize /dev/sda1=+10%\n"
23176 "\n"
23177 msgstr ""
23178 " hexedit /dev/sda 1M\n"
23179 "\n"
23180
23181 #. type: verbatim
23182 #: ../resize/virt-resize.pod:443
23183 #, fuzzy, no-wrap
23184 #| msgid ""
23185 #| " hexedit /dev/sda 1M\n"
23186 #| "\n"
23187 msgid ""
23188 " --resize /dev/sda1=-10%\n"
23189 "\n"
23190 msgstr ""
23191 " hexedit /dev/sda 1M\n"
23192 "\n"
23193
23194 #. type: textblock
23195 #: ../resize/virt-resize.pod:445
23196 msgid ""
23197 "You can increase the size of any partition.  Virt-resize will expand the "
23198 "direct content of the partition if it knows how (see I<--expand> below)."
23199 msgstr ""
23200
23201 #. type: textblock
23202 #: ../resize/virt-resize.pod:449
23203 msgid ""
23204 "You can only I<decrease> the size of partitions that contain filesystems or "
23205 "PVs which have already been shrunk.  Virt-resize will check this has been "
23206 "done before proceeding, or else will print an error (see also I<--resize-"
23207 "force>)."
23208 msgstr ""
23209
23210 #. type: =item
23211 #: ../resize/virt-resize.pod:456
23212 msgid "B<--resize-force part=size>"
23213 msgstr ""
23214
23215 #. type: textblock
23216 #: ../resize/virt-resize.pod:458
23217 msgid ""
23218 "This is the same as I<--resize> except that it will let you decrease the "
23219 "size of any partition.  Generally this means you will lose any data which "
23220 "was at the end of the partition you shrink, but you may not care about that "
23221 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23222 "as a swap partition)."
23223 msgstr ""
23224
23225 #. type: textblock
23226 #: ../resize/virt-resize.pod:464
23227 msgid "See also the I<--ignore> option."
23228 msgstr ""
23229
23230 #. type: =item
23231 #: ../resize/virt-resize.pod:466
23232 #, fuzzy
23233 #| msgid "B<--partition>"
23234 msgid "B<--shrink part>"
23235 msgstr "B<--partition>"
23236
23237 #. type: textblock
23238 #: ../resize/virt-resize.pod:468
23239 msgid ""
23240 "Shrink the named partition until the overall disk image fits in the "
23241 "destination.  The named partition B<must> contain a filesystem or PV which "
23242 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23243 "online tools).  Virt-resize will check this and give an error if it has not "
23244 "been done."
23245 msgstr ""
23246
23247 #. type: textblock
23248 #: ../resize/virt-resize.pod:474
23249 msgid ""
23250 "The amount by which the overall disk must be shrunk (after carrying out all "
23251 "other operations requested by the user) is called the \"deficit\".  For "
23252 "example, a straight copy (assume no other operations)  from a 5GB disk image "
23253 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
23254 "would give an error unless the user specified a partition to shrink and that "
23255 "partition had more than a gigabyte of free space."
23256 msgstr ""
23257
23258 #. type: =head1
23259 #: ../resize/virt-resize.pod:492
23260 msgid "MACHINE READABLE OUTPUT"
23261 msgstr ""
23262
23263 #. type: textblock
23264 #: ../resize/virt-resize.pod:494
23265 msgid ""
23266 "The I<--machine-readable> option can be used to make the output more machine "
23267 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23268 "etc."
23269 msgstr ""
23270
23271 #. type: textblock
23272 #: ../resize/virt-resize.pod:498
23273 msgid "There are two ways to use this option."
23274 msgstr ""
23275
23276 #. type: textblock
23277 #: ../resize/virt-resize.pod:500
23278 msgid ""
23279 "Firstly use the option on its own to query the capabilities of the virt-"
23280 "resize binary.  Typical output looks like this:"
23281 msgstr ""
23282
23283 #. type: verbatim
23284 #: ../resize/virt-resize.pod:503
23285 #, no-wrap
23286 msgid ""
23287 " $ virt-resize --machine-readable\n"
23288 " virt-resize\n"
23289 " ntfsresize-force\n"
23290 " 32bitok\n"
23291 " ntfs\n"
23292 " btrfs\n"
23293 "\n"
23294 msgstr ""
23295
23296 #. type: textblock
23297 #: ../resize/virt-resize.pod:510
23298 msgid ""
23299 "A list of features is printed, one per line, and the program exits with "
23300 "status 0."
23301 msgstr ""
23302
23303 #. type: textblock
23304 #: ../resize/virt-resize.pod:513
23305 msgid ""
23306 "Secondly use the option in conjunction with other options to make the "
23307 "regular program output more machine friendly."
23308 msgstr ""
23309
23310 #. type: textblock
23311 #: ../resize/virt-resize.pod:516
23312 msgid "At the moment this means:"
23313 msgstr ""
23314
23315 #. type: textblock
23316 #: ../resize/virt-resize.pod:522
23317 msgid ""
23318 "Progress bar messages can be parsed from stdout by looking for this regular "
23319 "expression:"
23320 msgstr ""
23321
23322 #. type: verbatim
23323 #: ../resize/virt-resize.pod:525
23324 #, no-wrap
23325 msgid ""
23326 " ^[0-9]+/[0-9]+$\n"
23327 "\n"
23328 msgstr ""
23329
23330 #. type: textblock
23331 #: ../resize/virt-resize.pod:529
23332 msgid ""
23333 "The calling program should treat messages sent to stdout (except for "
23334 "progress bar messages) as status messages.  They can be logged and/or "
23335 "displayed to the user."
23336 msgstr ""
23337
23338 #. type: textblock
23339 #: ../resize/virt-resize.pod:535
23340 msgid ""
23341 "The calling program should treat messages sent to stderr as error messages.  "
23342 "In addition, virt-resize exits with a non-zero status code if there was a "
23343 "fatal error."
23344 msgstr ""
23345
23346 #. type: textblock
23347 #: ../resize/virt-resize.pod:541
23348 msgid ""
23349 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
23350 "readable> option and will return an error."
23351 msgstr ""
23352
23353 #. type: =head2
23354 #: ../resize/virt-resize.pod:546
23355 msgid "\"Partition 1 does not end on cylinder boundary.\""
23356 msgstr ""
23357
23358 #. type: textblock
23359 #: ../resize/virt-resize.pod:548
23360 msgid ""
23361 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
23362 "means the partitions will not be aligned to the ancient CHS geometry.  "
23363 "However CHS geometry is meaningless for disks manufactured since the early "
23364 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
23365 "cylinders is not required by any modern operating system."
23366 msgstr ""
23367
23368 #. type: =head2
23369 #: ../resize/virt-resize.pod:555
23370 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23371 msgstr ""
23372
23373 #. type: textblock
23374 #: ../resize/virt-resize.pod:557
23375 msgid ""
23376 "In Windows Vista and later versions, Microsoft switched to using a separate "
23377 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
23378 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
23379 "the boot partition.  Doing so seems to break the guest completely.  However "
23380 "expanding the second partition (ie. C: drive) should work."
23381 msgstr ""
23382
23383 #. type: textblock
23384 #: ../resize/virt-resize.pod:564
23385 msgid ""
23386 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23387 "NTFS partitions have been expanded.  This is just a safety check and (unless "
23388 "it find errors) is nothing to worry about."
23389 msgstr ""
23390
23391 #. type: =head2
23392 #: ../resize/virt-resize.pod:568
23393 msgid "GUEST BOOT STUCK AT \"GRUB\""
23394 msgstr ""
23395
23396 #. type: textblock
23397 #: ../resize/virt-resize.pod:570
23398 msgid ""
23399 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23400 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
23401 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
23402 "although we think is to do with partition alignment."
23403 msgstr ""
23404
23405 #. type: verbatim
23406 #: ../resize/virt-resize.pod:575
23407 #, no-wrap
23408 msgid ""
23409 " guestfish -i -a newdisk\n"
23410 " ><fs> cat /boot/grub/device.map\n"
23411 " # check the contents of this file are sensible or\n"
23412 " # edit the file if necessary\n"
23413 " ><fs> grub-install / /dev/vda\n"
23414 " ><fs> exit\n"
23415 "\n"
23416 msgstr ""
23417
23418 #. type: textblock
23419 #: ../resize/virt-resize.pod:582
23420 msgid ""
23421 "For more flexible guest reconfiguration, including if you need to specify "
23422 "other parameters to grub-install, use L<virt-rescue(1)>."
23423 msgstr ""
23424
23425 #. type: =head1
23426 #: ../resize/virt-resize.pod:585
23427 msgid "ALTERNATIVE TOOLS"
23428 msgstr ""
23429
23430 #. type: textblock
23431 #: ../resize/virt-resize.pod:587
23432 msgid ""
23433 "There are several proprietary tools for resizing partitions.  We won't "
23434 "mention any here."
23435 msgstr ""
23436
23437 #. type: textblock
23438 #: ../resize/virt-resize.pod:590
23439 msgid ""
23440 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23441 "operations on disk images.  They can resize and move partitions, but I don't "
23442 "think they can do anything with the contents, and they certainly don't "
23443 "understand LVM."
23444 msgstr ""
23445
23446 #. type: textblock
23447 #: ../resize/virt-resize.pod:595
23448 msgid ""
23449 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23450 "but at a much lower level.  You will probably end up hand-calculating sector "
23451 "offsets, which is something that virt-resize was designed to avoid.  If you "
23452 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23453 "I<--debug> flag."
23454 msgstr ""
23455
23456 #. type: textblock
23457 #: ../resize/virt-resize.pod:615
23458 msgid ""
23459 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23460 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23461 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23462 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
23463 msgstr ""
23464
23465 #. type: textblock
23466 #: ../ruby/examples/guestfs-ruby.pod:5
23467 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23468 msgstr ""
23469
23470 #. type: verbatim
23471 #: ../ruby/examples/guestfs-ruby.pod:9
23472 #, no-wrap
23473 msgid ""
23474 " require 'guestfs'\n"
23475 " g = Guestfs::Guestfs.new()\n"
23476 " g.add_drive_opts(\"disk.img\",\n"
23477 "                  :readonly => 1, :format => \"raw\")\n"
23478 " g.launch()\n"
23479 "\n"
23480 msgstr ""
23481
23482 #. type: textblock
23483 #: ../ruby/examples/guestfs-ruby.pod:17
23484 msgid ""
23485 "This manual page documents how to call libguestfs from the Ruby programming "
23486 "language.  This page just documents the differences from the C API and gives "
23487 "some examples.  If you are not familiar with using libguestfs, you also need "
23488 "to read L<guestfs(3)>."
23489 msgstr ""
23490
23491 #. type: textblock
23492 #: ../ruby/examples/guestfs-ruby.pod:24
23493 msgid ""
23494 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
23495 "This has a single parameter which is the error message (a string)."
23496 msgstr ""
23497
23498 #. type: textblock
23499 #: ../ruby/examples/guestfs-ruby.pod:38
23500 #, fuzzy
23501 #| msgid ""
23502 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23503 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23504 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23505 msgid ""
23506 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23507 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
23508 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23509 msgstr ""
23510 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23511 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23512 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23513
23514 #. type: =head2
23515 #: ../src/guestfs-actions.pod:1
23516 msgid "guestfs_add_cdrom"
23517 msgstr ""
23518
23519 #. type: verbatim
23520 #: ../src/guestfs-actions.pod:3
23521 #, no-wrap
23522 msgid ""
23523 " int\n"
23524 " guestfs_add_cdrom (guestfs_h *g,\n"
23525 "                    const char *filename);\n"
23526 "\n"
23527 msgstr ""
23528
23529 #. type: textblock
23530 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
23531 #: ../src/guestfs-actions.pod:270
23532 msgid ""
23533 "I<This function is deprecated.> In new code, use the L</"
23534 "guestfs_add_drive_opts> call instead."
23535 msgstr ""
23536
23537 #. type: textblock
23538 #: ../src/guestfs-actions.pod:24
23539 msgid ""
23540 "This call checks for the existence of C<filename>.  This stops you from "
23541 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23542 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
23543 "instead."
23544 msgstr ""
23545
23546 #. type: textblock
23547 #: ../src/guestfs-actions.pod:31
23548 msgid ""
23549 "If you just want to add an ISO file (often you use this as an efficient way "
23550 "to transfer large files into the guest), then you should probably use "
23551 "C<guestfs_add_drive_ro> instead."
23552 msgstr ""
23553
23554 #. type: textblock
23555 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
23556 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23557 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
23558 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23559 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23560 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23561 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23562 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23563 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23564 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23565 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23566 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23567 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23568 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1231
23569 #: ../src/guestfs-actions.pod:1275 ../src/guestfs-actions.pod:1293
23570 #: ../src/guestfs-actions.pod:1312 ../src/guestfs-actions.pod:1326
23571 #: ../src/guestfs-actions.pod:1346 ../src/guestfs-actions.pod:1416
23572 #: ../src/guestfs-actions.pod:1447 ../src/guestfs-actions.pod:1472
23573 #: ../src/guestfs-actions.pod:1514 ../src/guestfs-actions.pod:1627
23574 #: ../src/guestfs-actions.pod:1654 ../src/guestfs-actions.pod:1869
23575 #: ../src/guestfs-actions.pod:1891 ../src/guestfs-actions.pod:1978
23576 #: ../src/guestfs-actions.pod:2484 ../src/guestfs-actions.pod:2628
23577 #: ../src/guestfs-actions.pod:2689 ../src/guestfs-actions.pod:2724
23578 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3783
23579 #: ../src/guestfs-actions.pod:3808 ../src/guestfs-actions.pod:3997
23580 #: ../src/guestfs-actions.pod:4011 ../src/guestfs-actions.pod:4024
23581 #: ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4053
23582 #: ../src/guestfs-actions.pod:4089 ../src/guestfs-actions.pod:4161
23583 #: ../src/guestfs-actions.pod:4181 ../src/guestfs-actions.pod:4198
23584 #: ../src/guestfs-actions.pod:4221 ../src/guestfs-actions.pod:4244
23585 #: ../src/guestfs-actions.pod:4279 ../src/guestfs-actions.pod:4298
23586 #: ../src/guestfs-actions.pod:4317 ../src/guestfs-actions.pod:4352
23587 #: ../src/guestfs-actions.pod:4364 ../src/guestfs-actions.pod:4400
23588 #: ../src/guestfs-actions.pod:4416 ../src/guestfs-actions.pod:4429
23589 #: ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:4461
23590 #: ../src/guestfs-actions.pod:4554 ../src/guestfs-actions.pod:4574
23591 #: ../src/guestfs-actions.pod:4587 ../src/guestfs-actions.pod:4638
23592 #: ../src/guestfs-actions.pod:4656 ../src/guestfs-actions.pod:4674
23593 #: ../src/guestfs-actions.pod:4690 ../src/guestfs-actions.pod:4704
23594 #: ../src/guestfs-actions.pod:4718 ../src/guestfs-actions.pod:4735
23595 #: ../src/guestfs-actions.pod:4750 ../src/guestfs-actions.pod:4777
23596 #: ../src/guestfs-actions.pod:4840 ../src/guestfs-actions.pod:4913
23597 #: ../src/guestfs-actions.pod:4944 ../src/guestfs-actions.pod:4963
23598 #: ../src/guestfs-actions.pod:4982 ../src/guestfs-actions.pod:4994
23599 #: ../src/guestfs-actions.pod:5011 ../src/guestfs-actions.pod:5024
23600 #: ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5054
23601 #: ../src/guestfs-actions.pod:5086 ../src/guestfs-actions.pod:5112
23602 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5171
23603 #: ../src/guestfs-actions.pod:5185 ../src/guestfs-actions.pod:5202
23604 #: ../src/guestfs-actions.pod:5251 ../src/guestfs-actions.pod:5304
23605 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5394
23606 #: ../src/guestfs-actions.pod:5422 ../src/guestfs-actions.pod:5439
23607 #: ../src/guestfs-actions.pod:5457 ../src/guestfs-actions.pod:5597
23608 #: ../src/guestfs-actions.pod:5654 ../src/guestfs-actions.pod:5676
23609 #: ../src/guestfs-actions.pod:5694 ../src/guestfs-actions.pod:5726
23610 #: ../src/guestfs-actions.pod:5792 ../src/guestfs-actions.pod:5809
23611 #: ../src/guestfs-actions.pod:5822 ../src/guestfs-actions.pod:5836
23612 #: ../src/guestfs-actions.pod:6125 ../src/guestfs-actions.pod:6144
23613 #: ../src/guestfs-actions.pod:6163 ../src/guestfs-actions.pod:6177
23614 #: ../src/guestfs-actions.pod:6189 ../src/guestfs-actions.pod:6203
23615 #: ../src/guestfs-actions.pod:6215 ../src/guestfs-actions.pod:6229
23616 #: ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6266
23617 #: ../src/guestfs-actions.pod:6285 ../src/guestfs-actions.pod:6304
23618 #: ../src/guestfs-actions.pod:6334 ../src/guestfs-actions.pod:6352
23619 #: ../src/guestfs-actions.pod:6375 ../src/guestfs-actions.pod:6393
23620 #: ../src/guestfs-actions.pod:6412 ../src/guestfs-actions.pod:6433
23621 #: ../src/guestfs-actions.pod:6452 ../src/guestfs-actions.pod:6469
23622 #: ../src/guestfs-actions.pod:6488 ../src/guestfs-actions.pod:6516
23623 #: ../src/guestfs-actions.pod:6540 ../src/guestfs-actions.pod:6559
23624 #: ../src/guestfs-actions.pod:6575 ../src/guestfs-actions.pod:6597
23625 #: ../src/guestfs-actions.pod:6616 ../src/guestfs-actions.pod:6631
23626 #: ../src/guestfs-actions.pod:6650 ../src/guestfs-actions.pod:6694
23627 #: ../src/guestfs-actions.pod:6724 ../src/guestfs-actions.pod:6757
23628 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6993
23629 #: ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7018
23630 #: ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7053
23631 #: ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7079
23632 #: ../src/guestfs-actions.pod:7092 ../src/guestfs-actions.pod:7107
23633 #: ../src/guestfs-actions.pod:7166 ../src/guestfs-actions.pod:7183
23634 #: ../src/guestfs-actions.pod:7199 ../src/guestfs-actions.pod:7215
23635 #: ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7245
23636 #: ../src/guestfs-actions.pod:7265 ../src/guestfs-actions.pod:7301
23637 #: ../src/guestfs-actions.pod:7315 ../src/guestfs-actions.pod:7356
23638 #: ../src/guestfs-actions.pod:7369 ../src/guestfs-actions.pod:7387
23639 #: ../src/guestfs-actions.pod:7421 ../src/guestfs-actions.pod:7457
23640 #: ../src/guestfs-actions.pod:7573 ../src/guestfs-actions.pod:7588
23641 #: ../src/guestfs-actions.pod:7602 ../src/guestfs-actions.pod:7657
23642 #: ../src/guestfs-actions.pod:7670 ../src/guestfs-actions.pod:7715
23643 #: ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:7811
23644 #: ../src/guestfs-actions.pod:7831 ../src/guestfs-actions.pod:7864
23645 #: ../src/guestfs-actions.pod:7928 ../src/guestfs-actions.pod:7951
23646 #: ../src/guestfs-actions.pod:7980
23647 msgid "This function returns 0 on success or -1 on error."
23648 msgstr ""
23649
23650 #. type: textblock
23651 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23652 #: ../src/guestfs-actions.pod:1277 ../src/guestfs-actions.pod:2092
23653 #: ../src/guestfs-actions.pod:2190 ../src/guestfs-actions.pod:2313
23654 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3790
23655 #: ../src/guestfs-actions.pod:5088 ../src/guestfs-actions.pod:6354
23656 #: ../src/guestfs-actions.pod:6471 ../src/guestfs-actions.pod:6618
23657 #: ../src/guestfs-actions.pod:7109 ../src/guestfs-actions.pod:7234
23658 #: ../src/guestfs-actions.pod:7757
23659 msgid "(Added in 0.3)"
23660 msgstr ""
23661
23662 #. type: =head2
23663 #: ../src/guestfs-actions.pod:41
23664 msgid "guestfs_add_domain"
23665 msgstr ""
23666
23667 #. type: verbatim
23668 #: ../src/guestfs-actions.pod:43
23669 #, no-wrap
23670 msgid ""
23671 " int\n"
23672 " guestfs_add_domain (guestfs_h *g,\n"
23673 "                     const char *dom,\n"
23674 "                     ...);\n"
23675 "\n"
23676 msgstr ""
23677
23678 #. type: textblock
23679 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23680 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161
23681 #: ../src/guestfs-actions.pod:1211 ../src/guestfs-actions.pod:2973
23682 #: ../src/guestfs-actions.pod:4789 ../src/guestfs-actions.pod:5098
23683 #: ../src/guestfs-actions.pod:5315
23684 msgid ""
23685 "You may supply a list of optional arguments to this call.  Use zero or more "
23686 "of the following pairs of parameters, and terminate the list with C<-1> on "
23687 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
23688 msgstr ""
23689
23690 #. type: verbatim
23691 #: ../src/guestfs-actions.pod:53
23692 #, no-wrap
23693 msgid ""
23694 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23695 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23696 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23697 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23698 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23699 "\n"
23700 msgstr ""
23701
23702 #. type: textblock
23703 #: ../src/guestfs-actions.pod:59
23704 msgid ""
23705 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23706 "It works by connecting to libvirt, requesting the domain and domain XML from "
23707 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23708 "one."
23709 msgstr ""
23710
23711 #. type: textblock
23712 #: ../src/guestfs-actions.pod:94
23713 msgid ""
23714 "The other optional parameters are passed directly through to "
23715 "C<guestfs_add_drive_opts>."
23716 msgstr ""
23717
23718 #. type: textblock
23719 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23720 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23721 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23722 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1492
23723 #: ../src/guestfs-actions.pod:1848 ../src/guestfs-actions.pod:2051
23724 #: ../src/guestfs-actions.pod:2162 ../src/guestfs-actions.pod:2213
23725 #: ../src/guestfs-actions.pod:2265 ../src/guestfs-actions.pod:2277
23726 #: ../src/guestfs-actions.pod:2300 ../src/guestfs-actions.pod:2615
23727 #: ../src/guestfs-actions.pod:3091 ../src/guestfs-actions.pod:3109
23728 #: ../src/guestfs-actions.pod:5274 ../src/guestfs-actions.pod:5494
23729 #: ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:5932
23730 #: ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7768
23731 #: ../src/guestfs-actions.pod:7781 ../src/guestfs-actions.pod:7794
23732 msgid "On error this function returns -1."
23733 msgstr ""
23734
23735 #. type: textblock
23736 #: ../src/guestfs-actions.pod:99
23737 msgid "(Added in 1.7.4)"
23738 msgstr ""
23739
23740 #. type: =head2
23741 #: ../src/guestfs-actions.pod:101
23742 msgid "guestfs_add_domain_va"
23743 msgstr ""
23744
23745 #. type: verbatim
23746 #: ../src/guestfs-actions.pod:103
23747 #, no-wrap
23748 msgid ""
23749 " int\n"
23750 " guestfs_add_domain_va (guestfs_h *g,\n"
23751 "                        const char *dom,\n"
23752 "                        va_list args);\n"
23753 "\n"
23754 msgstr ""
23755
23756 #. type: textblock
23757 #: ../src/guestfs-actions.pod:108
23758 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23759 msgstr ""
23760
23761 #. type: textblock
23762 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23763 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23764 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23765 #: ../src/guestfs-actions.pod:1187 ../src/guestfs-actions.pod:1200
23766 #: ../src/guestfs-actions.pod:1244 ../src/guestfs-actions.pod:1257
23767 #: ../src/guestfs-actions.pod:3057 ../src/guestfs-actions.pod:3069
23768 #: ../src/guestfs-actions.pod:4854 ../src/guestfs-actions.pod:4866
23769 #: ../src/guestfs-actions.pod:5126 ../src/guestfs-actions.pod:5138
23770 #: ../src/guestfs-actions.pod:5364 ../src/guestfs-actions.pod:5375
23771 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23772 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23773
23774 #. type: =head2
23775 #: ../src/guestfs-actions.pod:112
23776 msgid "guestfs_add_domain_argv"
23777 msgstr "guestfs_add_domain_argv"
23778
23779 #. type: verbatim
23780 #: ../src/guestfs-actions.pod:114
23781 #, no-wrap
23782 msgid ""
23783 " int\n"
23784 " guestfs_add_domain_argv (guestfs_h *g,\n"
23785 "                          const char *dom,\n"
23786 "                          const struct guestfs_add_domain_argv *optargs);\n"
23787 "\n"
23788 msgstr ""
23789
23790 #. type: textblock
23791 #: ../src/guestfs-actions.pod:119
23792 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23793 msgstr ""
23794
23795 #. type: =head2
23796 #: ../src/guestfs-actions.pod:123
23797 msgid "guestfs_add_drive"
23798 msgstr ""
23799
23800 #. type: verbatim
23801 #: ../src/guestfs-actions.pod:125
23802 #, no-wrap
23803 msgid ""
23804 " int\n"
23805 " guestfs_add_drive (guestfs_h *g,\n"
23806 "                    const char *filename);\n"
23807 "\n"
23808 msgstr ""
23809
23810 #. type: textblock
23811 #: ../src/guestfs-actions.pod:129
23812 msgid ""
23813 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23814 "optional parameters, so the disk is added writable, with the format being "
23815 "detected automatically."
23816 msgstr ""
23817
23818 #. type: textblock
23819 #: ../src/guestfs-actions.pod:133
23820 msgid ""
23821 "Automatic detection of the format opens you up to a potential security hole "
23822 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23823 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23824 "you should think about replacing calls to this function with calls to "
23825 "C<guestfs_add_drive_opts>, and specifying the format."
23826 msgstr ""
23827
23828 #. type: =head2
23829 #: ../src/guestfs-actions.pod:144
23830 msgid "guestfs_add_drive_opts"
23831 msgstr ""
23832
23833 #. type: verbatim
23834 #: ../src/guestfs-actions.pod:146
23835 #, no-wrap
23836 msgid ""
23837 " int\n"
23838 " guestfs_add_drive_opts (guestfs_h *g,\n"
23839 "                         const char *filename,\n"
23840 "                         ...);\n"
23841 "\n"
23842 msgstr ""
23843
23844 #. type: verbatim
23845 #: ../src/guestfs-actions.pod:156
23846 #, no-wrap
23847 msgid ""
23848 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23849 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23850 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23851 "\n"
23852 msgstr ""
23853
23854 #. type: textblock
23855 #: ../src/guestfs-actions.pod:185
23856 msgid ""
23857 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
23858 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
23859 "Possible formats include C<raw> and C<qcow2>."
23860 msgstr ""
23861
23862 #. type: textblock
23863 #: ../src/guestfs-actions.pod:196
23864 msgid ""
23865 "This rarely-used option lets you emulate the behaviour of the deprecated "
23866 "C<guestfs_add_drive_with_if> call (q.v.)"
23867 msgstr ""
23868
23869 #. type: textblock
23870 #: ../src/guestfs-actions.pod:203
23871 msgid "(Added in 1.5.23)"
23872 msgstr ""
23873
23874 #. type: =head2
23875 #: ../src/guestfs-actions.pod:205
23876 msgid "guestfs_add_drive_opts_va"
23877 msgstr ""
23878
23879 #. type: verbatim
23880 #: ../src/guestfs-actions.pod:207
23881 #, no-wrap
23882 msgid ""
23883 " int\n"
23884 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23885 "                            const char *filename,\n"
23886 "                            va_list args);\n"
23887 "\n"
23888 msgstr ""
23889
23890 #. type: textblock
23891 #: ../src/guestfs-actions.pod:212
23892 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23893 msgstr ""
23894
23895 #. type: =head2
23896 #: ../src/guestfs-actions.pod:216
23897 msgid "guestfs_add_drive_opts_argv"
23898 msgstr ""
23899
23900 #. type: verbatim
23901 #: ../src/guestfs-actions.pod:218
23902 #, no-wrap
23903 msgid ""
23904 " int\n"
23905 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23906 "                              const char *filename,\n"
23907 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
23908 "\n"
23909 msgstr ""
23910
23911 #. type: textblock
23912 #: ../src/guestfs-actions.pod:223
23913 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23914 msgstr ""
23915
23916 #. type: =head2
23917 #: ../src/guestfs-actions.pod:227
23918 msgid "guestfs_add_drive_ro"
23919 msgstr ""
23920
23921 #. type: verbatim
23922 #: ../src/guestfs-actions.pod:229
23923 #, no-wrap
23924 msgid ""
23925 " int\n"
23926 " guestfs_add_drive_ro (guestfs_h *g,\n"
23927 "                       const char *filename);\n"
23928 "\n"
23929 msgstr ""
23930
23931 #. type: textblock
23932 #: ../src/guestfs-actions.pod:233
23933 msgid ""
23934 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23935 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23936 "disk is added read-only, with the format being detected automatically."
23937 msgstr ""
23938
23939 #. type: textblock
23940 #: ../src/guestfs-actions.pod:240
23941 msgid "(Added in 1.0.38)"
23942 msgstr ""
23943
23944 #. type: =head2
23945 #: ../src/guestfs-actions.pod:242
23946 msgid "guestfs_add_drive_ro_with_if"
23947 msgstr ""
23948
23949 #. type: verbatim
23950 #: ../src/guestfs-actions.pod:244
23951 #, no-wrap
23952 msgid ""
23953 " int\n"
23954 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23955 "                               const char *filename,\n"
23956 "                               const char *iface);\n"
23957 "\n"
23958 msgstr ""
23959
23960 #. type: textblock
23961 #: ../src/guestfs-actions.pod:256
23962 msgid ""
23963 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23964 "QEMU interface emulation to use at run time."
23965 msgstr ""
23966
23967 #. type: textblock
23968 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23969 #: ../src/guestfs-actions.pod:2574
23970 msgid "(Added in 1.0.84)"
23971 msgstr ""
23972
23973 #. type: =head2
23974 #: ../src/guestfs-actions.pod:263
23975 msgid "guestfs_add_drive_with_if"
23976 msgstr ""
23977
23978 #. type: verbatim
23979 #: ../src/guestfs-actions.pod:265
23980 #, no-wrap
23981 msgid ""
23982 " int\n"
23983 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23984 "                            const char *filename,\n"
23985 "                            const char *iface);\n"
23986 "\n"
23987 msgstr ""
23988
23989 #. type: textblock
23990 #: ../src/guestfs-actions.pod:277
23991 msgid ""
23992 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23993 "QEMU interface emulation to use at run time."
23994 msgstr ""
23995
23996 #. type: =head2
23997 #: ../src/guestfs-actions.pod:284
23998 msgid "guestfs_aug_clear"
23999 msgstr ""
24000
24001 #. type: verbatim
24002 #: ../src/guestfs-actions.pod:286
24003 #, no-wrap
24004 msgid ""
24005 " int\n"
24006 " guestfs_aug_clear (guestfs_h *g,\n"
24007 "                    const char *augpath);\n"
24008 "\n"
24009 msgstr ""
24010
24011 #. type: textblock
24012 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2302
24013 msgid "(Added in 1.3.4)"
24014 msgstr ""
24015
24016 #. type: =head2
24017 #: ../src/guestfs-actions.pod:297
24018 msgid "guestfs_aug_close"
24019 msgstr ""
24020
24021 #. type: verbatim
24022 #: ../src/guestfs-actions.pod:299
24023 #, no-wrap
24024 msgid ""
24025 " int\n"
24026 " guestfs_aug_close (guestfs_h *g);\n"
24027 "\n"
24028 msgstr ""
24029
24030 #. type: textblock
24031 #: ../src/guestfs-actions.pod:302
24032 msgid ""
24033 "Close the current Augeas handle and free up any resources used by it.  After "
24034 "calling this, you have to call C<guestfs_aug_init> again before you can use "
24035 "any other Augeas functions."
24036 msgstr ""
24037
24038 #. type: textblock
24039 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
24040 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
24041 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
24042 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
24043 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
24044 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
24045 #: ../src/guestfs-actions.pod:5983
24046 msgid "(Added in 0.7)"
24047 msgstr ""
24048
24049 #. type: =head2
24050 #: ../src/guestfs-actions.pod:311
24051 msgid "guestfs_aug_defnode"
24052 msgstr ""
24053
24054 #. type: verbatim
24055 #: ../src/guestfs-actions.pod:313
24056 #, no-wrap
24057 msgid ""
24058 " struct guestfs_int_bool *\n"
24059 " guestfs_aug_defnode (guestfs_h *g,\n"
24060 "                      const char *name,\n"
24061 "                      const char *expr,\n"
24062 "                      const char *val);\n"
24063 "\n"
24064 msgstr ""
24065
24066 #. type: textblock
24067 #: ../src/guestfs-actions.pod:322
24068 msgid ""
24069 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24070 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
24071 "containing that single node."
24072 msgstr ""
24073
24074 #. type: textblock
24075 #: ../src/guestfs-actions.pod:330
24076 msgid ""
24077 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
24078 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
24079 msgstr ""
24080
24081 #. type: =head2
24082 #: ../src/guestfs-actions.pod:336
24083 msgid "guestfs_aug_defvar"
24084 msgstr ""
24085
24086 #. type: verbatim
24087 #: ../src/guestfs-actions.pod:338
24088 #, no-wrap
24089 msgid ""
24090 " int\n"
24091 " guestfs_aug_defvar (guestfs_h *g,\n"
24092 "                     const char *name,\n"
24093 "                     const char *expr);\n"
24094 "\n"
24095 msgstr ""
24096
24097 #. type: =head2
24098 #: ../src/guestfs-actions.pod:354
24099 msgid "guestfs_aug_get"
24100 msgstr ""
24101
24102 #. type: verbatim
24103 #: ../src/guestfs-actions.pod:356
24104 #, no-wrap
24105 msgid ""
24106 " char *\n"
24107 " guestfs_aug_get (guestfs_h *g,\n"
24108 "                  const char *augpath);\n"
24109 "\n"
24110 msgstr ""
24111
24112 #. type: textblock
24113 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
24114 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
24115 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
24116 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
24117 #: ../src/guestfs-actions.pod:1397 ../src/guestfs-actions.pod:1531
24118 #: ../src/guestfs-actions.pod:1719 ../src/guestfs-actions.pod:1831
24119 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2011
24120 #: ../src/guestfs-actions.pod:2078 ../src/guestfs-actions.pod:2121
24121 #: ../src/guestfs-actions.pod:2142 ../src/guestfs-actions.pod:2325
24122 #: ../src/guestfs-actions.pod:2539 ../src/guestfs-actions.pod:2743
24123 #: ../src/guestfs-actions.pod:2837 ../src/guestfs-actions.pod:2941
24124 #: ../src/guestfs-actions.pod:2960 ../src/guestfs-actions.pod:3174
24125 #: ../src/guestfs-actions.pod:3202 ../src/guestfs-actions.pod:3223
24126 #: ../src/guestfs-actions.pod:3257 ../src/guestfs-actions.pod:3316
24127 #: ../src/guestfs-actions.pod:3336 ../src/guestfs-actions.pod:3356
24128 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:4336
24129 #: ../src/guestfs-actions.pod:4506 ../src/guestfs-actions.pod:4616
24130 #: ../src/guestfs-actions.pod:5512 ../src/guestfs-actions.pod:5711
24131 #: ../src/guestfs-actions.pod:5881 ../src/guestfs-actions.pod:6059
24132 #: ../src/guestfs-actions.pod:6108 ../src/guestfs-actions.pod:6778
24133 #: ../src/guestfs-actions.pod:6794 ../src/guestfs-actions.pod:6818
24134 #: ../src/guestfs-actions.pod:6842 ../src/guestfs-actions.pod:7516
24135 #: ../src/guestfs-actions.pod:7535 ../src/guestfs-actions.pod:7553
24136 #: ../src/guestfs-actions.pod:7727 ../src/guestfs-actions.pod:8044
24137 msgid ""
24138 "This function returns a string, or NULL on error.  I<The caller must free "
24139 "the returned string after use>."
24140 msgstr ""
24141
24142 #. type: =head2
24143 #: ../src/guestfs-actions.pod:368
24144 msgid "guestfs_aug_init"
24145 msgstr ""
24146
24147 #. type: verbatim
24148 #: ../src/guestfs-actions.pod:370
24149 #, no-wrap
24150 msgid ""
24151 " int\n"
24152 " guestfs_aug_init (guestfs_h *g,\n"
24153 "                   const char *root,\n"
24154 "                   int flags);\n"
24155 "\n"
24156 msgstr ""
24157
24158 #. type: textblock
24159 #: ../src/guestfs-actions.pod:379
24160 msgid "You must call this before using any other C<guestfs_aug_*> commands."
24161 msgstr ""
24162
24163 #. type: textblock
24164 #: ../src/guestfs-actions.pod:404
24165 msgid ""
24166 "This option is only useful when debugging Augeas lenses.  Use of this option "
24167 "may require additional memory for the libguestfs appliance.  You may need to "
24168 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
24169 "C<guestfs_set_memsize>."
24170 msgstr ""
24171
24172 #. type: textblock
24173 #: ../src/guestfs-actions.pod:419
24174 msgid "Do not load the tree in C<guestfs_aug_init>."
24175 msgstr ""
24176
24177 #. type: textblock
24178 #: ../src/guestfs-actions.pod:423
24179 msgid "To close the handle, you can call C<guestfs_aug_close>."
24180 msgstr ""
24181
24182 #. type: =head2
24183 #: ../src/guestfs-actions.pod:431
24184 msgid "guestfs_aug_insert"
24185 msgstr ""
24186
24187 #. type: verbatim
24188 #: ../src/guestfs-actions.pod:433
24189 #, no-wrap
24190 msgid ""
24191 " int\n"
24192 " guestfs_aug_insert (guestfs_h *g,\n"
24193 "                     const char *augpath,\n"
24194 "                     const char *label,\n"
24195 "                     int before);\n"
24196 "\n"
24197 msgstr ""
24198
24199 #. type: =head2
24200 #: ../src/guestfs-actions.pod:451
24201 msgid "guestfs_aug_load"
24202 msgstr ""
24203
24204 #. type: verbatim
24205 #: ../src/guestfs-actions.pod:453
24206 #, no-wrap
24207 msgid ""
24208 " int\n"
24209 " guestfs_aug_load (guestfs_h *g);\n"
24210 "\n"
24211 msgstr ""
24212
24213 #. type: =head2
24214 #: ../src/guestfs-actions.pod:465
24215 msgid "guestfs_aug_ls"
24216 msgstr ""
24217
24218 #. type: verbatim
24219 #: ../src/guestfs-actions.pod:467
24220 #, no-wrap
24221 msgid ""
24222 " char **\n"
24223 " guestfs_aug_ls (guestfs_h *g,\n"
24224 "                 const char *augpath);\n"
24225 "\n"
24226 msgstr ""
24227
24228 #. type: textblock
24229 #: ../src/guestfs-actions.pod:471
24230 msgid ""
24231 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24232 "sorting the resulting nodes into alphabetical order."
24233 msgstr ""
24234
24235 #. type: textblock
24236 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
24237 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
24238 #: ../src/guestfs-actions.pod:1546 ../src/guestfs-actions.pod:1565
24239 #: ../src/guestfs-actions.pod:1668 ../src/guestfs-actions.pod:1687
24240 #: ../src/guestfs-actions.pod:1933 ../src/guestfs-actions.pod:2397
24241 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:2432
24242 #: ../src/guestfs-actions.pod:2497 ../src/guestfs-actions.pod:2521
24243 #: ../src/guestfs-actions.pod:2592 ../src/guestfs-actions.pod:2641
24244 #: ../src/guestfs-actions.pod:2902 ../src/guestfs-actions.pod:3276
24245 #: ../src/guestfs-actions.pod:3552 ../src/guestfs-actions.pod:3866
24246 #: ../src/guestfs-actions.pod:3883 ../src/guestfs-actions.pod:3903
24247 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4070
24248 #: ../src/guestfs-actions.pod:4478 ../src/guestfs-actions.pod:5235
24249 #: ../src/guestfs-actions.pod:5853 ../src/guestfs-actions.pod:5979
24250 #: ../src/guestfs-actions.pod:6093 ../src/guestfs-actions.pod:6858
24251 #: ../src/guestfs-actions.pod:6919 ../src/guestfs-actions.pod:6974
24252 #: ../src/guestfs-actions.pod:7120 ../src/guestfs-actions.pod:7144
24253 #: ../src/guestfs-actions.pod:7620 ../src/guestfs-actions.pod:7640
24254 #: ../src/guestfs-actions.pod:7687 ../src/guestfs-actions.pod:7881
24255 #: ../src/guestfs-actions.pod:7900 ../src/guestfs-actions.pod:7994
24256 #: ../src/guestfs-actions.pod:8013 ../src/guestfs-actions.pod:8059
24257 #: ../src/guestfs-actions.pod:8078
24258 msgid ""
24259 "This function returns a NULL-terminated array of strings (like L<environ(3)"
24260 ">), or NULL if there was an error.  I<The caller must free the strings and "
24261 "the array after use>."
24262 msgstr ""
24263
24264 #. type: textblock
24265 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
24266 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1603
24267 #: ../src/guestfs-actions.pod:3630 ../src/guestfs-actions.pod:3661
24268 #: ../src/guestfs-actions.pod:4319 ../src/guestfs-actions.pod:4369
24269 #: ../src/guestfs-actions.pod:4556 ../src/guestfs-actions.pod:4589
24270 #: ../src/guestfs-actions.pod:4752 ../src/guestfs-actions.pod:5239
24271 #: ../src/guestfs-actions.pod:5794 ../src/guestfs-actions.pod:6191
24272 #: ../src/guestfs-actions.pod:6205 ../src/guestfs-actions.pod:6217
24273 #: ../src/guestfs-actions.pod:6699 ../src/guestfs-actions.pod:7358
24274 #: ../src/guestfs-actions.pod:7371 ../src/guestfs-actions.pod:7604
24275 #: ../src/guestfs-actions.pod:7869
24276 msgid "(Added in 0.8)"
24277 msgstr ""
24278
24279 #. type: =head2
24280 #: ../src/guestfs-actions.pod:480
24281 msgid "guestfs_aug_match"
24282 msgstr ""
24283
24284 #. type: verbatim
24285 #: ../src/guestfs-actions.pod:482
24286 #, no-wrap
24287 msgid ""
24288 " char **\n"
24289 " guestfs_aug_match (guestfs_h *g,\n"
24290 "                    const char *augpath);\n"
24291 "\n"
24292 msgstr ""
24293
24294 #. type: =head2
24295 #: ../src/guestfs-actions.pod:496
24296 msgid "guestfs_aug_mv"
24297 msgstr ""
24298
24299 #. type: verbatim
24300 #: ../src/guestfs-actions.pod:498
24301 #, no-wrap
24302 msgid ""
24303 " int\n"
24304 " guestfs_aug_mv (guestfs_h *g,\n"
24305 "                 const char *src,\n"
24306 "                 const char *dest);\n"
24307 "\n"
24308 msgstr ""
24309
24310 #. type: =head2
24311 #: ../src/guestfs-actions.pod:510
24312 msgid "guestfs_aug_rm"
24313 msgstr ""
24314
24315 #. type: verbatim
24316 #: ../src/guestfs-actions.pod:512
24317 #, no-wrap
24318 msgid ""
24319 " int\n"
24320 " guestfs_aug_rm (guestfs_h *g,\n"
24321 "                 const char *augpath);\n"
24322 "\n"
24323 msgstr ""
24324
24325 #. type: =head2
24326 #: ../src/guestfs-actions.pod:524
24327 msgid "guestfs_aug_save"
24328 msgstr ""
24329
24330 #. type: verbatim
24331 #: ../src/guestfs-actions.pod:526
24332 #, no-wrap
24333 msgid ""
24334 " int\n"
24335 " guestfs_aug_save (guestfs_h *g);\n"
24336 "\n"
24337 msgstr ""
24338
24339 #. type: textblock
24340 #: ../src/guestfs-actions.pod:531
24341 msgid ""
24342 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
24343 "are saved."
24344 msgstr ""
24345
24346 #. type: =head2
24347 #: ../src/guestfs-actions.pod:538
24348 msgid "guestfs_aug_set"
24349 msgstr ""
24350
24351 #. type: verbatim
24352 #: ../src/guestfs-actions.pod:540
24353 #, no-wrap
24354 msgid ""
24355 " int\n"
24356 " guestfs_aug_set (guestfs_h *g,\n"
24357 "                  const char *augpath,\n"
24358 "                  const char *val);\n"
24359 "\n"
24360 msgstr ""
24361
24362 #. type: textblock
24363 #: ../src/guestfs-actions.pod:547
24364 msgid ""
24365 "In the Augeas API, it is possible to clear a node by setting the value to "
24366 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
24367 "this call.  Instead you must use the C<guestfs_aug_clear> call."
24368 msgstr ""
24369
24370 #. type: =head2
24371 #: ../src/guestfs-actions.pod:556
24372 msgid "guestfs_available"
24373 msgstr ""
24374
24375 #. type: verbatim
24376 #: ../src/guestfs-actions.pod:558
24377 #, no-wrap
24378 msgid ""
24379 " int\n"
24380 " guestfs_available (guestfs_h *g,\n"
24381 "                    char *const *groups);\n"
24382 "\n"
24383 msgstr ""
24384
24385 #. type: textblock
24386 #: ../src/guestfs-actions.pod:566
24387 msgid ""
24388 "The libguestfs groups, and the functions that those groups correspond to, "
24389 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
24390 "runtime by calling C<guestfs_available_all_groups>."
24391 msgstr ""
24392
24393 #. type: textblock
24394 #: ../src/guestfs-actions.pod:590
24395 msgid "You must call C<guestfs_launch> before calling this function."
24396 msgstr ""
24397
24398 #. type: textblock
24399 #: ../src/guestfs-actions.pod:612
24400 msgid ""
24401 "This call was added in version C<1.0.80>.  In previous versions of "
24402 "libguestfs all you could do would be to speculatively execute a command to "
24403 "find out if the daemon implemented it.  See also C<guestfs_version>."
24404 msgstr ""
24405
24406 #. type: textblock
24407 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1348
24408 msgid "(Added in 1.0.80)"
24409 msgstr ""
24410
24411 #. type: =head2
24412 #: ../src/guestfs-actions.pod:623
24413 msgid "guestfs_available_all_groups"
24414 msgstr ""
24415
24416 #. type: verbatim
24417 #: ../src/guestfs-actions.pod:625
24418 #, no-wrap
24419 msgid ""
24420 " char **\n"
24421 " guestfs_available_all_groups (guestfs_h *g);\n"
24422 "\n"
24423 msgstr ""
24424
24425 #. type: textblock
24426 #: ../src/guestfs-actions.pod:628
24427 msgid ""
24428 "This command returns a list of all optional groups that this daemon knows "
24429 "about.  Note this returns both supported and unsupported groups.  To find "
24430 "out which ones the daemon can actually support you have to call "
24431 "C<guestfs_available> on each member of the returned list."
24432 msgstr ""
24433
24434 #. type: textblock
24435 #: ../src/guestfs-actions.pod:634
24436 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24437 msgstr ""
24438
24439 #. type: textblock
24440 #: ../src/guestfs-actions.pod:640
24441 msgid "(Added in 1.3.15)"
24442 msgstr ""
24443
24444 #. type: =head2
24445 #: ../src/guestfs-actions.pod:642
24446 msgid "guestfs_base64_in"
24447 msgstr ""
24448
24449 #. type: verbatim
24450 #: ../src/guestfs-actions.pod:644
24451 #, no-wrap
24452 msgid ""
24453 " int\n"
24454 " guestfs_base64_in (guestfs_h *g,\n"
24455 "                    const char *base64file,\n"
24456 "                    const char *filename);\n"
24457 "\n"
24458 msgstr ""
24459
24460 #. type: textblock
24461 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
24462 msgid "(Added in 1.3.5)"
24463 msgstr ""
24464
24465 #. type: =head2
24466 #: ../src/guestfs-actions.pod:656
24467 msgid "guestfs_base64_out"
24468 msgstr ""
24469
24470 #. type: verbatim
24471 #: ../src/guestfs-actions.pod:658
24472 #, no-wrap
24473 msgid ""
24474 " int\n"
24475 " guestfs_base64_out (guestfs_h *g,\n"
24476 "                     const char *filename,\n"
24477 "                     const char *base64file);\n"
24478 "\n"
24479 msgstr ""
24480
24481 #. type: =head2
24482 #: ../src/guestfs-actions.pod:670
24483 msgid "guestfs_blockdev_flushbufs"
24484 msgstr ""
24485
24486 #. type: verbatim
24487 #: ../src/guestfs-actions.pod:672
24488 #, no-wrap
24489 msgid ""
24490 " int\n"
24491 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24492 "                             const char *device);\n"
24493 "\n"
24494 msgstr ""
24495
24496 #. type: textblock
24497 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
24498 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
24499 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
24500 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24501 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
24502 msgid "(Added in 0.9.3)"
24503 msgstr ""
24504
24505 #. type: =head2
24506 #: ../src/guestfs-actions.pod:685
24507 msgid "guestfs_blockdev_getbsz"
24508 msgstr ""
24509
24510 #. type: verbatim
24511 #: ../src/guestfs-actions.pod:687
24512 #, no-wrap
24513 msgid ""
24514 " int\n"
24515 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24516 "                          const char *device);\n"
24517 "\n"
24518 msgstr ""
24519
24520 #. type: =head2
24521 #: ../src/guestfs-actions.pod:702
24522 msgid "guestfs_blockdev_getro"
24523 msgstr ""
24524
24525 #. type: verbatim
24526 #: ../src/guestfs-actions.pod:704
24527 #, no-wrap
24528 msgid ""
24529 " int\n"
24530 " guestfs_blockdev_getro (guestfs_h *g,\n"
24531 "                         const char *device);\n"
24532 "\n"
24533 msgstr ""
24534
24535 #. type: textblock
24536 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1586
24537 #: ../src/guestfs-actions.pod:1601 ../src/guestfs-actions.pod:2090
24538 #: ../src/guestfs-actions.pod:2101 ../src/guestfs-actions.pod:2173
24539 #: ../src/guestfs-actions.pod:2199 ../src/guestfs-actions.pod:2239
24540 #: ../src/guestfs-actions.pod:2254 ../src/guestfs-actions.pod:2288
24541 #: ../src/guestfs-actions.pod:2311 ../src/guestfs-actions.pod:3373
24542 #: ../src/guestfs-actions.pod:3389 ../src/guestfs-actions.pod:3407
24543 #: ../src/guestfs-actions.pod:3569 ../src/guestfs-actions.pod:3583
24544 #: ../src/guestfs-actions.pod:3598 ../src/guestfs-actions.pod:3612
24545 #: ../src/guestfs-actions.pod:3628 ../src/guestfs-actions.pod:3643
24546 #: ../src/guestfs-actions.pod:3659 ../src/guestfs-actions.pod:3673
24547 #: ../src/guestfs-actions.pod:3686 ../src/guestfs-actions.pod:3700
24548 #: ../src/guestfs-actions.pod:3715 ../src/guestfs-actions.pod:3730
24549 #: ../src/guestfs-actions.pod:3743 ../src/guestfs-actions.pod:3757
24550 #: ../src/guestfs-actions.pod:5476
24551 msgid "This function returns a C truth value on success or -1 on error."
24552 msgstr ""
24553
24554 #. type: =head2
24555 #: ../src/guestfs-actions.pod:717
24556 msgid "guestfs_blockdev_getsize64"
24557 msgstr ""
24558
24559 #. type: verbatim
24560 #: ../src/guestfs-actions.pod:719
24561 #, no-wrap
24562 msgid ""
24563 " int64_t\n"
24564 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24565 "                             const char *device);\n"
24566 "\n"
24567 msgstr ""
24568
24569 #. type: textblock
24570 #: ../src/guestfs-actions.pod:725
24571 msgid "See also C<guestfs_blockdev_getsz>."
24572 msgstr ""
24573
24574 #. type: =head2
24575 #: ../src/guestfs-actions.pod:733
24576 msgid "guestfs_blockdev_getss"
24577 msgstr ""
24578
24579 #. type: verbatim
24580 #: ../src/guestfs-actions.pod:735
24581 #, no-wrap
24582 msgid ""
24583 " int\n"
24584 " guestfs_blockdev_getss (guestfs_h *g,\n"
24585 "                         const char *device);\n"
24586 "\n"
24587 msgstr ""
24588
24589 #. type: textblock
24590 #: ../src/guestfs-actions.pod:742
24591 msgid ""
24592 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24593 "that)."
24594 msgstr ""
24595
24596 #. type: =head2
24597 #: ../src/guestfs-actions.pod:751
24598 msgid "guestfs_blockdev_getsz"
24599 msgstr ""
24600
24601 #. type: verbatim
24602 #: ../src/guestfs-actions.pod:753
24603 #, no-wrap
24604 msgid ""
24605 " int64_t\n"
24606 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24607 "                         const char *device);\n"
24608 "\n"
24609 msgstr ""
24610
24611 #. type: textblock
24612 #: ../src/guestfs-actions.pod:760
24613 msgid ""
24614 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24615 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24616 msgstr ""
24617
24618 #. type: =head2
24619 #: ../src/guestfs-actions.pod:770
24620 msgid "guestfs_blockdev_rereadpt"
24621 msgstr ""
24622
24623 #. type: verbatim
24624 #: ../src/guestfs-actions.pod:772
24625 #, no-wrap
24626 msgid ""
24627 " int\n"
24628 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24629 "                            const char *device);\n"
24630 "\n"
24631 msgstr ""
24632
24633 #. type: =head2
24634 #: ../src/guestfs-actions.pod:784
24635 msgid "guestfs_blockdev_setbsz"
24636 msgstr ""
24637
24638 #. type: verbatim
24639 #: ../src/guestfs-actions.pod:786
24640 #, no-wrap
24641 msgid ""
24642 " int\n"
24643 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24644 "                          const char *device,\n"
24645 "                          int blocksize);\n"
24646 "\n"
24647 msgstr ""
24648
24649 #. type: =head2
24650 #: ../src/guestfs-actions.pod:802
24651 msgid "guestfs_blockdev_setro"
24652 msgstr ""
24653
24654 #. type: verbatim
24655 #: ../src/guestfs-actions.pod:804
24656 #, no-wrap
24657 msgid ""
24658 " int\n"
24659 " guestfs_blockdev_setro (guestfs_h *g,\n"
24660 "                         const char *device);\n"
24661 "\n"
24662 msgstr ""
24663
24664 #. type: =head2
24665 #: ../src/guestfs-actions.pod:816
24666 msgid "guestfs_blockdev_setrw"
24667 msgstr ""
24668
24669 #. type: verbatim
24670 #: ../src/guestfs-actions.pod:818
24671 #, no-wrap
24672 msgid ""
24673 " int\n"
24674 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24675 "                         const char *device);\n"
24676 "\n"
24677 msgstr ""
24678
24679 #. type: =head2
24680 #: ../src/guestfs-actions.pod:830
24681 msgid "guestfs_btrfs_filesystem_resize"
24682 msgstr ""
24683
24684 #. type: verbatim
24685 #: ../src/guestfs-actions.pod:832
24686 #, no-wrap
24687 msgid ""
24688 " int\n"
24689 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24690 "                                  const char *mountpoint,\n"
24691 "                                  ...);\n"
24692 "\n"
24693 msgstr ""
24694
24695 #. type: verbatim
24696 #: ../src/guestfs-actions.pod:842
24697 #, no-wrap
24698 msgid ""
24699 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24700 "\n"
24701 msgstr ""
24702
24703 #. type: textblock
24704 #: ../src/guestfs-actions.pod:865
24705 msgid "(Added in 1.11.17)"
24706 msgstr ""
24707
24708 #. type: =head2
24709 #: ../src/guestfs-actions.pod:867
24710 msgid "guestfs_btrfs_filesystem_resize_va"
24711 msgstr ""
24712
24713 #. type: verbatim
24714 #: ../src/guestfs-actions.pod:869
24715 #, no-wrap
24716 msgid ""
24717 " int\n"
24718 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24719 "                                     const char *mountpoint,\n"
24720 "                                     va_list args);\n"
24721 "\n"
24722 msgstr ""
24723
24724 #. type: textblock
24725 #: ../src/guestfs-actions.pod:874
24726 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24727 msgstr ""
24728
24729 #. type: =head2
24730 #: ../src/guestfs-actions.pod:878
24731 msgid "guestfs_btrfs_filesystem_resize_argv"
24732 msgstr ""
24733
24734 #. type: verbatim
24735 #: ../src/guestfs-actions.pod:880
24736 #, no-wrap
24737 msgid ""
24738 " int\n"
24739 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24740 "                                       const char *mountpoint,\n"
24741 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24742 "\n"
24743 msgstr ""
24744
24745 #. type: textblock
24746 #: ../src/guestfs-actions.pod:885
24747 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24748 msgstr ""
24749
24750 #. type: =head2
24751 #: ../src/guestfs-actions.pod:889
24752 msgid "guestfs_case_sensitive_path"
24753 msgstr ""
24754
24755 #. type: verbatim
24756 #: ../src/guestfs-actions.pod:891
24757 #, no-wrap
24758 msgid ""
24759 " char *\n"
24760 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24761 "                              const char *path);\n"
24762 "\n"
24763 msgstr ""
24764
24765 #. type: textblock
24766 #: ../src/guestfs-actions.pod:917
24767 msgid ""
24768 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
24769 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24770 "how the directories were originally created under Windows)."
24771 msgstr ""
24772
24773 #. type: textblock
24774 #: ../src/guestfs-actions.pod:925
24775 msgid "See also C<guestfs_realpath>."
24776 msgstr ""
24777
24778 #. type: textblock
24779 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7538
24780 msgid "(Added in 1.0.75)"
24781 msgstr ""
24782
24783 #. type: =head2
24784 #: ../src/guestfs-actions.pod:932
24785 msgid "guestfs_cat"
24786 msgstr ""
24787
24788 #. type: verbatim
24789 #: ../src/guestfs-actions.pod:934
24790 #, no-wrap
24791 msgid ""
24792 " char *\n"
24793 " guestfs_cat (guestfs_h *g,\n"
24794 "              const char *path);\n"
24795 "\n"
24796 msgstr ""
24797
24798 #. type: textblock
24799 #: ../src/guestfs-actions.pod:940
24800 msgid ""
24801 "Note that this function cannot correctly handle binary files (specifically, "
24802 "files containing C<\\0> character which is treated as end of string).  For "
24803 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24804 "functions which have a more complex interface."
24805 msgstr ""
24806
24807 #. type: textblock
24808 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3887
24809 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:3986
24810 #: ../src/guestfs-actions.pod:4074 ../src/guestfs-actions.pod:4482
24811 #: ../src/guestfs-actions.pod:4496 ../src/guestfs-actions.pod:5857
24812 #: ../src/guestfs-actions.pod:5871 ../src/guestfs-actions.pod:7691
24813 #: ../src/guestfs-actions.pod:7705
24814 msgid "(Added in 0.4)"
24815 msgstr ""
24816
24817 #. type: =head2
24818 #: ../src/guestfs-actions.pod:953
24819 msgid "guestfs_checksum"
24820 msgstr ""
24821
24822 #. type: verbatim
24823 #: ../src/guestfs-actions.pod:955
24824 #, no-wrap
24825 msgid ""
24826 " char *\n"
24827 " guestfs_checksum (guestfs_h *g,\n"
24828 "                   const char *csumtype,\n"
24829 "                   const char *path);\n"
24830 "\n"
24831 msgstr ""
24832
24833 #. type: textblock
24834 #: ../src/guestfs-actions.pod:1001
24835 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24836 msgstr ""
24837
24838 #. type: textblock
24839 #: ../src/guestfs-actions.pod:1003
24840 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24841 msgstr ""
24842
24843 #. type: textblock
24844 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1423
24845 #: ../src/guestfs-actions.pod:2279 ../src/guestfs-actions.pod:3585
24846 #: ../src/guestfs-actions.pod:3614 ../src/guestfs-actions.pod:3675
24847 #: ../src/guestfs-actions.pod:3702 ../src/guestfs-actions.pod:7394
24848 msgid "(Added in 1.0.2)"
24849 msgstr ""
24850
24851 #. type: =head2
24852 #: ../src/guestfs-actions.pod:1010
24853 msgid "guestfs_checksum_device"
24854 msgstr ""
24855
24856 #. type: verbatim
24857 #: ../src/guestfs-actions.pod:1012
24858 #, no-wrap
24859 msgid ""
24860 " char *\n"
24861 " guestfs_checksum_device (guestfs_h *g,\n"
24862 "                          const char *csumtype,\n"
24863 "                          const char *device);\n"
24864 "\n"
24865 msgstr ""
24866
24867 #. type: textblock
24868 #: ../src/guestfs-actions.pod:1017
24869 msgid ""
24870 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24871 "device named C<device>.  For the types of checksums supported see the "
24872 "C<guestfs_checksum> command."
24873 msgstr ""
24874
24875 #. type: textblock
24876 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5306
24877 #: ../src/guestfs-actions.pod:5441 ../src/guestfs-actions.pod:5478
24878 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5678
24879 #: ../src/guestfs-actions.pod:7303 ../src/guestfs-actions.pod:7317
24880 #: ../src/guestfs-actions.pod:7717
24881 msgid "(Added in 1.3.2)"
24882 msgstr ""
24883
24884 #. type: =head2
24885 #: ../src/guestfs-actions.pod:1026
24886 msgid "guestfs_checksums_out"
24887 msgstr ""
24888
24889 #. type: verbatim
24890 #: ../src/guestfs-actions.pod:1028
24891 #, no-wrap
24892 msgid ""
24893 " int\n"
24894 " guestfs_checksums_out (guestfs_h *g,\n"
24895 "                        const char *csumtype,\n"
24896 "                        const char *directory,\n"
24897 "                        const char *sumsfile);\n"
24898 "\n"
24899 msgstr ""
24900
24901 #. type: textblock
24902 #: ../src/guestfs-actions.pod:1048
24903 msgid "(Added in 1.3.7)"
24904 msgstr ""
24905
24906 #. type: =head2
24907 #: ../src/guestfs-actions.pod:1050
24908 msgid "guestfs_chmod"
24909 msgstr ""
24910
24911 #. type: verbatim
24912 #: ../src/guestfs-actions.pod:1052
24913 #, no-wrap
24914 msgid ""
24915 " int\n"
24916 " guestfs_chmod (guestfs_h *g,\n"
24917 "                int mode,\n"
24918 "                const char *path);\n"
24919 "\n"
24920 msgstr ""
24921
24922 #. type: =head2
24923 #: ../src/guestfs-actions.pod:1070
24924 msgid "guestfs_chown"
24925 msgstr ""
24926
24927 #. type: verbatim
24928 #: ../src/guestfs-actions.pod:1072
24929 #, no-wrap
24930 msgid ""
24931 " int\n"
24932 " guestfs_chown (guestfs_h *g,\n"
24933 "                int owner,\n"
24934 "                int group,\n"
24935 "                const char *path);\n"
24936 "\n"
24937 msgstr ""
24938
24939 #. type: =head2
24940 #: ../src/guestfs-actions.pod:1088
24941 msgid "guestfs_command"
24942 msgstr ""
24943
24944 #. type: verbatim
24945 #: ../src/guestfs-actions.pod:1090
24946 #, no-wrap
24947 msgid ""
24948 " char *\n"
24949 " guestfs_command (guestfs_h *g,\n"
24950 "                  char *const *arguments);\n"
24951 "\n"
24952 msgstr ""
24953
24954 #. type: textblock
24955 #: ../src/guestfs-actions.pod:1099
24956 msgid ""
24957 "The single parameter is an argv-style list of arguments.  The first element "
24958 "is the name of the program to run.  Subsequent elements are parameters.  The "
24959 "list must be non-empty (ie. must contain a program name).  Note that the "
24960 "command runs directly, and is I<not> invoked via the shell (see "
24961 "C<guestfs_sh>)."
24962 msgstr ""
24963
24964 #. type: textblock
24965 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24966 #: ../src/guestfs-actions.pod:1722
24967 msgid "(Added in 0.9.1)"
24968 msgstr ""
24969
24970 #. type: =head2
24971 #: ../src/guestfs-actions.pod:1132
24972 msgid "guestfs_command_lines"
24973 msgstr ""
24974
24975 #. type: verbatim
24976 #: ../src/guestfs-actions.pod:1134
24977 #, no-wrap
24978 msgid ""
24979 " char **\n"
24980 " guestfs_command_lines (guestfs_h *g,\n"
24981 "                        char *const *arguments);\n"
24982 "\n"
24983 msgstr ""
24984
24985 #. type: textblock
24986 #: ../src/guestfs-actions.pod:1138
24987 msgid ""
24988 "This is the same as C<guestfs_command>, but splits the result into a list of "
24989 "lines."
24990 msgstr ""
24991
24992 #. type: textblock
24993 #: ../src/guestfs-actions.pod:1141
24994 msgid "See also: C<guestfs_sh_lines>"
24995 msgstr ""
24996
24997 #. type: =head2
24998 #: ../src/guestfs-actions.pod:1152
24999 #, fuzzy
25000 #| msgid "guestfs_zero_device"
25001 msgid "guestfs_compress_device_out"
25002 msgstr "guestfs_zero_device"
25003
25004 #. type: verbatim
25005 #: ../src/guestfs-actions.pod:1154
25006 #, fuzzy, no-wrap
25007 #| msgid ""
25008 #| " int\n"
25009 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
25010 #| "                             const char *device,\n"
25011 #| "                             const char *key,\n"
25012 #| "                             int keyslot,\n"
25013 #| "                             const char *cipher);\n"
25014 #| "\n"
25015 msgid ""
25016 " int\n"
25017 " guestfs_compress_device_out (guestfs_h *g,\n"
25018 "                              const char *ctype,\n"
25019 "                              const char *device,\n"
25020 "                              const char *zdevice,\n"
25021 "                              ...);\n"
25022 "\n"
25023 msgstr ""
25024 " int\n"
25025 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25026 "                             const char *device,\n"
25027 "                             const char *key,\n"
25028 "                             int keyslot,\n"
25029 "                             const char *cipher);\n"
25030 "\n"
25031
25032 #. type: verbatim
25033 #: ../src/guestfs-actions.pod:1166
25034 #, no-wrap
25035 msgid ""
25036 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
25037 "\n"
25038 msgstr ""
25039
25040 #. type: textblock
25041 #: ../src/guestfs-actions.pod:1171
25042 msgid ""
25043 "The C<ctype> and optional C<level> parameters have the same meaning as in "
25044 "C<guestfs_compress_out>."
25045 msgstr ""
25046
25047 #. type: =head2
25048 #: ../src/guestfs-actions.pod:1176
25049 #, fuzzy
25050 #| msgid "guestfs_zero_device"
25051 msgid "guestfs_compress_device_out_va"
25052 msgstr "guestfs_zero_device"
25053
25054 #. type: verbatim
25055 #: ../src/guestfs-actions.pod:1178
25056 #, fuzzy, no-wrap
25057 #| msgid ""
25058 #| " int\n"
25059 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
25060 #| "                             const char *device,\n"
25061 #| "                             const char *key,\n"
25062 #| "                             int keyslot,\n"
25063 #| "                             const char *cipher);\n"
25064 #| "\n"
25065 msgid ""
25066 " int\n"
25067 " guestfs_compress_device_out_va (guestfs_h *g,\n"
25068 "                                 const char *ctype,\n"
25069 "                                 const char *device,\n"
25070 "                                 const char *zdevice,\n"
25071 "                                 va_list args);\n"
25072 "\n"
25073 msgstr ""
25074 " int\n"
25075 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25076 "                             const char *device,\n"
25077 "                             const char *key,\n"
25078 "                             int keyslot,\n"
25079 "                             const char *cipher);\n"
25080 "\n"
25081
25082 #. type: textblock
25083 #: ../src/guestfs-actions.pod:1185
25084 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
25085 msgstr ""
25086
25087 #. type: =head2
25088 #: ../src/guestfs-actions.pod:1189
25089 #, fuzzy
25090 #| msgid "guestfs_mkfs_opts_argv"
25091 msgid "guestfs_compress_device_out_argv"
25092 msgstr "guestfs_mkfs_opts_argv"
25093
25094 #. type: verbatim
25095 #: ../src/guestfs-actions.pod:1191
25096 #, fuzzy, no-wrap
25097 #| msgid ""
25098 #| " int\n"
25099 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25100 #| "                         const char *fstype,\n"
25101 #| "                         const char *device,\n"
25102 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25103 #| "\n"
25104 msgid ""
25105 " int\n"
25106 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
25107 "                                   const char *ctype,\n"
25108 "                                   const char *device,\n"
25109 "                                   const char *zdevice,\n"
25110 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
25111 "\n"
25112 msgstr ""
25113 " int\n"
25114 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25115 "                         const char *fstype,\n"
25116 "                         const char *device,\n"
25117 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25118 "\n"
25119
25120 #. type: textblock
25121 #: ../src/guestfs-actions.pod:1198
25122 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
25123 msgstr ""
25124
25125 #. type: =head2
25126 #: ../src/guestfs-actions.pod:1202
25127 #, fuzzy
25128 #| msgid "guestfs_create"
25129 msgid "guestfs_compress_out"
25130 msgstr "guestfs_create"
25131
25132 #. type: verbatim
25133 #: ../src/guestfs-actions.pod:1204
25134 #, fuzzy, no-wrap
25135 #| msgid ""
25136 #| " int\n"
25137 #| " guestfs_luks_add_key (guestfs_h *g,\n"
25138 #| "                       const char *device,\n"
25139 #| "                       const char *key,\n"
25140 #| "                       const char *newkey,\n"
25141 #| "                       int keyslot);\n"
25142 #| "\n"
25143 msgid ""
25144 " int\n"
25145 " guestfs_compress_out (guestfs_h *g,\n"
25146 "                       const char *ctype,\n"
25147 "                       const char *file,\n"
25148 "                       const char *zfile,\n"
25149 "                       ...);\n"
25150 "\n"
25151 msgstr ""
25152 " int\n"
25153 " guestfs_luks_add_key (guestfs_h *g,\n"
25154 "                       const char *device,\n"
25155 "                       const char *key,\n"
25156 "                       const char *newkey,\n"
25157 "                       int keyslot);\n"
25158 "\n"
25159
25160 #. type: verbatim
25161 #: ../src/guestfs-actions.pod:1216
25162 #, no-wrap
25163 msgid ""
25164 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
25165 "\n"
25166 msgstr ""
25167
25168 #. type: =head2
25169 #: ../src/guestfs-actions.pod:1233
25170 #, fuzzy
25171 #| msgid "guestfs_mkfs_opts_va"
25172 msgid "guestfs_compress_out_va"
25173 msgstr "guestfs_mkfs_opts_va"
25174
25175 #. type: verbatim
25176 #: ../src/guestfs-actions.pod:1235
25177 #, fuzzy, no-wrap
25178 #| msgid ""
25179 #| " int\n"
25180 #| " guestfs_luks_add_key (guestfs_h *g,\n"
25181 #| "                       const char *device,\n"
25182 #| "                       const char *key,\n"
25183 #| "                       const char *newkey,\n"
25184 #| "                       int keyslot);\n"
25185 #| "\n"
25186 msgid ""
25187 " int\n"
25188 " guestfs_compress_out_va (guestfs_h *g,\n"
25189 "                          const char *ctype,\n"
25190 "                          const char *file,\n"
25191 "                          const char *zfile,\n"
25192 "                          va_list args);\n"
25193 "\n"
25194 msgstr ""
25195 " int\n"
25196 " guestfs_luks_add_key (guestfs_h *g,\n"
25197 "                       const char *device,\n"
25198 "                       const char *key,\n"
25199 "                       const char *newkey,\n"
25200 "                       int keyslot);\n"
25201 "\n"
25202
25203 #. type: textblock
25204 #: ../src/guestfs-actions.pod:1242
25205 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
25206 msgstr ""
25207
25208 #. type: =head2
25209 #: ../src/guestfs-actions.pod:1246
25210 #, fuzzy
25211 #| msgid "guestfs_mkfs_opts_argv"
25212 msgid "guestfs_compress_out_argv"
25213 msgstr "guestfs_mkfs_opts_argv"
25214
25215 #. type: verbatim
25216 #: ../src/guestfs-actions.pod:1248
25217 #, fuzzy, no-wrap
25218 #| msgid ""
25219 #| " int\n"
25220 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25221 #| "                         const char *fstype,\n"
25222 #| "                         const char *device,\n"
25223 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25224 #| "\n"
25225 msgid ""
25226 " int\n"
25227 " guestfs_compress_out_argv (guestfs_h *g,\n"
25228 "                            const char *ctype,\n"
25229 "                            const char *file,\n"
25230 "                            const char *zfile,\n"
25231 "                            const struct guestfs_compress_out_argv *optargs);\n"
25232 "\n"
25233 msgstr ""
25234 " int\n"
25235 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25236 "                         const char *fstype,\n"
25237 "                         const char *device,\n"
25238 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25239 "\n"
25240
25241 #. type: textblock
25242 #: ../src/guestfs-actions.pod:1255
25243 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
25244 msgstr ""
25245
25246 #. type: =head2
25247 #: ../src/guestfs-actions.pod:1259
25248 msgid "guestfs_config"
25249 msgstr ""
25250
25251 #. type: verbatim
25252 #: ../src/guestfs-actions.pod:1261
25253 #, no-wrap
25254 msgid ""
25255 " int\n"
25256 " guestfs_config (guestfs_h *g,\n"
25257 "                 const char *qemuparam,\n"
25258 "                 const char *qemuvalue);\n"
25259 "\n"
25260 msgstr ""
25261
25262 #. type: =head2
25263 #: ../src/guestfs-actions.pod:1279
25264 msgid "guestfs_copy_size"
25265 msgstr ""
25266
25267 #. type: verbatim
25268 #: ../src/guestfs-actions.pod:1281
25269 #, no-wrap
25270 msgid ""
25271 " int\n"
25272 " guestfs_copy_size (guestfs_h *g,\n"
25273 "                    const char *src,\n"
25274 "                    const char *dest,\n"
25275 "                    int64_t size);\n"
25276 "\n"
25277 msgstr ""
25278
25279 #. type: textblock
25280 #: ../src/guestfs-actions.pod:1295 ../src/guestfs-actions.pod:1418
25281 #: ../src/guestfs-actions.pod:1449 ../src/guestfs-actions.pod:1494
25282 #: ../src/guestfs-actions.pod:1871 ../src/guestfs-actions.pod:1893
25283 #: ../src/guestfs-actions.pod:3785 ../src/guestfs-actions.pod:7389
25284 #: ../src/guestfs-actions.pod:7423 ../src/guestfs-actions.pod:7930
25285 #: ../src/guestfs-actions.pod:7953
25286 msgid ""
25287 "This long-running command can generate progress notification messages so "
25288 "that the caller can display a progress bar or indicator.  To receive these "
25289 "messages, the caller must register a progress event callback.  See L<guestfs"
25290 "(3)/GUESTFS_EVENT_PROGRESS>."
25291 msgstr ""
25292
25293 #. type: textblock
25294 #: ../src/guestfs-actions.pod:1300 ../src/guestfs-actions.pod:4509
25295 #: ../src/guestfs-actions.pod:5884 ../src/guestfs-actions.pod:7624
25296 #: ../src/guestfs-actions.pod:7644 ../src/guestfs-actions.pod:7730
25297 msgid "(Added in 1.0.87)"
25298 msgstr ""
25299
25300 #. type: =head2
25301 #: ../src/guestfs-actions.pod:1302
25302 msgid "guestfs_cp"
25303 msgstr ""
25304
25305 #. type: verbatim
25306 #: ../src/guestfs-actions.pod:1304
25307 #, no-wrap
25308 msgid ""
25309 " int\n"
25310 " guestfs_cp (guestfs_h *g,\n"
25311 "             const char *src,\n"
25312 "             const char *dest);\n"
25313 "\n"
25314 msgstr ""
25315
25316 #. type: textblock
25317 #: ../src/guestfs-actions.pod:1314 ../src/guestfs-actions.pod:1328
25318 #: ../src/guestfs-actions.pod:1400 ../src/guestfs-actions.pod:1474
25319 #: ../src/guestfs-actions.pod:1588 ../src/guestfs-actions.pod:5253
25320 #: ../src/guestfs-actions.pod:5728
25321 msgid "(Added in 1.0.18)"
25322 msgstr ""
25323
25324 #. type: =head2
25325 #: ../src/guestfs-actions.pod:1316
25326 msgid "guestfs_cp_a"
25327 msgstr ""
25328
25329 #. type: verbatim
25330 #: ../src/guestfs-actions.pod:1318
25331 #, no-wrap
25332 msgid ""
25333 " int\n"
25334 " guestfs_cp_a (guestfs_h *g,\n"
25335 "               const char *src,\n"
25336 "               const char *dest);\n"
25337 "\n"
25338 msgstr ""
25339
25340 #. type: =head2
25341 #: ../src/guestfs-actions.pod:1330
25342 msgid "guestfs_dd"
25343 msgstr ""
25344
25345 #. type: verbatim
25346 #: ../src/guestfs-actions.pod:1332
25347 #, no-wrap
25348 msgid ""
25349 " int\n"
25350 " guestfs_dd (guestfs_h *g,\n"
25351 "             const char *src,\n"
25352 "             const char *dest);\n"
25353 "\n"
25354 msgstr ""
25355
25356 #. type: textblock
25357 #: ../src/guestfs-actions.pod:1342
25358 msgid ""
25359 "If the destination is a device, it must be as large or larger than the "
25360 "source file or device, otherwise the copy will fail.  This command cannot do "
25361 "partial copies (see C<guestfs_copy_size>)."
25362 msgstr ""
25363
25364 #. type: =head2
25365 #: ../src/guestfs-actions.pod:1350
25366 msgid "guestfs_df"
25367 msgstr ""
25368
25369 #. type: verbatim
25370 #: ../src/guestfs-actions.pod:1352
25371 #, no-wrap
25372 msgid ""
25373 " char *\n"
25374 " guestfs_df (guestfs_h *g);\n"
25375 "\n"
25376 msgstr ""
25377
25378 #. type: textblock
25379 #: ../src/guestfs-actions.pod:1357 ../src/guestfs-actions.pod:1374
25380 msgid ""
25381 "This command is mostly useful for interactive sessions.  It is I<not> "
25382 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
25383 "from programs."
25384 msgstr ""
25385
25386 #. type: textblock
25387 #: ../src/guestfs-actions.pod:1364 ../src/guestfs-actions.pod:1381
25388 #: ../src/guestfs-actions.pod:1499 ../src/guestfs-actions.pod:2504
25389 #: ../src/guestfs-actions.pod:2528 ../src/guestfs-actions.pod:2596
25390 #: ../src/guestfs-actions.pod:4619 ../src/guestfs-actions.pod:5153
25391 #: ../src/guestfs-actions.pod:7127 ../src/guestfs-actions.pod:7151
25392 #: ../src/guestfs-actions.pod:7770 ../src/guestfs-actions.pod:7783
25393 #: ../src/guestfs-actions.pod:7796
25394 msgid "(Added in 1.0.54)"
25395 msgstr ""
25396
25397 #. type: =head2
25398 #: ../src/guestfs-actions.pod:1366
25399 msgid "guestfs_df_h"
25400 msgstr ""
25401
25402 #. type: verbatim
25403 #: ../src/guestfs-actions.pod:1368
25404 #, no-wrap
25405 msgid ""
25406 " char *\n"
25407 " guestfs_df_h (guestfs_h *g);\n"
25408 "\n"
25409 msgstr ""
25410
25411 #. type: =head2
25412 #: ../src/guestfs-actions.pod:1383
25413 msgid "guestfs_dmesg"
25414 msgstr ""
25415
25416 #. type: verbatim
25417 #: ../src/guestfs-actions.pod:1385
25418 #, no-wrap
25419 msgid ""
25420 " char *\n"
25421 " guestfs_dmesg (guestfs_h *g);\n"
25422 "\n"
25423 msgstr ""
25424
25425 #. type: textblock
25426 #: ../src/guestfs-actions.pod:1392
25427 msgid ""
25428 "Another way to get the same information is to enable verbose messages with "
25429 "C<guestfs_set_verbose> or by setting the environment variable "
25430 "C<LIBGUESTFS_DEBUG=1> before running the program."
25431 msgstr ""
25432
25433 #. type: =head2
25434 #: ../src/guestfs-actions.pod:1402
25435 msgid "guestfs_download"
25436 msgstr ""
25437
25438 #. type: verbatim
25439 #: ../src/guestfs-actions.pod:1404
25440 #, no-wrap
25441 msgid ""
25442 " int\n"
25443 " guestfs_download (guestfs_h *g,\n"
25444 "                   const char *remotefilename,\n"
25445 "                   const char *filename);\n"
25446 "\n"
25447 msgstr ""
25448
25449 #. type: textblock
25450 #: ../src/guestfs-actions.pod:1414
25451 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
25452 msgstr ""
25453
25454 #. type: =head2
25455 #: ../src/guestfs-actions.pod:1425
25456 msgid "guestfs_download_offset"
25457 msgstr ""
25458
25459 #. type: verbatim
25460 #: ../src/guestfs-actions.pod:1427
25461 #, no-wrap
25462 msgid ""
25463 " int\n"
25464 " guestfs_download_offset (guestfs_h *g,\n"
25465 "                          const char *remotefilename,\n"
25466 "                          const char *filename,\n"
25467 "                          int64_t offset,\n"
25468 "                          int64_t size);\n"
25469 "\n"
25470 msgstr ""
25471
25472 #. type: textblock
25473 #: ../src/guestfs-actions.pod:1440
25474 msgid ""
25475 "Note that there is no limit on the amount of data that can be downloaded "
25476 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
25477 "full amount unless an error occurs."
25478 msgstr ""
25479
25480 #. type: textblock
25481 #: ../src/guestfs-actions.pod:1445
25482 msgid "See also C<guestfs_download>, C<guestfs_pread>."
25483 msgstr ""
25484
25485 #. type: textblock
25486 #: ../src/guestfs-actions.pod:1454 ../src/guestfs-actions.pod:7428
25487 msgid "(Added in 1.5.17)"
25488 msgstr ""
25489
25490 #. type: =head2
25491 #: ../src/guestfs-actions.pod:1456
25492 msgid "guestfs_drop_caches"
25493 msgstr ""
25494
25495 #. type: verbatim
25496 #: ../src/guestfs-actions.pod:1458
25497 #, no-wrap
25498 msgid ""
25499 " int\n"
25500 " guestfs_drop_caches (guestfs_h *g,\n"
25501 "                      int whattodrop);\n"
25502 "\n"
25503 msgstr ""
25504
25505 #. type: =head2
25506 #: ../src/guestfs-actions.pod:1476
25507 msgid "guestfs_du"
25508 msgstr ""
25509
25510 #. type: verbatim
25511 #: ../src/guestfs-actions.pod:1478
25512 #, no-wrap
25513 msgid ""
25514 " int64_t\n"
25515 " guestfs_du (guestfs_h *g,\n"
25516 "             const char *path);\n"
25517 "\n"
25518 msgstr ""
25519
25520 #. type: =head2
25521 #: ../src/guestfs-actions.pod:1501
25522 msgid "guestfs_e2fsck_f"
25523 msgstr ""
25524
25525 #. type: verbatim
25526 #: ../src/guestfs-actions.pod:1503
25527 #, no-wrap
25528 msgid ""
25529 " int\n"
25530 " guestfs_e2fsck_f (guestfs_h *g,\n"
25531 "                   const char *device);\n"
25532 "\n"
25533 msgstr ""
25534
25535 #. type: textblock
25536 #: ../src/guestfs-actions.pod:1511
25537 msgid ""
25538 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
25539 "Normally you should use C<guestfs_fsck>."
25540 msgstr ""
25541
25542 #. type: textblock
25543 #: ../src/guestfs-actions.pod:1516
25544 msgid "(Added in 1.0.29)"
25545 msgstr ""
25546
25547 #. type: =head2
25548 #: ../src/guestfs-actions.pod:1518
25549 msgid "guestfs_echo_daemon"
25550 msgstr ""
25551
25552 #. type: verbatim
25553 #: ../src/guestfs-actions.pod:1520
25554 #, no-wrap
25555 msgid ""
25556 " char *\n"
25557 " guestfs_echo_daemon (guestfs_h *g,\n"
25558 "                      char *const *words);\n"
25559 "\n"
25560 msgstr ""
25561
25562 #. type: textblock
25563 #: ../src/guestfs-actions.pod:1529
25564 msgid "See also C<guestfs_ping_daemon>."
25565 msgstr ""
25566
25567 #. type: textblock
25568 #: ../src/guestfs-actions.pod:1534 ../src/guestfs-actions.pod:2290
25569 #: ../src/guestfs-actions.pod:6599
25570 msgid "(Added in 1.0.69)"
25571 msgstr ""
25572
25573 #. type: =head2
25574 #: ../src/guestfs-actions.pod:1536
25575 msgid "guestfs_egrep"
25576 msgstr ""
25577
25578 #. type: verbatim
25579 #: ../src/guestfs-actions.pod:1538
25580 #, no-wrap
25581 msgid ""
25582 " char **\n"
25583 " guestfs_egrep (guestfs_h *g,\n"
25584 "                const char *regex,\n"
25585 "                const char *path);\n"
25586 "\n"
25587 msgstr ""
25588
25589 #. type: textblock
25590 #: ../src/guestfs-actions.pod:1553 ../src/guestfs-actions.pod:1572
25591 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1675
25592 #: ../src/guestfs-actions.pod:1694 ../src/guestfs-actions.pod:2420
25593 #: ../src/guestfs-actions.pod:2439 ../src/guestfs-actions.pod:2617
25594 #: ../src/guestfs-actions.pod:2630 ../src/guestfs-actions.pod:2645
25595 #: ../src/guestfs-actions.pod:2691 ../src/guestfs-actions.pod:2713
25596 #: ../src/guestfs-actions.pod:2726 ../src/guestfs-actions.pod:3999
25597 #: ../src/guestfs-actions.pod:4013 ../src/guestfs-actions.pod:4026
25598 #: ../src/guestfs-actions.pod:4040 ../src/guestfs-actions.pod:5041
25599 #: ../src/guestfs-actions.pod:6062 ../src/guestfs-actions.pod:6111
25600 #: ../src/guestfs-actions.pod:6995 ../src/guestfs-actions.pod:7007
25601 #: ../src/guestfs-actions.pod:7020 ../src/guestfs-actions.pod:7033
25602 #: ../src/guestfs-actions.pod:7055 ../src/guestfs-actions.pod:7068
25603 #: ../src/guestfs-actions.pod:7081 ../src/guestfs-actions.pod:7094
25604 #: ../src/guestfs-actions.pod:7888 ../src/guestfs-actions.pod:7907
25605 #: ../src/guestfs-actions.pod:8001 ../src/guestfs-actions.pod:8020
25606 #: ../src/guestfs-actions.pod:8066 ../src/guestfs-actions.pod:8085
25607 msgid "(Added in 1.0.66)"
25608 msgstr ""
25609
25610 #. type: =head2
25611 #: ../src/guestfs-actions.pod:1555
25612 msgid "guestfs_egrepi"
25613 msgstr ""
25614
25615 #. type: verbatim
25616 #: ../src/guestfs-actions.pod:1557
25617 #, no-wrap
25618 msgid ""
25619 " char **\n"
25620 " guestfs_egrepi (guestfs_h *g,\n"
25621 "                 const char *regex,\n"
25622 "                 const char *path);\n"
25623 "\n"
25624 msgstr ""
25625
25626 #. type: =head2
25627 #: ../src/guestfs-actions.pod:1574
25628 msgid "guestfs_equal"
25629 msgstr ""
25630
25631 #. type: verbatim
25632 #: ../src/guestfs-actions.pod:1576
25633 #, no-wrap
25634 msgid ""
25635 " int\n"
25636 " guestfs_equal (guestfs_h *g,\n"
25637 "                const char *file1,\n"
25638 "                const char *file2);\n"
25639 "\n"
25640 msgstr ""
25641
25642 #. type: =head2
25643 #: ../src/guestfs-actions.pod:1590
25644 msgid "guestfs_exists"
25645 msgstr ""
25646
25647 #. type: verbatim
25648 #: ../src/guestfs-actions.pod:1592
25649 #, no-wrap
25650 msgid ""
25651 " int\n"
25652 " guestfs_exists (guestfs_h *g,\n"
25653 "                 const char *path);\n"
25654 "\n"
25655 msgstr ""
25656
25657 #. type: textblock
25658 #: ../src/guestfs-actions.pod:1599
25659 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
25660 msgstr ""
25661
25662 #. type: =head2
25663 #: ../src/guestfs-actions.pod:1605
25664 msgid "guestfs_fallocate"
25665 msgstr ""
25666
25667 #. type: verbatim
25668 #: ../src/guestfs-actions.pod:1607
25669 #, no-wrap
25670 msgid ""
25671 " int\n"
25672 " guestfs_fallocate (guestfs_h *g,\n"
25673 "                    const char *path,\n"
25674 "                    int len);\n"
25675 "\n"
25676 msgstr ""
25677
25678 #. type: textblock
25679 #: ../src/guestfs-actions.pod:1612
25680 msgid ""
25681 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
25682 "call instead."
25683 msgstr ""
25684
25685 #. type: =head2
25686 #: ../src/guestfs-actions.pod:1631
25687 msgid "guestfs_fallocate64"
25688 msgstr ""
25689
25690 #. type: verbatim
25691 #: ../src/guestfs-actions.pod:1633
25692 #, no-wrap
25693 msgid ""
25694 " int\n"
25695 " guestfs_fallocate64 (guestfs_h *g,\n"
25696 "                      const char *path,\n"
25697 "                      int64_t len);\n"
25698 "\n"
25699 msgstr ""
25700
25701 #. type: textblock
25702 #: ../src/guestfs-actions.pod:1642
25703 msgid ""
25704 "Note that this call allocates disk blocks for the file.  To create a sparse "
25705 "file use C<guestfs_truncate_size> instead."
25706 msgstr ""
25707
25708 #. type: textblock
25709 #: ../src/guestfs-actions.pod:1645
25710 msgid ""
25711 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
25712 "oversight it only allowed 30 bit lengths to be specified, effectively "
25713 "limiting the maximum size of files created through that call to 1GB."
25714 msgstr ""
25715
25716 #. type: textblock
25717 #: ../src/guestfs-actions.pod:1656
25718 msgid "(Added in 1.3.17)"
25719 msgstr ""
25720
25721 #. type: =head2
25722 #: ../src/guestfs-actions.pod:1658
25723 msgid "guestfs_fgrep"
25724 msgstr ""
25725
25726 #. type: verbatim
25727 #: ../src/guestfs-actions.pod:1660
25728 #, no-wrap
25729 msgid ""
25730 " char **\n"
25731 " guestfs_fgrep (guestfs_h *g,\n"
25732 "                const char *pattern,\n"
25733 "                const char *path);\n"
25734 "\n"
25735 msgstr ""
25736
25737 #. type: =head2
25738 #: ../src/guestfs-actions.pod:1677
25739 msgid "guestfs_fgrepi"
25740 msgstr ""
25741
25742 #. type: verbatim
25743 #: ../src/guestfs-actions.pod:1679
25744 #, no-wrap
25745 msgid ""
25746 " char **\n"
25747 " guestfs_fgrepi (guestfs_h *g,\n"
25748 "                 const char *pattern,\n"
25749 "                 const char *path);\n"
25750 "\n"
25751 msgstr ""
25752
25753 #. type: =head2
25754 #: ../src/guestfs-actions.pod:1696
25755 msgid "guestfs_file"
25756 msgstr ""
25757
25758 #. type: verbatim
25759 #: ../src/guestfs-actions.pod:1698
25760 #, no-wrap
25761 msgid ""
25762 " char *\n"
25763 " guestfs_file (guestfs_h *g,\n"
25764 "               const char *path);\n"
25765 "\n"
25766 msgstr ""
25767
25768 #. type: textblock
25769 #: ../src/guestfs-actions.pod:1716
25770 msgid ""
25771 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25772 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25773 msgstr ""
25774
25775 #. type: =head2
25776 #: ../src/guestfs-actions.pod:1724
25777 msgid "guestfs_file_architecture"
25778 msgstr ""
25779
25780 #. type: verbatim
25781 #: ../src/guestfs-actions.pod:1726
25782 #, no-wrap
25783 msgid ""
25784 " char *\n"
25785 " guestfs_file_architecture (guestfs_h *g,\n"
25786 "                            const char *filename);\n"
25787 "\n"
25788 msgstr ""
25789
25790 #. type: textblock
25791 #: ../src/guestfs-actions.pod:1834 ../src/guestfs-actions.pod:1997
25792 #: ../src/guestfs-actions.pod:2014 ../src/guestfs-actions.pod:2746
25793 #: ../src/guestfs-actions.pod:2840 ../src/guestfs-actions.pod:2906
25794 #: ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3111
25795 #: ../src/guestfs-actions.pod:3151 ../src/guestfs-actions.pod:3226
25796 #: ../src/guestfs-actions.pod:3319 ../src/guestfs-actions.pod:3556
25797 #: ../src/guestfs-actions.pod:3688
25798 msgid "(Added in 1.5.3)"
25799 msgstr ""
25800
25801 #. type: =head2
25802 #: ../src/guestfs-actions.pod:1836
25803 msgid "guestfs_filesize"
25804 msgstr ""
25805
25806 #. type: verbatim
25807 #: ../src/guestfs-actions.pod:1838
25808 #, no-wrap
25809 msgid ""
25810 " int64_t\n"
25811 " guestfs_filesize (guestfs_h *g,\n"
25812 "                   const char *file);\n"
25813 "\n"
25814 msgstr ""
25815
25816 #. type: textblock
25817 #: ../src/guestfs-actions.pod:1844
25818 msgid ""
25819 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25820 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
25821 "devices, use C<guestfs_blockdev_getsize64>."
25822 msgstr ""
25823
25824 #. type: textblock
25825 #: ../src/guestfs-actions.pod:1850
25826 msgid "(Added in 1.0.82)"
25827 msgstr ""
25828
25829 #. type: =head2
25830 #: ../src/guestfs-actions.pod:1852
25831 msgid "guestfs_fill"
25832 msgstr ""
25833
25834 #. type: verbatim
25835 #: ../src/guestfs-actions.pod:1854
25836 #, no-wrap
25837 msgid ""
25838 " int\n"
25839 " guestfs_fill (guestfs_h *g,\n"
25840 "               int c,\n"
25841 "               int len,\n"
25842 "               const char *path);\n"
25843 "\n"
25844 msgstr ""
25845
25846 #. type: textblock
25847 #: ../src/guestfs-actions.pod:1864
25848 msgid ""
25849 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25850 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
25851 "bytes use C<guestfs_fill_pattern>."
25852 msgstr ""
25853
25854 #. type: textblock
25855 #: ../src/guestfs-actions.pod:1876
25856 msgid "(Added in 1.0.79)"
25857 msgstr ""
25858
25859 #. type: =head2
25860 #: ../src/guestfs-actions.pod:1878
25861 msgid "guestfs_fill_pattern"
25862 msgstr ""
25863
25864 #. type: verbatim
25865 #: ../src/guestfs-actions.pod:1880
25866 #, no-wrap
25867 msgid ""
25868 " int\n"
25869 " guestfs_fill_pattern (guestfs_h *g,\n"
25870 "                       const char *pattern,\n"
25871 "                       int len,\n"
25872 "                       const char *path);\n"
25873 "\n"
25874 msgstr ""
25875
25876 #. type: textblock
25877 #: ../src/guestfs-actions.pod:1886
25878 msgid ""
25879 "This function is like C<guestfs_fill> except that it creates a new file of "
25880 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
25881 "pattern is truncated if necessary to ensure the length of the file is "
25882 "exactly C<len> bytes."
25883 msgstr ""
25884
25885 #. type: textblock
25886 #: ../src/guestfs-actions.pod:1898
25887 msgid "(Added in 1.3.12)"
25888 msgstr ""
25889
25890 #. type: =head2
25891 #: ../src/guestfs-actions.pod:1900
25892 msgid "guestfs_find"
25893 msgstr ""
25894
25895 #. type: verbatim
25896 #: ../src/guestfs-actions.pod:1902
25897 #, no-wrap
25898 msgid ""
25899 " char **\n"
25900 " guestfs_find (guestfs_h *g,\n"
25901 "               const char *directory);\n"
25902 "\n"
25903 msgstr ""
25904
25905 #. type: textblock
25906 #: ../src/guestfs-actions.pod:1918
25907 msgid ""
25908 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25909 msgstr ""
25910
25911 #. type: textblock
25912 #: ../src/guestfs-actions.pod:1931
25913 msgid "See also C<guestfs_find0>."
25914 msgstr ""
25915
25916 #. type: textblock
25917 #: ../src/guestfs-actions.pod:1940 ../src/guestfs-actions.pod:4446
25918 #: ../src/guestfs-actions.pod:6146
25919 msgid "(Added in 1.0.27)"
25920 msgstr ""
25921
25922 #. type: =head2
25923 #: ../src/guestfs-actions.pod:1942
25924 msgid "guestfs_find0"
25925 msgstr ""
25926
25927 #. type: verbatim
25928 #: ../src/guestfs-actions.pod:1944
25929 #, no-wrap
25930 msgid ""
25931 " int\n"
25932 " guestfs_find0 (guestfs_h *g,\n"
25933 "                const char *directory,\n"
25934 "                const char *files);\n"
25935 "\n"
25936 msgstr ""
25937
25938 #. type: textblock
25939 #: ../src/guestfs-actions.pod:1953
25940 msgid ""
25941 "This command works the same way as C<guestfs_find> with the following "
25942 "exceptions:"
25943 msgstr ""
25944
25945 #. type: textblock
25946 #: ../src/guestfs-actions.pod:1980
25947 msgid "(Added in 1.0.74)"
25948 msgstr ""
25949
25950 #. type: =head2
25951 #: ../src/guestfs-actions.pod:1982
25952 msgid "guestfs_findfs_label"
25953 msgstr ""
25954
25955 #. type: verbatim
25956 #: ../src/guestfs-actions.pod:1984
25957 #, no-wrap
25958 msgid ""
25959 " char *\n"
25960 " guestfs_findfs_label (guestfs_h *g,\n"
25961 "                       const char *label);\n"
25962 "\n"
25963 msgstr ""
25964
25965 #. type: textblock
25966 #: ../src/guestfs-actions.pod:1992
25967 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25968 msgstr ""
25969
25970 #. type: =head2
25971 #: ../src/guestfs-actions.pod:1999
25972 msgid "guestfs_findfs_uuid"
25973 msgstr ""
25974
25975 #. type: verbatim
25976 #: ../src/guestfs-actions.pod:2001
25977 #, no-wrap
25978 msgid ""
25979 " char *\n"
25980 " guestfs_findfs_uuid (guestfs_h *g,\n"
25981 "                      const char *uuid);\n"
25982 "\n"
25983 msgstr ""
25984
25985 #. type: textblock
25986 #: ../src/guestfs-actions.pod:2009
25987 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25988 msgstr ""
25989
25990 #. type: =head2
25991 #: ../src/guestfs-actions.pod:2016
25992 msgid "guestfs_fsck"
25993 msgstr ""
25994
25995 #. type: verbatim
25996 #: ../src/guestfs-actions.pod:2018
25997 #, no-wrap
25998 msgid ""
25999 " int\n"
26000 " guestfs_fsck (guestfs_h *g,\n"
26001 "               const char *fstype,\n"
26002 "               const char *device);\n"
26003 "\n"
26004 msgstr ""
26005
26006 #. type: textblock
26007 #: ../src/guestfs-actions.pod:2053 ../src/guestfs-actions.pod:7935
26008 msgid "(Added in 1.0.16)"
26009 msgstr ""
26010
26011 #. type: =head2
26012 #: ../src/guestfs-actions.pod:2055
26013 msgid "guestfs_get_append"
26014 msgstr ""
26015
26016 #. type: verbatim
26017 #: ../src/guestfs-actions.pod:2057
26018 #, no-wrap
26019 msgid ""
26020 " const char *\n"
26021 " guestfs_get_append (guestfs_h *g);\n"
26022 "\n"
26023 msgstr ""
26024
26025 #. type: textblock
26026 #: ../src/guestfs-actions.pod:2065
26027 msgid ""
26028 "This function returns a string which may be NULL.  There is no way to return "
26029 "an error from this function.  The string is owned by the guest handle and "
26030 "must I<not> be freed."
26031 msgstr ""
26032
26033 #. type: textblock
26034 #: ../src/guestfs-actions.pod:2069 ../src/guestfs-actions.pod:5824
26035 #: ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6762
26036 #: ../src/guestfs-actions.pod:6781 ../src/guestfs-actions.pod:6797
26037 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:7575
26038 #: ../src/guestfs-actions.pod:7590 ../src/guestfs-actions.pod:7982
26039 msgid "(Added in 1.0.26)"
26040 msgstr ""
26041
26042 #. type: =head2
26043 #: ../src/guestfs-actions.pod:2071
26044 msgid "guestfs_get_attach_method"
26045 msgstr ""
26046
26047 #. type: verbatim
26048 #: ../src/guestfs-actions.pod:2073
26049 #, no-wrap
26050 msgid ""
26051 " char *\n"
26052 " guestfs_get_attach_method (guestfs_h *g);\n"
26053 "\n"
26054 msgstr ""
26055
26056 #. type: textblock
26057 #: ../src/guestfs-actions.pod:2076
26058 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
26059 msgstr ""
26060
26061 #. type: textblock
26062 #: ../src/guestfs-actions.pod:2081 ../src/guestfs-actions.pod:6336
26063 msgid "(Added in 1.9.8)"
26064 msgstr ""
26065
26066 #. type: =head2
26067 #: ../src/guestfs-actions.pod:2083
26068 msgid "guestfs_get_autosync"
26069 msgstr ""
26070
26071 #. type: verbatim
26072 #: ../src/guestfs-actions.pod:2085
26073 #, no-wrap
26074 msgid ""
26075 " int\n"
26076 " guestfs_get_autosync (guestfs_h *g);\n"
26077 "\n"
26078 msgstr ""
26079
26080 #. type: =head2
26081 #: ../src/guestfs-actions.pod:2094
26082 msgid "guestfs_get_direct"
26083 msgstr ""
26084
26085 #. type: verbatim
26086 #: ../src/guestfs-actions.pod:2096
26087 #, no-wrap
26088 msgid ""
26089 " int\n"
26090 " guestfs_get_direct (guestfs_h *g);\n"
26091 "\n"
26092 msgstr ""
26093
26094 #. type: textblock
26095 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:6377
26096 msgid "(Added in 1.0.72)"
26097 msgstr ""
26098
26099 #. type: =head2
26100 #: ../src/guestfs-actions.pod:2105
26101 msgid "guestfs_get_e2label"
26102 msgstr ""
26103
26104 #. type: verbatim
26105 #: ../src/guestfs-actions.pod:2107
26106 #, no-wrap
26107 msgid ""
26108 " char *\n"
26109 " guestfs_get_e2label (guestfs_h *g,\n"
26110 "                      const char *device);\n"
26111 "\n"
26112 msgstr ""
26113
26114 #. type: textblock
26115 #: ../src/guestfs-actions.pod:2111
26116 msgid ""
26117 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
26118 "call instead."
26119 msgstr ""
26120
26121 #. type: textblock
26122 #: ../src/guestfs-actions.pod:2124 ../src/guestfs-actions.pod:2145
26123 #: ../src/guestfs-actions.pod:6395 ../src/guestfs-actions.pod:6414
26124 msgid "(Added in 1.0.15)"
26125 msgstr ""
26126
26127 #. type: =head2
26128 #: ../src/guestfs-actions.pod:2126
26129 msgid "guestfs_get_e2uuid"
26130 msgstr ""
26131
26132 #. type: verbatim
26133 #: ../src/guestfs-actions.pod:2128
26134 #, no-wrap
26135 msgid ""
26136 " char *\n"
26137 " guestfs_get_e2uuid (guestfs_h *g,\n"
26138 "                     const char *device);\n"
26139 "\n"
26140 msgstr ""
26141
26142 #. type: textblock
26143 #: ../src/guestfs-actions.pod:2132
26144 msgid ""
26145 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
26146 "call instead."
26147 msgstr ""
26148
26149 #. type: =head2
26150 #: ../src/guestfs-actions.pod:2147
26151 msgid "guestfs_get_memsize"
26152 msgstr ""
26153
26154 #. type: verbatim
26155 #: ../src/guestfs-actions.pod:2149
26156 #, no-wrap
26157 msgid ""
26158 " int\n"
26159 " guestfs_get_memsize (guestfs_h *g);\n"
26160 "\n"
26161 msgstr ""
26162
26163 #. type: textblock
26164 #: ../src/guestfs-actions.pod:2155
26165 msgid ""
26166 "If C<guestfs_set_memsize> was not called on this handle, and if "
26167 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26168 "value for memsize."
26169 msgstr ""
26170
26171 #. type: textblock
26172 #: ../src/guestfs-actions.pod:2164 ../src/guestfs-actions.pod:4737
26173 #: ../src/guestfs-actions.pod:4946 ../src/guestfs-actions.pod:4965
26174 #: ../src/guestfs-actions.pod:4984 ../src/guestfs-actions.pod:4996
26175 #: ../src/guestfs-actions.pod:5013 ../src/guestfs-actions.pod:5026
26176 #: ../src/guestfs-actions.pod:6049 ../src/guestfs-actions.pod:6435
26177 #: ../src/guestfs-actions.pod:6729 ../src/guestfs-actions.pod:7344
26178 msgid "(Added in 1.0.55)"
26179 msgstr ""
26180
26181 #. type: =head2
26182 #: ../src/guestfs-actions.pod:2166
26183 msgid "guestfs_get_network"
26184 msgstr ""
26185
26186 #. type: verbatim
26187 #: ../src/guestfs-actions.pod:2168
26188 #, no-wrap
26189 msgid ""
26190 " int\n"
26191 " guestfs_get_network (guestfs_h *g);\n"
26192 "\n"
26193 msgstr ""
26194
26195 #. type: textblock
26196 #: ../src/guestfs-actions.pod:2175 ../src/guestfs-actions.pod:6454
26197 msgid "(Added in 1.5.4)"
26198 msgstr ""
26199
26200 #. type: =head2
26201 #: ../src/guestfs-actions.pod:2177
26202 msgid "guestfs_get_path"
26203 msgstr ""
26204
26205 #. type: verbatim
26206 #: ../src/guestfs-actions.pod:2179
26207 #, no-wrap
26208 msgid ""
26209 " const char *\n"
26210 " guestfs_get_path (guestfs_h *g);\n"
26211 "\n"
26212 msgstr ""
26213
26214 #. type: textblock
26215 #: ../src/guestfs-actions.pod:2187 ../src/guestfs-actions.pod:2227
26216 msgid ""
26217 "This function returns a string, or NULL on error.  The string is owned by "
26218 "the guest handle and must I<not> be freed."
26219 msgstr ""
26220
26221 #. type: =head2
26222 #: ../src/guestfs-actions.pod:2192
26223 msgid "guestfs_get_pgroup"
26224 msgstr ""
26225
26226 #. type: verbatim
26227 #: ../src/guestfs-actions.pod:2194
26228 #, no-wrap
26229 msgid ""
26230 " int\n"
26231 " guestfs_get_pgroup (guestfs_h *g);\n"
26232 "\n"
26233 msgstr ""
26234
26235 #. type: textblock
26236 #: ../src/guestfs-actions.pod:2201 ../src/guestfs-actions.pod:6490
26237 #: ../src/guestfs-actions.pod:7836
26238 #, fuzzy
26239 #| msgid "(Added in 1.5.1)"
26240 msgid "(Added in 1.11.18)"
26241 msgstr "(Додано у 1.5.1)"
26242
26243 #. type: =head2
26244 #: ../src/guestfs-actions.pod:2203
26245 msgid "guestfs_get_pid"
26246 msgstr ""
26247
26248 #. type: verbatim
26249 #: ../src/guestfs-actions.pod:2205
26250 #, no-wrap
26251 msgid ""
26252 " int\n"
26253 " guestfs_get_pid (guestfs_h *g);\n"
26254 "\n"
26255 msgstr ""
26256
26257 #. type: textblock
26258 #: ../src/guestfs-actions.pod:2215
26259 msgid "(Added in 1.0.56)"
26260 msgstr ""
26261
26262 #. type: =head2
26263 #: ../src/guestfs-actions.pod:2217
26264 msgid "guestfs_get_qemu"
26265 msgstr ""
26266
26267 #. type: verbatim
26268 #: ../src/guestfs-actions.pod:2219
26269 #, no-wrap
26270 msgid ""
26271 " const char *\n"
26272 " guestfs_get_qemu (guestfs_h *g);\n"
26273 "\n"
26274 msgstr ""
26275
26276 #. type: textblock
26277 #: ../src/guestfs-actions.pod:2230 ../src/guestfs-actions.pod:6518
26278 msgid "(Added in 1.0.6)"
26279 msgstr ""
26280
26281 #. type: =head2
26282 #: ../src/guestfs-actions.pod:2232
26283 msgid "guestfs_get_recovery_proc"
26284 msgstr ""
26285
26286 #. type: verbatim
26287 #: ../src/guestfs-actions.pod:2234
26288 #, no-wrap
26289 msgid ""
26290 " int\n"
26291 " guestfs_get_recovery_proc (guestfs_h *g);\n"
26292 "\n"
26293 msgstr ""
26294
26295 #. type: textblock
26296 #: ../src/guestfs-actions.pod:2241 ../src/guestfs-actions.pod:3810
26297 #: ../src/guestfs-actions.pod:4141 ../src/guestfs-actions.pod:4544
26298 #: ../src/guestfs-actions.pod:4576 ../src/guestfs-actions.pod:5754
26299 #: ../src/guestfs-actions.pod:6097 ../src/guestfs-actions.pod:6542
26300 #: ../src/guestfs-actions.pod:7247 ../src/guestfs-actions.pod:7267
26301 #: ../src/guestfs-actions.pod:7459
26302 msgid "(Added in 1.0.77)"
26303 msgstr ""
26304
26305 #. type: =head2
26306 #: ../src/guestfs-actions.pod:2243
26307 msgid "guestfs_get_selinux"
26308 msgstr ""
26309
26310 #. type: verbatim
26311 #: ../src/guestfs-actions.pod:2245
26312 #, no-wrap
26313 msgid ""
26314 " int\n"
26315 " guestfs_get_selinux (guestfs_h *g);\n"
26316 "\n"
26317 msgstr ""
26318
26319 #. type: textblock
26320 #: ../src/guestfs-actions.pod:2248
26321 msgid ""
26322 "This returns the current setting of the selinux flag which is passed to the "
26323 "appliance at boot time.  See C<guestfs_set_selinux>."
26324 msgstr ""
26325
26326 #. type: textblock
26327 #: ../src/guestfs-actions.pod:2256 ../src/guestfs-actions.pod:2328
26328 #: ../src/guestfs-actions.pod:6561 ../src/guestfs-actions.pod:6633
26329 msgid "(Added in 1.0.67)"
26330 msgstr ""
26331
26332 #. type: =head2
26333 #: ../src/guestfs-actions.pod:2258
26334 #, fuzzy
26335 #| msgid "guestfs_zgrep"
26336 msgid "guestfs_get_smp"
26337 msgstr "guestfs_zgrep"
26338
26339 #. type: verbatim
26340 #: ../src/guestfs-actions.pod:2260
26341 #, fuzzy, no-wrap
26342 #| msgid ""
26343 #| " int guestfs_last_errno (guestfs_h *g);\n"
26344 #| "\n"
26345 msgid ""
26346 " int\n"
26347 " guestfs_get_smp (guestfs_h *g);\n"
26348 "\n"
26349 msgstr ""
26350 " int guestfs_last_errno (guestfs_h *g);\n"
26351 "\n"
26352
26353 #. type: =head2
26354 #: ../src/guestfs-actions.pod:2267
26355 msgid "guestfs_get_state"
26356 msgstr ""
26357
26358 #. type: verbatim
26359 #: ../src/guestfs-actions.pod:2269
26360 #, no-wrap
26361 msgid ""
26362 " int\n"
26363 " guestfs_get_state (guestfs_h *g);\n"
26364 "\n"
26365 msgstr ""
26366
26367 #. type: =head2
26368 #: ../src/guestfs-actions.pod:2281
26369 msgid "guestfs_get_trace"
26370 msgstr ""
26371
26372 #. type: verbatim
26373 #: ../src/guestfs-actions.pod:2283
26374 #, no-wrap
26375 msgid ""
26376 " int\n"
26377 " guestfs_get_trace (guestfs_h *g);\n"
26378 "\n"
26379 msgstr ""
26380
26381 #. type: =head2
26382 #: ../src/guestfs-actions.pod:2292
26383 msgid "guestfs_get_umask"
26384 msgstr ""
26385
26386 #. type: verbatim
26387 #: ../src/guestfs-actions.pod:2294
26388 #, no-wrap
26389 msgid ""
26390 " int\n"
26391 " guestfs_get_umask (guestfs_h *g);\n"
26392 "\n"
26393 msgstr ""
26394
26395 #. type: textblock
26396 #: ../src/guestfs-actions.pod:2297
26397 msgid ""
26398 "Return the current umask.  By default the umask is C<022> unless it has been "
26399 "set by calling C<guestfs_umask>."
26400 msgstr ""
26401
26402 #. type: =head2
26403 #: ../src/guestfs-actions.pod:2304
26404 msgid "guestfs_get_verbose"
26405 msgstr ""
26406
26407 #. type: verbatim
26408 #: ../src/guestfs-actions.pod:2306
26409 #, no-wrap
26410 msgid ""
26411 " int\n"
26412 " guestfs_get_verbose (guestfs_h *g);\n"
26413 "\n"
26414 msgstr ""
26415
26416 #. type: =head2
26417 #: ../src/guestfs-actions.pod:2315
26418 msgid "guestfs_getcon"
26419 msgstr ""
26420
26421 #. type: verbatim
26422 #: ../src/guestfs-actions.pod:2317
26423 #, no-wrap
26424 msgid ""
26425 " char *\n"
26426 " guestfs_getcon (guestfs_h *g);\n"
26427 "\n"
26428 msgstr ""
26429
26430 #. type: textblock
26431 #: ../src/guestfs-actions.pod:2322
26432 msgid ""
26433 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
26434 msgstr ""
26435
26436 #. type: =head2
26437 #: ../src/guestfs-actions.pod:2330
26438 msgid "guestfs_getxattr"
26439 msgstr ""
26440
26441 #. type: verbatim
26442 #: ../src/guestfs-actions.pod:2332
26443 #, no-wrap
26444 msgid ""
26445 " char *\n"
26446 " guestfs_getxattr (guestfs_h *g,\n"
26447 "                   const char *path,\n"
26448 "                   const char *name,\n"
26449 "                   size_t *size_r);\n"
26450 "\n"
26451 msgstr ""
26452
26453 #. type: textblock
26454 #: ../src/guestfs-actions.pod:2338
26455 msgid ""
26456 "Get a single extended attribute from file C<path> named C<name>.  This call "
26457 "follows symlinks.  If you want to lookup an extended attribute for the "
26458 "symlink itself, use C<guestfs_lgetxattr>."
26459 msgstr ""
26460
26461 #. type: textblock
26462 #: ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:3824
26463 msgid ""
26464 "Normally it is better to get all extended attributes from a file in one go "
26465 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
26466 "implementations are buggy and do not provide a way to list out attributes.  "
26467 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
26468 "extended attributes you want in advance and call this function."
26469 msgstr ""
26470
26471 #. type: textblock
26472 #: ../src/guestfs-actions.pod:2352
26473 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
26474 msgstr ""
26475
26476 #. type: textblock
26477 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:2567
26478 #: ../src/guestfs-actions.pod:3041 ../src/guestfs-actions.pod:3836
26479 #: ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:5773
26480 #: ../src/guestfs-actions.pod:5954
26481 msgid ""
26482 "This function returns a buffer, or NULL on error.  The size of the returned "
26483 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
26484 "after use>."
26485 msgstr ""
26486
26487 #. type: textblock
26488 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:3840
26489 msgid "(Added in 1.7.24)"
26490 msgstr ""
26491
26492 #. type: =head2
26493 #: ../src/guestfs-actions.pod:2360
26494 msgid "guestfs_getxattrs"
26495 msgstr ""
26496
26497 #. type: verbatim
26498 #: ../src/guestfs-actions.pod:2362
26499 #, no-wrap
26500 msgid ""
26501 " struct guestfs_xattr_list *\n"
26502 " guestfs_getxattrs (guestfs_h *g,\n"
26503 "                    const char *path);\n"
26504 "\n"
26505 msgstr ""
26506
26507 #. type: textblock
26508 #: ../src/guestfs-actions.pod:2372
26509 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
26510 msgstr ""
26511
26512 #. type: textblock
26513 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:3852
26514 #: ../src/guestfs-actions.pod:4540
26515 msgid ""
26516 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
26517 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
26518 msgstr ""
26519
26520 #. type: textblock
26521 #: ../src/guestfs-actions.pod:2378 ../src/guestfs-actions.pod:3856
26522 #: ../src/guestfs-actions.pod:4055 ../src/guestfs-actions.pod:4091
26523 #: ../src/guestfs-actions.pod:6127 ../src/guestfs-actions.pod:6652
26524 #: ../src/guestfs-actions.pod:8047
26525 msgid "(Added in 1.0.59)"
26526 msgstr ""
26527
26528 #. type: =head2
26529 #: ../src/guestfs-actions.pod:2380
26530 msgid "guestfs_glob_expand"
26531 msgstr ""
26532
26533 #. type: verbatim
26534 #: ../src/guestfs-actions.pod:2382
26535 #, no-wrap
26536 msgid ""
26537 " char **\n"
26538 " guestfs_glob_expand (guestfs_h *g,\n"
26539 "                      const char *pattern);\n"
26540 "\n"
26541 msgstr ""
26542
26543 #. type: textblock
26544 #: ../src/guestfs-actions.pod:2401 ../src/guestfs-actions.pod:6845
26545 #: ../src/guestfs-actions.pod:6862
26546 msgid "(Added in 1.0.50)"
26547 msgstr ""
26548
26549 #. type: =head2
26550 #: ../src/guestfs-actions.pod:2403
26551 msgid "guestfs_grep"
26552 msgstr ""
26553
26554 #. type: verbatim
26555 #: ../src/guestfs-actions.pod:2405
26556 #, no-wrap
26557 msgid ""
26558 " char **\n"
26559 " guestfs_grep (guestfs_h *g,\n"
26560 "               const char *regex,\n"
26561 "               const char *path);\n"
26562 "\n"
26563 msgstr ""
26564
26565 #. type: =head2
26566 #: ../src/guestfs-actions.pod:2422
26567 msgid "guestfs_grepi"
26568 msgstr ""
26569
26570 #. type: verbatim
26571 #: ../src/guestfs-actions.pod:2424
26572 #, no-wrap
26573 msgid ""
26574 " char **\n"
26575 " guestfs_grepi (guestfs_h *g,\n"
26576 "                const char *regex,\n"
26577 "                const char *path);\n"
26578 "\n"
26579 msgstr ""
26580
26581 #. type: =head2
26582 #: ../src/guestfs-actions.pod:2441
26583 msgid "guestfs_grub_install"
26584 msgstr ""
26585
26586 #. type: verbatim
26587 #: ../src/guestfs-actions.pod:2443
26588 #, no-wrap
26589 msgid ""
26590 " int\n"
26591 " guestfs_grub_install (guestfs_h *g,\n"
26592 "                       const char *root,\n"
26593 "                       const char *device);\n"
26594 "\n"
26595 msgstr ""
26596
26597 #. type: textblock
26598 #: ../src/guestfs-actions.pod:2486
26599 msgid "(Added in 1.0.17)"
26600 msgstr ""
26601
26602 #. type: =head2
26603 #: ../src/guestfs-actions.pod:2488
26604 msgid "guestfs_head"
26605 msgstr ""
26606
26607 #. type: verbatim
26608 #: ../src/guestfs-actions.pod:2490
26609 #, no-wrap
26610 msgid ""
26611 " char **\n"
26612 " guestfs_head (guestfs_h *g,\n"
26613 "               const char *path);\n"
26614 "\n"
26615 msgstr ""
26616
26617 #. type: =head2
26618 #: ../src/guestfs-actions.pod:2506
26619 msgid "guestfs_head_n"
26620 msgstr ""
26621
26622 #. type: verbatim
26623 #: ../src/guestfs-actions.pod:2508
26624 #, no-wrap
26625 msgid ""
26626 " char **\n"
26627 " guestfs_head_n (guestfs_h *g,\n"
26628 "                 int nrlines,\n"
26629 "                 const char *path);\n"
26630 "\n"
26631 msgstr ""
26632
26633 #. type: =head2
26634 #: ../src/guestfs-actions.pod:2530
26635 msgid "guestfs_hexdump"
26636 msgstr ""
26637
26638 #. type: verbatim
26639 #: ../src/guestfs-actions.pod:2532
26640 #, no-wrap
26641 msgid ""
26642 " char *\n"
26643 " guestfs_hexdump (guestfs_h *g,\n"
26644 "                  const char *path);\n"
26645 "\n"
26646 msgstr ""
26647
26648 #. type: textblock
26649 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:6926
26650 #: ../src/guestfs-actions.pod:6981
26651 msgid "(Added in 1.0.22)"
26652 msgstr ""
26653
26654 #. type: =head2
26655 #: ../src/guestfs-actions.pod:2547
26656 msgid "guestfs_initrd_cat"
26657 msgstr ""
26658
26659 #. type: verbatim
26660 #: ../src/guestfs-actions.pod:2549
26661 #, no-wrap
26662 msgid ""
26663 " char *\n"
26664 " guestfs_initrd_cat (guestfs_h *g,\n"
26665 "                     const char *initrdpath,\n"
26666 "                     const char *filename,\n"
26667 "                     size_t *size_r);\n"
26668 "\n"
26669 msgstr ""
26670
26671 #. type: textblock
26672 #: ../src/guestfs-actions.pod:2565
26673 msgid "See also C<guestfs_initrd_list>."
26674 msgstr ""
26675
26676 #. type: =head2
26677 #: ../src/guestfs-actions.pod:2576
26678 msgid "guestfs_initrd_list"
26679 msgstr ""
26680
26681 #. type: verbatim
26682 #: ../src/guestfs-actions.pod:2578
26683 #, no-wrap
26684 msgid ""
26685 " char **\n"
26686 " guestfs_initrd_list (guestfs_h *g,\n"
26687 "                      const char *path);\n"
26688 "\n"
26689 msgstr ""
26690
26691 #. type: =head2
26692 #: ../src/guestfs-actions.pod:2598
26693 msgid "guestfs_inotify_add_watch"
26694 msgstr ""
26695
26696 #. type: verbatim
26697 #: ../src/guestfs-actions.pod:2600
26698 #, no-wrap
26699 msgid ""
26700 " int64_t\n"
26701 " guestfs_inotify_add_watch (guestfs_h *g,\n"
26702 "                            const char *path,\n"
26703 "                            int mask);\n"
26704 "\n"
26705 msgstr ""
26706
26707 #. type: =head2
26708 #: ../src/guestfs-actions.pod:2619
26709 msgid "guestfs_inotify_close"
26710 msgstr ""
26711
26712 #. type: verbatim
26713 #: ../src/guestfs-actions.pod:2621
26714 #, no-wrap
26715 msgid ""
26716 " int\n"
26717 " guestfs_inotify_close (guestfs_h *g);\n"
26718 "\n"
26719 msgstr ""
26720
26721 #. type: =head2
26722 #: ../src/guestfs-actions.pod:2632
26723 msgid "guestfs_inotify_files"
26724 msgstr ""
26725
26726 #. type: verbatim
26727 #: ../src/guestfs-actions.pod:2634
26728 #, no-wrap
26729 msgid ""
26730 " char **\n"
26731 " guestfs_inotify_files (guestfs_h *g);\n"
26732 "\n"
26733 msgstr ""
26734
26735 #. type: textblock
26736 #: ../src/guestfs-actions.pod:2637
26737 msgid ""
26738 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26739 "returns a list of pathnames of objects that were touched.  The returned "
26740 "pathnames are sorted and deduplicated."
26741 msgstr ""
26742
26743 #. type: =head2
26744 #: ../src/guestfs-actions.pod:2647
26745 msgid "guestfs_inotify_init"
26746 msgstr ""
26747
26748 #. type: verbatim
26749 #: ../src/guestfs-actions.pod:2649
26750 #, no-wrap
26751 msgid ""
26752 " int\n"
26753 " guestfs_inotify_init (guestfs_h *g,\n"
26754 "                       int maxevents);\n"
26755 "\n"
26756 msgstr ""
26757
26758 #. type: textblock
26759 #: ../src/guestfs-actions.pod:2657
26760 msgid ""
26761 "C<maxevents> is the maximum number of events which will be queued up between "
26762 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
26763 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
26764 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
26765 "throws away events, but records the fact that it threw them away by setting "
26766 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
26767 "C<guestfs_inotify_read>)."
26768 msgstr ""
26769
26770 #. type: textblock
26771 #: ../src/guestfs-actions.pod:2667
26772 msgid ""
26773 "Before any events are generated, you have to add some watches to the "
26774 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
26775 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26776 msgstr ""
26777
26778 #. type: textblock
26779 #: ../src/guestfs-actions.pod:2673
26780 msgid ""
26781 "Queued up events should be read periodically by calling "
26782 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26783 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
26784 "often enough then you risk the internal queue overflowing."
26785 msgstr ""
26786
26787 #. type: textblock
26788 #: ../src/guestfs-actions.pod:2680
26789 msgid ""
26790 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
26791 "This also removes any watches automatically."
26792 msgstr ""
26793
26794 #. type: =head2
26795 #: ../src/guestfs-actions.pod:2693
26796 msgid "guestfs_inotify_read"
26797 msgstr ""
26798
26799 #. type: verbatim
26800 #: ../src/guestfs-actions.pod:2695
26801 #, no-wrap
26802 msgid ""
26803 " struct guestfs_inotify_event_list *\n"
26804 " guestfs_inotify_read (guestfs_h *g);\n"
26805 "\n"
26806 msgstr ""
26807
26808 #. type: textblock
26809 #: ../src/guestfs-actions.pod:2709
26810 msgid ""
26811 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26812 "there was an error.  I<The caller must call "
26813 "C<guestfs_free_inotify_event_list> after use>."
26814 msgstr ""
26815
26816 #. type: =head2
26817 #: ../src/guestfs-actions.pod:2715
26818 msgid "guestfs_inotify_rm_watch"
26819 msgstr ""
26820
26821 #. type: verbatim
26822 #: ../src/guestfs-actions.pod:2717
26823 #, no-wrap
26824 msgid ""
26825 " int\n"
26826 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26827 "                           int wd);\n"
26828 "\n"
26829 msgstr ""
26830
26831 #. type: textblock
26832 #: ../src/guestfs-actions.pod:2721
26833 msgid ""
26834 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
26835 msgstr ""
26836
26837 #. type: =head2
26838 #: ../src/guestfs-actions.pod:2728
26839 msgid "guestfs_inspect_get_arch"
26840 msgstr ""
26841
26842 #. type: verbatim
26843 #: ../src/guestfs-actions.pod:2730
26844 #, no-wrap
26845 msgid ""
26846 " char *\n"
26847 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26848 "                           const char *root);\n"
26849 "\n"
26850 msgstr ""
26851
26852 #. type: textblock
26853 #: ../src/guestfs-actions.pod:2734
26854 msgid ""
26855 "This returns the architecture of the inspected operating system.  The "
26856 "possible return values are listed under C<guestfs_file_architecture>."
26857 msgstr ""
26858
26859 #. type: =head2
26860 #: ../src/guestfs-actions.pod:2748
26861 msgid "guestfs_inspect_get_distro"
26862 msgstr ""
26863
26864 #. type: verbatim
26865 #: ../src/guestfs-actions.pod:2750
26866 #, no-wrap
26867 msgid ""
26868 " char *\n"
26869 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26870 "                             const char *root);\n"
26871 "\n"
26872 msgstr ""
26873
26874 #. type: =head2
26875 #: ../src/guestfs-actions.pod:2842
26876 msgid "guestfs_inspect_get_drive_mappings"
26877 msgstr ""
26878
26879 #. type: verbatim
26880 #: ../src/guestfs-actions.pod:2844
26881 #, no-wrap
26882 msgid ""
26883 " char **\n"
26884 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26885 "                                     const char *root);\n"
26886 "\n"
26887 msgstr ""
26888
26889 #. type: textblock
26890 #: ../src/guestfs-actions.pod:2873
26891 msgid ""
26892 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26893 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26894 msgstr ""
26895
26896 #. type: textblock
26897 #: ../src/guestfs-actions.pod:2877 ../src/guestfs-actions.pod:3145
26898 #: ../src/guestfs-actions.pod:3943 ../src/guestfs-actions.pod:5215
26899 #: ../src/guestfs-actions.pod:7283
26900 msgid ""
26901 "This function returns a NULL-terminated array of strings, or NULL if there "
26902 "was an error.  The array of strings will always have length C<2n+1>, where "
26903 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26904 "caller must free the strings and the array after use>."
26905 msgstr ""
26906
26907 #. type: textblock
26908 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3339
26909 msgid "(Added in 1.9.17)"
26910 msgstr ""
26911
26912 #. type: =head2
26913 #: ../src/guestfs-actions.pod:2885
26914 msgid "guestfs_inspect_get_filesystems"
26915 msgstr ""
26916
26917 #. type: verbatim
26918 #: ../src/guestfs-actions.pod:2887
26919 #, no-wrap
26920 msgid ""
26921 " char **\n"
26922 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26923 "                                  const char *root);\n"
26924 "\n"
26925 msgstr ""
26926
26927 #. type: textblock
26928 #: ../src/guestfs-actions.pod:2899
26929 msgid ""
26930 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26931 "C<guestfs_inspect_get_mountpoints>."
26932 msgstr ""
26933
26934 #. type: =head2
26935 #: ../src/guestfs-actions.pod:2908
26936 msgid "guestfs_inspect_get_format"
26937 msgstr ""
26938
26939 #. type: verbatim
26940 #: ../src/guestfs-actions.pod:2910
26941 #, no-wrap
26942 msgid ""
26943 " char *\n"
26944 " guestfs_inspect_get_format (guestfs_h *g,\n"
26945 "                             const char *root);\n"
26946 "\n"
26947 msgstr ""
26948
26949 #. type: textblock
26950 #: ../src/guestfs-actions.pod:2944 ../src/guestfs-actions.pod:3375
26951 #: ../src/guestfs-actions.pod:3391 ../src/guestfs-actions.pod:3409
26952 #: ../src/guestfs-actions.pod:6165
26953 msgid "(Added in 1.9.4)"
26954 msgstr ""
26955
26956 #. type: =head2
26957 #: ../src/guestfs-actions.pod:2946
26958 msgid "guestfs_inspect_get_hostname"
26959 msgstr ""
26960
26961 #. type: verbatim
26962 #: ../src/guestfs-actions.pod:2948
26963 #, no-wrap
26964 msgid ""
26965 " char *\n"
26966 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26967 "                               const char *root);\n"
26968 "\n"
26969 msgstr ""
26970
26971 #. type: textblock
26972 #: ../src/guestfs-actions.pod:2963
26973 msgid "(Added in 1.7.9)"
26974 msgstr ""
26975
26976 #. type: =head2
26977 #: ../src/guestfs-actions.pod:2965
26978 msgid "guestfs_inspect_get_icon"
26979 msgstr ""
26980
26981 #. type: verbatim
26982 #: ../src/guestfs-actions.pod:2967
26983 #, no-wrap
26984 msgid ""
26985 " char *\n"
26986 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26987 "                           const char *root,\n"
26988 "                           size_t *size_r,\n"
26989 "                           ...);\n"
26990 "\n"
26991 msgstr ""
26992
26993 #. type: verbatim
26994 #: ../src/guestfs-actions.pod:2978
26995 #, no-wrap
26996 msgid ""
26997 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26998 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26999 "\n"
27000 msgstr ""
27001
27002 #. type: textblock
27003 #: ../src/guestfs-actions.pod:3045 ../src/guestfs-actions.pod:3870
27004 #: ../src/guestfs-actions.pod:5114
27005 msgid "(Added in 1.11.12)"
27006 msgstr ""
27007
27008 #. type: =head2
27009 #: ../src/guestfs-actions.pod:3047
27010 msgid "guestfs_inspect_get_icon_va"
27011 msgstr ""
27012
27013 #. type: verbatim
27014 #: ../src/guestfs-actions.pod:3049
27015 #, no-wrap
27016 msgid ""
27017 " char *\n"
27018 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
27019 "                              const char *root,\n"
27020 "                              size_t *size_r,\n"
27021 "                              va_list args);\n"
27022 "\n"
27023 msgstr ""
27024
27025 #. type: textblock
27026 #: ../src/guestfs-actions.pod:3055
27027 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
27028 msgstr ""
27029
27030 #. type: =head2
27031 #: ../src/guestfs-actions.pod:3059
27032 msgid "guestfs_inspect_get_icon_argv"
27033 msgstr ""
27034
27035 #. type: verbatim
27036 #: ../src/guestfs-actions.pod:3061
27037 #, no-wrap
27038 msgid ""
27039 " char *\n"
27040 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
27041 "                                const char *root,\n"
27042 "                                size_t *size_r,\n"
27043 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
27044 "\n"
27045 msgstr ""
27046
27047 #. type: textblock
27048 #: ../src/guestfs-actions.pod:3067
27049 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
27050 msgstr ""
27051
27052 #. type: =head2
27053 #: ../src/guestfs-actions.pod:3071
27054 msgid "guestfs_inspect_get_major_version"
27055 msgstr ""
27056
27057 #. type: verbatim
27058 #: ../src/guestfs-actions.pod:3073
27059 #, no-wrap
27060 msgid ""
27061 " int\n"
27062 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
27063 "                                    const char *root);\n"
27064 "\n"
27065 msgstr ""
27066
27067 #. type: =head2
27068 #: ../src/guestfs-actions.pod:3095
27069 msgid "guestfs_inspect_get_minor_version"
27070 msgstr ""
27071
27072 #. type: verbatim
27073 #: ../src/guestfs-actions.pod:3097
27074 #, no-wrap
27075 msgid ""
27076 " int\n"
27077 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
27078 "                                    const char *root);\n"
27079 "\n"
27080 msgstr ""
27081
27082 #. type: textblock
27083 #: ../src/guestfs-actions.pod:3106
27084 msgid ""
27085 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27086 "C<guestfs_inspect_get_major_version>."
27087 msgstr ""
27088
27089 #. type: =head2
27090 #: ../src/guestfs-actions.pod:3113
27091 msgid "guestfs_inspect_get_mountpoints"
27092 msgstr ""
27093
27094 #. type: verbatim
27095 #: ../src/guestfs-actions.pod:3115
27096 #, no-wrap
27097 msgid ""
27098 " char **\n"
27099 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
27100 "                                  const char *root);\n"
27101 "\n"
27102 msgstr ""
27103
27104 #. type: textblock
27105 #: ../src/guestfs-actions.pod:3136
27106 msgid ""
27107 "For operating systems like Windows which still use drive letters, this call "
27108 "will only return an entry for the first drive \"mounted on\" C</>.  For "
27109 "information about the mapping of drive letters to partitions, see "
27110 "C<guestfs_inspect_get_drive_mappings>."
27111 msgstr ""
27112
27113 #. type: textblock
27114 #: ../src/guestfs-actions.pod:3142
27115 msgid ""
27116 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27117 "C<guestfs_inspect_get_filesystems>."
27118 msgstr ""
27119
27120 #. type: =head2
27121 #: ../src/guestfs-actions.pod:3153
27122 msgid "guestfs_inspect_get_package_format"
27123 msgstr ""
27124
27125 #. type: verbatim
27126 #: ../src/guestfs-actions.pod:3155
27127 #, no-wrap
27128 msgid ""
27129 " char *\n"
27130 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
27131 "                                     const char *root);\n"
27132 "\n"
27133 msgstr ""
27134
27135 #. type: textblock
27136 #: ../src/guestfs-actions.pod:3159
27137 msgid ""
27138 "This function and C<guestfs_inspect_get_package_management> return the "
27139 "package format and package management tool used by the inspected operating "
27140 "system.  For example for Fedora these functions would return C<rpm> (package "
27141 "format) and C<yum> (package management)."
27142 msgstr ""
27143
27144 #. type: textblock
27145 #: ../src/guestfs-actions.pod:3177 ../src/guestfs-actions.pod:3205
27146 msgid "(Added in 1.7.5)"
27147 msgstr ""
27148
27149 #. type: =head2
27150 #: ../src/guestfs-actions.pod:3179
27151 msgid "guestfs_inspect_get_package_management"
27152 msgstr ""
27153
27154 #. type: verbatim
27155 #: ../src/guestfs-actions.pod:3181
27156 #, no-wrap
27157 msgid ""
27158 " char *\n"
27159 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
27160 "                                         const char *root);\n"
27161 "\n"
27162 msgstr ""
27163
27164 #. type: textblock
27165 #: ../src/guestfs-actions.pod:3185
27166 msgid ""
27167 "C<guestfs_inspect_get_package_format> and this function return the package "
27168 "format and package management tool used by the inspected operating system.  "
27169 "For example for Fedora these functions would return C<rpm> (package format) "
27170 "and C<yum> (package management)."
27171 msgstr ""
27172
27173 #. type: =head2
27174 #: ../src/guestfs-actions.pod:3207
27175 msgid "guestfs_inspect_get_product_name"
27176 msgstr ""
27177
27178 #. type: verbatim
27179 #: ../src/guestfs-actions.pod:3209
27180 #, no-wrap
27181 msgid ""
27182 " char *\n"
27183 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
27184 "                                   const char *root);\n"
27185 "\n"
27186 msgstr ""
27187
27188 #. type: =head2
27189 #: ../src/guestfs-actions.pod:3228
27190 msgid "guestfs_inspect_get_product_variant"
27191 msgstr ""
27192
27193 #. type: verbatim
27194 #: ../src/guestfs-actions.pod:3230
27195 #, no-wrap
27196 msgid ""
27197 " char *\n"
27198 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
27199 "                                      const char *root);\n"
27200 "\n"
27201 msgstr ""
27202
27203 #. type: textblock
27204 #: ../src/guestfs-actions.pod:3253
27205 msgid ""
27206 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27207 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
27208 msgstr ""
27209
27210 #. type: textblock
27211 #: ../src/guestfs-actions.pod:3260
27212 msgid "(Added in 1.9.13)"
27213 msgstr ""
27214
27215 #. type: =head2
27216 #: ../src/guestfs-actions.pod:3262
27217 msgid "guestfs_inspect_get_roots"
27218 msgstr ""
27219
27220 #. type: verbatim
27221 #: ../src/guestfs-actions.pod:3264
27222 #, no-wrap
27223 msgid ""
27224 " char **\n"
27225 " guestfs_inspect_get_roots (guestfs_h *g);\n"
27226 "\n"
27227 msgstr ""
27228
27229 #. type: textblock
27230 #: ../src/guestfs-actions.pod:3267
27231 msgid ""
27232 "This function is a convenient way to get the list of root devices, as "
27233 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
27234 "the whole inspection process."
27235 msgstr ""
27236
27237 #. type: textblock
27238 #: ../src/guestfs-actions.pod:3271
27239 msgid ""
27240 "This returns an empty list if either no root devices were found or the "
27241 "caller has not called C<guestfs_inspect_os>."
27242 msgstr ""
27243
27244 #. type: textblock
27245 #: ../src/guestfs-actions.pod:3280
27246 msgid "(Added in 1.7.3)"
27247 msgstr ""
27248
27249 #. type: =head2
27250 #: ../src/guestfs-actions.pod:3282
27251 msgid "guestfs_inspect_get_type"
27252 msgstr ""
27253
27254 #. type: verbatim
27255 #: ../src/guestfs-actions.pod:3284
27256 #, no-wrap
27257 msgid ""
27258 " char *\n"
27259 " guestfs_inspect_get_type (guestfs_h *g,\n"
27260 "                           const char *root);\n"
27261 "\n"
27262 msgstr ""
27263
27264 #. type: =head2
27265 #: ../src/guestfs-actions.pod:3321
27266 msgid "guestfs_inspect_get_windows_current_control_set"
27267 msgstr ""
27268
27269 #. type: verbatim
27270 #: ../src/guestfs-actions.pod:3323
27271 #, no-wrap
27272 msgid ""
27273 " char *\n"
27274 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
27275 "                                                  const char *root);\n"
27276 "\n"
27277 msgstr ""
27278
27279 #. type: =head2
27280 #: ../src/guestfs-actions.pod:3341
27281 msgid "guestfs_inspect_get_windows_systemroot"
27282 msgstr ""
27283
27284 #. type: verbatim
27285 #: ../src/guestfs-actions.pod:3343
27286 #, no-wrap
27287 msgid ""
27288 " char *\n"
27289 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
27290 "                                         const char *root);\n"
27291 "\n"
27292 msgstr ""
27293
27294 #. type: textblock
27295 #: ../src/guestfs-actions.pod:3359
27296 msgid "(Added in 1.5.25)"
27297 msgstr ""
27298
27299 #. type: =head2
27300 #: ../src/guestfs-actions.pod:3361
27301 msgid "guestfs_inspect_is_live"
27302 msgstr ""
27303
27304 #. type: verbatim
27305 #: ../src/guestfs-actions.pod:3363
27306 #, no-wrap
27307 msgid ""
27308 " int\n"
27309 " guestfs_inspect_is_live (guestfs_h *g,\n"
27310 "                          const char *root);\n"
27311 "\n"
27312 msgstr ""
27313
27314 #. type: textblock
27315 #: ../src/guestfs-actions.pod:3367
27316 msgid ""
27317 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27318 "disk), then this returns true if a live image was detected on the disk."
27319 msgstr ""
27320
27321 #. type: =head2
27322 #: ../src/guestfs-actions.pod:3377
27323 msgid "guestfs_inspect_is_multipart"
27324 msgstr ""
27325
27326 #. type: verbatim
27327 #: ../src/guestfs-actions.pod:3379
27328 #, no-wrap
27329 msgid ""
27330 " int\n"
27331 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
27332 "                               const char *root);\n"
27333 "\n"
27334 msgstr ""
27335
27336 #. type: textblock
27337 #: ../src/guestfs-actions.pod:3383
27338 msgid ""
27339 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27340 "disk), then this returns true if the disk is part of a set."
27341 msgstr ""
27342
27343 #. type: =head2
27344 #: ../src/guestfs-actions.pod:3393
27345 msgid "guestfs_inspect_is_netinst"
27346 msgstr ""
27347
27348 #. type: verbatim
27349 #: ../src/guestfs-actions.pod:3395
27350 #, no-wrap
27351 msgid ""
27352 " int\n"
27353 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
27354 "                             const char *root);\n"
27355 "\n"
27356 msgstr ""
27357
27358 #. type: textblock
27359 #: ../src/guestfs-actions.pod:3399
27360 msgid ""
27361 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
27362 "disk), then this returns true if the disk is a network installer, ie. not a "
27363 "self-contained install CD but one which is likely to require network access "
27364 "to complete the install."
27365 msgstr ""
27366
27367 #. type: =head2
27368 #: ../src/guestfs-actions.pod:3411
27369 msgid "guestfs_inspect_list_applications"
27370 msgstr ""
27371
27372 #. type: verbatim
27373 #: ../src/guestfs-actions.pod:3413
27374 #, no-wrap
27375 msgid ""
27376 " struct guestfs_application_list *\n"
27377 " guestfs_inspect_list_applications (guestfs_h *g,\n"
27378 "                                    const char *root);\n"
27379 "\n"
27380 msgstr ""
27381
27382 #. type: textblock
27383 #: ../src/guestfs-actions.pod:3419
27384 msgid ""
27385 "I<Note:> This call works differently from other parts of the inspection "
27386 "API.  You have to call C<guestfs_inspect_os>, then "
27387 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
27388 "this.  Listing applications is a significantly more difficult operation "
27389 "which requires access to the full filesystem.  Also note that unlike the "
27390 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
27391 "the libguestfs handle, this call actually reads parts of the mounted "
27392 "filesystems during the call."
27393 msgstr ""
27394
27395 #. type: textblock
27396 #: ../src/guestfs-actions.pod:3509
27397 msgid ""
27398 "This function returns a C<struct guestfs_application_list *>, or NULL if "
27399 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
27400 "after use>."
27401 msgstr ""
27402
27403 #. type: textblock
27404 #: ../src/guestfs-actions.pod:3513
27405 msgid "(Added in 1.7.8)"
27406 msgstr ""
27407
27408 #. type: =head2
27409 #: ../src/guestfs-actions.pod:3515
27410 msgid "guestfs_inspect_os"
27411 msgstr ""
27412
27413 #. type: verbatim
27414 #: ../src/guestfs-actions.pod:3517
27415 #, no-wrap
27416 msgid ""
27417 " char **\n"
27418 " guestfs_inspect_os (guestfs_h *g);\n"
27419 "\n"
27420 msgstr ""
27421
27422 #. type: textblock
27423 #: ../src/guestfs-actions.pod:3533
27424 msgid ""
27425 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
27426 "functions in order to query further information about each operating system, "
27427 "such as the name and version."
27428 msgstr ""
27429
27430 #. type: textblock
27431 #: ../src/guestfs-actions.pod:3538
27432 msgid ""
27433 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
27434 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
27435 "the contents.  This should be called with no disks currently mounted.  The "
27436 "function may also use Augeas, so any existing Augeas handle will be closed."
27437 msgstr ""
27438
27439 #. type: textblock
27440 #: ../src/guestfs-actions.pod:3550 ../src/guestfs-actions.pod:3881
27441 #: ../src/guestfs-actions.pod:3963
27442 msgid "See also C<guestfs_list_filesystems>."
27443 msgstr ""
27444
27445 #. type: =head2
27446 #: ../src/guestfs-actions.pod:3558
27447 msgid "guestfs_is_blockdev"
27448 msgstr ""
27449
27450 #. type: verbatim
27451 #: ../src/guestfs-actions.pod:3560
27452 #, no-wrap
27453 msgid ""
27454 " int\n"
27455 " guestfs_is_blockdev (guestfs_h *g,\n"
27456 "                      const char *path);\n"
27457 "\n"
27458 msgstr ""
27459
27460 #. type: textblock
27461 #: ../src/guestfs-actions.pod:3567 ../src/guestfs-actions.pod:3596
27462 #: ../src/guestfs-actions.pod:3626 ../src/guestfs-actions.pod:3641
27463 #: ../src/guestfs-actions.pod:3657 ../src/guestfs-actions.pod:3713
27464 #: ../src/guestfs-actions.pod:3728
27465 msgid "See also C<guestfs_stat>."
27466 msgstr ""
27467
27468 #. type: textblock
27469 #: ../src/guestfs-actions.pod:3571 ../src/guestfs-actions.pod:3600
27470 #: ../src/guestfs-actions.pod:3645 ../src/guestfs-actions.pod:3717
27471 #: ../src/guestfs-actions.pod:3732
27472 msgid "(Added in 1.5.10)"
27473 msgstr ""
27474
27475 #. type: =head2
27476 #: ../src/guestfs-actions.pod:3573
27477 msgid "guestfs_is_busy"
27478 msgstr ""
27479
27480 #. type: verbatim
27481 #: ../src/guestfs-actions.pod:3575
27482 #, no-wrap
27483 msgid ""
27484 " int\n"
27485 " guestfs_is_busy (guestfs_h *g);\n"
27486 "\n"
27487 msgstr ""
27488
27489 #. type: =head2
27490 #: ../src/guestfs-actions.pod:3587
27491 msgid "guestfs_is_chardev"
27492 msgstr ""
27493
27494 #. type: verbatim
27495 #: ../src/guestfs-actions.pod:3589
27496 #, no-wrap
27497 msgid ""
27498 " int\n"
27499 " guestfs_is_chardev (guestfs_h *g,\n"
27500 "                     const char *path);\n"
27501 "\n"
27502 msgstr ""
27503
27504 #. type: =head2
27505 #: ../src/guestfs-actions.pod:3602
27506 msgid "guestfs_is_config"
27507 msgstr ""
27508
27509 #. type: verbatim
27510 #: ../src/guestfs-actions.pod:3604
27511 #, no-wrap
27512 msgid ""
27513 " int\n"
27514 " guestfs_is_config (guestfs_h *g);\n"
27515 "\n"
27516 msgstr ""
27517
27518 #. type: =head2
27519 #: ../src/guestfs-actions.pod:3616
27520 msgid "guestfs_is_dir"
27521 msgstr ""
27522
27523 #. type: verbatim
27524 #: ../src/guestfs-actions.pod:3618
27525 #, no-wrap
27526 msgid ""
27527 " int\n"
27528 " guestfs_is_dir (guestfs_h *g,\n"
27529 "                 const char *path);\n"
27530 "\n"
27531 msgstr ""
27532
27533 #. type: =head2
27534 #: ../src/guestfs-actions.pod:3632
27535 msgid "guestfs_is_fifo"
27536 msgstr ""
27537
27538 #. type: verbatim
27539 #: ../src/guestfs-actions.pod:3634
27540 #, no-wrap
27541 msgid ""
27542 " int\n"
27543 " guestfs_is_fifo (guestfs_h *g,\n"
27544 "                  const char *path);\n"
27545 "\n"
27546 msgstr ""
27547
27548 #. type: =head2
27549 #: ../src/guestfs-actions.pod:3647
27550 msgid "guestfs_is_file"
27551 msgstr ""
27552
27553 #. type: verbatim
27554 #: ../src/guestfs-actions.pod:3649
27555 #, no-wrap
27556 msgid ""
27557 " int\n"
27558 " guestfs_is_file (guestfs_h *g,\n"
27559 "                  const char *path);\n"
27560 "\n"
27561 msgstr ""
27562
27563 #. type: =head2
27564 #: ../src/guestfs-actions.pod:3663
27565 msgid "guestfs_is_launching"
27566 msgstr ""
27567
27568 #. type: verbatim
27569 #: ../src/guestfs-actions.pod:3665
27570 #, no-wrap
27571 msgid ""
27572 " int\n"
27573 " guestfs_is_launching (guestfs_h *g);\n"
27574 "\n"
27575 msgstr ""
27576
27577 #. type: =head2
27578 #: ../src/guestfs-actions.pod:3677
27579 msgid "guestfs_is_lv"
27580 msgstr ""
27581
27582 #. type: verbatim
27583 #: ../src/guestfs-actions.pod:3679
27584 #, no-wrap
27585 msgid ""
27586 " int\n"
27587 " guestfs_is_lv (guestfs_h *g,\n"
27588 "                const char *device);\n"
27589 "\n"
27590 msgstr ""
27591
27592 #. type: =head2
27593 #: ../src/guestfs-actions.pod:3690
27594 msgid "guestfs_is_ready"
27595 msgstr ""
27596
27597 #. type: verbatim
27598 #: ../src/guestfs-actions.pod:3692
27599 #, no-wrap
27600 msgid ""
27601 " int\n"
27602 " guestfs_is_ready (guestfs_h *g);\n"
27603 "\n"
27604 msgstr ""
27605
27606 #. type: =head2
27607 #: ../src/guestfs-actions.pod:3704
27608 msgid "guestfs_is_socket"
27609 msgstr ""
27610
27611 #. type: verbatim
27612 #: ../src/guestfs-actions.pod:3706
27613 #, no-wrap
27614 msgid ""
27615 " int\n"
27616 " guestfs_is_socket (guestfs_h *g,\n"
27617 "                    const char *path);\n"
27618 "\n"
27619 msgstr ""
27620
27621 #. type: =head2
27622 #: ../src/guestfs-actions.pod:3719
27623 msgid "guestfs_is_symlink"
27624 msgstr ""
27625
27626 #. type: verbatim
27627 #: ../src/guestfs-actions.pod:3721
27628 #, no-wrap
27629 msgid ""
27630 " int\n"
27631 " guestfs_is_symlink (guestfs_h *g,\n"
27632 "                     const char *path);\n"
27633 "\n"
27634 msgstr ""
27635
27636 #. type: =head2
27637 #: ../src/guestfs-actions.pod:3734
27638 msgid "guestfs_is_zero"
27639 msgstr ""
27640
27641 #. type: verbatim
27642 #: ../src/guestfs-actions.pod:3736
27643 #, no-wrap
27644 msgid ""
27645 " int\n"
27646 " guestfs_is_zero (guestfs_h *g,\n"
27647 "                  const char *path);\n"
27648 "\n"
27649 msgstr ""
27650
27651 #. type: textblock
27652 #: ../src/guestfs-actions.pod:3745 ../src/guestfs-actions.pod:3759
27653 msgid "(Added in 1.11.8)"
27654 msgstr ""
27655
27656 #. type: =head2
27657 #: ../src/guestfs-actions.pod:3747
27658 msgid "guestfs_is_zero_device"
27659 msgstr ""
27660
27661 #. type: verbatim
27662 #: ../src/guestfs-actions.pod:3749
27663 #, no-wrap
27664 msgid ""
27665 " int\n"
27666 " guestfs_is_zero_device (guestfs_h *g,\n"
27667 "                         const char *device);\n"
27668 "\n"
27669 msgstr ""
27670
27671 #. type: =head2
27672 #: ../src/guestfs-actions.pod:3761
27673 msgid "guestfs_kill_subprocess"
27674 msgstr ""
27675
27676 #. type: verbatim
27677 #: ../src/guestfs-actions.pod:3763
27678 #, no-wrap
27679 msgid ""
27680 " int\n"
27681 " guestfs_kill_subprocess (guestfs_h *g);\n"
27682 "\n"
27683 msgstr ""
27684
27685 #. type: =head2
27686 #: ../src/guestfs-actions.pod:3772
27687 msgid "guestfs_launch"
27688 msgstr ""
27689
27690 #. type: verbatim
27691 #: ../src/guestfs-actions.pod:3774
27692 #, no-wrap
27693 msgid ""
27694 " int\n"
27695 " guestfs_launch (guestfs_h *g);\n"
27696 "\n"
27697 msgstr ""
27698
27699 #. type: =head2
27700 #: ../src/guestfs-actions.pod:3792
27701 msgid "guestfs_lchown"
27702 msgstr ""
27703
27704 #. type: verbatim
27705 #: ../src/guestfs-actions.pod:3794
27706 #, no-wrap
27707 msgid ""
27708 " int\n"
27709 " guestfs_lchown (guestfs_h *g,\n"
27710 "                 int owner,\n"
27711 "                 int group,\n"
27712 "                 const char *path);\n"
27713 "\n"
27714 msgstr ""
27715
27716 #. type: textblock
27717 #: ../src/guestfs-actions.pod:3800
27718 msgid ""
27719 "Change the file owner to C<owner> and group to C<group>.  This is like "
27720 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27721 "changed, not the target."
27722 msgstr ""
27723
27724 #. type: =head2
27725 #: ../src/guestfs-actions.pod:3812
27726 msgid "guestfs_lgetxattr"
27727 msgstr ""
27728
27729 #. type: verbatim
27730 #: ../src/guestfs-actions.pod:3814
27731 #, no-wrap
27732 msgid ""
27733 " char *\n"
27734 " guestfs_lgetxattr (guestfs_h *g,\n"
27735 "                    const char *path,\n"
27736 "                    const char *name,\n"
27737 "                    size_t *size_r);\n"
27738 "\n"
27739 msgstr ""
27740
27741 #. type: textblock
27742 #: ../src/guestfs-actions.pod:3834
27743 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27744 msgstr ""
27745
27746 #. type: =head2
27747 #: ../src/guestfs-actions.pod:3842
27748 msgid "guestfs_lgetxattrs"
27749 msgstr ""
27750
27751 #. type: verbatim
27752 #: ../src/guestfs-actions.pod:3844
27753 #, no-wrap
27754 msgid ""
27755 " struct guestfs_xattr_list *\n"
27756 " guestfs_lgetxattrs (guestfs_h *g,\n"
27757 "                     const char *path);\n"
27758 "\n"
27759 msgstr ""
27760
27761 #. type: textblock
27762 #: ../src/guestfs-actions.pod:3848
27763 msgid ""
27764 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
27765 "then it returns the extended attributes of the link itself."
27766 msgstr ""
27767
27768 #. type: =head2
27769 #: ../src/guestfs-actions.pod:3858
27770 msgid "guestfs_list_9p"
27771 msgstr ""
27772
27773 #. type: verbatim
27774 #: ../src/guestfs-actions.pod:3860
27775 #, no-wrap
27776 msgid ""
27777 " char **\n"
27778 " guestfs_list_9p (guestfs_h *g);\n"
27779 "\n"
27780 msgstr ""
27781
27782 #. type: =head2
27783 #: ../src/guestfs-actions.pod:3872
27784 msgid "guestfs_list_devices"
27785 msgstr ""
27786
27787 #. type: verbatim
27788 #: ../src/guestfs-actions.pod:3874
27789 #, no-wrap
27790 msgid ""
27791 " char **\n"
27792 " guestfs_list_devices (guestfs_h *g);\n"
27793 "\n"
27794 msgstr ""
27795
27796 #. type: =head2
27797 #: ../src/guestfs-actions.pod:3889
27798 msgid "guestfs_list_dm_devices"
27799 msgstr ""
27800
27801 #. type: verbatim
27802 #: ../src/guestfs-actions.pod:3891
27803 #, no-wrap
27804 msgid ""
27805 " char **\n"
27806 " guestfs_list_dm_devices (guestfs_h *g);\n"
27807 "\n"
27808 msgstr ""
27809
27810 #. type: textblock
27811 #: ../src/guestfs-actions.pod:3896
27812 msgid ""
27813 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27814 "previous call to C<guestfs_luks_open>."
27815 msgstr ""
27816
27817 #. type: textblock
27818 #: ../src/guestfs-actions.pod:3899
27819 msgid ""
27820 "Device mapper devices which correspond to logical volumes are I<not> "
27821 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
27822 "volumes."
27823 msgstr ""
27824
27825 #. type: textblock
27826 #: ../src/guestfs-actions.pod:3907 ../src/guestfs-actions.pod:5353
27827 msgid "(Added in 1.11.15)"
27828 msgstr ""
27829
27830 #. type: =head2
27831 #: ../src/guestfs-actions.pod:3909
27832 msgid "guestfs_list_filesystems"
27833 msgstr ""
27834
27835 #. type: verbatim
27836 #: ../src/guestfs-actions.pod:3911
27837 #, no-wrap
27838 msgid ""
27839 " char **\n"
27840 " guestfs_list_filesystems (guestfs_h *g);\n"
27841 "\n"
27842 msgstr ""
27843
27844 #. type: textblock
27845 #: ../src/guestfs-actions.pod:3931
27846 msgid ""
27847 "This command runs other libguestfs commands, which might include "
27848 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27849 "soon after launch and only when nothing is mounted."
27850 msgstr ""
27851
27852 #. type: textblock
27853 #: ../src/guestfs-actions.pod:3935
27854 msgid ""
27855 "Not all of the filesystems returned will be mountable.  In particular, swap "
27856 "partitions are returned in the list.  Also this command does not check that "
27857 "each filesystem found is valid and mountable, and some filesystems might be "
27858 "mountable but require special options.  Filesystems may not all belong to a "
27859 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
27860 msgstr ""
27861
27862 #. type: textblock
27863 #: ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5714
27864 msgid "(Added in 1.5.15)"
27865 msgstr ""
27866
27867 #. type: =head2
27868 #: ../src/guestfs-actions.pod:3951
27869 msgid "guestfs_list_partitions"
27870 msgstr "guestfs_list_partitions"
27871
27872 #. type: verbatim
27873 #: ../src/guestfs-actions.pod:3953
27874 #, no-wrap
27875 msgid ""
27876 " char **\n"
27877 " guestfs_list_partitions (guestfs_h *g);\n"
27878 "\n"
27879 msgstr ""
27880 " char **\n"
27881 " guestfs_list_partitions (guestfs_h *g);\n"
27882 "\n"
27883
27884 #. type: textblock
27885 #: ../src/guestfs-actions.pod:3960
27886 msgid ""
27887 "This does not return logical volumes.  For that you will need to call "
27888 "C<guestfs_lvs>."
27889 msgstr ""
27890
27891 #. type: =head2
27892 #: ../src/guestfs-actions.pod:3971
27893 msgid "guestfs_ll"
27894 msgstr "guestfs_ll"
27895
27896 #. type: verbatim
27897 #: ../src/guestfs-actions.pod:3973
27898 #, no-wrap
27899 msgid ""
27900 " char *\n"
27901 " guestfs_ll (guestfs_h *g,\n"
27902 "             const char *directory);\n"
27903 "\n"
27904 msgstr ""
27905 " char *\n"
27906 " guestfs_ll (guestfs_h *g,\n"
27907 "             const char *directory);\n"
27908 "\n"
27909
27910 #. type: =head2
27911 #: ../src/guestfs-actions.pod:3988
27912 msgid "guestfs_ln"
27913 msgstr "guestfs_ln"
27914
27915 #. type: verbatim
27916 #: ../src/guestfs-actions.pod:3990
27917 #, no-wrap
27918 msgid ""
27919 " int\n"
27920 " guestfs_ln (guestfs_h *g,\n"
27921 "             const char *target,\n"
27922 "             const char *linkname);\n"
27923 "\n"
27924 msgstr ""
27925 " int\n"
27926 " guestfs_ln (guestfs_h *g,\n"
27927 "             const char *target,\n"
27928 "             const char *linkname);\n"
27929 "\n"
27930
27931 #. type: =head2
27932 #: ../src/guestfs-actions.pod:4001
27933 msgid "guestfs_ln_f"
27934 msgstr "guestfs_ln_f"
27935
27936 #. type: verbatim
27937 #: ../src/guestfs-actions.pod:4003
27938 #, no-wrap
27939 msgid ""
27940 " int\n"
27941 " guestfs_ln_f (guestfs_h *g,\n"
27942 "               const char *target,\n"
27943 "               const char *linkname);\n"
27944 "\n"
27945 msgstr ""
27946 " int\n"
27947 " guestfs_ln_f (guestfs_h *g,\n"
27948 "               const char *target,\n"
27949 "               const char *linkname);\n"
27950 "\n"
27951
27952 #. type: =head2
27953 #: ../src/guestfs-actions.pod:4015
27954 msgid "guestfs_ln_s"
27955 msgstr "guestfs_ln_s"
27956
27957 #. type: verbatim
27958 #: ../src/guestfs-actions.pod:4017
27959 #, no-wrap
27960 msgid ""
27961 " int\n"
27962 " guestfs_ln_s (guestfs_h *g,\n"
27963 "               const char *target,\n"
27964 "               const char *linkname);\n"
27965 "\n"
27966 msgstr ""
27967 " int\n"
27968 " guestfs_ln_s (guestfs_h *g,\n"
27969 "               const char *target,\n"
27970 "               const char *linkname);\n"
27971 "\n"
27972
27973 #. type: =head2
27974 #: ../src/guestfs-actions.pod:4028
27975 msgid "guestfs_ln_sf"
27976 msgstr "guestfs_ln_sf"
27977
27978 #. type: verbatim
27979 #: ../src/guestfs-actions.pod:4030
27980 #, no-wrap
27981 msgid ""
27982 " int\n"
27983 " guestfs_ln_sf (guestfs_h *g,\n"
27984 "                const char *target,\n"
27985 "                const char *linkname);\n"
27986 "\n"
27987 msgstr ""
27988 " int\n"
27989 " guestfs_ln_sf (guestfs_h *g,\n"
27990 "                const char *target,\n"
27991 "                const char *linkname);\n"
27992 "\n"
27993
27994 #. type: =head2
27995 #: ../src/guestfs-actions.pod:4042
27996 msgid "guestfs_lremovexattr"
27997 msgstr "guestfs_lremovexattr"
27998
27999 #. type: verbatim
28000 #: ../src/guestfs-actions.pod:4044
28001 #, no-wrap
28002 msgid ""
28003 " int\n"
28004 " guestfs_lremovexattr (guestfs_h *g,\n"
28005 "                       const char *xattr,\n"
28006 "                       const char *path);\n"
28007 "\n"
28008 msgstr ""
28009 " int\n"
28010 " guestfs_lremovexattr (guestfs_h *g,\n"
28011 "                       const char *xattr,\n"
28012 "                       const char *path);\n"
28013 "\n"
28014
28015 #. type: textblock
28016 #: ../src/guestfs-actions.pod:4049
28017 msgid ""
28018 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
28019 "link, then it removes an extended attribute of the link itself."
28020 msgstr ""
28021
28022 #. type: =head2
28023 #: ../src/guestfs-actions.pod:4057
28024 msgid "guestfs_ls"
28025 msgstr "guestfs_ls"
28026
28027 #. type: verbatim
28028 #: ../src/guestfs-actions.pod:4059
28029 #, no-wrap
28030 msgid ""
28031 " char **\n"
28032 " guestfs_ls (guestfs_h *g,\n"
28033 "             const char *directory);\n"
28034 "\n"
28035 msgstr ""
28036 " char **\n"
28037 " guestfs_ls (guestfs_h *g,\n"
28038 "             const char *directory);\n"
28039 "\n"
28040
28041 #. type: textblock
28042 #: ../src/guestfs-actions.pod:4067
28043 msgid ""
28044 "This command is mostly useful for interactive sessions.  Programs should "
28045 "probably use C<guestfs_readdir> instead."
28046 msgstr ""
28047
28048 #. type: =head2
28049 #: ../src/guestfs-actions.pod:4076
28050 msgid "guestfs_lsetxattr"
28051 msgstr "guestfs_lsetxattr"
28052
28053 #. type: verbatim
28054 #: ../src/guestfs-actions.pod:4078
28055 #, no-wrap
28056 msgid ""
28057 " int\n"
28058 " guestfs_lsetxattr (guestfs_h *g,\n"
28059 "                    const char *xattr,\n"
28060 "                    const char *val,\n"
28061 "                    int vallen,\n"
28062 "                    const char *path);\n"
28063 "\n"
28064 msgstr ""
28065 " int\n"
28066 " guestfs_lsetxattr (guestfs_h *g,\n"
28067 "                    const char *xattr,\n"
28068 "                    const char *val,\n"
28069 "                    int vallen,\n"
28070 "                    const char *path);\n"
28071 "\n"
28072
28073 #. type: textblock
28074 #: ../src/guestfs-actions.pod:4085
28075 msgid ""
28076 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
28077 "then it sets an extended attribute of the link itself."
28078 msgstr ""
28079
28080 #. type: =head2
28081 #: ../src/guestfs-actions.pod:4093
28082 msgid "guestfs_lstat"
28083 msgstr "guestfs_lstat"
28084
28085 #. type: verbatim
28086 #: ../src/guestfs-actions.pod:4095
28087 #, no-wrap
28088 msgid ""
28089 " struct guestfs_stat *\n"
28090 " guestfs_lstat (guestfs_h *g,\n"
28091 "                const char *path);\n"
28092 "\n"
28093 msgstr ""
28094 " struct guestfs_stat *\n"
28095 " guestfs_lstat (guestfs_h *g,\n"
28096 "                const char *path);\n"
28097 "\n"
28098
28099 #. type: textblock
28100 #: ../src/guestfs-actions.pod:4101
28101 msgid ""
28102 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
28103 "link, then the link is stat-ed, not the file it refers to."
28104 msgstr ""
28105
28106 #. type: textblock
28107 #: ../src/guestfs-actions.pod:4107 ../src/guestfs-actions.pod:6886
28108 msgid ""
28109 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
28110 "error.  I<The caller must call C<guestfs_free_stat> after use>."
28111 msgstr ""
28112
28113 #. type: textblock
28114 #: ../src/guestfs-actions.pod:4111 ../src/guestfs-actions.pod:6890
28115 #: ../src/guestfs-actions.pod:6908 ../src/guestfs-actions.pod:7289
28116 msgid "(Added in 0.9.2)"
28117 msgstr "(Додано у 0.9.2)"
28118
28119 #. type: =head2
28120 #: ../src/guestfs-actions.pod:4113
28121 msgid "guestfs_lstatlist"
28122 msgstr "guestfs_lstatlist"
28123
28124 #. type: verbatim
28125 #: ../src/guestfs-actions.pod:4115
28126 #, no-wrap
28127 msgid ""
28128 " struct guestfs_stat_list *\n"
28129 " guestfs_lstatlist (guestfs_h *g,\n"
28130 "                    const char *path,\n"
28131 "                    char *const *names);\n"
28132 "\n"
28133 msgstr ""
28134 " struct guestfs_stat_list *\n"
28135 " guestfs_lstatlist (guestfs_h *g,\n"
28136 "                    const char *path,\n"
28137 "                    char *const *names);\n"
28138 "\n"
28139
28140 #. type: textblock
28141 #: ../src/guestfs-actions.pod:4120
28142 msgid ""
28143 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
28144 "files, where all files are in the directory C<path>.  C<names> is the list "
28145 "of files from this directory."
28146 msgstr ""
28147
28148 #. type: textblock
28149 #: ../src/guestfs-actions.pod:4129
28150 msgid ""
28151 "This call is intended for programs that want to efficiently list a directory "
28152 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
28153 "for a similarly efficient call for getting extended attributes.  Very long "
28154 "directory listings might cause the protocol message size to be exceeded, "
28155 "causing this call to fail.  The caller must split up such requests into "
28156 "smaller groups of names."
28157 msgstr ""
28158
28159 #. type: textblock
28160 #: ../src/guestfs-actions.pod:4137
28161 msgid ""
28162 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
28163 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
28164 msgstr ""
28165
28166 #. type: =head2
28167 #: ../src/guestfs-actions.pod:4143
28168 msgid "guestfs_luks_add_key"
28169 msgstr "guestfs_luks_add_key"
28170
28171 #. type: verbatim
28172 #: ../src/guestfs-actions.pod:4145
28173 #, no-wrap
28174 msgid ""
28175 " int\n"
28176 " guestfs_luks_add_key (guestfs_h *g,\n"
28177 "                       const char *device,\n"
28178 "                       const char *key,\n"
28179 "                       const char *newkey,\n"
28180 "                       int keyslot);\n"
28181 "\n"
28182 msgstr ""
28183 " int\n"
28184 " guestfs_luks_add_key (guestfs_h *g,\n"
28185 "                       const char *device,\n"
28186 "                       const char *key,\n"
28187 "                       const char *newkey,\n"
28188 "                       int keyslot);\n"
28189 "\n"
28190
28191 #. type: textblock
28192 #: ../src/guestfs-actions.pod:4157
28193 msgid ""
28194 "Note that if C<keyslot> already contains a key, then this command will "
28195 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
28196 msgstr ""
28197
28198 #. type: textblock
28199 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4203
28200 #: ../src/guestfs-actions.pod:4226 ../src/guestfs-actions.pod:4246
28201 #: ../src/guestfs-actions.pod:4281 ../src/guestfs-actions.pod:4300
28202 msgid ""
28203 "This function takes a key or passphrase parameter which could contain "
28204 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
28205 "information."
28206 msgstr ""
28207
28208 #. type: textblock
28209 #: ../src/guestfs-actions.pod:4167 ../src/guestfs-actions.pod:4207
28210 #: ../src/guestfs-actions.pod:4230 ../src/guestfs-actions.pod:4250
28211 msgid "(Added in 1.5.2)"
28212 msgstr "(Додано у 1.5.2)"
28213
28214 #. type: =head2
28215 #: ../src/guestfs-actions.pod:4169
28216 msgid "guestfs_luks_close"
28217 msgstr "guestfs_luks_close"
28218
28219 #. type: verbatim
28220 #: ../src/guestfs-actions.pod:4171
28221 #, no-wrap
28222 msgid ""
28223 " int\n"
28224 " guestfs_luks_close (guestfs_h *g,\n"
28225 "                     const char *device);\n"
28226 "\n"
28227 msgstr ""
28228 " int\n"
28229 " guestfs_luks_close (guestfs_h *g,\n"
28230 "                     const char *device);\n"
28231 "\n"
28232
28233 #. type: textblock
28234 #: ../src/guestfs-actions.pod:4175
28235 msgid ""
28236 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
28237 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
28238 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
28239 "underlying block device."
28240 msgstr ""
28241
28242 #. type: textblock
28243 #: ../src/guestfs-actions.pod:4183 ../src/guestfs-actions.pod:4285
28244 #: ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4354
28245 #: ../src/guestfs-actions.pod:4402
28246 msgid "(Added in 1.5.1)"
28247 msgstr "(Додано у 1.5.1)"
28248
28249 #. type: =head2
28250 #: ../src/guestfs-actions.pod:4185
28251 msgid "guestfs_luks_format"
28252 msgstr "guestfs_luks_format"
28253
28254 #. type: verbatim
28255 #: ../src/guestfs-actions.pod:4187
28256 #, no-wrap
28257 msgid ""
28258 " int\n"
28259 " guestfs_luks_format (guestfs_h *g,\n"
28260 "                      const char *device,\n"
28261 "                      const char *key,\n"
28262 "                      int keyslot);\n"
28263 "\n"
28264 msgstr ""
28265 " int\n"
28266 " guestfs_luks_format (guestfs_h *g,\n"
28267 "                      const char *device,\n"
28268 "                      const char *key,\n"
28269 "                      int keyslot);\n"
28270 "\n"
28271
28272 #. type: =head2
28273 #: ../src/guestfs-actions.pod:4209
28274 msgid "guestfs_luks_format_cipher"
28275 msgstr "guestfs_luks_format_cipher"
28276
28277 #. type: verbatim
28278 #: ../src/guestfs-actions.pod:4211
28279 #, no-wrap
28280 msgid ""
28281 " int\n"
28282 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28283 "                             const char *device,\n"
28284 "                             const char *key,\n"
28285 "                             int keyslot,\n"
28286 "                             const char *cipher);\n"
28287 "\n"
28288 msgstr ""
28289 " int\n"
28290 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28291 "                             const char *device,\n"
28292 "                             const char *key,\n"
28293 "                             int keyslot,\n"
28294 "                             const char *cipher);\n"
28295 "\n"
28296
28297 #. type: textblock
28298 #: ../src/guestfs-actions.pod:4218
28299 msgid ""
28300 "This command is the same as C<guestfs_luks_format> but it also allows you to "
28301 "set the C<cipher> used."
28302 msgstr ""
28303
28304 #. type: =head2
28305 #: ../src/guestfs-actions.pod:4232
28306 msgid "guestfs_luks_kill_slot"
28307 msgstr "guestfs_luks_kill_slot"
28308
28309 #. type: verbatim
28310 #: ../src/guestfs-actions.pod:4234
28311 #, no-wrap
28312 msgid ""
28313 " int\n"
28314 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28315 "                         const char *device,\n"
28316 "                         const char *key,\n"
28317 "                         int keyslot);\n"
28318 "\n"
28319 msgstr ""
28320 " int\n"
28321 " guestfs_luks_kill_slot (guestfs_h *g,\n"
28322 "                         const char *device,\n"
28323 "                         const char *key,\n"
28324 "                         int keyslot);\n"
28325 "\n"
28326
28327 #. type: =head2
28328 #: ../src/guestfs-actions.pod:4252
28329 msgid "guestfs_luks_open"
28330 msgstr "guestfs_luks_open"
28331
28332 #. type: verbatim
28333 #: ../src/guestfs-actions.pod:4254
28334 #, no-wrap
28335 msgid ""
28336 " int\n"
28337 " guestfs_luks_open (guestfs_h *g,\n"
28338 "                    const char *device,\n"
28339 "                    const char *key,\n"
28340 "                    const char *mapname);\n"
28341 "\n"
28342 msgstr ""
28343 " int\n"
28344 " guestfs_luks_open (guestfs_h *g,\n"
28345 "                    const char *device,\n"
28346 "                    const char *key,\n"
28347 "                    const char *mapname);\n"
28348 "\n"
28349
28350 #. type: textblock
28351 #: ../src/guestfs-actions.pod:4272
28352 msgid ""
28353 "If this block device contains LVM volume groups, then calling "
28354 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
28355 "visible."
28356 msgstr ""
28357
28358 #. type: textblock
28359 #: ../src/guestfs-actions.pod:4276
28360 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
28361 msgstr ""
28362
28363 #. type: =head2
28364 #: ../src/guestfs-actions.pod:4287
28365 msgid "guestfs_luks_open_ro"
28366 msgstr "guestfs_luks_open_ro"
28367
28368 #. type: verbatim
28369 #: ../src/guestfs-actions.pod:4289
28370 #, no-wrap
28371 msgid ""
28372 " int\n"
28373 " guestfs_luks_open_ro (guestfs_h *g,\n"
28374 "                       const char *device,\n"
28375 "                       const char *key,\n"
28376 "                       const char *mapname);\n"
28377 "\n"
28378 msgstr ""
28379 " int\n"
28380 " guestfs_luks_open_ro (guestfs_h *g,\n"
28381 "                       const char *device,\n"
28382 "                       const char *key,\n"
28383 "                       const char *mapname);\n"
28384 "\n"
28385
28386 #. type: textblock
28387 #: ../src/guestfs-actions.pod:4295
28388 msgid ""
28389 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
28390 "created."
28391 msgstr ""
28392
28393 #. type: =head2
28394 #: ../src/guestfs-actions.pod:4306
28395 msgid "guestfs_lvcreate"
28396 msgstr "guestfs_lvcreate"
28397
28398 #. type: verbatim
28399 #: ../src/guestfs-actions.pod:4308
28400 #, no-wrap
28401 msgid ""
28402 " int\n"
28403 " guestfs_lvcreate (guestfs_h *g,\n"
28404 "                   const char *logvol,\n"
28405 "                   const char *volgroup,\n"
28406 "                   int mbytes);\n"
28407 "\n"
28408 msgstr ""
28409 " int\n"
28410 " guestfs_lvcreate (guestfs_h *g,\n"
28411 "                   const char *logvol,\n"
28412 "                   const char *volgroup,\n"
28413 "                   int mbytes);\n"
28414 "\n"
28415
28416 #. type: =head2
28417 #: ../src/guestfs-actions.pod:4321
28418 msgid "guestfs_lvm_canonical_lv_name"
28419 msgstr "guestfs_lvm_canonical_lv_name"
28420
28421 #. type: verbatim
28422 #: ../src/guestfs-actions.pod:4323
28423 #, no-wrap
28424 msgid ""
28425 " char *\n"
28426 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28427 "                                const char *lvname);\n"
28428 "\n"
28429 msgstr ""
28430 " char *\n"
28431 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28432 "                                const char *lvname);\n"
28433 "\n"
28434
28435 #. type: textblock
28436 #: ../src/guestfs-actions.pod:4334
28437 msgid "See also C<guestfs_is_lv>."
28438 msgstr ""
28439
28440 #. type: textblock
28441 #: ../src/guestfs-actions.pod:4339
28442 msgid "(Added in 1.5.24)"
28443 msgstr "(Додано у 1.5.24)"
28444
28445 #. type: =head2
28446 #: ../src/guestfs-actions.pod:4341
28447 msgid "guestfs_lvm_clear_filter"
28448 msgstr "guestfs_lvm_clear_filter"
28449
28450 #. type: verbatim
28451 #: ../src/guestfs-actions.pod:4343
28452 #, no-wrap
28453 msgid ""
28454 " int\n"
28455 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28456 "\n"
28457 msgstr ""
28458 " int\n"
28459 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28460 "\n"
28461
28462 #. type: textblock
28463 #: ../src/guestfs-actions.pod:4346
28464 msgid ""
28465 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
28466 "see every block device."
28467 msgstr ""
28468
28469 #. type: =head2
28470 #: ../src/guestfs-actions.pod:4356
28471 msgid "guestfs_lvm_remove_all"
28472 msgstr "guestfs_lvm_remove_all"
28473
28474 #. type: verbatim
28475 #: ../src/guestfs-actions.pod:4358
28476 #, no-wrap
28477 msgid ""
28478 " int\n"
28479 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28480 "\n"
28481 msgstr ""
28482 " int\n"
28483 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28484 "\n"
28485
28486 #. type: =head2
28487 #: ../src/guestfs-actions.pod:4371
28488 msgid "guestfs_lvm_set_filter"
28489 msgstr "guestfs_lvm_set_filter"
28490
28491 #. type: verbatim
28492 #: ../src/guestfs-actions.pod:4373
28493 #, no-wrap
28494 msgid ""
28495 " int\n"
28496 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28497 "                         char *const *devices);\n"
28498 "\n"
28499 msgstr ""
28500 " int\n"
28501 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28502 "                         char *const *devices);\n"
28503 "\n"
28504
28505 #. type: =head2
28506 #: ../src/guestfs-actions.pod:4404
28507 msgid "guestfs_lvremove"
28508 msgstr "guestfs_lvremove"
28509
28510 #. type: verbatim
28511 #: ../src/guestfs-actions.pod:4406
28512 #, no-wrap
28513 msgid ""
28514 " int\n"
28515 " guestfs_lvremove (guestfs_h *g,\n"
28516 "                   const char *device);\n"
28517 "\n"
28518 msgstr ""
28519 " int\n"
28520 " guestfs_lvremove (guestfs_h *g,\n"
28521 "                   const char *device);\n"
28522 "\n"
28523
28524 #. type: textblock
28525 #: ../src/guestfs-actions.pod:4418 ../src/guestfs-actions.pod:5811
28526 #: ../src/guestfs-actions.pod:7659
28527 msgid "(Added in 1.0.13)"
28528 msgstr "(Додано у 1.0.13)"
28529
28530 #. type: =head2
28531 #: ../src/guestfs-actions.pod:4420
28532 msgid "guestfs_lvrename"
28533 msgstr "guestfs_lvrename"
28534
28535 #. type: verbatim
28536 #: ../src/guestfs-actions.pod:4422
28537 #, no-wrap
28538 msgid ""
28539 " int\n"
28540 " guestfs_lvrename (guestfs_h *g,\n"
28541 "                   const char *logvol,\n"
28542 "                   const char *newlogvol);\n"
28543 "\n"
28544 msgstr ""
28545 " int\n"
28546 " guestfs_lvrename (guestfs_h *g,\n"
28547 "                   const char *logvol,\n"
28548 "                   const char *newlogvol);\n"
28549 "\n"
28550
28551 #. type: textblock
28552 #: ../src/guestfs-actions.pod:4431 ../src/guestfs-actions.pod:7672
28553 msgid "(Added in 1.0.83)"
28554 msgstr "(Додано у 1.0.83)"
28555
28556 #. type: =head2
28557 #: ../src/guestfs-actions.pod:4433
28558 msgid "guestfs_lvresize"
28559 msgstr "guestfs_lvresize"
28560
28561 #. type: verbatim
28562 #: ../src/guestfs-actions.pod:4435
28563 #, no-wrap
28564 msgid ""
28565 " int\n"
28566 " guestfs_lvresize (guestfs_h *g,\n"
28567 "                   const char *device,\n"
28568 "                   int mbytes);\n"
28569 "\n"
28570 msgstr ""
28571 " int\n"
28572 " guestfs_lvresize (guestfs_h *g,\n"
28573 "                   const char *device,\n"
28574 "                   int mbytes);\n"
28575 "\n"
28576
28577 #. type: =head2
28578 #: ../src/guestfs-actions.pod:4448
28579 msgid "guestfs_lvresize_free"
28580 msgstr "guestfs_lvresize_free"
28581
28582 #. type: verbatim
28583 #: ../src/guestfs-actions.pod:4450
28584 #, no-wrap
28585 msgid ""
28586 " int\n"
28587 " guestfs_lvresize_free (guestfs_h *g,\n"
28588 "                        const char *lv,\n"
28589 "                        int percent);\n"
28590 "\n"
28591 msgstr ""
28592 " int\n"
28593 " guestfs_lvresize_free (guestfs_h *g,\n"
28594 "                        const char *lv,\n"
28595 "                        int percent);\n"
28596 "\n"
28597
28598 #. type: textblock
28599 #: ../src/guestfs-actions.pod:4463
28600 msgid "(Added in 1.3.3)"
28601 msgstr "(Додано у 1.3.3)"
28602
28603 #. type: =head2
28604 #: ../src/guestfs-actions.pod:4465
28605 msgid "guestfs_lvs"
28606 msgstr "guestfs_lvs"
28607
28608 #. type: verbatim
28609 #: ../src/guestfs-actions.pod:4467
28610 #, no-wrap
28611 msgid ""
28612 " char **\n"
28613 " guestfs_lvs (guestfs_h *g);\n"
28614 "\n"
28615 msgstr ""
28616 " char **\n"
28617 " guestfs_lvs (guestfs_h *g);\n"
28618 "\n"
28619
28620 #. type: textblock
28621 #: ../src/guestfs-actions.pod:4476
28622 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
28623 msgstr ""
28624
28625 #. type: =head2
28626 #: ../src/guestfs-actions.pod:4484
28627 msgid "guestfs_lvs_full"
28628 msgstr "guestfs_lvs_full"
28629
28630 #. type: verbatim
28631 #: ../src/guestfs-actions.pod:4486
28632 #, no-wrap
28633 msgid ""
28634 " struct guestfs_lvm_lv_list *\n"
28635 " guestfs_lvs_full (guestfs_h *g);\n"
28636 "\n"
28637 msgstr ""
28638 " struct guestfs_lvm_lv_list *\n"
28639 " guestfs_lvs_full (guestfs_h *g);\n"
28640 "\n"
28641
28642 #. type: textblock
28643 #: ../src/guestfs-actions.pod:4492
28644 msgid ""
28645 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
28646 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
28647 msgstr ""
28648
28649 #. type: =head2
28650 #: ../src/guestfs-actions.pod:4498
28651 msgid "guestfs_lvuuid"
28652 msgstr "guestfs_lvuuid"
28653
28654 #. type: verbatim
28655 #: ../src/guestfs-actions.pod:4500
28656 #, no-wrap
28657 msgid ""
28658 " char *\n"
28659 " guestfs_lvuuid (guestfs_h *g,\n"
28660 "                 const char *device);\n"
28661 "\n"
28662 msgstr ""
28663 " char *\n"
28664 " guestfs_lvuuid (guestfs_h *g,\n"
28665 "                 const char *device);\n"
28666 "\n"
28667
28668 #. type: =head2
28669 #: ../src/guestfs-actions.pod:4511
28670 msgid "guestfs_lxattrlist"
28671 msgstr "guestfs_lxattrlist"
28672
28673 #. type: verbatim
28674 #: ../src/guestfs-actions.pod:4513
28675 #, no-wrap
28676 msgid ""
28677 " struct guestfs_xattr_list *\n"
28678 " guestfs_lxattrlist (guestfs_h *g,\n"
28679 "                     const char *path,\n"
28680 "                     char *const *names);\n"
28681 "\n"
28682 msgstr ""
28683 " struct guestfs_xattr_list *\n"
28684 " guestfs_lxattrlist (guestfs_h *g,\n"
28685 "                     const char *path,\n"
28686 "                     char *const *names);\n"
28687 "\n"
28688
28689 #. type: textblock
28690 #: ../src/guestfs-actions.pod:4532
28691 msgid ""
28692 "This call is intended for programs that want to efficiently list a directory "
28693 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
28694 "a similarly efficient call for getting standard stats.  Very long directory "
28695 "listings might cause the protocol message size to be exceeded, causing this "
28696 "call to fail.  The caller must split up such requests into smaller groups of "
28697 "names."
28698 msgstr ""
28699
28700 #. type: =head2
28701 #: ../src/guestfs-actions.pod:4546
28702 msgid "guestfs_mkdir"
28703 msgstr "guestfs_mkdir"
28704
28705 #. type: verbatim
28706 #: ../src/guestfs-actions.pod:4548
28707 #, no-wrap
28708 msgid ""
28709 " int\n"
28710 " guestfs_mkdir (guestfs_h *g,\n"
28711 "                const char *path);\n"
28712 "\n"
28713 msgstr ""
28714 " int\n"
28715 " guestfs_mkdir (guestfs_h *g,\n"
28716 "                const char *path);\n"
28717 "\n"
28718
28719 #. type: =head2
28720 #: ../src/guestfs-actions.pod:4558
28721 msgid "guestfs_mkdir_mode"
28722 msgstr "guestfs_mkdir_mode"
28723
28724 #. type: verbatim
28725 #: ../src/guestfs-actions.pod:4560
28726 #, no-wrap
28727 msgid ""
28728 " int\n"
28729 " guestfs_mkdir_mode (guestfs_h *g,\n"
28730 "                     const char *path,\n"
28731 "                     int mode);\n"
28732 "\n"
28733 msgstr ""
28734 " int\n"
28735 " guestfs_mkdir_mode (guestfs_h *g,\n"
28736 "                     const char *path,\n"
28737 "                     int mode);\n"
28738 "\n"
28739
28740 #. type: textblock
28741 #: ../src/guestfs-actions.pod:4572
28742 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
28743 msgstr ""
28744
28745 #. type: =head2
28746 #: ../src/guestfs-actions.pod:4578
28747 msgid "guestfs_mkdir_p"
28748 msgstr "guestfs_mkdir_p"
28749
28750 #. type: verbatim
28751 #: ../src/guestfs-actions.pod:4580
28752 #, no-wrap
28753 msgid ""
28754 " int\n"
28755 " guestfs_mkdir_p (guestfs_h *g,\n"
28756 "                  const char *path);\n"
28757 "\n"
28758 msgstr ""
28759 " int\n"
28760 " guestfs_mkdir_p (guestfs_h *g,\n"
28761 "                  const char *path);\n"
28762 "\n"
28763
28764 #. type: =head2
28765 #: ../src/guestfs-actions.pod:4591
28766 msgid "guestfs_mkdtemp"
28767 msgstr "guestfs_mkdtemp"
28768
28769 #. type: verbatim
28770 #: ../src/guestfs-actions.pod:4593
28771 #, no-wrap
28772 msgid ""
28773 " char *\n"
28774 " guestfs_mkdtemp (guestfs_h *g,\n"
28775 "                  const char *template);\n"
28776 "\n"
28777 msgstr ""
28778 " char *\n"
28779 " guestfs_mkdtemp (guestfs_h *g,\n"
28780 "                  const char *template);\n"
28781 "\n"
28782
28783 #. type: =head2
28784 #: ../src/guestfs-actions.pod:4621
28785 msgid "guestfs_mke2fs_J"
28786 msgstr "guestfs_mke2fs_J"
28787
28788 #. type: verbatim
28789 #: ../src/guestfs-actions.pod:4623
28790 #, no-wrap
28791 msgid ""
28792 " int\n"
28793 " guestfs_mke2fs_J (guestfs_h *g,\n"
28794 "                   const char *fstype,\n"
28795 "                   int blocksize,\n"
28796 "                   const char *device,\n"
28797 "                   const char *journal);\n"
28798 "\n"
28799 msgstr ""
28800 " int\n"
28801 " guestfs_mke2fs_J (guestfs_h *g,\n"
28802 "                   const char *fstype,\n"
28803 "                   int blocksize,\n"
28804 "                   const char *device,\n"
28805 "                   const char *journal);\n"
28806 "\n"
28807
28808 #. type: textblock
28809 #: ../src/guestfs-actions.pod:4636
28810 msgid "See also C<guestfs_mke2journal>."
28811 msgstr ""
28812
28813 #. type: textblock
28814 #: ../src/guestfs-actions.pod:4640 ../src/guestfs-actions.pod:4658
28815 #: ../src/guestfs-actions.pod:4676 ../src/guestfs-actions.pod:4692
28816 #: ../src/guestfs-actions.pod:4706 ../src/guestfs-actions.pod:4720
28817 #: ../src/guestfs-actions.pod:4779 ../src/guestfs-actions.pod:5056
28818 msgid "(Added in 1.0.68)"
28819 msgstr "(Додано у 1.0.68)"
28820
28821 #. type: =head2
28822 #: ../src/guestfs-actions.pod:4642
28823 msgid "guestfs_mke2fs_JL"
28824 msgstr "guestfs_mke2fs_JL"
28825
28826 #. type: verbatim
28827 #: ../src/guestfs-actions.pod:4644
28828 #, no-wrap
28829 msgid ""
28830 " int\n"
28831 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28832 "                    const char *fstype,\n"
28833 "                    int blocksize,\n"
28834 "                    const char *device,\n"
28835 "                    const char *label);\n"
28836 "\n"
28837 msgstr ""
28838 " int\n"
28839 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28840 "                    const char *fstype,\n"
28841 "                    int blocksize,\n"
28842 "                    const char *device,\n"
28843 "                    const char *label);\n"
28844 "\n"
28845
28846 #. type: textblock
28847 #: ../src/guestfs-actions.pod:4654
28848 msgid "See also C<guestfs_mke2journal_L>."
28849 msgstr ""
28850
28851 #. type: =head2
28852 #: ../src/guestfs-actions.pod:4660
28853 msgid "guestfs_mke2fs_JU"
28854 msgstr "guestfs_mke2fs_JU"
28855
28856 #. type: verbatim
28857 #: ../src/guestfs-actions.pod:4662
28858 #, no-wrap
28859 msgid ""
28860 " int\n"
28861 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28862 "                    const char *fstype,\n"
28863 "                    int blocksize,\n"
28864 "                    const char *device,\n"
28865 "                    const char *uuid);\n"
28866 "\n"
28867 msgstr ""
28868 " int\n"
28869 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28870 "                    const char *fstype,\n"
28871 "                    int blocksize,\n"
28872 "                    const char *device,\n"
28873 "                    const char *uuid);\n"
28874 "\n"
28875
28876 #. type: textblock
28877 #: ../src/guestfs-actions.pod:4672
28878 msgid "See also C<guestfs_mke2journal_U>."
28879 msgstr ""
28880
28881 #. type: =head2
28882 #: ../src/guestfs-actions.pod:4678
28883 msgid "guestfs_mke2journal"
28884 msgstr "guestfs_mke2journal"
28885
28886 #. type: verbatim
28887 #: ../src/guestfs-actions.pod:4680
28888 #, no-wrap
28889 msgid ""
28890 " int\n"
28891 " guestfs_mke2journal (guestfs_h *g,\n"
28892 "                      int blocksize,\n"
28893 "                      const char *device);\n"
28894 "\n"
28895 msgstr ""
28896 " int\n"
28897 " guestfs_mke2journal (guestfs_h *g,\n"
28898 "                      int blocksize,\n"
28899 "                      const char *device);\n"
28900 "\n"
28901
28902 #. type: =head2
28903 #: ../src/guestfs-actions.pod:4694
28904 msgid "guestfs_mke2journal_L"
28905 msgstr "guestfs_mke2journal_L"
28906
28907 #. type: verbatim
28908 #: ../src/guestfs-actions.pod:4696
28909 #, no-wrap
28910 msgid ""
28911 " int\n"
28912 " guestfs_mke2journal_L (guestfs_h *g,\n"
28913 "                        int blocksize,\n"
28914 "                        const char *label,\n"
28915 "                        const char *device);\n"
28916 "\n"
28917 msgstr ""
28918 " int\n"
28919 " guestfs_mke2journal_L (guestfs_h *g,\n"
28920 "                        int blocksize,\n"
28921 "                        const char *label,\n"
28922 "                        const char *device);\n"
28923 "\n"
28924
28925 #. type: =head2
28926 #: ../src/guestfs-actions.pod:4708
28927 msgid "guestfs_mke2journal_U"
28928 msgstr "guestfs_mke2journal_U"
28929
28930 #. type: verbatim
28931 #: ../src/guestfs-actions.pod:4710
28932 #, no-wrap
28933 msgid ""
28934 " int\n"
28935 " guestfs_mke2journal_U (guestfs_h *g,\n"
28936 "                        int blocksize,\n"
28937 "                        const char *uuid,\n"
28938 "                        const char *device);\n"
28939 "\n"
28940 msgstr ""
28941 " int\n"
28942 " guestfs_mke2journal_U (guestfs_h *g,\n"
28943 "                        int blocksize,\n"
28944 "                        const char *uuid,\n"
28945 "                        const char *device);\n"
28946 "\n"
28947
28948 #. type: =head2
28949 #: ../src/guestfs-actions.pod:4722
28950 msgid "guestfs_mkfifo"
28951 msgstr "guestfs_mkfifo"
28952
28953 #. type: verbatim
28954 #: ../src/guestfs-actions.pod:4724
28955 #, no-wrap
28956 msgid ""
28957 " int\n"
28958 " guestfs_mkfifo (guestfs_h *g,\n"
28959 "                 int mode,\n"
28960 "                 const char *path);\n"
28961 "\n"
28962 msgstr ""
28963 " int\n"
28964 " guestfs_mkfifo (guestfs_h *g,\n"
28965 "                 int mode,\n"
28966 "                 const char *path);\n"
28967 "\n"
28968
28969 #. type: textblock
28970 #: ../src/guestfs-actions.pod:4729
28971 msgid ""
28972 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28973 "is just a convenient wrapper around C<guestfs_mknod>."
28974 msgstr ""
28975
28976 #. type: =head2
28977 #: ../src/guestfs-actions.pod:4739
28978 msgid "guestfs_mkfs"
28979 msgstr "guestfs_mkfs"
28980
28981 #. type: verbatim
28982 #: ../src/guestfs-actions.pod:4741
28983 #, no-wrap
28984 msgid ""
28985 " int\n"
28986 " guestfs_mkfs (guestfs_h *g,\n"
28987 "               const char *fstype,\n"
28988 "               const char *device);\n"
28989 "\n"
28990 msgstr ""
28991 " int\n"
28992 " guestfs_mkfs (guestfs_h *g,\n"
28993 "               const char *fstype,\n"
28994 "               const char *device);\n"
28995 "\n"
28996
28997 #. type: =head2
28998 #: ../src/guestfs-actions.pod:4754
28999 msgid "guestfs_mkfs_b"
29000 msgstr "guestfs_mkfs_b"
29001
29002 #. type: verbatim
29003 #: ../src/guestfs-actions.pod:4756
29004 #, no-wrap
29005 msgid ""
29006 " int\n"
29007 " guestfs_mkfs_b (guestfs_h *g,\n"
29008 "                 const char *fstype,\n"
29009 "                 int blocksize,\n"
29010 "                 const char *device);\n"
29011 "\n"
29012 msgstr ""
29013 " int\n"
29014 " guestfs_mkfs_b (guestfs_h *g,\n"
29015 "                 const char *fstype,\n"
29016 "                 int blocksize,\n"
29017 "                 const char *device);\n"
29018 "\n"
29019
29020 #. type: textblock
29021 #: ../src/guestfs-actions.pod:4762
29022 msgid ""
29023 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
29024 "call instead."
29025 msgstr ""
29026
29027 #. type: textblock
29028 #: ../src/guestfs-actions.pod:4769
29029 msgid ""
29030 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
29031 "block size of the resulting filesystem.  Supported block sizes depend on the "
29032 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29033 msgstr ""
29034
29035 #. type: =head2
29036 #: ../src/guestfs-actions.pod:4781
29037 msgid "guestfs_mkfs_opts"
29038 msgstr "guestfs_mkfs_opts"
29039
29040 #. type: verbatim
29041 #: ../src/guestfs-actions.pod:4783
29042 #, no-wrap
29043 msgid ""
29044 " int\n"
29045 " guestfs_mkfs_opts (guestfs_h *g,\n"
29046 "                    const char *fstype,\n"
29047 "                    const char *device,\n"
29048 "                    ...);\n"
29049 "\n"
29050 msgstr ""
29051 " int\n"
29052 " guestfs_mkfs_opts (guestfs_h *g,\n"
29053 "                    const char *fstype,\n"
29054 "                    const char *device,\n"
29055 "                    ...);\n"
29056 "\n"
29057
29058 #. type: verbatim
29059 #: ../src/guestfs-actions.pod:4794
29060 #, no-wrap
29061 msgid ""
29062 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
29063 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
29064 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
29065 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
29066 "\n"
29067 msgstr ""
29068
29069 #. type: textblock
29070 #: ../src/guestfs-actions.pod:4842
29071 msgid "(Added in 1.7.19)"
29072 msgstr "(Додано у 1.7.19)"
29073
29074 #. type: =head2
29075 #: ../src/guestfs-actions.pod:4844
29076 msgid "guestfs_mkfs_opts_va"
29077 msgstr "guestfs_mkfs_opts_va"
29078
29079 #. type: verbatim
29080 #: ../src/guestfs-actions.pod:4846
29081 #, no-wrap
29082 msgid ""
29083 " int\n"
29084 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29085 "                       const char *fstype,\n"
29086 "                       const char *device,\n"
29087 "                       va_list args);\n"
29088 "\n"
29089 msgstr ""
29090 " int\n"
29091 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29092 "                       const char *fstype,\n"
29093 "                       const char *device,\n"
29094 "                       va_list args);\n"
29095 "\n"
29096
29097 #. type: textblock
29098 #: ../src/guestfs-actions.pod:4852
29099 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
29100 msgstr ""
29101
29102 #. type: =head2
29103 #: ../src/guestfs-actions.pod:4856
29104 msgid "guestfs_mkfs_opts_argv"
29105 msgstr "guestfs_mkfs_opts_argv"
29106
29107 #. type: verbatim
29108 #: ../src/guestfs-actions.pod:4858
29109 #, no-wrap
29110 msgid ""
29111 " int\n"
29112 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29113 "                         const char *fstype,\n"
29114 "                         const char *device,\n"
29115 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
29116 "\n"
29117 msgstr ""
29118 " int\n"
29119 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29120 "                         const char *fstype,\n"
29121 "                         const char *device,\n"
29122 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
29123 "\n"
29124
29125 #. type: textblock
29126 #: ../src/guestfs-actions.pod:4864
29127 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
29128 msgstr ""
29129
29130 #. type: =head2
29131 #: ../src/guestfs-actions.pod:4868
29132 msgid "guestfs_mkmountpoint"
29133 msgstr "guestfs_mkmountpoint"
29134
29135 #. type: verbatim
29136 #: ../src/guestfs-actions.pod:4870
29137 #, no-wrap
29138 msgid ""
29139 " int\n"
29140 " guestfs_mkmountpoint (guestfs_h *g,\n"
29141 "                       const char *exemptpath);\n"
29142 "\n"
29143 msgstr ""
29144 " int\n"
29145 " guestfs_mkmountpoint (guestfs_h *g,\n"
29146 "                       const char *exemptpath);\n"
29147 "\n"
29148
29149 #. type: textblock
29150 #: ../src/guestfs-actions.pod:4874
29151 msgid ""
29152 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
29153 "that can be used to create extra mountpoints before mounting the first "
29154 "filesystem."
29155 msgstr ""
29156
29157 #. type: textblock
29158 #: ../src/guestfs-actions.pod:4898
29159 msgid ""
29160 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
29161 "may get unexpected errors if you try to mix these calls.  It is safest to "
29162 "manually unmount filesystems and remove mountpoints after use."
29163 msgstr ""
29164
29165 #. type: textblock
29166 #: ../src/guestfs-actions.pod:4902
29167 msgid ""
29168 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
29169 "first, so for this to work for manual mountpoints, you must ensure that the "
29170 "innermost mountpoints have the longest pathnames, as in the example code "
29171 "above."
29172 msgstr ""
29173
29174 #. type: textblock
29175 #: ../src/guestfs-actions.pod:4909
29176 msgid ""
29177 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
29178 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
29179 "can also trigger these issues."
29180 msgstr ""
29181
29182 #. type: textblock
29183 #: ../src/guestfs-actions.pod:4915 ../src/guestfs-actions.pod:5221
29184 #: ../src/guestfs-actions.pod:6231
29185 msgid "(Added in 1.0.62)"
29186 msgstr "(Додано у 1.0.62)"
29187
29188 #. type: =head2
29189 #: ../src/guestfs-actions.pod:4917
29190 msgid "guestfs_mknod"
29191 msgstr ""
29192
29193 #. type: verbatim
29194 #: ../src/guestfs-actions.pod:4919
29195 #, no-wrap
29196 msgid ""
29197 " int\n"
29198 " guestfs_mknod (guestfs_h *g,\n"
29199 "                int mode,\n"
29200 "                int devmajor,\n"
29201 "                int devminor,\n"
29202 "                const char *path);\n"
29203 "\n"
29204 msgstr ""
29205
29206 #. type: textblock
29207 #: ../src/guestfs-actions.pod:4934
29208 msgid ""
29209 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
29210 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
29211 "regular file).  These constants are available in the standard Linux header "
29212 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
29213 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
29214 "the appropriate constant for you."
29215 msgstr ""
29216
29217 #. type: =head2
29218 #: ../src/guestfs-actions.pod:4948
29219 msgid "guestfs_mknod_b"
29220 msgstr ""
29221
29222 #. type: verbatim
29223 #: ../src/guestfs-actions.pod:4950
29224 #, no-wrap
29225 msgid ""
29226 " int\n"
29227 " guestfs_mknod_b (guestfs_h *g,\n"
29228 "                  int mode,\n"
29229 "                  int devmajor,\n"
29230 "                  int devminor,\n"
29231 "                  const char *path);\n"
29232 "\n"
29233 msgstr ""
29234
29235 #. type: textblock
29236 #: ../src/guestfs-actions.pod:4957
29237 msgid ""
29238 "This call creates a block device node called C<path> with mode C<mode> and "
29239 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29240 "wrapper around C<guestfs_mknod>."
29241 msgstr ""
29242
29243 #. type: =head2
29244 #: ../src/guestfs-actions.pod:4967
29245 msgid "guestfs_mknod_c"
29246 msgstr ""
29247
29248 #. type: verbatim
29249 #: ../src/guestfs-actions.pod:4969
29250 #, no-wrap
29251 msgid ""
29252 " int\n"
29253 " guestfs_mknod_c (guestfs_h *g,\n"
29254 "                  int mode,\n"
29255 "                  int devmajor,\n"
29256 "                  int devminor,\n"
29257 "                  const char *path);\n"
29258 "\n"
29259 msgstr ""
29260
29261 #. type: textblock
29262 #: ../src/guestfs-actions.pod:4976
29263 msgid ""
29264 "This call creates a char device node called C<path> with mode C<mode> and "
29265 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29266 "wrapper around C<guestfs_mknod>."
29267 msgstr ""
29268
29269 #. type: =head2
29270 #: ../src/guestfs-actions.pod:4986
29271 msgid "guestfs_mkswap"
29272 msgstr ""
29273
29274 #. type: verbatim
29275 #: ../src/guestfs-actions.pod:4988
29276 #, no-wrap
29277 msgid ""
29278 " int\n"
29279 " guestfs_mkswap (guestfs_h *g,\n"
29280 "                 const char *device);\n"
29281 "\n"
29282 msgstr ""
29283
29284 #. type: =head2
29285 #: ../src/guestfs-actions.pod:4998
29286 msgid "guestfs_mkswap_L"
29287 msgstr ""
29288
29289 #. type: verbatim
29290 #: ../src/guestfs-actions.pod:5000
29291 #, no-wrap
29292 msgid ""
29293 " int\n"
29294 " guestfs_mkswap_L (guestfs_h *g,\n"
29295 "                   const char *label,\n"
29296 "                   const char *device);\n"
29297 "\n"
29298 msgstr ""
29299
29300 #. type: =head2
29301 #: ../src/guestfs-actions.pod:5015
29302 msgid "guestfs_mkswap_U"
29303 msgstr ""
29304
29305 #. type: verbatim
29306 #: ../src/guestfs-actions.pod:5017
29307 #, no-wrap
29308 msgid ""
29309 " int\n"
29310 " guestfs_mkswap_U (guestfs_h *g,\n"
29311 "                   const char *uuid,\n"
29312 "                   const char *device);\n"
29313 "\n"
29314 msgstr ""
29315
29316 #. type: =head2
29317 #: ../src/guestfs-actions.pod:5028
29318 msgid "guestfs_mkswap_file"
29319 msgstr ""
29320
29321 #. type: verbatim
29322 #: ../src/guestfs-actions.pod:5030
29323 #, no-wrap
29324 msgid ""
29325 " int\n"
29326 " guestfs_mkswap_file (guestfs_h *g,\n"
29327 "                      const char *path);\n"
29328 "\n"
29329 msgstr ""
29330
29331 #. type: textblock
29332 #: ../src/guestfs-actions.pod:5036
29333 msgid ""
29334 "This command just writes a swap file signature to an existing file.  To "
29335 "create the file itself, use something like C<guestfs_fallocate>."
29336 msgstr ""
29337
29338 #. type: =head2
29339 #: ../src/guestfs-actions.pod:5043
29340 msgid "guestfs_modprobe"
29341 msgstr ""
29342
29343 #. type: verbatim
29344 #: ../src/guestfs-actions.pod:5045
29345 #, no-wrap
29346 msgid ""
29347 " int\n"
29348 " guestfs_modprobe (guestfs_h *g,\n"
29349 "                   const char *modulename);\n"
29350 "\n"
29351 msgstr ""
29352
29353 #. type: =head2
29354 #: ../src/guestfs-actions.pod:5058
29355 msgid "guestfs_mount"
29356 msgstr ""
29357
29358 #. type: verbatim
29359 #: ../src/guestfs-actions.pod:5060
29360 #, no-wrap
29361 msgid ""
29362 " int\n"
29363 " guestfs_mount (guestfs_h *g,\n"
29364 "                const char *device,\n"
29365 "                const char *mountpoint);\n"
29366 "\n"
29367 msgstr ""
29368
29369 #. type: textblock
29370 #: ../src/guestfs-actions.pod:5079
29371 msgid ""
29372 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
29373 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
29374 "problems for users.  If your program might need to work with older versions "
29375 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
29376 "for the first parameter if you don't want any options)."
29377 msgstr ""
29378
29379 #. type: =head2
29380 #: ../src/guestfs-actions.pod:5090
29381 msgid "guestfs_mount_9p"
29382 msgstr ""
29383
29384 #. type: verbatim
29385 #: ../src/guestfs-actions.pod:5092
29386 #, no-wrap
29387 msgid ""
29388 " int\n"
29389 " guestfs_mount_9p (guestfs_h *g,\n"
29390 "                   const char *mounttag,\n"
29391 "                   const char *mountpoint,\n"
29392 "                   ...);\n"
29393 "\n"
29394 msgstr ""
29395
29396 #. type: verbatim
29397 #: ../src/guestfs-actions.pod:5103
29398 #, no-wrap
29399 msgid ""
29400 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
29401 "\n"
29402 msgstr ""
29403
29404 #. type: =head2
29405 #: ../src/guestfs-actions.pod:5116
29406 msgid "guestfs_mount_9p_va"
29407 msgstr ""
29408
29409 #. type: verbatim
29410 #: ../src/guestfs-actions.pod:5118
29411 #, no-wrap
29412 msgid ""
29413 " int\n"
29414 " guestfs_mount_9p_va (guestfs_h *g,\n"
29415 "                      const char *mounttag,\n"
29416 "                      const char *mountpoint,\n"
29417 "                      va_list args);\n"
29418 "\n"
29419 msgstr ""
29420
29421 #. type: textblock
29422 #: ../src/guestfs-actions.pod:5124
29423 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
29424 msgstr ""
29425
29426 #. type: =head2
29427 #: ../src/guestfs-actions.pod:5128
29428 msgid "guestfs_mount_9p_argv"
29429 msgstr ""
29430
29431 #. type: verbatim
29432 #: ../src/guestfs-actions.pod:5130
29433 #, no-wrap
29434 msgid ""
29435 " int\n"
29436 " guestfs_mount_9p_argv (guestfs_h *g,\n"
29437 "                        const char *mounttag,\n"
29438 "                        const char *mountpoint,\n"
29439 "                        const struct guestfs_mount_9p_argv *optargs);\n"
29440 "\n"
29441 msgstr ""
29442
29443 #. type: textblock
29444 #: ../src/guestfs-actions.pod:5136
29445 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
29446 msgstr ""
29447
29448 #. type: =head2
29449 #: ../src/guestfs-actions.pod:5140
29450 msgid "guestfs_mount_loop"
29451 msgstr ""
29452
29453 #. type: verbatim
29454 #: ../src/guestfs-actions.pod:5142
29455 #, no-wrap
29456 msgid ""
29457 " int\n"
29458 " guestfs_mount_loop (guestfs_h *g,\n"
29459 "                     const char *file,\n"
29460 "                     const char *mountpoint);\n"
29461 "\n"
29462 msgstr ""
29463
29464 #. type: =head2
29465 #: ../src/guestfs-actions.pod:5155
29466 msgid "guestfs_mount_options"
29467 msgstr ""
29468
29469 #. type: verbatim
29470 #: ../src/guestfs-actions.pod:5157
29471 #, no-wrap
29472 msgid ""
29473 " int\n"
29474 " guestfs_mount_options (guestfs_h *g,\n"
29475 "                        const char *options,\n"
29476 "                        const char *device,\n"
29477 "                        const char *mountpoint);\n"
29478 "\n"
29479 msgstr ""
29480
29481 #. type: textblock
29482 #: ../src/guestfs-actions.pod:5163
29483 msgid ""
29484 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29485 "the mount options as for the L<mount(8)> I<-o> flag."
29486 msgstr ""
29487
29488 #. type: textblock
29489 #: ../src/guestfs-actions.pod:5173 ../src/guestfs-actions.pod:5187
29490 #: ../src/guestfs-actions.pod:5204
29491 msgid "(Added in 1.0.10)"
29492 msgstr ""
29493
29494 #. type: =head2
29495 #: ../src/guestfs-actions.pod:5175
29496 msgid "guestfs_mount_ro"
29497 msgstr ""
29498
29499 #. type: verbatim
29500 #: ../src/guestfs-actions.pod:5177
29501 #, no-wrap
29502 msgid ""
29503 " int\n"
29504 " guestfs_mount_ro (guestfs_h *g,\n"
29505 "                   const char *device,\n"
29506 "                   const char *mountpoint);\n"
29507 "\n"
29508 msgstr ""
29509
29510 #. type: textblock
29511 #: ../src/guestfs-actions.pod:5182
29512 msgid ""
29513 "This is the same as the C<guestfs_mount> command, but it mounts the "
29514 "filesystem with the read-only (I<-o ro>) flag."
29515 msgstr ""
29516
29517 #. type: =head2
29518 #: ../src/guestfs-actions.pod:5189
29519 msgid "guestfs_mount_vfs"
29520 msgstr ""
29521
29522 #. type: verbatim
29523 #: ../src/guestfs-actions.pod:5191
29524 #, no-wrap
29525 msgid ""
29526 " int\n"
29527 " guestfs_mount_vfs (guestfs_h *g,\n"
29528 "                    const char *options,\n"
29529 "                    const char *vfstype,\n"
29530 "                    const char *device,\n"
29531 "                    const char *mountpoint);\n"
29532 "\n"
29533 msgstr ""
29534
29535 #. type: textblock
29536 #: ../src/guestfs-actions.pod:5198
29537 msgid ""
29538 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29539 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
29540 "t> flags."
29541 msgstr ""
29542
29543 #. type: =head2
29544 #: ../src/guestfs-actions.pod:5206
29545 msgid "guestfs_mountpoints"
29546 msgstr ""
29547
29548 #. type: verbatim
29549 #: ../src/guestfs-actions.pod:5208
29550 #, no-wrap
29551 msgid ""
29552 " char **\n"
29553 " guestfs_mountpoints (guestfs_h *g);\n"
29554 "\n"
29555 msgstr ""
29556
29557 #. type: textblock
29558 #: ../src/guestfs-actions.pod:5211
29559 msgid ""
29560 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
29561 "devices.  This one returns a hash table (map) of device name to directory "
29562 "where the device is mounted."
29563 msgstr ""
29564
29565 #. type: =head2
29566 #: ../src/guestfs-actions.pod:5223
29567 msgid "guestfs_mounts"
29568 msgstr ""
29569
29570 #. type: verbatim
29571 #: ../src/guestfs-actions.pod:5225
29572 #, no-wrap
29573 msgid ""
29574 " char **\n"
29575 " guestfs_mounts (guestfs_h *g);\n"
29576 "\n"
29577 msgstr ""
29578
29579 #. type: textblock
29580 #: ../src/guestfs-actions.pod:5233
29581 msgid "See also: C<guestfs_mountpoints>"
29582 msgstr ""
29583
29584 #. type: =head2
29585 #: ../src/guestfs-actions.pod:5241
29586 msgid "guestfs_mv"
29587 msgstr ""
29588
29589 #. type: verbatim
29590 #: ../src/guestfs-actions.pod:5243
29591 #, no-wrap
29592 msgid ""
29593 " int\n"
29594 " guestfs_mv (guestfs_h *g,\n"
29595 "             const char *src,\n"
29596 "             const char *dest);\n"
29597 "\n"
29598 msgstr ""
29599
29600 #. type: =head2
29601 #: ../src/guestfs-actions.pod:5255
29602 msgid "guestfs_ntfs_3g_probe"
29603 msgstr ""
29604
29605 #. type: verbatim
29606 #: ../src/guestfs-actions.pod:5257
29607 #, no-wrap
29608 msgid ""
29609 " int\n"
29610 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
29611 "                        int rw,\n"
29612 "                        const char *device);\n"
29613 "\n"
29614 msgstr ""
29615
29616 #. type: textblock
29617 #: ../src/guestfs-actions.pod:5276
29618 msgid "(Added in 1.0.43)"
29619 msgstr ""
29620
29621 #. type: =head2
29622 #: ../src/guestfs-actions.pod:5278
29623 msgid "guestfs_ntfsresize"
29624 msgstr ""
29625
29626 #. type: verbatim
29627 #: ../src/guestfs-actions.pod:5280
29628 #, no-wrap
29629 msgid ""
29630 " int\n"
29631 " guestfs_ntfsresize (guestfs_h *g,\n"
29632 "                     const char *device);\n"
29633 "\n"
29634 msgstr ""
29635
29636 #. type: textblock
29637 #: ../src/guestfs-actions.pod:5284 ../src/guestfs-actions.pod:5384
29638 msgid ""
29639 "I<This function is deprecated.> In new code, use the L</"
29640 "guestfs_ntfsresize_opts> call instead."
29641 msgstr ""
29642
29643 #. type: =head2
29644 #: ../src/guestfs-actions.pod:5308
29645 msgid "guestfs_ntfsresize_opts"
29646 msgstr ""
29647
29648 #. type: verbatim
29649 #: ../src/guestfs-actions.pod:5310
29650 #, no-wrap
29651 msgid ""
29652 " int\n"
29653 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
29654 "                          const char *device,\n"
29655 "                          ...);\n"
29656 "\n"
29657 msgstr ""
29658
29659 #. type: verbatim
29660 #: ../src/guestfs-actions.pod:5320
29661 #, no-wrap
29662 msgid ""
29663 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
29664 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
29665 "\n"
29666 msgstr ""
29667
29668 #. type: textblock
29669 #: ../src/guestfs-actions.pod:5340
29670 msgid ""
29671 "After the resize operation, the filesystem is always marked as requiring a "
29672 "consistency check (for safety).  You have to boot into Windows to perform "
29673 "this check and clear this condition.  If you I<don't> set the C<force> "
29674 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
29675 "times on a single filesystem without booting into Windows between each "
29676 "resize."
29677 msgstr ""
29678
29679 #. type: =head2
29680 #: ../src/guestfs-actions.pod:5355
29681 msgid "guestfs_ntfsresize_opts_va"
29682 msgstr ""
29683
29684 #. type: verbatim
29685 #: ../src/guestfs-actions.pod:5357
29686 #, no-wrap
29687 msgid ""
29688 " int\n"
29689 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
29690 "                             const char *device,\n"
29691 "                             va_list args);\n"
29692 "\n"
29693 msgstr ""
29694
29695 #. type: textblock
29696 #: ../src/guestfs-actions.pod:5362
29697 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
29698 msgstr ""
29699
29700 #. type: =head2
29701 #: ../src/guestfs-actions.pod:5366
29702 msgid "guestfs_ntfsresize_opts_argv"
29703 msgstr ""
29704
29705 #. type: verbatim
29706 #: ../src/guestfs-actions.pod:5368
29707 #, no-wrap
29708 msgid ""
29709 " int\n"
29710 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
29711 "                               const char *device,\n"
29712 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
29713 "\n"
29714 msgstr ""
29715
29716 #. type: textblock
29717 #: ../src/guestfs-actions.pod:5373
29718 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
29719 msgstr ""
29720
29721 #. type: =head2
29722 #: ../src/guestfs-actions.pod:5377
29723 msgid "guestfs_ntfsresize_size"
29724 msgstr ""
29725
29726 #. type: verbatim
29727 #: ../src/guestfs-actions.pod:5379
29728 #, no-wrap
29729 msgid ""
29730 " int\n"
29731 " guestfs_ntfsresize_size (guestfs_h *g,\n"
29732 "                          const char *device,\n"
29733 "                          int64_t size);\n"
29734 "\n"
29735 msgstr ""
29736
29737 #. type: textblock
29738 #: ../src/guestfs-actions.pod:5391
29739 msgid ""
29740 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
29741 "to specify the new size (in bytes) explicitly."
29742 msgstr ""
29743
29744 #. type: textblock
29745 #: ../src/guestfs-actions.pod:5396 ../src/guestfs-actions.pod:5838
29746 #: ../src/guestfs-actions.pod:5911 ../src/guestfs-actions.pod:6179
29747 #: ../src/guestfs-actions.pod:7816
29748 msgid "(Added in 1.3.14)"
29749 msgstr ""
29750
29751 #. type: =head2
29752 #: ../src/guestfs-actions.pod:5398
29753 msgid "guestfs_part_add"
29754 msgstr ""
29755
29756 #. type: verbatim
29757 #: ../src/guestfs-actions.pod:5400
29758 #, no-wrap
29759 msgid ""
29760 " int\n"
29761 " guestfs_part_add (guestfs_h *g,\n"
29762 "                   const char *device,\n"
29763 "                   const char *prlogex,\n"
29764 "                   int64_t startsect,\n"
29765 "                   int64_t endsect);\n"
29766 "\n"
29767 msgstr ""
29768
29769 #. type: textblock
29770 #: ../src/guestfs-actions.pod:5407
29771 msgid ""
29772 "This command adds a partition to C<device>.  If there is no partition table "
29773 "on the device, call C<guestfs_part_init> first."
29774 msgstr ""
29775
29776 #. type: textblock
29777 #: ../src/guestfs-actions.pod:5419
29778 msgid ""
29779 "Creating a partition which covers the whole disk is not so easy.  Use "
29780 "C<guestfs_part_disk> to do that."
29781 msgstr ""
29782
29783 #. type: textblock
29784 #: ../src/guestfs-actions.pod:5424 ../src/guestfs-actions.pod:5462
29785 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5599
29786 #: ../src/guestfs-actions.pod:5637 ../src/guestfs-actions.pod:5656
29787 #: ../src/guestfs-actions.pod:5696
29788 msgid "(Added in 1.0.78)"
29789 msgstr ""
29790
29791 #. type: =head2
29792 #: ../src/guestfs-actions.pod:5426
29793 msgid "guestfs_part_del"
29794 msgstr ""
29795
29796 #. type: verbatim
29797 #: ../src/guestfs-actions.pod:5428
29798 #, no-wrap
29799 msgid ""
29800 " int\n"
29801 " guestfs_part_del (guestfs_h *g,\n"
29802 "                   const char *device,\n"
29803 "                   int partnum);\n"
29804 "\n"
29805 msgstr ""
29806
29807 #. type: =head2
29808 #: ../src/guestfs-actions.pod:5443
29809 msgid "guestfs_part_disk"
29810 msgstr ""
29811
29812 #. type: verbatim
29813 #: ../src/guestfs-actions.pod:5445
29814 #, no-wrap
29815 msgid ""
29816 " int\n"
29817 " guestfs_part_disk (guestfs_h *g,\n"
29818 "                    const char *device,\n"
29819 "                    const char *parttype);\n"
29820 "\n"
29821 msgstr ""
29822
29823 #. type: textblock
29824 #: ../src/guestfs-actions.pod:5450
29825 msgid ""
29826 "This command is simply a combination of C<guestfs_part_init> followed by "
29827 "C<guestfs_part_add> to create a single primary partition covering the whole "
29828 "disk."
29829 msgstr ""
29830
29831 #. type: textblock
29832 #: ../src/guestfs-actions.pod:5454
29833 msgid ""
29834 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29835 "possible values are described in C<guestfs_part_init>."
29836 msgstr ""
29837
29838 #. type: =head2
29839 #: ../src/guestfs-actions.pod:5464
29840 msgid "guestfs_part_get_bootable"
29841 msgstr ""
29842
29843 #. type: verbatim
29844 #: ../src/guestfs-actions.pod:5466
29845 #, no-wrap
29846 msgid ""
29847 " int\n"
29848 " guestfs_part_get_bootable (guestfs_h *g,\n"
29849 "                            const char *device,\n"
29850 "                            int partnum);\n"
29851 "\n"
29852 msgstr ""
29853
29854 #. type: textblock
29855 #: ../src/guestfs-actions.pod:5474
29856 msgid "See also C<guestfs_part_set_bootable>."
29857 msgstr ""
29858
29859 #. type: =head2
29860 #: ../src/guestfs-actions.pod:5480
29861 msgid "guestfs_part_get_mbr_id"
29862 msgstr ""
29863
29864 #. type: verbatim
29865 #: ../src/guestfs-actions.pod:5482
29866 #, no-wrap
29867 msgid ""
29868 " int\n"
29869 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29870 "                          const char *device,\n"
29871 "                          int partnum);\n"
29872 "\n"
29873 msgstr ""
29874
29875 #. type: textblock
29876 #: ../src/guestfs-actions.pod:5490 ../src/guestfs-actions.pod:5672
29877 msgid ""
29878 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29879 "undefined results for other partition table types (see "
29880 "C<guestfs_part_get_parttype>)."
29881 msgstr ""
29882
29883 #. type: =head2
29884 #: ../src/guestfs-actions.pod:5498
29885 msgid "guestfs_part_get_parttype"
29886 msgstr ""
29887
29888 #. type: verbatim
29889 #: ../src/guestfs-actions.pod:5500
29890 #, no-wrap
29891 msgid ""
29892 " char *\n"
29893 " guestfs_part_get_parttype (guestfs_h *g,\n"
29894 "                            const char *device);\n"
29895 "\n"
29896 msgstr ""
29897
29898 #. type: textblock
29899 #: ../src/guestfs-actions.pod:5507
29900 msgid ""
29901 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29902 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29903 "possible, although unusual.  See C<guestfs_part_init> for a full list."
29904 msgstr ""
29905
29906 #. type: =head2
29907 #: ../src/guestfs-actions.pod:5517
29908 msgid "guestfs_part_init"
29909 msgstr ""
29910
29911 #. type: verbatim
29912 #: ../src/guestfs-actions.pod:5519
29913 #, no-wrap
29914 msgid ""
29915 " int\n"
29916 " guestfs_part_init (guestfs_h *g,\n"
29917 "                    const char *device,\n"
29918 "                    const char *parttype);\n"
29919 "\n"
29920 msgstr ""
29921
29922 #. type: textblock
29923 #: ../src/guestfs-actions.pod:5528
29924 msgid ""
29925 "Initially there are no partitions.  Following this, you should call "
29926 "C<guestfs_part_add> for each partition required."
29927 msgstr ""
29928
29929 #. type: =head2
29930 #: ../src/guestfs-actions.pod:5601
29931 msgid "guestfs_part_list"
29932 msgstr "guestfs_part_list"
29933
29934 #. type: verbatim
29935 #: ../src/guestfs-actions.pod:5603
29936 #, no-wrap
29937 msgid ""
29938 " struct guestfs_partition_list *\n"
29939 " guestfs_part_list (guestfs_h *g,\n"
29940 "                    const char *device);\n"
29941 "\n"
29942 msgstr ""
29943 " struct guestfs_partition_list *\n"
29944 " guestfs_part_list (guestfs_h *g,\n"
29945 "                    const char *device);\n"
29946 "\n"
29947
29948 #. type: textblock
29949 #: ../src/guestfs-actions.pod:5620
29950 msgid ""
29951 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29952 "the device's sector size, see C<guestfs_blockdev_getss>."
29953 msgstr ""
29954
29955 #. type: textblock
29956 #: ../src/guestfs-actions.pod:5633
29957 msgid ""
29958 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29959 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
29960 "use>."
29961 msgstr ""
29962
29963 #. type: =head2
29964 #: ../src/guestfs-actions.pod:5639
29965 msgid "guestfs_part_set_bootable"
29966 msgstr ""
29967
29968 #. type: verbatim
29969 #: ../src/guestfs-actions.pod:5641
29970 #, no-wrap
29971 msgid ""
29972 " int\n"
29973 " guestfs_part_set_bootable (guestfs_h *g,\n"
29974 "                            const char *device,\n"
29975 "                            int partnum,\n"
29976 "                            int bootable);\n"
29977 "\n"
29978 msgstr ""
29979
29980 #. type: =head2
29981 #: ../src/guestfs-actions.pod:5658
29982 msgid "guestfs_part_set_mbr_id"
29983 msgstr ""
29984
29985 #. type: verbatim
29986 #: ../src/guestfs-actions.pod:5660
29987 #, no-wrap
29988 msgid ""
29989 " int\n"
29990 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29991 "                          const char *device,\n"
29992 "                          int partnum,\n"
29993 "                          int idbyte);\n"
29994 "\n"
29995 msgstr ""
29996
29997 #. type: =head2
29998 #: ../src/guestfs-actions.pod:5680
29999 msgid "guestfs_part_set_name"
30000 msgstr ""
30001
30002 #. type: verbatim
30003 #: ../src/guestfs-actions.pod:5682
30004 #, no-wrap
30005 msgid ""
30006 " int\n"
30007 " guestfs_part_set_name (guestfs_h *g,\n"
30008 "                        const char *device,\n"
30009 "                        int partnum,\n"
30010 "                        const char *name);\n"
30011 "\n"
30012 msgstr ""
30013
30014 #. type: =head2
30015 #: ../src/guestfs-actions.pod:5698
30016 msgid "guestfs_part_to_dev"
30017 msgstr ""
30018
30019 #. type: verbatim
30020 #: ../src/guestfs-actions.pod:5700
30021 #, no-wrap
30022 msgid ""
30023 " char *\n"
30024 " guestfs_part_to_dev (guestfs_h *g,\n"
30025 "                      const char *partition);\n"
30026 "\n"
30027 msgstr ""
30028
30029 #. type: textblock
30030 #: ../src/guestfs-actions.pod:5708
30031 msgid ""
30032 "The named partition must exist, for example as a string returned from "
30033 "C<guestfs_list_partitions>."
30034 msgstr ""
30035
30036 #. type: =head2
30037 #: ../src/guestfs-actions.pod:5716
30038 msgid "guestfs_ping_daemon"
30039 msgstr ""
30040
30041 #. type: verbatim
30042 #: ../src/guestfs-actions.pod:5718
30043 #, no-wrap
30044 msgid ""
30045 " int\n"
30046 " guestfs_ping_daemon (guestfs_h *g);\n"
30047 "\n"
30048 msgstr ""
30049
30050 #. type: =head2
30051 #: ../src/guestfs-actions.pod:5730
30052 msgid "guestfs_pread"
30053 msgstr ""
30054
30055 #. type: verbatim
30056 #: ../src/guestfs-actions.pod:5732
30057 #, no-wrap
30058 msgid ""
30059 " char *\n"
30060 " guestfs_pread (guestfs_h *g,\n"
30061 "                const char *path,\n"
30062 "                int count,\n"
30063 "                int64_t offset,\n"
30064 "                size_t *size_r);\n"
30065 "\n"
30066 msgstr ""
30067
30068 #. type: textblock
30069 #: ../src/guestfs-actions.pod:5745
30070 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
30071 msgstr ""
30072
30073 #. type: =head2
30074 #: ../src/guestfs-actions.pod:5756
30075 msgid "guestfs_pread_device"
30076 msgstr ""
30077
30078 #. type: verbatim
30079 #: ../src/guestfs-actions.pod:5758
30080 #, no-wrap
30081 msgid ""
30082 " char *\n"
30083 " guestfs_pread_device (guestfs_h *g,\n"
30084 "                       const char *device,\n"
30085 "                       int count,\n"
30086 "                       int64_t offset,\n"
30087 "                       size_t *size_r);\n"
30088 "\n"
30089 msgstr ""
30090
30091 #. type: textblock
30092 #: ../src/guestfs-actions.pod:5771
30093 msgid "See also C<guestfs_pread>."
30094 msgstr ""
30095
30096 #. type: textblock
30097 #: ../src/guestfs-actions.pod:5780
30098 msgid "(Added in 1.5.21)"
30099 msgstr ""
30100
30101 #. type: =head2
30102 #: ../src/guestfs-actions.pod:5782
30103 msgid "guestfs_pvcreate"
30104 msgstr ""
30105
30106 #. type: verbatim
30107 #: ../src/guestfs-actions.pod:5784
30108 #, no-wrap
30109 msgid ""
30110 " int\n"
30111 " guestfs_pvcreate (guestfs_h *g,\n"
30112 "                   const char *device);\n"
30113 "\n"
30114 msgstr ""
30115
30116 #. type: =head2
30117 #: ../src/guestfs-actions.pod:5796
30118 msgid "guestfs_pvremove"
30119 msgstr ""
30120
30121 #. type: verbatim
30122 #: ../src/guestfs-actions.pod:5798
30123 #, no-wrap
30124 msgid ""
30125 " int\n"
30126 " guestfs_pvremove (guestfs_h *g,\n"
30127 "                   const char *device);\n"
30128 "\n"
30129 msgstr ""
30130
30131 #. type: =head2
30132 #: ../src/guestfs-actions.pod:5813
30133 msgid "guestfs_pvresize"
30134 msgstr ""
30135
30136 #. type: verbatim
30137 #: ../src/guestfs-actions.pod:5815
30138 #, no-wrap
30139 msgid ""
30140 " int\n"
30141 " guestfs_pvresize (guestfs_h *g,\n"
30142 "                   const char *device);\n"
30143 "\n"
30144 msgstr ""
30145
30146 #. type: =head2
30147 #: ../src/guestfs-actions.pod:5826
30148 msgid "guestfs_pvresize_size"
30149 msgstr ""
30150
30151 #. type: verbatim
30152 #: ../src/guestfs-actions.pod:5828
30153 #, no-wrap
30154 msgid ""
30155 " int\n"
30156 " guestfs_pvresize_size (guestfs_h *g,\n"
30157 "                        const char *device,\n"
30158 "                        int64_t size);\n"
30159 "\n"
30160 msgstr ""
30161
30162 #. type: textblock
30163 #: ../src/guestfs-actions.pod:5833
30164 msgid ""
30165 "This command is the same as C<guestfs_pvresize> except that it allows you to "
30166 "specify the new size (in bytes) explicitly."
30167 msgstr ""
30168
30169 #. type: =head2
30170 #: ../src/guestfs-actions.pod:5840
30171 msgid "guestfs_pvs"
30172 msgstr ""
30173
30174 #. type: verbatim
30175 #: ../src/guestfs-actions.pod:5842
30176 #, no-wrap
30177 msgid ""
30178 " char **\n"
30179 " guestfs_pvs (guestfs_h *g);\n"
30180 "\n"
30181 msgstr ""
30182
30183 #. type: textblock
30184 #: ../src/guestfs-actions.pod:5851
30185 msgid "See also C<guestfs_pvs_full>."
30186 msgstr ""
30187
30188 #. type: =head2
30189 #: ../src/guestfs-actions.pod:5859
30190 msgid "guestfs_pvs_full"
30191 msgstr ""
30192
30193 #. type: verbatim
30194 #: ../src/guestfs-actions.pod:5861
30195 #, no-wrap
30196 msgid ""
30197 " struct guestfs_lvm_pv_list *\n"
30198 " guestfs_pvs_full (guestfs_h *g);\n"
30199 "\n"
30200 msgstr ""
30201
30202 #. type: textblock
30203 #: ../src/guestfs-actions.pod:5867
30204 msgid ""
30205 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
30206 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
30207 msgstr ""
30208
30209 #. type: =head2
30210 #: ../src/guestfs-actions.pod:5873
30211 msgid "guestfs_pvuuid"
30212 msgstr ""
30213
30214 #. type: verbatim
30215 #: ../src/guestfs-actions.pod:5875
30216 #, no-wrap
30217 msgid ""
30218 " char *\n"
30219 " guestfs_pvuuid (guestfs_h *g,\n"
30220 "                 const char *device);\n"
30221 "\n"
30222 msgstr ""
30223
30224 #. type: =head2
30225 #: ../src/guestfs-actions.pod:5886
30226 msgid "guestfs_pwrite"
30227 msgstr ""
30228
30229 #. type: verbatim
30230 #: ../src/guestfs-actions.pod:5888
30231 #, no-wrap
30232 msgid ""
30233 " int\n"
30234 " guestfs_pwrite (guestfs_h *g,\n"
30235 "                 const char *path,\n"
30236 "                 const char *content,\n"
30237 "                 size_t content_size,\n"
30238 "                 int64_t offset);\n"
30239 "\n"
30240 msgstr ""
30241
30242 #. type: textblock
30243 #: ../src/guestfs-actions.pod:5904
30244 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
30245 msgstr ""
30246
30247 #. type: =head2
30248 #: ../src/guestfs-actions.pod:5913
30249 msgid "guestfs_pwrite_device"
30250 msgstr ""
30251
30252 #. type: verbatim
30253 #: ../src/guestfs-actions.pod:5915
30254 #, no-wrap
30255 msgid ""
30256 " int\n"
30257 " guestfs_pwrite_device (guestfs_h *g,\n"
30258 "                        const char *device,\n"
30259 "                        const char *content,\n"
30260 "                        size_t content_size,\n"
30261 "                        int64_t offset);\n"
30262 "\n"
30263 msgstr ""
30264
30265 #. type: textblock
30266 #: ../src/guestfs-actions.pod:5930
30267 msgid "See also C<guestfs_pwrite>."
30268 msgstr ""
30269
30270 #. type: textblock
30271 #: ../src/guestfs-actions.pod:5937
30272 msgid "(Added in 1.5.20)"
30273 msgstr ""
30274
30275 #. type: =head2
30276 #: ../src/guestfs-actions.pod:5939
30277 msgid "guestfs_read_file"
30278 msgstr ""
30279
30280 #. type: verbatim
30281 #: ../src/guestfs-actions.pod:5941
30282 #, no-wrap
30283 msgid ""
30284 " char *\n"
30285 " guestfs_read_file (guestfs_h *g,\n"
30286 "                    const char *path,\n"
30287 "                    size_t *size_r);\n"
30288 "\n"
30289 msgstr ""
30290
30291 #. type: textblock
30292 #: ../src/guestfs-actions.pod:5949
30293 msgid ""
30294 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
30295 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
30296 "function is limited in the total size of file that can be handled."
30297 msgstr ""
30298
30299 #. type: textblock
30300 #: ../src/guestfs-actions.pod:5961
30301 msgid "(Added in 1.0.63)"
30302 msgstr ""
30303
30304 #. type: =head2
30305 #: ../src/guestfs-actions.pod:5963
30306 msgid "guestfs_read_lines"
30307 msgstr ""
30308
30309 #. type: verbatim
30310 #: ../src/guestfs-actions.pod:5965
30311 #, no-wrap
30312 msgid ""
30313 " char **\n"
30314 " guestfs_read_lines (guestfs_h *g,\n"
30315 "                     const char *path);\n"
30316 "\n"
30317 msgstr ""
30318
30319 #. type: textblock
30320 #: ../src/guestfs-actions.pod:5974
30321 msgid ""
30322 "Note that this function cannot correctly handle binary files (specifically, "
30323 "files containing C<\\0> character which is treated as end of line).  For "
30324 "those you need to use the C<guestfs_read_file> function which has a more "
30325 "complex interface."
30326 msgstr ""
30327
30328 #. type: =head2
30329 #: ../src/guestfs-actions.pod:5985
30330 msgid "guestfs_readdir"
30331 msgstr ""
30332
30333 #. type: verbatim
30334 #: ../src/guestfs-actions.pod:5987
30335 #, no-wrap
30336 msgid ""
30337 " struct guestfs_dirent_list *\n"
30338 " guestfs_readdir (guestfs_h *g,\n"
30339 "                  const char *dir);\n"
30340 "\n"
30341 msgstr ""
30342
30343 #. type: textblock
30344 #: ../src/guestfs-actions.pod:6041
30345 msgid ""
30346 "This function is primarily intended for use by programs.  To get a simple "
30347 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
30348 "consumption, use C<guestfs_ll>."
30349 msgstr ""
30350
30351 #. type: textblock
30352 #: ../src/guestfs-actions.pod:6045
30353 msgid ""
30354 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
30355 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
30356 msgstr ""
30357
30358 #. type: =head2
30359 #: ../src/guestfs-actions.pod:6051
30360 msgid "guestfs_readlink"
30361 msgstr ""
30362
30363 #. type: verbatim
30364 #: ../src/guestfs-actions.pod:6053
30365 #, no-wrap
30366 msgid ""
30367 " char *\n"
30368 " guestfs_readlink (guestfs_h *g,\n"
30369 "                   const char *path);\n"
30370 "\n"
30371 msgstr ""
30372
30373 #. type: =head2
30374 #: ../src/guestfs-actions.pod:6064
30375 msgid "guestfs_readlinklist"
30376 msgstr ""
30377
30378 #. type: verbatim
30379 #: ../src/guestfs-actions.pod:6066
30380 #, no-wrap
30381 msgid ""
30382 " char **\n"
30383 " guestfs_readlinklist (guestfs_h *g,\n"
30384 "                       const char *path,\n"
30385 "                       char *const *names);\n"
30386 "\n"
30387 msgstr ""
30388
30389 #. type: =head2
30390 #: ../src/guestfs-actions.pod:6099
30391 msgid "guestfs_realpath"
30392 msgstr ""
30393
30394 #. type: verbatim
30395 #: ../src/guestfs-actions.pod:6101
30396 #, no-wrap
30397 msgid ""
30398 " char *\n"
30399 " guestfs_realpath (guestfs_h *g,\n"
30400 "                   const char *path);\n"
30401 "\n"
30402 msgstr ""
30403
30404 #. type: =head2
30405 #: ../src/guestfs-actions.pod:6113
30406 msgid "guestfs_removexattr"
30407 msgstr ""
30408
30409 #. type: verbatim
30410 #: ../src/guestfs-actions.pod:6115
30411 #, no-wrap
30412 msgid ""
30413 " int\n"
30414 " guestfs_removexattr (guestfs_h *g,\n"
30415 "                      const char *xattr,\n"
30416 "                      const char *path);\n"
30417 "\n"
30418 msgstr ""
30419
30420 #. type: textblock
30421 #: ../src/guestfs-actions.pod:6123
30422 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
30423 msgstr ""
30424
30425 #. type: =head2
30426 #: ../src/guestfs-actions.pod:6129
30427 msgid "guestfs_resize2fs"
30428 msgstr ""
30429
30430 #. type: verbatim
30431 #: ../src/guestfs-actions.pod:6131
30432 #, no-wrap
30433 msgid ""
30434 " int\n"
30435 " guestfs_resize2fs (guestfs_h *g,\n"
30436 "                    const char *device);\n"
30437 "\n"
30438 msgstr ""
30439
30440 #. type: textblock
30441 #: ../src/guestfs-actions.pod:6138
30442 msgid ""
30443 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
30444 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
30445 "sometimes gives an error about this and sometimes not.  In any case, it is "
30446 "always safe to call C<guestfs_e2fsck_f> before calling this function."
30447 msgstr ""
30448
30449 #. type: =head2
30450 #: ../src/guestfs-actions.pod:6148
30451 msgid "guestfs_resize2fs_M"
30452 msgstr ""
30453
30454 #. type: verbatim
30455 #: ../src/guestfs-actions.pod:6150
30456 #, no-wrap
30457 msgid ""
30458 " int\n"
30459 " guestfs_resize2fs_M (guestfs_h *g,\n"
30460 "                      const char *device);\n"
30461 "\n"
30462 msgstr ""
30463
30464 #. type: textblock
30465 #: ../src/guestfs-actions.pod:6154
30466 msgid ""
30467 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
30468 "resized to its minimum size.  This works like the I<-M> option to the "
30469 "C<resize2fs> command."
30470 msgstr ""
30471
30472 #. type: textblock
30473 #: ../src/guestfs-actions.pod:6158
30474 msgid ""
30475 "To get the resulting size of the filesystem you should call "
30476 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
30477 "These two numbers, multiplied together, give the resulting size of the "
30478 "minimal filesystem in bytes."
30479 msgstr ""
30480
30481 #. type: =head2
30482 #: ../src/guestfs-actions.pod:6167
30483 msgid "guestfs_resize2fs_size"
30484 msgstr ""
30485
30486 #. type: verbatim
30487 #: ../src/guestfs-actions.pod:6169
30488 #, no-wrap
30489 msgid ""
30490 " int\n"
30491 " guestfs_resize2fs_size (guestfs_h *g,\n"
30492 "                         const char *device,\n"
30493 "                         int64_t size);\n"
30494 "\n"
30495 msgstr ""
30496
30497 #. type: textblock
30498 #: ../src/guestfs-actions.pod:6174
30499 msgid ""
30500 "This command is the same as C<guestfs_resize2fs> except that it allows you "
30501 "to specify the new size (in bytes) explicitly."
30502 msgstr ""
30503
30504 #. type: =head2
30505 #: ../src/guestfs-actions.pod:6181
30506 msgid "guestfs_rm"
30507 msgstr ""
30508
30509 #. type: verbatim
30510 #: ../src/guestfs-actions.pod:6183
30511 #, no-wrap
30512 msgid ""
30513 " int\n"
30514 " guestfs_rm (guestfs_h *g,\n"
30515 "             const char *path);\n"
30516 "\n"
30517 msgstr ""
30518
30519 #. type: =head2
30520 #: ../src/guestfs-actions.pod:6193
30521 msgid "guestfs_rm_rf"
30522 msgstr ""
30523
30524 #. type: verbatim
30525 #: ../src/guestfs-actions.pod:6195
30526 #, no-wrap
30527 msgid ""
30528 " int\n"
30529 " guestfs_rm_rf (guestfs_h *g,\n"
30530 "                const char *path);\n"
30531 "\n"
30532 msgstr ""
30533
30534 #. type: =head2
30535 #: ../src/guestfs-actions.pod:6207
30536 msgid "guestfs_rmdir"
30537 msgstr ""
30538
30539 #. type: verbatim
30540 #: ../src/guestfs-actions.pod:6209
30541 #, no-wrap
30542 msgid ""
30543 " int\n"
30544 " guestfs_rmdir (guestfs_h *g,\n"
30545 "                const char *path);\n"
30546 "\n"
30547 msgstr ""
30548
30549 #. type: =head2
30550 #: ../src/guestfs-actions.pod:6219
30551 msgid "guestfs_rmmountpoint"
30552 msgstr ""
30553
30554 #. type: verbatim
30555 #: ../src/guestfs-actions.pod:6221
30556 #, no-wrap
30557 msgid ""
30558 " int\n"
30559 " guestfs_rmmountpoint (guestfs_h *g,\n"
30560 "                       const char *exemptpath);\n"
30561 "\n"
30562 msgstr ""
30563
30564 #. type: textblock
30565 #: ../src/guestfs-actions.pod:6225
30566 msgid ""
30567 "This calls removes a mountpoint that was previously created with "
30568 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
30569 msgstr ""
30570
30571 #. type: =head2
30572 #: ../src/guestfs-actions.pod:6233
30573 msgid "guestfs_scrub_device"
30574 msgstr ""
30575
30576 #. type: verbatim
30577 #: ../src/guestfs-actions.pod:6235
30578 #, no-wrap
30579 msgid ""
30580 " int\n"
30581 " guestfs_scrub_device (guestfs_h *g,\n"
30582 "                       const char *device);\n"
30583 "\n"
30584 msgstr ""
30585
30586 #. type: textblock
30587 #: ../src/guestfs-actions.pod:6250 ../src/guestfs-actions.pod:6268
30588 #: ../src/guestfs-actions.pod:6287
30589 msgid "(Added in 1.0.52)"
30590 msgstr ""
30591
30592 #. type: =head2
30593 #: ../src/guestfs-actions.pod:6252
30594 msgid "guestfs_scrub_file"
30595 msgstr ""
30596
30597 #. type: verbatim
30598 #: ../src/guestfs-actions.pod:6254
30599 #, no-wrap
30600 msgid ""
30601 " int\n"
30602 " guestfs_scrub_file (guestfs_h *g,\n"
30603 "                     const char *file);\n"
30604 "\n"
30605 msgstr ""
30606
30607 #. type: =head2
30608 #: ../src/guestfs-actions.pod:6270
30609 msgid "guestfs_scrub_freespace"
30610 msgstr ""
30611
30612 #. type: verbatim
30613 #: ../src/guestfs-actions.pod:6272
30614 #, no-wrap
30615 msgid ""
30616 " int\n"
30617 " guestfs_scrub_freespace (guestfs_h *g,\n"
30618 "                          const char *dir);\n"
30619 "\n"
30620 msgstr ""
30621
30622 #. type: textblock
30623 #: ../src/guestfs-actions.pod:6276
30624 msgid ""
30625 "This command creates the directory C<dir> and then fills it with files until "
30626 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
30627 "and deletes them.  The intention is to scrub any free space on the partition "
30628 "containing C<dir>."
30629 msgstr ""
30630
30631 #. type: =head2
30632 #: ../src/guestfs-actions.pod:6289
30633 msgid "guestfs_set_append"
30634 msgstr ""
30635
30636 #. type: verbatim
30637 #: ../src/guestfs-actions.pod:6291
30638 #, no-wrap
30639 msgid ""
30640 " int\n"
30641 " guestfs_set_append (guestfs_h *g,\n"
30642 "                     const char *append);\n"
30643 "\n"
30644 msgstr ""
30645
30646 #. type: =head2
30647 #: ../src/guestfs-actions.pod:6308
30648 msgid "guestfs_set_attach_method"
30649 msgstr ""
30650
30651 #. type: verbatim
30652 #: ../src/guestfs-actions.pod:6310
30653 #, no-wrap
30654 msgid ""
30655 " int\n"
30656 " guestfs_set_attach_method (guestfs_h *g,\n"
30657 "                            const char *attachmethod);\n"
30658 "\n"
30659 msgstr ""
30660
30661 #. type: =head2
30662 #: ../src/guestfs-actions.pod:6338
30663 msgid "guestfs_set_autosync"
30664 msgstr ""
30665
30666 #. type: verbatim
30667 #: ../src/guestfs-actions.pod:6340
30668 #, no-wrap
30669 msgid ""
30670 " int\n"
30671 " guestfs_set_autosync (guestfs_h *g,\n"
30672 "                       int autosync);\n"
30673 "\n"
30674 msgstr ""
30675
30676 #. type: =head2
30677 #: ../src/guestfs-actions.pod:6356
30678 msgid "guestfs_set_direct"
30679 msgstr ""
30680
30681 #. type: verbatim
30682 #: ../src/guestfs-actions.pod:6358
30683 #, no-wrap
30684 msgid ""
30685 " int\n"
30686 " guestfs_set_direct (guestfs_h *g,\n"
30687 "                     int direct);\n"
30688 "\n"
30689 msgstr ""
30690
30691 #. type: textblock
30692 #: ../src/guestfs-actions.pod:6366
30693 msgid ""
30694 "One consequence of this is that log messages aren't caught by the library "
30695 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
30696 "stdout."
30697 msgstr ""
30698
30699 #. type: =head2
30700 #: ../src/guestfs-actions.pod:6379
30701 msgid "guestfs_set_e2label"
30702 msgstr ""
30703
30704 #. type: verbatim
30705 #: ../src/guestfs-actions.pod:6381
30706 #, no-wrap
30707 msgid ""
30708 " int\n"
30709 " guestfs_set_e2label (guestfs_h *g,\n"
30710 "                      const char *device,\n"
30711 "                      const char *label);\n"
30712 "\n"
30713 msgstr ""
30714
30715 #. type: textblock
30716 #: ../src/guestfs-actions.pod:6390
30717 msgid ""
30718 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
30719 "the existing label on a filesystem."
30720 msgstr ""
30721
30722 #. type: =head2
30723 #: ../src/guestfs-actions.pod:6397
30724 msgid "guestfs_set_e2uuid"
30725 msgstr ""
30726
30727 #. type: verbatim
30728 #: ../src/guestfs-actions.pod:6399
30729 #, no-wrap
30730 msgid ""
30731 " int\n"
30732 " guestfs_set_e2uuid (guestfs_h *g,\n"
30733 "                     const char *device,\n"
30734 "                     const char *uuid);\n"
30735 "\n"
30736 msgstr ""
30737
30738 #. type: textblock
30739 #: ../src/guestfs-actions.pod:6409
30740 msgid ""
30741 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
30742 "the existing UUID of a filesystem."
30743 msgstr ""
30744
30745 #. type: =head2
30746 #: ../src/guestfs-actions.pod:6416
30747 msgid "guestfs_set_memsize"
30748 msgstr ""
30749
30750 #. type: verbatim
30751 #: ../src/guestfs-actions.pod:6418
30752 #, no-wrap
30753 msgid ""
30754 " int\n"
30755 " guestfs_set_memsize (guestfs_h *g,\n"
30756 "                      int memsize);\n"
30757 "\n"
30758 msgstr ""
30759
30760 #. type: textblock
30761 #: ../src/guestfs-actions.pod:6422
30762 msgid ""
30763 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
30764 "This only has any effect if called before C<guestfs_launch>."
30765 msgstr ""
30766
30767 #. type: =head2
30768 #: ../src/guestfs-actions.pod:6437
30769 msgid "guestfs_set_network"
30770 msgstr ""
30771
30772 #. type: verbatim
30773 #: ../src/guestfs-actions.pod:6439
30774 #, no-wrap
30775 msgid ""
30776 " int\n"
30777 " guestfs_set_network (guestfs_h *g,\n"
30778 "                      int network);\n"
30779 "\n"
30780 msgstr ""
30781
30782 #. type: textblock
30783 #: ../src/guestfs-actions.pod:6449
30784 msgid ""
30785 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30786 "effect."
30787 msgstr ""
30788
30789 #. type: =head2
30790 #: ../src/guestfs-actions.pod:6456
30791 msgid "guestfs_set_path"
30792 msgstr ""
30793
30794 #. type: verbatim
30795 #: ../src/guestfs-actions.pod:6458
30796 #, no-wrap
30797 msgid ""
30798 " int\n"
30799 " guestfs_set_path (guestfs_h *g,\n"
30800 "                   const char *searchpath);\n"
30801 "\n"
30802 msgstr ""
30803
30804 #. type: =head2
30805 #: ../src/guestfs-actions.pod:6473
30806 msgid "guestfs_set_pgroup"
30807 msgstr ""
30808
30809 #. type: verbatim
30810 #: ../src/guestfs-actions.pod:6475
30811 #, no-wrap
30812 msgid ""
30813 " int\n"
30814 " guestfs_set_pgroup (guestfs_h *g,\n"
30815 "                     int pgroup);\n"
30816 "\n"
30817 msgstr ""
30818
30819 #. type: =head2
30820 #: ../src/guestfs-actions.pod:6492
30821 msgid "guestfs_set_qemu"
30822 msgstr ""
30823
30824 #. type: verbatim
30825 #: ../src/guestfs-actions.pod:6494
30826 #, no-wrap
30827 msgid ""
30828 " int\n"
30829 " guestfs_set_qemu (guestfs_h *g,\n"
30830 "                   const char *qemu);\n"
30831 "\n"
30832 msgstr ""
30833
30834 #. type: =head2
30835 #: ../src/guestfs-actions.pod:6520
30836 msgid "guestfs_set_recovery_proc"
30837 msgstr ""
30838
30839 #. type: verbatim
30840 #: ../src/guestfs-actions.pod:6522
30841 #, no-wrap
30842 msgid ""
30843 " int\n"
30844 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30845 "                            int recoveryproc);\n"
30846 "\n"
30847 msgstr ""
30848
30849 #. type: textblock
30850 #: ../src/guestfs-actions.pod:6526
30851 msgid ""
30852 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30853 "not create a recovery process.  The purpose of the recovery process is to "
30854 "stop runaway qemu processes in the case where the main program aborts "
30855 "abruptly."
30856 msgstr ""
30857
30858 #. type: textblock
30859 #: ../src/guestfs-actions.pod:6531
30860 msgid ""
30861 "This only has any effect if called before C<guestfs_launch>, and the default "
30862 "is true."
30863 msgstr ""
30864
30865 #. type: =head2
30866 #: ../src/guestfs-actions.pod:6544
30867 msgid "guestfs_set_selinux"
30868 msgstr ""
30869
30870 #. type: verbatim
30871 #: ../src/guestfs-actions.pod:6546
30872 #, no-wrap
30873 msgid ""
30874 " int\n"
30875 " guestfs_set_selinux (guestfs_h *g,\n"
30876 "                      int selinux);\n"
30877 "\n"
30878 msgstr ""
30879
30880 #. type: =head2
30881 #: ../src/guestfs-actions.pod:6563
30882 #, fuzzy
30883 #| msgid "guestfs_ln_s"
30884 msgid "guestfs_set_smp"
30885 msgstr "guestfs_ln_s"
30886
30887 #. type: verbatim
30888 #: ../src/guestfs-actions.pod:6565
30889 #, fuzzy, no-wrap
30890 #| msgid ""
30891 #| " int\n"
30892 #| " guestfs_mkdir_p (guestfs_h *g,\n"
30893 #| "                  const char *path);\n"
30894 #| "\n"
30895 msgid ""
30896 " int\n"
30897 " guestfs_set_smp (guestfs_h *g,\n"
30898 "                  int smp);\n"
30899 "\n"
30900 msgstr ""
30901 " int\n"
30902 " guestfs_mkdir_p (guestfs_h *g,\n"
30903 "                  const char *path);\n"
30904 "\n"
30905
30906 #. type: textblock
30907 #: ../src/guestfs-actions.pod:6573
30908 msgid "This function must be called before C<guestfs_launch>."
30909 msgstr ""
30910
30911 #. type: =head2
30912 #: ../src/guestfs-actions.pod:6577
30913 msgid "guestfs_set_trace"
30914 msgstr ""
30915
30916 #. type: verbatim
30917 #: ../src/guestfs-actions.pod:6579
30918 #, no-wrap
30919 msgid ""
30920 " int\n"
30921 " guestfs_set_trace (guestfs_h *g,\n"
30922 "                    int trace);\n"
30923 "\n"
30924 msgstr ""
30925
30926 #. type: textblock
30927 #: ../src/guestfs-actions.pod:6593
30928 msgid ""
30929 "Trace messages are normally sent to C<stderr>, unless you register a "
30930 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30931 msgstr ""
30932
30933 #. type: =head2
30934 #: ../src/guestfs-actions.pod:6601
30935 msgid "guestfs_set_verbose"
30936 msgstr ""
30937
30938 #. type: verbatim
30939 #: ../src/guestfs-actions.pod:6603
30940 #, no-wrap
30941 msgid ""
30942 " int\n"
30943 " guestfs_set_verbose (guestfs_h *g,\n"
30944 "                      int verbose);\n"
30945 "\n"
30946 msgstr ""
30947
30948 #. type: textblock
30949 #: ../src/guestfs-actions.pod:6612
30950 msgid ""
30951 "Verbose messages are normally sent to C<stderr>, unless you register a "
30952 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30953 msgstr ""
30954
30955 #. type: =head2
30956 #: ../src/guestfs-actions.pod:6620
30957 msgid "guestfs_setcon"
30958 msgstr ""
30959
30960 #. type: verbatim
30961 #: ../src/guestfs-actions.pod:6622
30962 #, no-wrap
30963 msgid ""
30964 " int\n"
30965 " guestfs_setcon (guestfs_h *g,\n"
30966 "                 const char *context);\n"
30967 "\n"
30968 msgstr ""
30969
30970 #. type: =head2
30971 #: ../src/guestfs-actions.pod:6635
30972 msgid "guestfs_setxattr"
30973 msgstr ""
30974
30975 #. type: verbatim
30976 #: ../src/guestfs-actions.pod:6637
30977 #, no-wrap
30978 msgid ""
30979 " int\n"
30980 " guestfs_setxattr (guestfs_h *g,\n"
30981 "                   const char *xattr,\n"
30982 "                   const char *val,\n"
30983 "                   int vallen,\n"
30984 "                   const char *path);\n"
30985 "\n"
30986 msgstr ""
30987
30988 #. type: textblock
30989 #: ../src/guestfs-actions.pod:6648
30990 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30991 msgstr ""
30992
30993 #. type: =head2
30994 #: ../src/guestfs-actions.pod:6654
30995 msgid "guestfs_sfdisk"
30996 msgstr ""
30997
30998 #. type: verbatim
30999 #: ../src/guestfs-actions.pod:6656
31000 #, no-wrap
31001 msgid ""
31002 " int\n"
31003 " guestfs_sfdisk (guestfs_h *g,\n"
31004 "                 const char *device,\n"
31005 "                 int cyls,\n"
31006 "                 int heads,\n"
31007 "                 int sectors,\n"
31008 "                 char *const *lines);\n"
31009 "\n"
31010 msgstr ""
31011
31012 #. type: textblock
31013 #: ../src/guestfs-actions.pod:6664 ../src/guestfs-actions.pod:6708
31014 #: ../src/guestfs-actions.pod:6742
31015 msgid ""
31016 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
31017 "call instead."
31018 msgstr ""
31019
31020 #. type: textblock
31021 #: ../src/guestfs-actions.pod:6691
31022 msgid ""
31023 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
31024 msgstr ""
31025
31026 #. type: =head2
31027 #: ../src/guestfs-actions.pod:6701
31028 msgid "guestfs_sfdiskM"
31029 msgstr ""
31030
31031 #. type: verbatim
31032 #: ../src/guestfs-actions.pod:6703
31033 #, no-wrap
31034 msgid ""
31035 " int\n"
31036 " guestfs_sfdiskM (guestfs_h *g,\n"
31037 "                  const char *device,\n"
31038 "                  char *const *lines);\n"
31039 "\n"
31040 msgstr ""
31041
31042 #. type: textblock
31043 #: ../src/guestfs-actions.pod:6715
31044 msgid ""
31045 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
31046 "partition sizes are specified in megabytes only (rounded to the nearest "
31047 "cylinder) and you don't need to specify the cyls, heads and sectors "
31048 "parameters which were rarely if ever used anyway."
31049 msgstr ""
31050
31051 #. type: textblock
31052 #: ../src/guestfs-actions.pod:6721
31053 msgid ""
31054 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
31055 "C<guestfs_part_disk>"
31056 msgstr ""
31057
31058 #. type: =head2
31059 #: ../src/guestfs-actions.pod:6731
31060 msgid "guestfs_sfdisk_N"
31061 msgstr ""
31062
31063 #. type: verbatim
31064 #: ../src/guestfs-actions.pod:6733
31065 #, no-wrap
31066 msgid ""
31067 " int\n"
31068 " guestfs_sfdisk_N (guestfs_h *g,\n"
31069 "                   const char *device,\n"
31070 "                   int partnum,\n"
31071 "                   int cyls,\n"
31072 "                   int heads,\n"
31073 "                   int sectors,\n"
31074 "                   const char *line);\n"
31075 "\n"
31076 msgstr ""
31077
31078 #. type: textblock
31079 #: ../src/guestfs-actions.pod:6752
31080 msgid ""
31081 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
31082 "for the cyls/heads/sectors parameters."
31083 msgstr ""
31084
31085 #. type: textblock
31086 #: ../src/guestfs-actions.pod:6755
31087 msgid "See also: C<guestfs_part_add>"
31088 msgstr ""
31089
31090 #. type: =head2
31091 #: ../src/guestfs-actions.pod:6764
31092 msgid "guestfs_sfdisk_disk_geometry"
31093 msgstr ""
31094
31095 #. type: verbatim
31096 #: ../src/guestfs-actions.pod:6766
31097 #, no-wrap
31098 msgid ""
31099 " char *\n"
31100 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
31101 "                               const char *device);\n"
31102 "\n"
31103 msgstr ""
31104
31105 #. type: textblock
31106 #: ../src/guestfs-actions.pod:6770
31107 msgid ""
31108 "This displays the disk geometry of C<device> read from the partition table.  "
31109 "Especially in the case where the underlying block device has been resized, "
31110 "this can be different from the kernel's idea of the geometry (see "
31111 "C<guestfs_sfdisk_kernel_geometry>)."
31112 msgstr ""
31113
31114 #. type: =head2
31115 #: ../src/guestfs-actions.pod:6783
31116 msgid "guestfs_sfdisk_kernel_geometry"
31117 msgstr ""
31118
31119 #. type: verbatim
31120 #: ../src/guestfs-actions.pod:6785
31121 #, no-wrap
31122 msgid ""
31123 " char *\n"
31124 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
31125 "                                 const char *device);\n"
31126 "\n"
31127 msgstr ""
31128
31129 #. type: =head2
31130 #: ../src/guestfs-actions.pod:6799
31131 msgid "guestfs_sfdisk_l"
31132 msgstr ""
31133
31134 #. type: verbatim
31135 #: ../src/guestfs-actions.pod:6801
31136 #, no-wrap
31137 msgid ""
31138 " char *\n"
31139 " guestfs_sfdisk_l (guestfs_h *g,\n"
31140 "                   const char *device);\n"
31141 "\n"
31142 msgstr ""
31143
31144 #. type: textblock
31145 #: ../src/guestfs-actions.pod:6805
31146 msgid ""
31147 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
31148 "call instead."
31149 msgstr ""
31150
31151 #. type: textblock
31152 #: ../src/guestfs-actions.pod:6816
31153 msgid "See also: C<guestfs_part_list>"
31154 msgstr ""
31155
31156 #. type: =head2
31157 #: ../src/guestfs-actions.pod:6823
31158 msgid "guestfs_sh"
31159 msgstr ""
31160
31161 #. type: verbatim
31162 #: ../src/guestfs-actions.pod:6825
31163 #, no-wrap
31164 msgid ""
31165 " char *\n"
31166 " guestfs_sh (guestfs_h *g,\n"
31167 "             const char *command);\n"
31168 "\n"
31169 msgstr ""
31170
31171 #. type: textblock
31172 #: ../src/guestfs-actions.pod:6832
31173 msgid "This is like C<guestfs_command>, but passes the command to:"
31174 msgstr ""
31175
31176 #. type: textblock
31177 #: ../src/guestfs-actions.pod:6840
31178 msgid "All the provisos about C<guestfs_command> apply to this call."
31179 msgstr ""
31180
31181 #. type: =head2
31182 #: ../src/guestfs-actions.pod:6847
31183 msgid "guestfs_sh_lines"
31184 msgstr ""
31185
31186 #. type: verbatim
31187 #: ../src/guestfs-actions.pod:6849
31188 #, no-wrap
31189 msgid ""
31190 " char **\n"
31191 " guestfs_sh_lines (guestfs_h *g,\n"
31192 "                   const char *command);\n"
31193 "\n"
31194 msgstr ""
31195
31196 #. type: textblock
31197 #: ../src/guestfs-actions.pod:6853
31198 msgid ""
31199 "This is the same as C<guestfs_sh>, but splits the result into a list of "
31200 "lines."
31201 msgstr ""
31202
31203 #. type: textblock
31204 #: ../src/guestfs-actions.pod:6856
31205 msgid "See also: C<guestfs_command_lines>"
31206 msgstr ""
31207
31208 #. type: =head2
31209 #: ../src/guestfs-actions.pod:6864
31210 msgid "guestfs_sleep"
31211 msgstr ""
31212
31213 #. type: verbatim
31214 #: ../src/guestfs-actions.pod:6866
31215 #, no-wrap
31216 msgid ""
31217 " int\n"
31218 " guestfs_sleep (guestfs_h *g,\n"
31219 "                int secs);\n"
31220 "\n"
31221 msgstr ""
31222
31223 #. type: textblock
31224 #: ../src/guestfs-actions.pod:6874
31225 msgid "(Added in 1.0.41)"
31226 msgstr ""
31227
31228 #. type: =head2
31229 #: ../src/guestfs-actions.pod:6876 ../src/guestfs-structs.pod:109
31230 msgid "guestfs_stat"
31231 msgstr ""
31232
31233 #. type: verbatim
31234 #: ../src/guestfs-actions.pod:6878
31235 #, no-wrap
31236 msgid ""
31237 " struct guestfs_stat *\n"
31238 " guestfs_stat (guestfs_h *g,\n"
31239 "               const char *path);\n"
31240 "\n"
31241 msgstr ""
31242
31243 #. type: =head2
31244 #: ../src/guestfs-actions.pod:6892 ../src/guestfs-structs.pod:135
31245 msgid "guestfs_statvfs"
31246 msgstr ""
31247
31248 #. type: verbatim
31249 #: ../src/guestfs-actions.pod:6894
31250 #, no-wrap
31251 msgid ""
31252 " struct guestfs_statvfs *\n"
31253 " guestfs_statvfs (guestfs_h *g,\n"
31254 "                  const char *path);\n"
31255 "\n"
31256 msgstr ""
31257
31258 #. type: textblock
31259 #: ../src/guestfs-actions.pod:6904
31260 msgid ""
31261 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
31262 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
31263 msgstr ""
31264
31265 #. type: =head2
31266 #: ../src/guestfs-actions.pod:6910
31267 msgid "guestfs_strings"
31268 msgstr ""
31269
31270 #. type: verbatim
31271 #: ../src/guestfs-actions.pod:6912
31272 #, no-wrap
31273 msgid ""
31274 " char **\n"
31275 " guestfs_strings (guestfs_h *g,\n"
31276 "                  const char *path);\n"
31277 "\n"
31278 msgstr ""
31279
31280 #. type: =head2
31281 #: ../src/guestfs-actions.pod:6928
31282 msgid "guestfs_strings_e"
31283 msgstr ""
31284
31285 #. type: verbatim
31286 #: ../src/guestfs-actions.pod:6930
31287 #, no-wrap
31288 msgid ""
31289 " char **\n"
31290 " guestfs_strings_e (guestfs_h *g,\n"
31291 "                    const char *encoding,\n"
31292 "                    const char *path);\n"
31293 "\n"
31294 msgstr ""
31295
31296 #. type: textblock
31297 #: ../src/guestfs-actions.pod:6935
31298 msgid ""
31299 "This is like the C<guestfs_strings> command, but allows you to specify the "
31300 "encoding of strings that are looked for in the source file C<path>."
31301 msgstr ""
31302
31303 #. type: textblock
31304 #: ../src/guestfs-actions.pod:6945
31305 msgid ""
31306 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
31307 "ISO-8859-X (this is what C<guestfs_strings> uses)."
31308 msgstr ""
31309
31310 #. type: =head2
31311 #: ../src/guestfs-actions.pod:6983
31312 msgid "guestfs_swapoff_device"
31313 msgstr ""
31314
31315 #. type: verbatim
31316 #: ../src/guestfs-actions.pod:6985
31317 #, no-wrap
31318 msgid ""
31319 " int\n"
31320 " guestfs_swapoff_device (guestfs_h *g,\n"
31321 "                         const char *device);\n"
31322 "\n"
31323 msgstr ""
31324
31325 #. type: textblock
31326 #: ../src/guestfs-actions.pod:6989
31327 msgid ""
31328 "This command disables the libguestfs appliance swap device or partition "
31329 "named C<device>.  See C<guestfs_swapon_device>."
31330 msgstr ""
31331
31332 #. type: =head2
31333 #: ../src/guestfs-actions.pod:6997
31334 msgid "guestfs_swapoff_file"
31335 msgstr ""
31336
31337 #. type: verbatim
31338 #: ../src/guestfs-actions.pod:6999
31339 #, no-wrap
31340 msgid ""
31341 " int\n"
31342 " guestfs_swapoff_file (guestfs_h *g,\n"
31343 "                       const char *file);\n"
31344 "\n"
31345 msgstr ""
31346
31347 #. type: =head2
31348 #: ../src/guestfs-actions.pod:7009
31349 msgid "guestfs_swapoff_label"
31350 msgstr ""
31351
31352 #. type: verbatim
31353 #: ../src/guestfs-actions.pod:7011
31354 #, no-wrap
31355 msgid ""
31356 " int\n"
31357 " guestfs_swapoff_label (guestfs_h *g,\n"
31358 "                        const char *label);\n"
31359 "\n"
31360 msgstr ""
31361
31362 #. type: =head2
31363 #: ../src/guestfs-actions.pod:7022
31364 msgid "guestfs_swapoff_uuid"
31365 msgstr ""
31366
31367 #. type: verbatim
31368 #: ../src/guestfs-actions.pod:7024
31369 #, no-wrap
31370 msgid ""
31371 " int\n"
31372 " guestfs_swapoff_uuid (guestfs_h *g,\n"
31373 "                       const char *uuid);\n"
31374 "\n"
31375 msgstr ""
31376
31377 #. type: =head2
31378 #: ../src/guestfs-actions.pod:7035
31379 msgid "guestfs_swapon_device"
31380 msgstr ""
31381
31382 #. type: verbatim
31383 #: ../src/guestfs-actions.pod:7037
31384 #, no-wrap
31385 msgid ""
31386 " int\n"
31387 " guestfs_swapon_device (guestfs_h *g,\n"
31388 "                        const char *device);\n"
31389 "\n"
31390 msgstr ""
31391
31392 #. type: textblock
31393 #: ../src/guestfs-actions.pod:7041
31394 msgid ""
31395 "This command enables the libguestfs appliance to use the swap device or "
31396 "partition named C<device>.  The increased memory is made available for all "
31397 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
31398 msgstr ""
31399
31400 #. type: =head2
31401 #: ../src/guestfs-actions.pod:7057
31402 msgid "guestfs_swapon_file"
31403 msgstr ""
31404
31405 #. type: verbatim
31406 #: ../src/guestfs-actions.pod:7059
31407 #, no-wrap
31408 msgid ""
31409 " int\n"
31410 " guestfs_swapon_file (guestfs_h *g,\n"
31411 "                      const char *file);\n"
31412 "\n"
31413 msgstr ""
31414
31415 #. type: textblock
31416 #: ../src/guestfs-actions.pod:7063
31417 msgid ""
31418 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
31419 "notes."
31420 msgstr ""
31421
31422 #. type: =head2
31423 #: ../src/guestfs-actions.pod:7070
31424 msgid "guestfs_swapon_label"
31425 msgstr ""
31426
31427 #. type: verbatim
31428 #: ../src/guestfs-actions.pod:7072
31429 #, no-wrap
31430 msgid ""
31431 " int\n"
31432 " guestfs_swapon_label (guestfs_h *g,\n"
31433 "                       const char *label);\n"
31434 "\n"
31435 msgstr ""
31436
31437 #. type: textblock
31438 #: ../src/guestfs-actions.pod:7076
31439 msgid ""
31440 "This command enables swap to a labeled swap partition.  See "
31441 "C<guestfs_swapon_device> for other notes."
31442 msgstr ""
31443
31444 #. type: =head2
31445 #: ../src/guestfs-actions.pod:7083
31446 msgid "guestfs_swapon_uuid"
31447 msgstr ""
31448
31449 #. type: verbatim
31450 #: ../src/guestfs-actions.pod:7085
31451 #, no-wrap
31452 msgid ""
31453 " int\n"
31454 " guestfs_swapon_uuid (guestfs_h *g,\n"
31455 "                      const char *uuid);\n"
31456 "\n"
31457 msgstr ""
31458
31459 #. type: textblock
31460 #: ../src/guestfs-actions.pod:7089
31461 msgid ""
31462 "This command enables swap to a swap partition with the given UUID.  See "
31463 "C<guestfs_swapon_device> for other notes."
31464 msgstr ""
31465
31466 #. type: =head2
31467 #: ../src/guestfs-actions.pod:7096
31468 msgid "guestfs_sync"
31469 msgstr ""
31470
31471 #. type: verbatim
31472 #: ../src/guestfs-actions.pod:7098
31473 #, no-wrap
31474 msgid ""
31475 " int\n"
31476 " guestfs_sync (guestfs_h *g);\n"
31477 "\n"
31478 msgstr ""
31479
31480 #. type: =head2
31481 #: ../src/guestfs-actions.pod:7111
31482 msgid "guestfs_tail"
31483 msgstr ""
31484
31485 #. type: verbatim
31486 #: ../src/guestfs-actions.pod:7113
31487 #, no-wrap
31488 msgid ""
31489 " char **\n"
31490 " guestfs_tail (guestfs_h *g,\n"
31491 "               const char *path);\n"
31492 "\n"
31493 msgstr ""
31494
31495 #. type: =head2
31496 #: ../src/guestfs-actions.pod:7129
31497 msgid "guestfs_tail_n"
31498 msgstr ""
31499
31500 #. type: verbatim
31501 #: ../src/guestfs-actions.pod:7131
31502 #, no-wrap
31503 msgid ""
31504 " char **\n"
31505 " guestfs_tail_n (guestfs_h *g,\n"
31506 "                 int nrlines,\n"
31507 "                 const char *path);\n"
31508 "\n"
31509 msgstr ""
31510
31511 #. type: =head2
31512 #: ../src/guestfs-actions.pod:7153
31513 msgid "guestfs_tar_in"
31514 msgstr ""
31515
31516 #. type: verbatim
31517 #: ../src/guestfs-actions.pod:7155
31518 #, no-wrap
31519 msgid ""
31520 " int\n"
31521 " guestfs_tar_in (guestfs_h *g,\n"
31522 "                 const char *tarfile,\n"
31523 "                 const char *directory);\n"
31524 "\n"
31525 msgstr ""
31526
31527 #. type: textblock
31528 #: ../src/guestfs-actions.pod:7163
31529 msgid ""
31530 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
31531 msgstr ""
31532
31533 #. type: textblock
31534 #: ../src/guestfs-actions.pod:7168 ../src/guestfs-actions.pod:7185
31535 #: ../src/guestfs-actions.pod:7201 ../src/guestfs-actions.pod:7217
31536 msgid "(Added in 1.0.3)"
31537 msgstr ""
31538
31539 #. type: =head2
31540 #: ../src/guestfs-actions.pod:7170
31541 msgid "guestfs_tar_out"
31542 msgstr ""
31543
31544 #. type: verbatim
31545 #: ../src/guestfs-actions.pod:7172
31546 #, no-wrap
31547 msgid ""
31548 " int\n"
31549 " guestfs_tar_out (guestfs_h *g,\n"
31550 "                  const char *directory,\n"
31551 "                  const char *tarfile);\n"
31552 "\n"
31553 msgstr ""
31554
31555 #. type: textblock
31556 #: ../src/guestfs-actions.pod:7180
31557 msgid ""
31558 "To download a compressed tarball, use C<guestfs_tgz_out> or "
31559 "C<guestfs_txz_out>."
31560 msgstr ""
31561
31562 #. type: =head2
31563 #: ../src/guestfs-actions.pod:7187
31564 msgid "guestfs_tgz_in"
31565 msgstr ""
31566
31567 #. type: verbatim
31568 #: ../src/guestfs-actions.pod:7189
31569 #, no-wrap
31570 msgid ""
31571 " int\n"
31572 " guestfs_tgz_in (guestfs_h *g,\n"
31573 "                 const char *tarball,\n"
31574 "                 const char *directory);\n"
31575 "\n"
31576 msgstr ""
31577
31578 #. type: textblock
31579 #: ../src/guestfs-actions.pod:7197
31580 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
31581 msgstr ""
31582
31583 #. type: =head2
31584 #: ../src/guestfs-actions.pod:7203
31585 msgid "guestfs_tgz_out"
31586 msgstr ""
31587
31588 #. type: verbatim
31589 #: ../src/guestfs-actions.pod:7205
31590 #, no-wrap
31591 msgid ""
31592 " int\n"
31593 " guestfs_tgz_out (guestfs_h *g,\n"
31594 "                  const char *directory,\n"
31595 "                  const char *tarball);\n"
31596 "\n"
31597 msgstr ""
31598
31599 #. type: textblock
31600 #: ../src/guestfs-actions.pod:7213
31601 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
31602 msgstr ""
31603
31604 #. type: =head2
31605 #: ../src/guestfs-actions.pod:7219
31606 msgid "guestfs_touch"
31607 msgstr ""
31608
31609 #. type: verbatim
31610 #: ../src/guestfs-actions.pod:7221
31611 #, no-wrap
31612 msgid ""
31613 " int\n"
31614 " guestfs_touch (guestfs_h *g,\n"
31615 "                const char *path);\n"
31616 "\n"
31617 msgstr ""
31618
31619 #. type: =head2
31620 #: ../src/guestfs-actions.pod:7236
31621 msgid "guestfs_truncate"
31622 msgstr ""
31623
31624 #. type: verbatim
31625 #: ../src/guestfs-actions.pod:7238
31626 #, no-wrap
31627 msgid ""
31628 " int\n"
31629 " guestfs_truncate (guestfs_h *g,\n"
31630 "                   const char *path);\n"
31631 "\n"
31632 msgstr ""
31633
31634 #. type: =head2
31635 #: ../src/guestfs-actions.pod:7249
31636 msgid "guestfs_truncate_size"
31637 msgstr ""
31638
31639 #. type: verbatim
31640 #: ../src/guestfs-actions.pod:7251
31641 #, no-wrap
31642 msgid ""
31643 " int\n"
31644 " guestfs_truncate_size (guestfs_h *g,\n"
31645 "                        const char *path,\n"
31646 "                        int64_t size);\n"
31647 "\n"
31648 msgstr ""
31649
31650 #. type: textblock
31651 #: ../src/guestfs-actions.pod:7259
31652 msgid ""
31653 "If the current file size is less than C<size> then the file is extended to "
31654 "the required size with zero bytes.  This creates a sparse file (ie. disk "
31655 "blocks are not allocated for the file until you write to it).  To create a "
31656 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
31657 msgstr ""
31658
31659 #. type: =head2
31660 #: ../src/guestfs-actions.pod:7269
31661 msgid "guestfs_tune2fs_l"
31662 msgstr ""
31663
31664 #. type: verbatim
31665 #: ../src/guestfs-actions.pod:7271
31666 #, no-wrap
31667 msgid ""
31668 " char **\n"
31669 " guestfs_tune2fs_l (guestfs_h *g,\n"
31670 "                    const char *device);\n"
31671 "\n"
31672 msgstr ""
31673
31674 #. type: =head2
31675 #: ../src/guestfs-actions.pod:7291
31676 msgid "guestfs_txz_in"
31677 msgstr ""
31678
31679 #. type: verbatim
31680 #: ../src/guestfs-actions.pod:7293
31681 #, no-wrap
31682 msgid ""
31683 " int\n"
31684 " guestfs_txz_in (guestfs_h *g,\n"
31685 "                 const char *tarball,\n"
31686 "                 const char *directory);\n"
31687 "\n"
31688 msgstr ""
31689
31690 #. type: =head2
31691 #: ../src/guestfs-actions.pod:7305
31692 msgid "guestfs_txz_out"
31693 msgstr ""
31694
31695 #. type: verbatim
31696 #: ../src/guestfs-actions.pod:7307
31697 #, no-wrap
31698 msgid ""
31699 " int\n"
31700 " guestfs_txz_out (guestfs_h *g,\n"
31701 "                  const char *directory,\n"
31702 "                  const char *tarball);\n"
31703 "\n"
31704 msgstr ""
31705
31706 #. type: =head2
31707 #: ../src/guestfs-actions.pod:7319
31708 msgid "guestfs_umask"
31709 msgstr ""
31710
31711 #. type: verbatim
31712 #: ../src/guestfs-actions.pod:7321
31713 #, no-wrap
31714 msgid ""
31715 " int\n"
31716 " guestfs_umask (guestfs_h *g,\n"
31717 "                int mask);\n"
31718 "\n"
31719 msgstr ""
31720
31721 #. type: textblock
31722 #: ../src/guestfs-actions.pod:7337
31723 msgid ""
31724 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
31725 "C<guestfs_mkdir>."
31726 msgstr ""
31727
31728 #. type: =head2
31729 #: ../src/guestfs-actions.pod:7346
31730 msgid "guestfs_umount"
31731 msgstr ""
31732
31733 #. type: verbatim
31734 #: ../src/guestfs-actions.pod:7348
31735 #, no-wrap
31736 msgid ""
31737 " int\n"
31738 " guestfs_umount (guestfs_h *g,\n"
31739 "                 const char *pathordevice);\n"
31740 "\n"
31741 msgstr ""
31742
31743 #. type: =head2
31744 #: ../src/guestfs-actions.pod:7360
31745 msgid "guestfs_umount_all"
31746 msgstr ""
31747
31748 #. type: verbatim
31749 #: ../src/guestfs-actions.pod:7362
31750 #, no-wrap
31751 msgid ""
31752 " int\n"
31753 " guestfs_umount_all (guestfs_h *g);\n"
31754 "\n"
31755 msgstr ""
31756
31757 #. type: =head2
31758 #: ../src/guestfs-actions.pod:7373
31759 msgid "guestfs_upload"
31760 msgstr ""
31761
31762 #. type: verbatim
31763 #: ../src/guestfs-actions.pod:7375
31764 #, no-wrap
31765 msgid ""
31766 " int\n"
31767 " guestfs_upload (guestfs_h *g,\n"
31768 "                 const char *filename,\n"
31769 "                 const char *remotefilename);\n"
31770 "\n"
31771 msgstr ""
31772
31773 #. type: textblock
31774 #: ../src/guestfs-actions.pod:7385
31775 msgid "See also C<guestfs_download>."
31776 msgstr ""
31777
31778 #. type: =head2
31779 #: ../src/guestfs-actions.pod:7396
31780 msgid "guestfs_upload_offset"
31781 msgstr ""
31782
31783 #. type: verbatim
31784 #: ../src/guestfs-actions.pod:7398
31785 #, no-wrap
31786 msgid ""
31787 " int\n"
31788 " guestfs_upload_offset (guestfs_h *g,\n"
31789 "                        const char *filename,\n"
31790 "                        const char *remotefilename,\n"
31791 "                        int64_t offset);\n"
31792 "\n"
31793 msgstr ""
31794
31795 #. type: textblock
31796 #: ../src/guestfs-actions.pod:7414
31797 msgid ""
31798 "Note that there is no limit on the amount of data that can be uploaded with "
31799 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31800 "full amount unless an error occurs."
31801 msgstr ""
31802
31803 #. type: textblock
31804 #: ../src/guestfs-actions.pod:7419
31805 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31806 msgstr ""
31807
31808 #. type: =head2
31809 #: ../src/guestfs-actions.pod:7430
31810 msgid "guestfs_utimens"
31811 msgstr ""
31812
31813 #. type: verbatim
31814 #: ../src/guestfs-actions.pod:7432
31815 #, no-wrap
31816 msgid ""
31817 " int\n"
31818 " guestfs_utimens (guestfs_h *g,\n"
31819 "                  const char *path,\n"
31820 "                  int64_t atsecs,\n"
31821 "                  int64_t atnsecs,\n"
31822 "                  int64_t mtsecs,\n"
31823 "                  int64_t mtnsecs);\n"
31824 "\n"
31825 msgstr ""
31826
31827 #. type: =head2
31828 #: ../src/guestfs-actions.pod:7461 ../src/guestfs-structs.pod:175
31829 msgid "guestfs_version"
31830 msgstr ""
31831
31832 #. type: verbatim
31833 #: ../src/guestfs-actions.pod:7463
31834 #, no-wrap
31835 msgid ""
31836 " struct guestfs_version *\n"
31837 " guestfs_version (guestfs_h *g);\n"
31838 "\n"
31839 msgstr ""
31840
31841 #. type: textblock
31842 #: ../src/guestfs-actions.pod:7491
31843 msgid ""
31844 "I<Note:> Don't use this call to test for availability of features.  In "
31845 "enterprise distributions we backport features from later versions into "
31846 "earlier versions, making this an unreliable way to test for features.  Use "
31847 "C<guestfs_available> instead."
31848 msgstr ""
31849
31850 #. type: textblock
31851 #: ../src/guestfs-actions.pod:7497
31852 msgid ""
31853 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31854 "error.  I<The caller must call C<guestfs_free_version> after use>."
31855 msgstr ""
31856
31857 #. type: textblock
31858 #: ../src/guestfs-actions.pod:7501
31859 msgid "(Added in 1.0.58)"
31860 msgstr ""
31861
31862 #. type: =head2
31863 #: ../src/guestfs-actions.pod:7503
31864 msgid "guestfs_vfs_label"
31865 msgstr ""
31866
31867 #. type: verbatim
31868 #: ../src/guestfs-actions.pod:7505
31869 #, no-wrap
31870 msgid ""
31871 " char *\n"
31872 " guestfs_vfs_label (guestfs_h *g,\n"
31873 "                    const char *device);\n"
31874 "\n"
31875 msgstr ""
31876
31877 #. type: textblock
31878 #: ../src/guestfs-actions.pod:7514
31879 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31880 msgstr ""
31881
31882 #. type: textblock
31883 #: ../src/guestfs-actions.pod:7519 ../src/guestfs-actions.pod:7556
31884 msgid "(Added in 1.3.18)"
31885 msgstr ""
31886
31887 #. type: =head2
31888 #: ../src/guestfs-actions.pod:7521
31889 msgid "guestfs_vfs_type"
31890 msgstr ""
31891
31892 #. type: verbatim
31893 #: ../src/guestfs-actions.pod:7523
31894 #, no-wrap
31895 msgid ""
31896 " char *\n"
31897 " guestfs_vfs_type (guestfs_h *g,\n"
31898 "                   const char *device);\n"
31899 "\n"
31900 msgstr ""
31901
31902 #. type: =head2
31903 #: ../src/guestfs-actions.pod:7540
31904 msgid "guestfs_vfs_uuid"
31905 msgstr ""
31906
31907 #. type: verbatim
31908 #: ../src/guestfs-actions.pod:7542
31909 #, no-wrap
31910 msgid ""
31911 " char *\n"
31912 " guestfs_vfs_uuid (guestfs_h *g,\n"
31913 "                   const char *device);\n"
31914 "\n"
31915 msgstr ""
31916
31917 #. type: textblock
31918 #: ../src/guestfs-actions.pod:7551
31919 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31920 msgstr ""
31921
31922 #. type: =head2
31923 #: ../src/guestfs-actions.pod:7558
31924 msgid "guestfs_vg_activate"
31925 msgstr ""
31926
31927 #. type: verbatim
31928 #: ../src/guestfs-actions.pod:7560
31929 #, no-wrap
31930 msgid ""
31931 " int\n"
31932 " guestfs_vg_activate (guestfs_h *g,\n"
31933 "                      int activate,\n"
31934 "                      char *const *volgroups);\n"
31935 "\n"
31936 msgstr ""
31937
31938 #. type: =head2
31939 #: ../src/guestfs-actions.pod:7577
31940 msgid "guestfs_vg_activate_all"
31941 msgstr ""
31942
31943 #. type: verbatim
31944 #: ../src/guestfs-actions.pod:7579
31945 #, no-wrap
31946 msgid ""
31947 " int\n"
31948 " guestfs_vg_activate_all (guestfs_h *g,\n"
31949 "                          int activate);\n"
31950 "\n"
31951 msgstr ""
31952
31953 #. type: =head2
31954 #: ../src/guestfs-actions.pod:7592
31955 msgid "guestfs_vgcreate"
31956 msgstr ""
31957
31958 #. type: verbatim
31959 #: ../src/guestfs-actions.pod:7594
31960 #, no-wrap
31961 msgid ""
31962 " int\n"
31963 " guestfs_vgcreate (guestfs_h *g,\n"
31964 "                   const char *volgroup,\n"
31965 "                   char *const *physvols);\n"
31966 "\n"
31967 msgstr ""
31968
31969 #. type: =head2
31970 #: ../src/guestfs-actions.pod:7606
31971 msgid "guestfs_vglvuuids"
31972 msgstr ""
31973
31974 #. type: verbatim
31975 #: ../src/guestfs-actions.pod:7608
31976 #, no-wrap
31977 msgid ""
31978 " char **\n"
31979 " guestfs_vglvuuids (guestfs_h *g,\n"
31980 "                    const char *vgname);\n"
31981 "\n"
31982 msgstr ""
31983
31984 #. type: textblock
31985 #: ../src/guestfs-actions.pod:7615
31986 msgid ""
31987 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31988 "associate logical volumes and volume groups."
31989 msgstr ""
31990
31991 #. type: textblock
31992 #: ../src/guestfs-actions.pod:7618
31993 msgid "See also C<guestfs_vgpvuuids>."
31994 msgstr ""
31995
31996 #. type: =head2
31997 #: ../src/guestfs-actions.pod:7626
31998 msgid "guestfs_vgpvuuids"
31999 msgstr ""
32000
32001 #. type: verbatim
32002 #: ../src/guestfs-actions.pod:7628
32003 #, no-wrap
32004 msgid ""
32005 " char **\n"
32006 " guestfs_vgpvuuids (guestfs_h *g,\n"
32007 "                    const char *vgname);\n"
32008 "\n"
32009 msgstr ""
32010
32011 #. type: textblock
32012 #: ../src/guestfs-actions.pod:7635
32013 msgid ""
32014 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
32015 "associate physical volumes and volume groups."
32016 msgstr ""
32017
32018 #. type: textblock
32019 #: ../src/guestfs-actions.pod:7638
32020 msgid "See also C<guestfs_vglvuuids>."
32021 msgstr ""
32022
32023 #. type: =head2
32024 #: ../src/guestfs-actions.pod:7646
32025 msgid "guestfs_vgremove"
32026 msgstr ""
32027
32028 #. type: verbatim
32029 #: ../src/guestfs-actions.pod:7648
32030 #, no-wrap
32031 msgid ""
32032 " int\n"
32033 " guestfs_vgremove (guestfs_h *g,\n"
32034 "                   const char *vgname);\n"
32035 "\n"
32036 msgstr ""
32037
32038 #. type: =head2
32039 #: ../src/guestfs-actions.pod:7661
32040 msgid "guestfs_vgrename"
32041 msgstr ""
32042
32043 #. type: verbatim
32044 #: ../src/guestfs-actions.pod:7663
32045 #, no-wrap
32046 msgid ""
32047 " int\n"
32048 " guestfs_vgrename (guestfs_h *g,\n"
32049 "                   const char *volgroup,\n"
32050 "                   const char *newvolgroup);\n"
32051 "\n"
32052 msgstr ""
32053
32054 #. type: =head2
32055 #: ../src/guestfs-actions.pod:7674
32056 msgid "guestfs_vgs"
32057 msgstr ""
32058
32059 #. type: verbatim
32060 #: ../src/guestfs-actions.pod:7676
32061 #, no-wrap
32062 msgid ""
32063 " char **\n"
32064 " guestfs_vgs (guestfs_h *g);\n"
32065 "\n"
32066 msgstr ""
32067
32068 #. type: textblock
32069 #: ../src/guestfs-actions.pod:7685
32070 msgid "See also C<guestfs_vgs_full>."
32071 msgstr ""
32072
32073 #. type: =head2
32074 #: ../src/guestfs-actions.pod:7693
32075 msgid "guestfs_vgs_full"
32076 msgstr ""
32077
32078 #. type: verbatim
32079 #: ../src/guestfs-actions.pod:7695
32080 #, no-wrap
32081 msgid ""
32082 " struct guestfs_lvm_vg_list *\n"
32083 " guestfs_vgs_full (guestfs_h *g);\n"
32084 "\n"
32085 msgstr ""
32086
32087 #. type: textblock
32088 #: ../src/guestfs-actions.pod:7701
32089 msgid ""
32090 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
32091 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
32092 msgstr ""
32093
32094 #. type: =head2
32095 #: ../src/guestfs-actions.pod:7707
32096 msgid "guestfs_vgscan"
32097 msgstr ""
32098
32099 #. type: verbatim
32100 #: ../src/guestfs-actions.pod:7709
32101 #, no-wrap
32102 msgid ""
32103 " int\n"
32104 " guestfs_vgscan (guestfs_h *g);\n"
32105 "\n"
32106 msgstr ""
32107
32108 #. type: =head2
32109 #: ../src/guestfs-actions.pod:7719
32110 msgid "guestfs_vguuid"
32111 msgstr ""
32112
32113 #. type: verbatim
32114 #: ../src/guestfs-actions.pod:7721
32115 #, no-wrap
32116 msgid ""
32117 " char *\n"
32118 " guestfs_vguuid (guestfs_h *g,\n"
32119 "                 const char *vgname);\n"
32120 "\n"
32121 msgstr ""
32122
32123 #. type: =head2
32124 #: ../src/guestfs-actions.pod:7732
32125 msgid "guestfs_wait_ready"
32126 msgstr ""
32127
32128 #. type: verbatim
32129 #: ../src/guestfs-actions.pod:7734
32130 #, no-wrap
32131 msgid ""
32132 " int\n"
32133 " guestfs_wait_ready (guestfs_h *g);\n"
32134 "\n"
32135 msgstr ""
32136
32137 #. type: textblock
32138 #: ../src/guestfs-actions.pod:7737
32139 msgid ""
32140 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
32141 "instead."
32142 msgstr ""
32143
32144 #. type: textblock
32145 #: ../src/guestfs-actions.pod:7744
32146 msgid "This function is a no op."
32147 msgstr ""
32148
32149 #. type: textblock
32150 #: ../src/guestfs-actions.pod:7746
32151 msgid ""
32152 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
32153 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
32154 "is no longer necessary because C<guestfs_launch> now does the waiting."
32155 msgstr ""
32156
32157 #. type: textblock
32158 #: ../src/guestfs-actions.pod:7751
32159 msgid ""
32160 "If you see any calls to this function in code then you can just remove them, "
32161 "unless you want to retain compatibility with older versions of the API."
32162 msgstr ""
32163
32164 #. type: =head2
32165 #: ../src/guestfs-actions.pod:7759
32166 msgid "guestfs_wc_c"
32167 msgstr ""
32168
32169 #. type: verbatim
32170 #: ../src/guestfs-actions.pod:7761
32171 #, no-wrap
32172 msgid ""
32173 " int\n"
32174 " guestfs_wc_c (guestfs_h *g,\n"
32175 "               const char *path);\n"
32176 "\n"
32177 msgstr ""
32178
32179 #. type: =head2
32180 #: ../src/guestfs-actions.pod:7772
32181 msgid "guestfs_wc_l"
32182 msgstr ""
32183
32184 #. type: verbatim
32185 #: ../src/guestfs-actions.pod:7774
32186 #, no-wrap
32187 msgid ""
32188 " int\n"
32189 " guestfs_wc_l (guestfs_h *g,\n"
32190 "               const char *path);\n"
32191 "\n"
32192 msgstr ""
32193
32194 #. type: =head2
32195 #: ../src/guestfs-actions.pod:7785
32196 msgid "guestfs_wc_w"
32197 msgstr ""
32198
32199 #. type: verbatim
32200 #: ../src/guestfs-actions.pod:7787
32201 #, no-wrap
32202 msgid ""
32203 " int\n"
32204 " guestfs_wc_w (guestfs_h *g,\n"
32205 "               const char *path);\n"
32206 "\n"
32207 msgstr ""
32208
32209 #. type: =head2
32210 #: ../src/guestfs-actions.pod:7798
32211 msgid "guestfs_write"
32212 msgstr ""
32213
32214 #. type: verbatim
32215 #: ../src/guestfs-actions.pod:7800
32216 #, no-wrap
32217 msgid ""
32218 " int\n"
32219 " guestfs_write (guestfs_h *g,\n"
32220 "                const char *path,\n"
32221 "                const char *content,\n"
32222 "                size_t content_size);\n"
32223 "\n"
32224 msgstr ""
32225
32226 #. type: textblock
32227 #: ../src/guestfs-actions.pod:7809
32228 msgid "See also C<guestfs_write_append>."
32229 msgstr ""
32230
32231 #. type: =head2
32232 #: ../src/guestfs-actions.pod:7818
32233 msgid "guestfs_write_append"
32234 msgstr ""
32235
32236 #. type: verbatim
32237 #: ../src/guestfs-actions.pod:7820
32238 #, no-wrap
32239 msgid ""
32240 " int\n"
32241 " guestfs_write_append (guestfs_h *g,\n"
32242 "                       const char *path,\n"
32243 "                       const char *content,\n"
32244 "                       size_t content_size);\n"
32245 "\n"
32246 msgstr ""
32247
32248 #. type: textblock
32249 #: ../src/guestfs-actions.pod:7829
32250 msgid "See also C<guestfs_write>."
32251 msgstr ""
32252
32253 #. type: =head2
32254 #: ../src/guestfs-actions.pod:7838
32255 msgid "guestfs_write_file"
32256 msgstr "guestfs_write_file"
32257
32258 #. type: verbatim
32259 #: ../src/guestfs-actions.pod:7840
32260 #, no-wrap
32261 msgid ""
32262 " int\n"
32263 " guestfs_write_file (guestfs_h *g,\n"
32264 "                     const char *path,\n"
32265 "                     const char *content,\n"
32266 "                     int size);\n"
32267 "\n"
32268 msgstr ""
32269 " int\n"
32270 " guestfs_write_file (guestfs_h *g,\n"
32271 "                     const char *path,\n"
32272 "                     const char *content,\n"
32273 "                     int size);\n"
32274 "\n"
32275
32276 #. type: textblock
32277 #: ../src/guestfs-actions.pod:7846
32278 msgid ""
32279 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
32280 "instead."
32281 msgstr ""
32282
32283 #. type: =head2
32284 #: ../src/guestfs-actions.pod:7871
32285 msgid "guestfs_zegrep"
32286 msgstr "guestfs_zegrep"
32287
32288 #. type: verbatim
32289 #: ../src/guestfs-actions.pod:7873
32290 #, no-wrap
32291 msgid ""
32292 " char **\n"
32293 " guestfs_zegrep (guestfs_h *g,\n"
32294 "                 const char *regex,\n"
32295 "                 const char *path);\n"
32296 "\n"
32297 msgstr ""
32298 " char **\n"
32299 " guestfs_zegrep (guestfs_h *g,\n"
32300 "                 const char *regex,\n"
32301 "                 const char *path);\n"
32302 "\n"
32303
32304 #. type: =head2
32305 #: ../src/guestfs-actions.pod:7890
32306 msgid "guestfs_zegrepi"
32307 msgstr "guestfs_zegrepi"
32308
32309 #. type: verbatim
32310 #: ../src/guestfs-actions.pod:7892
32311 #, no-wrap
32312 msgid ""
32313 " char **\n"
32314 " guestfs_zegrepi (guestfs_h *g,\n"
32315 "                  const char *regex,\n"
32316 "                  const char *path);\n"
32317 "\n"
32318 msgstr ""
32319 " char **\n"
32320 " guestfs_zegrepi (guestfs_h *g,\n"
32321 "                  const char *regex,\n"
32322 "                  const char *path);\n"
32323 "\n"
32324
32325 #. type: =head2
32326 #: ../src/guestfs-actions.pod:7909
32327 msgid "guestfs_zero"
32328 msgstr "guestfs_zero"
32329
32330 #. type: verbatim
32331 #: ../src/guestfs-actions.pod:7911
32332 #, no-wrap
32333 msgid ""
32334 " int\n"
32335 " guestfs_zero (guestfs_h *g,\n"
32336 "               const char *device);\n"
32337 "\n"
32338 msgstr ""
32339 " int\n"
32340 " guestfs_zero (guestfs_h *g,\n"
32341 "               const char *device);\n"
32342 "\n"
32343
32344 #. type: textblock
32345 #: ../src/guestfs-actions.pod:7925
32346 msgid ""
32347 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
32348 "C<guestfs_is_zero_device>"
32349 msgstr ""
32350
32351 #. type: =head2
32352 #: ../src/guestfs-actions.pod:7937
32353 msgid "guestfs_zero_device"
32354 msgstr "guestfs_zero_device"
32355
32356 #. type: verbatim
32357 #: ../src/guestfs-actions.pod:7939
32358 #, no-wrap
32359 msgid ""
32360 " int\n"
32361 " guestfs_zero_device (guestfs_h *g,\n"
32362 "                      const char *device);\n"
32363 "\n"
32364 msgstr ""
32365 " int\n"
32366 " guestfs_zero_device (guestfs_h *g,\n"
32367 "                      const char *device);\n"
32368 "\n"
32369
32370 #. type: textblock
32371 #: ../src/guestfs-actions.pod:7943
32372 msgid ""
32373 "This command writes zeroes over the entire C<device>.  Compare with "
32374 "C<guestfs_zero> which just zeroes the first few blocks of a device."
32375 msgstr ""
32376
32377 #. type: textblock
32378 #: ../src/guestfs-actions.pod:7961
32379 msgid "(Added in 1.3.1)"
32380 msgstr "(Додано у 1.3.1)"
32381
32382 #. type: =head2
32383 #: ../src/guestfs-actions.pod:7963
32384 msgid "guestfs_zerofree"
32385 msgstr "guestfs_zerofree"
32386
32387 #. type: verbatim
32388 #: ../src/guestfs-actions.pod:7965
32389 #, no-wrap
32390 msgid ""
32391 " int\n"
32392 " guestfs_zerofree (guestfs_h *g,\n"
32393 "                   const char *device);\n"
32394 "\n"
32395 msgstr ""
32396 " int\n"
32397 " guestfs_zerofree (guestfs_h *g,\n"
32398 "                   const char *device);\n"
32399 "\n"
32400
32401 #. type: =head2
32402 #: ../src/guestfs-actions.pod:7984
32403 msgid "guestfs_zfgrep"
32404 msgstr "guestfs_zfgrep"
32405
32406 #. type: verbatim
32407 #: ../src/guestfs-actions.pod:7986
32408 #, no-wrap
32409 msgid ""
32410 " char **\n"
32411 " guestfs_zfgrep (guestfs_h *g,\n"
32412 "                 const char *pattern,\n"
32413 "                 const char *path);\n"
32414 "\n"
32415 msgstr ""
32416 " char **\n"
32417 " guestfs_zfgrep (guestfs_h *g,\n"
32418 "                 const char *pattern,\n"
32419 "                 const char *path);\n"
32420 "\n"
32421
32422 #. type: =head2
32423 #: ../src/guestfs-actions.pod:8003
32424 msgid "guestfs_zfgrepi"
32425 msgstr "guestfs_zfgrepi"
32426
32427 #. type: verbatim
32428 #: ../src/guestfs-actions.pod:8005
32429 #, no-wrap
32430 msgid ""
32431 " char **\n"
32432 " guestfs_zfgrepi (guestfs_h *g,\n"
32433 "                  const char *pattern,\n"
32434 "                  const char *path);\n"
32435 "\n"
32436 msgstr ""
32437 " char **\n"
32438 " guestfs_zfgrepi (guestfs_h *g,\n"
32439 "                  const char *pattern,\n"
32440 "                  const char *path);\n"
32441 "\n"
32442
32443 #. type: =head2
32444 #: ../src/guestfs-actions.pod:8022
32445 msgid "guestfs_zfile"
32446 msgstr "guestfs_zfile"
32447
32448 #. type: verbatim
32449 #: ../src/guestfs-actions.pod:8024
32450 #, no-wrap
32451 msgid ""
32452 " char *\n"
32453 " guestfs_zfile (guestfs_h *g,\n"
32454 "                const char *meth,\n"
32455 "                const char *path);\n"
32456 "\n"
32457 msgstr ""
32458 " char *\n"
32459 " guestfs_zfile (guestfs_h *g,\n"
32460 "                const char *meth,\n"
32461 "                const char *path);\n"
32462 "\n"
32463
32464 #. type: textblock
32465 #: ../src/guestfs-actions.pod:8029
32466 msgid ""
32467 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
32468 "instead."
32469 msgstr ""
32470
32471 #. type: textblock
32472 #: ../src/guestfs-actions.pod:8041
32473 msgid ""
32474 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
32475 "files."
32476 msgstr ""
32477
32478 #. type: =head2
32479 #: ../src/guestfs-actions.pod:8049
32480 msgid "guestfs_zgrep"
32481 msgstr "guestfs_zgrep"
32482
32483 #. type: verbatim
32484 #: ../src/guestfs-actions.pod:8051
32485 #, no-wrap
32486 msgid ""
32487 " char **\n"
32488 " guestfs_zgrep (guestfs_h *g,\n"
32489 "                const char *regex,\n"
32490 "                const char *path);\n"
32491 "\n"
32492 msgstr ""
32493 " char **\n"
32494 " guestfs_zgrep (guestfs_h *g,\n"
32495 "                const char *regex,\n"
32496 "                const char *path);\n"
32497 "\n"
32498
32499 #. type: =head2
32500 #: ../src/guestfs-actions.pod:8068
32501 msgid "guestfs_zgrepi"
32502 msgstr "guestfs_zgrepi"
32503
32504 #. type: verbatim
32505 #: ../src/guestfs-actions.pod:8070
32506 #, no-wrap
32507 msgid ""
32508 " char **\n"
32509 " guestfs_zgrepi (guestfs_h *g,\n"
32510 "                 const char *regex,\n"
32511 "                 const char *path);\n"
32512 "\n"
32513 msgstr ""
32514 " char **\n"
32515 " guestfs_zgrepi (guestfs_h *g,\n"
32516 "                 const char *regex,\n"
32517 "                 const char *path);\n"
32518 "\n"
32519
32520 #. type: =item
32521 #: ../src/guestfs-availability.pod:3
32522 msgid "B<augeas>"
32523 msgstr "B<augeas>"
32524
32525 #. type: textblock
32526 #: ../src/guestfs-availability.pod:5
32527 msgid ""
32528 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
32529 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
32530 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
32531 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
32532 "L</guestfs_aug_save> L</guestfs_aug_set>"
32533 msgstr ""
32534
32535 #. type: =item
32536 #: ../src/guestfs-availability.pod:21
32537 msgid "B<btrfs>"
32538 msgstr ""
32539
32540 #. type: textblock
32541 #: ../src/guestfs-availability.pod:23
32542 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
32543 msgstr ""
32544
32545 #. type: =item
32546 #: ../src/guestfs-availability.pod:26
32547 #, fuzzy
32548 #| msgid "B<scrub>"
32549 msgid "B<grub>"
32550 msgstr "B<scrub>"
32551
32552 #. type: textblock
32553 #: ../src/guestfs-availability.pod:28
32554 msgid "The following functions: L</guestfs_grub_install>"
32555 msgstr ""
32556
32557 #. type: =item
32558 #: ../src/guestfs-availability.pod:31
32559 msgid "B<inotify>"
32560 msgstr "B<inotify>"
32561
32562 #. type: textblock
32563 #: ../src/guestfs-availability.pod:33
32564 msgid ""
32565 "The following functions: L</guestfs_inotify_add_watch> L</"
32566 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
32567 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
32568 msgstr ""
32569
32570 #. type: =item
32571 #: ../src/guestfs-availability.pod:41
32572 msgid "B<linuxfsuuid>"
32573 msgstr "B<linuxfsuuid>"
32574
32575 #. type: textblock
32576 #: ../src/guestfs-availability.pod:43
32577 msgid ""
32578 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
32579 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
32580 msgstr ""
32581
32582 #. type: =item
32583 #: ../src/guestfs-availability.pod:50
32584 msgid "B<linuxmodules>"
32585 msgstr "B<linuxmodules>"
32586
32587 #. type: textblock
32588 #: ../src/guestfs-availability.pod:52
32589 msgid "The following functions: L</guestfs_modprobe>"
32590 msgstr ""
32591
32592 #. type: =item
32593 #: ../src/guestfs-availability.pod:55
32594 msgid "B<linuxxattrs>"
32595 msgstr "B<linuxxattrs>"
32596
32597 #. type: textblock
32598 #: ../src/guestfs-availability.pod:57
32599 msgid ""
32600 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
32601 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
32602 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
32603 "guestfs_setxattr>"
32604 msgstr ""
32605
32606 #. type: =item
32607 #: ../src/guestfs-availability.pod:68
32608 msgid "B<luks>"
32609 msgstr "B<luks>"
32610
32611 #. type: textblock
32612 #: ../src/guestfs-availability.pod:70
32613 msgid ""
32614 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
32615 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
32616 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
32617 msgstr ""
32618
32619 #. type: =item
32620 #: ../src/guestfs-availability.pod:79
32621 msgid "B<lvm2>"
32622 msgstr "B<lvm2>"
32623
32624 #. type: textblock
32625 #: ../src/guestfs-availability.pod:81
32626 msgid ""
32627 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
32628 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
32629 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
32630 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
32631 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
32632 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
32633 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
32634 msgstr ""
32635
32636 #. type: =item
32637 #: ../src/guestfs-availability.pod:104
32638 msgid "B<mknod>"
32639 msgstr "B<mknod>"
32640
32641 #. type: textblock
32642 #: ../src/guestfs-availability.pod:106
32643 msgid ""
32644 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
32645 "guestfs_mknod_b> L</guestfs_mknod_c>"
32646 msgstr ""
32647
32648 #. type: =item
32649 #: ../src/guestfs-availability.pod:112
32650 msgid "B<ntfs3g>"
32651 msgstr "B<ntfs3g>"
32652
32653 #. type: textblock
32654 #: ../src/guestfs-availability.pod:114
32655 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
32656 msgstr ""
32657
32658 #. type: =item
32659 #: ../src/guestfs-availability.pod:117
32660 msgid "B<ntfsprogs>"
32661 msgstr "B<ntfsprogs>"
32662
32663 #. type: textblock
32664 #: ../src/guestfs-availability.pod:119
32665 msgid ""
32666 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
32667 "L</guestfs_ntfsresize_size>"
32668 msgstr ""
32669
32670 #. type: =item
32671 #: ../src/guestfs-availability.pod:124
32672 msgid "B<realpath>"
32673 msgstr "B<realpath>"
32674
32675 #. type: textblock
32676 #: ../src/guestfs-availability.pod:126
32677 msgid "The following functions: L</guestfs_realpath>"
32678 msgstr ""
32679
32680 #. type: =item
32681 #: ../src/guestfs-availability.pod:129
32682 msgid "B<scrub>"
32683 msgstr "B<scrub>"
32684
32685 #. type: textblock
32686 #: ../src/guestfs-availability.pod:131
32687 msgid ""
32688 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
32689 "guestfs_scrub_freespace>"
32690 msgstr ""
32691
32692 #. type: =item
32693 #: ../src/guestfs-availability.pod:136
32694 msgid "B<selinux>"
32695 msgstr "B<selinux>"
32696
32697 #. type: textblock
32698 #: ../src/guestfs-availability.pod:138
32699 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
32700 msgstr ""
32701
32702 #. type: =item
32703 #: ../src/guestfs-availability.pod:142
32704 msgid "B<xz>"
32705 msgstr "B<xz>"
32706
32707 #. type: textblock
32708 #: ../src/guestfs-availability.pod:144
32709 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
32710 msgstr ""
32711
32712 #. type: =item
32713 #: ../src/guestfs-availability.pod:148
32714 msgid "B<zerofree>"
32715 msgstr "B<zerofree>"
32716
32717 #. type: textblock
32718 #: ../src/guestfs-availability.pod:150
32719 msgid "The following functions: L</guestfs_zerofree>"
32720 msgstr ""
32721
32722 #. type: =head2
32723 #: ../src/guestfs-structs.pod:1
32724 msgid "guestfs_int_bool"
32725 msgstr ""
32726
32727 #. type: verbatim
32728 #: ../src/guestfs-structs.pod:3
32729 #, no-wrap
32730 msgid ""
32731 " struct guestfs_int_bool {\n"
32732 "   int32_t i;\n"
32733 "   int32_t b;\n"
32734 " };\n"
32735 " \n"
32736 msgstr ""
32737
32738 #. type: verbatim
32739 #: ../src/guestfs-structs.pod:8
32740 #, no-wrap
32741 msgid ""
32742 " struct guestfs_int_bool_list {\n"
32743 "   uint32_t len; /* Number of elements in list. */\n"
32744 "   struct guestfs_int_bool *val; /* Elements. */\n"
32745 " };\n"
32746 " \n"
32747 msgstr ""
32748
32749 #. type: verbatim
32750 #: ../src/guestfs-structs.pod:13
32751 #, no-wrap
32752 msgid ""
32753 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
32754 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
32755 "\n"
32756 msgstr ""
32757
32758 #. type: =head2
32759 #: ../src/guestfs-structs.pod:16
32760 msgid "guestfs_lvm_pv"
32761 msgstr ""
32762
32763 #. type: verbatim
32764 #: ../src/guestfs-structs.pod:18
32765 #, no-wrap
32766 msgid ""
32767 " struct guestfs_lvm_pv {\n"
32768 "   char *pv_name;\n"
32769 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32770 "   char pv_uuid[32];\n"
32771 "   char *pv_fmt;\n"
32772 "   uint64_t pv_size;\n"
32773 "   uint64_t dev_size;\n"
32774 "   uint64_t pv_free;\n"
32775 "   uint64_t pv_used;\n"
32776 "   char *pv_attr;\n"
32777 "   int64_t pv_pe_count;\n"
32778 "   int64_t pv_pe_alloc_count;\n"
32779 "   char *pv_tags;\n"
32780 "   uint64_t pe_start;\n"
32781 "   int64_t pv_mda_count;\n"
32782 "   uint64_t pv_mda_free;\n"
32783 " };\n"
32784 " \n"
32785 msgstr ""
32786
32787 #. type: verbatim
32788 #: ../src/guestfs-structs.pod:36
32789 #, no-wrap
32790 msgid ""
32791 " struct guestfs_lvm_pv_list {\n"
32792 "   uint32_t len; /* Number of elements in list. */\n"
32793 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
32794 " };\n"
32795 " \n"
32796 msgstr ""
32797
32798 #. type: verbatim
32799 #: ../src/guestfs-structs.pod:41
32800 #, no-wrap
32801 msgid ""
32802 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32803 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32804 "\n"
32805 msgstr ""
32806
32807 #. type: =head2
32808 #: ../src/guestfs-structs.pod:44
32809 msgid "guestfs_lvm_vg"
32810 msgstr ""
32811
32812 #. type: verbatim
32813 #: ../src/guestfs-structs.pod:46
32814 #, no-wrap
32815 msgid ""
32816 " struct guestfs_lvm_vg {\n"
32817 "   char *vg_name;\n"
32818 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32819 "   char vg_uuid[32];\n"
32820 "   char *vg_fmt;\n"
32821 "   char *vg_attr;\n"
32822 "   uint64_t vg_size;\n"
32823 "   uint64_t vg_free;\n"
32824 "   char *vg_sysid;\n"
32825 "   uint64_t vg_extent_size;\n"
32826 "   int64_t vg_extent_count;\n"
32827 "   int64_t vg_free_count;\n"
32828 "   int64_t max_lv;\n"
32829 "   int64_t max_pv;\n"
32830 "   int64_t pv_count;\n"
32831 "   int64_t lv_count;\n"
32832 "   int64_t snap_count;\n"
32833 "   int64_t vg_seqno;\n"
32834 "   char *vg_tags;\n"
32835 "   int64_t vg_mda_count;\n"
32836 "   uint64_t vg_mda_free;\n"
32837 " };\n"
32838 " \n"
32839 msgstr ""
32840
32841 #. type: verbatim
32842 #: ../src/guestfs-structs.pod:69
32843 #, no-wrap
32844 msgid ""
32845 " struct guestfs_lvm_vg_list {\n"
32846 "   uint32_t len; /* Number of elements in list. */\n"
32847 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
32848 " };\n"
32849 " \n"
32850 msgstr ""
32851
32852 #. type: verbatim
32853 #: ../src/guestfs-structs.pod:74
32854 #, no-wrap
32855 msgid ""
32856 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32857 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32858 "\n"
32859 msgstr ""
32860
32861 #. type: =head2
32862 #: ../src/guestfs-structs.pod:77
32863 msgid "guestfs_lvm_lv"
32864 msgstr ""
32865
32866 #. type: verbatim
32867 #: ../src/guestfs-structs.pod:79
32868 #, no-wrap
32869 msgid ""
32870 " struct guestfs_lvm_lv {\n"
32871 "   char *lv_name;\n"
32872 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32873 "   char lv_uuid[32];\n"
32874 "   char *lv_attr;\n"
32875 "   int64_t lv_major;\n"
32876 "   int64_t lv_minor;\n"
32877 "   int64_t lv_kernel_major;\n"
32878 "   int64_t lv_kernel_minor;\n"
32879 "   uint64_t lv_size;\n"
32880 "   int64_t seg_count;\n"
32881 "   char *origin;\n"
32882 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32883 "   float snap_percent;\n"
32884 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32885 "   float copy_percent;\n"
32886 "   char *move_pv;\n"
32887 "   char *lv_tags;\n"
32888 "   char *mirror_log;\n"
32889 "   char *modules;\n"
32890 " };\n"
32891 " \n"
32892 msgstr ""
32893
32894 #. type: verbatim
32895 #: ../src/guestfs-structs.pod:101
32896 #, no-wrap
32897 msgid ""
32898 " struct guestfs_lvm_lv_list {\n"
32899 "   uint32_t len; /* Number of elements in list. */\n"
32900 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
32901 " };\n"
32902 " \n"
32903 msgstr ""
32904
32905 #. type: verbatim
32906 #: ../src/guestfs-structs.pod:106
32907 #, no-wrap
32908 msgid ""
32909 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32910 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32911 "\n"
32912 msgstr ""
32913
32914 #. type: verbatim
32915 #: ../src/guestfs-structs.pod:111
32916 #, no-wrap
32917 msgid ""
32918 " struct guestfs_stat {\n"
32919 "   int64_t dev;\n"
32920 "   int64_t ino;\n"
32921 "   int64_t mode;\n"
32922 "   int64_t nlink;\n"
32923 "   int64_t uid;\n"
32924 "   int64_t gid;\n"
32925 "   int64_t rdev;\n"
32926 "   int64_t size;\n"
32927 "   int64_t blksize;\n"
32928 "   int64_t blocks;\n"
32929 "   int64_t atime;\n"
32930 "   int64_t mtime;\n"
32931 "   int64_t ctime;\n"
32932 " };\n"
32933 " \n"
32934 msgstr ""
32935
32936 #. type: verbatim
32937 #: ../src/guestfs-structs.pod:127
32938 #, no-wrap
32939 msgid ""
32940 " struct guestfs_stat_list {\n"
32941 "   uint32_t len; /* Number of elements in list. */\n"
32942 "   struct guestfs_stat *val; /* Elements. */\n"
32943 " };\n"
32944 " \n"
32945 msgstr ""
32946
32947 #. type: verbatim
32948 #: ../src/guestfs-structs.pod:132
32949 #, no-wrap
32950 msgid ""
32951 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32952 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32953 "\n"
32954 msgstr ""
32955
32956 #. type: verbatim
32957 #: ../src/guestfs-structs.pod:137
32958 #, no-wrap
32959 msgid ""
32960 " struct guestfs_statvfs {\n"
32961 "   int64_t bsize;\n"
32962 "   int64_t frsize;\n"
32963 "   int64_t blocks;\n"
32964 "   int64_t bfree;\n"
32965 "   int64_t bavail;\n"
32966 "   int64_t files;\n"
32967 "   int64_t ffree;\n"
32968 "   int64_t favail;\n"
32969 "   int64_t fsid;\n"
32970 "   int64_t flag;\n"
32971 "   int64_t namemax;\n"
32972 " };\n"
32973 " \n"
32974 msgstr ""
32975
32976 #. type: verbatim
32977 #: ../src/guestfs-structs.pod:151
32978 #, no-wrap
32979 msgid ""
32980 " struct guestfs_statvfs_list {\n"
32981 "   uint32_t len; /* Number of elements in list. */\n"
32982 "   struct guestfs_statvfs *val; /* Elements. */\n"
32983 " };\n"
32984 " \n"
32985 msgstr ""
32986
32987 #. type: verbatim
32988 #: ../src/guestfs-structs.pod:156
32989 #, no-wrap
32990 msgid ""
32991 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32992 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32993 "\n"
32994 msgstr ""
32995
32996 #. type: =head2
32997 #: ../src/guestfs-structs.pod:159
32998 msgid "guestfs_dirent"
32999 msgstr ""
33000
33001 #. type: verbatim
33002 #: ../src/guestfs-structs.pod:161
33003 #, no-wrap
33004 msgid ""
33005 " struct guestfs_dirent {\n"
33006 "   int64_t ino;\n"
33007 "   char ftyp;\n"
33008 "   char *name;\n"
33009 " };\n"
33010 " \n"
33011 msgstr ""
33012
33013 #. type: verbatim
33014 #: ../src/guestfs-structs.pod:167
33015 #, no-wrap
33016 msgid ""
33017 " struct guestfs_dirent_list {\n"
33018 "   uint32_t len; /* Number of elements in list. */\n"
33019 "   struct guestfs_dirent *val; /* Elements. */\n"
33020 " };\n"
33021 " \n"
33022 msgstr ""
33023
33024 #. type: verbatim
33025 #: ../src/guestfs-structs.pod:172
33026 #, no-wrap
33027 msgid ""
33028 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
33029 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
33030 "\n"
33031 msgstr ""
33032
33033 #. type: verbatim
33034 #: ../src/guestfs-structs.pod:177
33035 #, no-wrap
33036 msgid ""
33037 " struct guestfs_version {\n"
33038 "   int64_t major;\n"
33039 "   int64_t minor;\n"
33040 "   int64_t release;\n"
33041 "   char *extra;\n"
33042 " };\n"
33043 " \n"
33044 msgstr ""
33045
33046 #. type: verbatim
33047 #: ../src/guestfs-structs.pod:184
33048 #, no-wrap
33049 msgid ""
33050 " struct guestfs_version_list {\n"
33051 "   uint32_t len; /* Number of elements in list. */\n"
33052 "   struct guestfs_version *val; /* Elements. */\n"
33053 " };\n"
33054 " \n"
33055 msgstr ""
33056
33057 #. type: verbatim
33058 #: ../src/guestfs-structs.pod:189
33059 #, no-wrap
33060 msgid ""
33061 " void guestfs_free_version (struct guestfs_free_version *);\n"
33062 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
33063 "\n"
33064 msgstr ""
33065
33066 #. type: =head2
33067 #: ../src/guestfs-structs.pod:192
33068 msgid "guestfs_xattr"
33069 msgstr ""
33070
33071 #. type: verbatim
33072 #: ../src/guestfs-structs.pod:194
33073 #, no-wrap
33074 msgid ""
33075 " struct guestfs_xattr {\n"
33076 "   char *attrname;\n"
33077 "   /* The next two fields describe a byte array. */\n"
33078 "   uint32_t attrval_len;\n"
33079 "   char *attrval;\n"
33080 " };\n"
33081 " \n"
33082 msgstr ""
33083
33084 #. type: verbatim
33085 #: ../src/guestfs-structs.pod:201
33086 #, no-wrap
33087 msgid ""
33088 " struct guestfs_xattr_list {\n"
33089 "   uint32_t len; /* Number of elements in list. */\n"
33090 "   struct guestfs_xattr *val; /* Elements. */\n"
33091 " };\n"
33092 " \n"
33093 msgstr ""
33094
33095 #. type: verbatim
33096 #: ../src/guestfs-structs.pod:206
33097 #, no-wrap
33098 msgid ""
33099 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
33100 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
33101 "\n"
33102 msgstr ""
33103
33104 #. type: =head2
33105 #: ../src/guestfs-structs.pod:209
33106 msgid "guestfs_inotify_event"
33107 msgstr ""
33108
33109 #. type: verbatim
33110 #: ../src/guestfs-structs.pod:211
33111 #, no-wrap
33112 msgid ""
33113 " struct guestfs_inotify_event {\n"
33114 "   int64_t in_wd;\n"
33115 "   uint32_t in_mask;\n"
33116 "   uint32_t in_cookie;\n"
33117 "   char *in_name;\n"
33118 " };\n"
33119 " \n"
33120 msgstr ""
33121
33122 #. type: verbatim
33123 #: ../src/guestfs-structs.pod:218
33124 #, no-wrap
33125 msgid ""
33126 " struct guestfs_inotify_event_list {\n"
33127 "   uint32_t len; /* Number of elements in list. */\n"
33128 "   struct guestfs_inotify_event *val; /* Elements. */\n"
33129 " };\n"
33130 " \n"
33131 msgstr ""
33132
33133 #. type: verbatim
33134 #: ../src/guestfs-structs.pod:223
33135 #, no-wrap
33136 msgid ""
33137 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
33138 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
33139 "\n"
33140 msgstr ""
33141
33142 #. type: =head2
33143 #: ../src/guestfs-structs.pod:226
33144 msgid "guestfs_partition"
33145 msgstr ""
33146
33147 #. type: verbatim
33148 #: ../src/guestfs-structs.pod:228
33149 #, no-wrap
33150 msgid ""
33151 " struct guestfs_partition {\n"
33152 "   int32_t part_num;\n"
33153 "   uint64_t part_start;\n"
33154 "   uint64_t part_end;\n"
33155 "   uint64_t part_size;\n"
33156 " };\n"
33157 " \n"
33158 msgstr ""
33159
33160 #. type: verbatim
33161 #: ../src/guestfs-structs.pod:235
33162 #, no-wrap
33163 msgid ""
33164 " struct guestfs_partition_list {\n"
33165 "   uint32_t len; /* Number of elements in list. */\n"
33166 "   struct guestfs_partition *val; /* Elements. */\n"
33167 " };\n"
33168 " \n"
33169 msgstr ""
33170
33171 #. type: verbatim
33172 #: ../src/guestfs-structs.pod:240
33173 #, no-wrap
33174 msgid ""
33175 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
33176 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
33177 "\n"
33178 msgstr ""
33179
33180 #. type: =head2
33181 #: ../src/guestfs-structs.pod:243
33182 msgid "guestfs_application"
33183 msgstr ""
33184
33185 #. type: verbatim
33186 #: ../src/guestfs-structs.pod:245
33187 #, no-wrap
33188 msgid ""
33189 " struct guestfs_application {\n"
33190 "   char *app_name;\n"
33191 "   char *app_display_name;\n"
33192 "   int32_t app_epoch;\n"
33193 "   char *app_version;\n"
33194 "   char *app_release;\n"
33195 "   char *app_install_path;\n"
33196 "   char *app_trans_path;\n"
33197 "   char *app_publisher;\n"
33198 "   char *app_url;\n"
33199 "   char *app_source_package;\n"
33200 "   char *app_summary;\n"
33201 "   char *app_description;\n"
33202 " };\n"
33203 " \n"
33204 msgstr ""
33205
33206 #. type: verbatim
33207 #: ../src/guestfs-structs.pod:260
33208 #, no-wrap
33209 msgid ""
33210 " struct guestfs_application_list {\n"
33211 "   uint32_t len; /* Number of elements in list. */\n"
33212 "   struct guestfs_application *val; /* Elements. */\n"
33213 " };\n"
33214 " \n"
33215 msgstr ""
33216
33217 #. type: verbatim
33218 #: ../src/guestfs-structs.pod:265
33219 #, no-wrap
33220 msgid ""
33221 " void guestfs_free_application (struct guestfs_free_application *);\n"
33222 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
33223 "\n"
33224 msgstr ""
33225
33226 #. type: textblock
33227 #: ../src/guestfs.pod:5
33228 msgid "guestfs - Library for accessing and modifying virtual machine images"
33229 msgstr ""
33230 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
33231 "машин"
33232
33233 #. type: verbatim
33234 #: ../src/guestfs.pod:11
33235 #, no-wrap
33236 msgid ""
33237 " guestfs_h *g = guestfs_create ();\n"
33238 " guestfs_add_drive (g, \"guest.img\");\n"
33239 " guestfs_launch (g);\n"
33240 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33241 " guestfs_touch (g, \"/hello\");\n"
33242 " guestfs_umount (g, \"/\");\n"
33243 " guestfs_close (g);\n"
33244 "\n"
33245 msgstr ""
33246 " guestfs_h *g = guestfs_create ();\n"
33247 " guestfs_add_drive (g, \"guest.img\");\n"
33248 " guestfs_launch (g);\n"
33249 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33250 " guestfs_touch (g, \"/hello\");\n"
33251 " guestfs_umount (g, \"/\");\n"
33252 " guestfs_close (g);\n"
33253 "\n"
33254
33255 #. type: textblock
33256 #: ../src/guestfs.pod:25
33257 msgid ""
33258 "Libguestfs is a library for accessing and modifying guest disk images.  "
33259 "Amongst the things this is good for: making batch configuration changes to "
33260 "guests, getting disk used/free statistics (see also: virt-df), migrating "
33261 "between virtualization systems (see also: virt-p2v), performing partial "
33262 "backups, performing partial guest clones, cloning guests and changing "
33263 "registry/UUID/hostname info, and much else besides."
33264 msgstr ""
33265
33266 #. type: textblock
33267 #: ../src/guestfs.pod:33
33268 msgid ""
33269 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
33270 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
33271 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
33272 "qcow2, vmdk."
33273 msgstr ""
33274
33275 #. type: textblock
33276 #: ../src/guestfs.pod:38
33277 msgid ""
33278 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
33279 "what filesystem is in each LV, etc.).  It can also run commands in the "
33280 "context of the guest.  Also you can access filesystems over FUSE."
33281 msgstr ""
33282
33283 #. type: textblock
33284 #: ../src/guestfs.pod:43
33285 msgid ""
33286 "Libguestfs is a library that can be linked with C and C++ management "
33287 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
33288 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
33289 "command line."
33290 msgstr ""
33291
33292 #. type: textblock
33293 #: ../src/guestfs.pod:48
33294 msgid ""
33295 "You don't need to be root to use libguestfs, although obviously you do need "
33296 "enough permissions to access the disk images."
33297 msgstr ""
33298
33299 #. type: textblock
33300 #: ../src/guestfs.pod:51
33301 msgid ""
33302 "Libguestfs is a large API because it can do many things.  For a gentle "
33303 "introduction, please read the L</API OVERVIEW> section next."
33304 msgstr ""
33305
33306 #. type: textblock
33307 #: ../src/guestfs.pod:54
33308 msgid ""
33309 "There are also some example programs in the L<guestfs-examples(3)> manual "
33310 "page."
33311 msgstr ""
33312
33313 #. type: =head1
33314 #: ../src/guestfs.pod:57
33315 msgid "API OVERVIEW"
33316 msgstr "ОГЛЯД API"
33317
33318 #. type: textblock
33319 #: ../src/guestfs.pod:59
33320 msgid ""
33321 "This section provides a gentler overview of the libguestfs API.  We also try "
33322 "to group API calls together, where that may not be obvious from reading "
33323 "about the individual calls in the main section of this manual."
33324 msgstr ""
33325
33326 #. type: =head2
33327 #: ../src/guestfs.pod:64
33328 msgid "HANDLES"
33329 msgstr "ОБРОБНИКИ"
33330
33331 #. type: textblock
33332 #: ../src/guestfs.pod:66
33333 msgid ""
33334 "Before you can use libguestfs calls, you have to create a handle.  Then you "
33335 "must add at least one disk image to the handle, followed by launching the "
33336 "handle, then performing whatever operations you want, and finally closing "
33337 "the handle.  By convention we use the single letter C<g> for the name of the "
33338 "handle variable, although of course you can use any name you want."
33339 msgstr ""
33340
33341 #. type: textblock
33342 #: ../src/guestfs.pod:73
33343 msgid "The general structure of all libguestfs-using programs looks like this:"
33344 msgstr ""
33345
33346 #. type: verbatim
33347 #: ../src/guestfs.pod:76
33348 #, no-wrap
33349 msgid ""
33350 " guestfs_h *g = guestfs_create ();\n"
33351 " \n"
33352 msgstr ""
33353 " guestfs_h *g = guestfs_create ();\n"
33354 " \n"
33355
33356 #. type: verbatim
33357 #: ../src/guestfs.pod:78
33358 #, no-wrap
33359 msgid ""
33360 " /* Call guestfs_add_drive additional times if there are\n"
33361 "  * multiple disk images.\n"
33362 "  */\n"
33363 " guestfs_add_drive (g, \"guest.img\");\n"
33364 " \n"
33365 msgstr ""
33366
33367 #. type: verbatim
33368 #: ../src/guestfs.pod:83
33369 #, no-wrap
33370 msgid ""
33371 " /* Most manipulation calls won't work until you've launched\n"
33372 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
33373 "  * and _before_ other commands.\n"
33374 "  */\n"
33375 " guestfs_launch (g);\n"
33376 " \n"
33377 msgstr ""
33378
33379 #. type: verbatim
33380 #: ../src/guestfs.pod:89
33381 #, no-wrap
33382 msgid ""
33383 " /* Now you can examine what partitions, LVs etc are available.\n"
33384 "  */\n"
33385 " char **partitions = guestfs_list_partitions (g);\n"
33386 " char **logvols = guestfs_lvs (g);\n"
33387 " \n"
33388 msgstr ""
33389 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
33390 "  */\n"
33391 " char **partitions = guestfs_list_partitions (g);\n"
33392 " char **logvols = guestfs_lvs (g);\n"
33393 " \n"
33394
33395 #. type: verbatim
33396 #: ../src/guestfs.pod:94
33397 #, no-wrap
33398 msgid ""
33399 " /* To access a filesystem in the image, you must mount it.\n"
33400 "  */\n"
33401 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33402 " \n"
33403 msgstr ""
33404 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
33405 "  */\n"
33406 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33407 " \n"
33408
33409 #. type: verbatim
33410 #: ../src/guestfs.pod:98
33411 #, no-wrap
33412 msgid ""
33413 " /* Now you can perform filesystem actions on the guest\n"
33414 "  * disk image.\n"
33415 "  */\n"
33416 " guestfs_touch (g, \"/hello\");\n"
33417 " \n"
33418 msgstr ""
33419
33420 #. type: verbatim
33421 #: ../src/guestfs.pod:103
33422 #, no-wrap
33423 msgid ""
33424 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
33425 "  * it is done automatically when you close the handle.  See\n"
33426 "  * discussion of autosync in this page.\n"
33427 "  */\n"
33428 " guestfs_sync (g);\n"
33429 " \n"
33430 msgstr ""
33431
33432 #. type: verbatim
33433 #: ../src/guestfs.pod:109
33434 #, no-wrap
33435 msgid ""
33436 " /* Close the handle 'g'. */\n"
33437 " guestfs_close (g);\n"
33438 "\n"
33439 msgstr ""
33440 " /* Закрити дескриптор 'g'. */\n"
33441 " guestfs_close (g);\n"
33442 "\n"
33443
33444 #. type: textblock
33445 #: ../src/guestfs.pod:112
33446 msgid ""
33447 "The code above doesn't include any error checking.  In real code you should "
33448 "check return values carefully for errors.  In general all functions that "
33449 "return integers return C<-1> on error, and all functions that return "
33450 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
33451 "how to handle errors, and consult the documentation for each function call "
33452 "below to see precisely how they return error indications.  See L<guestfs-"
33453 "examples(3)> for fully worked examples."
33454 msgstr ""
33455
33456 #. type: =head2
33457 #: ../src/guestfs.pod:121
33458 msgid "DISK IMAGES"
33459 msgstr "ОБРАЗИ ДИСКІВ"
33460
33461 #. type: textblock
33462 #: ../src/guestfs.pod:123
33463 msgid ""
33464 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
33465 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
33466 "actual block device, or simply an empty file of zeroes that you have created "
33467 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
33468 "of these."
33469 msgstr ""
33470
33471 #. type: textblock
33472 #: ../src/guestfs.pod:129
33473 msgid ""
33474 "The call you should use in modern code for adding drives is L</"
33475 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
33476 "specifying that the format is raw, do:"
33477 msgstr ""
33478
33479 #. type: verbatim
33480 #: ../src/guestfs.pod:133
33481 #, no-wrap
33482 msgid ""
33483 " guestfs_add_drive_opts (g, filename,\n"
33484 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33485 "                         -1);\n"
33486 "\n"
33487 msgstr ""
33488 " guestfs_add_drive_opts (g, filename,\n"
33489 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33490 "                         -1);\n"
33491 "\n"
33492
33493 #. type: textblock
33494 #: ../src/guestfs.pod:137
33495 msgid "You can add a disk read-only using:"
33496 msgstr "Ви можете додати диск у режимі лише читання:"
33497
33498 #. type: verbatim
33499 #: ../src/guestfs.pod:139
33500 #, no-wrap
33501 msgid ""
33502 " guestfs_add_drive_opts (g, filename,\n"
33503 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33504 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33505 "                         -1);\n"
33506 "\n"
33507 msgstr ""
33508 " guestfs_add_drive_opts (g, filename,\n"
33509 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33510 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33511 "                         -1);\n"
33512 "\n"
33513
33514 #. type: textblock
33515 #: ../src/guestfs.pod:144
33516 msgid ""
33517 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
33518 "libguestfs won't modify the file."
33519 msgstr ""
33520
33521 #. type: textblock
33522 #: ../src/guestfs.pod:147
33523 msgid ""
33524 "Be extremely cautious if the disk image is in use, eg. if it is being used "
33525 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
33526 "corruption, but adding it read-only is safe."
33527 msgstr ""
33528
33529 #. type: textblock
33530 #: ../src/guestfs.pod:151
33531 msgid ""
33532 "You must add at least one disk image, and you may add multiple disk images.  "
33533 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
33534 "first one you added), C</dev/sdb> (for the second one you added), etc."
33535 msgstr ""
33536
33537 #. type: textblock
33538 #: ../src/guestfs.pod:156
33539 msgid ""
33540 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
33541 "can call L</guestfs_list_devices> to get a list of the device names, in the "
33542 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
33543 msgstr ""
33544
33545 #. type: =head2
33546 #: ../src/guestfs.pod:161
33547 msgid "MOUNTING"
33548 msgstr "МОНТУВАННЯ"
33549
33550 #. type: textblock
33551 #: ../src/guestfs.pod:163
33552 msgid ""
33553 "Before you can read or write files, create directories and so on in a disk "
33554 "image that contains filesystems, you have to mount those filesystems using "
33555 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
33556 "a disk image contains (for example) one partition with a filesystem on that "
33557 "partition, then you can mount it directly:"
33558 msgstr ""
33559
33560 #. type: verbatim
33561 #: ../src/guestfs.pod:170
33562 #, no-wrap
33563 msgid ""
33564 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33565 "\n"
33566 msgstr ""
33567 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33568 "\n"
33569
33570 #. type: textblock
33571 #: ../src/guestfs.pod:172
33572 msgid ""
33573 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
33574 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
33575 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
33576 "that these are libguestfs virtual devices, and are nothing to do with host "
33577 "devices."
33578 msgstr ""
33579
33580 #. type: textblock
33581 #: ../src/guestfs.pod:178
33582 msgid ""
33583 "If you are given a disk image and you don't know what it contains then you "
33584 "have to find out.  Libguestfs can do that too: use L</"
33585 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
33586 "LVs, and either try mounting each to see what is mountable, or else examine "
33587 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
33588 "filesystems, use L</guestfs_list_filesystems>."
33589 msgstr ""
33590
33591 #. type: textblock
33592 #: ../src/guestfs.pod:186
33593 msgid ""
33594 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
33595 "L</INSPECTION> below).  But you might find it easier to look at higher level "
33596 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
33597 msgstr ""
33598
33599 #. type: textblock
33600 #: ../src/guestfs.pod:191
33601 msgid ""
33602 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
33603 "several other variations of the C<guestfs_mount_*> call."
33604 msgstr ""
33605
33606 #. type: =head2
33607 #: ../src/guestfs.pod:194
33608 msgid "FILESYSTEM ACCESS AND MODIFICATION"
33609 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
33610
33611 #. type: textblock
33612 #: ../src/guestfs.pod:196
33613 msgid ""
33614 "The majority of the libguestfs API consists of fairly low-level calls for "
33615 "accessing and modifying the files, directories, symlinks etc on mounted "
33616 "filesystems.  There are over a hundred such calls which you can find listed "
33617 "in detail below in this man page, and we don't even pretend to cover them "
33618 "all in this overview."
33619 msgstr ""
33620
33621 #. type: textblock
33622 #: ../src/guestfs.pod:202
33623 msgid ""
33624 "Specify filenames as full paths, starting with C<\"/\"> and including the "
33625 "mount point."
33626 msgstr ""
33627 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
33628 "точкою монтування."
33629
33630 #. type: textblock
33631 #: ../src/guestfs.pod:205
33632 msgid ""
33633 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
33634 "the file called C<\"etc/passwd\"> then you could do:"
33635 msgstr ""
33636 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
33637 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
33638 "таким кодом:"
33639
33640 #. type: verbatim
33641 #: ../src/guestfs.pod:208
33642 #, no-wrap
33643 msgid ""
33644 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
33645 "\n"
33646 msgstr ""
33647 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
33648 "\n"
33649
33650 #. type: textblock
33651 #: ../src/guestfs.pod:210
33652 msgid ""
33653 "This would return C<data> as a newly allocated buffer containing the full "
33654 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
33655 "or C<NULL> if there was an error."
33656 msgstr ""
33657
33658 #. type: textblock
33659 #: ../src/guestfs.pod:214
33660 msgid ""
33661 "As another example, to create a top-level directory on that filesystem "
33662 "called C<\"var\"> you would do:"
33663 msgstr ""
33664
33665 #. type: verbatim
33666 #: ../src/guestfs.pod:217
33667 #, no-wrap
33668 msgid ""
33669 " guestfs_mkdir (g, \"/var\");\n"
33670 "\n"
33671 msgstr ""
33672 " guestfs_mkdir (g, \"/var\");\n"
33673 "\n"
33674
33675 #. type: textblock
33676 #: ../src/guestfs.pod:219
33677 msgid "To create a symlink you could do:"
33678 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
33679
33680 #. type: verbatim
33681 #: ../src/guestfs.pod:221
33682 #, no-wrap
33683 msgid ""
33684 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
33685 "               \"/etc/rc3.d/S30portmap\");\n"
33686 "\n"
33687 msgstr ""
33688 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
33689 "               \"/etc/rc3.d/S30portmap\");\n"
33690 "\n"
33691
33692 #. type: textblock
33693 #: ../src/guestfs.pod:224
33694 msgid ""
33695 "Libguestfs will reject attempts to use relative paths and there is no "
33696 "concept of a current working directory."
33697 msgstr ""
33698
33699 #. type: textblock
33700 #: ../src/guestfs.pod:227
33701 msgid ""
33702 "Libguestfs can return errors in many situations: for example if the "
33703 "filesystem isn't writable, or if a file or directory that you requested "
33704 "doesn't exist.  If you are using the C API (documented here)  you have to "
33705 "check for those error conditions after each call.  (Other language bindings "
33706 "turn these errors into exceptions)."
33707 msgstr ""
33708
33709 #. type: textblock
33710 #: ../src/guestfs.pod:233
33711 msgid ""
33712 "File writes are affected by the per-handle umask, set by calling L</"
33713 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
33714 msgstr ""
33715
33716 #. type: =head2
33717 #: ../src/guestfs.pod:236
33718 msgid "PARTITIONING"
33719 msgstr "ПОДІЛ НА РОЗДІЛИ"
33720
33721 #. type: textblock
33722 #: ../src/guestfs.pod:238
33723 msgid ""
33724 "Libguestfs contains API calls to read, create and modify partition tables on "
33725 "disk images."
33726 msgstr ""
33727
33728 #. type: textblock
33729 #: ../src/guestfs.pod:241
33730 msgid ""
33731 "In the common case where you want to create a single partition covering the "
33732 "whole disk, you should use the L</guestfs_part_disk> call:"
33733 msgstr ""
33734
33735 #. type: verbatim
33736 #: ../src/guestfs.pod:245
33737 #, no-wrap
33738 msgid ""
33739 " const char *parttype = \"mbr\";\n"
33740 " if (disk_is_larger_than_2TB)\n"
33741 "   parttype = \"gpt\";\n"
33742 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33743 "\n"
33744 msgstr ""
33745 " const char *parttype = \"mbr\";\n"
33746 " if (disk_is_larger_than_2TB)\n"
33747 "   parttype = \"gpt\";\n"
33748 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33749 "\n"
33750
33751 #. type: textblock
33752 #: ../src/guestfs.pod:250
33753 msgid ""
33754 "Obviously this effectively wipes anything that was on that disk image before."
33755 msgstr ""
33756
33757 #. type: =head2
33758 #: ../src/guestfs.pod:253
33759 msgid "LVM2"
33760 msgstr "LVM2"
33761
33762 #. type: textblock
33763 #: ../src/guestfs.pod:255
33764 msgid ""
33765 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
33766 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
33767 "you familiarize yourself with the concepts of physical volumes, volume "
33768 "groups and logical volumes."
33769 msgstr ""
33770
33771 #. type: textblock
33772 #: ../src/guestfs.pod:260
33773 msgid ""
33774 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
33775 "tldp.org/HOWTO/LVM-HOWTO/>."
33776 msgstr ""
33777
33778 #. type: =head2
33779 #: ../src/guestfs.pod:263
33780 msgid "DOWNLOADING"
33781 msgstr "ОТРИМАННЯ ДАНИХ"
33782
33783 #. type: textblock
33784 #: ../src/guestfs.pod:265
33785 msgid ""
33786 "Use L</guestfs_cat> to download small, text only files.  This call is "
33787 "limited to files which are less than 2 MB and which cannot contain any ASCII "
33788 "NUL (C<\\0>) characters.  However the API is very simple to use."
33789 msgstr ""
33790
33791 #. type: textblock
33792 #: ../src/guestfs.pod:269
33793 msgid ""
33794 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
33795 "bit data, since it returns a (pointer, size) pair.  However it is still "
33796 "limited to \"small\" files, less than 2 MB."
33797 msgstr ""
33798
33799 #. type: textblock
33800 #: ../src/guestfs.pod:273
33801 msgid ""
33802 "L</guestfs_download> can be used to download any file, with no limits on "
33803 "content or size (even files larger than 4 GB)."
33804 msgstr ""
33805
33806 #. type: textblock
33807 #: ../src/guestfs.pod:276
33808 msgid ""
33809 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
33810 msgstr ""
33811
33812 #. type: =head2
33813 #: ../src/guestfs.pod:279
33814 msgid "UPLOADING"
33815 msgstr "ВИВАНТАЖЕННЯ"
33816
33817 #. type: textblock
33818 #: ../src/guestfs.pod:281
33819 msgid ""
33820 "It's often the case that you want to write a file or files to the disk image."
33821 msgstr ""
33822
33823 #. type: textblock
33824 #: ../src/guestfs.pod:284
33825 msgid ""
33826 "To write a small file with fixed content, use L</guestfs_write>.  To create "
33827 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
33828 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
33829 "of other functions for creating test files, for example L</guestfs_fill> and "
33830 "L</guestfs_fill_pattern>."
33831 msgstr ""
33832
33833 #. type: textblock
33834 #: ../src/guestfs.pod:290
33835 msgid ""
33836 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
33837 "file content or size (even files larger than 4 GB)."
33838 msgstr ""
33839
33840 #. type: textblock
33841 #: ../src/guestfs.pod:293
33842 msgid ""
33843 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33844 msgstr ""
33845
33846 #. type: textblock
33847 #: ../src/guestfs.pod:295
33848 msgid ""
33849 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33850 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
33851 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
33852 "in a predictable way (eg. adding it last after all other drives) then you "
33853 "can get the device name from L</guestfs_list_devices> and mount it directly "
33854 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
33855 "portable between kernel versions, and they don't support labels or UUIDs.  "
33856 "If you want to pre-build an image or you need to mount it using a label or "
33857 "UUID, use an ISO image instead."
33858 msgstr ""
33859
33860 #. type: =head2
33861 #: ../src/guestfs.pod:306
33862 msgid "COPYING"
33863 msgstr "КОПІЮВАННЯ"
33864
33865 #. type: textblock
33866 #: ../src/guestfs.pod:308
33867 msgid ""
33868 "There are various different commands for copying between files and devices "
33869 "and in and out of the guest filesystem.  These are summarised in the table "
33870 "below."
33871 msgstr ""
33872
33873 #. type: =item
33874 #: ../src/guestfs.pod:314
33875 msgid "B<file> to B<file>"
33876 msgstr "B<файл> у B<файл>"
33877
33878 #. type: textblock
33879 #: ../src/guestfs.pod:316
33880 msgid ""
33881 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33882 "directories recursively."
33883 msgstr ""
33884
33885 #. type: =item
33886 #: ../src/guestfs.pod:319
33887 msgid "B<file or device> to B<file or device>"
33888 msgstr "B<файл або пристрій> у B<файл або пристрій>"
33889
33890 #. type: textblock
33891 #: ../src/guestfs.pod:321
33892 msgid ""
33893 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33894 "devices in the guest."
33895 msgstr ""
33896
33897 #. type: textblock
33898 #: ../src/guestfs.pod:324
33899 msgid "Example: duplicate the contents of an LV:"
33900 msgstr ""
33901
33902 #. type: verbatim
33903 #: ../src/guestfs.pod:326
33904 #, no-wrap
33905 msgid ""
33906 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33907 "\n"
33908 msgstr ""
33909 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33910 "\n"
33911
33912 #. type: textblock
33913 #: ../src/guestfs.pod:328
33914 msgid ""
33915 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33916 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
33917 "guestfs_copy_size>."
33918 msgstr ""
33919
33920 #. type: =item
33921 #: ../src/guestfs.pod:332
33922 msgid "B<file on the host> to B<file or device>"
33923 msgstr ""
33924
33925 #. type: textblock
33926 #: ../src/guestfs.pod:334
33927 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
33928 msgstr ""
33929
33930 #. type: =item
33931 #: ../src/guestfs.pod:336
33932 msgid "B<file or device> to B<file on the host>"
33933 msgstr ""
33934
33935 #. type: textblock
33936 #: ../src/guestfs.pod:338
33937 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
33938 msgstr ""
33939
33940 #. type: =head2
33941 #: ../src/guestfs.pod:342
33942 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33943 msgstr ""
33944
33945 #. type: textblock
33946 #: ../src/guestfs.pod:344
33947 msgid ""
33948 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33949 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33950 "appears you can only upload and download to files.  However many Un*x-like "
33951 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33952 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33953 "and arbitrary file descriptor N."
33954 msgstr ""
33955
33956 #. type: textblock
33957 #: ../src/guestfs.pod:352
33958 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33959 msgstr ""
33960
33961 #. type: verbatim
33962 #: ../src/guestfs.pod:355
33963 #, no-wrap
33964 msgid ""
33965 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33966 "\n"
33967 msgstr ""
33968 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33969 "\n"
33970
33971 #. type: textblock
33972 #: ../src/guestfs.pod:357
33973 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33974 msgstr ""
33975
33976 #. type: verbatim
33977 #: ../src/guestfs.pod:359
33978 #, no-wrap
33979 msgid ""
33980 " char devfd[64];\n"
33981 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33982 " guestfs_tar_out (g, \"/\", devfd);\n"
33983 "\n"
33984 msgstr ""
33985 " char devfd[64];\n"
33986 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33987 " guestfs_tar_out (g, \"/\", devfd);\n"
33988 "\n"
33989
33990 #. type: =head2
33991 #: ../src/guestfs.pod:363
33992 msgid "LISTING FILES"
33993 msgstr "СПИСКИ ФАЙЛІВ"
33994
33995 #. type: textblock
33996 #: ../src/guestfs.pod:365
33997 msgid ""
33998 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33999 "L<guestfish(1)>-equivalent command C<ll>)."
34000 msgstr ""
34001
34002 #. type: textblock
34003 #: ../src/guestfs.pod:368
34004 msgid ""
34005 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
34006 "programs, as a flat list of strings."
34007 msgstr ""
34008
34009 #. type: textblock
34010 #: ../src/guestfs.pod:371
34011 msgid ""
34012 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
34013 "directory, plus additional information about each one.  It is more "
34014 "equivalent to using the L<readdir(3)> call on a local filesystem."
34015 msgstr ""
34016
34017 #. type: textblock
34018 #: ../src/guestfs.pod:375
34019 msgid ""
34020 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
34021 msgstr ""
34022
34023 #. type: =head2
34024 #: ../src/guestfs.pod:378
34025 msgid "RUNNING COMMANDS"
34026 msgstr "ВИКОНАННЯ КОМАНД"
34027
34028 #. type: textblock
34029 #: ../src/guestfs.pod:380
34030 msgid ""
34031 "Although libguestfs is primarily an API for manipulating files inside guest "
34032 "images, we also provide some limited facilities for running commands inside "
34033 "guests."
34034 msgstr ""
34035
34036 #. type: textblock
34037 #: ../src/guestfs.pod:384
34038 msgid "There are many limitations to this:"
34039 msgstr ""
34040
34041 #. type: textblock
34042 #: ../src/guestfs.pod:390
34043 msgid ""
34044 "The kernel version that the command runs under will be different from what "
34045 "it expects."
34046 msgstr ""
34047
34048 #. type: textblock
34049 #: ../src/guestfs.pod:395
34050 msgid ""
34051 "If the command needs to communicate with daemons, then most likely they "
34052 "won't be running."
34053 msgstr ""
34054
34055 #. type: textblock
34056 #: ../src/guestfs.pod:400
34057 msgid "The command will be running in limited memory."
34058 msgstr ""
34059
34060 #. type: textblock
34061 #: ../src/guestfs.pod:404
34062 msgid ""
34063 "The network may not be available unless you enable it (see L</"
34064 "guestfs_set_network>)."
34065 msgstr ""
34066
34067 #. type: textblock
34068 #: ../src/guestfs.pod:409
34069 msgid "Only supports Linux guests (not Windows, BSD, etc)."
34070 msgstr ""
34071
34072 #. type: textblock
34073 #: ../src/guestfs.pod:413
34074 msgid ""
34075 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
34076 msgstr ""
34077
34078 #. type: textblock
34079 #: ../src/guestfs.pod:418
34080 msgid ""
34081 "For SELinux guests, you may need to enable SELinux and load policy first.  "
34082 "See L</SELINUX> in this manpage."
34083 msgstr ""
34084
34085 #. type: textblock
34086 #: ../src/guestfs.pod:423
34087 msgid ""
34088 "I<Security:> It is not safe to run commands from untrusted, possibly "
34089 "malicious guests.  These commands may attempt to exploit your program by "
34090 "sending unexpected output.  They could also try to exploit the Linux kernel "
34091 "or qemu provided by the libguestfs appliance.  They could use the network "
34092 "provided by the libguestfs appliance to bypass ordinary network partitions "
34093 "and firewalls.  They could use the elevated privileges or different SELinux "
34094 "context of your program to their advantage."
34095 msgstr ""
34096
34097 #. type: textblock
34098 #: ../src/guestfs.pod:432
34099 msgid ""
34100 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
34101 "(a script which runs when the guest next boots normally), and to have this "
34102 "script run the commands you want in the normal context of the running guest, "
34103 "network security and so on.  For information about other security issues, "
34104 "see L</SECURITY>."
34105 msgstr ""
34106
34107 #. type: textblock
34108 #: ../src/guestfs.pod:440
34109 msgid ""
34110 "The two main API calls to run commands are L</guestfs_command> and L</"
34111 "guestfs_sh> (there are also variations)."
34112 msgstr ""
34113
34114 #. type: textblock
34115 #: ../src/guestfs.pod:443
34116 msgid ""
34117 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
34118 "shell globs, redirections, etc will work."
34119 msgstr ""
34120
34121 #. type: =head2
34122 #: ../src/guestfs.pod:446
34123 msgid "CONFIGURATION FILES"
34124 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
34125
34126 #. type: textblock
34127 #: ../src/guestfs.pod:448
34128 msgid ""
34129 "To read and write configuration files in Linux guest filesystems, we "
34130 "strongly recommend using Augeas.  For example, Augeas understands how to "
34131 "read and write, say, a Linux shadow password file or X.org configuration "
34132 "file, and so avoids you having to write that code."
34133 msgstr ""
34134
34135 #. type: textblock
34136 #: ../src/guestfs.pod:453
34137 msgid ""
34138 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
34139 "document Augeas itself here because there is excellent documentation on the "
34140 "L<http://augeas.net/> website."
34141 msgstr ""
34142
34143 #. type: textblock
34144 #: ../src/guestfs.pod:457
34145 msgid ""
34146 "If you don't want to use Augeas (you fool!) then try calling L</"
34147 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
34148 "over."
34149 msgstr ""
34150
34151 #. type: =head2
34152 #: ../src/guestfs.pod:461
34153 msgid "SELINUX"
34154 msgstr "SELINUX"
34155
34156 #. type: textblock
34157 #: ../src/guestfs.pod:463
34158 msgid ""
34159 "We support SELinux guests.  To ensure that labeling happens correctly in "
34160 "SELinux guests, you need to enable SELinux and load the guest's policy:"
34161 msgstr ""
34162
34163 #. type: textblock
34164 #: ../src/guestfs.pod:471
34165 msgid "Before launching, do:"
34166 msgstr ""
34167
34168 #. type: verbatim
34169 #: ../src/guestfs.pod:473
34170 #, no-wrap
34171 msgid ""
34172 " guestfs_set_selinux (g, 1);\n"
34173 "\n"
34174 msgstr ""
34175 " guestfs_set_selinux (g, 1);\n"
34176 "\n"
34177
34178 #. type: textblock
34179 #: ../src/guestfs.pod:477
34180 msgid ""
34181 "After mounting the guest's filesystem(s), load the policy.  This is best "
34182 "done by running the L<load_policy(8)> command in the guest itself:"
34183 msgstr ""
34184
34185 #. type: verbatim
34186 #: ../src/guestfs.pod:481
34187 #, no-wrap
34188 msgid ""
34189 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34190 "\n"
34191 msgstr ""
34192 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34193 "\n"
34194
34195 #. type: textblock
34196 #: ../src/guestfs.pod:483
34197 msgid ""
34198 "(Older versions of C<load_policy> require you to specify the name of the "
34199 "policy file)."
34200 msgstr ""
34201
34202 #. type: textblock
34203 #: ../src/guestfs.pod:488
34204 msgid ""
34205 "Optionally, set the security context for the API.  The correct security "
34206 "context to use can only be known by inspecting the guest.  As an example:"
34207 msgstr ""
34208
34209 #. type: verbatim
34210 #: ../src/guestfs.pod:492
34211 #, no-wrap
34212 msgid ""
34213 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34214 "\n"
34215 msgstr ""
34216 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34217 "\n"
34218
34219 #. type: textblock
34220 #: ../src/guestfs.pod:496
34221 msgid "This will work for running commands and editing existing files."
34222 msgstr ""
34223
34224 #. type: textblock
34225 #: ../src/guestfs.pod:498
34226 msgid ""
34227 "When new files are created, you may need to label them explicitly, for "
34228 "example by running the external command C<restorecon pathname>."
34229 msgstr ""
34230
34231 #. type: =head2
34232 #: ../src/guestfs.pod:502
34233 msgid "UMASK"
34234 msgstr "UMASK"
34235
34236 #. type: textblock
34237 #: ../src/guestfs.pod:504
34238 msgid ""
34239 "Certain calls are affected by the current file mode creation mask (the "
34240 "\"umask\").  In particular ones which create files or directories, such as "
34241 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
34242 "either the default mode that the file is created with or modifies the mode "
34243 "that you supply."
34244 msgstr ""
34245
34246 #. type: textblock
34247 #: ../src/guestfs.pod:510
34248 msgid ""
34249 "The default umask is C<022>, so files are created with modes such as C<0644> "
34250 "and directories with C<0755>."
34251 msgstr ""
34252
34253 #. type: textblock
34254 #: ../src/guestfs.pod:513
34255 msgid ""
34256 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
34257 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
34258 "guestfs_chmod> after creating each file or directory."
34259 msgstr ""
34260
34261 #. type: textblock
34262 #: ../src/guestfs.pod:517
34263 msgid "For more information about umask, see L<umask(2)>."
34264 msgstr ""
34265
34266 #. type: textblock
34267 #: ../src/guestfs.pod:521
34268 msgid ""
34269 "Libguestfs allows you to access Linux guests which have been encrypted using "
34270 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
34271 "standard.  This includes nearly all whole disk encryption systems used by "
34272 "modern Linux guests."
34273 msgstr ""
34274
34275 #. type: textblock
34276 #: ../src/guestfs.pod:527
34277 msgid ""
34278 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
34279 "returns the string C<crypto_LUKS>)."
34280 msgstr ""
34281
34282 #. type: textblock
34283 #: ../src/guestfs.pod:530
34284 msgid ""
34285 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
34286 "will require the passphrase!"
34287 msgstr ""
34288
34289 #. type: textblock
34290 #: ../src/guestfs.pod:533
34291 msgid ""
34292 "Opening a LUKS device creates a new device mapper device called C</dev/"
34293 "mapper/mapname> (where C<mapname> is the string you supply to L</"
34294 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
34295 "from and encrypted to the underlying block device respectively."
34296 msgstr ""
34297
34298 #. type: textblock
34299 #: ../src/guestfs.pod:539
34300 msgid ""
34301 "LVM volume groups on the device can be made visible by calling L</"
34302 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
34303 "(s) can now be mounted in the usual way."
34304 msgstr ""
34305
34306 #. type: textblock
34307 #: ../src/guestfs.pod:543
34308 msgid ""
34309 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
34310 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
34311 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
34312 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
34313 "underlying encrypted block device)."
34314 msgstr ""
34315
34316 #. type: =head2
34317 #: ../src/guestfs.pod:550
34318 msgid "INSPECTION"
34319 msgstr "ПЕРЕВІРКА"
34320
34321 #. type: textblock
34322 #: ../src/guestfs.pod:552
34323 msgid ""
34324 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
34325 "contains operating systems, an install CD or a live CD.  (These APIs used to "
34326 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
34327 "version 1.5.3 the most frequently used part of this library has been "
34328 "rewritten in C and moved into the core code)."
34329 msgstr ""
34330
34331 #. type: textblock
34332 #: ../src/guestfs.pod:559
34333 msgid ""
34334 "Add all disks belonging to the unknown virtual machine and call L</"
34335 "guestfs_launch> in the usual way."
34336 msgstr ""
34337
34338 #. type: textblock
34339 #: ../src/guestfs.pod:562
34340 msgid ""
34341 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
34342 "and certain heuristics, and returns a list of operating systems that were "
34343 "found.  An empty list means none were found.  A single element is the root "
34344 "filesystem of the operating system.  For dual- or multi-boot guests, "
34345 "multiple roots can be returned, each one corresponding to a separate "
34346 "operating system.  (Multi-boot virtual machines are extremely rare in the "
34347 "world of virtualization, but since this scenario can happen, we have built "
34348 "libguestfs to deal with it.)"
34349 msgstr ""
34350
34351 #. type: textblock
34352 #: ../src/guestfs.pod:571
34353 msgid ""
34354 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
34355 "to get additional details about that operating system.  For example, call L</"
34356 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
34357 "Windows and Linux-based operating systems respectively."
34358 msgstr ""
34359
34360 #. type: textblock
34361 #: ../src/guestfs.pod:577
34362 msgid ""
34363 "Un*x-like and Linux-based operating systems usually consist of several "
34364 "filesystems which are mounted at boot time (for example, a separate boot "
34365 "partition mounted on C</boot>).  The inspection rules are able to detect how "
34366 "filesystems correspond to mount points.  Call "
34367 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
34368 "hash table like this example:"
34369 msgstr ""
34370
34371 #. type: verbatim
34372 #: ../src/guestfs.pod:584
34373 #, no-wrap
34374 msgid ""
34375 " /boot => /dev/sda1\n"
34376 " /     => /dev/vg_guest/lv_root\n"
34377 " /usr  => /dev/vg_guest/lv_usr\n"
34378 "\n"
34379 msgstr ""
34380 " /boot => /dev/sda1\n"
34381 " /     => /dev/vg_guest/lv_root\n"
34382 " /usr  => /dev/vg_guest/lv_usr\n"
34383 "\n"
34384
34385 #. type: textblock
34386 #: ../src/guestfs.pod:588
34387 msgid ""
34388 "The caller can then make calls to L</guestfs_mount_options> to mount the "
34389 "filesystems as suggested."
34390 msgstr ""
34391
34392 #. type: textblock
34393 #: ../src/guestfs.pod:591
34394 msgid ""
34395 "Be careful to mount filesystems in the right order (eg. C</> before C</"
34396 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
34397 msgstr ""
34398
34399 #. type: textblock
34400 #: ../src/guestfs.pod:595
34401 msgid ""
34402 "Inspection currently only works for some common operating systems.  "
34403 "Contributors are welcome to send patches for other operating systems that we "
34404 "currently cannot detect."
34405 msgstr ""
34406
34407 #. type: textblock
34408 #: ../src/guestfs.pod:599
34409 msgid ""
34410 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
34411 "for more details.  The L</guestfs_inspect_os> function just ignores any "
34412 "encrypted devices."
34413 msgstr ""
34414
34415 #. type: textblock
34416 #: ../src/guestfs.pod:603
34417 msgid ""
34418 "A note on the implementation: The call L</guestfs_inspect_os> performs "
34419 "inspection and caches the results in the guest handle.  Subsequent calls to "
34420 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
34421 "read the disks.  If you change the content of the guest disks, you can redo "
34422 "inspection by calling L</guestfs_inspect_os> again.  (L</"
34423 "guestfs_inspect_list_applications> works a little differently from the other "
34424 "calls and does read the disks.  See documentation for that function for "
34425 "details)."
34426 msgstr ""
34427
34428 #. type: =head3
34429 #: ../src/guestfs.pod:612
34430 msgid "INSPECTING INSTALL DISKS"
34431 msgstr ""
34432
34433 #. type: textblock
34434 #: ../src/guestfs.pod:614
34435 msgid ""
34436 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
34437 "CDs and more."
34438 msgstr ""
34439
34440 #. type: textblock
34441 #: ../src/guestfs.pod:617
34442 msgid ""
34443 "Call L</guestfs_inspect_get_format> to return the format of the operating "
34444 "system, which currently can be C<installed> (a regular operating system) or "
34445 "C<installer> (some sort of install disk)."
34446 msgstr ""
34447
34448 #. type: textblock
34449 #: ../src/guestfs.pod:621
34450 msgid ""
34451 "Further information is available about the operating system that can be "
34452 "installed using the regular inspection APIs like L</"
34453 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
34454 msgstr ""
34455
34456 #. type: textblock
34457 #: ../src/guestfs.pod:626
34458 msgid ""
34459 "Some additional information specific to installer disks is also available "
34460 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
34461 "guestfs_inspect_is_multipart> calls."
34462 msgstr ""
34463
34464 #. type: =head2
34465 #: ../src/guestfs.pod:631
34466 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
34467 msgstr ""
34468
34469 #. type: textblock
34470 #: ../src/guestfs.pod:633
34471 msgid ""
34472 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
34473 "ntfs-3g.org/> driver."
34474 msgstr ""
34475
34476 #. type: =head3
34477 #: ../src/guestfs.pod:636
34478 msgid "DRIVE LETTERS AND PATHS"
34479 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
34480
34481 #. type: textblock
34482 #: ../src/guestfs.pod:638
34483 msgid ""
34484 "DOS and Windows still use drive letters, and the filesystems are always "
34485 "treated as case insensitive by Windows itself, and therefore you might find "
34486 "a Windows configuration file referring to a path like C<c:\\windows"
34487 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
34488 "might be referred to as C</WINDOWS/System32>."
34489 msgstr ""
34490
34491 #. type: textblock
34492 #: ../src/guestfs.pod:644
34493 msgid ""
34494 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
34495 "L</guestfs_inspect_get_drive_mappings>)"
34496 msgstr ""
34497
34498 #. type: textblock
34499 #: ../src/guestfs.pod:647
34500 msgid ""
34501 "Dealing with separator characters (backslash vs forward slash) is outside "
34502 "the scope of libguestfs, but usually a simple character replacement will "
34503 "work."
34504 msgstr ""
34505
34506 #. type: textblock
34507 #: ../src/guestfs.pod:651
34508 msgid ""
34509 "To resolve the case insensitivity of paths, call L</"
34510 "guestfs_case_sensitive_path>."
34511 msgstr ""
34512
34513 #. type: =head3
34514 #: ../src/guestfs.pod:654
34515 msgid "ACCESSING THE WINDOWS REGISTRY"
34516 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
34517
34518 #. type: textblock
34519 #: ../src/guestfs.pod:656
34520 msgid ""
34521 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
34522 "files, through the library C<hivex> which is part of the libguestfs project "
34523 "although ships as a separate tarball.  You have to locate and download the "
34524 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
34525 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
34526 "reg(1)> for more help on this issue."
34527 msgstr ""
34528
34529 #. type: =head3
34530 #: ../src/guestfs.pod:664
34531 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
34532 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
34533
34534 #. type: textblock
34535 #: ../src/guestfs.pod:666
34536 msgid ""
34537 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
34538 "provide something which looks like a Linux symlink.  The way it tries to do "
34539 "the rewriting is described here:"
34540 msgstr ""
34541
34542 #. type: textblock
34543 #: ../src/guestfs.pod:670
34544 msgid ""
34545 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34546 "symbolic-links/>"
34547 msgstr ""
34548 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34549 "symbolic-links/>"
34550
34551 #. type: textblock
34552 #: ../src/guestfs.pod:672
34553 msgid ""
34554 "The essential problem is that ntfs-3g simply does not have enough "
34555 "information to do a correct job.  NTFS links can contain drive letters and "
34556 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
34557 "It is almost certainly the case that libguestfs callers should ignore what "
34558 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
34559 msgstr ""
34560
34561 #. type: textblock
34562 #: ../src/guestfs.pod:679
34563 msgid ""
34564 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
34565 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
34566 "attribute, and read the raw reparse data from that (you can find the format "
34567 "documented in various places around the web)."
34568 msgstr ""
34569
34570 #. type: =head3
34571 #: ../src/guestfs.pod:684
34572 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
34573 msgstr ""
34574
34575 #. type: textblock
34576 #: ../src/guestfs.pod:686
34577 msgid ""
34578 "There are other useful extended attributes that can be read from ntfs-3g "
34579 "filesystems (using L</guestfs_getxattr>).  See:"
34580 msgstr ""
34581
34582 #. type: textblock
34583 #: ../src/guestfs.pod:689
34584 msgid ""
34585 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34586 msgstr ""
34587 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34588
34589 #. type: =head2
34590 #: ../src/guestfs.pod:691
34591 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
34592 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
34593
34594 #. type: textblock
34595 #: ../src/guestfs.pod:693
34596 msgid ""
34597 "Although we don't want to discourage you from using the C API, we will "
34598 "mention here that the same API is also available in other languages."
34599 msgstr ""
34600
34601 #. type: textblock
34602 #: ../src/guestfs.pod:696
34603 msgid ""
34604 "The API is broadly identical in all supported languages.  This means that "
34605 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
34606 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
34607 "OCaml.  In other words, a straightforward, predictable isomorphism between "
34608 "each language."
34609 msgstr ""
34610
34611 #. type: textblock
34612 #: ../src/guestfs.pod:702
34613 msgid ""
34614 "Error messages are automatically transformed into exceptions if the language "
34615 "supports it."
34616 msgstr ""
34617
34618 #. type: textblock
34619 #: ../src/guestfs.pod:705
34620 msgid ""
34621 "We don't try to \"object orientify\" parts of the API in OO languages, "
34622 "although contributors are welcome to write higher level APIs above what we "
34623 "provide in their favourite languages if they wish."
34624 msgstr ""
34625
34626 #. type: =item
34627 #: ../src/guestfs.pod:711
34628 msgid "B<C++>"
34629 msgstr "B<C++>"
34630
34631 #. type: textblock
34632 #: ../src/guestfs.pod:713
34633 msgid ""
34634 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
34635 "identical to the C API.  C++ classes and exceptions are not used."
34636 msgstr ""
34637
34638 #. type: =item
34639 #: ../src/guestfs.pod:717
34640 msgid "B<C#>"
34641 msgstr "B<C#>"
34642
34643 #. type: textblock
34644 #: ../src/guestfs.pod:719
34645 msgid ""
34646 "The C# bindings are highly experimental.  Please read the warnings at the "
34647 "top of C<csharp/Libguestfs.cs>."
34648 msgstr ""
34649
34650 #. type: =item
34651 #: ../src/guestfs.pod:722
34652 msgid "B<Erlang>"
34653 msgstr ""
34654
34655 #. type: textblock
34656 #: ../src/guestfs.pod:724
34657 #, fuzzy
34658 #| msgid "See L<guestfs-ruby(3)>."
34659 msgid "See L<guestfs-erlang(3)>."
34660 msgstr "Див. L<guestfs-ruby(3)>."
34661
34662 #. type: =item
34663 #: ../src/guestfs.pod:726
34664 msgid "B<Haskell>"
34665 msgstr "B<Haskell>"
34666
34667 #. type: textblock
34668 #: ../src/guestfs.pod:728
34669 msgid ""
34670 "This is the only language binding that is working but incomplete.  Only "
34671 "calls which return simple integers have been bound in Haskell, and we are "
34672 "looking for help to complete this binding."
34673 msgstr ""
34674
34675 #. type: =item
34676 #: ../src/guestfs.pod:732
34677 msgid "B<Java>"
34678 msgstr "B<Java>"
34679
34680 #. type: textblock
34681 #: ../src/guestfs.pod:734
34682 msgid ""
34683 "Full documentation is contained in the Javadoc which is distributed with "
34684 "libguestfs.  For examples, see L<guestfs-java(3)>."
34685 msgstr ""
34686
34687 #. type: =item
34688 #: ../src/guestfs.pod:737
34689 msgid "B<OCaml>"
34690 msgstr "B<OCaml>"
34691
34692 #. type: textblock
34693 #: ../src/guestfs.pod:739
34694 msgid "See L<guestfs-ocaml(3)>."
34695 msgstr "Див. L<guestfs-ocaml(3)>."
34696
34697 #. type: =item
34698 #: ../src/guestfs.pod:741
34699 msgid "B<Perl>"
34700 msgstr "B<Perl>"
34701
34702 #. type: textblock
34703 #: ../src/guestfs.pod:743
34704 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
34705 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
34706
34707 #. type: =item
34708 #: ../src/guestfs.pod:745
34709 msgid "B<PHP>"
34710 msgstr "B<PHP>"
34711
34712 #. type: textblock
34713 #: ../src/guestfs.pod:747
34714 msgid ""
34715 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
34716 "the php-libguestfs package for your distribution."
34717 msgstr ""
34718
34719 #. type: textblock
34720 #: ../src/guestfs.pod:750
34721 msgid "The PHP binding only works correctly on 64 bit machines."
34722 msgstr ""
34723
34724 #. type: =item
34725 #: ../src/guestfs.pod:752
34726 msgid "B<Python>"
34727 msgstr "B<Python>"
34728
34729 #. type: textblock
34730 #: ../src/guestfs.pod:754
34731 msgid "See L<guestfs-python(3)>."
34732 msgstr "Див. L<guestfs-python(3)>."
34733
34734 #. type: =item
34735 #: ../src/guestfs.pod:756
34736 msgid "B<Ruby>"
34737 msgstr "B<Ruby>"
34738
34739 #. type: textblock
34740 #: ../src/guestfs.pod:758
34741 msgid "See L<guestfs-ruby(3)>."
34742 msgstr "Див. L<guestfs-ruby(3)>."
34743
34744 #. type: =item
34745 #: ../src/guestfs.pod:760
34746 msgid "B<shell scripts>"
34747 msgstr "B<скрипти оболонки>"
34748
34749 #. type: textblock
34750 #: ../src/guestfs.pod:762
34751 msgid "See L<guestfish(1)>."
34752 msgstr "Див. L<guestfish(1)>."
34753
34754 #. type: =head2
34755 #: ../src/guestfs.pod:766
34756 msgid "LIBGUESTFS GOTCHAS"
34757 msgstr ""
34758
34759 #. type: textblock
34760 #: ../src/guestfs.pod:768
34761 msgid ""
34762 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
34763 "system [...] that works in the way it is documented but is counterintuitive "
34764 "and almost invites mistakes.\""
34765 msgstr ""
34766
34767 #. type: textblock
34768 #: ../src/guestfs.pod:772
34769 msgid ""
34770 "Since we developed libguestfs and the associated tools, there are several "
34771 "things we would have designed differently, but are now stuck with for "
34772 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
34773 "release, you can expect these to change.  Beware of them."
34774 msgstr ""
34775
34776 #. type: =item
34777 #: ../src/guestfs.pod:780
34778 msgid "Autosync / forgetting to sync."
34779 msgstr ""
34780
34781 #. type: textblock
34782 #: ../src/guestfs.pod:782
34783 msgid ""
34784 "I<Update:> Autosync is enabled by default for all API users starting from "
34785 "libguestfs 1.5.24.  This section only applies to older versions."
34786 msgstr ""
34787
34788 #. type: textblock
34789 #: ../src/guestfs.pod:785
34790 msgid ""
34791 "When modifying a filesystem from C or another language, you B<must> unmount "
34792 "all filesystems and call L</guestfs_sync> explicitly before you close the "
34793 "libguestfs handle.  You can also call:"
34794 msgstr ""
34795
34796 #. type: verbatim
34797 #: ../src/guestfs.pod:789
34798 #, no-wrap
34799 msgid ""
34800 " guestfs_set_autosync (g, 1);\n"
34801 "\n"
34802 msgstr ""
34803 " guestfs_set_autosync (g, 1);\n"
34804 "\n"
34805
34806 #. type: textblock
34807 #: ../src/guestfs.pod:791
34808 msgid ""
34809 "to have the unmount/sync done automatically for you when the handle 'g' is "
34810 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
34811 msgstr ""
34812
34813 #. type: textblock
34814 #: ../src/guestfs.pod:795
34815 msgid ""
34816 "If you forget to do this, then it is entirely possible that your changes "
34817 "won't be written out, or will be partially written, or (very rarely) that "
34818 "you'll get disk corruption."
34819 msgstr ""
34820
34821 #. type: textblock
34822 #: ../src/guestfs.pod:799
34823 msgid ""
34824 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
34825 "guestfish scripts that forget to sync will work just fine, which can make "
34826 "this very puzzling if you are trying to debug a problem."
34827 msgstr ""
34828
34829 #. type: =item
34830 #: ../src/guestfs.pod:803
34831 msgid "Mount option C<-o sync> should not be the default."
34832 msgstr ""
34833
34834 #. type: textblock
34835 #: ../src/guestfs.pod:805
34836 msgid ""
34837 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
34838 "libguestfs 1.13.16.  This section only applies to older versions."
34839 msgstr ""
34840
34841 #. type: textblock
34842 #: ../src/guestfs.pod:808
34843 msgid ""
34844 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
34845 "However C<-o sync> does not add any reliability benefit, but does have a "
34846 "very large performance impact."
34847 msgstr ""
34848
34849 #. type: textblock
34850 #: ../src/guestfs.pod:812
34851 msgid ""
34852 "The work around is to use L</guestfs_mount_options> and set the mount "
34853 "options that you actually want to use."
34854 msgstr ""
34855
34856 #. type: =item
34857 #: ../src/guestfs.pod:815
34858 msgid "Read-only should be the default."
34859 msgstr ""
34860
34861 #. type: textblock
34862 #: ../src/guestfs.pod:817
34863 msgid ""
34864 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34865 "specify I<--rw> if you want to make changes to the image."
34866 msgstr ""
34867
34868 #. type: textblock
34869 #: ../src/guestfs.pod:820
34870 msgid "This would reduce the potential to corrupt live VM images."
34871 msgstr ""
34872
34873 #. type: textblock
34874 #: ../src/guestfs.pod:822
34875 msgid ""
34876 "Note that many filesystems change the disk when you just mount and unmount, "
34877 "even if you didn't perform any writes.  You need to use L</"
34878 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
34879 msgstr ""
34880
34881 #. type: =item
34882 #: ../src/guestfs.pod:826
34883 msgid "guestfish command line is hard to use."
34884 msgstr ""
34885
34886 #. type: textblock
34887 #: ../src/guestfs.pod:828
34888 msgid ""
34889 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34890 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
34891 "exist, so it fails.  In earlier versions of guestfish the error message was "
34892 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
34893 "we should have used C<guestfish -c command> to run commands."
34894 msgstr ""
34895
34896 #. type: =item
34897 #: ../src/guestfs.pod:835
34898 msgid "guestfish megabyte modifiers don't work right on all commands"
34899 msgstr ""
34900
34901 #. type: textblock
34902 #: ../src/guestfs.pod:837
34903 msgid ""
34904 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34905 "other modifiers).  What guestfish actually does is to multiply the number "
34906 "part by the modifier part and pass the result to the C API.  However this "
34907 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34908 "expecting some other unit (eg. megabytes)."
34909 msgstr ""
34910
34911 #. type: textblock
34912 #: ../src/guestfs.pod:844
34913 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
34914 msgstr ""
34915
34916 #. type: verbatim
34917 #: ../src/guestfs.pod:846
34918 #, no-wrap
34919 msgid ""
34920 " lvcreate LV VG 100M\n"
34921 "\n"
34922 msgstr ""
34923 " lvcreate LV VG 100M\n"
34924 "\n"
34925
34926 #. type: textblock
34927 #: ../src/guestfs.pod:848
34928 msgid ""
34929 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
34930 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34931 "megabytes * megabytes) logical volume.  The error message you get from this "
34932 "is also a little obscure."
34933 msgstr ""
34934
34935 #. type: textblock
34936 #: ../src/guestfs.pod:853
34937 msgid ""
34938 "This could be fixed in the generator by specially marking parameters and "
34939 "return values which take bytes or other units."
34940 msgstr ""
34941
34942 #. type: =item
34943 #: ../src/guestfs.pod:856
34944 msgid "Ambiguity between devices and paths"
34945 msgstr ""
34946
34947 #. type: textblock
34948 #: ../src/guestfs.pod:858
34949 msgid ""
34950 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34951 "sdb2>) and a similar pathname.  A file might just happen to be called "
34952 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34953 msgstr ""
34954
34955 #. type: textblock
34956 #: ../src/guestfs.pod:863
34957 msgid ""
34958 "In the current API we usually resolve this ambiguity by having two separate "
34959 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
34960 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34961 "detecting if the path supplied begins with C</dev/>."
34962 msgstr ""
34963
34964 #. type: textblock
34965 #: ../src/guestfs.pod:869
34966 msgid ""
34967 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34968 "make paths/devices into structured names.  One way to do this would be to "
34969 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34970 "aspect of grub.  Another way would be to use a structured type, equivalent "
34971 "to this OCaml type:"
34972 msgstr ""
34973
34974 #. type: verbatim
34975 #: ../src/guestfs.pod:875
34976 #, no-wrap
34977 msgid ""
34978 " type path = Path of string | Device of int | Partition of int * int\n"
34979 "\n"
34980 msgstr ""
34981
34982 #. type: textblock
34983 #: ../src/guestfs.pod:877
34984 msgid "which would allow you to pass arguments like:"
34985 msgstr ""
34986
34987 #. type: verbatim
34988 #: ../src/guestfs.pod:879
34989 #, no-wrap
34990 msgid ""
34991 " Path \"/foo/bar\"\n"
34992 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
34993 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34994 " Path \"/dev/sdb2\"    (* not a device *)\n"
34995 "\n"
34996 msgstr ""
34997
34998 #. type: textblock
34999 #: ../src/guestfs.pod:884
35000 msgid ""
35001 "As you can see there are still problems to resolve even with this "
35002 "representation.  Also consider how it might work in guestfish."
35003 msgstr ""
35004
35005 #. type: =head2
35006 #: ../src/guestfs.pod:889
35007 msgid "KEYS AND PASSPHRASES"
35008 msgstr "КЛЮЧІ І ПАРОЛІ"
35009
35010 #. type: textblock
35011 #: ../src/guestfs.pod:891
35012 msgid ""
35013 "Certain libguestfs calls take a parameter that contains sensitive key "
35014 "material, passed in as a C string."
35015 msgstr ""
35016
35017 #. type: textblock
35018 #: ../src/guestfs.pod:894
35019 msgid ""
35020 "In the future we would hope to change the libguestfs implementation so that "
35021 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
35022 "swap.  However this is I<not> done at the moment, because of the complexity "
35023 "of such an implementation."
35024 msgstr ""
35025
35026 #. type: textblock
35027 #: ../src/guestfs.pod:899
35028 msgid ""
35029 "Therefore you should be aware that any key parameter you pass to libguestfs "
35030 "might end up being written out to the swap partition.  If this is a concern, "
35031 "scrub the swap partition or don't use libguestfs on encrypted devices."
35032 msgstr ""
35033
35034 #. type: =head2
35035 #: ../src/guestfs.pod:904
35036 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
35037 msgstr ""
35038
35039 #. type: textblock
35040 #: ../src/guestfs.pod:906
35041 msgid ""
35042 "All high-level libguestfs actions are synchronous.  If you want to use "
35043 "libguestfs asynchronously then you must create a thread."
35044 msgstr ""
35045
35046 #. type: textblock
35047 #: ../src/guestfs.pod:909
35048 msgid ""
35049 "Only use the handle from a single thread.  Either use the handle exclusively "
35050 "from one thread, or provide your own mutex so that two threads cannot issue "
35051 "calls on the same handle at the same time."
35052 msgstr ""
35053
35054 #. type: textblock
35055 #: ../src/guestfs.pod:913
35056 msgid ""
35057 "See the graphical program guestfs-browser for one possible architecture for "
35058 "multithreaded programs using libvirt and libguestfs."
35059 msgstr ""
35060
35061 #. type: =head2
35062 #: ../src/guestfs.pod:916
35063 msgid "PATH"
35064 msgstr "ШЛЯХ"
35065
35066 #. type: textblock
35067 #: ../src/guestfs.pod:918
35068 msgid ""
35069 "Libguestfs needs a supermin appliance, which it finds by looking along an "
35070 "internal path."
35071 msgstr ""
35072
35073 #. type: textblock
35074 #: ../src/guestfs.pod:921
35075 msgid ""
35076 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
35077 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
35078 msgstr ""
35079
35080 #. type: textblock
35081 #: ../src/guestfs.pod:924
35082 msgid ""
35083 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
35084 "to change the directories that libguestfs will search in.  The value is a "
35085 "colon-separated list of paths.  The current directory is I<not> searched "
35086 "unless the path contains an empty element or C<.>.  For example "
35087 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
35088 "then C</usr/lib/guestfs>."
35089 msgstr ""
35090
35091 #. type: =head2
35092 #: ../src/guestfs.pod:931
35093 msgid "QEMU WRAPPERS"
35094 msgstr ""
35095
35096 #. type: textblock
35097 #: ../src/guestfs.pod:933
35098 msgid ""
35099 "If you want to compile your own qemu, run qemu from a non-standard location, "
35100 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
35101 "around qemu."
35102 msgstr ""
35103
35104 #. type: textblock
35105 #: ../src/guestfs.pod:937
35106 msgid ""
35107 "There is one important rule to remember: you I<must C<exec qemu>> as the "
35108 "last command in the shell script (so that qemu replaces the shell and "
35109 "becomes the direct child of the libguestfs-using program).  If you don't do "
35110 "this, then the qemu process won't be cleaned up correctly."
35111 msgstr ""
35112
35113 #. type: textblock
35114 #: ../src/guestfs.pod:942
35115 msgid ""
35116 "Here is an example of a wrapper, where I have built my own copy of qemu from "
35117 "source:"
35118 msgstr ""
35119
35120 #. type: verbatim
35121 #: ../src/guestfs.pod:945
35122 #, no-wrap
35123 msgid ""
35124 " #!/bin/sh -\n"
35125 " qemudir=/home/rjones/d/qemu\n"
35126 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35127 "\n"
35128 msgstr ""
35129 " #!/bin/sh -\n"
35130 " qemudir=/home/rjones/d/qemu\n"
35131 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35132 "\n"
35133
35134 #. type: textblock
35135 #: ../src/guestfs.pod:949
35136 msgid ""
35137 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
35138 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
35139 "example:"
35140 msgstr ""
35141
35142 #. type: verbatim
35143 #: ../src/guestfs.pod:953
35144 #, no-wrap
35145 msgid ""
35146 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35147 "\n"
35148 msgstr ""
35149 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35150 "\n"
35151
35152 #. type: textblock
35153 #: ../src/guestfs.pod:955
35154 msgid ""
35155 "Note that libguestfs also calls qemu with the -help and -version options in "
35156 "order to determine features."
35157 msgstr ""
35158
35159 #. type: textblock
35160 #: ../src/guestfs.pod:958
35161 msgid ""
35162 "Wrappers can also be used to edit the options passed to qemu.  In the "
35163 "following example, the C<-machine ...> option (C<-machine> and the following "
35164 "argument) are removed from the command line and replaced with C<-machine pc,"
35165 "accel=tcg>.  The while loop iterates over the options until it finds the "
35166 "right one to remove, putting the remaining options into the C<args> array."
35167 msgstr ""
35168
35169 #. type: verbatim
35170 #: ../src/guestfs.pod:965
35171 #, fuzzy, no-wrap
35172 #| msgid ""
35173 #| " #!/usr/bin/guestfish -f\n"
35174 #| "\n"
35175 msgid ""
35176 " #!/bin/bash -\n"
35177 " \n"
35178 msgstr ""
35179 " #!/usr/bin/guestfish -f\n"
35180 "\n"
35181
35182 #. type: verbatim
35183 #: ../src/guestfs.pod:967
35184 #, no-wrap
35185 msgid ""
35186 " i=0\n"
35187 " while [ $# -gt 0 ]; do\n"
35188 "     case \"$1\" in\n"
35189 "     -machine)\n"
35190 "         shift 2;;\n"
35191 "     *)\n"
35192 "         args[i]=\"$1\"\n"
35193 "         (( i++ ))\n"
35194 "         shift ;;\n"
35195 "     esac\n"
35196 " done\n"
35197 " \n"
35198 msgstr ""
35199
35200 #. type: verbatim
35201 #: ../src/guestfs.pod:979
35202 #, no-wrap
35203 msgid ""
35204 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
35205 "\n"
35206 msgstr ""
35207
35208 #. type: =head2
35209 #: ../src/guestfs.pod:981
35210 msgid "ATTACHING TO RUNNING DAEMONS"
35211 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
35212
35213 #. type: textblock
35214 #: ../src/guestfs.pod:983
35215 msgid ""
35216 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
35217 "babies.  Use with caution."
35218 msgstr ""
35219
35220 #. type: textblock
35221 #: ../src/guestfs.pod:986
35222 msgid ""
35223 "I<Note (2):> This section explains how to attach to a running daemon from a "
35224 "low level perspective.  For most users, simply using virt tools such as "
35225 "L<guestfish(1)> with the I<--live> option will \"just work\"."
35226 msgstr ""
35227
35228 #. type: =head3
35229 #: ../src/guestfs.pod:990
35230 msgid "Using guestfs_set_attach_method"
35231 msgstr "За допомогою guestfs_set_attach_method"
35232
35233 #. type: textblock
35234 #: ../src/guestfs.pod:992
35235 msgid ""
35236 "By calling L</guestfs_set_attach_method> you can change how the library "
35237 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
35238 "ARCHITECTURE> for some background)."
35239 msgstr ""
35240
35241 #. type: textblock
35242 #: ../src/guestfs.pod:996
35243 msgid ""
35244 "The normal attach method is C<appliance>, where a small appliance is created "
35245 "containing the daemon, and then the library connects to this."
35246 msgstr ""
35247
35248 #. type: textblock
35249 #: ../src/guestfs.pod:999
35250 msgid ""
35251 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
35252 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
35253 "daemon over the Unix domain socket."
35254 msgstr ""
35255
35256 #. type: textblock
35257 #: ../src/guestfs.pod:1003
35258 msgid ""
35259 "The normal use for this is to connect to a running virtual machine that "
35260 "contains a C<guestfsd> daemon, and send commands so you can read and write "
35261 "files inside the live virtual machine."
35262 msgstr ""
35263
35264 #. type: =head3
35265 #: ../src/guestfs.pod:1007
35266 msgid "Using guestfs_add_domain with live flag"
35267 msgstr "За допомогою guestfs_add_domain з прапорцем live"
35268
35269 #. type: textblock
35270 #: ../src/guestfs.pod:1009
35271 msgid ""
35272 "L</guestfs_add_domain> provides some help for getting the correct attach "
35273 "method.  If you pass the C<live> option to this function, then (if the "
35274 "virtual machine is running) it will examine the libvirt XML looking for a "
35275 "virtio-serial channel to connect to:"
35276 msgstr ""
35277
35278 #. type: verbatim
35279 #: ../src/guestfs.pod:1015
35280 #, no-wrap
35281 msgid ""
35282 " <domain>\n"
35283 "   ...\n"
35284 "   <devices>\n"
35285 "     ...\n"
35286 "     <channel type='unix'>\n"
35287 "       <source mode='bind' path='/path/to/socket'/>\n"
35288 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35289 "     </channel>\n"
35290 "     ...\n"
35291 "   </devices>\n"
35292 " </domain>\n"
35293 "\n"
35294 msgstr ""
35295 " <domain>\n"
35296 "   ...\n"
35297 "   <devices>\n"
35298 "     ...\n"
35299 "     <channel type='unix'>\n"
35300 "       <source mode='bind' path='/path/to/socket'/>\n"
35301 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35302 "     </channel>\n"
35303 "     ...\n"
35304 "   </devices>\n"
35305 " </domain>\n"
35306 "\n"
35307
35308 #. type: textblock
35309 #: ../src/guestfs.pod:1027
35310 msgid ""
35311 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
35312 "method to C<unix:/path/to/socket>."
35313 msgstr ""
35314
35315 #. type: textblock
35316 #: ../src/guestfs.pod:1030
35317 msgid ""
35318 "Some of the libguestfs tools (including guestfish) support a I<--live> "
35319 "option which is passed through to L</guestfs_add_domain> thus allowing you "
35320 "to attach to and modify live virtual machines."
35321 msgstr ""
35322
35323 #. type: textblock
35324 #: ../src/guestfs.pod:1034
35325 msgid ""
35326 "The virtual machine needs to have been set up beforehand so that it has the "
35327 "virtio-serial channel and so that guestfsd is running inside it."
35328 msgstr ""
35329
35330 #. type: =head2
35331 #: ../src/guestfs.pod:1038
35332 msgid "ABI GUARANTEE"
35333 msgstr "ГАРАНТІЯ ЩОДО ABI"
35334
35335 #. type: textblock
35336 #: ../src/guestfs.pod:1040
35337 msgid ""
35338 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
35339 "actions as outlined in this section.  Although we will deprecate some "
35340 "actions, for example if they get replaced by newer calls, we will keep the "
35341 "old actions forever.  This allows you the developer to program in confidence "
35342 "against the libguestfs API."
35343 msgstr ""
35344
35345 #. type: =head2
35346 #: ../src/guestfs.pod:1046
35347 msgid "BLOCK DEVICE NAMING"
35348 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
35349
35350 #. type: textblock
35351 #: ../src/guestfs.pod:1048
35352 msgid ""
35353 "In the kernel there is now quite a profusion of schemata for naming block "
35354 "devices (in this context, by I<block device> I mean a physical or virtual "
35355 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
35356 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
35357 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
35358 "for the old IDE driver (particularly for SATA devices) those devices also "
35359 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
35360 "paravirtualized drivers.  This has created several different naming systems, "
35361 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
35362 msgstr ""
35363
35364 #. type: textblock
35365 #: ../src/guestfs.pod:1060
35366 msgid ""
35367 "As discussed above, libguestfs uses a qemu appliance running an embedded "
35368 "Linux kernel to access block devices.  We can run a variety of appliances "
35369 "based on a variety of Linux kernels."
35370 msgstr ""
35371
35372 #. type: textblock
35373 #: ../src/guestfs.pod:1064
35374 msgid ""
35375 "This causes a problem for libguestfs because many API calls use device or "
35376 "partition names.  Working scripts and the recipe (example) scripts that we "
35377 "make available over the internet could fail if the naming scheme changes."
35378 msgstr ""
35379
35380 #. type: textblock
35381 #: ../src/guestfs.pod:1069
35382 msgid ""
35383 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
35384 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
35385 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
35386 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
35387 msgstr ""
35388
35389 #. type: textblock
35390 #: ../src/guestfs.pod:1075
35391 msgid ""
35392 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
35393 "L</guestfs_list_partitions> and similar calls return the true names of the "
35394 "devices and partitions as known to the appliance."
35395 msgstr ""
35396
35397 #. type: =head3
35398 #: ../src/guestfs.pod:1080
35399 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
35400 msgstr ""
35401
35402 #. type: textblock
35403 #: ../src/guestfs.pod:1082
35404 msgid ""
35405 "Usually this translation is transparent.  However in some (very rare)  cases "
35406 "you may need to know the exact algorithm.  Such cases include where you use "
35407 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
35408 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
35409 msgstr ""
35410
35411 #. type: textblock
35412 #: ../src/guestfs.pod:1088
35413 msgid ""
35414 "The algorithm is applied only to I<parameters> which are known to be either "
35415 "device or partition names.  Return values from functions such as L</"
35416 "guestfs_list_devices> are never changed."
35417 msgstr ""
35418
35419 #. type: textblock
35420 #: ../src/guestfs.pod:1096
35421 msgid "Is the string a parameter which is a device or partition name?"
35422 msgstr ""
35423
35424 #. type: textblock
35425 #: ../src/guestfs.pod:1100
35426 msgid "Does the string begin with C</dev/sd>?"
35427 msgstr "Чи починається рядок з C</dev/sd>?"
35428
35429 #. type: textblock
35430 #: ../src/guestfs.pod:1104
35431 msgid ""
35432 "Does the named device exist? If so, we use that device.  However if I<not> "
35433 "then we continue with this algorithm."
35434 msgstr ""
35435
35436 #. type: textblock
35437 #: ../src/guestfs.pod:1109
35438 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
35439 msgstr ""
35440
35441 #. type: textblock
35442 #: ../src/guestfs.pod:1111
35443 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
35444 msgstr ""
35445
35446 #. type: textblock
35447 #: ../src/guestfs.pod:1113
35448 msgid "If that named device exists, use it.  If not, continue."
35449 msgstr ""
35450
35451 #. type: textblock
35452 #: ../src/guestfs.pod:1117
35453 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
35454 msgstr ""
35455
35456 #. type: textblock
35457 #: ../src/guestfs.pod:1119
35458 msgid "If that named device exists, use it.  If not, return an error."
35459 msgstr ""
35460
35461 #. type: =head3
35462 #: ../src/guestfs.pod:1123
35463 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
35464 msgstr ""
35465
35466 #. type: textblock
35467 #: ../src/guestfs.pod:1125
35468 msgid ""
35469 "Although the standard naming scheme and automatic translation is useful for "
35470 "simple programs and guestfish scripts, for larger programs it is best not to "
35471 "rely on this mechanism."
35472 msgstr ""
35473
35474 #. type: textblock
35475 #: ../src/guestfs.pod:1129
35476 msgid ""
35477 "Where possible for maximum future portability programs using libguestfs "
35478 "should use these future-proof techniques:"
35479 msgstr ""
35480
35481 #. type: textblock
35482 #: ../src/guestfs.pod:1136
35483 msgid ""
35484 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
35485 "device names, and then use those names directly."
35486 msgstr ""
35487
35488 #. type: textblock
35489 #: ../src/guestfs.pod:1139
35490 msgid ""
35491 "Since those device names exist by definition, they will never be translated."
35492 msgstr ""
35493
35494 #. type: textblock
35495 #: ../src/guestfs.pod:1144
35496 msgid ""
35497 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
35498 "filesystem labels."
35499 msgstr ""
35500
35501 #. type: =head1
35502 #: ../src/guestfs.pod:1149
35503 msgid "SECURITY"
35504 msgstr "БЕЗПЕКА"
35505
35506 #. type: textblock
35507 #: ../src/guestfs.pod:1151
35508 msgid ""
35509 "This section discusses security implications of using libguestfs, "
35510 "particularly with untrusted or malicious guests or disk images."
35511 msgstr ""
35512
35513 #. type: =head2
35514 #: ../src/guestfs.pod:1154
35515 msgid "GENERAL SECURITY CONSIDERATIONS"
35516 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
35517
35518 #. type: textblock
35519 #: ../src/guestfs.pod:1156
35520 msgid ""
35521 "Be careful with any files or data that you download from a guest (by "
35522 "\"download\" we mean not just the L</guestfs_download> command but any "
35523 "command that reads files, filenames, directories or anything else from a "
35524 "disk image).  An attacker could manipulate the data to fool your program "
35525 "into doing the wrong thing.  Consider cases such as:"
35526 msgstr ""
35527
35528 #. type: textblock
35529 #: ../src/guestfs.pod:1166
35530 msgid "the data (file etc) not being present"
35531 msgstr ""
35532
35533 #. type: textblock
35534 #: ../src/guestfs.pod:1170
35535 msgid "being present but empty"
35536 msgstr ""
35537
35538 #. type: textblock
35539 #: ../src/guestfs.pod:1174
35540 msgid "being much larger than normal"
35541 msgstr ""
35542
35543 #. type: textblock
35544 #: ../src/guestfs.pod:1178
35545 msgid "containing arbitrary 8 bit data"
35546 msgstr ""
35547
35548 #. type: textblock
35549 #: ../src/guestfs.pod:1182
35550 msgid "being in an unexpected character encoding"
35551 msgstr ""
35552
35553 #. type: textblock
35554 #: ../src/guestfs.pod:1186
35555 msgid "containing homoglyphs."
35556 msgstr ""
35557
35558 #. type: =head2
35559 #: ../src/guestfs.pod:1190
35560 msgid "SECURITY OF MOUNTING FILESYSTEMS"
35561 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
35562
35563 #. type: textblock
35564 #: ../src/guestfs.pod:1192
35565 msgid ""
35566 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
35567 "(VFS) module can sometimes be escalated into exploits by deliberately "
35568 "creating a malicious, malformed filesystem.  These exploits are very severe "
35569 "for two reasons.  Firstly there are very many filesystem drivers in the "
35570 "kernel, and many of them are infrequently used and not much developer "
35571 "attention has been paid to the code.  Linux userspace helps potential "
35572 "crackers by detecting the filesystem type and automatically choosing the "
35573 "right VFS driver, even if that filesystem type is obscure or unexpected for "
35574 "the administrator.  Secondly, a kernel-level exploit is like a local root "
35575 "exploit (worse in some ways), giving immediate and total access to the "
35576 "system right down to the hardware level."
35577 msgstr ""
35578
35579 #. type: textblock
35580 #: ../src/guestfs.pod:1205
35581 msgid ""
35582 "That explains why you should never mount a filesystem from an untrusted "
35583 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
35584 "inside a qemu virtual machine, usually running as a non-root user.  The "
35585 "attacker would need to write a filesystem which first exploited the kernel, "
35586 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
35587 "the libguestfs protocol, and finally to be as serious as the host kernel "
35588 "exploit it would need to escalate its privileges to root.  This multi-step "
35589 "escalation, performed by a static piece of data, is thought to be extremely "
35590 "hard to do, although we never say 'never' about security issues."
35591 msgstr ""
35592
35593 #. type: textblock
35594 #: ../src/guestfs.pod:1216
35595 msgid ""
35596 "In any case callers can reduce the attack surface by forcing the filesystem "
35597 "type when mounting (use L</guestfs_mount_vfs>)."
35598 msgstr ""
35599
35600 #. type: =head2
35601 #: ../src/guestfs.pod:1219
35602 msgid "PROTOCOL SECURITY"
35603 msgstr "ЗАХИСТ ПРОТОКОЛУ"
35604
35605 #. type: textblock
35606 #: ../src/guestfs.pod:1221
35607 msgid ""
35608 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
35609 "defined upper message size.  However a program that uses libguestfs must "
35610 "also take care - for example you can write a program that downloads a binary "
35611 "from a disk image and executes it locally, and no amount of protocol "
35612 "security will save you from the consequences."
35613 msgstr ""
35614
35615 #. type: =head2
35616 #: ../src/guestfs.pod:1227
35617 msgid "INSPECTION SECURITY"
35618 msgstr ""
35619
35620 #. type: textblock
35621 #: ../src/guestfs.pod:1229
35622 msgid ""
35623 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
35624 "directly from the guest, and these could contain any 8 bit data.  Callers "
35625 "should be careful to escape these before printing them to a structured file "
35626 "(for example, use HTML escaping if creating a web page)."
35627 msgstr ""
35628
35629 #. type: textblock
35630 #: ../src/guestfs.pod:1235
35631 msgid ""
35632 "Guest configuration may be altered in unusual ways by the administrator of "
35633 "the virtual machine, and may not reflect reality (particularly for untrusted "
35634 "or actively malicious guests).  For example we parse the hostname from "
35635 "configuration files like C</etc/sysconfig/network> that we find in the "
35636 "guest, but the guest administrator can easily manipulate these files to "
35637 "provide the wrong hostname."
35638 msgstr ""
35639
35640 #. type: textblock
35641 #: ../src/guestfs.pod:1243
35642 msgid ""
35643 "The inspection API parses guest configuration using two external libraries: "
35644 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
35645 "designed to be robust in the face of malicious data, although denial of "
35646 "service attacks are still possible, for example with oversized configuration "
35647 "files."
35648 msgstr ""
35649
35650 #. type: =head2
35651 #: ../src/guestfs.pod:1249
35652 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
35653 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
35654
35655 #. type: textblock
35656 #: ../src/guestfs.pod:1251
35657 msgid ""
35658 "Be very cautious about running commands from the guest.  By running a "
35659 "command in the guest, you are giving CPU time to a binary that you do not "
35660 "control, under the same user account as the library, albeit wrapped in qemu "
35661 "virtualization.  More information and alternatives can be found in the "
35662 "section L</RUNNING COMMANDS>."
35663 msgstr ""
35664
35665 #. type: =head2
35666 #: ../src/guestfs.pod:1257
35667 msgid "CVE-2010-3851"
35668 msgstr "CVE-2010-3851"
35669
35670 #. type: textblock
35671 #: ../src/guestfs.pod:1259
35672 msgid "https://bugzilla.redhat.com/642934"
35673 msgstr "https://bugzilla.redhat.com/642934"
35674
35675 #. type: textblock
35676 #: ../src/guestfs.pod:1261
35677 msgid ""
35678 "This security bug concerns the automatic disk format detection that qemu "
35679 "does on disk images."
35680 msgstr ""
35681
35682 #. type: textblock
35683 #: ../src/guestfs.pod:1264
35684 msgid ""
35685 "A raw disk image is just the raw bytes, there is no header.  Other disk "
35686 "images like qcow2 contain a special header.  Qemu deals with this by looking "
35687 "for one of the known headers, and if none is found then assuming the disk "
35688 "image must be raw."
35689 msgstr ""
35690
35691 #. type: textblock
35692 #: ../src/guestfs.pod:1269
35693 msgid ""
35694 "This allows a guest which has been given a raw disk image to write some "
35695 "other header.  At next boot (or when the disk image is accessed by "
35696 "libguestfs) qemu would do autodetection and think the disk image format was, "
35697 "say, qcow2 based on the header written by the guest."
35698 msgstr ""
35699
35700 #. type: textblock
35701 #: ../src/guestfs.pod:1274
35702 msgid ""
35703 "This in itself would not be a problem, but qcow2 offers many features, one "
35704 "of which is to allow a disk image to refer to another image (called the "
35705 "\"backing disk\").  It does this by placing the path to the backing disk "
35706 "into the qcow2 header.  This path is not validated and could point to any "
35707 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
35708 "\"holes\" in the qcow2 disk image, which of course is completely under the "
35709 "control of the attacker."
35710 msgstr ""
35711
35712 #. type: textblock
35713 #: ../src/guestfs.pod:1282
35714 msgid ""
35715 "In libguestfs this is rather hard to exploit except under two circumstances:"
35716 msgstr ""
35717
35718 #. type: textblock
35719 #: ../src/guestfs.pod:1289
35720 msgid "You have enabled the network or have opened the disk in write mode."
35721 msgstr ""
35722
35723 #. type: textblock
35724 #: ../src/guestfs.pod:1293
35725 msgid ""
35726 "You are also running untrusted code from the guest (see L</RUNNING "
35727 "COMMANDS>)."
35728 msgstr ""
35729
35730 #. type: textblock
35731 #: ../src/guestfs.pod:1298
35732 msgid ""
35733 "The way to avoid this is to specify the expected disk format when adding "
35734 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
35735 "should always do this if the disk is raw format, and it's a good idea for "
35736 "other cases too."
35737 msgstr ""
35738
35739 #. type: textblock
35740 #: ../src/guestfs.pod:1303
35741 msgid ""
35742 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
35743 "format is fetched from libvirt and passed through."
35744 msgstr ""
35745
35746 #. type: textblock
35747 #: ../src/guestfs.pod:1306
35748 msgid ""
35749 "For libguestfs tools, use the I<--format> command line parameter as "
35750 "appropriate."
35751 msgstr ""
35752
35753 #. type: =head1
35754 #: ../src/guestfs.pod:1309
35755 msgid "CONNECTION MANAGEMENT"
35756 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
35757
35758 #. type: =head2
35759 #: ../src/guestfs.pod:1311
35760 msgid "guestfs_h *"
35761 msgstr "guestfs_h *"
35762
35763 #. type: textblock
35764 #: ../src/guestfs.pod:1313
35765 msgid ""
35766 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
35767 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
35768 "handle and release all resources used."
35769 msgstr ""
35770
35771 #. type: textblock
35772 #: ../src/guestfs.pod:1317
35773 msgid ""
35774 "For information on using multiple handles and threads, see the section L</"
35775 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
35776 msgstr ""
35777
35778 #. type: =head2
35779 #: ../src/guestfs.pod:1320
35780 msgid "guestfs_create"
35781 msgstr "guestfs_create"
35782
35783 #. type: verbatim
35784 #: ../src/guestfs.pod:1322
35785 #, no-wrap
35786 msgid ""
35787 " guestfs_h *guestfs_create (void);\n"
35788 "\n"
35789 msgstr ""
35790 " guestfs_h *guestfs_create (void);\n"
35791 "\n"
35792
35793 #. type: textblock
35794 #: ../src/guestfs.pod:1324
35795 msgid "Create a connection handle."
35796 msgstr "Створити дескриптор з’єднання."
35797
35798 #. type: textblock
35799 #: ../src/guestfs.pod:1326
35800 msgid ""
35801 "On success this returns a non-NULL pointer to a handle.  On error it returns "
35802 "NULL."
35803 msgstr ""
35804
35805 #. type: textblock
35806 #: ../src/guestfs.pod:1329
35807 msgid ""
35808 "You have to \"configure\" the handle after creating it.  This includes "
35809 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
35810 "handle at least once."
35811 msgstr ""
35812
35813 #. type: textblock
35814 #: ../src/guestfs.pod:1333
35815 msgid "After configuring the handle, you have to call L</guestfs_launch>."
35816 msgstr ""
35817
35818 #. type: textblock
35819 #: ../src/guestfs.pod:1335
35820 msgid ""
35821 "You may also want to configure error handling for the handle.  See the L</"
35822 "ERROR HANDLING> section below."
35823 msgstr ""
35824
35825 #. type: =head2
35826 #: ../src/guestfs.pod:1338
35827 msgid "guestfs_close"
35828 msgstr "guestfs_close"
35829
35830 #. type: verbatim
35831 #: ../src/guestfs.pod:1340
35832 #, no-wrap
35833 msgid ""
35834 " void guestfs_close (guestfs_h *g);\n"
35835 "\n"
35836 msgstr ""
35837 " void guestfs_close (guestfs_h *g);\n"
35838 "\n"
35839
35840 #. type: textblock
35841 #: ../src/guestfs.pod:1342
35842 msgid "This closes the connection handle and frees up all resources used."
35843 msgstr ""
35844
35845 #. type: textblock
35846 #: ../src/guestfs.pod:1344
35847 msgid ""
35848 "If autosync was set on the handle and the handle was launched, then this "
35849 "implicitly calls various functions to unmount filesystems and sync the "
35850 "disk.  See L</guestfs_set_autosync> for more details."
35851 msgstr ""
35852
35853 #. type: textblock
35854 #: ../src/guestfs.pod:1348
35855 msgid "If a close callback was set on the handle, then it is called."
35856 msgstr ""
35857
35858 #. type: =head1
35859 #: ../src/guestfs.pod:1350
35860 msgid "ERROR HANDLING"
35861 msgstr "ОБРОБКА ПОМИЛОК"
35862
35863 #. type: textblock
35864 #: ../src/guestfs.pod:1352
35865 msgid ""
35866 "API functions can return errors.  For example, almost all functions that "
35867 "return C<int> will return C<-1> to indicate an error."
35868 msgstr ""
35869
35870 #. type: textblock
35871 #: ../src/guestfs.pod:1355
35872 msgid ""
35873 "Additional information is available for errors: an error message string and "
35874 "optionally an error number (errno) if the thing that failed was a system "
35875 "call."
35876 msgstr ""
35877
35878 #. type: textblock
35879 #: ../src/guestfs.pod:1359
35880 msgid ""
35881 "You can get at the additional information about the last error on the handle "
35882 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
35883 "up an error handler with L</guestfs_set_error_handler>."
35884 msgstr ""
35885
35886 #. type: textblock
35887 #: ../src/guestfs.pod:1364
35888 msgid ""
35889 "When the handle is created, a default error handler is installed which "
35890 "prints the error message string to C<stderr>.  For small short-running "
35891 "command line programs it is sufficient to do:"
35892 msgstr ""
35893
35894 #. type: verbatim
35895 #: ../src/guestfs.pod:1368
35896 #, no-wrap
35897 msgid ""
35898 " if (guestfs_launch (g) == -1)\n"
35899 "   exit (EXIT_FAILURE);\n"
35900 "\n"
35901 msgstr ""
35902 " if (guestfs_launch (g) == -1)\n"
35903 "   exit (EXIT_FAILURE);\n"
35904 "\n"
35905
35906 #. type: textblock
35907 #: ../src/guestfs.pod:1371
35908 msgid ""
35909 "since the default error handler will ensure that an error message has been "
35910 "printed to C<stderr> before the program exits."
35911 msgstr ""
35912
35913 #. type: textblock
35914 #: ../src/guestfs.pod:1374
35915 msgid ""
35916 "For other programs the caller will almost certainly want to install an "
35917 "alternate error handler or do error handling in-line like this:"
35918 msgstr ""
35919
35920 #. type: verbatim
35921 #: ../src/guestfs.pod:1377
35922 #, no-wrap
35923 msgid ""
35924 " /* This disables the default behaviour of printing errors\n"
35925 "    on stderr. */\n"
35926 " guestfs_set_error_handler (g, NULL, NULL);\n"
35927 " \n"
35928 msgstr ""
35929
35930 #. type: verbatim
35931 #: ../src/guestfs.pod:1381
35932 #, fuzzy, no-wrap
35933 #| msgid ""
35934 #| " if (guestfs_launch (g) == -1) {\n"
35935 #| "   /* Examine the error message and print it etc. */\n"
35936 #| "   char *msg = guestfs_last_error (g);\n"
35937 #| "   int errnum = guestfs_last_errno (g);\n"
35938 #| "   fprintf (stderr, \"%s\\n\", msg);\n"
35939 #| "   /* ... */\n"
35940 #| "  }\n"
35941 #| "\n"
35942 msgid ""
35943 " if (guestfs_launch (g) == -1) {\n"
35944 "   /* Examine the error message and print it etc. */\n"
35945 "   char *msg = guestfs_last_error (g);\n"
35946 "   int errnum = guestfs_last_errno (g);\n"
35947 "   fprintf (stderr, \"%s\", msg);\n"
35948 "   if (errnum != 0)\n"
35949 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
35950 "   fprintf (stderr, \"\\n\");\n"
35951 "   /* ... */\n"
35952 " }\n"
35953 "\n"
35954 msgstr ""
35955 " if (guestfs_launch (g) == -1) {\n"
35956 "   /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
35957 "   char *msg = guestfs_last_error (g);\n"
35958 "   int errnum = guestfs_last_errno (g);\n"
35959 "   fprintf (stderr, \"%s\\n\", msg);\n"
35960 "   /* ... */\n"
35961 "  }\n"
35962 "\n"
35963
35964 #. type: textblock
35965 #: ../src/guestfs.pod:1392
35966 msgid ""
35967 "Out of memory errors are handled differently.  The default action is to call "
35968 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
35969 "guestfs_set_out_of_memory_handler>."
35970 msgstr ""
35971
35972 #. type: textblock
35973 #: ../src/guestfs.pod:1396
35974 msgid ""
35975 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35976 "because there is no handle if this happens there is no way to get additional "
35977 "error information.  However L</guestfs_create> is supposed to be a "
35978 "lightweight operation which can only fail because of insufficient memory (it "
35979 "returns NULL in this case)."
35980 msgstr ""
35981
35982 #. type: =head2
35983 #: ../src/guestfs.pod:1402
35984 msgid "guestfs_last_error"
35985 msgstr "guestfs_last_error"
35986
35987 #. type: verbatim
35988 #: ../src/guestfs.pod:1404
35989 #, no-wrap
35990 msgid ""
35991 " const char *guestfs_last_error (guestfs_h *g);\n"
35992 "\n"
35993 msgstr ""
35994 " const char *guestfs_last_error (guestfs_h *g);\n"
35995 "\n"
35996
35997 #. type: textblock
35998 #: ../src/guestfs.pod:1406
35999 msgid ""
36000 "This returns the last error message that happened on C<g>.  If there has not "
36001 "been an error since the handle was created, then this returns C<NULL>."
36002 msgstr ""
36003
36004 #. type: textblock
36005 #: ../src/guestfs.pod:1410
36006 msgid ""
36007 "The lifetime of the returned string is until the next error occurs, or L</"
36008 "guestfs_close> is called."
36009 msgstr ""
36010
36011 #. type: =head2
36012 #: ../src/guestfs.pod:1413
36013 msgid "guestfs_last_errno"
36014 msgstr "guestfs_last_errno"
36015
36016 #. type: verbatim
36017 #: ../src/guestfs.pod:1415
36018 #, no-wrap
36019 msgid ""
36020 " int guestfs_last_errno (guestfs_h *g);\n"
36021 "\n"
36022 msgstr ""
36023 " int guestfs_last_errno (guestfs_h *g);\n"
36024 "\n"
36025
36026 #. type: textblock
36027 #: ../src/guestfs.pod:1417
36028 msgid "This returns the last error number (errno) that happened on C<g>."
36029 msgstr ""
36030
36031 #. type: textblock
36032 #: ../src/guestfs.pod:1419
36033 msgid "If successful, an errno integer not equal to zero is returned."
36034 msgstr ""
36035
36036 #. type: textblock
36037 #: ../src/guestfs.pod:1421
36038 msgid ""
36039 "If no error, this returns 0.  This call can return 0 in three situations:"
36040 msgstr ""
36041
36042 #. type: textblock
36043 #: ../src/guestfs.pod:1428
36044 msgid "There has not been any error on the handle."
36045 msgstr ""
36046
36047 #. type: textblock
36048 #: ../src/guestfs.pod:1432
36049 msgid ""
36050 "There has been an error but the errno was meaningless.  This corresponds to "
36051 "the case where the error did not come from a failed system call, but for "
36052 "some other reason."
36053 msgstr ""
36054
36055 #. type: textblock
36056 #: ../src/guestfs.pod:1438
36057 msgid ""
36058 "There was an error from a failed system call, but for some reason the errno "
36059 "was not captured and returned.  This usually indicates a bug in libguestfs."
36060 msgstr ""
36061
36062 #. type: textblock
36063 #: ../src/guestfs.pod:1444
36064 msgid ""
36065 "Libguestfs tries to convert the errno from inside the applicance into a "
36066 "corresponding errno for the caller (not entirely trivial: the appliance "
36067 "might be running a completely different operating system from the library "
36068 "and error numbers are not standardized across Un*xen).  If this could not be "
36069 "done, then the error is translated to C<EINVAL>.  In practice this should "
36070 "only happen in very rare circumstances."
36071 msgstr ""
36072
36073 #. type: =head2
36074 #: ../src/guestfs.pod:1452
36075 msgid "guestfs_set_error_handler"
36076 msgstr "guestfs_set_error_handler"
36077
36078 #. type: verbatim
36079 #: ../src/guestfs.pod:1454
36080 #, no-wrap
36081 msgid ""
36082 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36083 "                                           void *opaque,\n"
36084 "                                           const char *msg);\n"
36085 " void guestfs_set_error_handler (guestfs_h *g,\n"
36086 "                                 guestfs_error_handler_cb cb,\n"
36087 "                                 void *opaque);\n"
36088 "\n"
36089 msgstr ""
36090 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36091 "                                           void *opaque,\n"
36092 "                                           const char *msg);\n"
36093 " void guestfs_set_error_handler (guestfs_h *g,\n"
36094 "                                 guestfs_error_handler_cb cb,\n"
36095 "                                 void *opaque);\n"
36096 "\n"
36097
36098 #. type: textblock
36099 #: ../src/guestfs.pod:1461
36100 msgid ""
36101 "The callback C<cb> will be called if there is an error.  The parameters "
36102 "passed to the callback are an opaque data pointer and the error message "
36103 "string."
36104 msgstr ""
36105
36106 #. type: textblock
36107 #: ../src/guestfs.pod:1465
36108 msgid ""
36109 "C<errno> is not passed to the callback.  To get that the callback must call "
36110 "L</guestfs_last_errno>."
36111 msgstr ""
36112
36113 #. type: textblock
36114 #: ../src/guestfs.pod:1468
36115 msgid ""
36116 "Note that the message string C<msg> is freed as soon as the callback "
36117 "function returns, so if you want to stash it somewhere you must make your "
36118 "own copy."
36119 msgstr ""
36120
36121 #. type: textblock
36122 #: ../src/guestfs.pod:1472
36123 msgid "The default handler prints messages on C<stderr>."
36124 msgstr ""
36125
36126 #. type: textblock
36127 #: ../src/guestfs.pod:1474
36128 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
36129 msgstr ""
36130
36131 #. type: =head2
36132 #: ../src/guestfs.pod:1476
36133 msgid "guestfs_get_error_handler"
36134 msgstr "guestfs_get_error_handler"
36135
36136 #. type: verbatim
36137 #: ../src/guestfs.pod:1478
36138 #, no-wrap
36139 msgid ""
36140 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36141 "                                                     void **opaque_rtn);\n"
36142 "\n"
36143 msgstr ""
36144 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36145 "                                                     void **opaque_rtn);\n"
36146 "\n"
36147
36148 #. type: textblock
36149 #: ../src/guestfs.pod:1481
36150 msgid "Returns the current error handler callback."
36151 msgstr ""
36152
36153 #. type: =head2
36154 #: ../src/guestfs.pod:1483
36155 msgid "guestfs_set_out_of_memory_handler"
36156 msgstr "guestfs_set_out_of_memory_handler"
36157
36158 #. type: verbatim
36159 #: ../src/guestfs.pod:1485
36160 #, fuzzy, no-wrap
36161 #| msgid ""
36162 #| " typedef void (*guestfs_abort_cb) (void);\n"
36163 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36164 #| "                                        guestfs_abort_cb);\n"
36165 #| "\n"
36166 msgid ""
36167 " typedef void (*guestfs_abort_cb) (void);\n"
36168 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36169 "                                         guestfs_abort_cb);\n"
36170 "\n"
36171 msgstr ""
36172 " typedef void (*guestfs_abort_cb) (void);\n"
36173 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36174 "                                        guestfs_abort_cb);\n"
36175 "\n"
36176
36177 #. type: textblock
36178 #: ../src/guestfs.pod:1489
36179 msgid ""
36180 "The callback C<cb> will be called if there is an out of memory situation.  "
36181 "I<Note this callback must not return>."
36182 msgstr ""
36183
36184 #. type: textblock
36185 #: ../src/guestfs.pod:1492
36186 msgid "The default is to call L<abort(3)>."
36187 msgstr ""
36188
36189 #. type: textblock
36190 #: ../src/guestfs.pod:1494
36191 msgid ""
36192 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
36193 msgstr ""
36194
36195 #. type: =head2
36196 #: ../src/guestfs.pod:1497
36197 msgid "guestfs_get_out_of_memory_handler"
36198 msgstr "guestfs_get_out_of_memory_handler"
36199
36200 #. type: verbatim
36201 #: ../src/guestfs.pod:1499
36202 #, no-wrap
36203 msgid ""
36204 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36205 "\n"
36206 msgstr ""
36207 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36208 "\n"
36209
36210 #. type: textblock
36211 #: ../src/guestfs.pod:1501
36212 msgid "This returns the current out of memory handler."
36213 msgstr ""
36214
36215 #. type: =head1
36216 #: ../src/guestfs.pod:1503
36217 msgid "API CALLS"
36218 msgstr "ВИКЛИКИ API"
36219
36220 #. type: =head1
36221 #: ../src/guestfs.pod:1507
36222 msgid "STRUCTURES"
36223 msgstr "СТРУКТУРИ"
36224
36225 #. type: textblock
36226 #: ../src/guestfs.pod:1509
36227 msgid "@STRUCTS@"
36228 msgstr "@STRUCTS@"
36229
36230 #. type: =head1
36231 #: ../src/guestfs.pod:1511
36232 msgid "AVAILABILITY"
36233 msgstr "ДОСТУПНІСТЬ"
36234
36235 #. type: =head2
36236 #: ../src/guestfs.pod:1513
36237 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
36238 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
36239
36240 #. type: textblock
36241 #: ../src/guestfs.pod:1515
36242 msgid ""
36243 "Using L</guestfs_available> you can test availability of the following "
36244 "groups of functions.  This test queries the appliance to see if the "
36245 "appliance you are currently using supports the functionality."
36246 msgstr ""
36247
36248 #. type: textblock
36249 #: ../src/guestfs.pod:1520
36250 msgid "@AVAILABILITY@"
36251 msgstr "@AVAILABILITY@"
36252
36253 #. type: =head2
36254 #: ../src/guestfs.pod:1522
36255 msgid "GUESTFISH supported COMMAND"
36256 msgstr ""
36257
36258 #. type: textblock
36259 #: ../src/guestfs.pod:1524
36260 msgid ""
36261 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
36262 "prints out the available groups and whether they are supported by this build "
36263 "of libguestfs.  Note however that you have to do C<run> first."
36264 msgstr ""
36265
36266 #. type: =head2
36267 #: ../src/guestfs.pod:1529
36268 msgid "SINGLE CALLS AT COMPILE TIME"
36269 msgstr ""
36270
36271 #. type: textblock
36272 #: ../src/guestfs.pod:1531
36273 msgid ""
36274 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
36275 "function, such as:"
36276 msgstr ""
36277
36278 #. type: verbatim
36279 #: ../src/guestfs.pod:1534
36280 #, no-wrap
36281 msgid ""
36282 " #define LIBGUESTFS_HAVE_DD 1\n"
36283 "\n"
36284 msgstr ""
36285 " #define LIBGUESTFS_HAVE_DD 1\n"
36286 "\n"
36287
36288 #. type: textblock
36289 #: ../src/guestfs.pod:1536
36290 msgid "if L</guestfs_dd> is available."
36291 msgstr ""
36292
36293 #. type: textblock
36294 #: ../src/guestfs.pod:1538
36295 msgid ""
36296 "Before version 1.5.8, if you needed to test whether a single libguestfs "
36297 "function is available at compile time, we recommended using build tools such "
36298 "as autoconf or cmake.  For example in autotools you could use:"
36299 msgstr ""
36300
36301 #. type: verbatim
36302 #: ../src/guestfs.pod:1543
36303 #, no-wrap
36304 msgid ""
36305 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36306 " AC_CHECK_FUNCS([guestfs_dd])\n"
36307 "\n"
36308 msgstr ""
36309 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
36310 " AC_CHECK_FUNCS([guestfs_dd])\n"
36311 "\n"
36312
36313 #. type: textblock
36314 #: ../src/guestfs.pod:1546
36315 msgid ""
36316 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
36317 "in your program."
36318 msgstr ""
36319
36320 #. type: =head2
36321 #: ../src/guestfs.pod:1549
36322 msgid "SINGLE CALLS AT RUN TIME"
36323 msgstr ""
36324
36325 #. type: textblock
36326 #: ../src/guestfs.pod:1551
36327 msgid ""
36328 "Testing at compile time doesn't guarantee that a function really exists in "
36329 "the library.  The reason is that you might be dynamically linked against a "
36330 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
36331 "This situation unfortunately results in a segmentation fault, which is a "
36332 "shortcoming of the C dynamic linking system itself."
36333 msgstr ""
36334
36335 #. type: textblock
36336 #: ../src/guestfs.pod:1558
36337 msgid ""
36338 "You can use L<dlopen(3)> to test if a function is available at run time, as "
36339 "in this example program (note that you still need the compile time check as "
36340 "well):"
36341 msgstr ""
36342
36343 #. type: verbatim
36344 #: ../src/guestfs.pod:1562
36345 #, no-wrap
36346 msgid ""
36347 " #include <stdio.h>\n"
36348 " #include <stdlib.h>\n"
36349 " #include <unistd.h>\n"
36350 " #include <dlfcn.h>\n"
36351 " #include <guestfs.h>\n"
36352 " \n"
36353 msgstr ""
36354 " #include <stdio.h>\n"
36355 " #include <stdlib.h>\n"
36356 " #include <unistd.h>\n"
36357 " #include <dlfcn.h>\n"
36358 " #include <guestfs.h>\n"
36359 " \n"
36360
36361 #. type: verbatim
36362 #: ../src/guestfs.pod:1568
36363 #, no-wrap
36364 msgid ""
36365 " main ()\n"
36366 " {\n"
36367 " #ifdef LIBGUESTFS_HAVE_DD\n"
36368 "   void *dl;\n"
36369 "   int has_function;\n"
36370 " \n"
36371 msgstr ""
36372 " main ()\n"
36373 " {\n"
36374 " #ifdef LIBGUESTFS_HAVE_DD\n"
36375 "   void *dl;\n"
36376 "   int has_function;\n"
36377 " \n"
36378
36379 #. type: verbatim
36380 #: ../src/guestfs.pod:1574
36381 #, no-wrap
36382 msgid ""
36383 "   /* Test if the function guestfs_dd is really available. */\n"
36384 "   dl = dlopen (NULL, RTLD_LAZY);\n"
36385 "   if (!dl) {\n"
36386 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
36387 "     exit (EXIT_FAILURE);\n"
36388 "   }\n"
36389 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
36390 "   dlclose (dl);\n"
36391 " \n"
36392 msgstr ""
36393
36394 #. type: verbatim
36395 #: ../src/guestfs.pod:1583
36396 #, no-wrap
36397 msgid ""
36398 "   if (!has_function)\n"
36399 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
36400 "   else {\n"
36401 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
36402 "     /* Now it's safe to call\n"
36403 "     guestfs_dd (g, \"foo\", \"bar\");\n"
36404 "     */\n"
36405 "   }\n"
36406 " #else\n"
36407 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
36408 " #endif\n"
36409 "  }\n"
36410 "\n"
36411 msgstr ""
36412
36413 #. type: textblock
36414 #: ../src/guestfs.pod:1596
36415 msgid ""
36416 "You may think the above is an awful lot of hassle, and it is.  There are "
36417 "other ways outside of the C linking system to ensure that this kind of "
36418 "incompatibility never arises, such as using package versioning:"
36419 msgstr ""
36420
36421 #. type: verbatim
36422 #: ../src/guestfs.pod:1601
36423 #, no-wrap
36424 msgid ""
36425 " Requires: libguestfs >= 1.0.80\n"
36426 "\n"
36427 msgstr ""
36428
36429 #. type: =head1
36430 #: ../src/guestfs.pod:1603
36431 msgid "CALLS WITH OPTIONAL ARGUMENTS"
36432 msgstr ""
36433
36434 #. type: textblock
36435 #: ../src/guestfs.pod:1605
36436 msgid ""
36437 "A recent feature of the API is the introduction of calls which take optional "
36438 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
36439 "takes variable arguments (ie. C<...>), as in this example:"
36440 msgstr ""
36441
36442 #. type: verbatim
36443 #: ../src/guestfs.pod:1610
36444 #, no-wrap
36445 msgid ""
36446 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36447 "\n"
36448 msgstr ""
36449 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
36450 "\n"
36451
36452 #. type: textblock
36453 #: ../src/guestfs.pod:1612
36454 msgid ""
36455 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
36456 "call with no optional arguments specified:"
36457 msgstr ""
36458
36459 #. type: verbatim
36460 #: ../src/guestfs.pod:1615
36461 #, no-wrap
36462 msgid ""
36463 " guestfs_add_drive_opts (g, filename, -1);\n"
36464 "\n"
36465 msgstr ""
36466 " guestfs_add_drive_opts (g, filename, -1);\n"
36467 "\n"
36468
36469 #. type: textblock
36470 #: ../src/guestfs.pod:1617
36471 msgid "With a single optional argument:"
36472 msgstr ""
36473
36474 #. type: verbatim
36475 #: ../src/guestfs.pod:1619
36476 #, no-wrap
36477 msgid ""
36478 " guestfs_add_drive_opts (g, filename,\n"
36479 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36480 "                         -1);\n"
36481 "\n"
36482 msgstr ""
36483 " guestfs_add_drive_opts (g, filename,\n"
36484 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36485 "                         -1);\n"
36486 "\n"
36487
36488 #. type: textblock
36489 #: ../src/guestfs.pod:1623
36490 msgid "With two:"
36491 msgstr ""
36492
36493 #. type: verbatim
36494 #: ../src/guestfs.pod:1625
36495 #, no-wrap
36496 msgid ""
36497 " guestfs_add_drive_opts (g, filename,\n"
36498 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36499 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36500 "                         -1);\n"
36501 "\n"
36502 msgstr ""
36503 " guestfs_add_drive_opts (g, filename,\n"
36504 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36505 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36506 "                         -1);\n"
36507 "\n"
36508
36509 #. type: textblock
36510 #: ../src/guestfs.pod:1630
36511 msgid ""
36512 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
36513 "happen!"
36514 msgstr ""
36515
36516 #. type: =head2
36517 #: ../src/guestfs.pod:1633
36518 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
36519 msgstr ""
36520
36521 #. type: textblock
36522 #: ../src/guestfs.pod:1635
36523 msgid ""
36524 "The second variant has the same name with the suffix C<_va>, which works the "
36525 "same way but takes a C<va_list>.  See the C manual for details.  For the "
36526 "example function, this is declared:"
36527 msgstr ""
36528
36529 #. type: verbatim
36530 #: ../src/guestfs.pod:1639
36531 #, no-wrap
36532 msgid ""
36533 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36534 "                                va_list args);\n"
36535 "\n"
36536 msgstr ""
36537 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36538 "                                va_list args);\n"
36539 "\n"
36540
36541 #. type: =head2
36542 #: ../src/guestfs.pod:1642
36543 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
36544 msgstr ""
36545
36546 #. type: textblock
36547 #: ../src/guestfs.pod:1644
36548 msgid ""
36549 "The third variant is useful where you need to construct these calls.  You "
36550 "pass in a structure where you fill in the optional fields.  The structure "
36551 "has a bitmask as the first element which you must set to indicate which "
36552 "fields you have filled in.  For our example function the structure and call "
36553 "are declared:"
36554 msgstr ""
36555
36556 #. type: verbatim
36557 #: ../src/guestfs.pod:1650
36558 #, no-wrap
36559 msgid ""
36560 " struct guestfs_add_drive_opts_argv {\n"
36561 "   uint64_t bitmask;\n"
36562 "   int readonly;\n"
36563 "   const char *format;\n"
36564 "   /* ... */\n"
36565 " };\n"
36566 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36567 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
36568 "\n"
36569 msgstr ""
36570 " struct guestfs_add_drive_opts_argv {\n"
36571 "   uint64_t bitmask;\n"
36572 "   int readonly;\n"
36573 "   const char *format;\n"
36574 "   /* ... */\n"
36575 " };\n"
36576 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36577 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
36578 "\n"
36579
36580 #. type: textblock
36581 #: ../src/guestfs.pod:1659
36582 msgid "You could call it like this:"
36583 msgstr ""
36584
36585 #. type: verbatim
36586 #: ../src/guestfs.pod:1661
36587 #, no-wrap
36588 msgid ""
36589 " struct guestfs_add_drive_opts_argv optargs = {\n"
36590 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36591 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36592 "   .readonly = 1,\n"
36593 "   .format = \"qcow2\"\n"
36594 " };\n"
36595 " \n"
36596 msgstr ""
36597 " struct guestfs_add_drive_opts_argv optargs = {\n"
36598 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36599 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36600 "   .readonly = 1,\n"
36601 "   .format = \"qcow2\"\n"
36602 " };\n"
36603 " \n"
36604
36605 #. type: verbatim
36606 #: ../src/guestfs.pod:1668
36607 #, no-wrap
36608 msgid ""
36609 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36610 "\n"
36611 msgstr ""
36612 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36613 "\n"
36614
36615 #. type: textblock
36616 #: ../src/guestfs.pod:1676
36617 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
36618 msgstr ""
36619
36620 #. type: textblock
36621 #: ../src/guestfs.pod:1681
36622 msgid "You do not need to fill in all fields of the structure."
36623 msgstr ""
36624
36625 #. type: textblock
36626 #: ../src/guestfs.pod:1685
36627 msgid ""
36628 "There must be a one-to-one correspondence between fields of the structure "
36629 "that are filled in, and bits set in the bitmask."
36630 msgstr ""
36631
36632 #. type: =head2
36633 #: ../src/guestfs.pod:1690
36634 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
36635 msgstr ""
36636
36637 #. type: textblock
36638 #: ../src/guestfs.pod:1692
36639 msgid ""
36640 "In other languages, optional arguments are expressed in the way that is "
36641 "natural for that language.  We refer you to the language-specific "
36642 "documentation for more details on that."
36643 msgstr ""
36644
36645 #. type: textblock
36646 #: ../src/guestfs.pod:1696
36647 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
36648 msgstr ""
36649
36650 #. type: =head2
36651 #: ../src/guestfs.pod:1698
36652 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
36653 msgstr ""
36654
36655 #. type: textblock
36656 #: ../src/guestfs.pod:1700
36657 msgid ""
36658 "B<Note:> This section documents the generic event mechanism introduced in "
36659 "libguestfs 1.10, which you should use in new code if possible.  The old "
36660 "functions C<guestfs_set_log_message_callback>, "
36661 "C<guestfs_set_subprocess_quit_callback>, "
36662 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
36663 "C<guestfs_set_progress_callback> are no longer documented in this manual "
36664 "page.  Because of the ABI guarantee, the old functions continue to work."
36665 msgstr ""
36666
36667 #. type: textblock
36668 #: ../src/guestfs.pod:1709
36669 msgid ""
36670 "Handles generate events when certain things happen, such as log messages "
36671 "being generated, progress messages during long-running operations, or the "
36672 "handle being closed.  The API calls described below let you register a "
36673 "callback to be called when events happen.  You can register multiple "
36674 "callbacks (for the same, different or overlapping sets of events), and "
36675 "individually remove callbacks.  If callbacks are not removed, then they "
36676 "remain in force until the handle is closed."
36677 msgstr ""
36678
36679 #. type: textblock
36680 #: ../src/guestfs.pod:1717
36681 msgid ""
36682 "In the current implementation, events are only generated synchronously: that "
36683 "means that events (and hence callbacks) can only happen while you are in the "
36684 "middle of making another libguestfs call.  The callback is called in the "
36685 "same thread."
36686 msgstr ""
36687
36688 #. type: textblock
36689 #: ../src/guestfs.pod:1722
36690 msgid ""
36691 "Events may contain a payload, usually nothing (void), an array of 64 bit "
36692 "unsigned integers, or a message buffer.  Payloads are discussed later on."
36693 msgstr ""
36694
36695 #. type: =head3
36696 #: ../src/guestfs.pod:1726
36697 msgid "CLASSES OF EVENTS"
36698 msgstr ""
36699
36700 #. type: =item
36701 #: ../src/guestfs.pod:1730
36702 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
36703 msgstr ""
36704
36705 #. type: textblock
36706 #: ../src/guestfs.pod:1733
36707 msgid ""
36708 "The callback function will be called while the handle is being closed "
36709 "(synchronously from L</guestfs_close>)."
36710 msgstr ""
36711
36712 #. type: textblock
36713 #: ../src/guestfs.pod:1736
36714 msgid ""
36715 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
36716 "handles that are open when the program exits.  This means that this callback "
36717 "might be called indirectly from L<exit(3)>, which can cause unexpected "
36718 "problems in higher-level languages (eg. if your HLL interpreter has already "
36719 "been cleaned up by the time this is called, and if your callback then jumps "
36720 "into some HLL function)."
36721 msgstr ""
36722
36723 #. type: textblock
36724 #: ../src/guestfs.pod:1743
36725 msgid ""
36726 "If no callback is registered: the handle is closed without any callback "
36727 "being invoked."
36728 msgstr ""
36729
36730 #. type: =item
36731 #: ../src/guestfs.pod:1746
36732 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
36733 msgstr ""
36734
36735 #. type: textblock
36736 #: ../src/guestfs.pod:1749
36737 msgid ""
36738 "The callback function will be called when the child process quits, either "
36739 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
36740 "corresponds to a transition from any state to the CONFIG state)."
36741 msgstr ""
36742
36743 #. type: textblock
36744 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
36745 msgid "If no callback is registered: the event is ignored."
36746 msgstr ""
36747
36748 #. type: =item
36749 #: ../src/guestfs.pod:1755
36750 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
36751 msgstr ""
36752
36753 #. type: textblock
36754 #: ../src/guestfs.pod:1758
36755 msgid ""
36756 "The callback function will be called when the child process becomes ready "
36757 "first time after it has been launched.  (This corresponds to a transition "
36758 "from LAUNCHING to the READY state)."
36759 msgstr ""
36760
36761 #. type: =item
36762 #: ../src/guestfs.pod:1764
36763 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
36764 msgstr ""
36765
36766 #. type: textblock
36767 #: ../src/guestfs.pod:1767
36768 msgid ""
36769 "Some long-running operations can generate progress messages.  If this "
36770 "callback is registered, then it will be called each time a progress message "
36771 "is generated (usually two seconds after the operation started, and three "
36772 "times per second thereafter until it completes, although the frequency may "
36773 "change in future versions)."
36774 msgstr ""
36775
36776 #. type: textblock
36777 #: ../src/guestfs.pod:1773
36778 msgid ""
36779 "The callback receives in the payload four unsigned 64 bit numbers which are "
36780 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
36781 msgstr ""
36782
36783 #. type: textblock
36784 #: ../src/guestfs.pod:1776
36785 msgid ""
36786 "The units of C<total> are not defined, although for some operations C<total> "
36787 "may relate in some way to the amount of data to be transferred (eg. in bytes "
36788 "or megabytes), and C<position> may be the portion which has been transferred."
36789 msgstr ""
36790
36791 #. type: textblock
36792 #: ../src/guestfs.pod:1781
36793 msgid "The only defined and stable parts of the API are:"
36794 msgstr ""
36795
36796 #. type: textblock
36797 #: ../src/guestfs.pod:1787
36798 msgid ""
36799 "The callback can display to the user some type of progress bar or indicator "
36800 "which shows the ratio of C<position>:C<total>."
36801 msgstr ""
36802
36803 #. type: textblock
36804 #: ../src/guestfs.pod:1792
36805 msgid "0 E<lt>= C<position> E<lt>= C<total>"
36806 msgstr ""
36807
36808 #. type: textblock
36809 #: ../src/guestfs.pod:1796
36810 msgid ""
36811 "If any progress notification is sent during a call, then a final progress "
36812 "notification is always sent when C<position> = C<total> (I<unless> the call "
36813 "fails with an error)."
36814 msgstr ""
36815
36816 #. type: textblock
36817 #: ../src/guestfs.pod:1800
36818 msgid ""
36819 "This is to simplify caller code, so callers can easily set the progress "
36820 "indicator to \"100%\" at the end of the operation, without requiring special "
36821 "code to detect this case."
36822 msgstr ""
36823
36824 #. type: textblock
36825 #: ../src/guestfs.pod:1806
36826 msgid ""
36827 "For some calls we are unable to estimate the progress of the call, but we "
36828 "can still generate progress messages to indicate activity.  This is known as "
36829 "\"pulse mode\", and is directly supported by certain progress bar "
36830 "implementations (eg. GtkProgressBar)."
36831 msgstr ""
36832
36833 #. type: textblock
36834 #: ../src/guestfs.pod:1811
36835 msgid ""
36836 "For these calls, zero or more progress messages are generated with "
36837 "C<position = 0> and C<total = 1>, followed by a final message with "
36838 "C<position = total = 1>."
36839 msgstr ""
36840
36841 #. type: textblock
36842 #: ../src/guestfs.pod:1815
36843 msgid ""
36844 "As noted above, if the call fails with an error then the final message may "
36845 "not be generated."
36846 msgstr ""
36847
36848 #. type: textblock
36849 #: ../src/guestfs.pod:1820
36850 msgid ""
36851 "The callback also receives the procedure number (C<proc_nr>) and serial "
36852 "number (C<serial>) of the call.  These are only useful for debugging "
36853 "protocol issues, and the callback can normally ignore them.  The callback "
36854 "may want to print these numbers in error messages or debugging messages."
36855 msgstr ""
36856
36857 #. type: textblock
36858 #: ../src/guestfs.pod:1826
36859 msgid "If no callback is registered: progress messages are discarded."
36860 msgstr ""
36861
36862 #. type: =item
36863 #: ../src/guestfs.pod:1828
36864 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
36865 msgstr ""
36866
36867 #. type: textblock
36868 #: ../src/guestfs.pod:1831
36869 msgid ""
36870 "The callback function is called whenever a log message is generated by qemu, "
36871 "the appliance kernel, guestfsd (daemon), or utility programs."
36872 msgstr ""
36873
36874 #. type: textblock
36875 #: ../src/guestfs.pod:1834
36876 msgid ""
36877 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
36878 "guestfs_launch>) then additional debug messages are generated."
36879 msgstr ""
36880
36881 #. type: textblock
36882 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
36883 msgid ""
36884 "If no callback is registered: the messages are discarded unless the verbose "
36885 "flag is set in which case they are sent to stderr.  You can override the "
36886 "printing of verbose messages to stderr by setting up a callback."
36887 msgstr ""
36888
36889 #. type: =item
36890 #: ../src/guestfs.pod:1842
36891 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
36892 msgstr ""
36893
36894 #. type: textblock
36895 #: ../src/guestfs.pod:1845
36896 msgid ""
36897 "The callback function is called whenever a log message is generated by the "
36898 "library part of libguestfs."
36899 msgstr ""
36900
36901 #. type: textblock
36902 #: ../src/guestfs.pod:1848
36903 msgid ""
36904 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
36905 "messages are generated."
36906 msgstr ""
36907
36908 #. type: =item
36909 #: ../src/guestfs.pod:1856
36910 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
36911 msgstr ""
36912
36913 #. type: textblock
36914 #: ../src/guestfs.pod:1859
36915 msgid ""
36916 "The callback function is called whenever a trace message is generated.  This "
36917 "only applies if the trace flag (L</guestfs_set_trace>) is set."
36918 msgstr ""
36919
36920 #. type: textblock
36921 #: ../src/guestfs.pod:1862
36922 msgid ""
36923 "If no callback is registered: the messages are sent to stderr.  You can "
36924 "override the printing of trace messages to stderr by setting up a callback."
36925 msgstr ""
36926
36927 #. type: =item
36928 #: ../src/guestfs.pod:1866
36929 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
36930 msgstr ""
36931
36932 #. type: textblock
36933 #: ../src/guestfs.pod:1869
36934 msgid ""
36935 "The callback function is called whenever a libguestfs function is entered."
36936 msgstr ""
36937
36938 #. type: textblock
36939 #: ../src/guestfs.pod:1872
36940 msgid ""
36941 "The payload is a string which contains the name of the function that we are "
36942 "entering (not including C<guestfs_> prefix)."
36943 msgstr ""
36944
36945 #. type: textblock
36946 #: ../src/guestfs.pod:1875
36947 msgid ""
36948 "Note that libguestfs functions can call themselves, so you may see many "
36949 "events from a single call.  A few libguestfs functions do not generate this "
36950 "event."
36951 msgstr ""
36952
36953 #. type: =head3
36954 #: ../src/guestfs.pod:1883
36955 msgid "guestfs_set_event_callback"
36956 msgstr ""
36957
36958 #. type: verbatim
36959 #: ../src/guestfs.pod:1885
36960 #, no-wrap
36961 msgid ""
36962 " int guestfs_set_event_callback (guestfs_h *g,\n"
36963 "                                 guestfs_event_callback cb,\n"
36964 "                                 uint64_t event_bitmask,\n"
36965 "                                 int flags,\n"
36966 "                                 void *opaque);\n"
36967 "\n"
36968 msgstr ""
36969
36970 #. type: textblock
36971 #: ../src/guestfs.pod:1891
36972 msgid ""
36973 "This function registers a callback (C<cb>) for all event classes in the "
36974 "C<event_bitmask>."
36975 msgstr ""
36976
36977 #. type: textblock
36978 #: ../src/guestfs.pod:1894
36979 msgid ""
36980 "For example, to register for all log message events, you could call this "
36981 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
36982 "To register a single callback for all possible classes of events, use "
36983 "C<GUESTFS_EVENT_ALL>."
36984 msgstr ""
36985
36986 #. type: textblock
36987 #: ../src/guestfs.pod:1900
36988 msgid "C<flags> should always be passed as 0."
36989 msgstr ""
36990
36991 #. type: textblock
36992 #: ../src/guestfs.pod:1902
36993 msgid ""
36994 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
36995 "it for any purpose."
36996 msgstr ""
36997
36998 #. type: textblock
36999 #: ../src/guestfs.pod:1905
37000 msgid ""
37001 "The return value is the event handle (an integer) which you can use to "
37002 "delete the callback (see below)."
37003 msgstr ""
37004
37005 #. type: textblock
37006 #: ../src/guestfs.pod:1908
37007 msgid ""
37008 "If there is an error, this function returns C<-1>, and sets the error in the "
37009 "handle in the usual way (see L</guestfs_last_error> etc.)"
37010 msgstr ""
37011
37012 #. type: textblock
37013 #: ../src/guestfs.pod:1911
37014 msgid ""
37015 "Callbacks remain in effect until they are deleted, or until the handle is "
37016 "closed."
37017 msgstr ""
37018
37019 #. type: textblock
37020 #: ../src/guestfs.pod:1914
37021 msgid ""
37022 "In the case where multiple callbacks are registered for a particular event "
37023 "class, all of the callbacks are called.  The order in which multiple "
37024 "callbacks are called is not defined."
37025 msgstr ""
37026
37027 #. type: =head3
37028 #: ../src/guestfs.pod:1918
37029 msgid "guestfs_delete_event_callback"
37030 msgstr ""
37031
37032 #. type: verbatim
37033 #: ../src/guestfs.pod:1920
37034 #, no-wrap
37035 msgid ""
37036 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37037 "\n"
37038 msgstr ""
37039
37040 #. type: textblock
37041 #: ../src/guestfs.pod:1922
37042 msgid ""
37043 "Delete a callback that was previously registered.  C<event_handle> should be "
37044 "the integer that was returned by a previous call to "
37045 "C<guestfs_set_event_callback> on the same handle."
37046 msgstr ""
37047
37048 #. type: =head3
37049 #: ../src/guestfs.pod:1926
37050 msgid "guestfs_event_callback"
37051 msgstr ""
37052
37053 #. type: verbatim
37054 #: ../src/guestfs.pod:1928
37055 #, no-wrap
37056 msgid ""
37057 " typedef void (*guestfs_event_callback) (\n"
37058 "                  guestfs_h *g,\n"
37059 "                  void *opaque,\n"
37060 "                  uint64_t event,\n"
37061 "                  int event_handle,\n"
37062 "                  int flags,\n"
37063 "                  const char *buf, size_t buf_len,\n"
37064 "                  const uint64_t *array, size_t array_len);\n"
37065 "\n"
37066 msgstr ""
37067
37068 #. type: textblock
37069 #: ../src/guestfs.pod:1937
37070 msgid ""
37071 "This is the type of the event callback function that you have to provide."
37072 msgstr ""
37073
37074 #. type: textblock
37075 #: ../src/guestfs.pod:1940
37076 msgid ""
37077 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37078 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37079 "handle, and C<flags> which in the current API you should ignore."
37080 msgstr ""
37081
37082 #. type: textblock
37083 #: ../src/guestfs.pod:1944
37084 msgid ""
37085 "The remaining parameters contain the event payload (if any).  Each event may "
37086 "contain a payload, which usually relates to the event class, but for future "
37087 "proofing your code should be written to handle any payload for any event "
37088 "class."
37089 msgstr ""
37090
37091 #. type: textblock
37092 #: ../src/guestfs.pod:1949
37093 msgid ""
37094 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37095 "there is no message buffer).  Note that this message buffer can contain "
37096 "arbitrary 8 bit data, including NUL bytes."
37097 msgstr ""
37098
37099 #. type: textblock
37100 #: ../src/guestfs.pod:1953
37101 msgid ""
37102 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
37103 "moment this is only used for progress messages."
37104 msgstr ""
37105
37106 #. type: =head3
37107 #: ../src/guestfs.pod:1956
37108 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37109 msgstr ""
37110
37111 #. type: textblock
37112 #: ../src/guestfs.pod:1958
37113 msgid ""
37114 "One motivation for the generic event API was to allow GUI programs to "
37115 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
37116 "unconditionally to C<stderr>."
37117 msgstr ""
37118
37119 #. type: textblock
37120 #: ../src/guestfs.pod:1962
37121 msgid ""
37122 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37123 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
37124 "messages are not events; you must capture error messages separately)."
37125 msgstr ""
37126
37127 #. type: textblock
37128 #: ../src/guestfs.pod:1967
37129 msgid ""
37130 "Programs have to set up a callback to capture the classes of events of "
37131 "interest:"
37132 msgstr ""
37133
37134 #. type: verbatim
37135 #: ../src/guestfs.pod:1970
37136 #, no-wrap
37137 msgid ""
37138 " int eh =\n"
37139 "   guestfs_set_event_callback\n"
37140 "     (g, message_callback,\n"
37141 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37142 "      GUESTFS_EVENT_TRACE,\n"
37143 "      0, NULL) == -1)\n"
37144 " if (eh == -1) {\n"
37145 "   // handle error in the usual way\n"
37146 " }\n"
37147 "\n"
37148 msgstr ""
37149
37150 #. type: textblock
37151 #: ../src/guestfs.pod:1980
37152 msgid ""
37153 "The callback can then direct messages to the appropriate place.  In this "
37154 "example, messages are directed to syslog:"
37155 msgstr ""
37156
37157 #. type: verbatim
37158 #: ../src/guestfs.pod:1983
37159 #, no-wrap
37160 msgid ""
37161 " static void\n"
37162 " message_callback (\n"
37163 "         guestfs_h *g,\n"
37164 "         void *opaque,\n"
37165 "         uint64_t event,\n"
37166 "         int event_handle,\n"
37167 "         int flags,\n"
37168 "         const char *buf, size_t buf_len,\n"
37169 "         const uint64_t *array, size_t array_len)\n"
37170 " {\n"
37171 "   const int priority = LOG_USER|LOG_INFO;\n"
37172 "   if (buf_len > 0)\n"
37173 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
37174 " }\n"
37175 "\n"
37176 msgstr ""
37177
37178 #. type: =head1
37179 #: ../src/guestfs.pod:1998
37180 msgid "CANCELLING LONG TRANSFERS"
37181 msgstr ""
37182
37183 #. type: textblock
37184 #: ../src/guestfs.pod:2000
37185 msgid ""
37186 "Some operations can be cancelled by the caller while they are in progress.  "
37187 "Currently only operations that involve uploading or downloading data can be "
37188 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
37189 "parameters in the generator)."
37190 msgstr ""
37191
37192 #. type: =head2
37193 #: ../src/guestfs.pod:2005
37194 msgid "guestfs_user_cancel"
37195 msgstr ""
37196
37197 #. type: verbatim
37198 #: ../src/guestfs.pod:2007
37199 #, no-wrap
37200 msgid ""
37201 " void guestfs_user_cancel (guestfs_h *g);\n"
37202 "\n"
37203 msgstr ""
37204
37205 #. type: textblock
37206 #: ../src/guestfs.pod:2009
37207 msgid ""
37208 "C<guestfs_user_cancel> cancels the current upload or download operation."
37209 msgstr ""
37210
37211 #. type: textblock
37212 #: ../src/guestfs.pod:2012
37213 msgid ""
37214 "Unlike most other libguestfs calls, this function is signal safe and thread "
37215 "safe.  You can call it from a signal handler or from another thread, without "
37216 "needing to do any locking."
37217 msgstr ""
37218
37219 #. type: textblock
37220 #: ../src/guestfs.pod:2016
37221 msgid ""
37222 "The transfer that was in progress (if there is one) will stop shortly "
37223 "afterwards, and will return an error.  The errno (see L</"
37224 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
37225 "out if the operation was cancelled or failed because of another error."
37226 msgstr ""
37227
37228 #. type: textblock
37229 #: ../src/guestfs.pod:2022
37230 msgid ""
37231 "No cleanup is performed: for example, if a file was being uploaded then "
37232 "after cancellation there may be a partially uploaded file.  It is the "
37233 "caller's responsibility to clean up if necessary."
37234 msgstr ""
37235
37236 #. type: textblock
37237 #: ../src/guestfs.pod:2026
37238 msgid "There are two common places that you might call C<guestfs_user_cancel>."
37239 msgstr ""
37240
37241 #. type: textblock
37242 #: ../src/guestfs.pod:2028
37243 msgid ""
37244 "In an interactive text-based program, you might call it from a C<SIGINT> "
37245 "signal handler so that pressing C<^C> cancels the current operation.  (You "
37246 "also need to call L</guestfs_set_pgroup> so that child processes don't "
37247 "receive the C<^C> signal)."
37248 msgstr ""
37249
37250 #. type: textblock
37251 #: ../src/guestfs.pod:2033
37252 msgid ""
37253 "In a graphical program, when the main thread is displaying a progress bar "
37254 "with a cancel button, wire up the cancel button to call this function."
37255 msgstr ""
37256
37257 #. type: =head1
37258 #: ../src/guestfs.pod:2037
37259 msgid "PRIVATE DATA AREA"
37260 msgstr ""
37261
37262 #. type: textblock
37263 #: ../src/guestfs.pod:2039
37264 msgid ""
37265 "You can attach named pieces of private data to the libguestfs handle, fetch "
37266 "them by name, and walk over them, for the lifetime of the handle.  This is "
37267 "called the private data area and is only available from the C API."
37268 msgstr ""
37269
37270 #. type: textblock
37271 #: ../src/guestfs.pod:2044
37272 msgid "To attach a named piece of data, use the following call:"
37273 msgstr ""
37274
37275 #. type: verbatim
37276 #: ../src/guestfs.pod:2046
37277 #, no-wrap
37278 msgid ""
37279 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37280 "\n"
37281 msgstr ""
37282 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37283 "\n"
37284
37285 #. type: textblock
37286 #: ../src/guestfs.pod:2048
37287 msgid ""
37288 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
37289 "pointer (which can be C<NULL>).  Any previous item with the same key is "
37290 "overwritten."
37291 msgstr ""
37292
37293 #. type: textblock
37294 #: ../src/guestfs.pod:2052
37295 msgid ""
37296 "You can use any C<key> you want, but your key should I<not> start with an "
37297 "underscore character.  Keys beginning with an underscore character are "
37298 "reserved for internal libguestfs purposes (eg. for implementing language "
37299 "bindings).  It is recommended that you prefix the key with some unique "
37300 "string to avoid collisions with other users."
37301 msgstr ""
37302
37303 #. type: textblock
37304 #: ../src/guestfs.pod:2058
37305 msgid "To retrieve the pointer, use:"
37306 msgstr ""
37307
37308 #. type: verbatim
37309 #: ../src/guestfs.pod:2060
37310 #, no-wrap
37311 msgid ""
37312 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37313 "\n"
37314 msgstr ""
37315 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
37316 "\n"
37317
37318 #. type: textblock
37319 #: ../src/guestfs.pod:2062
37320 msgid ""
37321 "This function returns C<NULL> if either no data is found associated with "
37322 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
37323 "C<NULL>."
37324 msgstr ""
37325
37326 #. type: textblock
37327 #: ../src/guestfs.pod:2066
37328 msgid ""
37329 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
37330 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
37331 "all.  In particular, libguestfs does I<not> try to free the data when the "
37332 "handle is closed.  If the data must be freed, then the caller must either "
37333 "free it before calling L</guestfs_close> or must set up a close callback to "
37334 "do it (see L</GUESTFS_EVENT_CLOSE>)."
37335 msgstr ""
37336
37337 #. type: textblock
37338 #: ../src/guestfs.pod:2073
37339 msgid "To walk over all entries, use these two functions:"
37340 msgstr ""
37341
37342 #. type: verbatim
37343 #: ../src/guestfs.pod:2075
37344 #, no-wrap
37345 msgid ""
37346 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
37347 "\n"
37348 msgstr ""
37349
37350 #. type: verbatim
37351 #: ../src/guestfs.pod:2077
37352 #, no-wrap
37353 msgid ""
37354 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
37355 "\n"
37356 msgstr ""
37357
37358 #. type: textblock
37359 #: ../src/guestfs.pod:2079
37360 msgid ""
37361 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
37362 "not have any particular meaning -- keys are not returned in any defined "
37363 "order).  A pointer to the key is returned in C<*key_rtn> and the "
37364 "corresponding data pointer is returned from the function.  C<NULL> is "
37365 "returned if there are no keys stored in the handle."
37366 msgstr ""
37367
37368 #. type: textblock
37369 #: ../src/guestfs.pod:2085
37370 msgid ""
37371 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
37372 "value of this function is also C<NULL> is there are no further entries to "
37373 "return."
37374 msgstr ""
37375
37376 #. type: textblock
37377 #: ../src/guestfs.pod:2089
37378 msgid "Notes about walking over entries:"
37379 msgstr ""
37380
37381 #. type: textblock
37382 #: ../src/guestfs.pod:2095
37383 msgid ""
37384 "You must not call C<guestfs_set_private> while walking over the entries."
37385 msgstr ""
37386
37387 #. type: textblock
37388 #: ../src/guestfs.pod:2100
37389 msgid ""
37390 "The handle maintains an internal iterator which is reset when you call "
37391 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
37392 "call C<guestfs_set_private>."
37393 msgstr ""
37394
37395 #. type: textblock
37396 #: ../src/guestfs.pod:2106
37397 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
37398 msgstr ""
37399
37400 #. type: verbatim
37401 #: ../src/guestfs.pod:2108
37402 #, no-wrap
37403 msgid ""
37404 " guestfs_set_private (g, key, NULL);\n"
37405 "\n"
37406 msgstr ""
37407
37408 #. type: textblock
37409 #: ../src/guestfs.pod:2110
37410 msgid "then that C<key> is not returned when walking."
37411 msgstr ""
37412
37413 #. type: textblock
37414 #: ../src/guestfs.pod:2114
37415 msgid ""
37416 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
37417 "C<guestfs_next_private> or C<guestfs_set_private>."
37418 msgstr ""
37419
37420 #. type: textblock
37421 #: ../src/guestfs.pod:2120
37422 msgid ""
37423 "The following example code shows how to print all keys and data pointers "
37424 "that are associated with the handle C<g>:"
37425 msgstr ""
37426
37427 #. type: verbatim
37428 #: ../src/guestfs.pod:2123
37429 #, no-wrap
37430 msgid ""
37431 " const char *key;\n"
37432 " void *data = guestfs_first_private (g, &key);\n"
37433 " while (data != NULL)\n"
37434 "   {\n"
37435 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
37436 "     data = guestfs_next_private (g, &key);\n"
37437 "   }\n"
37438 "\n"
37439 msgstr ""
37440
37441 #. type: textblock
37442 #: ../src/guestfs.pod:2131
37443 msgid ""
37444 "More commonly you are only interested in keys that begin with an application-"
37445 "specific prefix C<foo_>.  Modify the loop like so:"
37446 msgstr ""
37447
37448 #. type: verbatim
37449 #: ../src/guestfs.pod:2134
37450 #, no-wrap
37451 msgid ""
37452 " const char *key;\n"
37453 " void *data = guestfs_first_private (g, &key);\n"
37454 " while (data != NULL)\n"
37455 "   {\n"
37456 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37457 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
37458 "     data = guestfs_next_private (g, &key);\n"
37459 "   }\n"
37460 "\n"
37461 msgstr ""
37462
37463 #. type: textblock
37464 #: ../src/guestfs.pod:2143
37465 msgid ""
37466 "If you need to modify keys while walking, then you have to jump back to the "
37467 "beginning of the loop.  For example, to delete all keys prefixed with "
37468 "C<foo_>:"
37469 msgstr ""
37470
37471 #. type: verbatim
37472 #: ../src/guestfs.pod:2147
37473 #, no-wrap
37474 msgid ""
37475 "  const char *key;\n"
37476 "  void *data;\n"
37477 " again:\n"
37478 "  data = guestfs_first_private (g, &key);\n"
37479 "  while (data != NULL)\n"
37480 "    {\n"
37481 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
37482 "        {\n"
37483 "          guestfs_set_private (g, key, NULL);\n"
37484 "          /* note that 'key' pointer is now invalid, and so is\n"
37485 "             the internal iterator */\n"
37486 "          goto again;\n"
37487 "        }\n"
37488 "      data = guestfs_next_private (g, &key);\n"
37489 "    }\n"
37490 "\n"
37491 msgstr ""
37492
37493 #. type: textblock
37494 #: ../src/guestfs.pod:2163
37495 msgid ""
37496 "Note that the above loop is guaranteed to terminate because the keys are "
37497 "being deleted, but other manipulations of keys within the loop might not "
37498 "terminate unless you also maintain an indication of which keys have been "
37499 "visited."
37500 msgstr ""
37501
37502 #. type: =end
37503 #: ../src/guestfs.pod:2168 ../src/guestfs.pod:2173
37504 msgid "html"
37505 msgstr "html"
37506
37507 #. type: textblock
37508 #: ../src/guestfs.pod:2170
37509 msgid ""
37510 "<!-- old anchor for the next section --> <a name="
37511 "\"state_machine_and_low_level_event_api\"/>"
37512 msgstr ""
37513 "<!-- old anchor for the next section --> <a name="
37514 "\"state_machine_and_low_level_event_api\"/>"
37515
37516 #. type: =head1
37517 #: ../src/guestfs.pod:2175
37518 msgid "ARCHITECTURE"
37519 msgstr "АРХІТЕКТУРА"
37520
37521 #. type: textblock
37522 #: ../src/guestfs.pod:2177
37523 msgid ""
37524 "Internally, libguestfs is implemented by running an appliance (a special "
37525 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
37526 "process of the main program."
37527 msgstr ""
37528
37529 #. type: verbatim
37530 #: ../src/guestfs.pod:2181
37531 #, no-wrap
37532 msgid ""
37533 "  ___________________\n"
37534 " /                   \\\n"
37535 " | main program      |\n"
37536 " |                   |\n"
37537 " |                   |           child process / appliance\n"
37538 " |                   |           __________________________\n"
37539 " |                   |          / qemu                     \\\n"
37540 " +-------------------+   RPC    |      +-----------------+ |\n"
37541 " | libguestfs     <--------------------> guestfsd        | |\n"
37542 " |                   |          |      +-----------------+ |\n"
37543 " \\___________________/          |      | Linux kernel    | |\n"
37544 "                                |      +--^--------------+ |\n"
37545 "                                \\_________|________________/\n"
37546 "                                          |\n"
37547 "                                   _______v______\n"
37548 "                                  /              \\\n"
37549 "                                  | Device or    |\n"
37550 "                                  | disk image   |\n"
37551 "                                  \\______________/\n"
37552 "\n"
37553 msgstr ""
37554
37555 #. type: textblock
37556 #: ../src/guestfs.pod:2201
37557 msgid ""
37558 "The library, linked to the main program, creates the child process and hence "
37559 "the appliance in the L</guestfs_launch> function."
37560 msgstr ""
37561
37562 #. type: textblock
37563 #: ../src/guestfs.pod:2204
37564 msgid ""
37565 "Inside the appliance is a Linux kernel and a complete stack of userspace "
37566 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
37567 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
37568 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
37569 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
37570 "attached to the qemu process which translates device access by the "
37571 "appliance's Linux kernel into accesses to the image."
37572 msgstr ""
37573
37574 #. type: textblock
37575 #: ../src/guestfs.pod:2213
37576 msgid ""
37577 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
37578 "Although the disk image you are attached to might also be used by some "
37579 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
37580 "care if both libguestfs's qemu process and your virtual machine are trying "
37581 "to update the disk image at the same time, since these usually results in "
37582 "massive disk corruption)."
37583 msgstr ""
37584
37585 #. type: =head1
37586 #: ../src/guestfs.pod:2220
37587 msgid "STATE MACHINE"
37588 msgstr "СКІНЧЕННИЙ АВТОМАТ"
37589
37590 #. type: textblock
37591 #: ../src/guestfs.pod:2222
37592 msgid "libguestfs uses a state machine to model the child process:"
37593 msgstr ""
37594
37595 #. type: verbatim
37596 #: ../src/guestfs.pod:2224
37597 #, no-wrap
37598 msgid ""
37599 "                         |\n"
37600 "                    guestfs_create\n"
37601 "                         |\n"
37602 "                         |\n"
37603 "                     ____V_____\n"
37604 "                    /          \\\n"
37605 "                    |  CONFIG  |\n"
37606 "                    \\__________/\n"
37607 "                     ^ ^   ^  \\\n"
37608 "                    /  |    \\  \\ guestfs_launch\n"
37609 "                   /   |    _\\__V______\n"
37610 "                  /    |   /           \\\n"
37611 "                 /     |   | LAUNCHING |\n"
37612 "                /      |   \\___________/\n"
37613 "               /       |       /\n"
37614 "              /        |  guestfs_launch\n"
37615 "             /         |     /\n"
37616 "    ______  /        __|____V\n"
37617 "   /      \\ ------> /        \\\n"
37618 "   | BUSY |         | READY  |\n"
37619 "   \\______/ <------ \\________/\n"
37620 "\n"
37621 msgstr ""
37622
37623 #. type: textblock
37624 #: ../src/guestfs.pod:2246
37625 msgid ""
37626 "The normal transitions are (1) CONFIG (when the handle is created, but there "
37627 "is no child process), (2) LAUNCHING (when the child process is booting up), "
37628 "(3) alternating between READY and BUSY as commands are issued to, and "
37629 "carried out by, the child process."
37630 msgstr ""
37631
37632 #. type: textblock
37633 #: ../src/guestfs.pod:2251
37634 msgid ""
37635 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
37636 "asynchronously at any time (eg. due to some internal error), and that causes "
37637 "the state to transition back to CONFIG."
37638 msgstr ""
37639
37640 #. type: textblock
37641 #: ../src/guestfs.pod:2255
37642 msgid ""
37643 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
37644 "issued when in the CONFIG state."
37645 msgstr ""
37646
37647 #. type: textblock
37648 #: ../src/guestfs.pod:2258
37649 msgid ""
37650 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
37651 "L</guestfs_launch> blocks until the child process is READY to accept "
37652 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
37653 "moves the state from CONFIG to LAUNCHING while it is running."
37654 msgstr ""
37655
37656 #. type: textblock
37657 #: ../src/guestfs.pod:2264
37658 msgid ""
37659 "API actions such as L</guestfs_mount> can only be issued when in the READY "
37660 "state.  These API calls block waiting for the command to be carried out (ie. "
37661 "the state to transition to BUSY and then back to READY).  There are no non-"
37662 "blocking versions, and no way to issue more than one command per handle at "
37663 "the same time."
37664 msgstr ""
37665
37666 #. type: textblock
37667 #: ../src/guestfs.pod:2270
37668 msgid ""
37669 "Finally, the child process sends asynchronous messages back to the main "
37670 "program, such as kernel log messages.  You can register a callback to "
37671 "receive these messages."
37672 msgstr ""
37673
37674 #. type: =head1
37675 #: ../src/guestfs.pod:2274
37676 msgid "INTERNALS"
37677 msgstr ""
37678
37679 #. type: =head2
37680 #: ../src/guestfs.pod:2276
37681 msgid "APPLIANCE BOOT PROCESS"
37682 msgstr ""
37683
37684 #. type: textblock
37685 #: ../src/guestfs.pod:2278
37686 msgid ""
37687 "This process has evolved and continues to evolve.  The description here "
37688 "corresponds only to the current version of libguestfs and is provided for "
37689 "information only."
37690 msgstr ""
37691
37692 #. type: textblock
37693 #: ../src/guestfs.pod:2282
37694 msgid ""
37695 "In order to follow the stages involved below, enable libguestfs debugging "
37696 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
37697 msgstr ""
37698
37699 #. type: =item
37700 #: ../src/guestfs.pod:2287
37701 #, fuzzy
37702 #| msgid "C<appliance>"
37703 msgid "Create the appliance"
37704 msgstr "C<appliance>"
37705
37706 #. type: textblock
37707 #: ../src/guestfs.pod:2289
37708 msgid ""
37709 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
37710 "initrd and the appliance."
37711 msgstr ""
37712
37713 #. type: textblock
37714 #: ../src/guestfs.pod:2292
37715 msgid ""
37716 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
37717 "directory if C<TMPDIR> is set)."
37718 msgstr ""
37719
37720 #. type: textblock
37721 #: ../src/guestfs.pod:2295
37722 msgid ""
37723 "For a complete description of how the appliance is created and cached, read "
37724 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
37725 msgstr ""
37726
37727 #. type: =item
37728 #: ../src/guestfs.pod:2299
37729 msgid "Start qemu and boot the kernel"
37730 msgstr ""
37731
37732 #. type: textblock
37733 #: ../src/guestfs.pod:2301
37734 msgid "qemu is invoked to boot the kernel."
37735 msgstr ""
37736
37737 #. type: =item
37738 #: ../src/guestfs.pod:2303
37739 msgid "Run the initrd"
37740 msgstr ""
37741
37742 #. type: textblock
37743 #: ../src/guestfs.pod:2305
37744 msgid ""
37745 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
37746 "appliance.  The purpose of the initrd is to load enough kernel modules in "
37747 "order that the appliance itself can be mounted and started."
37748 msgstr ""
37749
37750 #. type: textblock
37751 #: ../src/guestfs.pod:2309
37752 msgid ""
37753 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
37754 "initrd>."
37755 msgstr ""
37756
37757 #. type: textblock
37758 #: ../src/guestfs.pod:2312
37759 msgid ""
37760 "When the initrd has started you will see messages showing that kernel "
37761 "modules are being loaded, similar to this:"
37762 msgstr ""
37763
37764 #. type: verbatim
37765 #: ../src/guestfs.pod:2315
37766 #, no-wrap
37767 msgid ""
37768 " febootstrap: ext2 mini initrd starting up\n"
37769 " febootstrap: mounting /sys\n"
37770 " febootstrap: internal insmod libcrc32c.ko\n"
37771 " febootstrap: internal insmod crc32c-intel.ko\n"
37772 "\n"
37773 msgstr ""
37774
37775 #. type: =item
37776 #: ../src/guestfs.pod:2320
37777 msgid "Find and mount the appliance device"
37778 msgstr ""
37779
37780 #. type: textblock
37781 #: ../src/guestfs.pod:2322
37782 msgid ""
37783 "The appliance is a sparse file containing an ext2 filesystem which contains "
37784 "a familiar (although reduced in size) Linux operating system.  It would "
37785 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
37786 msgstr ""
37787
37788 #. type: textblock
37789 #: ../src/guestfs.pod:2326
37790 msgid ""
37791 "The regular disks being inspected by libguestfs are the first devices "
37792 "exposed by qemu (eg. as C</dev/vda>)."
37793 msgstr ""
37794
37795 #. type: textblock
37796 #: ../src/guestfs.pod:2329
37797 msgid ""
37798 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
37799 "there was only one regular disk)."
37800 msgstr ""
37801
37802 #. type: textblock
37803 #: ../src/guestfs.pod:2332
37804 msgid ""
37805 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
37806 "and switch root into the appliance, and run C</init> from the appliance."
37807 msgstr ""
37808
37809 #. type: textblock
37810 #: ../src/guestfs.pod:2336
37811 msgid "If this works successfully you will see messages such as:"
37812 msgstr ""
37813
37814 #. type: verbatim
37815 #: ../src/guestfs.pod:2338
37816 #, no-wrap
37817 msgid ""
37818 " febootstrap: picked /sys/block/vdb/dev as root device\n"
37819 " febootstrap: creating /dev/root as block special 252:16\n"
37820 " febootstrap: mounting new root on /root\n"
37821 " febootstrap: chroot\n"
37822 " Starting /init script ...\n"
37823 "\n"
37824 msgstr ""
37825
37826 #. type: textblock
37827 #: ../src/guestfs.pod:2344
37828 msgid ""
37829 "Note that C<Starting /init script ...> indicates that the appliance's init "
37830 "script is now running."
37831 msgstr ""
37832
37833 #. type: =item
37834 #: ../src/guestfs.pod:2347
37835 msgid "Initialize the appliance"
37836 msgstr ""
37837
37838 #. type: textblock
37839 #: ../src/guestfs.pod:2349
37840 msgid ""
37841 "The appliance itself now initializes itself.  This involves starting certain "
37842 "processes like C<udev>, possibly printing some debug information, and "
37843 "finally running the daemon (C<guestfsd>)."
37844 msgstr ""
37845
37846 #. type: =item
37847 #: ../src/guestfs.pod:2353
37848 #, fuzzy
37849 #| msgid "C<daemon>"
37850 msgid "The daemon"
37851 msgstr "C<daemon>"
37852
37853 #. type: textblock
37854 #: ../src/guestfs.pod:2355
37855 msgid ""
37856 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
37857 "should see:"
37858 msgstr ""
37859
37860 #. type: verbatim
37861 #: ../src/guestfs.pod:2358
37862 #, fuzzy, no-wrap
37863 #| msgid ""
37864 #| " set-verbose true|false\n"
37865 #| "\n"
37866 msgid ""
37867 " verbose daemon enabled\n"
37868 "\n"
37869 msgstr ""
37870 " set-verbose true|false\n"
37871 "\n"
37872
37873 #. type: textblock
37874 #: ../src/guestfs.pod:2360
37875 msgid ""
37876 "The daemon expects to see a named virtio-serial port exposed by qemu and "
37877 "connected on the other end to the library."
37878 msgstr ""
37879
37880 #. type: textblock
37881 #: ../src/guestfs.pod:2363
37882 msgid ""
37883 "The daemon connects to this port (and hence to the library) and sends a four "
37884 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
37885 "protocol (see below)."
37886 msgstr ""
37887
37888 #. type: =head2
37889 #: ../src/guestfs.pod:2369
37890 msgid "COMMUNICATION PROTOCOL"
37891 msgstr ""
37892
37893 #. type: textblock
37894 #: ../src/guestfs.pod:2371
37895 msgid ""
37896 "Don't rely on using this protocol directly.  This section documents how it "
37897 "currently works, but it may change at any time."
37898 msgstr ""
37899
37900 #. type: textblock
37901 #: ../src/guestfs.pod:2374
37902 msgid ""
37903 "The protocol used to talk between the library and the daemon running inside "
37904 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
37905 "1014, RFC 1832, RFC 4506)."
37906 msgstr ""
37907
37908 #. type: textblock
37909 #: ../src/guestfs.pod:2378
37910 msgid ""
37911 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
37912 "this file is automatically generated)."
37913 msgstr ""
37914
37915 #. type: textblock
37916 #: ../src/guestfs.pod:2381
37917 msgid ""
37918 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
37919 "and C<FileOut> parameters, which are handled with very simple request/reply "
37920 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
37921 "parameters, which use the same request and reply messages, but they may also "
37922 "be followed by files sent using a chunked encoding."
37923 msgstr ""
37924
37925 #. type: =head3
37926 #: ../src/guestfs.pod:2388
37927 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
37928 msgstr ""
37929
37930 #. type: textblock
37931 #: ../src/guestfs.pod:2390
37932 msgid "For ordinary functions, the request message is:"
37933 msgstr ""
37934
37935 #. type: verbatim
37936 #: ../src/guestfs.pod:2392
37937 #, no-wrap
37938 msgid ""
37939 " total length (header + arguments,\n"
37940 "      but not including the length word itself)\n"
37941 " struct guestfs_message_header (encoded as XDR)\n"
37942 " struct guestfs_<foo>_args (encoded as XDR)\n"
37943 "\n"
37944 msgstr ""
37945
37946 #. type: textblock
37947 #: ../src/guestfs.pod:2397
37948 msgid ""
37949 "The total length field allows the daemon to allocate a fixed size buffer "
37950 "into which it slurps the rest of the message.  As a result, the total length "
37951 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
37952 "effective size of any request is limited to somewhere under this size."
37953 msgstr ""
37954
37955 #. type: textblock
37956 #: ../src/guestfs.pod:2403
37957 msgid ""
37958 "Note also that many functions don't take any arguments, in which case the "
37959 "C<guestfs_I<foo>_args> is completely omitted."
37960 msgstr ""
37961
37962 #. type: textblock
37963 #: ../src/guestfs.pod:2406
37964 msgid ""
37965 "The header contains the procedure number (C<guestfs_proc>) which is how the "
37966 "receiver knows what type of args structure to expect, or none at all."
37967 msgstr ""
37968
37969 #. type: textblock
37970 #: ../src/guestfs.pod:2410
37971 msgid ""
37972 "For functions that take optional arguments, the optional arguments are "
37973 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
37974 "arguments.  A bitmask in the header indicates which optional arguments are "
37975 "meaningful.  The bitmask is also checked to see if it contains bits set "
37976 "which the daemon does not know about (eg. if more optional arguments were "
37977 "added in a later version of the library), and this causes the call to be "
37978 "rejected."
37979 msgstr ""
37980
37981 #. type: textblock
37982 #: ../src/guestfs.pod:2418
37983 msgid "The reply message for ordinary functions is:"
37984 msgstr ""
37985
37986 #. type: verbatim
37987 #: ../src/guestfs.pod:2420
37988 #, no-wrap
37989 msgid ""
37990 " total length (header + ret,\n"
37991 "      but not including the length word itself)\n"
37992 " struct guestfs_message_header (encoded as XDR)\n"
37993 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37994 "\n"
37995 msgstr ""
37996
37997 #. type: textblock
37998 #: ../src/guestfs.pod:2425
37999 msgid ""
38000 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38001 "functions that return no formal return values."
38002 msgstr ""
38003
38004 #. type: textblock
38005 #: ../src/guestfs.pod:2428
38006 msgid ""
38007 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38008 msgstr ""
38009
38010 #. type: textblock
38011 #: ../src/guestfs.pod:2431
38012 msgid ""
38013 "In the case of an error, a flag is set in the header, and the reply message "
38014 "is slightly changed:"
38015 msgstr ""
38016
38017 #. type: verbatim
38018 #: ../src/guestfs.pod:2434
38019 #, no-wrap
38020 msgid ""
38021 " total length (header + error,\n"
38022 "      but not including the length word itself)\n"
38023 " struct guestfs_message_header (encoded as XDR)\n"
38024 " struct guestfs_message_error (encoded as XDR)\n"
38025 "\n"
38026 msgstr ""
38027
38028 #. type: textblock
38029 #: ../src/guestfs.pod:2439
38030 msgid ""
38031 "The C<guestfs_message_error> structure contains the error message as a "
38032 "string."
38033 msgstr ""
38034
38035 #. type: =head3
38036 #: ../src/guestfs.pod:2442
38037 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
38038 msgstr ""
38039
38040 #. type: textblock
38041 #: ../src/guestfs.pod:2444
38042 msgid ""
38043 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
38044 "The normal request message is sent (see above).  However this is followed by "
38045 "a sequence of file chunks."
38046 msgstr ""
38047
38048 #. type: verbatim
38049 #: ../src/guestfs.pod:2448
38050 #, no-wrap
38051 msgid ""
38052 " total length (header + arguments,\n"
38053 "      but not including the length word itself,\n"
38054 "      and not including the chunks)\n"
38055 " struct guestfs_message_header (encoded as XDR)\n"
38056 " struct guestfs_<foo>_args (encoded as XDR)\n"
38057 " sequence of chunks for FileIn param #0\n"
38058 " sequence of chunks for FileIn param #1 etc.\n"
38059 "\n"
38060 msgstr ""
38061
38062 #. type: textblock
38063 #: ../src/guestfs.pod:2456
38064 msgid "The \"sequence of chunks\" is:"
38065 msgstr ""
38066
38067 #. type: verbatim
38068 #: ../src/guestfs.pod:2458
38069 #, no-wrap
38070 msgid ""
38071 " length of chunk (not including length word itself)\n"
38072 " struct guestfs_chunk (encoded as XDR)\n"
38073 " length of chunk\n"
38074 " struct guestfs_chunk (encoded as XDR)\n"
38075 "   ...\n"
38076 " length of chunk\n"
38077 " struct guestfs_chunk (with data.data_len == 0)\n"
38078 "\n"
38079 msgstr ""
38080
38081 #. type: textblock
38082 #: ../src/guestfs.pod:2466
38083 msgid ""
38084 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
38085 "is set in the final chunk to indicate either successful completion or early "
38086 "cancellation."
38087 msgstr ""
38088
38089 #. type: textblock
38090 #: ../src/guestfs.pod:2470
38091 msgid ""
38092 "At time of writing there are no functions that have more than one FileIn "
38093 "parameter.  However this is (theoretically) supported, by sending the "
38094 "sequence of chunks for each FileIn parameter one after another (from left to "
38095 "right)."
38096 msgstr ""
38097
38098 #. type: textblock
38099 #: ../src/guestfs.pod:2475
38100 msgid ""
38101 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
38102 "transfer.  The library does this by sending a chunk with a special flag set "
38103 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
38104 "RPC, does I<not> send any reply, and goes back to reading the next request."
38105 msgstr ""
38106
38107 #. type: textblock
38108 #: ../src/guestfs.pod:2481
38109 msgid ""
38110 "The daemon may also cancel.  It does this by writing a special word "
38111 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
38112 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
38113 "cancel chunk).  The special word is chosen so that even if cancellation "
38114 "happens right at the end of the transfer (after the library has finished "
38115 "writing and has started listening for the reply), the \"spurious\" cancel "
38116 "flag will not be confused with the reply message."
38117 msgstr ""
38118
38119 #. type: textblock
38120 #: ../src/guestfs.pod:2490
38121 msgid ""
38122 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
38123 "limit), and also files where the size is not known in advance (eg. from "
38124 "pipes or sockets).  However the chunks are rather small "
38125 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
38126 "to keep much in memory."
38127 msgstr ""
38128
38129 #. type: =head3
38130 #: ../src/guestfs.pod:2496
38131 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
38132 msgstr ""
38133
38134 #. type: textblock
38135 #: ../src/guestfs.pod:2498
38136 msgid ""
38137 "The protocol for FileOut parameters is exactly the same as for FileIn "
38138 "parameters, but with the roles of daemon and library reversed."
38139 msgstr ""
38140
38141 #. type: verbatim
38142 #: ../src/guestfs.pod:2501
38143 #, no-wrap
38144 msgid ""
38145 " total length (header + ret,\n"
38146 "      but not including the length word itself,\n"
38147 "      and not including the chunks)\n"
38148 " struct guestfs_message_header (encoded as XDR)\n"
38149 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38150 " sequence of chunks for FileOut param #0\n"
38151 " sequence of chunks for FileOut param #1 etc.\n"
38152 "\n"
38153 msgstr ""
38154
38155 #. type: =head3
38156 #: ../src/guestfs.pod:2509
38157 msgid "INITIAL MESSAGE"
38158 msgstr ""
38159
38160 #. type: textblock
38161 #: ../src/guestfs.pod:2511
38162 msgid ""
38163 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
38164 "which indicates that the guest and daemon is alive.  This is what L</"
38165 "guestfs_launch> waits for."
38166 msgstr ""
38167
38168 #. type: =head3
38169 #: ../src/guestfs.pod:2515
38170 msgid "PROGRESS NOTIFICATION MESSAGES"
38171 msgstr ""
38172
38173 #. type: textblock
38174 #: ../src/guestfs.pod:2517
38175 msgid ""
38176 "The daemon may send progress notification messages at any time.  These are "
38177 "distinguished by the normal length word being replaced by "
38178 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
38179 msgstr ""
38180
38181 #. type: textblock
38182 #: ../src/guestfs.pod:2521
38183 msgid ""
38184 "The library turns them into progress callbacks (see L</"
38185 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
38186 "if not."
38187 msgstr ""
38188
38189 #. type: textblock
38190 #: ../src/guestfs.pod:2525
38191 msgid ""
38192 "The daemon self-limits the frequency of progress messages it sends (see "
38193 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
38194 "messages."
38195 msgstr ""
38196
38197 #. type: =head1
38198 #: ../src/guestfs.pod:2529
38199 msgid "LIBGUESTFS VERSION NUMBERS"
38200 msgstr ""
38201
38202 #. type: textblock
38203 #: ../src/guestfs.pod:2531
38204 msgid ""
38205 "Since April 2010, libguestfs has started to make separate development and "
38206 "stable releases, along with corresponding branches in our git repository.  "
38207 "These separate releases can be identified by version number:"
38208 msgstr ""
38209
38210 #. type: verbatim
38211 #: ../src/guestfs.pod:2536
38212 #, no-wrap
38213 msgid ""
38214 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
38215 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
38216 "       |\n"
38217 "       v\n"
38218 " 1  .  3  .  5\n"
38219 " ^           ^\n"
38220 " |           |\n"
38221 " |           `-------- sub-version\n"
38222 " |\n"
38223 " `------ always '1' because we don't change the ABI\n"
38224 "\n"
38225 msgstr ""
38226
38227 #. type: textblock
38228 #: ../src/guestfs.pod:2547
38229 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
38230 msgstr ""
38231
38232 #. type: textblock
38233 #: ../src/guestfs.pod:2549
38234 msgid ""
38235 "As time passes we cherry pick fixes from the development branch and backport "
38236 "those into the stable branch, the effect being that the stable branch should "
38237 "get more stable and less buggy over time.  So the stable releases are ideal "
38238 "for people who don't need new features but would just like the software to "
38239 "work."
38240 msgstr ""
38241
38242 #. type: textblock
38243 #: ../src/guestfs.pod:2555
38244 msgid "Our criteria for backporting changes are:"
38245 msgstr ""
38246
38247 #. type: textblock
38248 #: ../src/guestfs.pod:2561
38249 msgid ""
38250 "Documentation changes which don't affect any code are backported unless the "
38251 "documentation refers to a future feature which is not in stable."
38252 msgstr ""
38253
38254 #. type: textblock
38255 #: ../src/guestfs.pod:2567
38256 msgid ""
38257 "Bug fixes which are not controversial, fix obvious problems, and have been "
38258 "well tested are backported."
38259 msgstr ""
38260
38261 #. type: textblock
38262 #: ../src/guestfs.pod:2572
38263 msgid ""
38264 "Simple rearrangements of code which shouldn't affect how it works get "
38265 "backported.  This is so that the code in the two branches doesn't get too "
38266 "far out of step, allowing us to backport future fixes more easily."
38267 msgstr ""
38268
38269 #. type: textblock
38270 #: ../src/guestfs.pod:2578
38271 msgid ""
38272 "We I<don't> backport new features, new APIs, new tools etc, except in one "
38273 "exceptional case: the new feature is required in order to implement an "
38274 "important bug fix."
38275 msgstr ""
38276
38277 #. type: textblock
38278 #: ../src/guestfs.pod:2584
38279 msgid ""
38280 "A new stable branch starts when we think the new features in development are "
38281 "substantial and compelling enough over the current stable branch to warrant "
38282 "it.  When that happens we create new stable and development versions 1.N.0 "
38283 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
38284 "stable at this point, but by backporting fixes from development, that branch "
38285 "will stabilize over time."
38286 msgstr ""
38287
38288 #. type: =head1
38289 #: ../src/guestfs.pod:2592
38290 msgid "EXTENDING LIBGUESTFS"
38291 msgstr ""
38292
38293 #. type: =head2
38294 #: ../src/guestfs.pod:2594
38295 msgid "ADDING A NEW API ACTION"
38296 msgstr ""
38297
38298 #. type: textblock
38299 #: ../src/guestfs.pod:2596
38300 msgid ""
38301 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
38302 "documentation) are generated, and this makes it easy to extend the "
38303 "libguestfs API."
38304 msgstr ""
38305
38306 #. type: textblock
38307 #: ../src/guestfs.pod:2600
38308 msgid "To add a new API action there are two changes:"
38309 msgstr ""
38310
38311 #. type: textblock
38312 #: ../src/guestfs.pod:2606
38313 msgid ""
38314 "You need to add a description of the call (name, parameters, return type, "
38315 "tests, documentation) to C<generator/generator_actions.ml>."
38316 msgstr ""
38317
38318 #. type: textblock
38319 #: ../src/guestfs.pod:2609
38320 msgid ""
38321 "There are two sorts of API action, depending on whether the call goes "
38322 "through to the daemon in the appliance, or is serviced entirely by the "
38323 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
38324 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
38325 "an example of the latter, since a trace flag is maintained in the handle and "
38326 "all tracing is done on the library side."
38327 msgstr ""
38328
38329 #. type: textblock
38330 #: ../src/guestfs.pod:2617
38331 msgid ""
38332 "Most new actions are of the first type, and get added to the "
38333 "C<daemon_functions> list.  Each function has a unique procedure number used "
38334 "in the RPC protocol which is assigned to that action when we publish "
38335 "libguestfs and cannot be reused.  Take the latest procedure number and "
38336 "increment it."
38337 msgstr ""
38338
38339 #. type: textblock
38340 #: ../src/guestfs.pod:2623
38341 msgid ""
38342 "For library-only actions of the second type, add to the "
38343 "C<non_daemon_functions> list.  Since these functions are serviced by the "
38344 "library and do not travel over the RPC mechanism to the daemon, these "
38345 "functions do not need a procedure number, and so the procedure number is set "
38346 "to C<-1>."
38347 msgstr ""
38348
38349 #. type: textblock
38350 #: ../src/guestfs.pod:2631
38351 msgid "Implement the action (in C):"
38352 msgstr ""
38353
38354 #. type: textblock
38355 #: ../src/guestfs.pod:2633
38356 msgid ""
38357 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
38358 "C<daemon/> directory."
38359 msgstr ""
38360
38361 #. type: textblock
38362 #: ../src/guestfs.pod:2636
38363 msgid ""
38364 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
38365 "(note: double underscore) in the C<src/> directory."
38366 msgstr ""
38367
38368 #. type: textblock
38369 #: ../src/guestfs.pod:2639
38370 msgid "In either case, use another function as an example of what to do."
38371 msgstr ""
38372
38373 #. type: textblock
38374 #: ../src/guestfs.pod:2643
38375 msgid "After making these changes, use C<make> to compile."
38376 msgstr ""
38377
38378 #. type: textblock
38379 #: ../src/guestfs.pod:2645
38380 msgid ""
38381 "Note that you don't need to implement the RPC, language bindings, manual "
38382 "pages or anything else.  It's all automatically generated from the OCaml "
38383 "description."
38384 msgstr ""
38385
38386 #. type: =head2
38387 #: ../src/guestfs.pod:2649
38388 msgid "ADDING TESTS FOR AN API ACTION"
38389 msgstr ""
38390
38391 #. type: textblock
38392 #: ../src/guestfs.pod:2651
38393 msgid ""
38394 "You can supply zero or as many tests as you want per API call.  The tests "
38395 "can either be added as part of the API description (C<generator/"
38396 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
38397 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
38398 "slower, so if possible use the first method."
38399 msgstr ""
38400
38401 #. type: textblock
38402 #: ../src/guestfs.pod:2657
38403 msgid ""
38404 "The following describes the test environment used when you add an API test "
38405 "in C<generator_actions.ml>."
38406 msgstr ""
38407
38408 #. type: textblock
38409 #: ../src/guestfs.pod:2660
38410 msgid "The test environment has 4 block devices:"
38411 msgstr ""
38412
38413 #. type: =item
38414 #: ../src/guestfs.pod:2664
38415 msgid "C</dev/sda> 500MB"
38416 msgstr "C</dev/sda> 500 МБ"
38417
38418 #. type: textblock
38419 #: ../src/guestfs.pod:2666
38420 msgid "General block device for testing."
38421 msgstr ""
38422
38423 #. type: =item
38424 #: ../src/guestfs.pod:2668
38425 msgid "C</dev/sdb> 50MB"
38426 msgstr "C</dev/sdb> 50 МБ"
38427
38428 #. type: textblock
38429 #: ../src/guestfs.pod:2670
38430 msgid ""
38431 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
38432 "operations."
38433 msgstr ""
38434
38435 #. type: =item
38436 #: ../src/guestfs.pod:2673
38437 msgid "C</dev/sdc> 10MB"
38438 msgstr "C</dev/sdc> 10 МБ"
38439
38440 #. type: textblock
38441 #: ../src/guestfs.pod:2675
38442 msgid "Used in a few tests where two block devices are needed."
38443 msgstr ""
38444
38445 #. type: =item
38446 #: ../src/guestfs.pod:2677
38447 msgid "C</dev/sdd>"
38448 msgstr "C</dev/sdd>"
38449
38450 #. type: textblock
38451 #: ../src/guestfs.pod:2679
38452 msgid "ISO with fixed content (see C<images/test.iso>)."
38453 msgstr ""
38454
38455 #. type: textblock
38456 #: ../src/guestfs.pod:2683
38457 msgid ""
38458 "To be able to run the tests in a reasonable amount of time, the libguestfs "
38459 "appliance and block devices are reused between tests.  So don't try testing "
38460 "L</guestfs_kill_subprocess> :-x"
38461 msgstr ""
38462
38463 #. type: textblock
38464 #: ../src/guestfs.pod:2687
38465 msgid ""
38466 "Each test starts with an initial scenario, selected using one of the "
38467 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
38468 "initialize the disks mentioned above in a particular way as documented in "
38469 "C<generator_types.ml>.  You should not assume anything about the previous "
38470 "contents of other disks that are not initialized."
38471 msgstr ""
38472
38473 #. type: textblock
38474 #: ../src/guestfs.pod:2693
38475 msgid ""
38476 "You can add a prerequisite clause to any individual test.  This is a run-"
38477 "time check, which, if it fails, causes the test to be skipped.  Useful if "
38478 "testing a command which might not work on all variations of libguestfs "
38479 "builds.  A test that has prerequisite of C<Always> means to run "
38480 "unconditionally."
38481 msgstr ""
38482
38483 #. type: textblock
38484 #: ../src/guestfs.pod:2699
38485 msgid ""
38486 "In addition, packagers can skip individual tests by setting environment "
38487 "variables before running C<make check>."
38488 msgstr ""
38489
38490 #. type: verbatim
38491 #: ../src/guestfs.pod:2702
38492 #, no-wrap
38493 msgid ""
38494 " SKIP_TEST_<CMD>_<NUM>=1\n"
38495 "\n"
38496 msgstr ""
38497
38498 #. type: textblock
38499 #: ../src/guestfs.pod:2704
38500 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
38501 msgstr ""
38502
38503 #. type: textblock
38504 #: ../src/guestfs.pod:2706
38505 msgid "or:"
38506 msgstr "або:"
38507
38508 #. type: verbatim
38509 #: ../src/guestfs.pod:2708
38510 #, no-wrap
38511 msgid ""
38512 " SKIP_TEST_<CMD>=1\n"
38513 "\n"
38514 msgstr ""
38515
38516 #. type: textblock
38517 #: ../src/guestfs.pod:2710
38518 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
38519 msgstr ""
38520
38521 #. type: textblock
38522 #: ../src/guestfs.pod:2712
38523 msgid "Packagers can run only certain tests by setting for example:"
38524 msgstr ""
38525
38526 #. type: verbatim
38527 #: ../src/guestfs.pod:2714
38528 #, no-wrap
38529 msgid ""
38530 " TEST_ONLY=\"vfs_type zerofree\"\n"
38531 "\n"
38532 msgstr ""
38533
38534 #. type: textblock
38535 #: ../src/guestfs.pod:2716
38536 msgid ""
38537 "See C<capitests/tests.c> for more details of how these environment variables "
38538 "work."
38539 msgstr ""
38540
38541 #. type: =head2
38542 #: ../src/guestfs.pod:2719
38543 msgid "DEBUGGING NEW API ACTIONS"
38544 msgstr ""
38545
38546 #. type: textblock
38547 #: ../src/guestfs.pod:2721
38548 msgid "Test new actions work before submitting them."
38549 msgstr ""
38550
38551 #. type: textblock
38552 #: ../src/guestfs.pod:2723
38553 msgid "You can use guestfish to try out new commands."
38554 msgstr ""
38555
38556 #. type: textblock
38557 #: ../src/guestfs.pod:2725
38558 msgid ""
38559 "Debugging the daemon is a problem because it runs inside a minimal "
38560 "environment.  However you can fprintf messages in the daemon to stderr, and "
38561 "they will show up if you use C<guestfish -v>."
38562 msgstr ""
38563
38564 #. type: =head2
38565 #: ../src/guestfs.pod:2729
38566 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
38567 msgstr ""
38568
38569 #. type: textblock
38570 #: ../src/guestfs.pod:2731
38571 msgid ""
38572 "Our C source code generally adheres to some basic code-formatting "
38573 "conventions.  The existing code base is not totally consistent on this "
38574 "front, but we do prefer that contributed code be formatted similarly.  In "
38575 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
38576 "indentation level, and other than that, follow the K&R style."
38577 msgstr ""
38578
38579 #. type: textblock
38580 #: ../src/guestfs.pod:2737
38581 msgid ""
38582 "If you use Emacs, add the following to one of one of your start-up files (e."
38583 "g., ~/.emacs), to help ensure that you get indentation right:"
38584 msgstr ""
38585
38586 #. type: verbatim
38587 #: ../src/guestfs.pod:2740
38588 #, no-wrap
38589 msgid ""
38590 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
38591 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
38592 " (add-hook 'find-file-hook\n"
38593 "     '(lambda () (if (and buffer-file-name\n"
38594 "                          (string-match \"/libguestfs\\\\>\"\n"
38595 "                              (buffer-file-name))\n"
38596 "                          (not (string-equal mode-name \"Change Log\"))\n"
38597 "                          (not (string-equal mode-name \"Makefile\")))\n"
38598 "                     (setq indent-tabs-mode nil))))\n"
38599 " \n"
38600 msgstr ""
38601
38602 #. type: verbatim
38603 #: ../src/guestfs.pod:2750
38604 #, no-wrap
38605 msgid ""
38606 " ;;; When editing C sources in libguestfs, use this style.\n"
38607 " (defun libguestfs-c-mode ()\n"
38608 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
38609 "   (interactive)\n"
38610 "   (c-set-style \"K&R\")\n"
38611 "   (setq c-indent-level 2)\n"
38612 "   (setq c-basic-offset 2))\n"
38613 " (add-hook 'c-mode-hook\n"
38614 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
38615 "                               (buffer-file-name))\n"
38616 "                           (libguestfs-c-mode))))\n"
38617 "\n"
38618 msgstr ""
38619
38620 #. type: textblock
38621 #: ../src/guestfs.pod:2762
38622 msgid "Enable warnings when compiling (and fix any problems this finds):"
38623 msgstr ""
38624
38625 #. type: verbatim
38626 #: ../src/guestfs.pod:2765
38627 #, no-wrap
38628 msgid ""
38629 " ./configure --enable-gcc-warnings\n"
38630 "\n"
38631 msgstr ""
38632 " ./configure --enable-gcc-warnings\n"
38633 "\n"
38634
38635 #. type: textblock
38636 #: ../src/guestfs.pod:2767
38637 msgid "Useful targets are:"
38638 msgstr ""
38639
38640 #. type: verbatim
38641 #: ../src/guestfs.pod:2769
38642 #, no-wrap
38643 msgid ""
38644 " make syntax-check  # checks the syntax of the C code\n"
38645 " make check         # runs the test suite\n"
38646 "\n"
38647 msgstr ""
38648
38649 #. type: =head2
38650 #: ../src/guestfs.pod:2772
38651 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
38652 msgstr ""
38653
38654 #. type: textblock
38655 #: ../src/guestfs.pod:2774
38656 msgid ""
38657 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
38658 "which are used to do shell quoting."
38659 msgstr ""
38660
38661 #. type: =item
38662 #: ../src/guestfs.pod:2779
38663 msgid "%Q"
38664 msgstr "%Q"
38665
38666 #. type: textblock
38667 #: ../src/guestfs.pod:2781
38668 msgid ""
38669 "Simple shell quoted string.  Any spaces or other shell characters are "
38670 "escaped for you."
38671 msgstr ""
38672
38673 #. type: =item
38674 #: ../src/guestfs.pod:2784
38675 msgid "%R"
38676 msgstr "%R"
38677
38678 #. type: textblock
38679 #: ../src/guestfs.pod:2786
38680 msgid ""
38681 "Same as C<%Q> except the string is treated as a path which is prefixed by "
38682 "the sysroot."
38683 msgstr ""
38684
38685 #. type: verbatim
38686 #: ../src/guestfs.pod:2793
38687 #, no-wrap
38688 msgid ""
38689 " asprintf (&cmd, \"cat %R\", path);\n"
38690 "\n"
38691 msgstr ""
38692
38693 #. type: textblock
38694 #: ../src/guestfs.pod:2795
38695 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
38696 msgstr ""
38697
38698 #. type: textblock
38699 #: ../src/guestfs.pod:2797
38700 msgid ""
38701 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
38702 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
38703 "they are not passed via the shell (instead, straight to exec).  You probably "
38704 "want to use the C<sysroot_path()> function however."
38705 msgstr ""
38706
38707 #. type: =head2
38708 #: ../src/guestfs.pod:2803
38709 msgid "SUBMITTING YOUR NEW API ACTIONS"
38710 msgstr ""
38711
38712 #. type: textblock
38713 #: ../src/guestfs.pod:2805
38714 msgid ""
38715 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
38716 "libguestfs> and CC to L<rjones@redhat.com>."
38717 msgstr ""
38718
38719 #. type: =head2
38720 #: ../src/guestfs.pod:2809
38721 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
38722 msgstr ""
38723
38724 #. type: textblock
38725 #: ../src/guestfs.pod:2811
38726 msgid "We support i18n (gettext anyhow) in the library."
38727 msgstr ""
38728
38729 #. type: textblock
38730 #: ../src/guestfs.pod:2813
38731 msgid ""
38732 "However many messages come from the daemon, and we don't translate those at "
38733 "the moment.  One reason is that the appliance generally has all locale files "
38734 "removed from it, because they take up a lot of space.  So we'd have to readd "
38735 "some of those, as well as copying our PO files into the appliance."
38736 msgstr ""
38737
38738 #. type: textblock
38739 #: ../src/guestfs.pod:2819
38740 msgid ""
38741 "Debugging messages are never translated, since they are intended for the "
38742 "programmers."
38743 msgstr ""
38744
38745 #. type: =head2
38746 #: ../src/guestfs.pod:2822
38747 msgid "SOURCE CODE SUBDIRECTORIES"
38748 msgstr ""
38749
38750 #. type: textblock
38751 #: ../src/guestfs.pod:2828
38752 msgid "The libguestfs appliance, build scripts and so on."
38753 msgstr ""
38754
38755 #. type: =item
38756 #: ../src/guestfs.pod:2830
38757 msgid "C<capitests>"
38758 msgstr "C<capitests>"
38759
38760 #. type: textblock
38761 #: ../src/guestfs.pod:2832
38762 msgid "Automated tests of the C API."
38763 msgstr ""
38764
38765 #. type: =item
38766 #: ../src/guestfs.pod:2834
38767 msgid "C<cat>"
38768 msgstr "C<cat>"
38769
38770 #. type: textblock
38771 #: ../src/guestfs.pod:2836
38772 msgid ""
38773 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
38774 "documentation."
38775 msgstr ""
38776
38777 #. type: =item
38778 #: ../src/guestfs.pod:2839
38779 msgid "C<caution>"
38780 msgstr ""
38781
38782 #. type: textblock
38783 #: ../src/guestfs.pod:2841
38784 msgid ""
38785 "Safety and liveness tests of components that libguestfs depends upon (not of "
38786 "libguestfs itself).  Mainly this is for qemu and the kernel."
38787 msgstr ""
38788
38789 #. type: =item
38790 #: ../src/guestfs.pod:2844
38791 msgid "C<contrib>"
38792 msgstr "C<contrib>"
38793
38794 #. type: textblock
38795 #: ../src/guestfs.pod:2846
38796 msgid "Outside contributions, experimental parts."
38797 msgstr ""
38798
38799 #. type: =item
38800 #: ../src/guestfs.pod:2848
38801 msgid "C<daemon>"
38802 msgstr "C<daemon>"
38803
38804 #. type: textblock
38805 #: ../src/guestfs.pod:2850
38806 msgid ""
38807 "The daemon that runs inside the libguestfs appliance and carries out actions."
38808 msgstr ""
38809
38810 #. type: =item
38811 #: ../src/guestfs.pod:2853
38812 msgid "C<df>"
38813 msgstr "C<df>"
38814
38815 #. type: textblock
38816 #: ../src/guestfs.pod:2855
38817 msgid "L<virt-df(1)> command and documentation."
38818 msgstr ""
38819
38820 #. type: =item
38821 #: ../src/guestfs.pod:2857
38822 msgid "C<edit>"
38823 msgstr ""
38824
38825 #. type: textblock
38826 #: ../src/guestfs.pod:2859
38827 msgid "L<virt-edit(1)> command and documentation."
38828 msgstr ""
38829
38830 #. type: =item
38831 #: ../src/guestfs.pod:2861
38832 msgid "C<examples>"
38833 msgstr "C<examples>"
38834
38835 #. type: textblock
38836 #: ../src/guestfs.pod:2863
38837 msgid "C API example code."
38838 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
38839
38840 #. type: =item
38841 #: ../src/guestfs.pod:2865
38842 msgid "C<fish>"
38843 msgstr "C<fish>"
38844
38845 #. type: textblock
38846 #: ../src/guestfs.pod:2867
38847 msgid ""
38848 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
38849 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
38850 "L<virt-tar-out(1)>."
38851 msgstr ""
38852
38853 #. type: =item
38854 #: ../src/guestfs.pod:2871
38855 msgid "C<fuse>"
38856 msgstr "C<fuse>"
38857
38858 #. type: textblock
38859 #: ../src/guestfs.pod:2873
38860 msgid ""
38861 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
38862 msgstr ""
38863
38864 #. type: =item
38865 #: ../src/guestfs.pod:2875
38866 msgid "C<generator>"
38867 msgstr "C<generator>"
38868
38869 #. type: textblock
38870 #: ../src/guestfs.pod:2877
38871 msgid ""
38872 "The crucially important generator, used to automatically generate large "
38873 "amounts of boilerplate C code for things like RPC and bindings."
38874 msgstr ""
38875
38876 #. type: =item
38877 #: ../src/guestfs.pod:2880
38878 msgid "C<images>"
38879 msgstr "C<images>"
38880
38881 #. type: textblock
38882 #: ../src/guestfs.pod:2882
38883 msgid "Files used by the test suite."
38884 msgstr ""
38885
38886 #. type: textblock
38887 #: ../src/guestfs.pod:2884
38888 msgid "Some \"phony\" guest images which we test against."
38889 msgstr ""
38890
38891 #. type: =item
38892 #: ../src/guestfs.pod:2886
38893 msgid "C<inspector>"
38894 msgstr "C<inspector>"
38895
38896 #. type: textblock
38897 #: ../src/guestfs.pod:2888
38898 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
38899 msgstr ""
38900
38901 #. type: =item
38902 #: ../src/guestfs.pod:2890
38903 msgid "C<logo>"
38904 msgstr "C<logo>"
38905
38906 #. type: textblock
38907 #: ../src/guestfs.pod:2892
38908 msgid "Logo used on the website.  The fish is called Arthur by the way."
38909 msgstr ""
38910
38911 #. type: =item
38912 #: ../src/guestfs.pod:2894
38913 msgid "C<m4>"
38914 msgstr "C<m4>"
38915
38916 #. type: textblock
38917 #: ../src/guestfs.pod:2896
38918 msgid "M4 macros used by autoconf."
38919 msgstr ""
38920
38921 #. type: =item
38922 #: ../src/guestfs.pod:2898
38923 msgid "C<po>"
38924 msgstr "C<po>"
38925
38926 #. type: textblock
38927 #: ../src/guestfs.pod:2900
38928 msgid "Translations of simple gettext strings."
38929 msgstr "Переклади простих рядків gettext."
38930
38931 #. type: =item
38932 #: ../src/guestfs.pod:2902
38933 msgid "C<po-docs>"
38934 msgstr "C<po-docs>"
38935
38936 #. type: textblock
38937 #: ../src/guestfs.pod:2904
38938 msgid ""
38939 "The build infrastructure and PO files for translations of manpages and POD "
38940 "files.  Eventually this will be combined with the C<po> directory, but that "
38941 "is rather complicated."
38942 msgstr ""
38943
38944 #. type: =item
38945 #: ../src/guestfs.pod:2908
38946 msgid "C<regressions>"
38947 msgstr "C<regressions>"
38948
38949 #. type: textblock
38950 #: ../src/guestfs.pod:2910
38951 msgid "Regression tests."
38952 msgstr "Тести на регресії."
38953
38954 #. type: =item
38955 #: ../src/guestfs.pod:2912
38956 msgid "C<rescue>"
38957 msgstr "C<rescue>"
38958
38959 #. type: textblock
38960 #: ../src/guestfs.pod:2914
38961 msgid "L<virt-rescue(1)> command and documentation."
38962 msgstr ""
38963
38964 #. type: =item
38965 #: ../src/guestfs.pod:2916
38966 msgid "C<src>"
38967 msgstr "C<src>"
38968
38969 #. type: textblock
38970 #: ../src/guestfs.pod:2918
38971 msgid "Source code to the C library."
38972 msgstr ""
38973
38974 #. type: =item
38975 #: ../src/guestfs.pod:2920
38976 msgid "C<tools>"
38977 msgstr "C<tools>"
38978
38979 #. type: textblock
38980 #: ../src/guestfs.pod:2922
38981 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
38982 msgstr ""
38983
38984 #. type: =item
38985 #: ../src/guestfs.pod:2924
38986 msgid "C<test-tool>"
38987 msgstr "C<test-tool>"
38988
38989 #. type: textblock
38990 #: ../src/guestfs.pod:2926
38991 msgid ""
38992 "Test tool for end users to test if their qemu/kernel combination will work "
38993 "with libguestfs."
38994 msgstr ""
38995
38996 #. type: =item
38997 #: ../src/guestfs.pod:2929
38998 msgid "C<csharp>"
38999 msgstr "C<csharp>"
39000
39001 #. type: =item
39002 #: ../src/guestfs.pod:2931
39003 msgid "C<erlang>"
39004 msgstr ""
39005
39006 #. type: =item
39007 #: ../src/guestfs.pod:2933
39008 msgid "C<haskell>"
39009 msgstr "C<haskell>"
39010
39011 #. type: =item
39012 #: ../src/guestfs.pod:2935
39013 msgid "C<java>"
39014 msgstr "C<java>"
39015
39016 #. type: =item
39017 #: ../src/guestfs.pod:2937
39018 msgid "C<ocaml>"
39019 msgstr "C<ocaml>"
39020
39021 #. type: =item
39022 #: ../src/guestfs.pod:2939
39023 msgid "C<php>"
39024 msgstr "C<php>"
39025
39026 #. type: =item
39027 #: ../src/guestfs.pod:2941
39028 msgid "C<perl>"
39029 msgstr "C<perl>"
39030
39031 #. type: =item
39032 #: ../src/guestfs.pod:2943
39033 msgid "C<python>"
39034 msgstr "C<python>"
39035
39036 #. type: =item
39037 #: ../src/guestfs.pod:2945
39038 msgid "C<ruby>"
39039 msgstr "C<ruby>"
39040
39041 #. type: textblock
39042 #: ../src/guestfs.pod:2947
39043 msgid "Language bindings."
39044 msgstr "Прив’язки до мов програмування."
39045
39046 #. type: =head2
39047 #: ../src/guestfs.pod:2951
39048 msgid "MAKING A STABLE RELEASE"
39049 msgstr ""
39050
39051 #. type: textblock
39052 #: ../src/guestfs.pod:2953
39053 msgid ""
39054 "When we make a stable release, there are several steps documented here.  See "
39055 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
39056 "branch policy."
39057 msgstr ""
39058
39059 #. type: textblock
39060 #: ../src/guestfs.pod:2961
39061 msgid ""
39062 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
39063 msgstr ""
39064
39065 #. type: textblock
39066 #: ../src/guestfs.pod:2966
39067 msgid "Finalize RELEASE-NOTES."
39068 msgstr ""
39069
39070 #. type: textblock
39071 #: ../src/guestfs.pod:2970
39072 msgid "Update ROADMAP."
39073 msgstr ""
39074
39075 #. type: textblock
39076 #: ../src/guestfs.pod:2974
39077 msgid "Run C<src/api-support/update-from-tarballs.sh>."
39078 msgstr ""
39079
39080 #. type: textblock
39081 #: ../src/guestfs.pod:2978
39082 msgid "Push and pull from Transifex."
39083 msgstr ""
39084
39085 #. type: textblock
39086 #: ../src/guestfs.pod:2980
39087 msgid "Run:"
39088 msgstr ""
39089
39090 #. type: verbatim
39091 #: ../src/guestfs.pod:2982
39092 #, no-wrap
39093 msgid ""
39094 " tx push -s\n"
39095 "\n"
39096 msgstr ""
39097
39098 #. type: textblock
39099 #: ../src/guestfs.pod:2984
39100 msgid "to push the latest POT files to Transifex.  Then run:"
39101 msgstr ""
39102
39103 #. type: verbatim
39104 #: ../src/guestfs.pod:2986
39105 #, no-wrap
39106 msgid ""
39107 " ./tx-pull.sh\n"
39108 "\n"
39109 msgstr ""
39110
39111 #. type: textblock
39112 #: ../src/guestfs.pod:2988
39113 msgid "which is a wrapper to pull the latest translated C<*.po> files."
39114 msgstr ""
39115
39116 #. type: textblock
39117 #: ../src/guestfs.pod:2992
39118 msgid ""
39119 "Create new stable and development directories under L<http://libguestfs.org/"
39120 "download>."
39121 msgstr ""
39122
39123 #. type: textblock
39124 #: ../src/guestfs.pod:2997
39125 msgid "Create the branch in git:"
39126 msgstr ""
39127
39128 #. type: verbatim
39129 #: ../src/guestfs.pod:2999
39130 #, no-wrap
39131 msgid ""
39132 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
39133 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
39134 " git branch stable-1.XX\n"
39135 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
39136 "\n"
39137 msgstr ""
39138
39139 #. type: =head1
39140 #: ../src/guestfs.pod:3006
39141 msgid "LIMITS"
39142 msgstr ""
39143
39144 #. type: =head2
39145 #: ../src/guestfs.pod:3008
39146 msgid "PROTOCOL LIMITS"
39147 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
39148
39149 #. type: textblock
39150 #: ../src/guestfs.pod:3010
39151 msgid ""
39152 "Internally libguestfs uses a message-based protocol to pass API calls and "
39153 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
39154 "plenty more detail about this).  The maximum message size used by the "
39155 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
39156 "aware of this limit.  The API calls which may be affected are individually "
39157 "documented, with a link back to this section of the documentation."
39158 msgstr ""
39159
39160 #. type: textblock
39161 #: ../src/guestfs.pod:3018
39162 msgid ""
39163 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
39164 "a simple string.  Because this string is at some point internally encoded as "
39165 "a message, the maximum size that it can return is slightly under 4 MB.  If "
39166 "the requested file is larger than this then you will get an error."
39167 msgstr ""
39168
39169 #. type: textblock
39170 #: ../src/guestfs.pod:3024
39171 msgid ""
39172 "In order to transfer large files into and out of the guest filesystem, you "
39173 "need to use particular calls that support this.  The sections L</UPLOADING> "
39174 "and L</DOWNLOADING> document how to do this."
39175 msgstr ""
39176
39177 #. type: textblock
39178 #: ../src/guestfs.pod:3028
39179 msgid ""
39180 "You might also consider mounting the disk image using our FUSE filesystem "
39181 "support (L<guestmount(1)>)."
39182 msgstr ""
39183
39184 #. type: =head2
39185 #: ../src/guestfs.pod:3031
39186 msgid "MAXIMUM NUMBER OF DISKS"
39187 msgstr ""
39188
39189 #. type: textblock
39190 #: ../src/guestfs.pod:3033
39191 msgid "When using virtio disks (the default) the current limit is B<25> disks."
39192 msgstr ""
39193
39194 #. type: textblock
39195 #: ../src/guestfs.pod:3036
39196 msgid ""
39197 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
39198 "slots.  However febootstrap only understands disks with names C</dev/vda> "
39199 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
39200 "purposes."
39201 msgstr ""
39202
39203 #. type: textblock
39204 #: ../src/guestfs.pod:3041
39205 msgid ""
39206 "We are working to substantially raise this limit in future versions but it "
39207 "requires complex changes to qemu."
39208 msgstr ""
39209
39210 #. type: textblock
39211 #: ../src/guestfs.pod:3044
39212 msgid ""
39213 "In future versions of libguestfs it should also be possible to \"hot plug\" "
39214 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
39215 "requires changes to qemu."
39216 msgstr ""
39217
39218 #. type: =head2
39219 #: ../src/guestfs.pod:3048
39220 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
39221 msgstr ""
39222
39223 #. type: textblock
39224 #: ../src/guestfs.pod:3050
39225 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
39226 msgstr ""
39227
39228 #. type: textblock
39229 #: ../src/guestfs.pod:3052
39230 msgid ""
39231 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
39232 "vda>, and C</dev/vda1> through C</dev/vda15>)."
39233 msgstr ""
39234
39235 #. type: textblock
39236 #: ../src/guestfs.pod:3055
39237 msgid ""
39238 "If you attach a disk with more than 15 partitions, the extra partitions are "
39239 "ignored by libguestfs."
39240 msgstr ""
39241
39242 #. type: =head2
39243 #: ../src/guestfs.pod:3058
39244 msgid "MAXIMUM SIZE OF A DISK"
39245 msgstr ""
39246
39247 #. type: textblock
39248 #: ../src/guestfs.pod:3060
39249 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
39250 msgstr ""
39251
39252 #. type: textblock
39253 #: ../src/guestfs.pod:3062
39254 msgid ""
39255 "We have tested block devices up to 1 exabyte (2**60 or "
39256 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
39257 "filesystem."
39258 msgstr ""
39259
39260 #. type: textblock
39261 #: ../src/guestfs.pod:3066
39262 msgid ""
39263 "Although libguestfs probably does not impose any limit, the underlying host "
39264 "storage will.  If you store disk images on a host ext4 filesystem, then the "
39265 "maximum size will be limited by the maximum ext4 file size (currently 16 "
39266 "TB).  If you store disk images as host logical volumes then you are limited "
39267 "by the maximum size of an LV."
39268 msgstr ""
39269
39270 #. type: textblock
39271 #: ../src/guestfs.pod:3072
39272 msgid ""
39273 "For the hugest disk image files, we recommend using XFS on the host for "
39274 "storage."
39275 msgstr ""
39276
39277 #. type: =head2
39278 #: ../src/guestfs.pod:3075
39279 msgid "MAXIMUM SIZE OF A PARTITION"
39280 msgstr ""
39281
39282 #. type: textblock
39283 #: ../src/guestfs.pod:3077
39284 msgid ""
39285 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
39286 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
39287 "address a partition located beyond 2 TB on the disk."
39288 msgstr ""
39289
39290 #. type: textblock
39291 #: ../src/guestfs.pod:3081
39292 msgid ""
39293 "It is recommended that you use GPT partitions on disks which are larger than "
39294 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
39295 "which are theoretically larger than the largest disk we could support."
39296 msgstr ""
39297
39298 #. type: =head2
39299 #: ../src/guestfs.pod:3086
39300 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
39301 msgstr ""
39302
39303 #. type: textblock
39304 #: ../src/guestfs.pod:3088
39305 msgid ""
39306 "This depends on the filesystem type.  libguestfs itself does not impose any "
39307 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
39308 "what these limits are."
39309 msgstr ""
39310
39311 #. type: =head2
39312 #: ../src/guestfs.pod:3092
39313 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
39314 msgstr ""
39315
39316 #. type: textblock
39317 #: ../src/guestfs.pod:3094
39318 msgid ""
39319 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
39320 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
39321 "uploads and downloads."
39322 msgstr ""
39323
39324 #. type: =head2
39325 #: ../src/guestfs.pod:3098
39326 msgid "INSPECTION LIMITS"
39327 msgstr ""
39328
39329 #. type: textblock
39330 #: ../src/guestfs.pod:3100
39331 msgid ""
39332 "The inspection code has several arbitrary limits on things like the size of "
39333 "Windows Registry hive it will read, and the length of product name.  These "
39334 "are intended to stop a malicious guest from consuming arbitrary amounts of "
39335 "memory and disk space on the host, and should not be reached in practice.  "
39336 "See the source code for more information."
39337 msgstr ""
39338
39339 #. type: textblock
39340 #: ../src/guestfs.pod:3126
39341 msgid ""
39342 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
39343 "effect as calling C<guestfs_set_verbose (g, 1)>."
39344 msgstr ""
39345
39346 #. type: textblock
39347 #: ../src/guestfs.pod:3138
39348 msgid ""
39349 "Set the path that libguestfs uses to search for a supermin appliance.  See "
39350 "the discussion of paths in section L</PATH> above."
39351 msgstr ""
39352
39353 #. type: textblock
39354 #: ../src/guestfs.pod:3147
39355 msgid "See also L</QEMU WRAPPERS> above."
39356 msgstr ""
39357
39358 #. type: textblock
39359 #: ../src/guestfs.pod:3151
39360 msgid ""
39361 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
39362 "effect as calling C<guestfs_set_trace (g, 1)>."
39363 msgstr ""
39364
39365 #. type: textblock
39366 #: ../src/guestfs.pod:3169
39367 msgid ""
39368 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
39369 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
39370 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
39371 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
39372 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)"
39373 ">, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, "
39374 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
39375 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://"
39376 "libguestfs.org/>."
39377 msgstr ""
39378
39379 #. type: textblock
39380 #: ../src/guestfs.pod:3200
39381 msgid ""
39382 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
39383 "(8)>, L<disktype(1)>."
39384 msgstr ""
39385
39386 #. type: =head1
39387 #: ../src/guestfs.pod:3207 ../tools/virt-make-fs.pl:553
39388 #: ../tools/virt-win-reg.pl:761
39389 msgid "BUGS"
39390 msgstr "ВАДИ"
39391
39392 #. type: textblock
39393 #: ../src/guestfs.pod:3209
39394 msgid "To get a list of bugs against libguestfs use this link:"
39395 msgstr ""
39396 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
39397 "посиланням:"
39398
39399 #. type: textblock
39400 #: ../src/guestfs.pod:3211
39401 msgid ""
39402 "L<https://bugzilla.redhat.com/buglist.cgi?"
39403 "component=libguestfs&product=Virtualization+Tools>"
39404 msgstr ""
39405 "L<https://bugzilla.redhat.com/buglist.cgi?"
39406 "component=libguestfs&product=Virtualization+Tools>"
39407
39408 #. type: textblock
39409 #: ../src/guestfs.pod:3213
39410 msgid "To report a new bug against libguestfs use this link:"
39411 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
39412
39413 #. type: textblock
39414 #: ../src/guestfs.pod:3215
39415 msgid ""
39416 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
39417 "component=libguestfs&product=Virtualization+Tools>"
39418 msgstr ""
39419 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
39420 "component=libguestfs&product=Virtualization+Tools>"
39421
39422 #. type: textblock
39423 #: ../src/guestfs.pod:3217
39424 msgid "When reporting a bug, please check:"
39425 msgstr ""
39426
39427 #. type: textblock
39428 #: ../src/guestfs.pod:3223
39429 msgid "That the bug hasn't been reported already."
39430 msgstr ""
39431
39432 #. type: textblock
39433 #: ../src/guestfs.pod:3227
39434 msgid "That you are testing a recent version."
39435 msgstr ""
39436
39437 #. type: textblock
39438 #: ../src/guestfs.pod:3231
39439 msgid "Describe the bug accurately, and give a way to reproduce it."
39440 msgstr ""
39441
39442 #. type: textblock
39443 #: ../src/guestfs.pod:3235
39444 msgid ""
39445 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
39446 "bug report."
39447 msgstr ""
39448
39449 #. type: textblock
39450 #: ../test-tool/libguestfs-test-tool.pod:5
39451 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
39452 msgstr ""
39453
39454 #. type: verbatim
39455 #: ../test-tool/libguestfs-test-tool.pod:9
39456 #, no-wrap
39457 msgid ""
39458 " libguestfs-test-tool [--options]\n"
39459 "\n"
39460 msgstr ""
39461
39462 #. type: textblock
39463 #: ../test-tool/libguestfs-test-tool.pod:13
39464 msgid ""
39465 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
39466 "to check basic libguestfs functionality is working.  This is needed because "
39467 "libguestfs occasionally breaks for reasons beyond our control: usually "
39468 "because of changes in the underlying qemu or kernel packages, or the host "
39469 "environment."
39470 msgstr ""
39471
39472 #. type: textblock
39473 #: ../test-tool/libguestfs-test-tool.pod:19
39474 msgid "If you suspect a problem in libguestfs, then just run:"
39475 msgstr ""
39476
39477 #. type: verbatim
39478 #: ../test-tool/libguestfs-test-tool.pod:21
39479 #, no-wrap
39480 msgid ""
39481 " libguestfs-test-tool\n"
39482 "\n"
39483 msgstr ""
39484
39485 #. type: textblock
39486 #: ../test-tool/libguestfs-test-tool.pod:23
39487 msgid "It will print lots of diagnostic messages."
39488 msgstr ""
39489
39490 #. type: textblock
39491 #: ../test-tool/libguestfs-test-tool.pod:25
39492 msgid "If it runs to completion successfully, you will see this near the end:"
39493 msgstr ""
39494
39495 #. type: verbatim
39496 #: ../test-tool/libguestfs-test-tool.pod:27
39497 #, no-wrap
39498 msgid ""
39499 " ===== TEST FINISHED OK =====\n"
39500 "\n"
39501 msgstr ""
39502
39503 #. type: textblock
39504 #: ../test-tool/libguestfs-test-tool.pod:29
39505 msgid "and the test tool will exit with code 0."
39506 msgstr ""
39507
39508 #. type: textblock
39509 #: ../test-tool/libguestfs-test-tool.pod:31
39510 msgid ""
39511 "If it fails (and/or exits with non-zero error code), please paste the "
39512 "I<complete, unedited> output of the test tool into a bug report.  More "
39513 "information about reporting bugs can be found on the L<http://libguestfs.org/"
39514 "> website."
39515 msgstr ""
39516
39517 #. type: textblock
39518 #: ../test-tool/libguestfs-test-tool.pod:42
39519 msgid "Display short usage information and exit."
39520 msgstr ""
39521
39522 #. type: =item
39523 #: ../test-tool/libguestfs-test-tool.pod:44
39524 #, fuzzy
39525 #| msgid "I<--qemu qemu_binary>"
39526 msgid "B<--qemu qemu_binary>"
39527 msgstr "I<--qemu виконуваний_файл_qemu>"
39528
39529 #. type: textblock
39530 #: ../test-tool/libguestfs-test-tool.pod:46
39531 msgid ""
39532 "If you have downloaded another qemu binary, point this option at the full "
39533 "path of the binary to try it."
39534 msgstr ""
39535
39536 #. type: =item
39537 #: ../test-tool/libguestfs-test-tool.pod:49
39538 #, fuzzy
39539 #| msgid "I<--qemu qemu_binary>"
39540 msgid "B<--qemudir qemu_source_dir>"
39541 msgstr "I<--qemu виконуваний_файл_qemu>"
39542
39543 #. type: textblock
39544 #: ../test-tool/libguestfs-test-tool.pod:51
39545 msgid ""
39546 "If you have compiled qemu from source, point this option at the source "
39547 "directory to try it."
39548 msgstr ""
39549
39550 #. type: =item
39551 #: ../test-tool/libguestfs-test-tool.pod:54
39552 msgid "B<-t N>"
39553 msgstr ""
39554
39555 #. type: =item
39556 #: ../test-tool/libguestfs-test-tool.pod:56
39557 #, fuzzy
39558 #| msgid "I<--timeout N>"
39559 msgid "B<--timeout N>"
39560 msgstr "I<--timeout N>"
39561
39562 #. type: textblock
39563 #: ../test-tool/libguestfs-test-tool.pod:58
39564 msgid ""
39565 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
39566 "minutes) which does not usually need to be adjusted."
39567 msgstr ""
39568
39569 #. type: =head1
39570 #: ../test-tool/libguestfs-test-tool.pod:63
39571 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
39572 msgstr ""
39573
39574 #. type: textblock
39575 #: ../test-tool/libguestfs-test-tool.pod:65
39576 msgid ""
39577 "If you have compiled another version of qemu from source and would like to "
39578 "try that, then you can use the I<--qemudir> option to point to the qemu "
39579 "source directory."
39580 msgstr ""
39581
39582 #. type: textblock
39583 #: ../test-tool/libguestfs-test-tool.pod:69
39584 msgid ""
39585 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
39586 "option to point to the binary."
39587 msgstr ""
39588
39589 #. type: textblock
39590 #: ../test-tool/libguestfs-test-tool.pod:72
39591 msgid ""
39592 "Note when using these options, you can ignore the business of qemu wrapper "
39593 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
39594 "wrapper script for you if one is needed."
39595 msgstr ""
39596
39597 #. type: =head1
39598 #: ../test-tool/libguestfs-test-tool.pod:76
39599 msgid "TRYING OUT A DIFFERENT KERNEL"
39600 msgstr ""
39601
39602 #. type: textblock
39603 #: ../test-tool/libguestfs-test-tool.pod:78
39604 msgid ""
39605 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
39606 "libguestfs tries.  You do this by setting the environment variables "
39607 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
39608 msgstr ""
39609
39610 #. type: textblock
39611 #: ../test-tool/libguestfs-test-tool.pod:82
39612 msgid ""
39613 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
39614 "information."
39615 msgstr ""
39616
39617 #. type: =head1
39618 #: ../test-tool/libguestfs-test-tool.pod:85
39619 msgid "SELF-DIAGNOSIS"
39620 msgstr ""
39621
39622 #. type: textblock
39623 #: ../test-tool/libguestfs-test-tool.pod:87
39624 msgid ""
39625 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
39626 "produced by libguestfs-test-tool and/or possible errors."
39627 msgstr ""
39628
39629 #. type: textblock
39630 #: ../test-tool/libguestfs-test-tool.pod:92
39631 msgid ""
39632 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
39633 "I<1> if there was an error."
39634 msgstr ""
39635
39636 #. type: textblock
39637 #: ../test-tool/libguestfs-test-tool.pod:97
39638 msgid ""
39639 "For the full list of environment variables which may affect libguestfs, "
39640 "please see the L<guestfs(3)> manual page."
39641 msgstr ""
39642
39643 #. type: textblock
39644 #: ../test-tool/libguestfs-test-tool.pod:102
39645 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
39646 msgstr ""
39647
39648 #. type: textblock
39649 #: ../tools/virt-list-filesystems.pl:32
39650 msgid ""
39651 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
39652 msgstr ""
39653
39654 #. type: verbatim
39655 #: ../tools/virt-list-filesystems.pl:36
39656 #, no-wrap
39657 msgid ""
39658 " virt-list-filesystems [--options] domname\n"
39659 "\n"
39660 msgstr ""
39661
39662 #. type: verbatim
39663 #: ../tools/virt-list-filesystems.pl:38
39664 #, no-wrap
39665 msgid ""
39666 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
39667 "\n"
39668 msgstr ""
39669
39670 #. type: textblock
39671 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
39672 msgid ""
39673 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
39674 "replacement."
39675 msgstr ""
39676
39677 #. type: textblock
39678 #: ../tools/virt-list-filesystems.pl:45
39679 msgid ""
39680 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
39681 "are contained in a virtual machine or disk image."
39682 msgstr ""
39683
39684 #. type: textblock
39685 #: ../tools/virt-list-filesystems.pl:49
39686 msgid ""
39687 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
39688 "functionality.  For more complex cases you should look at the L<guestfish(1)"
39689 "> tool."
39690 msgstr ""
39691
39692 #. type: textblock
39693 #: ../tools/virt-list-filesystems.pl:112
39694 msgid ""
39695 "With this option, C<virt-list-filesystems> displays the type of each "
39696 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
39697 msgstr ""
39698
39699 #. type: =item
39700 #: ../tools/virt-list-filesystems.pl:119
39701 #, fuzzy
39702 #| msgid "B<-a image>"
39703 msgid "B<-a>"
39704 msgstr "B<-a образ>"
39705
39706 #. type: textblock
39707 #: ../tools/virt-list-filesystems.pl:123
39708 msgid ""
39709 "Normally we only show mountable filesystems.  If this option is given then "
39710 "swap devices are shown too."
39711 msgstr ""
39712
39713 #. type: textblock
39714 #: ../tools/virt-list-filesystems.pl:197
39715 msgid ""
39716 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
39717 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
39718 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39719 msgstr ""
39720 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
39721 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
39722 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39723
39724 #. type: textblock
39725 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
39726 msgid "Copyright (C) 2009 Red Hat Inc."
39727 msgstr "© Red Hat Inc., 2009"
39728
39729 #. type: textblock
39730 #: ../tools/virt-list-partitions.pl:32
39731 msgid ""
39732 "virt-list-partitions - List partitions in a virtual machine or disk image"
39733 msgstr ""
39734
39735 #. type: verbatim
39736 #: ../tools/virt-list-partitions.pl:36
39737 #, no-wrap
39738 msgid ""
39739 " virt-list-partitions [--options] domname\n"
39740 "\n"
39741 msgstr ""
39742 " virt-list-partitions [--параметри] назва_домену\n"
39743 "\n"
39744
39745 #. type: verbatim
39746 #: ../tools/virt-list-partitions.pl:38
39747 #, no-wrap
39748 msgid ""
39749 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
39750 "\n"
39751 msgstr ""
39752 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
39753 "\n"
39754
39755 #. type: textblock
39756 #: ../tools/virt-list-partitions.pl:45
39757 msgid ""
39758 "C<virt-list-partitions> is a command line tool to list the partitions that "
39759 "are contained in a virtual machine or disk image.  It is mainly useful as a "
39760 "first step to using L<virt-resize(1)>."
39761 msgstr ""
39762
39763 #. type: textblock
39764 #: ../tools/virt-list-partitions.pl:50
39765 msgid ""
39766 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
39767 "functionality.  For more complex cases you should look at the L<guestfish(1)"
39768 "> tool."
39769 msgstr ""
39770
39771 #. type: textblock
39772 #: ../tools/virt-list-partitions.pl:113
39773 msgid "Show sizes in human-readable form (eg. \"1G\")."
39774 msgstr ""
39775
39776 #. type: textblock
39777 #: ../tools/virt-list-partitions.pl:123
39778 msgid ""
39779 "With this option, C<virt-list-partitions> displays the type and size of each "
39780 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
39781 msgstr ""
39782
39783 #. type: =item
39784 #: ../tools/virt-list-partitions.pl:130
39785 msgid "B<-t>"
39786 msgstr ""
39787
39788 #. type: =item
39789 #: ../tools/virt-list-partitions.pl:132
39790 #, fuzzy
39791 #| msgid "B<-t> | B<--total>"
39792 msgid "B<--total>"
39793 msgstr "B<-t> | B<--total>"
39794
39795 #. type: textblock
39796 #: ../tools/virt-list-partitions.pl:134
39797 msgid ""
39798 "Display the total size of each block device (as a separate row or rows)."
39799 msgstr ""
39800
39801 #. type: textblock
39802 #: ../tools/virt-list-partitions.pl:267
39803 msgid ""
39804 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39805 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39806 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39807 msgstr ""
39808 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39809 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39810 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39811
39812 #. type: textblock
39813 #: ../tools/virt-list-partitions.pl:283
39814 msgid "Copyright (C) 2009-2010 Red Hat Inc."
39815 msgstr "© Red Hat Inc., 2009–2010"
39816
39817 #. type: textblock
39818 #: ../tools/virt-make-fs.pl:37
39819 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
39820 msgstr ""
39821
39822 #. type: verbatim
39823 #: ../tools/virt-make-fs.pl:41
39824 #, no-wrap
39825 msgid ""
39826 " virt-make-fs [--options] input.tar output.img\n"
39827 "\n"
39828 msgstr ""
39829
39830 #. type: verbatim
39831 #: ../tools/virt-make-fs.pl:43
39832 #, no-wrap
39833 msgid ""
39834 " virt-make-fs [--options] input.tar.gz output.img\n"
39835 "\n"
39836 msgstr ""
39837
39838 #. type: verbatim
39839 #: ../tools/virt-make-fs.pl:45
39840 #, no-wrap
39841 msgid ""
39842 " virt-make-fs [--options] directory output.img\n"
39843 "\n"
39844 msgstr ""
39845
39846 #. type: textblock
39847 #: ../tools/virt-make-fs.pl:49
39848 msgid ""
39849 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
39850 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
39851 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
39852 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
39853 "you want to attach these filesystems to existing virtual machines (eg. to "
39854 "import large amounts of read-only data to a VM)."
39855 msgstr ""
39856
39857 #. type: textblock
39858 #: ../tools/virt-make-fs.pl:57
39859 msgid "Basic usage is:"
39860 msgstr ""
39861
39862 #. type: verbatim
39863 #: ../tools/virt-make-fs.pl:59
39864 #, no-wrap
39865 msgid ""
39866 " virt-make-fs input output\n"
39867 "\n"
39868 msgstr ""
39869
39870 #. type: textblock
39871 #: ../tools/virt-make-fs.pl:61
39872 msgid ""
39873 "where C<input> is either a directory containing files that you want to add, "
39874 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
39875 "C<output> is a disk image.  The input type is detected automatically.  The "
39876 "output disk image defaults to a raw ext2 image unless you specify extra "
39877 "flags (see L</OPTIONS> below)."
39878 msgstr ""
39879
39880 #. type: =head2
39881 #: ../tools/virt-make-fs.pl:67
39882 msgid "EXTRA SPACE"
39883 msgstr ""
39884
39885 #. type: textblock
39886 #: ../tools/virt-make-fs.pl:69
39887 msgid ""
39888 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
39889 "the files that it contains, but might have extra space.  Depending on how "
39890 "you are going to use the output, you might think this extra space is wasted "
39891 "and want to minimize it, or you might want to leave space so that more files "
39892 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
39893 "but you can use the I<--size> flag to leave space in the filesystem if you "
39894 "want it."
39895 msgstr ""
39896
39897 #. type: textblock
39898 #: ../tools/virt-make-fs.pl:77
39899 msgid ""
39900 "An alternative way to leave extra space but not make the output image any "
39901 "bigger is to use an alternative disk image format (instead of the default "
39902 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
39903 "image format (check your hypervisor supports this before using it).  This "
39904 "allows you to choose a large I<--size> but the extra space won't actually be "
39905 "allocated in the image until you try to store something in it."
39906 msgstr ""
39907
39908 #. type: textblock
39909 #: ../tools/virt-make-fs.pl:85
39910 msgid ""
39911 "Don't forget that you can also use local commands including L<resize2fs(8)> "
39912 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
39913 "to build another image from scratch."
39914 msgstr ""
39915
39916 #. type: =head3
39917 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
39918 #: ../tools/virt-make-fs.pl:142
39919 msgid "EXAMPLE"
39920 msgstr "ПРИКЛАД"
39921
39922 #. type: verbatim
39923 #: ../tools/virt-make-fs.pl:91
39924 #, no-wrap
39925 msgid ""
39926 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39927 "\n"
39928 msgstr ""
39929 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39930 "\n"
39931
39932 #. type: =head2
39933 #: ../tools/virt-make-fs.pl:93
39934 msgid "FILESYSTEM TYPE"
39935 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
39936
39937 #. type: textblock
39938 #: ../tools/virt-make-fs.pl:95
39939 msgid ""
39940 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
39941 "libguestfs supports can be used (but I<not> read-only formats like "
39942 "ISO9660).  Here are some of the more common choices:"
39943 msgstr ""
39944
39945 #. type: =item
39946 #: ../tools/virt-make-fs.pl:101
39947 msgid "I<ext3>"
39948 msgstr "I<ext3>"
39949
39950 #. type: textblock
39951 #: ../tools/virt-make-fs.pl:103
39952 msgid ""
39953 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
39954 "you are not going to use the filesystem in a way that requires the journal, "
39955 "then this is just wasted overhead."
39956 msgstr ""
39957
39958 #. type: =item
39959 #: ../tools/virt-make-fs.pl:107
39960 msgid "I<ntfs> or I<vfat>"
39961 msgstr "I<ntfs> або I<vfat>"
39962
39963 #. type: textblock
39964 #: ../tools/virt-make-fs.pl:109
39965 msgid "Useful if exporting data to a Windows guest."
39966 msgstr ""
39967
39968 #. type: textblock
39969 #: ../tools/virt-make-fs.pl:111
39970 msgid ""
39971 "I<Note for vfat>: The tar archive or local directory must only contain files "
39972 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
39973 "program running within libguestfs is unable to change the ownership of non-"
39974 "root files, since vfat itself does not support this."
39975 msgstr ""
39976
39977 #. type: =item
39978 #: ../tools/virt-make-fs.pl:116
39979 msgid "I<minix>"
39980 msgstr "I<minix>"
39981
39982 #. type: textblock
39983 #: ../tools/virt-make-fs.pl:118
39984 msgid ""
39985 "Lower overhead than C<ext2>, but certain limitations on filename length and "
39986 "total filesystem size."
39987 msgstr ""
39988
39989 #. type: verbatim
39990 #: ../tools/virt-make-fs.pl:125
39991 #, no-wrap
39992 msgid ""
39993 " virt-make-fs --type=minix input minixfs.img\n"
39994 "\n"
39995 msgstr ""
39996
39997 #. type: =head2
39998 #: ../tools/virt-make-fs.pl:127
39999 msgid "TO PARTITION OR NOT TO PARTITION"
40000 msgstr ""
40001
40002 #. type: textblock
40003 #: ../tools/virt-make-fs.pl:129
40004 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40005 msgstr ""
40006
40007 #. type: textblock
40008 #: ../tools/virt-make-fs.pl:131
40009 msgid ""
40010 "Adding a partition can make the disk image more compatible with certain "
40011 "virtualized operating systems which don't expect to see a filesystem "
40012 "directly located on a block device (Linux doesn't care and will happily "
40013 "handle both types)."
40014 msgstr ""
40015
40016 #. type: textblock
40017 #: ../tools/virt-make-fs.pl:136
40018 msgid ""
40019 "On the other hand, if you have a partition table then the output image is no "
40020 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
40021 "directly on a partitioned disk image.  (However libguestfs tools such as "
40022 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40023 msgstr ""
40024
40025 #. type: textblock
40026 #: ../tools/virt-make-fs.pl:144
40027 msgid "Add an MBR partition:"
40028 msgstr ""
40029
40030 #. type: verbatim
40031 #: ../tools/virt-make-fs.pl:146
40032 #, no-wrap
40033 msgid ""
40034 " virt-make-fs --partition -- input disk.img\n"
40035 "\n"
40036 msgstr ""
40037
40038 #. type: textblock
40039 #: ../tools/virt-make-fs.pl:148
40040 msgid ""
40041 "If the output disk image could be terabyte-sized or larger, it's better to "
40042 "use an EFI/GPT-compatible partition table:"
40043 msgstr ""
40044
40045 #. type: verbatim
40046 #: ../tools/virt-make-fs.pl:151
40047 #, no-wrap
40048 msgid ""
40049 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
40050 "\n"
40051 msgstr ""
40052
40053 #. type: textblock
40054 #: ../tools/virt-make-fs.pl:179
40055 msgid "Enable debugging information."
40056 msgstr "Увімкнути виведення діагностичних даних."
40057
40058 #. type: =item
40059 #: ../tools/virt-make-fs.pl:185
40060 msgid "B<--size=E<lt>NE<gt>>"
40061 msgstr "B<--size=E<lt>NE<gt>>"
40062
40063 #. type: =item
40064 #: ../tools/virt-make-fs.pl:187
40065 msgid "B<--size=+E<lt>NE<gt>>"
40066 msgstr "B<--size=+E<lt>NE<gt>>"
40067
40068 #. type: =item
40069 #: ../tools/virt-make-fs.pl:189
40070 msgid "B<-s E<lt>NE<gt>>"
40071 msgstr "B<-s E<lt>NE<gt>>"
40072
40073 #. type: =item
40074 #: ../tools/virt-make-fs.pl:191
40075 msgid "B<-s +E<lt>NE<gt>>"
40076 msgstr "B<-s +E<lt>NE<gt>>"
40077
40078 #. type: textblock
40079 #: ../tools/virt-make-fs.pl:193
40080 msgid ""
40081 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
40082 msgstr ""
40083
40084 #. type: textblock
40085 #: ../tools/virt-make-fs.pl:196
40086 msgid ""
40087 "If this option is I<not> given, then the output image will be just large "
40088 "enough to contain all the files, with not much wasted space."
40089 msgstr ""
40090
40091 #. type: textblock
40092 #: ../tools/virt-make-fs.pl:199
40093 msgid ""
40094 "To choose a fixed size output disk, specify an absolute number followed by b/"
40095 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40096 "Petabytes or Exabytes.  This must be large enough to contain all the input "
40097 "files, else you will get an error."
40098 msgstr ""
40099
40100 #. type: textblock
40101 #: ../tools/virt-make-fs.pl:204
40102 msgid ""
40103 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
40104 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40105 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
40106 "the input files, and (approximately) an extra 200 MB free space."
40107 msgstr ""
40108
40109 #. type: textblock
40110 #: ../tools/virt-make-fs.pl:210
40111 msgid ""
40112 "Note that virt-make-fs estimates free space, and therefore will not produce "
40113 "filesystems containing precisely the free space requested.  (It is much more "
40114 "expensive and time-consuming to produce a filesystem which has precisely the "
40115 "desired free space)."
40116 msgstr ""
40117
40118 #. type: =item
40119 #: ../tools/virt-make-fs.pl:219
40120 msgid "B<--format=E<lt>fmtE<gt>>"
40121 msgstr ""
40122
40123 #. type: =item
40124 #: ../tools/virt-make-fs.pl:221
40125 msgid "B<-F E<lt>fmtE<gt>>"
40126 msgstr ""
40127
40128 #. type: textblock
40129 #: ../tools/virt-make-fs.pl:223
40130 msgid "Choose the output disk image format."
40131 msgstr ""
40132
40133 #. type: textblock
40134 #: ../tools/virt-make-fs.pl:225
40135 msgid "The default is C<raw> (raw disk image)."
40136 msgstr ""
40137
40138 #. type: textblock
40139 #: ../tools/virt-make-fs.pl:227
40140 msgid ""
40141 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
40142 "that would really make sense here is C<qcow2>."
40143 msgstr ""
40144
40145 #. type: =item
40146 #: ../tools/virt-make-fs.pl:234
40147 msgid "B<--type=E<lt>fsE<gt>>"
40148 msgstr ""
40149
40150 #. type: =item
40151 #: ../tools/virt-make-fs.pl:236
40152 msgid "B<-t E<lt>fsE<gt>>"
40153 msgstr ""
40154
40155 #. type: textblock
40156 #: ../tools/virt-make-fs.pl:238
40157 msgid "Choose the output filesystem type."
40158 msgstr ""
40159
40160 #. type: textblock
40161 #: ../tools/virt-make-fs.pl:240
40162 msgid "The default is C<ext2>."
40163 msgstr "Типовим значенням є C<ext2>."
40164
40165 #. type: textblock
40166 #: ../tools/virt-make-fs.pl:242
40167 msgid ""
40168 "Any filesystem which is supported read-write by libguestfs can be used here."
40169 msgstr ""
40170
40171 #. type: =item
40172 #: ../tools/virt-make-fs.pl:249
40173 msgid "B<--partition>"
40174 msgstr "B<--partition>"
40175
40176 #. type: =item
40177 #: ../tools/virt-make-fs.pl:251
40178 msgid "B<--partition=E<lt>parttypeE<gt>>"
40179 msgstr ""
40180
40181 #. type: textblock
40182 #: ../tools/virt-make-fs.pl:253
40183 msgid ""
40184 "If specified, this flag adds an MBR partition table to the output disk image."
40185 msgstr ""
40186
40187 #. type: textblock
40188 #: ../tools/virt-make-fs.pl:256
40189 msgid ""
40190 "You can change the partition table type, eg. I<--partition=gpt> for large "
40191 "disks."
40192 msgstr ""
40193
40194 #. type: textblock
40195 #: ../tools/virt-make-fs.pl:259
40196 msgid ""
40197 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
40198 "might consider the next parameter to be the partition type.  For example:"
40199 msgstr ""
40200
40201 #. type: verbatim
40202 #: ../tools/virt-make-fs.pl:263
40203 #, no-wrap
40204 msgid ""
40205 " virt-make-fs --partition input.tar ...\n"
40206 "\n"
40207 msgstr ""
40208
40209 #. type: textblock
40210 #: ../tools/virt-make-fs.pl:265
40211 msgid ""
40212 "would cause virt-make-fs to think you wanted to use a partition type of "
40213 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
40214 "dash) between options and the input file argument:"
40215 msgstr ""
40216
40217 #. type: verbatim
40218 #: ../tools/virt-make-fs.pl:269
40219 #, no-wrap
40220 msgid ""
40221 " virt-make-fs --partition -- input.tar ...\n"
40222 "\n"
40223 msgstr ""
40224 " virt-make-fs --partition -- input.tar ...\n"
40225 "\n"
40226
40227 #. type: textblock
40228 #: ../tools/virt-make-fs.pl:541
40229 msgid ""
40230 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40231 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40232 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40233 msgstr ""
40234 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40235 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40236 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40237
40238 #. type: textblock
40239 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
40240 msgid ""
40241 "When reporting bugs, please enable debugging and capture the I<complete> "
40242 "output:"
40243 msgstr ""
40244
40245 #. type: verbatim
40246 #: ../tools/virt-make-fs.pl:558
40247 #, no-wrap
40248 msgid ""
40249 " export LIBGUESTFS_DEBUG=1\n"
40250 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40251 "\n"
40252 msgstr ""
40253 " export LIBGUESTFS_DEBUG=1\n"
40254 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40255 "\n"
40256
40257 #. type: textblock
40258 #: ../tools/virt-make-fs.pl:561
40259 msgid ""
40260 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
40261 "redhat.com/>"
40262 msgstr ""
40263
40264 #. type: textblock
40265 #: ../tools/virt-tar.pl:33
40266 msgid "virt-tar - Extract or upload files to a virtual machine"
40267 msgstr ""
40268
40269 #. type: verbatim
40270 #: ../tools/virt-tar.pl:37
40271 #, no-wrap
40272 msgid ""
40273 " virt-tar [--options] -x domname directory tarball\n"
40274 "\n"
40275 msgstr ""
40276
40277 #. type: verbatim
40278 #: ../tools/virt-tar.pl:39
40279 #, no-wrap
40280 msgid ""
40281 " virt-tar [--options] -u domname tarball directory\n"
40282 "\n"
40283 msgstr ""
40284
40285 #. type: verbatim
40286 #: ../tools/virt-tar.pl:41
40287 #, no-wrap
40288 msgid ""
40289 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
40290 "\n"
40291 msgstr ""
40292
40293 #. type: verbatim
40294 #: ../tools/virt-tar.pl:43
40295 #, no-wrap
40296 msgid ""
40297 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
40298 "\n"
40299 msgstr ""
40300
40301 #. type: =head2
40302 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
40303 msgid "NOTE"
40304 msgstr "ПРИМІТКА"
40305
40306 #. type: textblock
40307 #: ../tools/virt-tar.pl:47
40308 msgid ""
40309 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
40310 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
40311 msgstr ""
40312
40313 #. type: textblock
40314 #: ../tools/virt-tar.pl:52
40315 msgid "Download C</home> from the VM into a local tarball:"
40316 msgstr ""
40317
40318 #. type: verbatim
40319 #: ../tools/virt-tar.pl:54
40320 #, no-wrap
40321 msgid ""
40322 " virt-tar -x domname /home home.tar\n"
40323 "\n"
40324 msgstr ""
40325
40326 #. type: verbatim
40327 #: ../tools/virt-tar.pl:56
40328 #, no-wrap
40329 msgid ""
40330 " virt-tar -zx domname /home home.tar.gz\n"
40331 "\n"
40332 msgstr ""
40333
40334 #. type: textblock
40335 #: ../tools/virt-tar.pl:58
40336 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
40337 msgstr ""
40338
40339 #. type: verbatim
40340 #: ../tools/virt-tar.pl:60
40341 #, no-wrap
40342 msgid ""
40343 " virt-tar -u domname uploadstuff.tar /tmp\n"
40344 "\n"
40345 msgstr ""
40346
40347 #. type: verbatim
40348 #: ../tools/virt-tar.pl:62
40349 #, no-wrap
40350 msgid ""
40351 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
40352 "\n"
40353 msgstr ""
40354
40355 #. type: textblock
40356 #: ../tools/virt-tar.pl:66
40357 msgid ""
40358 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
40359 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
40360 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
40361 msgstr ""
40362
40363 #. type: textblock
40364 #: ../tools/virt-tar.pl:71
40365 msgid ""
40366 "You can use I<-x> (extract) on live virtual machines, but you might get "
40367 "inconsistent results or errors if there is filesystem activity inside the "
40368 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
40369 "work, but the only way to guarantee consistent results is if the virtual "
40370 "machine is shut down."
40371 msgstr ""
40372
40373 #. type: textblock
40374 #: ../tools/virt-tar.pl:79
40375 msgid ""
40376 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
40377 "parts of a guest filesystem.  There are many possibilities: making backups, "
40378 "uploading data files, snooping on guest activity, fixing or customizing "
40379 "guests, etc."
40380 msgstr ""
40381
40382 #. type: textblock
40383 #: ../tools/virt-tar.pl:84
40384 msgid ""
40385 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
40386 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
40387 "should look at the L<guestfish(1)> tool."
40388 msgstr ""
40389
40390 #. type: textblock
40391 #: ../tools/virt-tar.pl:88
40392 msgid ""
40393 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
40394 "its contents (recursively) from the virtual machine into a local tarball.  "
40395 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
40396 "virtual machine.  You cannot use these two options together."
40397 msgstr ""
40398
40399 #. type: textblock
40400 #: ../tools/virt-tar.pl:94
40401 msgid ""
40402 "In addition, you may need to use the I<-z> (gZip) option to enable "
40403 "compression.  When uploading, you have to specify I<-z> if the upload file "
40404 "is compressed because virt-tar won't detect this on its own."
40405 msgstr ""
40406
40407 #. type: textblock
40408 #: ../tools/virt-tar.pl:98
40409 msgid ""
40410 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
40411 "example it cannot do PKZip files or bzip2 compression.  If you want that "
40412 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
40413 "the L<libguestfs(3)> API)."
40414 msgstr ""
40415
40416 #. type: =item
40417 #: ../tools/virt-tar.pl:160
40418 #, fuzzy
40419 #| msgid "B<--format>"
40420 msgid "B<--extract>"
40421 msgstr "B<--format>"
40422
40423 #. type: =item
40424 #: ../tools/virt-tar.pl:162
40425 #, fuzzy
40426 #| msgid "download"
40427 msgid "B<--download>"
40428 msgstr "download"
40429
40430 #. type: =item
40431 #: ../tools/virt-tar.pl:164
40432 msgid "B<-u>"
40433 msgstr ""
40434
40435 #. type: =item
40436 #: ../tools/virt-tar.pl:166
40437 #, fuzzy
40438 #| msgid "B<-u> | B<--upload>"
40439 msgid "B<--upload>"
40440 msgstr "B<-u> | B<--upload>"
40441
40442 #. type: textblock
40443 #: ../tools/virt-tar.pl:168
40444 msgid ""
40445 "Use I<-x> to extract (download) a directory from a virtual machine to a "
40446 "local tarball."
40447 msgstr ""
40448
40449 #. type: textblock
40450 #: ../tools/virt-tar.pl:171
40451 msgid ""
40452 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
40453 "Please read the L</WARNING> section above before using this option."
40454 msgstr ""
40455
40456 #. type: textblock
40457 #: ../tools/virt-tar.pl:175
40458 msgid "You must specify exactly one of these options."
40459 msgstr ""
40460
40461 #. type: =item
40462 #: ../tools/virt-tar.pl:181
40463 msgid "B<-z>"
40464 msgstr ""
40465
40466 #. type: =item
40467 #: ../tools/virt-tar.pl:183
40468 #, fuzzy
40469 #| msgid "B<-z> | B<--gzip>"
40470 msgid "B<--gzip>"
40471 msgstr "B<-z> | B<--gzip>"
40472
40473 #. type: textblock
40474 #: ../tools/virt-tar.pl:185
40475 msgid "Specify that the input or output tarball is gzip-compressed."
40476 msgstr ""
40477
40478 #. type: textblock
40479 #: ../tools/virt-tar.pl:298
40480 msgid ""
40481 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40482 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40483 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40484 "org/>."
40485 msgstr ""
40486 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40487 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40488 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40489 "org/>."
40490
40491 #. type: textblock
40492 #: ../tools/virt-win-reg.pl:37
40493 msgid ""
40494 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
40495 msgstr ""
40496
40497 #. type: verbatim
40498 #: ../tools/virt-win-reg.pl:41
40499 #, no-wrap
40500 msgid ""
40501 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
40502 "\n"
40503 msgstr ""
40504
40505 #. type: verbatim
40506 #: ../tools/virt-win-reg.pl:43
40507 #, no-wrap
40508 msgid ""
40509 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
40510 "\n"
40511 msgstr ""
40512
40513 #. type: verbatim
40514 #: ../tools/virt-win-reg.pl:45
40515 #, no-wrap
40516 msgid ""
40517 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
40518 "\n"
40519 msgstr ""
40520
40521 #. type: verbatim
40522 #: ../tools/virt-win-reg.pl:47
40523 #, no-wrap
40524 msgid ""
40525 " virt-win-reg --merge domname [input.reg ...]\n"
40526 "\n"
40527 msgstr ""
40528
40529 #. type: verbatim
40530 #: ../tools/virt-win-reg.pl:49
40531 #, no-wrap
40532 msgid ""
40533 " virt-win-reg [--options] disk.img ... # instead of domname\n"
40534 "\n"
40535 msgstr ""
40536
40537 #. type: textblock
40538 #: ../tools/virt-win-reg.pl:53
40539 msgid ""
40540 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
40541 "virtual machines.  If you do this, you I<will> get irreversible disk "
40542 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
40543 "but doesn't catch all cases."
40544 msgstr ""
40545
40546 #. type: textblock
40547 #: ../tools/virt-win-reg.pl:58
40548 msgid ""
40549 "Modifying the Windows Registry is an inherently risky operation.  The format "
40550 "is deliberately obscure and undocumented, and Registry changes can leave the "
40551 "system unbootable.  Therefore when using the I<--merge> option, make sure "
40552 "you have a reliable backup first."
40553 msgstr ""
40554
40555 #. type: textblock
40556 #: ../tools/virt-win-reg.pl:65
40557 msgid ""
40558 "This program can export and merge Windows Registry entries from a Windows "
40559 "guest."
40560 msgstr ""
40561
40562 #. type: textblock
40563 #: ../tools/virt-win-reg.pl:68
40564 msgid ""
40565 "The first parameter is the libvirt guest name or the raw disk image of a "
40566 "Windows guest."
40567 msgstr ""
40568
40569 #. type: textblock
40570 #: ../tools/virt-win-reg.pl:71
40571 msgid ""
40572 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
40573 "exported (recursively).  For example:"
40574 msgstr ""
40575
40576 #. type: verbatim
40577 #: ../tools/virt-win-reg.pl:74
40578 #, no-wrap
40579 msgid ""
40580 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
40581 "\n"
40582 msgstr ""
40583
40584 #. type: textblock
40585 #: ../tools/virt-win-reg.pl:76
40586 msgid ""
40587 "You can also display single values from within registry keys, for example:"
40588 msgstr ""
40589
40590 #. type: verbatim
40591 #: ../tools/virt-win-reg.pl:79
40592 #, no-wrap
40593 msgid ""
40594 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
40595 " $ virt-win-reg Windows7 $cvkey ProductName\n"
40596 " Windows 7 Enterprise\n"
40597 "\n"
40598 msgstr ""
40599
40600 #. type: textblock
40601 #: ../tools/virt-win-reg.pl:83
40602 msgid ""
40603 "With I<--merge>, you can merge a textual regedit file into the Windows "
40604 "Registry:"
40605 msgstr ""
40606
40607 #. type: verbatim
40608 #: ../tools/virt-win-reg.pl:86
40609 #, no-wrap
40610 msgid ""
40611 " $ virt-win-reg --merge Windows7 changes.reg\n"
40612 "\n"
40613 msgstr ""
40614
40615 #. type: textblock
40616 #: ../tools/virt-win-reg.pl:90
40617 msgid ""
40618 "This program is only meant for simple access to the registry.  If you want "
40619 "to do complicated things with the registry, we suggest you download the "
40620 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
40621 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
40622 "L<hivexregedit(1)>."
40623 msgstr ""
40624
40625 #. type: =item
40626 #: ../tools/virt-win-reg.pl:159
40627 msgid "B<--merge>"
40628 msgstr "B<--merge>"
40629
40630 #. type: textblock
40631 #: ../tools/virt-win-reg.pl:161
40632 msgid ""
40633 "In merge mode, this merges a textual regedit file into the Windows Registry "
40634 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
40635 "displays or exports Registry entries instead."
40636 msgstr ""
40637
40638 #. type: textblock
40639 #: ../tools/virt-win-reg.pl:165
40640 msgid ""
40641 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
40642 "result in disk corruption.  However exporting (without this flag)  is always "
40643 "safe."
40644 msgstr ""
40645
40646 #. type: =item
40647 #: ../tools/virt-win-reg.pl:173
40648 msgid "B<--encoding> UTF-16LE|ASCII"
40649 msgstr ""
40650
40651 #. type: textblock
40652 #: ../tools/virt-win-reg.pl:175
40653 msgid ""
40654 "When merging (only), you may need to specify the encoding for strings to be "
40655 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
40656 "(3)/ENCODING STRINGS>."
40657 msgstr ""
40658
40659 #. type: textblock
40660 #: ../tools/virt-win-reg.pl:179
40661 msgid ""
40662 "The default is to use UTF-16LE, which should work with recent versions of "
40663 "Windows."
40664 msgstr ""
40665
40666 #. type: =item
40667 #: ../tools/virt-win-reg.pl:186
40668 msgid "B<--unsafe-printable-strings>"
40669 msgstr ""
40670
40671 #. type: textblock
40672 #: ../tools/virt-win-reg.pl:188
40673 msgid ""
40674 "When exporting (only), assume strings are UTF-16LE and print them as strings "
40675 "instead of hex sequences.  Remove the final zero codepoint from strings if "
40676 "present."
40677 msgstr ""
40678
40679 #. type: textblock
40680 #: ../tools/virt-win-reg.pl:192
40681 msgid ""
40682 "This is unsafe and does not preserve the fidelity of strings in the original "
40683 "Registry for various reasons:"
40684 msgstr ""
40685
40686 #. type: textblock
40687 #: ../tools/virt-win-reg.pl:199
40688 msgid ""
40689 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
40690 "other encodings will be corrupted by this transformation."
40691 msgstr ""
40692
40693 #. type: textblock
40694 #: ../tools/virt-win-reg.pl:204
40695 msgid ""
40696 "Assumes that everything which has type 1 or 2 is really a string and that "
40697 "everything else is not a string, but the type field in real Registries is "
40698 "not reliable."
40699 msgstr ""
40700
40701 #. type: textblock
40702 #: ../tools/virt-win-reg.pl:210
40703 msgid ""
40704 "Loses information about whether a zero codepoint followed the string in the "
40705 "Registry or not."
40706 msgstr ""
40707
40708 #. type: textblock
40709 #: ../tools/virt-win-reg.pl:215
40710 msgid ""
40711 "This all happens because the Registry itself contains no information about "
40712 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
40713 msgstr ""
40714
40715 #. type: textblock
40716 #: ../tools/virt-win-reg.pl:219
40717 msgid ""
40718 "You should only use this option for quick hacking and debugging of the "
40719 "Registry contents, and I<never> use it if the output is going to be passed "
40720 "into another program or stored in another Registry."
40721 msgstr ""
40722
40723 #. type: =head1
40724 #: ../tools/virt-win-reg.pl:556
40725 msgid "SUPPORTED SYSTEMS"
40726 msgstr ""
40727
40728 #. type: textblock
40729 #: ../tools/virt-win-reg.pl:558
40730 msgid ""
40731 "The program currently supports Windows NT-derived guests starting with "
40732 "Windows XP through to at least Windows 7."
40733 msgstr ""
40734
40735 #. type: textblock
40736 #: ../tools/virt-win-reg.pl:561
40737 msgid "The following Registry keys are supported:"
40738 msgstr ""
40739
40740 #. type: =item
40741 #: ../tools/virt-win-reg.pl:565
40742 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
40743 msgstr ""
40744
40745 #. type: =item
40746 #: ../tools/virt-win-reg.pl:567
40747 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
40748 msgstr ""
40749
40750 #. type: =item
40751 #: ../tools/virt-win-reg.pl:569
40752 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
40753 msgstr ""
40754
40755 #. type: =item
40756 #: ../tools/virt-win-reg.pl:571
40757 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
40758 msgstr ""
40759
40760 #. type: =item
40761 #: ../tools/virt-win-reg.pl:573
40762 msgid "C<HKEY_USERS\\.DEFAULT>"
40763 msgstr ""
40764
40765 #. type: =item
40766 #: ../tools/virt-win-reg.pl:575
40767 msgid "C<HKEY_USERS\\I<SID>>"
40768 msgstr ""
40769
40770 #. type: textblock
40771 #: ../tools/virt-win-reg.pl:577
40772 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
40773 msgstr ""
40774
40775 #. type: =item
40776 #: ../tools/virt-win-reg.pl:579
40777 msgid "C<HKEY_USERS\\I<username>>"
40778 msgstr ""
40779
40780 #. type: textblock
40781 #: ../tools/virt-win-reg.pl:581
40782 msgid ""
40783 "where I<username> is a local user name (this is a libguestfs extension)."
40784 msgstr ""
40785
40786 #. type: textblock
40787 #: ../tools/virt-win-reg.pl:585
40788 msgid ""
40789 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
40790 "C<HKEY_USERS>."
40791 msgstr ""
40792
40793 #. type: textblock
40794 #: ../tools/virt-win-reg.pl:588
40795 msgid ""
40796 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
40797 "supported (there is no \"current user\")."
40798 msgstr ""
40799
40800 #. type: =head1
40801 #: ../tools/virt-win-reg.pl:591
40802 msgid "ENCODING"
40803 msgstr "КОДУВАННЯ"
40804
40805 #. type: textblock
40806 #: ../tools/virt-win-reg.pl:593
40807 msgid ""
40808 "C<virt-win-reg> expects that regedit files have already been reencoded in "
40809 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
40810 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
40811 "Windows-style line endings, you may need to reencode the whole file before "
40812 "or after processing."
40813 msgstr ""
40814
40815 #. type: textblock
40816 #: ../tools/virt-win-reg.pl:599
40817 msgid ""
40818 "To reencode a file from Windows format to Linux (before processing it with "
40819 "the I<--merge> option), you would do something like this:"
40820 msgstr ""
40821
40822 #. type: verbatim
40823 #: ../tools/virt-win-reg.pl:602
40824 #, no-wrap
40825 msgid ""
40826 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
40827 "\n"
40828 msgstr ""
40829
40830 #. type: textblock
40831 #: ../tools/virt-win-reg.pl:604
40832 msgid ""
40833 "To go in the opposite direction, after exporting and before sending the file "
40834 "to a Windows user, do something like this:"
40835 msgstr ""
40836
40837 #. type: verbatim
40838 #: ../tools/virt-win-reg.pl:607
40839 #, no-wrap
40840 msgid ""
40841 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
40842 "\n"
40843 msgstr ""
40844
40845 #. type: textblock
40846 #: ../tools/virt-win-reg.pl:609
40847 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
40848 msgstr ""
40849
40850 #. type: textblock
40851 #: ../tools/virt-win-reg.pl:611
40852 msgid ""
40853 "If you are unsure about the current encoding, use the L<file(1)> command.  "
40854 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
40855 "style (CRLF) line endings, like this:"
40856 msgstr ""
40857
40858 #. type: verbatim
40859 #: ../tools/virt-win-reg.pl:615
40860 #, no-wrap
40861 msgid ""
40862 " $ file software.reg\n"
40863 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
40864 " with CRLF line terminators\n"
40865 "\n"
40866 msgstr ""
40867
40868 #. type: textblock
40869 #: ../tools/virt-win-reg.pl:619
40870 msgid "This file would need conversion before you could I<--merge> it."
40871 msgstr ""
40872
40873 #. type: =head1
40874 #: ../tools/virt-win-reg.pl:621
40875 msgid "CurrentControlSet etc."
40876 msgstr ""
40877
40878 #. type: textblock
40879 #: ../tools/virt-win-reg.pl:623
40880 msgid ""
40881 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
40882 "Registry at the level of the hive file, and therefore you cannot modify "
40883 "these."
40884 msgstr ""
40885
40886 #. type: textblock
40887 #: ../tools/virt-win-reg.pl:627
40888 msgid ""
40889 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
40890 "circumstances it might refer to another control set.  The way to find out is "
40891 "to look at the C<HKLM\\SYSTEM\\Select> key:"
40892 msgstr ""
40893
40894 #. type: verbatim
40895 #: ../tools/virt-win-reg.pl:631
40896 #, no-wrap
40897 msgid ""
40898 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
40899 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
40900 " \"Current\"=dword:00000001\n"
40901 " \"Default\"=dword:00000001\n"
40902 " \"Failed\"=dword:00000000\n"
40903 " \"LastKnownGood\"=dword:00000002\n"
40904 "\n"
40905 msgstr ""
40906
40907 #. type: textblock
40908 #: ../tools/virt-win-reg.pl:638
40909 msgid "\"Current\" is the one which Windows will choose when it boots."
40910 msgstr ""
40911
40912 #. type: textblock
40913 #: ../tools/virt-win-reg.pl:640
40914 msgid ""
40915 "Similarly, other C<Current...> keys in the path may need to be replaced."
40916 msgstr ""
40917
40918 #. type: =head1
40919 #: ../tools/virt-win-reg.pl:643
40920 msgid "WINDOWS TIPS"
40921 msgstr ""
40922
40923 #. type: textblock
40924 #: ../tools/virt-win-reg.pl:645
40925 msgid ""
40926 "Note that some of these tips modify the guest disk image.  The guest I<must> "
40927 "be shut off, else you will get disk corruption."
40928 msgstr ""
40929
40930 #. type: =head2
40931 #: ../tools/virt-win-reg.pl:648
40932 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
40933 msgstr ""
40934
40935 #. type: textblock
40936 #: ../tools/virt-win-reg.pl:650
40937 msgid ""
40938 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
40939 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
40940 "is uploaded into C<C:\\>:"
40941 msgstr ""
40942
40943 #. type: verbatim
40944 #: ../tools/virt-win-reg.pl:654
40945 #, no-wrap
40946 msgid ""
40947 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
40948 "\n"
40949 msgstr ""
40950
40951 #. type: textblock
40952 #: ../tools/virt-win-reg.pl:656
40953 msgid "Prepare a regedit file containing the registry change:"
40954 msgstr ""
40955
40956 #. type: verbatim
40957 #: ../tools/virt-win-reg.pl:658
40958 #, no-wrap
40959 msgid ""
40960 " cat > test.reg <<'EOF'\n"
40961 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
40962 " \"Test\"=\"c:\\\\test.bat\"\n"
40963 " EOF\n"
40964 "\n"
40965 msgstr ""
40966
40967 #. type: textblock
40968 #: ../tools/virt-win-reg.pl:663
40969 msgid ""
40970 "In this example we use the key C<RunOnce> which means that the script will "
40971 "run precisely once when the first user logs in.  If you want it to run every "
40972 "time a user logs in, replace C<RunOnce> with C<Run>."
40973 msgstr ""
40974
40975 #. type: textblock
40976 #: ../tools/virt-win-reg.pl:667
40977 msgid "Now update the registry:"
40978 msgstr ""
40979
40980 #. type: verbatim
40981 #: ../tools/virt-win-reg.pl:669
40982 #, no-wrap
40983 msgid ""
40984 " virt-win-reg --merge WindowsGuest test.reg\n"
40985 "\n"
40986 msgstr ""
40987
40988 #. type: =head2
40989 #: ../tools/virt-win-reg.pl:671
40990 msgid "INSTALLING A SERVICE"
40991 msgstr ""
40992
40993 #. type: textblock
40994 #: ../tools/virt-win-reg.pl:673
40995 msgid ""
40996 "This section assumes you are familiar with Windows services, and you either "
40997 "have a program which handles the Windows Service Control Protocol directly "
40998 "or you want to run any program using a service wrapper like SrvAny or the "
40999 "free RHSrvAny."
41000 msgstr ""
41001
41002 #. type: textblock
41003 #: ../tools/virt-win-reg.pl:678
41004 msgid ""
41005 "First upload the program and optionally the service wrapper.  In this case "
41006 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
41007 msgstr ""
41008
41009 #. type: verbatim
41010 #: ../tools/virt-win-reg.pl:682
41011 #, no-wrap
41012 msgid ""
41013 " guestfish -i -d WindowsGuest <<EOF\n"
41014 "   upload rhsrvany.exe /rhsrvany.exe\n"
41015 "   upload test.exe /test.exe\n"
41016 " EOF\n"
41017 "\n"
41018 msgstr ""
41019
41020 #. type: textblock
41021 #: ../tools/virt-win-reg.pl:687
41022 msgid ""
41023 "Prepare a regedit file containing the registry changes.  In this example, "
41024 "the first registry change is needed for the service itself or the service "
41025 "wrapper (if used).  The second registry change is only needed because I am "
41026 "using the RHSrvAny service wrapper."
41027 msgstr ""
41028
41029 #. type: verbatim
41030 #: ../tools/virt-win-reg.pl:692
41031 #, no-wrap
41032 msgid ""
41033 " cat > service.reg <<'EOF'\n"
41034 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
41035 " \"Type\"=dword:00000010\n"
41036 " \"Start\"=dword:00000002\n"
41037 " \"ErrorControl\"=dword:00000001\n"
41038 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
41039 " \"DisplayName\"=\"RHSrvAny\"\n"
41040 " \"ObjectName\"=\"NetworkService\"\n"
41041 " \n"
41042 msgstr ""
41043
41044 #. type: verbatim
41045 #: ../tools/virt-win-reg.pl:701
41046 #, no-wrap
41047 msgid ""
41048 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
41049 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
41050 " \"PWD\"=\"c:\\\\Temp\"\n"
41051 " EOF\n"
41052 "\n"
41053 msgstr ""
41054
41055 #. type: textblock
41056 #: ../tools/virt-win-reg.pl:712
41057 msgid ""
41058 "For use of C<ControlSet001> see the section above in this manual page.  You "
41059 "may need to adjust this according to the control set that is in use by the "
41060 "guest."
41061 msgstr ""
41062
41063 #. type: textblock
41064 #: ../tools/virt-win-reg.pl:718
41065 msgid ""
41066 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
41067 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
41068 "privileged account."
41069 msgstr ""
41070
41071 #. type: textblock
41072 #: ../tools/virt-win-reg.pl:724
41073 msgid ""
41074 "For the meaning of the magic numbers, see this Microsoft KB article: "
41075 "L<http://support.microsoft.com/kb/103000>."
41076 msgstr ""
41077
41078 #. type: textblock
41079 #: ../tools/virt-win-reg.pl:729
41080 msgid "Update the registry:"
41081 msgstr ""
41082
41083 #. type: verbatim
41084 #: ../tools/virt-win-reg.pl:731
41085 #, no-wrap
41086 msgid ""
41087 " virt-win-reg --merge WindowsGuest service.reg\n"
41088 "\n"
41089 msgstr ""
41090
41091 #. type: textblock
41092 #: ../tools/virt-win-reg.pl:735
41093 msgid ""
41094 "Be careful when passing parameters containing C<\\> (backslash) in the "
41095 "shell.  Usually you will have to use 'single quotes' or double backslashes "
41096 "(but not both) to protect them from the shell."
41097 msgstr ""
41098
41099 #. type: textblock
41100 #: ../tools/virt-win-reg.pl:739
41101 msgid "Paths and value names are case-insensitive."
41102 msgstr ""
41103
41104 #. type: textblock
41105 #: ../tools/virt-win-reg.pl:748
41106 msgid ""
41107 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
41108 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
41109 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41110 msgstr ""
41111
41112 #. type: verbatim
41113 #: ../tools/virt-win-reg.pl:766
41114 #, no-wrap
41115 msgid ""
41116 " export LIBGUESTFS_DEBUG=1\n"
41117 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
41118 "\n"
41119 msgstr ""
41120
41121 #. type: textblock
41122 #: ../tools/virt-win-reg.pl:769
41123 msgid ""
41124 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
41125 "redhat.com/>"
41126 msgstr ""
41127
41128 #~ msgid "I<--help>"
41129 #~ msgstr "I<--help>"
41130
41131 #~ msgid "EXIT CODE"
41132 #~ msgstr "КОД ВИХОДУ"
41133
41134 #~ msgid "B<-a> | B<--all>"
41135 #~ msgstr "B<-a> | B<--all>"
41136
41137 #~ msgid "B<-x> | B<--extract> | B<--download>"
41138 #~ msgstr "B<-x> | B<--extract> | B<--download>"