Version 1.13.13.
[libguestfs.git] / po-docs / uk.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # Yuri Chornoivan <yurchor@ukr.net>, 2011.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-09-21 15:11+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:2765
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:178
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:180
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:182
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:184
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:186
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:188
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:199
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:201
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:205
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:211
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:215
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:219
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:262
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:264
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:284
740 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
741 #: ../src/guestfs.pod:3141 ../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:292 ../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:294
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:296
794 #: ../resize/virt-resize.pod:638 ../ruby/examples/guestfs-ruby.pod:52
795 #: ../src/guestfs.pod:3218 ../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:300
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:305
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:310
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:4214
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:298
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:1104 ../fish/guestfish-actions.pod:1108
2672 #: ../fish/guestfish-actions.pod:1112 ../fish/guestfish-actions.pod:1116
2673 #: ../fish/guestfish-actions.pod:1124 ../fish/guestfish-actions.pod:1128
2674 #: ../fish/guestfish-actions.pod:1132 ../fish/guestfish-actions.pod:1142
2675 #: ../fish/guestfish-actions.pod:1146 ../fish/guestfish-actions.pod:1150
2676 #: ../fish/guestfish-actions.pod:1240 ../fish/guestfish-actions.pod:1244
2677 #: ../fish/guestfish-actions.pod:1249 ../fish/guestfish-actions.pod:1254
2678 #: ../fish/guestfish-actions.pod:1296 ../fish/guestfish-actions.pod:1300
2679 #: ../fish/guestfish-actions.pod:1305 ../fish/guestfish-actions.pod:1555
2680 #: ../fish/guestfish-actions.pod:1562 ../fish/guestfish-actions.pod:1569
2681 #: ../fish/guestfish-actions.pod:1964 ../fish/guestfish-actions.pod:1970
2682 #: ../fish/guestfish-actions.pod:1978 ../fish/guestfish-actions.pod:1985
2683 #: ../fish/guestfish-actions.pod:1992 ../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:1667
2692 #: ../src/guestfs-actions.pod:1671 ../src/guestfs-actions.pod:1675
2693 #: ../src/guestfs-actions.pod:1679 ../src/guestfs-actions.pod:1687
2694 #: ../src/guestfs-actions.pod:1691 ../src/guestfs-actions.pod:1695
2695 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1709
2696 #: ../src/guestfs-actions.pod:1713 ../src/guestfs-actions.pod:1851
2697 #: ../src/guestfs-actions.pod:1855 ../src/guestfs-actions.pod:1860
2698 #: ../src/guestfs-actions.pod:1865 ../src/guestfs-actions.pod:1926
2699 #: ../src/guestfs-actions.pod:1930 ../src/guestfs-actions.pod:1935
2700 #: ../src/guestfs-actions.pod:2339 ../src/guestfs-actions.pod:2346
2701 #: ../src/guestfs-actions.pod:2353 ../src/guestfs-actions.pod:2890
2702 #: ../src/guestfs-actions.pod:2896 ../src/guestfs-actions.pod:2904
2703 #: ../src/guestfs-actions.pod:2911 ../src/guestfs-actions.pod:2918
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:1068
2707 #: ../src/guestfs.pod:1072 ../src/guestfs.pod:1076 ../src/guestfs.pod:1081
2708 #: ../src/guestfs.pod:1089 ../src/guestfs.pod:1108 ../src/guestfs.pod:1116
2709 #: ../src/guestfs.pod:1138 ../src/guestfs.pod:1142 ../src/guestfs.pod:1146
2710 #: ../src/guestfs.pod:1150 ../src/guestfs.pod:1154 ../src/guestfs.pod:1158
2711 #: ../src/guestfs.pod:1648 ../src/guestfs.pod:1653 ../src/guestfs.pod:1657
2712 #: ../src/guestfs.pod:1759 ../src/guestfs.pod:1764 ../src/guestfs.pod:1768
2713 #: ../src/guestfs.pod:1778 ../src/guestfs.pod:2067 ../src/guestfs.pod:2072
2714 #: ../src/guestfs.pod:2078 ../src/guestfs.pod:2086 ../src/guestfs.pod:2533
2715 #: ../src/guestfs.pod:2539 ../src/guestfs.pod:2544 ../src/guestfs.pod:2550
2716 #: ../src/guestfs.pod:2933 ../src/guestfs.pod:2938 ../src/guestfs.pod:2942
2717 #: ../src/guestfs.pod:2946 ../src/guestfs.pod:2950 ../src/guestfs.pod:2964
2718 #: ../src/guestfs.pod:2969 ../src/guestfs.pod:3195 ../src/guestfs.pod:3199
2719 #: ../src/guestfs.pod:3203 ../src/guestfs.pod:3207
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:257 ../src/guestfs.pod:3080
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:3214
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:3216
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:3223
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:3228
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:3233
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:1292 ../fish/guestfish-actions.pod:1551
4130 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:18
4131 #: ../src/guestfs-actions.pod:1922 ../src/guestfs-actions.pod:2335
4132 #: ../src/guestfs-actions.pod:2886 ../src/guestfs.pod:1644
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:991
4789 #: ../fish/guestfish-actions.pod:1351 ../fish/guestfish-actions.pod:1365
4790 #: ../fish/guestfish-actions.pod:3116 ../fish/guestfish-actions.pod:3323
4791 #: ../fish/guestfish-actions.pod:3437 ../fish/guestfish-actions.pod:3485
4792 #: ../fish/guestfish-actions.pod:4386 ../fish/guestfish-actions.pod:4409
4793 #: ../fish/guestfish-actions.pod:4431 ../fish/guestfish-actions.pod:4469
4794 #: ../fish/guestfish-actions.pod:5118 ../fish/guestfish-actions.pod:5224
4795 #: ../src/guestfs-actions.pod:10 ../src/guestfs-actions.pod:252
4796 #: ../src/guestfs-actions.pod:273 ../src/guestfs-actions.pod:1508
4797 #: ../src/guestfs-actions.pod:2007 ../src/guestfs-actions.pod:2028
4798 #: ../src/guestfs-actions.pod:4649 ../src/guestfs-actions.pod:4952
4799 #: ../src/guestfs-actions.pod:5181 ../src/guestfs-actions.pod:5281
4800 #: ../src/guestfs-actions.pod:6547 ../src/guestfs-actions.pod:6591
4801 #: ../src/guestfs-actions.pod:6625 ../src/guestfs-actions.pod:6688
4802 #: ../src/guestfs-actions.pod:7620 ../src/guestfs-actions.pod:7729
4803 #: ../src/guestfs-actions.pod:7912
4804 msgid ""
4805 "Deprecated functions will not be removed from the API, but the fact that "
4806 "they are deprecated indicates that there are problems with correct use of "
4807 "these functions."
4808 msgstr ""
4809
4810 #. type: =head2
4811 #: ../fish/guestfish-actions.pod:35
4812 msgid "add-domain"
4813 msgstr "add-domain"
4814
4815 #. type: =head2
4816 #: ../fish/guestfish-actions.pod:37
4817 msgid "domain"
4818 msgstr ""
4819
4820 #. type: verbatim
4821 #: ../fish/guestfish-actions.pod:39
4822 #, no-wrap
4823 msgid ""
4824 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
4825 "\n"
4826 msgstr ""
4827
4828 #. type: textblock
4829 #: ../fish/guestfish-actions.pod:41
4830 msgid ""
4831 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
4832 "It works by connecting to libvirt, requesting the domain and domain XML from "
4833 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
4834 msgstr ""
4835
4836 #. type: textblock
4837 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
4838 msgid ""
4839 "The number of disks added is returned.  This operation is atomic: if an "
4840 "error is returned, then no disks are added."
4841 msgstr ""
4842
4843 #. type: textblock
4844 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
4845 msgid ""
4846 "This function does some minimal checks to make sure the libvirt domain is "
4847 "not running (unless C<readonly> is true).  In a future version we will try "
4848 "to acquire the libvirt lock on each disk."
4849 msgstr ""
4850
4851 #. type: textblock
4852 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
4853 msgid ""
4854 "Disks must be accessible locally.  This often means that adding disks from a "
4855 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
4856 "unless those disks are accessible via the same device path locally too."
4857 msgstr ""
4858
4859 #. type: textblock
4860 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
4861 msgid ""
4862 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
4863 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
4864 "libvirt URI (or one set through an environment variable, see the libvirt "
4865 "documentation for full details)."
4866 msgstr ""
4867
4868 #. type: textblock
4869 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
4870 msgid ""
4871 "The optional C<live> flag controls whether this call will try to connect to "
4872 "a running virtual machine C<guestfsd> process if it sees a suitable "
4873 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
4874 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
4875 "DAEMONS> for more information."
4876 msgstr ""
4877
4878 #. type: textblock
4879 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
4880 msgid ""
4881 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
4882 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
4883 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
4884 "as usual."
4885 msgstr ""
4886
4887 #. type: textblock
4888 #: ../fish/guestfish-actions.pod:76
4889 msgid ""
4890 "The other optional parameters are passed directly through to L</add-drive-"
4891 "opts>."
4892 msgstr ""
4893
4894 #. type: textblock
4895 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
4896 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:1999
4897 #: ../fish/guestfish-actions.pod:3165 ../fish/guestfish-actions.pod:3338
4898 #: ../fish/guestfish-actions.pod:3473
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:3127
4978 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4686
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:867
5666 #: ../fish/guestfish-actions.pod:886 ../fish/guestfish-actions.pod:1260
5667 #: ../fish/guestfish-actions.pod:4689 ../fish/guestfish-actions.pod:4701
5668 #: ../fish/guestfish-actions.pod:4712 ../fish/guestfish-actions.pod:4723
5669 #: ../fish/guestfish-actions.pod:4775 ../fish/guestfish-actions.pod:4784
5670 #: ../fish/guestfish-actions.pod:4838 ../fish/guestfish-actions.pod:4861
5671 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
5672 msgstr ""
5673
5674 #. type: =head2
5675 #: ../fish/guestfish-actions.pod:442
5676 msgid "base64-out"
5677 msgstr ""
5678
5679 #. type: verbatim
5680 #: ../fish/guestfish-actions.pod:444
5681 #, no-wrap
5682 msgid ""
5683 " base64-out filename (base64file|-)\n"
5684 "\n"
5685 msgstr ""
5686
5687 #. type: textblock
5688 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
5689 msgid ""
5690 "This command downloads the contents of C<filename>, writing it out to local "
5691 "file C<base64file> encoded as base64."
5692 msgstr ""
5693
5694 #. type: =head2
5695 #: ../fish/guestfish-actions.pod:451
5696 msgid "blockdev-flushbufs"
5697 msgstr ""
5698
5699 #. type: verbatim
5700 #: ../fish/guestfish-actions.pod:453
5701 #, no-wrap
5702 msgid ""
5703 " blockdev-flushbufs device\n"
5704 "\n"
5705 msgstr ""
5706
5707 #. type: textblock
5708 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
5709 msgid ""
5710 "This tells the kernel to flush internal buffers associated with C<device>."
5711 msgstr ""
5712
5713 #. type: textblock
5714 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
5715 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
5716 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
5717 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
5718 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
5719 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
5720 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
5721 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
5722 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
5723 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
5724 msgid "This uses the L<blockdev(8)> command."
5725 msgstr ""
5726
5727 #. type: =head2
5728 #: ../fish/guestfish-actions.pod:460
5729 msgid "blockdev-getbsz"
5730 msgstr ""
5731
5732 #. type: verbatim
5733 #: ../fish/guestfish-actions.pod:462
5734 #, no-wrap
5735 msgid ""
5736 " blockdev-getbsz device\n"
5737 "\n"
5738 msgstr ""
5739
5740 #. type: textblock
5741 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
5742 msgid "This returns the block size of a device."
5743 msgstr ""
5744
5745 #. type: textblock
5746 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
5747 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
5748 msgid ""
5749 "(Note this is different from both I<size in blocks> and I<filesystem block "
5750 "size>)."
5751 msgstr ""
5752
5753 #. type: =head2
5754 #: ../fish/guestfish-actions.pod:471
5755 msgid "blockdev-getro"
5756 msgstr ""
5757
5758 #. type: verbatim
5759 #: ../fish/guestfish-actions.pod:473
5760 #, no-wrap
5761 msgid ""
5762 " blockdev-getro device\n"
5763 "\n"
5764 msgstr ""
5765
5766 #. type: textblock
5767 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
5768 msgid ""
5769 "Returns a boolean indicating if the block device is read-only (true if read-"
5770 "only, false if not)."
5771 msgstr ""
5772
5773 #. type: =head2
5774 #: ../fish/guestfish-actions.pod:480
5775 msgid "blockdev-getsize64"
5776 msgstr ""
5777
5778 #. type: verbatim
5779 #: ../fish/guestfish-actions.pod:482
5780 #, no-wrap
5781 msgid ""
5782 " blockdev-getsize64 device\n"
5783 "\n"
5784 msgstr ""
5785
5786 #. type: textblock
5787 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
5788 msgid "This returns the size of the device in bytes."
5789 msgstr ""
5790
5791 #. type: textblock
5792 #: ../fish/guestfish-actions.pod:486
5793 msgid "See also L</blockdev-getsz>."
5794 msgstr ""
5795
5796 #. type: =head2
5797 #: ../fish/guestfish-actions.pod:490
5798 msgid "blockdev-getss"
5799 msgstr ""
5800
5801 #. type: verbatim
5802 #: ../fish/guestfish-actions.pod:492
5803 #, no-wrap
5804 msgid ""
5805 " blockdev-getss device\n"
5806 "\n"
5807 msgstr ""
5808
5809 #. type: textblock
5810 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
5811 msgid ""
5812 "This returns the size of sectors on a block device.  Usually 512, but can be "
5813 "larger for modern devices."
5814 msgstr ""
5815
5816 #. type: textblock
5817 #: ../fish/guestfish-actions.pod:497
5818 msgid ""
5819 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
5820 msgstr ""
5821
5822 #. type: =head2
5823 #: ../fish/guestfish-actions.pod:502
5824 msgid "blockdev-getsz"
5825 msgstr ""
5826
5827 #. type: verbatim
5828 #: ../fish/guestfish-actions.pod:504
5829 #, no-wrap
5830 msgid ""
5831 " blockdev-getsz device\n"
5832 "\n"
5833 msgstr ""
5834
5835 #. type: textblock
5836 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
5837 msgid ""
5838 "This returns the size of the device in units of 512-byte sectors (even if "
5839 "the sectorsize isn't 512 bytes ... weird)."
5840 msgstr ""
5841
5842 #. type: textblock
5843 #: ../fish/guestfish-actions.pod:509
5844 msgid ""
5845 "See also L</blockdev-getss> for the real sector size of the device, and L</"
5846 "blockdev-getsize64> for the more useful I<size in bytes>."
5847 msgstr ""
5848
5849 #. type: =head2
5850 #: ../fish/guestfish-actions.pod:515
5851 msgid "blockdev-rereadpt"
5852 msgstr ""
5853
5854 #. type: verbatim
5855 #: ../fish/guestfish-actions.pod:517
5856 #, no-wrap
5857 msgid ""
5858 " blockdev-rereadpt device\n"
5859 "\n"
5860 msgstr ""
5861
5862 #. type: textblock
5863 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
5864 msgid "Reread the partition table on C<device>."
5865 msgstr ""
5866
5867 #. type: =head2
5868 #: ../fish/guestfish-actions.pod:523
5869 msgid "blockdev-setbsz"
5870 msgstr ""
5871
5872 #. type: verbatim
5873 #: ../fish/guestfish-actions.pod:525
5874 #, no-wrap
5875 msgid ""
5876 " blockdev-setbsz device blocksize\n"
5877 "\n"
5878 msgstr ""
5879
5880 #. type: textblock
5881 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
5882 msgid "This sets the block size of a device."
5883 msgstr ""
5884
5885 #. type: =head2
5886 #: ../fish/guestfish-actions.pod:534
5887 msgid "blockdev-setro"
5888 msgstr ""
5889
5890 #. type: verbatim
5891 #: ../fish/guestfish-actions.pod:536
5892 #, no-wrap
5893 msgid ""
5894 " blockdev-setro device\n"
5895 "\n"
5896 msgstr ""
5897
5898 #. type: textblock
5899 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
5900 msgid "Sets the block device named C<device> to read-only."
5901 msgstr ""
5902
5903 #. type: =head2
5904 #: ../fish/guestfish-actions.pod:542
5905 msgid "blockdev-setrw"
5906 msgstr ""
5907
5908 #. type: verbatim
5909 #: ../fish/guestfish-actions.pod:544
5910 #, no-wrap
5911 msgid ""
5912 " blockdev-setrw device\n"
5913 "\n"
5914 msgstr ""
5915
5916 #. type: textblock
5917 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
5918 msgid "Sets the block device named C<device> to read-write."
5919 msgstr ""
5920
5921 #. type: =head2
5922 #: ../fish/guestfish-actions.pod:550
5923 msgid "btrfs-filesystem-resize"
5924 msgstr ""
5925
5926 #. type: verbatim
5927 #: ../fish/guestfish-actions.pod:552
5928 #, no-wrap
5929 msgid ""
5930 " btrfs-filesystem-resize mountpoint [size:..]\n"
5931 "\n"
5932 msgstr ""
5933
5934 #. type: textblock
5935 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
5936 msgid "This command resizes a btrfs filesystem."
5937 msgstr ""
5938
5939 #. type: textblock
5940 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
5941 msgid ""
5942 "Note that unlike other resize calls, the filesystem has to be mounted and "
5943 "the parameter is the mountpoint not the device (this is a requirement of "
5944 "btrfs itself)."
5945 msgstr ""
5946
5947 #. type: textblock
5948 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3448
5949 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5220
5950 msgid "The optional parameters are:"
5951 msgstr ""
5952
5953 #. type: =item
5954 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3452
5955 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5224
5956 msgid "C<size>"
5957 msgstr ""
5958
5959 #. type: textblock
5960 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
5961 msgid ""
5962 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
5963 "resized to the maximum size."
5964 msgstr ""
5965
5966 #. type: textblock
5967 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
5968 msgid "See also L<btrfs(8)>."
5969 msgstr ""
5970
5971 #. type: =head2
5972 #: ../fish/guestfish-actions.pod:575
5973 msgid "case-sensitive-path"
5974 msgstr ""
5975
5976 #. type: verbatim
5977 #: ../fish/guestfish-actions.pod:577
5978 #, no-wrap
5979 msgid ""
5980 " case-sensitive-path path\n"
5981 "\n"
5982 msgstr ""
5983
5984 #. type: textblock
5985 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
5986 msgid ""
5987 "This can be used to resolve case insensitive paths on a filesystem which is "
5988 "case sensitive.  The use case is to resolve paths which you have read from "
5989 "Windows configuration files or the Windows Registry, to the true path."
5990 msgstr ""
5991
5992 #. type: textblock
5993 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
5994 msgid ""
5995 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
5996 "(and probably others), which is that although the underlying filesystem is "
5997 "case-insensitive, the driver exports the filesystem to Linux as case-"
5998 "sensitive."
5999 msgstr ""
6000
6001 #. type: textblock
6002 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
6003 msgid ""
6004 "One consequence of this is that special directories such as C<c:\\windows> "
6005 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6006 "precise details of how they were created.  In Windows itself this would not "
6007 "be a problem."
6008 msgstr ""
6009
6010 #. type: textblock
6011 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
6012 msgid ""
6013 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
6014 "#posixfilenames1>"
6015 msgstr ""
6016
6017 #. type: textblock
6018 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
6019 msgid ""
6020 "This function resolves the true case of each element in the path and returns "
6021 "the case-sensitive path."
6022 msgstr ""
6023
6024 #. type: textblock
6025 #: ../fish/guestfish-actions.pod:601
6026 msgid ""
6027 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
6028 "WINDOWS/system32\"> (the exact return value would depend on details of how "
6029 "the directories were originally created under Windows)."
6030 msgstr ""
6031
6032 #. type: textblock
6033 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
6034 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6035 msgstr ""
6036
6037 #. type: textblock
6038 #: ../fish/guestfish-actions.pod:609
6039 msgid "See also L</realpath>."
6040 msgstr ""
6041
6042 #. type: =head2
6043 #: ../fish/guestfish-actions.pod:611
6044 msgid "cat"
6045 msgstr "cat"
6046
6047 #. type: verbatim
6048 #: ../fish/guestfish-actions.pod:613
6049 #, no-wrap
6050 msgid ""
6051 " cat path\n"
6052 "\n"
6053 msgstr ""
6054 " cat шлях\n"
6055 "\n"
6056
6057 #. type: textblock
6058 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3868
6059 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5863
6060 msgid "Return the contents of the file named C<path>."
6061 msgstr ""
6062
6063 #. type: textblock
6064 #: ../fish/guestfish-actions.pod:617
6065 msgid ""
6066 "Note that this function cannot correctly handle binary files (specifically, "
6067 "files containing C<\\0> character which is treated as end of string).  For "
6068 "those you need to use the L</read-file> or L</download> functions which have "
6069 "a more complex interface."
6070 msgstr ""
6071
6072 #. type: textblock
6073 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
6074 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:945
6075 #: ../fish/guestfish-actions.pod:955 ../fish/guestfish-actions.pod:1022
6076 #: ../fish/guestfish-actions.pod:1032 ../fish/guestfish-actions.pod:1224
6077 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:1541
6078 #: ../fish/guestfish-actions.pod:1591 ../fish/guestfish-actions.pod:1606
6079 #: ../fish/guestfish-actions.pod:1616 ../fish/guestfish-actions.pod:1635
6080 #: ../fish/guestfish-actions.pod:3738 ../fish/guestfish-actions.pod:3753
6081 #: ../fish/guestfish-actions.pod:3829 ../fish/guestfish-actions.pod:3846
6082 #: ../fish/guestfish-actions.pod:3861 ../fish/guestfish-actions.pod:4530
6083 #: ../fish/guestfish-actions.pod:4576 ../fish/guestfish-actions.pod:4661
6084 #: ../fish/guestfish-actions.pod:4676 ../fish/guestfish-actions.pod:5082
6085 #: ../fish/guestfish-actions.pod:5094 ../fish/guestfish-actions.pod:5112
6086 #: ../fish/guestfish-actions.pod:5129 ../fish/guestfish-actions.pod:5139
6087 #: ../fish/guestfish-actions.pod:5196 ../fish/guestfish-actions.pod:5206
6088 #: ../fish/guestfish-actions.pod:5235 ../fish/guestfish-actions.pod:5245
6089 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
6090 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1443
6091 #: ../src/guestfs-actions.pod:1462 ../src/guestfs-actions.pod:1565
6092 #: ../src/guestfs-actions.pod:1584 ../src/guestfs-actions.pod:1830
6093 #: ../src/guestfs-actions.pod:2301 ../src/guestfs-actions.pod:2320
6094 #: ../src/guestfs-actions.pod:2385 ../src/guestfs-actions.pod:2409
6095 #: ../src/guestfs-actions.pod:2426 ../src/guestfs-actions.pod:2455
6096 #: ../src/guestfs-actions.pod:5645 ../src/guestfs-actions.pod:5671
6097 #: ../src/guestfs-actions.pod:5802 ../src/guestfs-actions.pod:5828
6098 #: ../src/guestfs-actions.pod:5852 ../src/guestfs-actions.pod:6803
6099 #: ../src/guestfs-actions.pod:6858 ../src/guestfs-actions.pod:7004
6100 #: ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7693
6101 #: ../src/guestfs-actions.pod:7713 ../src/guestfs-actions.pod:7746
6102 #: ../src/guestfs-actions.pod:7765 ../src/guestfs-actions.pod:7784
6103 #: ../src/guestfs-actions.pod:7878 ../src/guestfs-actions.pod:7897
6104 #: ../src/guestfs-actions.pod:7943 ../src/guestfs-actions.pod:7962
6105 msgid ""
6106 "Because of the message protocol, there is a transfer limit of somewhere "
6107 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
6108 msgstr ""
6109
6110 #. type: =head2
6111 #: ../fish/guestfish-actions.pod:625
6112 msgid "checksum"
6113 msgstr "checksum"
6114
6115 #. type: verbatim
6116 #: ../fish/guestfish-actions.pod:627
6117 #, no-wrap
6118 msgid ""
6119 " checksum csumtype path\n"
6120 "\n"
6121 msgstr ""
6122
6123 #. type: textblock
6124 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
6125 msgid ""
6126 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6127 msgstr ""
6128
6129 #. type: textblock
6130 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
6131 msgid ""
6132 "The type of checksum to compute is given by the C<csumtype> parameter which "
6133 "must have one of the following values:"
6134 msgstr ""
6135
6136 #. type: =item
6137 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
6138 msgid "C<crc>"
6139 msgstr "C<crc>"
6140
6141 #. type: textblock
6142 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
6143 msgid ""
6144 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6145 "C<cksum> command."
6146 msgstr ""
6147
6148 #. type: =item
6149 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
6150 msgid "C<md5>"
6151 msgstr "C<md5>"
6152
6153 #. type: textblock
6154 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
6155 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6156 msgstr ""
6157
6158 #. type: =item
6159 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
6160 msgid "C<sha1>"
6161 msgstr "C<sha1>"
6162
6163 #. type: textblock
6164 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
6165 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6166 msgstr ""
6167
6168 #. type: =item
6169 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
6170 msgid "C<sha224>"
6171 msgstr "C<sha224>"
6172
6173 #. type: textblock
6174 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
6175 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6176 msgstr ""
6177
6178 #. type: =item
6179 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
6180 msgid "C<sha256>"
6181 msgstr "C<sha256>"
6182
6183 #. type: textblock
6184 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
6185 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6186 msgstr ""
6187
6188 #. type: =item
6189 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
6190 msgid "C<sha384>"
6191 msgstr "C<sha384>"
6192
6193 #. type: textblock
6194 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
6195 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6196 msgstr ""
6197
6198 #. type: =item
6199 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
6200 msgid "C<sha512>"
6201 msgstr "C<sha512>"
6202
6203 #. type: textblock
6204 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
6205 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6206 msgstr ""
6207
6208 #. type: textblock
6209 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
6210 msgid "The checksum is returned as a printable string."
6211 msgstr ""
6212
6213 #. type: textblock
6214 #: ../fish/guestfish-actions.pod:670
6215 msgid "To get the checksum for a device, use L</checksum-device>."
6216 msgstr ""
6217
6218 #. type: textblock
6219 #: ../fish/guestfish-actions.pod:672
6220 msgid "To get the checksums for many files, use L</checksums-out>."
6221 msgstr ""
6222
6223 #. type: =head2
6224 #: ../fish/guestfish-actions.pod:674
6225 msgid "checksum-device"
6226 msgstr "checksum-device"
6227
6228 #. type: verbatim
6229 #: ../fish/guestfish-actions.pod:676
6230 #, no-wrap
6231 msgid ""
6232 " checksum-device csumtype device\n"
6233 "\n"
6234 msgstr ""
6235
6236 #. type: textblock
6237 #: ../fish/guestfish-actions.pod:678
6238 msgid ""
6239 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6240 "device named C<device>.  For the types of checksums supported see the L</"
6241 "checksum> command."
6242 msgstr ""
6243
6244 #. type: =head2
6245 #: ../fish/guestfish-actions.pod:682
6246 msgid "checksums-out"
6247 msgstr ""
6248
6249 #. type: verbatim
6250 #: ../fish/guestfish-actions.pod:684
6251 #, no-wrap
6252 msgid ""
6253 " checksums-out csumtype directory (sumsfile|-)\n"
6254 "\n"
6255 msgstr ""
6256
6257 #. type: textblock
6258 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6259 msgid ""
6260 "This command computes the checksums of all regular files in C<directory> and "
6261 "then emits a list of those checksums to the local output file C<sumsfile>."
6262 msgstr ""
6263
6264 #. type: textblock
6265 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6266 msgid ""
6267 "This can be used for verifying the integrity of a virtual machine.  However "
6268 "to be properly secure you should pay attention to the output of the checksum "
6269 "command (it uses the ones from GNU coreutils).  In particular when the "
6270 "filename is not printable, coreutils uses a special backslash syntax.  For "
6271 "more information, see the GNU coreutils info file."
6272 msgstr ""
6273
6274 #. type: =head2
6275 #: ../fish/guestfish-actions.pod:700
6276 msgid "chmod"
6277 msgstr "chmod"
6278
6279 #. type: verbatim
6280 #: ../fish/guestfish-actions.pod:702
6281 #, no-wrap
6282 msgid ""
6283 " chmod mode path\n"
6284 "\n"
6285 msgstr ""
6286
6287 #. type: textblock
6288 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6289 msgid ""
6290 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6291 "supported."
6292 msgstr ""
6293
6294 #. type: textblock
6295 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6296 msgid ""
6297 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6298 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6299 "C<700>."
6300 msgstr ""
6301
6302 #. type: textblock
6303 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3091
6304 #: ../fish/guestfish-actions.pod:3230 ../fish/guestfish-actions.pod:3240
6305 #: ../fish/guestfish-actions.pod:3250 ../src/guestfs-actions.pod:1064
6306 #: ../src/guestfs-actions.pod:4617 ../src/guestfs-actions.pod:4826
6307 #: ../src/guestfs-actions.pod:4845 ../src/guestfs-actions.pod:4864
6308 msgid "The mode actually set is affected by the umask."
6309 msgstr ""
6310
6311 #. type: =head2
6312 #: ../fish/guestfish-actions.pod:713
6313 msgid "chown"
6314 msgstr "chown"
6315
6316 #. type: verbatim
6317 #: ../fish/guestfish-actions.pod:715
6318 #, no-wrap
6319 msgid ""
6320 " chown owner group path\n"
6321 "\n"
6322 msgstr ""
6323
6324 #. type: textblock
6325 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6326 msgid "Change the file owner to C<owner> and group to C<group>."
6327 msgstr ""
6328
6329 #. type: textblock
6330 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2526
6331 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3688
6332 msgid ""
6333 "Only numeric uid and gid are supported.  If you want to use names, you will "
6334 "need to locate and parse the password file yourself (Augeas support makes "
6335 "this relatively easy)."
6336 msgstr ""
6337
6338 #. type: =head2
6339 #: ../fish/guestfish-actions.pod:723
6340 msgid "command"
6341 msgstr ""
6342
6343 #. type: verbatim
6344 #: ../fish/guestfish-actions.pod:725
6345 #, no-wrap
6346 msgid ""
6347 " command 'arguments ...'\n"
6348 "\n"
6349 msgstr ""
6350
6351 #. type: textblock
6352 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6353 msgid ""
6354 "This call runs a command from the guest filesystem.  The filesystem must be "
6355 "mounted, and must contain a compatible operating system (ie. something "
6356 "Linux, with the same or compatible processor architecture)."
6357 msgstr ""
6358
6359 #. type: textblock
6360 #: ../fish/guestfish-actions.pod:732
6361 msgid ""
6362 "The single parameter is an argv-style list of arguments.  The first element "
6363 "is the name of the program to run.  Subsequent elements are parameters.  The "
6364 "list must be non-empty (ie. must contain a program name).  Note that the "
6365 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6366 msgstr ""
6367
6368 #. type: textblock
6369 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6370 msgid "The return value is anything printed to I<stdout> by the command."
6371 msgstr ""
6372
6373 #. type: textblock
6374 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6375 msgid ""
6376 "If the command returns a non-zero exit status, then this function returns an "
6377 "error message.  The error message string is the content of I<stderr> from "
6378 "the command."
6379 msgstr ""
6380
6381 #. type: textblock
6382 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6383 msgid ""
6384 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6385 "bin>.  If you require a program from another location, you should provide "
6386 "the full path in the first parameter."
6387 msgstr ""
6388
6389 #. type: textblock
6390 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6391 msgid ""
6392 "Shared libraries and data files required by the program must be available on "
6393 "filesystems which are mounted in the correct places.  It is the caller's "
6394 "responsibility to ensure all filesystems that are needed are mounted at the "
6395 "right locations."
6396 msgstr ""
6397
6398 #. type: =head2
6399 #: ../fish/guestfish-actions.pod:760
6400 msgid "command-lines"
6401 msgstr ""
6402
6403 #. type: verbatim
6404 #: ../fish/guestfish-actions.pod:762
6405 #, no-wrap
6406 msgid ""
6407 " command-lines 'arguments ...'\n"
6408 "\n"
6409 msgstr ""
6410
6411 #. type: textblock
6412 #: ../fish/guestfish-actions.pod:764
6413 msgid ""
6414 "This is the same as L</command>, but splits the result into a list of lines."
6415 msgstr ""
6416
6417 #. type: textblock
6418 #: ../fish/guestfish-actions.pod:767
6419 msgid "See also: L</sh-lines>"
6420 msgstr ""
6421
6422 #. type: =head2
6423 #: ../fish/guestfish-actions.pod:772
6424 msgid "config"
6425 msgstr ""
6426
6427 #. type: verbatim
6428 #: ../fish/guestfish-actions.pod:774
6429 #, no-wrap
6430 msgid ""
6431 " config qemuparam qemuvalue\n"
6432 "\n"
6433 msgstr ""
6434
6435 #. type: textblock
6436 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1159
6437 msgid ""
6438 "This can be used to add arbitrary qemu command line parameters of the form "
6439 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6440 "setting some parameters which would interfere with parameters that we use."
6441 msgstr ""
6442
6443 #. type: textblock
6444 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1164
6445 msgid "The first character of C<param> string must be a C<-> (dash)."
6446 msgstr ""
6447
6448 #. type: textblock
6449 #: ../fish/guestfish-actions.pod:783 ../src/guestfs-actions.pod:1166
6450 msgid "C<value> can be NULL."
6451 msgstr ""
6452
6453 #. type: =head2
6454 #: ../fish/guestfish-actions.pod:785
6455 msgid "copy-size"
6456 msgstr ""
6457
6458 #. type: verbatim
6459 #: ../fish/guestfish-actions.pod:787
6460 #, no-wrap
6461 msgid ""
6462 " copy-size src dest size\n"
6463 "\n"
6464 msgstr ""
6465
6466 #. type: textblock
6467 #: ../fish/guestfish-actions.pod:789 ../src/guestfs-actions.pod:1180
6468 msgid ""
6469 "This command copies exactly C<size> bytes from one source device or file "
6470 "C<src> to another destination device or file C<dest>."
6471 msgstr ""
6472
6473 #. type: textblock
6474 #: ../fish/guestfish-actions.pod:792 ../src/guestfs-actions.pod:1183
6475 msgid ""
6476 "Note this will fail if the source is too short or if the destination is not "
6477 "large enough."
6478 msgstr ""
6479
6480 #. type: =head2
6481 #: ../fish/guestfish-actions.pod:795
6482 msgid "cp"
6483 msgstr "cp"
6484
6485 #. type: verbatim
6486 #: ../fish/guestfish-actions.pod:797
6487 #, no-wrap
6488 msgid ""
6489 " cp src dest\n"
6490 "\n"
6491 msgstr ""
6492
6493 #. type: textblock
6494 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1202
6495 msgid ""
6496 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6497 "destination filename or destination directory."
6498 msgstr ""
6499
6500 #. type: =head2
6501 #: ../fish/guestfish-actions.pod:802
6502 msgid "cp-a"
6503 msgstr "cp-a"
6504
6505 #. type: verbatim
6506 #: ../fish/guestfish-actions.pod:804
6507 #, no-wrap
6508 msgid ""
6509 " cp-a src dest\n"
6510 "\n"
6511 msgstr ""
6512
6513 #. type: textblock
6514 #: ../fish/guestfish-actions.pod:806 ../src/guestfs-actions.pod:1216
6515 msgid ""
6516 "This copies a file or directory from C<src> to C<dest> recursively using the "
6517 "C<cp -a> command."
6518 msgstr ""
6519
6520 #. type: =head2
6521 #: ../fish/guestfish-actions.pod:809
6522 msgid "dd"
6523 msgstr "dd"
6524
6525 #. type: verbatim
6526 #: ../fish/guestfish-actions.pod:811
6527 #, no-wrap
6528 msgid ""
6529 " dd src dest\n"
6530 "\n"
6531 msgstr ""
6532
6533 #. type: textblock
6534 #: ../fish/guestfish-actions.pod:813 ../src/guestfs-actions.pod:1230
6535 msgid ""
6536 "This command copies from one source device or file C<src> to another "
6537 "destination device or file C<dest>.  Normally you would use this to copy to "
6538 "or from a device or partition, for example to duplicate a filesystem."
6539 msgstr ""
6540
6541 #. type: textblock
6542 #: ../fish/guestfish-actions.pod:818
6543 msgid ""
6544 "If the destination is a device, it must be as large or larger than the "
6545 "source file or device, otherwise the copy will fail.  This command cannot do "
6546 "partial copies (see L</copy-size>)."
6547 msgstr ""
6548
6549 #. type: =head2
6550 #: ../fish/guestfish-actions.pod:822
6551 msgid "df"
6552 msgstr "df"
6553
6554 #. type: verbatim
6555 #: ../fish/guestfish-actions.pod:824
6556 #, no-wrap
6557 msgid ""
6558 " df\n"
6559 "\n"
6560 msgstr ""
6561 " df\n"
6562 "\n"
6563
6564 #. type: textblock
6565 #: ../fish/guestfish-actions.pod:826 ../src/guestfs-actions.pod:1248
6566 msgid "This command runs the C<df> command to report disk space used."
6567 msgstr ""
6568
6569 #. type: textblock
6570 #: ../fish/guestfish-actions.pod:828 ../fish/guestfish-actions.pod:839
6571 msgid ""
6572 "This command is mostly useful for interactive sessions.  It is I<not> "
6573 "intended that you try to parse the output string.  Use L</statvfs> from "
6574 "programs."
6575 msgstr ""
6576
6577 #. type: =head2
6578 #: ../fish/guestfish-actions.pod:832
6579 msgid "df-h"
6580 msgstr "df-h"
6581
6582 #. type: verbatim
6583 #: ../fish/guestfish-actions.pod:834
6584 #, no-wrap
6585 msgid ""
6586 " df-h\n"
6587 "\n"
6588 msgstr ""
6589 " df-h\n"
6590 "\n"
6591
6592 #. type: textblock
6593 #: ../fish/guestfish-actions.pod:836 ../src/guestfs-actions.pod:1264
6594 msgid ""
6595 "This command runs the C<df -h> command to report disk space used in human-"
6596 "readable format."
6597 msgstr ""
6598
6599 #. type: =head2
6600 #: ../fish/guestfish-actions.pod:843
6601 msgid "dmesg"
6602 msgstr "dmesg"
6603
6604 #. type: verbatim
6605 #: ../fish/guestfish-actions.pod:845
6606 #, no-wrap
6607 msgid ""
6608 " dmesg\n"
6609 "\n"
6610 msgstr ""
6611 " dmesg\n"
6612 "\n"
6613
6614 #. type: textblock
6615 #: ../fish/guestfish-actions.pod:847 ../src/guestfs-actions.pod:1281
6616 msgid ""
6617 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
6618 "This is sometimes useful for extended debugging of problems."
6619 msgstr ""
6620
6621 #. type: textblock
6622 #: ../fish/guestfish-actions.pod:851
6623 msgid ""
6624 "Another way to get the same information is to enable verbose messages with "
6625 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
6626 "before running the program."
6627 msgstr ""
6628
6629 #. type: =head2
6630 #: ../fish/guestfish-actions.pod:856
6631 msgid "download"
6632 msgstr "download"
6633
6634 #. type: verbatim
6635 #: ../fish/guestfish-actions.pod:858
6636 #, no-wrap
6637 msgid ""
6638 " download remotefilename (filename|-)\n"
6639 "\n"
6640 msgstr ""
6641
6642 #. type: textblock
6643 #: ../fish/guestfish-actions.pod:860 ../fish/guestfish-actions.pod:873
6644 #: ../src/guestfs-actions.pod:1302 ../src/guestfs-actions.pod:1327
6645 msgid ""
6646 "Download file C<remotefilename> and save it as C<filename> on the local "
6647 "machine."
6648 msgstr ""
6649
6650 #. type: textblock
6651 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:4834
6652 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:7263
6653 msgid "C<filename> can also be a named pipe."
6654 msgstr ""
6655
6656 #. type: textblock
6657 #: ../fish/guestfish-actions.pod:865
6658 msgid "See also L</upload>, L</cat>."
6659 msgstr ""
6660
6661 #. type: =head2
6662 #: ../fish/guestfish-actions.pod:869
6663 msgid "download-offset"
6664 msgstr "download-offset"
6665
6666 #. type: verbatim
6667 #: ../fish/guestfish-actions.pod:871
6668 #, no-wrap
6669 msgid ""
6670 " download-offset remotefilename (filename|-) offset size\n"
6671 "\n"
6672 msgstr ""
6673
6674 #. type: textblock
6675 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1330
6676 msgid ""
6677 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
6678 "region must be within the file or device)."
6679 msgstr ""
6680
6681 #. type: textblock
6682 #: ../fish/guestfish-actions.pod:879
6683 msgid ""
6684 "Note that there is no limit on the amount of data that can be downloaded "
6685 "with this call, unlike with L</pread>, and this call always reads the full "
6686 "amount unless an error occurs."
6687 msgstr ""
6688
6689 #. type: textblock
6690 #: ../fish/guestfish-actions.pod:884
6691 msgid "See also L</download>, L</pread>."
6692 msgstr ""
6693
6694 #. type: =head2
6695 #: ../fish/guestfish-actions.pod:888
6696 msgid "drop-caches"
6697 msgstr ""
6698
6699 #. type: verbatim
6700 #: ../fish/guestfish-actions.pod:890
6701 #, no-wrap
6702 msgid ""
6703 " drop-caches whattodrop\n"
6704 "\n"
6705 msgstr ""
6706
6707 #. type: textblock
6708 #: ../fish/guestfish-actions.pod:892 ../src/guestfs-actions.pod:1355
6709 msgid ""
6710 "This instructs the guest kernel to drop its page cache, and/or dentries and "
6711 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
6712 "to drop, see L<http://linux-mm.org/Drop_Caches>"
6713 msgstr ""
6714
6715 #. type: textblock
6716 #: ../fish/guestfish-actions.pod:897 ../src/guestfs-actions.pod:1360
6717 msgid "Setting C<whattodrop> to 3 should drop everything."
6718 msgstr ""
6719
6720 #. type: textblock
6721 #: ../fish/guestfish-actions.pod:899 ../src/guestfs-actions.pod:1362
6722 msgid ""
6723 "This automatically calls L<sync(2)> before the operation, so that the "
6724 "maximum guest memory is freed."
6725 msgstr ""
6726
6727 #. type: =head2
6728 #: ../fish/guestfish-actions.pod:902
6729 msgid "du"
6730 msgstr "du"
6731
6732 #. type: verbatim
6733 #: ../fish/guestfish-actions.pod:904
6734 #, no-wrap
6735 msgid ""
6736 " du path\n"
6737 "\n"
6738 msgstr ""
6739 " du шлях\n"
6740 "\n"
6741
6742 #. type: textblock
6743 #: ../fish/guestfish-actions.pod:906 ../src/guestfs-actions.pod:1375
6744 msgid ""
6745 "This command runs the C<du -s> command to estimate file space usage for "
6746 "C<path>."
6747 msgstr ""
6748
6749 #. type: textblock
6750 #: ../fish/guestfish-actions.pod:909 ../src/guestfs-actions.pod:1378
6751 msgid ""
6752 "C<path> can be a file or a directory.  If C<path> is a directory then the "
6753 "estimate includes the contents of the directory and all subdirectories "
6754 "(recursively)."
6755 msgstr ""
6756
6757 #. type: textblock
6758 #: ../fish/guestfish-actions.pod:913 ../src/guestfs-actions.pod:1382
6759 msgid ""
6760 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
6761 msgstr ""
6762
6763 #. type: =head2
6764 #: ../fish/guestfish-actions.pod:916
6765 msgid "e2fsck-f"
6766 msgstr "e2fsck-f"
6767
6768 #. type: verbatim
6769 #: ../fish/guestfish-actions.pod:918
6770 #, no-wrap
6771 msgid ""
6772 " e2fsck-f device\n"
6773 "\n"
6774 msgstr ""
6775
6776 #. type: textblock
6777 #: ../fish/guestfish-actions.pod:920 ../src/guestfs-actions.pod:1400
6778 msgid ""
6779 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
6780 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
6781 "clean (I<-f>)."
6782 msgstr ""
6783
6784 #. type: textblock
6785 #: ../fish/guestfish-actions.pod:924
6786 msgid ""
6787 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
6788 "should use L</fsck>."
6789 msgstr ""
6790
6791 #. type: =head2
6792 #: ../fish/guestfish-actions.pod:927
6793 msgid "echo-daemon"
6794 msgstr ""
6795
6796 #. type: verbatim
6797 #: ../fish/guestfish-actions.pod:929
6798 #, no-wrap
6799 msgid ""
6800 " echo-daemon 'words ...'\n"
6801 "\n"
6802 msgstr ""
6803
6804 #. type: textblock
6805 #: ../fish/guestfish-actions.pod:931 ../src/guestfs-actions.pod:1417
6806 msgid ""
6807 "This command concatenates the list of C<words> passed with single spaces "
6808 "between them and returns the resulting string."
6809 msgstr ""
6810
6811 #. type: textblock
6812 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1420
6813 msgid "You can use this command to test the connection through to the daemon."
6814 msgstr ""
6815
6816 #. type: textblock
6817 #: ../fish/guestfish-actions.pod:936
6818 msgid "See also L</ping-daemon>."
6819 msgstr ""
6820
6821 #. type: =head2
6822 #: ../fish/guestfish-actions.pod:938
6823 msgid "egrep"
6824 msgstr "egrep"
6825
6826 #. type: verbatim
6827 #: ../fish/guestfish-actions.pod:940
6828 #, no-wrap
6829 msgid ""
6830 " egrep regex path\n"
6831 "\n"
6832 msgstr ""
6833
6834 #. type: textblock
6835 #: ../fish/guestfish-actions.pod:942 ../src/guestfs-actions.pod:1436
6836 msgid ""
6837 "This calls the external C<egrep> program and returns the matching lines."
6838 msgstr ""
6839
6840 #. type: =head2
6841 #: ../fish/guestfish-actions.pod:948
6842 msgid "egrepi"
6843 msgstr "egrepi"
6844
6845 #. type: verbatim
6846 #: ../fish/guestfish-actions.pod:950
6847 #, no-wrap
6848 msgid ""
6849 " egrepi regex path\n"
6850 "\n"
6851 msgstr ""
6852
6853 #. type: textblock
6854 #: ../fish/guestfish-actions.pod:952 ../src/guestfs-actions.pod:1455
6855 msgid ""
6856 "This calls the external C<egrep -i> program and returns the matching lines."
6857 msgstr ""
6858
6859 #. type: =head2
6860 #: ../fish/guestfish-actions.pod:958
6861 msgid "equal"
6862 msgstr "equal"
6863
6864 #. type: verbatim
6865 #: ../fish/guestfish-actions.pod:960
6866 #, no-wrap
6867 msgid ""
6868 " equal file1 file2\n"
6869 "\n"
6870 msgstr ""
6871 " equal файл1 файл2\n"
6872 "\n"
6873
6874 #. type: textblock
6875 #: ../fish/guestfish-actions.pod:962 ../src/guestfs-actions.pod:1474
6876 msgid ""
6877 "This compares the two files C<file1> and C<file2> and returns true if their "
6878 "content is exactly equal, or false otherwise."
6879 msgstr ""
6880
6881 #. type: textblock
6882 #: ../fish/guestfish-actions.pod:965 ../src/guestfs-actions.pod:1477
6883 msgid "The external L<cmp(1)> program is used for the comparison."
6884 msgstr ""
6885
6886 #. type: =head2
6887 #: ../fish/guestfish-actions.pod:967
6888 msgid "exists"
6889 msgstr "exists"
6890
6891 #. type: verbatim
6892 #: ../fish/guestfish-actions.pod:969
6893 #, no-wrap
6894 msgid ""
6895 " exists path\n"
6896 "\n"
6897 msgstr ""
6898 " exists шлях\n"
6899 "\n"
6900
6901 #. type: textblock
6902 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1489
6903 msgid ""
6904 "This returns C<true> if and only if there is a file, directory (or anything) "
6905 "with the given C<path> name."
6906 msgstr ""
6907
6908 #. type: textblock
6909 #: ../fish/guestfish-actions.pod:974
6910 msgid "See also L</is-file>, L</is-dir>, L</stat>."
6911 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
6912
6913 #. type: =head2
6914 #: ../fish/guestfish-actions.pod:976
6915 msgid "fallocate"
6916 msgstr "fallocate"
6917
6918 #. type: verbatim
6919 #: ../fish/guestfish-actions.pod:978
6920 #, no-wrap
6921 msgid ""
6922 " fallocate path len\n"
6923 "\n"
6924 msgstr ""
6925 " fallocate шлях довжина\n"
6926 "\n"
6927
6928 #. type: textblock
6929 #: ../fish/guestfish-actions.pod:980 ../fish/guestfish-actions.pod:999
6930 #: ../src/guestfs-actions.pod:1512 ../src/guestfs-actions.pod:1531
6931 msgid ""
6932 "This command preallocates a file (containing zero bytes) named C<path> of "
6933 "size C<len> bytes.  If the file exists already, it is overwritten."
6934 msgstr ""
6935
6936 #. type: textblock
6937 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1516
6938 msgid ""
6939 "Do not confuse this with the guestfish-specific C<alloc> command which "
6940 "allocates a file in the host and attaches it as a device."
6941 msgstr ""
6942
6943 #. type: textblock
6944 #: ../fish/guestfish-actions.pod:988
6945 msgid ""
6946 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
6947 "instead."
6948 msgstr ""
6949
6950 #. type: =head2
6951 #: ../fish/guestfish-actions.pod:995
6952 msgid "fallocate64"
6953 msgstr "fallocate64"
6954
6955 #. type: verbatim
6956 #: ../fish/guestfish-actions.pod:997
6957 #, no-wrap
6958 msgid ""
6959 " fallocate64 path len\n"
6960 "\n"
6961 msgstr ""
6962 " fallocate64 шлях довжина\n"
6963 "\n"
6964
6965 #. type: textblock
6966 #: ../fish/guestfish-actions.pod:1003
6967 msgid ""
6968 "Note that this call allocates disk blocks for the file.  To create a sparse "
6969 "file use L</truncate-size> instead."
6970 msgstr ""
6971
6972 #. type: textblock
6973 #: ../fish/guestfish-actions.pod:1006
6974 msgid ""
6975 "The deprecated call L</fallocate> does the same, but owing to an oversight "
6976 "it only allowed 30 bit lengths to be specified, effectively limiting the "
6977 "maximum size of files created through that call to 1GB."
6978 msgstr ""
6979
6980 #. type: textblock
6981 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1543
6982 msgid ""
6983 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
6984 "commands which create a file in the host and attach it as a device."
6985 msgstr ""
6986
6987 #. type: =head2
6988 #: ../fish/guestfish-actions.pod:1015
6989 msgid "fgrep"
6990 msgstr "fgrep"
6991
6992 #. type: verbatim
6993 #: ../fish/guestfish-actions.pod:1017
6994 #, no-wrap
6995 msgid ""
6996 " fgrep pattern path\n"
6997 "\n"
6998 msgstr ""
6999 " fgrep шаблон шлях\n"
7000 "\n"
7001
7002 #. type: textblock
7003 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1558
7004 msgid ""
7005 "This calls the external C<fgrep> program and returns the matching lines."
7006 msgstr ""
7007
7008 #. type: =head2
7009 #: ../fish/guestfish-actions.pod:1025
7010 msgid "fgrepi"
7011 msgstr "fgrepi"
7012
7013 #. type: verbatim
7014 #: ../fish/guestfish-actions.pod:1027
7015 #, no-wrap
7016 msgid ""
7017 " fgrepi pattern path\n"
7018 "\n"
7019 msgstr ""
7020 " fgrepi шаблон шлях\n"
7021 "\n"
7022
7023 #. type: textblock
7024 #: ../fish/guestfish-actions.pod:1029 ../src/guestfs-actions.pod:1577
7025 msgid ""
7026 "This calls the external C<fgrep -i> program and returns the matching lines."
7027 msgstr ""
7028
7029 #. type: =head2
7030 #: ../fish/guestfish-actions.pod:1035
7031 msgid "file"
7032 msgstr "file"
7033
7034 #. type: verbatim
7035 #: ../fish/guestfish-actions.pod:1037
7036 #, no-wrap
7037 msgid ""
7038 " file path\n"
7039 "\n"
7040 msgstr ""
7041 " file шлях\n"
7042 "\n"
7043
7044 #. type: textblock
7045 #: ../fish/guestfish-actions.pod:1039 ../src/guestfs-actions.pod:1595
7046 msgid ""
7047 "This call uses the standard L<file(1)> command to determine the type or "
7048 "contents of the file."
7049 msgstr ""
7050
7051 #. type: textblock
7052 #: ../fish/guestfish-actions.pod:1042 ../src/guestfs-actions.pod:1598
7053 msgid ""
7054 "This call will also transparently look inside various types of compressed "
7055 "file."
7056 msgstr ""
7057
7058 #. type: textblock
7059 #: ../fish/guestfish-actions.pod:1045 ../src/guestfs-actions.pod:1601
7060 msgid ""
7061 "The exact command which runs is C<file -zb path>.  Note in particular that "
7062 "the filename is not prepended to the output (the I<-b> option)."
7063 msgstr ""
7064
7065 #. type: textblock
7066 #: ../fish/guestfish-actions.pod:1049 ../src/guestfs-actions.pod:1605
7067 msgid ""
7068 "The output depends on the output of the underlying L<file(1)> command and it "
7069 "can change in future in ways beyond our control.  In other words, the output "
7070 "is not guaranteed by the ABI."
7071 msgstr ""
7072
7073 #. type: textblock
7074 #: ../fish/guestfish-actions.pod:1053
7075 msgid ""
7076 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7077 "(etc), L</is-zero>."
7078 msgstr ""
7079
7080 #. type: =head2
7081 #: ../fish/guestfish-actions.pod:1056
7082 msgid "file-architecture"
7083 msgstr "file-architecture"
7084
7085 #. type: verbatim
7086 #: ../fish/guestfish-actions.pod:1058
7087 #, no-wrap
7088 msgid ""
7089 " file-architecture filename\n"
7090 "\n"
7091 msgstr ""
7092 " file-architecture назва_файла\n"
7093 "\n"
7094
7095 #. type: textblock
7096 #: ../fish/guestfish-actions.pod:1060 ../src/guestfs-actions.pod:1623
7097 msgid ""
7098 "This detects the architecture of the binary C<filename>, and returns it if "
7099 "known."
7100 msgstr ""
7101
7102 #. type: textblock
7103 #: ../fish/guestfish-actions.pod:1063 ../src/guestfs-actions.pod:1626
7104 msgid "Currently defined architectures are:"
7105 msgstr ""
7106
7107 #. type: =item
7108 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1630
7109 msgid "\"i386\""
7110 msgstr "\"i386\""
7111
7112 #. type: textblock
7113 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1632
7114 msgid ""
7115 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7116 "irrespective of the precise processor requirements of the binary."
7117 msgstr ""
7118
7119 #. type: =item
7120 #: ../fish/guestfish-actions.pod:1072 ../src/guestfs-actions.pod:1635
7121 msgid "\"x86_64\""
7122 msgstr "\"x86_64\""
7123
7124 #. type: textblock
7125 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1637
7126 msgid "64 bit x86-64."
7127 msgstr ""
7128
7129 #. type: =item
7130 #: ../fish/guestfish-actions.pod:1076 ../src/guestfs-actions.pod:1639
7131 msgid "\"sparc\""
7132 msgstr ""
7133
7134 #. type: textblock
7135 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1641
7136 msgid "32 bit SPARC."
7137 msgstr ""
7138
7139 #. type: =item
7140 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1643
7141 msgid "\"sparc64\""
7142 msgstr ""
7143
7144 #. type: textblock
7145 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1645
7146 msgid "64 bit SPARC V9 and above."
7147 msgstr ""
7148
7149 #. type: =item
7150 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1647
7151 msgid "\"ia64\""
7152 msgstr "\"ia64\""
7153
7154 #. type: textblock
7155 #: ../fish/guestfish-actions.pod:1086 ../src/guestfs-actions.pod:1649
7156 msgid "Intel Itanium."
7157 msgstr "Intel Itanium."
7158
7159 #. type: =item
7160 #: ../fish/guestfish-actions.pod:1088 ../src/guestfs-actions.pod:1651
7161 msgid "\"ppc\""
7162 msgstr ""
7163
7164 #. type: textblock
7165 #: ../fish/guestfish-actions.pod:1090 ../src/guestfs-actions.pod:1653
7166 msgid "32 bit Power PC."
7167 msgstr ""
7168
7169 #. type: =item
7170 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1655
7171 msgid "\"ppc64\""
7172 msgstr ""
7173
7174 #. type: textblock
7175 #: ../fish/guestfish-actions.pod:1094 ../src/guestfs-actions.pod:1657
7176 msgid "64 bit Power PC."
7177 msgstr ""
7178
7179 #. type: textblock
7180 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1661
7181 msgid "Libguestfs may return other architecture strings in future."
7182 msgstr ""
7183
7184 #. type: textblock
7185 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1663
7186 msgid "The function works on at least the following types of files:"
7187 msgstr ""
7188
7189 #. type: textblock
7190 #: ../fish/guestfish-actions.pod:1106 ../src/guestfs-actions.pod:1669
7191 msgid "many types of Un*x and Linux binary"
7192 msgstr ""
7193
7194 #. type: textblock
7195 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1673
7196 msgid "many types of Un*x and Linux shared library"
7197 msgstr ""
7198
7199 #. type: textblock
7200 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1677
7201 msgid "Windows Win32 and Win64 binaries"
7202 msgstr ""
7203
7204 #. type: textblock
7205 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1681
7206 msgid "Windows Win32 and Win64 DLLs"
7207 msgstr ""
7208
7209 #. type: textblock
7210 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1683
7211 msgid "Win32 binaries and DLLs return C<i386>."
7212 msgstr ""
7213
7214 #. type: textblock
7215 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1685
7216 msgid "Win64 binaries and DLLs return C<x86_64>."
7217 msgstr ""
7218
7219 #. type: textblock
7220 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1689
7221 msgid "Linux kernel modules"
7222 msgstr ""
7223
7224 #. type: textblock
7225 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1693
7226 msgid "Linux new-style initrd images"
7227 msgstr ""
7228
7229 #. type: textblock
7230 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1697
7231 msgid "some non-x86 Linux vmlinuz kernels"
7232 msgstr ""
7233
7234 #. type: textblock
7235 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1701
7236 msgid "What it can't do currently:"
7237 msgstr ""
7238
7239 #. type: textblock
7240 #: ../fish/guestfish-actions.pod:1144 ../src/guestfs-actions.pod:1707
7241 msgid "static libraries (libfoo.a)"
7242 msgstr ""
7243
7244 #. type: textblock
7245 #: ../fish/guestfish-actions.pod:1148 ../src/guestfs-actions.pod:1711
7246 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7247 msgstr ""
7248
7249 #. type: textblock
7250 #: ../fish/guestfish-actions.pod:1152 ../src/guestfs-actions.pod:1715
7251 msgid "x86 Linux vmlinuz kernels"
7252 msgstr ""
7253
7254 #. type: textblock
7255 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1717
7256 msgid ""
7257 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7258 "compressed code, and are horribly hard to unpack.  If you want to find the "
7259 "architecture of a kernel, use the architecture of the associated initrd or "
7260 "kernel module(s) instead."
7261 msgstr ""
7262
7263 #. type: =head2
7264 #: ../fish/guestfish-actions.pod:1161
7265 msgid "filesize"
7266 msgstr "filesize"
7267
7268 #. type: verbatim
7269 #: ../fish/guestfish-actions.pod:1163
7270 #, no-wrap
7271 msgid ""
7272 " filesize file\n"
7273 "\n"
7274 msgstr ""
7275 " filesize файл\n"
7276 "\n"
7277
7278 #. type: textblock
7279 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1735
7280 msgid "This command returns the size of C<file> in bytes."
7281 msgstr ""
7282
7283 #. type: textblock
7284 #: ../fish/guestfish-actions.pod:1167
7285 msgid ""
7286 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7287 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
7288 msgstr ""
7289
7290 #. type: =head2
7291 #: ../fish/guestfish-actions.pod:1171
7292 msgid "fill"
7293 msgstr "fill"
7294
7295 #. type: verbatim
7296 #: ../fish/guestfish-actions.pod:1173
7297 #, no-wrap
7298 msgid ""
7299 " fill c len path\n"
7300 "\n"
7301 msgstr ""
7302
7303 #. type: textblock
7304 #: ../fish/guestfish-actions.pod:1175 ../src/guestfs-actions.pod:1753
7305 msgid ""
7306 "This command creates a new file called C<path>.  The initial content of the "
7307 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7308 "[0..255]>."
7309 msgstr ""
7310
7311 #. type: textblock
7312 #: ../fish/guestfish-actions.pod:1179
7313 msgid ""
7314 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7315 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7316 "L</fill-pattern>."
7317 msgstr ""
7318
7319 #. type: =head2
7320 #: ../fish/guestfish-actions.pod:1184
7321 msgid "fill-pattern"
7322 msgstr "fill-pattern"
7323
7324 #. type: verbatim
7325 #: ../fish/guestfish-actions.pod:1186
7326 #, no-wrap
7327 msgid ""
7328 " fill-pattern pattern len path\n"
7329 "\n"
7330 msgstr ""
7331
7332 #. type: textblock
7333 #: ../fish/guestfish-actions.pod:1188
7334 msgid ""
7335 "This function is like L</fill> except that it creates a new file of length "
7336 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7337 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7338 "bytes."
7339 msgstr ""
7340
7341 #. type: =head2
7342 #: ../fish/guestfish-actions.pod:1193
7343 msgid "find"
7344 msgstr "find"
7345
7346 #. type: verbatim
7347 #: ../fish/guestfish-actions.pod:1195
7348 #, no-wrap
7349 msgid ""
7350 " find directory\n"
7351 "\n"
7352 msgstr ""
7353 " find каталог\n"
7354 "\n"
7355
7356 #. type: textblock
7357 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:1799
7358 msgid ""
7359 "This command lists out all files and directories, recursively, starting at "
7360 "C<directory>.  It is essentially equivalent to running the shell command "
7361 "C<find directory -print> but some post-processing happens on the output, "
7362 "described below."
7363 msgstr ""
7364
7365 #. type: textblock
7366 #: ../fish/guestfish-actions.pod:1202 ../src/guestfs-actions.pod:1804
7367 msgid ""
7368 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7369 "structure was:"
7370 msgstr ""
7371
7372 #. type: verbatim
7373 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1807
7374 #, no-wrap
7375 msgid ""
7376 " /tmp/a\n"
7377 " /tmp/b\n"
7378 " /tmp/c/d\n"
7379 "\n"
7380 msgstr ""
7381
7382 #. type: textblock
7383 #: ../fish/guestfish-actions.pod:1209
7384 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7385 msgstr ""
7386
7387 #. type: verbatim
7388 #: ../fish/guestfish-actions.pod:1212 ../src/guestfs-actions.pod:1814
7389 #, no-wrap
7390 msgid ""
7391 " a\n"
7392 " b\n"
7393 " c\n"
7394 " c/d\n"
7395 "\n"
7396 msgstr ""
7397
7398 #. type: textblock
7399 #: ../fish/guestfish-actions.pod:1217 ../src/guestfs-actions.pod:1819
7400 msgid "If C<directory> is not a directory, then this command returns an error."
7401 msgstr ""
7402
7403 #. type: textblock
7404 #: ../fish/guestfish-actions.pod:1220 ../src/guestfs-actions.pod:1822
7405 msgid "The returned list is sorted."
7406 msgstr ""
7407
7408 #. type: textblock
7409 #: ../fish/guestfish-actions.pod:1222
7410 msgid "See also L</find0>."
7411 msgstr "Див. також L</find0>."
7412
7413 #. type: =head2
7414 #: ../fish/guestfish-actions.pod:1227
7415 msgid "find0"
7416 msgstr "find0"
7417
7418 #. type: verbatim
7419 #: ../fish/guestfish-actions.pod:1229
7420 #, no-wrap
7421 msgid ""
7422 " find0 directory (files|-)\n"
7423 "\n"
7424 msgstr ""
7425 " find0 каталог (файли|-)\n"
7426 "\n"
7427
7428 #. type: textblock
7429 #: ../fish/guestfish-actions.pod:1231 ../src/guestfs-actions.pod:1842
7430 msgid ""
7431 "This command lists out all files and directories, recursively, starting at "
7432 "C<directory>, placing the resulting list in the external file called "
7433 "C<files>."
7434 msgstr ""
7435
7436 #. type: textblock
7437 #: ../fish/guestfish-actions.pod:1235
7438 msgid ""
7439 "This command works the same way as L</find> with the following exceptions:"
7440 msgstr ""
7441
7442 #. type: textblock
7443 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1853
7444 msgid "The resulting list is written to an external file."
7445 msgstr ""
7446
7447 #. type: textblock
7448 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:1857
7449 msgid ""
7450 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7451 "L<find(1)> option I<-print0>."
7452 msgstr ""
7453
7454 #. type: textblock
7455 #: ../fish/guestfish-actions.pod:1251 ../src/guestfs-actions.pod:1862
7456 msgid "This command is not limited in the number of names that it can return."
7457 msgstr ""
7458
7459 #. type: textblock
7460 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:1867
7461 msgid "The result list is not sorted."
7462 msgstr ""
7463
7464 #. type: =head2
7465 #: ../fish/guestfish-actions.pod:1262
7466 msgid "findfs-label"
7467 msgstr "findfs-label"
7468
7469 #. type: verbatim
7470 #: ../fish/guestfish-actions.pod:1264
7471 #, no-wrap
7472 msgid ""
7473 " findfs-label label\n"
7474 "\n"
7475 msgstr ""
7476 " findfs-label мітка\n"
7477 "\n"
7478
7479 #. type: textblock
7480 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1881
7481 msgid ""
7482 "This command searches the filesystems and returns the one which has the "
7483 "given label.  An error is returned if no such filesystem can be found."
7484 msgstr ""
7485
7486 #. type: textblock
7487 #: ../fish/guestfish-actions.pod:1270
7488 msgid "To find the label of a filesystem, use L</vfs-label>."
7489 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7490
7491 #. type: =head2
7492 #: ../fish/guestfish-actions.pod:1272
7493 msgid "findfs-uuid"
7494 msgstr "findfs-uuid"
7495
7496 #. type: verbatim
7497 #: ../fish/guestfish-actions.pod:1274
7498 #, no-wrap
7499 msgid ""
7500 " findfs-uuid uuid\n"
7501 "\n"
7502 msgstr ""
7503 " findfs-uuid uuid\n"
7504 "\n"
7505
7506 #. type: textblock
7507 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:1898
7508 msgid ""
7509 "This command searches the filesystems and returns the one which has the "
7510 "given UUID.  An error is returned if no such filesystem can be found."
7511 msgstr ""
7512
7513 #. type: textblock
7514 #: ../fish/guestfish-actions.pod:1280
7515 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7516 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7517
7518 #. type: =head2
7519 #: ../fish/guestfish-actions.pod:1282
7520 msgid "fsck"
7521 msgstr "fsck"
7522
7523 #. type: verbatim
7524 #: ../fish/guestfish-actions.pod:1284
7525 #, no-wrap
7526 msgid ""
7527 " fsck fstype device\n"
7528 "\n"
7529 msgstr ""
7530 " fsck тип_файлової_системи пристрій\n"
7531 "\n"
7532
7533 #. type: textblock
7534 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1916
7535 msgid ""
7536 "This runs the filesystem checker (fsck) on C<device> which should have "
7537 "filesystem type C<fstype>."
7538 msgstr ""
7539
7540 #. type: textblock
7541 #: ../fish/guestfish-actions.pod:1289 ../src/guestfs-actions.pod:1919
7542 msgid ""
7543 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7544 "codes from C<fsck>."
7545 msgstr ""
7546
7547 #. type: textblock
7548 #: ../fish/guestfish-actions.pod:1298 ../src/guestfs-actions.pod:1928
7549 msgid "Multiple status codes can be summed together."
7550 msgstr ""
7551
7552 #. type: textblock
7553 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:1932
7554 msgid ""
7555 "A non-zero return code can mean \"success\", for example if errors have been "
7556 "corrected on the filesystem."
7557 msgstr ""
7558
7559 #. type: textblock
7560 #: ../fish/guestfish-actions.pod:1307 ../src/guestfs-actions.pod:1937
7561 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
7562 msgstr ""
7563
7564 #. type: textblock
7565 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:1942
7566 msgid ""
7567 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
7568 msgstr ""
7569
7570 #. type: =head2
7571 #: ../fish/guestfish-actions.pod:1314
7572 msgid "get-append"
7573 msgstr "get-append"
7574
7575 #. type: verbatim
7576 #: ../fish/guestfish-actions.pod:1316
7577 #, no-wrap
7578 msgid ""
7579 " get-append\n"
7580 "\n"
7581 msgstr ""
7582 " get-append\n"
7583 "\n"
7584
7585 #. type: textblock
7586 #: ../fish/guestfish-actions.pod:1318 ../src/guestfs-actions.pod:1953
7587 msgid ""
7588 "Return the additional kernel options which are added to the guest kernel "
7589 "command line."
7590 msgstr ""
7591
7592 #. type: textblock
7593 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:1956
7594 msgid "If C<NULL> then no options are added."
7595 msgstr ""
7596
7597 #. type: =head2
7598 #: ../fish/guestfish-actions.pod:1323
7599 msgid "get-attach-method"
7600 msgstr "get-attach-method"
7601
7602 #. type: verbatim
7603 #: ../fish/guestfish-actions.pod:1325
7604 #, no-wrap
7605 msgid ""
7606 " get-attach-method\n"
7607 "\n"
7608 msgstr ""
7609 " get-attach-method\n"
7610 "\n"
7611
7612 #. type: textblock
7613 #: ../fish/guestfish-actions.pod:1327
7614 msgid "Return the current attach method.  See L</set-attach-method>."
7615 msgstr ""
7616
7617 #. type: =head2
7618 #: ../fish/guestfish-actions.pod:1329
7619 msgid "get-autosync"
7620 msgstr "get-autosync"
7621
7622 #. type: verbatim
7623 #: ../fish/guestfish-actions.pod:1331
7624 #, no-wrap
7625 msgid ""
7626 " get-autosync\n"
7627 "\n"
7628 msgstr ""
7629 " get-autosync\n"
7630 "\n"
7631
7632 #. type: textblock
7633 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:1981
7634 msgid "Get the autosync flag."
7635 msgstr ""
7636
7637 #. type: =head2
7638 #: ../fish/guestfish-actions.pod:1335
7639 msgid "get-direct"
7640 msgstr "get-direct"
7641
7642 #. type: verbatim
7643 #: ../fish/guestfish-actions.pod:1337
7644 #, no-wrap
7645 msgid ""
7646 " get-direct\n"
7647 "\n"
7648 msgstr ""
7649 " get-direct\n"
7650 "\n"
7651
7652 #. type: textblock
7653 #: ../fish/guestfish-actions.pod:1339 ../src/guestfs-actions.pod:1992
7654 msgid "Return the direct appliance mode flag."
7655 msgstr ""
7656
7657 #. type: =head2
7658 #: ../fish/guestfish-actions.pod:1341
7659 msgid "get-e2label"
7660 msgstr "get-e2label"
7661
7662 #. type: verbatim
7663 #: ../fish/guestfish-actions.pod:1343
7664 #, no-wrap
7665 msgid ""
7666 " get-e2label device\n"
7667 "\n"
7668 msgstr ""
7669 " get-e2label пристрій\n"
7670 "\n"
7671
7672 #. type: textblock
7673 #: ../fish/guestfish-actions.pod:1345 ../src/guestfs-actions.pod:2011
7674 msgid ""
7675 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
7676 msgstr ""
7677
7678 #. type: textblock
7679 #: ../fish/guestfish-actions.pod:1348
7680 msgid ""
7681 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
7682 "instead."
7683 msgstr ""
7684
7685 #. type: =head2
7686 #: ../fish/guestfish-actions.pod:1355
7687 msgid "get-e2uuid"
7688 msgstr "get-e2uuid"
7689
7690 #. type: verbatim
7691 #: ../fish/guestfish-actions.pod:1357
7692 #, no-wrap
7693 msgid ""
7694 " get-e2uuid device\n"
7695 "\n"
7696 msgstr ""
7697 " get-e2uuid пристрій\n"
7698 "\n"
7699
7700 #. type: textblock
7701 #: ../fish/guestfish-actions.pod:1359 ../src/guestfs-actions.pod:2032
7702 msgid ""
7703 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
7704 msgstr ""
7705
7706 #. type: textblock
7707 #: ../fish/guestfish-actions.pod:1362
7708 msgid ""
7709 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
7710 "instead."
7711 msgstr ""
7712
7713 #. type: =head2
7714 #: ../fish/guestfish-actions.pod:1369
7715 msgid "get-memsize"
7716 msgstr "get-memsize"
7717
7718 #. type: verbatim
7719 #: ../fish/guestfish-actions.pod:1371
7720 #, no-wrap
7721 msgid ""
7722 " get-memsize\n"
7723 "\n"
7724 msgstr ""
7725 " get-memsize\n"
7726 "\n"
7727
7728 #. type: textblock
7729 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2045
7730 msgid ""
7731 "This gets the memory size in megabytes allocated to the qemu subprocess."
7732 msgstr ""
7733
7734 #. type: textblock
7735 #: ../fish/guestfish-actions.pod:1376
7736 msgid ""
7737 "If L</set-memsize> was not called on this handle, and if "
7738 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
7739 "value for memsize."
7740 msgstr ""
7741
7742 #. type: textblock
7743 #: ../fish/guestfish-actions.pod:1380 ../fish/guestfish-actions.pod:1437
7744 #: ../fish/guestfish-actions.pod:4194 ../fish/guestfish-actions.pod:4296
7745 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2144
7746 #: ../src/guestfs-actions.pod:6324 ../src/guestfs-actions.pod:6450
7747 msgid ""
7748 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
7749 msgstr ""
7750
7751 #. type: =head2
7752 #: ../fish/guestfish-actions.pod:1383
7753 msgid "get-network"
7754 msgstr "get-network"
7755
7756 #. type: verbatim
7757 #: ../fish/guestfish-actions.pod:1385
7758 #, no-wrap
7759 msgid ""
7760 " get-network\n"
7761 "\n"
7762 msgstr ""
7763 " get-network\n"
7764 "\n"
7765
7766 #. type: textblock
7767 #: ../fish/guestfish-actions.pod:1387 ../src/guestfs-actions.pod:2064
7768 msgid "This returns the enable network flag."
7769 msgstr ""
7770
7771 #. type: =head2
7772 #: ../fish/guestfish-actions.pod:1389
7773 msgid "get-path"
7774 msgstr "get-path"
7775
7776 #. type: verbatim
7777 #: ../fish/guestfish-actions.pod:1391
7778 #, no-wrap
7779 msgid ""
7780 " get-path\n"
7781 "\n"
7782 msgstr ""
7783 " get-path\n"
7784 "\n"
7785
7786 #. type: textblock
7787 #: ../fish/guestfish-actions.pod:1393 ../src/guestfs-actions.pod:2075
7788 msgid "Return the current search path."
7789 msgstr ""
7790
7791 #. type: textblock
7792 #: ../fish/guestfish-actions.pod:1395 ../src/guestfs-actions.pod:2077
7793 msgid ""
7794 "This is always non-NULL.  If it wasn't set already, then this will return "
7795 "the default path."
7796 msgstr ""
7797
7798 #. type: =head2
7799 #: ../fish/guestfish-actions.pod:1398
7800 msgid "get-pgroup"
7801 msgstr ""
7802
7803 #. type: verbatim
7804 #: ../fish/guestfish-actions.pod:1400
7805 #, no-wrap
7806 msgid ""
7807 " get-pgroup\n"
7808 "\n"
7809 msgstr ""
7810
7811 #. type: textblock
7812 #: ../fish/guestfish-actions.pod:1402 ../src/guestfs-actions.pod:2090
7813 msgid "This returns the process group flag."
7814 msgstr ""
7815
7816 #. type: =head2
7817 #: ../fish/guestfish-actions.pod:1404
7818 msgid "get-pid"
7819 msgstr "get-pid"
7820
7821 #. type: =head2
7822 #: ../fish/guestfish-actions.pod:1406
7823 msgid "pid"
7824 msgstr ""
7825
7826 #. type: verbatim
7827 #: ../fish/guestfish-actions.pod:1408
7828 #, no-wrap
7829 msgid ""
7830 " get-pid\n"
7831 "\n"
7832 msgstr ""
7833 " get-pid\n"
7834 "\n"
7835
7836 #. type: textblock
7837 #: ../fish/guestfish-actions.pod:1410 ../src/guestfs-actions.pod:2101
7838 msgid ""
7839 "Return the process ID of the qemu subprocess.  If there is no qemu "
7840 "subprocess, then this will return an error."
7841 msgstr ""
7842
7843 #. type: textblock
7844 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2104
7845 msgid "This is an internal call used for debugging and testing."
7846 msgstr ""
7847
7848 #. type: =head2
7849 #: ../fish/guestfish-actions.pod:1415
7850 msgid "get-qemu"
7851 msgstr "get-qemu"
7852
7853 #. type: verbatim
7854 #: ../fish/guestfish-actions.pod:1417
7855 #, no-wrap
7856 msgid ""
7857 " get-qemu\n"
7858 "\n"
7859 msgstr ""
7860 " get-qemu\n"
7861 "\n"
7862
7863 #. type: textblock
7864 #: ../fish/guestfish-actions.pod:1419 ../src/guestfs-actions.pod:2115
7865 msgid "Return the current qemu binary."
7866 msgstr ""
7867
7868 #. type: textblock
7869 #: ../fish/guestfish-actions.pod:1421 ../src/guestfs-actions.pod:2117
7870 msgid ""
7871 "This is always non-NULL.  If it wasn't set already, then this will return "
7872 "the default qemu binary name."
7873 msgstr ""
7874
7875 #. type: =head2
7876 #: ../fish/guestfish-actions.pod:1424
7877 msgid "get-recovery-proc"
7878 msgstr "get-recovery-proc"
7879
7880 #. type: verbatim
7881 #: ../fish/guestfish-actions.pod:1426
7882 #, no-wrap
7883 msgid ""
7884 " get-recovery-proc\n"
7885 "\n"
7886 msgstr ""
7887 " get-recovery-proc\n"
7888 "\n"
7889
7890 #. type: textblock
7891 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2130
7892 msgid "Return the recovery process enabled flag."
7893 msgstr ""
7894
7895 #. type: =head2
7896 #: ../fish/guestfish-actions.pod:1430
7897 msgid "get-selinux"
7898 msgstr "get-selinux"
7899
7900 #. type: verbatim
7901 #: ../fish/guestfish-actions.pod:1432
7902 #, no-wrap
7903 msgid ""
7904 " get-selinux\n"
7905 "\n"
7906 msgstr ""
7907 " get-selinux\n"
7908 "\n"
7909
7910 #. type: textblock
7911 #: ../fish/guestfish-actions.pod:1434
7912 msgid ""
7913 "This returns the current setting of the selinux flag which is passed to the "
7914 "appliance at boot time.  See L</set-selinux>."
7915 msgstr ""
7916
7917 #. type: =head2
7918 #: ../fish/guestfish-actions.pod:1440
7919 msgid "get-state"
7920 msgstr "get-state"
7921
7922 #. type: verbatim
7923 #: ../fish/guestfish-actions.pod:1442
7924 #, no-wrap
7925 msgid ""
7926 " get-state\n"
7927 "\n"
7928 msgstr ""
7929 " get-state\n"
7930 "\n"
7931
7932 #. type: textblock
7933 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2156
7934 msgid ""
7935 "This returns the current state as an opaque integer.  This is only useful "
7936 "for printing debug and internal error messages."
7937 msgstr ""
7938
7939 #. type: textblock
7940 #: ../fish/guestfish-actions.pod:1447 ../fish/guestfish-actions.pod:2393
7941 #: ../fish/guestfish-actions.pod:2411 ../fish/guestfish-actions.pod:2449
7942 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:2159
7943 #: ../src/guestfs-actions.pod:3465 ../src/guestfs-actions.pod:3494
7944 #: ../src/guestfs-actions.pod:3555 ../src/guestfs-actions.pod:3582
7945 msgid "For more information on states, see L<guestfs(3)>."
7946 msgstr ""
7947
7948 #. type: =head2
7949 #: ../fish/guestfish-actions.pod:1449
7950 msgid "get-trace"
7951 msgstr "get-trace"
7952
7953 #. type: verbatim
7954 #: ../fish/guestfish-actions.pod:1451
7955 #, no-wrap
7956 msgid ""
7957 " get-trace\n"
7958 "\n"
7959 msgstr ""
7960 " get-trace\n"
7961 "\n"
7962
7963 #. type: textblock
7964 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2170
7965 msgid "Return the command trace flag."
7966 msgstr ""
7967
7968 #. type: =head2
7969 #: ../fish/guestfish-actions.pod:1455
7970 msgid "get-umask"
7971 msgstr "get-umask"
7972
7973 #. type: verbatim
7974 #: ../fish/guestfish-actions.pod:1457
7975 #, no-wrap
7976 msgid ""
7977 " get-umask\n"
7978 "\n"
7979 msgstr ""
7980 " get-umask\n"
7981 "\n"
7982
7983 #. type: textblock
7984 #: ../fish/guestfish-actions.pod:1459
7985 msgid ""
7986 "Return the current umask.  By default the umask is C<022> unless it has been "
7987 "set by calling L</umask>."
7988 msgstr ""
7989
7990 #. type: =head2
7991 #: ../fish/guestfish-actions.pod:1462
7992 msgid "get-verbose"
7993 msgstr "get-verbose"
7994
7995 #. type: verbatim
7996 #: ../fish/guestfish-actions.pod:1464
7997 #, no-wrap
7998 msgid ""
7999 " get-verbose\n"
8000 "\n"
8001 msgstr ""
8002 " get-verbose\n"
8003 "\n"
8004
8005 #. type: textblock
8006 #: ../fish/guestfish-actions.pod:1466 ../src/guestfs-actions.pod:2193
8007 msgid "This returns the verbose messages flag."
8008 msgstr ""
8009
8010 #. type: =head2
8011 #: ../fish/guestfish-actions.pod:1468
8012 msgid "getcon"
8013 msgstr "getcon"
8014
8015 #. type: verbatim
8016 #: ../fish/guestfish-actions.pod:1470
8017 #, no-wrap
8018 msgid ""
8019 " getcon\n"
8020 "\n"
8021 msgstr ""
8022 " getcon\n"
8023 "\n"
8024
8025 #. type: textblock
8026 #: ../fish/guestfish-actions.pod:1472 ../src/guestfs-actions.pod:2204
8027 msgid "This gets the SELinux security context of the daemon."
8028 msgstr ""
8029
8030 #. type: textblock
8031 #: ../fish/guestfish-actions.pod:1474
8032 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
8033 msgstr ""
8034
8035 #. type: =head2
8036 #: ../fish/guestfish-actions.pod:1477
8037 msgid "getxattr"
8038 msgstr "getxattr"
8039
8040 #. type: verbatim
8041 #: ../fish/guestfish-actions.pod:1479
8042 #, no-wrap
8043 msgid ""
8044 " getxattr path name\n"
8045 "\n"
8046 msgstr ""
8047 " getxattr шлях назва\n"
8048 "\n"
8049
8050 #. type: textblock
8051 #: ../fish/guestfish-actions.pod:1481
8052 msgid ""
8053 "Get a single extended attribute from file C<path> named C<name>.  This call "
8054 "follows symlinks.  If you want to lookup an extended attribute for the "
8055 "symlink itself, use L</lgetxattr>."
8056 msgstr ""
8057
8058 #. type: textblock
8059 #: ../fish/guestfish-actions.pod:1485 ../fish/guestfish-actions.pod:2538
8060 msgid ""
8061 "Normally it is better to get all extended attributes from a file in one go "
8062 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
8063 "buggy and do not provide a way to list out attributes.  For these "
8064 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
8065 "attributes you want in advance and call this function."
8066 msgstr ""
8067
8068 #. type: textblock
8069 #: ../fish/guestfish-actions.pod:1492 ../fish/guestfish-actions.pod:2545
8070 #: ../src/guestfs-actions.pod:2233 ../src/guestfs-actions.pod:3715
8071 msgid ""
8072 "Extended attribute values are blobs of binary data.  If there is no extended "
8073 "attribute named C<name>, this returns an error."
8074 msgstr ""
8075
8076 #. type: textblock
8077 #: ../fish/guestfish-actions.pod:1495
8078 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8079 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8080
8081 #. type: =head2
8082 #: ../fish/guestfish-actions.pod:1497
8083 msgid "getxattrs"
8084 msgstr "getxattrs"
8085
8086 #. type: verbatim
8087 #: ../fish/guestfish-actions.pod:1499
8088 #, no-wrap
8089 msgid ""
8090 " getxattrs path\n"
8091 "\n"
8092 msgstr ""
8093 " getxattrs шлях\n"
8094 "\n"
8095
8096 #. type: textblock
8097 #: ../fish/guestfish-actions.pod:1501 ../src/guestfs-actions.pod:2250
8098 msgid ""
8099 "This call lists the extended attributes of the file or directory C<path>."
8100 msgstr ""
8101
8102 #. type: textblock
8103 #: ../fish/guestfish-actions.pod:1504 ../src/guestfs-actions.pod:2253
8104 msgid ""
8105 "At the system call level, this is a combination of the L<listxattr(2)> and "
8106 "L<getxattr(2)> calls."
8107 msgstr ""
8108
8109 #. type: textblock
8110 #: ../fish/guestfish-actions.pod:1507
8111 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8112 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
8113
8114 #. type: =head2
8115 #: ../fish/guestfish-actions.pod:1509
8116 msgid "glob-expand"
8117 msgstr "glob-expand"
8118
8119 #. type: verbatim
8120 #: ../fish/guestfish-actions.pod:1511
8121 #, no-wrap
8122 msgid ""
8123 " glob-expand pattern\n"
8124 "\n"
8125 msgstr ""
8126 " glob-expand шаблон\n"
8127 "\n"
8128
8129 #. type: textblock
8130 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2270
8131 msgid ""
8132 "This command searches for all the pathnames matching C<pattern> according to "
8133 "the wildcard expansion rules used by the shell."
8134 msgstr ""
8135
8136 #. type: textblock
8137 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2274
8138 msgid ""
8139 "If no paths match, then this returns an empty list (note: not an error)."
8140 msgstr ""
8141
8142 #. type: textblock
8143 #: ../fish/guestfish-actions.pod:1520 ../src/guestfs-actions.pod:2277
8144 msgid ""
8145 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8146 "GLOB_BRACE>.  See that manual page for more details."
8147 msgstr ""
8148
8149 #. type: =head2
8150 #: ../fish/guestfish-actions.pod:1524
8151 msgid "grep"
8152 msgstr "grep"
8153
8154 #. type: verbatim
8155 #: ../fish/guestfish-actions.pod:1526
8156 #, no-wrap
8157 msgid ""
8158 " grep regex path\n"
8159 "\n"
8160 msgstr ""
8161 " grepi формальний_вираз шлях\n"
8162 "\n"
8163
8164 #. type: textblock
8165 #: ../fish/guestfish-actions.pod:1528 ../src/guestfs-actions.pod:2294
8166 msgid "This calls the external C<grep> program and returns the matching lines."
8167 msgstr ""
8168
8169 #. type: =head2
8170 #: ../fish/guestfish-actions.pod:1534
8171 msgid "grepi"
8172 msgstr "grepi"
8173
8174 #. type: verbatim
8175 #: ../fish/guestfish-actions.pod:1536
8176 #, no-wrap
8177 msgid ""
8178 " grepi regex path\n"
8179 "\n"
8180 msgstr ""
8181 " grepi формальний_вираз шлях\n"
8182 "\n"
8183
8184 #. type: textblock
8185 #: ../fish/guestfish-actions.pod:1538 ../src/guestfs-actions.pod:2313
8186 msgid ""
8187 "This calls the external C<grep -i> program and returns the matching lines."
8188 msgstr ""
8189
8190 #. type: =head2
8191 #: ../fish/guestfish-actions.pod:1544
8192 msgid "grub-install"
8193 msgstr "grub-install"
8194
8195 #. type: verbatim
8196 #: ../fish/guestfish-actions.pod:1546
8197 #, no-wrap
8198 msgid ""
8199 " grub-install root device\n"
8200 "\n"
8201 msgstr ""
8202 " grub-install кореневий пристрій\n"
8203 "\n"
8204
8205 #. type: textblock
8206 #: ../fish/guestfish-actions.pod:1548 ../src/guestfs-actions.pod:2332
8207 msgid ""
8208 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8209 "with the root directory being C<root>."
8210 msgstr ""
8211
8212 #. type: textblock
8213 #: ../fish/guestfish-actions.pod:1557 ../src/guestfs-actions.pod:2341
8214 msgid ""
8215 "There is currently no way in the API to install grub2, which is used by most "
8216 "modern Linux guests.  It is possible to run the grub2 command from the "
8217 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8218 msgstr ""
8219
8220 #. type: textblock
8221 #: ../fish/guestfish-actions.pod:1564 ../src/guestfs-actions.pod:2348
8222 msgid ""
8223 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
8224 "compatible with itself, so this only works in rather narrow circumstances.  "
8225 "Careful testing with each guest version is advisable."
8226 msgstr ""
8227
8228 #. type: textblock
8229 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2355
8230 msgid ""
8231 "If grub-install reports the error \"No suitable drive was found in the "
8232 "generated device map.\" it may be that you need to create a C</boot/grub/"
8233 "device.map> file first that contains the mapping between grub device names "
8234 "and Linux device names.  It is usually sufficient to create a file "
8235 "containing:"
8236 msgstr ""
8237
8238 #. type: verbatim
8239 #: ../fish/guestfish-actions.pod:1578 ../src/guestfs-actions.pod:2362
8240 #, no-wrap
8241 msgid ""
8242 " (hd0) /dev/vda\n"
8243 "\n"
8244 msgstr ""
8245
8246 #. type: textblock
8247 #: ../fish/guestfish-actions.pod:1580 ../src/guestfs-actions.pod:2364
8248 msgid "replacing C</dev/vda> with the name of the installation device."
8249 msgstr ""
8250
8251 #. type: =head2
8252 #: ../fish/guestfish-actions.pod:1584
8253 msgid "head"
8254 msgstr "head"
8255
8256 #. type: verbatim
8257 #: ../fish/guestfish-actions.pod:1586
8258 #, no-wrap
8259 msgid ""
8260 " head path\n"
8261 "\n"
8262 msgstr ""
8263 " head шлях\n"
8264 "\n"
8265
8266 #. type: textblock
8267 #: ../fish/guestfish-actions.pod:1588 ../src/guestfs-actions.pod:2378
8268 msgid ""
8269 "This command returns up to the first 10 lines of a file as a list of strings."
8270 msgstr ""
8271
8272 #. type: =head2
8273 #: ../fish/guestfish-actions.pod:1594
8274 msgid "head-n"
8275 msgstr "head-n"
8276
8277 #. type: verbatim
8278 #: ../fish/guestfish-actions.pod:1596
8279 #, no-wrap
8280 msgid ""
8281 " head-n nrlines path\n"
8282 "\n"
8283 msgstr ""
8284
8285 #. type: textblock
8286 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2397
8287 msgid ""
8288 "If the parameter C<nrlines> is a positive number, this returns the first "
8289 "C<nrlines> lines of the file C<path>."
8290 msgstr ""
8291
8292 #. type: textblock
8293 #: ../fish/guestfish-actions.pod:1601 ../src/guestfs-actions.pod:2400
8294 msgid ""
8295 "If the parameter C<nrlines> is a negative number, this returns lines from "
8296 "the file C<path>, excluding the last C<nrlines> lines."
8297 msgstr ""
8298
8299 #. type: textblock
8300 #: ../fish/guestfish-actions.pod:1604 ../fish/guestfish-actions.pod:4674
8301 #: ../src/guestfs-actions.pod:2403 ../src/guestfs-actions.pod:7022
8302 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8303 msgstr ""
8304
8305 #. type: =head2
8306 #: ../fish/guestfish-actions.pod:1609
8307 msgid "hexdump"
8308 msgstr "hexdump"
8309
8310 #. type: verbatim
8311 #: ../fish/guestfish-actions.pod:1611
8312 #, no-wrap
8313 msgid ""
8314 " hexdump path\n"
8315 "\n"
8316 msgstr ""
8317 " hexdump шлях\n"
8318 "\n"
8319
8320 #. type: textblock
8321 #: ../fish/guestfish-actions.pod:1613 ../src/guestfs-actions.pod:2420
8322 msgid ""
8323 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8324 "readable, canonical hex dump of the file."
8325 msgstr ""
8326
8327 #. type: =head2
8328 #: ../fish/guestfish-actions.pod:1619
8329 msgid "initrd-cat"
8330 msgstr "initrd-cat"
8331
8332 #. type: verbatim
8333 #: ../fish/guestfish-actions.pod:1621
8334 #, no-wrap
8335 msgid ""
8336 " initrd-cat initrdpath filename\n"
8337 "\n"
8338 msgstr ""
8339 " initrd-cat шлях_initrd назва_файла\n"
8340 "\n"
8341
8342 #. type: textblock
8343 #: ../fish/guestfish-actions.pod:1623 ../src/guestfs-actions.pod:2439
8344 msgid ""
8345 "This command unpacks the file C<filename> from the initrd file called "
8346 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8347 "character."
8348 msgstr ""
8349
8350 #. type: textblock
8351 #: ../fish/guestfish-actions.pod:1627 ../src/guestfs-actions.pod:2443
8352 msgid ""
8353 "For example, in guestfish you could use the following command to examine the "
8354 "boot script (usually called C</init>)  contained in a Linux initrd or "
8355 "initramfs image:"
8356 msgstr ""
8357
8358 #. type: verbatim
8359 #: ../fish/guestfish-actions.pod:1631 ../src/guestfs-actions.pod:2447
8360 #, no-wrap
8361 msgid ""
8362 " initrd-cat /boot/initrd-<version>.img init\n"
8363 "\n"
8364 msgstr ""
8365
8366 #. type: textblock
8367 #: ../fish/guestfish-actions.pod:1633
8368 msgid "See also L</initrd-list>."
8369 msgstr "Див. також L</initrd-list>."
8370
8371 #. type: =head2
8372 #: ../fish/guestfish-actions.pod:1638
8373 msgid "initrd-list"
8374 msgstr "initrd-list"
8375
8376 #. type: verbatim
8377 #: ../fish/guestfish-actions.pod:1640
8378 #, no-wrap
8379 msgid ""
8380 " initrd-list path\n"
8381 "\n"
8382 msgstr ""
8383 " initrd-list шлях\n"
8384 "\n"
8385
8386 #. type: textblock
8387 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2466
8388 msgid "This command lists out files contained in an initrd."
8389 msgstr ""
8390
8391 #. type: textblock
8392 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2468
8393 msgid ""
8394 "The files are listed without any initial C</> character.  The files are "
8395 "listed in the order they appear (not necessarily alphabetical).  Directory "
8396 "names are listed as separate items."
8397 msgstr ""
8398
8399 #. type: textblock
8400 #: ../fish/guestfish-actions.pod:1648 ../src/guestfs-actions.pod:2472
8401 msgid ""
8402 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8403 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8404 "files)."
8405 msgstr ""
8406
8407 #. type: =head2
8408 #: ../fish/guestfish-actions.pod:1652
8409 msgid "inotify-add-watch"
8410 msgstr "inotify-add-watch"
8411
8412 #. type: verbatim
8413 #: ../fish/guestfish-actions.pod:1654
8414 #, no-wrap
8415 msgid ""
8416 " inotify-add-watch path mask\n"
8417 "\n"
8418 msgstr ""
8419 " inotify-add-watch шлях маска\n"
8420 "\n"
8421
8422 #. type: textblock
8423 #: ../fish/guestfish-actions.pod:1656 ../src/guestfs-actions.pod:2489
8424 msgid "Watch C<path> for the events listed in C<mask>."
8425 msgstr ""
8426
8427 #. type: textblock
8428 #: ../fish/guestfish-actions.pod:1658 ../src/guestfs-actions.pod:2491
8429 msgid ""
8430 "Note that if C<path> is a directory then events within that directory are "
8431 "watched, but this does I<not> happen recursively (in subdirectories)."
8432 msgstr ""
8433
8434 #. type: textblock
8435 #: ../fish/guestfish-actions.pod:1662 ../src/guestfs-actions.pod:2495
8436 msgid ""
8437 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8438 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8439 msgstr ""
8440
8441 #. type: =head2
8442 #: ../fish/guestfish-actions.pod:1666
8443 msgid "inotify-close"
8444 msgstr "inotify-close"
8445
8446 #. type: verbatim
8447 #: ../fish/guestfish-actions.pod:1668
8448 #, no-wrap
8449 msgid ""
8450 " inotify-close\n"
8451 "\n"
8452 msgstr ""
8453 " inotify-close\n"
8454 "\n"
8455
8456 #. type: textblock
8457 #: ../fish/guestfish-actions.pod:1670 ../src/guestfs-actions.pod:2508
8458 msgid ""
8459 "This closes the inotify handle which was previously opened by inotify_init.  "
8460 "It removes all watches, throws away any pending events, and deallocates all "
8461 "resources."
8462 msgstr ""
8463
8464 #. type: =head2
8465 #: ../fish/guestfish-actions.pod:1674
8466 msgid "inotify-files"
8467 msgstr "inotify-files"
8468
8469 #. type: verbatim
8470 #: ../fish/guestfish-actions.pod:1676
8471 #, no-wrap
8472 msgid ""
8473 " inotify-files\n"
8474 "\n"
8475 msgstr ""
8476 " inotify-files\n"
8477 "\n"
8478
8479 #. type: textblock
8480 #: ../fish/guestfish-actions.pod:1678
8481 msgid ""
8482 "This function is a helpful wrapper around L</inotify-read> which just "
8483 "returns a list of pathnames of objects that were touched.  The returned "
8484 "pathnames are sorted and deduplicated."
8485 msgstr ""
8486
8487 #. type: =head2
8488 #: ../fish/guestfish-actions.pod:1682
8489 msgid "inotify-init"
8490 msgstr "inotify-init"
8491
8492 #. type: verbatim
8493 #: ../fish/guestfish-actions.pod:1684
8494 #, no-wrap
8495 msgid ""
8496 " inotify-init maxevents\n"
8497 "\n"
8498 msgstr ""
8499
8500 #. type: textblock
8501 #: ../fish/guestfish-actions.pod:1686 ../src/guestfs-actions.pod:2537
8502 msgid ""
8503 "This command creates a new inotify handle.  The inotify subsystem can be "
8504 "used to notify events which happen to objects in the guest filesystem."
8505 msgstr ""
8506
8507 #. type: textblock
8508 #: ../fish/guestfish-actions.pod:1690
8509 msgid ""
8510 "C<maxevents> is the maximum number of events which will be queued up between "
8511 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8512 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8513 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8514 "but records the fact that it threw them away by setting a flag "
8515 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8516 msgstr ""
8517
8518 #. type: textblock
8519 #: ../fish/guestfish-actions.pod:1700
8520 msgid ""
8521 "Before any events are generated, you have to add some watches to the "
8522 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8523 "L</inotify-watch-all>."
8524 msgstr ""
8525
8526 #. type: textblock
8527 #: ../fish/guestfish-actions.pod:1706
8528 msgid ""
8529 "Queued up events should be read periodically by calling L</inotify-read> (or "
8530 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8531 "If you don't read the events out often enough then you risk the internal "
8532 "queue overflowing."
8533 msgstr ""
8534
8535 #. type: textblock
8536 #: ../fish/guestfish-actions.pod:1713
8537 msgid ""
8538 "The handle should be closed after use by calling L</inotify-close>.  This "
8539 "also removes any watches automatically."
8540 msgstr ""
8541
8542 #. type: textblock
8543 #: ../fish/guestfish-actions.pod:1717 ../src/guestfs-actions.pod:2568
8544 msgid ""
8545 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
8546 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
8547 "that there is one global inotify handle per libguestfs instance."
8548 msgstr ""
8549
8550 #. type: =head2
8551 #: ../fish/guestfish-actions.pod:1722
8552 msgid "inotify-read"
8553 msgstr "inotify-read"
8554
8555 #. type: verbatim
8556 #: ../fish/guestfish-actions.pod:1724
8557 #, no-wrap
8558 msgid ""
8559 " inotify-read\n"
8560 "\n"
8561 msgstr ""
8562 " inotify-read\n"
8563 "\n"
8564
8565 #. type: textblock
8566 #: ../fish/guestfish-actions.pod:1726 ../src/guestfs-actions.pod:2582
8567 msgid ""
8568 "Return the complete queue of events that have happened since the previous "
8569 "read call."
8570 msgstr ""
8571
8572 #. type: textblock
8573 #: ../fish/guestfish-actions.pod:1729 ../src/guestfs-actions.pod:2585
8574 msgid "If no events have happened, this returns an empty list."
8575 msgstr ""
8576
8577 #. type: textblock
8578 #: ../fish/guestfish-actions.pod:1731 ../src/guestfs-actions.pod:2587
8579 msgid ""
8580 "I<Note>: In order to make sure that all events have been read, you must call "
8581 "this function repeatedly until it returns an empty list.  The reason is that "
8582 "the call will read events up to the maximum appliance-to-host message size "
8583 "and leave remaining events in the queue."
8584 msgstr ""
8585
8586 #. type: =head2
8587 #: ../fish/guestfish-actions.pod:1737
8588 msgid "inotify-rm-watch"
8589 msgstr "inotify-rm-watch"
8590
8591 #. type: verbatim
8592 #: ../fish/guestfish-actions.pod:1739
8593 #, no-wrap
8594 msgid ""
8595 " inotify-rm-watch wd\n"
8596 "\n"
8597 msgstr ""
8598
8599 #. type: textblock
8600 #: ../fish/guestfish-actions.pod:1741
8601 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
8602 msgstr ""
8603
8604 #. type: =head2
8605 #: ../fish/guestfish-actions.pod:1744
8606 msgid "inspect-get-arch"
8607 msgstr "inspect-get-arch"
8608
8609 #. type: verbatim
8610 #: ../fish/guestfish-actions.pod:1746
8611 #, no-wrap
8612 msgid ""
8613 " inspect-get-arch root\n"
8614 "\n"
8615 msgstr ""
8616 " inspect-get-arch корінь\n"
8617 "\n"
8618
8619 #. type: textblock
8620 #: ../fish/guestfish-actions.pod:1748
8621 msgid ""
8622 "This returns the architecture of the inspected operating system.  The "
8623 "possible return values are listed under L</file-architecture>."
8624 msgstr ""
8625
8626 #. type: textblock
8627 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2622
8628 msgid ""
8629 "If the architecture could not be determined, then the string C<unknown> is "
8630 "returned."
8631 msgstr ""
8632
8633 #. type: textblock
8634 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1842
8635 #: ../fish/guestfish-actions.pod:1921 ../fish/guestfish-actions.pod:1933
8636 #: ../fish/guestfish-actions.pod:2017 ../fish/guestfish-actions.pod:2078
8637 #: ../fish/guestfish-actions.pod:2099 ../fish/guestfish-actions.pod:2113
8638 #: ../fish/guestfish-actions.pod:2153 ../fish/guestfish-actions.pod:2185
8639 #: ../fish/guestfish-actions.pod:2198 ../fish/guestfish-actions.pod:2211
8640 #: ../fish/guestfish-actions.pod:2221 ../fish/guestfish-actions.pod:2231
8641 #: ../fish/guestfish-actions.pod:2243 ../fish/guestfish-actions.pod:2339
8642 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:2625
8643 #: ../src/guestfs-actions.pod:2719 ../src/guestfs-actions.pod:2823
8644 #: ../src/guestfs-actions.pod:2842 ../src/guestfs-actions.pod:2973
8645 #: ../src/guestfs-actions.pod:3056 ../src/guestfs-actions.pod:3084
8646 #: ../src/guestfs-actions.pod:3105 ../src/guestfs-actions.pod:3158
8647 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3218
8648 #: ../src/guestfs-actions.pod:3238 ../src/guestfs-actions.pod:3255
8649 #: ../src/guestfs-actions.pod:3271 ../src/guestfs-actions.pod:3289
8650 #: ../src/guestfs-actions.pod:3391 ../src/guestfs-actions.pod:3432
8651 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
8652 msgstr ""
8653
8654 #. type: =head2
8655 #: ../fish/guestfish-actions.pod:1757
8656 msgid "inspect-get-distro"
8657 msgstr "inspect-get-distro"
8658
8659 #. type: verbatim
8660 #: ../fish/guestfish-actions.pod:1759
8661 #, no-wrap
8662 msgid ""
8663 " inspect-get-distro root\n"
8664 "\n"
8665 msgstr ""
8666 " inspect-get-distro корінь\n"
8667 "\n"
8668
8669 #. type: textblock
8670 #: ../fish/guestfish-actions.pod:1761 ../src/guestfs-actions.pod:2638
8671 msgid ""
8672 "This returns the distro (distribution) of the inspected operating system."
8673 msgstr ""
8674
8675 #. type: textblock
8676 #: ../fish/guestfish-actions.pod:1764 ../src/guestfs-actions.pod:2641
8677 msgid "Currently defined distros are:"
8678 msgstr ""
8679
8680 #. type: =item
8681 #: ../fish/guestfish-actions.pod:1768 ../src/guestfs-actions.pod:2645
8682 msgid "\"archlinux\""
8683 msgstr "\"archlinux\""
8684
8685 #. type: textblock
8686 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2647
8687 msgid "Arch Linux."
8688 msgstr "Arch Linux."
8689
8690 #. type: =item
8691 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2649
8692 msgid "\"centos\""
8693 msgstr ""
8694
8695 #. type: textblock
8696 #: ../fish/guestfish-actions.pod:1774 ../src/guestfs-actions.pod:2651
8697 msgid "CentOS."
8698 msgstr ""
8699
8700 #. type: =item
8701 #: ../fish/guestfish-actions.pod:1776 ../src/guestfs-actions.pod:2653
8702 msgid "\"debian\""
8703 msgstr "\"debian\""
8704
8705 #. type: textblock
8706 #: ../fish/guestfish-actions.pod:1778 ../src/guestfs-actions.pod:2655
8707 msgid "Debian."
8708 msgstr "Debian."
8709
8710 #. type: =item
8711 #: ../fish/guestfish-actions.pod:1780 ../src/guestfs-actions.pod:2657
8712 msgid "\"fedora\""
8713 msgstr "\"fedora\""
8714
8715 #. type: textblock
8716 #: ../fish/guestfish-actions.pod:1782 ../src/guestfs-actions.pod:2659
8717 msgid "Fedora."
8718 msgstr "Fedora."
8719
8720 #. type: =item
8721 #: ../fish/guestfish-actions.pod:1784 ../src/guestfs-actions.pod:2661
8722 msgid "\"gentoo\""
8723 msgstr "\"gentoo\""
8724
8725 #. type: textblock
8726 #: ../fish/guestfish-actions.pod:1786 ../src/guestfs-actions.pod:2663
8727 msgid "Gentoo."
8728 msgstr "Gentoo."
8729
8730 #. type: =item
8731 #: ../fish/guestfish-actions.pod:1788 ../src/guestfs-actions.pod:2665
8732 msgid "\"linuxmint\""
8733 msgstr "\"linuxmint\""
8734
8735 #. type: textblock
8736 #: ../fish/guestfish-actions.pod:1790 ../src/guestfs-actions.pod:2667
8737 msgid "Linux Mint."
8738 msgstr "Linux Mint."
8739
8740 #. type: =item
8741 #: ../fish/guestfish-actions.pod:1792 ../src/guestfs-actions.pod:2669
8742 msgid "\"mandriva\""
8743 msgstr "\"mandriva\""
8744
8745 #. type: textblock
8746 #: ../fish/guestfish-actions.pod:1794 ../src/guestfs-actions.pod:2671
8747 msgid "Mandriva."
8748 msgstr "Mandriva."
8749
8750 #. type: =item
8751 #: ../fish/guestfish-actions.pod:1796 ../src/guestfs-actions.pod:2673
8752 msgid "\"meego\""
8753 msgstr "\"meego\""
8754
8755 #. type: textblock
8756 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2675
8757 msgid "MeeGo."
8758 msgstr "MeeGo."
8759
8760 #. type: =item
8761 #: ../fish/guestfish-actions.pod:1800 ../src/guestfs-actions.pod:2677
8762 msgid "\"pardus\""
8763 msgstr "\"pardus\""
8764
8765 #. type: textblock
8766 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2679
8767 msgid "Pardus."
8768 msgstr "Pardus."
8769
8770 #. type: =item
8771 #: ../fish/guestfish-actions.pod:1804 ../src/guestfs-actions.pod:2681
8772 msgid "\"redhat-based\""
8773 msgstr "\"redhat-based\""
8774
8775 #. type: textblock
8776 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2683
8777 msgid "Some Red Hat-derived distro."
8778 msgstr "Дистрибутив, що походить від Red Hat."
8779
8780 #. type: =item
8781 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2685
8782 msgid "\"rhel\""
8783 msgstr "\"rhel\""
8784
8785 #. type: textblock
8786 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2687
8787 msgid "Red Hat Enterprise Linux."
8788 msgstr ""
8789
8790 #. type: =item
8791 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2689
8792 msgid "\"scientificlinux\""
8793 msgstr ""
8794
8795 #. type: textblock
8796 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2691
8797 msgid "Scientific Linux."
8798 msgstr ""
8799
8800 #. type: =item
8801 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2693
8802 msgid "\"slackware\""
8803 msgstr ""
8804
8805 #. type: textblock
8806 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2695
8807 msgid "Slackware."
8808 msgstr ""
8809
8810 #. type: =item
8811 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2697
8812 #, fuzzy
8813 #| msgid "\"linux\""
8814 msgid "\"ttylinux\""
8815 msgstr "\"linux\""
8816
8817 #. type: textblock
8818 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2699
8819 #, fuzzy
8820 #| msgid "\"linux\""
8821 msgid "ttylinux."
8822 msgstr "\"linux\""
8823
8824 #. type: =item
8825 #: ../fish/guestfish-actions.pod:1824 ../src/guestfs-actions.pod:2701
8826 msgid "\"ubuntu\""
8827 msgstr "\"ubuntu\""
8828
8829 #. type: textblock
8830 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2703
8831 msgid "Ubuntu."
8832 msgstr "Ubuntu."
8833
8834 #. type: =item
8835 #: ../fish/guestfish-actions.pod:1828 ../fish/guestfish-actions.pod:1912
8836 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:2705
8837 #: ../src/guestfs-actions.pod:2814 ../src/guestfs-actions.pod:3189
8838 msgid "\"unknown\""
8839 msgstr "\"unknown\""
8840
8841 #. type: textblock
8842 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2707
8843 msgid "The distro could not be determined."
8844 msgstr "Дистрибутив, тип якого не вдалося визначити."
8845
8846 #. type: =item
8847 #: ../fish/guestfish-actions.pod:1832 ../fish/guestfish-actions.pod:2168
8848 #: ../src/guestfs-actions.pod:2709 ../src/guestfs-actions.pod:3181
8849 msgid "\"windows\""
8850 msgstr "\"windows\""
8851
8852 #. type: textblock
8853 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2711
8854 msgid ""
8855 "Windows does not have distributions.  This string is returned if the OS type "
8856 "is Windows."
8857 msgstr ""
8858
8859 #. type: textblock
8860 #: ../fish/guestfish-actions.pod:1839 ../fish/guestfish-actions.pod:1918
8861 #: ../fish/guestfish-actions.pod:2182 ../src/guestfs-actions.pod:2716
8862 #: ../src/guestfs-actions.pod:2820 ../src/guestfs-actions.pod:3195
8863 msgid ""
8864 "Future versions of libguestfs may return other strings here.  The caller "
8865 "should be prepared to handle any string."
8866 msgstr ""
8867
8868 #. type: =head2
8869 #: ../fish/guestfish-actions.pod:1844
8870 msgid "inspect-get-drive-mappings"
8871 msgstr ""
8872
8873 #. type: verbatim
8874 #: ../fish/guestfish-actions.pod:1846
8875 #, no-wrap
8876 msgid ""
8877 " inspect-get-drive-mappings root\n"
8878 "\n"
8879 msgstr ""
8880
8881 #. type: textblock
8882 #: ../fish/guestfish-actions.pod:1848 ../src/guestfs-actions.pod:2732
8883 msgid ""
8884 "This call is useful for Windows which uses a primitive system of assigning "
8885 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
8886 "Windows Registry to find out how disks/partitions are mapped to drive "
8887 "letters, and returns a hash table as in the example below:"
8888 msgstr ""
8889
8890 #. type: verbatim
8891 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2738
8892 #, no-wrap
8893 msgid ""
8894 " C      =>     /dev/vda2\n"
8895 " E      =>     /dev/vdb1\n"
8896 " F      =>     /dev/vdc1\n"
8897 "\n"
8898 msgstr ""
8899
8900 #. type: textblock
8901 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2742
8902 msgid ""
8903 "Note that keys are drive letters.  For Windows, the key is case insensitive "
8904 "and just contains the drive letter, without the customary colon separator "
8905 "character."
8906 msgstr ""
8907
8908 #. type: textblock
8909 #: ../fish/guestfish-actions.pod:1862 ../src/guestfs-actions.pod:2746
8910 msgid ""
8911 "In future we may support other operating systems that also used drive "
8912 "letters, but the keys for those might not be case insensitive and might be "
8913 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
8914 "C<h1> etc."
8915 msgstr ""
8916
8917 #. type: textblock
8918 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2751
8919 msgid ""
8920 "For Windows guests, currently only hard drive mappings are returned.  "
8921 "Removable disks (eg. DVD-ROMs) are ignored."
8922 msgstr ""
8923
8924 #. type: textblock
8925 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2754
8926 msgid ""
8927 "For guests that do not use drive mappings, or if the drive mappings could "
8928 "not be determined, this returns an empty hash table."
8929 msgstr ""
8930
8931 #. type: textblock
8932 #: ../fish/guestfish-actions.pod:1873
8933 msgid ""
8934 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8935 "get-mountpoints>, L</inspect-get-filesystems>."
8936 msgstr ""
8937
8938 #. type: =head2
8939 #: ../fish/guestfish-actions.pod:1877
8940 msgid "inspect-get-filesystems"
8941 msgstr "inspect-get-filesystems"
8942
8943 #. type: verbatim
8944 #: ../fish/guestfish-actions.pod:1879
8945 #, no-wrap
8946 msgid ""
8947 " inspect-get-filesystems root\n"
8948 "\n"
8949 msgstr ""
8950 " inspect-get-filesystems корінь\n"
8951 "\n"
8952
8953 #. type: textblock
8954 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2775
8955 msgid ""
8956 "This returns a list of all the filesystems that we think are associated with "
8957 "this operating system.  This includes the root filesystem, other ordinary "
8958 "filesystems, and non-mounted devices like swap partitions."
8959 msgstr ""
8960
8961 #. type: textblock
8962 #: ../fish/guestfish-actions.pod:1886 ../src/guestfs-actions.pod:2780
8963 msgid ""
8964 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
8965 "to be shared between operating systems."
8966 msgstr ""
8967
8968 #. type: textblock
8969 #: ../fish/guestfish-actions.pod:1889
8970 msgid ""
8971 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
8972 "get-mountpoints>."
8973 msgstr ""
8974
8975 #. type: =head2
8976 #: ../fish/guestfish-actions.pod:1892
8977 msgid "inspect-get-format"
8978 msgstr "inspect-get-format"
8979
8980 #. type: verbatim
8981 #: ../fish/guestfish-actions.pod:1894
8982 #, no-wrap
8983 msgid ""
8984 " inspect-get-format root\n"
8985 "\n"
8986 msgstr ""
8987 " inspect-get-format корінь\n"
8988 "\n"
8989
8990 #. type: textblock
8991 #: ../fish/guestfish-actions.pod:1896 ../src/guestfs-actions.pod:2798
8992 msgid ""
8993 "This returns the format of the inspected operating system.  You can use it "
8994 "to detect install images, live CDs and similar."
8995 msgstr ""
8996
8997 #. type: textblock
8998 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2801
8999 msgid "Currently defined formats are:"
9000 msgstr ""
9001
9002 #. type: =item
9003 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2805
9004 msgid "\"installed\""
9005 msgstr "\"installed\""
9006
9007 #. type: textblock
9008 #: ../fish/guestfish-actions.pod:1905 ../src/guestfs-actions.pod:2807
9009 msgid "This is an installed operating system."
9010 msgstr "Це встановлена операційна система."
9011
9012 #. type: =item
9013 #: ../fish/guestfish-actions.pod:1907 ../src/guestfs-actions.pod:2809
9014 msgid "\"installer\""
9015 msgstr ""
9016
9017 #. type: textblock
9018 #: ../fish/guestfish-actions.pod:1909 ../src/guestfs-actions.pod:2811
9019 msgid ""
9020 "The disk image being inspected is not an installed operating system, but a "
9021 "I<bootable> install disk, live CD, or similar."
9022 msgstr ""
9023
9024 #. type: textblock
9025 #: ../fish/guestfish-actions.pod:1914 ../src/guestfs-actions.pod:2816
9026 msgid "The format of this disk image is not known."
9027 msgstr ""
9028
9029 #. type: =head2
9030 #: ../fish/guestfish-actions.pod:1923
9031 msgid "inspect-get-hostname"
9032 msgstr "inspect-get-hostname"
9033
9034 #. type: verbatim
9035 #: ../fish/guestfish-actions.pod:1925
9036 #, no-wrap
9037 msgid ""
9038 " inspect-get-hostname root\n"
9039 "\n"
9040 msgstr ""
9041 " inspect-get-hostname корінь\n"
9042 "\n"
9043
9044 #. type: textblock
9045 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2836
9046 msgid ""
9047 "This function returns the hostname of the operating system as found by "
9048 "inspection of the guest's configuration files."
9049 msgstr ""
9050
9051 #. type: textblock
9052 #: ../fish/guestfish-actions.pod:1930 ../src/guestfs-actions.pod:2839
9053 msgid ""
9054 "If the hostname could not be determined, then the string C<unknown> is "
9055 "returned."
9056 msgstr ""
9057
9058 #. type: =head2
9059 #: ../fish/guestfish-actions.pod:1935
9060 msgid "inspect-get-icon"
9061 msgstr ""
9062
9063 #. type: verbatim
9064 #: ../fish/guestfish-actions.pod:1937
9065 #, no-wrap
9066 msgid ""
9067 " inspect-get-icon root [favicon:..] [highquality:..]\n"
9068 "\n"
9069 msgstr ""
9070
9071 #. type: textblock
9072 #: ../fish/guestfish-actions.pod:1939 ../src/guestfs-actions.pod:2865
9073 msgid ""
9074 "This function returns an icon corresponding to the inspected operating "
9075 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
9076 "to PNG if necessary)."
9077 msgstr ""
9078
9079 #. type: textblock
9080 #: ../fish/guestfish-actions.pod:1943 ../src/guestfs-actions.pod:2869
9081 msgid ""
9082 "If it was not possible to get an icon this function returns a zero-length "
9083 "(non-NULL) buffer.  I<Callers must check for this case>."
9084 msgstr ""
9085
9086 #. type: textblock
9087 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2872
9088 msgid ""
9089 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
9090 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
9091 "this file will be returned.  You can disable favicons by passing the "
9092 "optional C<favicon> boolean as false (default is true)."
9093 msgstr ""
9094
9095 #. type: textblock
9096 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:2878
9097 msgid ""
9098 "If finding the favicon fails, then we look in other places in the guest for "
9099 "a suitable icon."
9100 msgstr ""
9101
9102 #. type: textblock
9103 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2881
9104 msgid ""
9105 "If the optional C<highquality> boolean is true then only high quality icons "
9106 "are returned, which means only icons of high resolution with an alpha "
9107 "channel.  The default (false) is to return any icon we can, even if it is of "
9108 "substandard quality."
9109 msgstr ""
9110
9111 #. type: textblock
9112 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:2892
9113 msgid ""
9114 "Unlike most other inspection API calls, the guest's disks must be mounted up "
9115 "before you call this, since it needs to read information from the guest "
9116 "filesystem during the call."
9117 msgstr ""
9118
9119 #. type: textblock
9120 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:2898
9121 msgid ""
9122 "B<Security:> The icon data comes from the untrusted guest, and should be "
9123 "treated with caution.  PNG files have been known to contain exploits.  "
9124 "Ensure that libpng (or other relevant libraries) are fully up to date before "
9125 "trying to process or display the icon."
9126 msgstr ""
9127
9128 #. type: textblock
9129 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2906
9130 msgid ""
9131 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
9132 "tries to return the largest, highest quality icon available.  The "
9133 "application must scale the icon to the required size."
9134 msgstr ""
9135
9136 #. type: textblock
9137 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2913
9138 msgid ""
9139 "Extracting icons from Windows guests requires the external C<wrestool> "
9140 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
9141 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
9142 "installed separately."
9143 msgstr ""
9144
9145 #. type: textblock
9146 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:2920
9147 msgid ""
9148 "Operating system icons are usually trademarks.  Seek legal advice before "
9149 "using trademarks in applications."
9150 msgstr ""
9151
9152 #. type: =head2
9153 #: ../fish/guestfish-actions.pod:2001
9154 msgid "inspect-get-major-version"
9155 msgstr "inspect-get-major-version"
9156
9157 #. type: verbatim
9158 #: ../fish/guestfish-actions.pod:2003
9159 #, no-wrap
9160 msgid ""
9161 " inspect-get-major-version root\n"
9162 "\n"
9163 msgstr ""
9164 " inspect-get-major-version корінь\n"
9165 "\n"
9166
9167 #. type: textblock
9168 #: ../fish/guestfish-actions.pod:2005 ../src/guestfs-actions.pod:2961
9169 msgid ""
9170 "This returns the major version number of the inspected operating system."
9171 msgstr ""
9172
9173 #. type: textblock
9174 #: ../fish/guestfish-actions.pod:2008 ../src/guestfs-actions.pod:2964
9175 msgid ""
9176 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9177 "popular public names used by the operating system.  Notably the operating "
9178 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9179 "1).  You can find out the real versions corresponding to releases of Windows "
9180 "by consulting Wikipedia or MSDN."
9181 msgstr ""
9182
9183 #. type: textblock
9184 #: ../fish/guestfish-actions.pod:2015 ../fish/guestfish-actions.pod:2026
9185 #: ../src/guestfs-actions.pod:2971 ../src/guestfs-actions.pod:2988
9186 msgid "If the version could not be determined, then C<0> is returned."
9187 msgstr ""
9188
9189 #. type: =head2
9190 #: ../fish/guestfish-actions.pod:2019
9191 msgid "inspect-get-minor-version"
9192 msgstr "inspect-get-minor-version"
9193
9194 #. type: verbatim
9195 #: ../fish/guestfish-actions.pod:2021
9196 #, no-wrap
9197 msgid ""
9198 " inspect-get-minor-version root\n"
9199 "\n"
9200 msgstr ""
9201 " inspect-get-minor-version корінь\n"
9202 "\n"
9203
9204 #. type: textblock
9205 #: ../fish/guestfish-actions.pod:2023 ../src/guestfs-actions.pod:2985
9206 msgid ""
9207 "This returns the minor version number of the inspected operating system."
9208 msgstr ""
9209
9210 #. type: textblock
9211 #: ../fish/guestfish-actions.pod:2028
9212 msgid ""
9213 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9214 "get-major-version>."
9215 msgstr ""
9216
9217 #. type: =head2
9218 #: ../fish/guestfish-actions.pod:2031
9219 msgid "inspect-get-mountpoints"
9220 msgstr "inspect-get-mountpoints"
9221
9222 #. type: verbatim
9223 #: ../fish/guestfish-actions.pod:2033
9224 #, no-wrap
9225 msgid ""
9226 " inspect-get-mountpoints root\n"
9227 "\n"
9228 msgstr ""
9229 " inspect-get-mountpoints корінь\n"
9230 "\n"
9231
9232 #. type: textblock
9233 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3003
9234 msgid ""
9235 "This returns a hash of where we think the filesystems associated with this "
9236 "operating system should be mounted.  Callers should note that this is at "
9237 "best an educated guess made by reading configuration files such as C</etc/"
9238 "fstab>.  I<In particular note> that this may return filesystems which are "
9239 "non-existent or not mountable and callers should be prepared to handle or "
9240 "ignore failures if they try to mount them."
9241 msgstr ""
9242
9243 #. type: textblock
9244 #: ../fish/guestfish-actions.pod:2044 ../src/guestfs-actions.pod:3012
9245 msgid ""
9246 "Each element in the returned hashtable has a key which is the path of the "
9247 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9248 "mounted there (eg. C</dev/sda1>)."
9249 msgstr ""
9250
9251 #. type: textblock
9252 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3017
9253 msgid ""
9254 "Non-mounted devices such as swap devices are I<not> returned in this list."
9255 msgstr ""
9256
9257 #. type: textblock
9258 #: ../fish/guestfish-actions.pod:2052
9259 msgid ""
9260 "For operating systems like Windows which still use drive letters, this call "
9261 "will only return an entry for the first drive \"mounted on\" C</>.  For "
9262 "information about the mapping of drive letters to partitions, see L</inspect-"
9263 "get-drive-mappings>."
9264 msgstr ""
9265
9266 #. type: textblock
9267 #: ../fish/guestfish-actions.pod:2058
9268 msgid ""
9269 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9270 "get-filesystems>."
9271 msgstr ""
9272
9273 #. type: =head2
9274 #: ../fish/guestfish-actions.pod:2061
9275 msgid "inspect-get-package-format"
9276 msgstr "inspect-get-package-format"
9277
9278 #. type: verbatim
9279 #: ../fish/guestfish-actions.pod:2063
9280 #, no-wrap
9281 msgid ""
9282 " inspect-get-package-format root\n"
9283 "\n"
9284 msgstr ""
9285 " inspect-get-package-format корінь\n"
9286 "\n"
9287
9288 #. type: textblock
9289 #: ../fish/guestfish-actions.pod:2065
9290 msgid ""
9291 "This function and L</inspect-get-package-management> return the package "
9292 "format and package management tool used by the inspected operating system.  "
9293 "For example for Fedora these functions would return C<rpm> (package format) "
9294 "and C<yum> (package management)."
9295 msgstr ""
9296
9297 #. type: textblock
9298 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3049
9299 msgid ""
9300 "This returns the string C<unknown> if we could not determine the package "
9301 "format I<or> if the operating system does not have a real packaging system "
9302 "(eg. Windows)."
9303 msgstr ""
9304
9305 #. type: textblock
9306 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3053
9307 msgid ""
9308 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9309 "Future versions of libguestfs may return other strings."
9310 msgstr ""
9311
9312 #. type: =head2
9313 #: ../fish/guestfish-actions.pod:2080
9314 msgid "inspect-get-package-management"
9315 msgstr "inspect-get-package-management"
9316
9317 #. type: verbatim
9318 #: ../fish/guestfish-actions.pod:2082
9319 #, no-wrap
9320 msgid ""
9321 " inspect-get-package-management root\n"
9322 "\n"
9323 msgstr ""
9324 " inspect-get-package-management корінь\n"
9325 "\n"
9326
9327 #. type: textblock
9328 #: ../fish/guestfish-actions.pod:2084
9329 msgid ""
9330 "L</inspect-get-package-format> and this function return the package format "
9331 "and package management tool used by the inspected operating system.  For "
9332 "example for Fedora these functions would return C<rpm> (package format) and "
9333 "C<yum> (package management)."
9334 msgstr ""
9335
9336 #. type: textblock
9337 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3075
9338 msgid ""
9339 "This returns the string C<unknown> if we could not determine the package "
9340 "management tool I<or> if the operating system does not have a real packaging "
9341 "system (eg. Windows)."
9342 msgstr ""
9343
9344 #. type: textblock
9345 #: ../fish/guestfish-actions.pod:2094 ../src/guestfs-actions.pod:3079
9346 msgid ""
9347 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9348 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9349 "libguestfs may return other strings."
9350 msgstr ""
9351
9352 #. type: =head2
9353 #: ../fish/guestfish-actions.pod:2101
9354 msgid "inspect-get-product-name"
9355 msgstr "inspect-get-product-name"
9356
9357 #. type: verbatim
9358 #: ../fish/guestfish-actions.pod:2103
9359 #, no-wrap
9360 msgid ""
9361 " inspect-get-product-name root\n"
9362 "\n"
9363 msgstr ""
9364 " inspect-get-product-name корінь\n"
9365 "\n"
9366
9367 #. type: textblock
9368 #: ../fish/guestfish-actions.pod:2105 ../src/guestfs-actions.pod:3097
9369 msgid ""
9370 "This returns the product name of the inspected operating system.  The "
9371 "product name is generally some freeform string which can be displayed to the "
9372 "user, but should not be parsed by programs."
9373 msgstr ""
9374
9375 #. type: textblock
9376 #: ../fish/guestfish-actions.pod:2110 ../src/guestfs-actions.pod:3102
9377 msgid ""
9378 "If the product name could not be determined, then the string C<unknown> is "
9379 "returned."
9380 msgstr ""
9381
9382 #. type: =head2
9383 #: ../fish/guestfish-actions.pod:2115
9384 msgid "inspect-get-product-variant"
9385 msgstr ""
9386
9387 #. type: verbatim
9388 #: ../fish/guestfish-actions.pod:2117
9389 #, no-wrap
9390 msgid ""
9391 " inspect-get-product-variant root\n"
9392 "\n"
9393 msgstr ""
9394
9395 #. type: textblock
9396 #: ../fish/guestfish-actions.pod:2119 ../src/guestfs-actions.pod:3118
9397 msgid "This returns the product variant of the inspected operating system."
9398 msgstr ""
9399
9400 #. type: textblock
9401 #: ../fish/guestfish-actions.pod:2122 ../src/guestfs-actions.pod:3121
9402 msgid ""
9403 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9404 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9405 "is usually a string such as C<Client> or C<Server> (other values are "
9406 "possible).  This can be used to distinguish consumer and enterprise versions "
9407 "of Windows that have the same version number (for example, Windows 7 and "
9408 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9409 "the latter is C<Server>)."
9410 msgstr ""
9411
9412 #. type: textblock
9413 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3130
9414 msgid ""
9415 "For enterprise Linux guests, in future we intend this to return the product "
9416 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9417 "implemented at present."
9418 msgstr ""
9419
9420 #. type: textblock
9421 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3134
9422 msgid ""
9423 "If the product variant could not be determined, then the string C<unknown> "
9424 "is returned."
9425 msgstr ""
9426
9427 #. type: textblock
9428 #: ../fish/guestfish-actions.pod:2138
9429 msgid ""
9430 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9431 "get-product-name>, L</inspect-get-major-version>."
9432 msgstr ""
9433
9434 #. type: =head2
9435 #: ../fish/guestfish-actions.pod:2142
9436 msgid "inspect-get-roots"
9437 msgstr "inspect-get-roots"
9438
9439 #. type: verbatim
9440 #: ../fish/guestfish-actions.pod:2144
9441 #, no-wrap
9442 msgid ""
9443 " inspect-get-roots\n"
9444 "\n"
9445 msgstr ""
9446 " inspect-get-roots\n"
9447 "\n"
9448
9449 #. type: textblock
9450 #: ../fish/guestfish-actions.pod:2146
9451 msgid ""
9452 "This function is a convenient way to get the list of root devices, as "
9453 "returned from a previous call to L</inspect-os>, but without redoing the "
9454 "whole inspection process."
9455 msgstr ""
9456
9457 #. type: textblock
9458 #: ../fish/guestfish-actions.pod:2150
9459 msgid ""
9460 "This returns an empty list if either no root devices were found or the "
9461 "caller has not called L</inspect-os>."
9462 msgstr ""
9463
9464 #. type: =head2
9465 #: ../fish/guestfish-actions.pod:2155
9466 msgid "inspect-get-type"
9467 msgstr "inspect-get-type"
9468
9469 #. type: verbatim
9470 #: ../fish/guestfish-actions.pod:2157
9471 #, no-wrap
9472 msgid ""
9473 " inspect-get-type root\n"
9474 "\n"
9475 msgstr ""
9476 " inspect-get-type корінь\n"
9477 "\n"
9478
9479 #. type: textblock
9480 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3172
9481 msgid ""
9482 "This returns the type of the inspected operating system.  Currently defined "
9483 "types are:"
9484 msgstr ""
9485
9486 #. type: =item
9487 #: ../fish/guestfish-actions.pod:2164 ../src/guestfs-actions.pod:3177
9488 msgid "\"linux\""
9489 msgstr "\"linux\""
9490
9491 #. type: textblock
9492 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3179
9493 msgid "Any Linux-based operating system."
9494 msgstr ""
9495
9496 #. type: textblock
9497 #: ../fish/guestfish-actions.pod:2170 ../src/guestfs-actions.pod:3183
9498 msgid "Any Microsoft Windows operating system."
9499 msgstr ""
9500
9501 #. type: =item
9502 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3185
9503 msgid "\"freebsd\""
9504 msgstr "\"freebsd\""
9505
9506 #. type: textblock
9507 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3187
9508 msgid "FreeBSD."
9509 msgstr "FreeBSD."
9510
9511 #. type: textblock
9512 #: ../fish/guestfish-actions.pod:2178 ../src/guestfs-actions.pod:3191
9513 msgid "The operating system type could not be determined."
9514 msgstr ""
9515
9516 #. type: =head2
9517 #: ../fish/guestfish-actions.pod:2187
9518 msgid "inspect-get-windows-current-control-set"
9519 msgstr ""
9520
9521 #. type: verbatim
9522 #: ../fish/guestfish-actions.pod:2189
9523 #, no-wrap
9524 msgid ""
9525 " inspect-get-windows-current-control-set root\n"
9526 "\n"
9527 msgstr ""
9528
9529 #. type: textblock
9530 #: ../fish/guestfish-actions.pod:2191 ../src/guestfs-actions.pod:3211
9531 msgid ""
9532 "This returns the Windows CurrentControlSet of the inspected guest.  The "
9533 "CurrentControlSet is a registry key name such as C<ControlSet001>."
9534 msgstr ""
9535
9536 #. type: textblock
9537 #: ../fish/guestfish-actions.pod:2194 ../src/guestfs-actions.pod:3214
9538 msgid ""
9539 "This call assumes that the guest is Windows and that the Registry could be "
9540 "examined by inspection.  If this is not the case then an error is returned."
9541 msgstr ""
9542
9543 #. type: =head2
9544 #: ../fish/guestfish-actions.pod:2200
9545 msgid "inspect-get-windows-systemroot"
9546 msgstr "inspect-get-windows-systemroot"
9547
9548 #. type: verbatim
9549 #: ../fish/guestfish-actions.pod:2202
9550 #, no-wrap
9551 msgid ""
9552 " inspect-get-windows-systemroot root\n"
9553 "\n"
9554 msgstr ""
9555 " inspect-get-windows-systemroot корінь\n"
9556 "\n"
9557
9558 #. type: textblock
9559 #: ../fish/guestfish-actions.pod:2204 ../src/guestfs-actions.pod:3231
9560 msgid ""
9561 "This returns the Windows systemroot of the inspected guest.  The systemroot "
9562 "is a directory path such as C</WINDOWS>."
9563 msgstr ""
9564
9565 #. type: textblock
9566 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3234
9567 msgid ""
9568 "This call assumes that the guest is Windows and that the systemroot could be "
9569 "determined by inspection.  If this is not the case then an error is returned."
9570 msgstr ""
9571
9572 #. type: =head2
9573 #: ../fish/guestfish-actions.pod:2213
9574 msgid "inspect-is-live"
9575 msgstr "inspect-is-live"
9576
9577 #. type: verbatim
9578 #: ../fish/guestfish-actions.pod:2215
9579 #, no-wrap
9580 msgid ""
9581 " inspect-is-live root\n"
9582 "\n"
9583 msgstr ""
9584 " inspect-is-live корінь\n"
9585 "\n"
9586
9587 #. type: textblock
9588 #: ../fish/guestfish-actions.pod:2217
9589 msgid ""
9590 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9591 "then this returns true if a live image was detected on the disk."
9592 msgstr ""
9593
9594 #. type: =head2
9595 #: ../fish/guestfish-actions.pod:2223
9596 msgid "inspect-is-multipart"
9597 msgstr "inspect-is-multipart"
9598
9599 #. type: verbatim
9600 #: ../fish/guestfish-actions.pod:2225
9601 #, no-wrap
9602 msgid ""
9603 " inspect-is-multipart root\n"
9604 "\n"
9605 msgstr ""
9606 " inspect-is-multipart корінь\n"
9607 "\n"
9608
9609 #. type: textblock
9610 #: ../fish/guestfish-actions.pod:2227
9611 msgid ""
9612 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9613 "then this returns true if the disk is part of a set."
9614 msgstr ""
9615
9616 #. type: =head2
9617 #: ../fish/guestfish-actions.pod:2233
9618 msgid "inspect-is-netinst"
9619 msgstr "inspect-is-netinst"
9620
9621 #. type: verbatim
9622 #: ../fish/guestfish-actions.pod:2235
9623 #, no-wrap
9624 msgid ""
9625 " inspect-is-netinst root\n"
9626 "\n"
9627 msgstr ""
9628 " inspect-is-netinst корінь\n"
9629 "\n"
9630
9631 #. type: textblock
9632 #: ../fish/guestfish-actions.pod:2237
9633 msgid ""
9634 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
9635 "then this returns true if the disk is a network installer, ie. not a self-"
9636 "contained install CD but one which is likely to require network access to "
9637 "complete the install."
9638 msgstr ""
9639
9640 #. type: =head2
9641 #: ../fish/guestfish-actions.pod:2245
9642 msgid "inspect-list-applications"
9643 msgstr "inspect-list-applications"
9644
9645 #. type: verbatim
9646 #: ../fish/guestfish-actions.pod:2247
9647 #, no-wrap
9648 msgid ""
9649 " inspect-list-applications root\n"
9650 "\n"
9651 msgstr ""
9652 " inspect-list-applications кореневий_каталог\n"
9653 "\n"
9654
9655 #. type: textblock
9656 #: ../fish/guestfish-actions.pod:2249 ../src/guestfs-actions.pod:3301
9657 msgid "Return the list of applications installed in the operating system."
9658 msgstr ""
9659
9660 #. type: textblock
9661 #: ../fish/guestfish-actions.pod:2251
9662 msgid ""
9663 "I<Note:> This call works differently from other parts of the inspection "
9664 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
9665 "then mount up the disks, before calling this.  Listing applications is a "
9666 "significantly more difficult operation which requires access to the full "
9667 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
9668 "are just returning data cached in the libguestfs handle, this call actually "
9669 "reads parts of the mounted filesystems during the call."
9670 msgstr ""
9671
9672 #. type: textblock
9673 #: ../fish/guestfish-actions.pod:2261 ../src/guestfs-actions.pod:3313
9674 msgid ""
9675 "This returns an empty list if the inspection code was not able to determine "
9676 "the list of applications."
9677 msgstr ""
9678
9679 #. type: textblock
9680 #: ../fish/guestfish-actions.pod:2264 ../src/guestfs-actions.pod:3316
9681 msgid "The application structure contains the following fields:"
9682 msgstr ""
9683
9684 #. type: =item
9685 #: ../fish/guestfish-actions.pod:2268 ../src/guestfs-actions.pod:3320
9686 msgid "C<app_name>"
9687 msgstr "C<app_name>"
9688
9689 #. type: textblock
9690 #: ../fish/guestfish-actions.pod:2270 ../src/guestfs-actions.pod:3322
9691 msgid ""
9692 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
9693 "guests, this is the package name."
9694 msgstr ""
9695
9696 #. type: =item
9697 #: ../fish/guestfish-actions.pod:2273 ../src/guestfs-actions.pod:3325
9698 msgid "C<app_display_name>"
9699 msgstr "C<app_display_name>"
9700
9701 #. type: textblock
9702 #: ../fish/guestfish-actions.pod:2275 ../src/guestfs-actions.pod:3327
9703 msgid ""
9704 "The display name of the application, sometimes localized to the install "
9705 "language of the guest operating system."
9706 msgstr ""
9707
9708 #. type: textblock
9709 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3330
9710 msgid ""
9711 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
9712 "to display something can use C<app_name> instead."
9713 msgstr ""
9714
9715 #. type: =item
9716 #: ../fish/guestfish-actions.pod:2281 ../src/guestfs-actions.pod:3333
9717 msgid "C<app_epoch>"
9718 msgstr "C<app_epoch>"
9719
9720 #. type: textblock
9721 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3335
9722 msgid ""
9723 "For package managers which use epochs, this contains the epoch of the "
9724 "package (an integer).  If unavailable, this is returned as C<0>."
9725 msgstr ""
9726
9727 #. type: =item
9728 #: ../fish/guestfish-actions.pod:2286 ../src/guestfs-actions.pod:3338
9729 msgid "C<app_version>"
9730 msgstr "C<app_version>"
9731
9732 #. type: textblock
9733 #: ../fish/guestfish-actions.pod:2288 ../src/guestfs-actions.pod:3340
9734 msgid ""
9735 "The version string of the application or package.  If unavailable this is "
9736 "returned as an empty string C<\"\">."
9737 msgstr ""
9738
9739 #. type: =item
9740 #: ../fish/guestfish-actions.pod:2291 ../src/guestfs-actions.pod:3343
9741 msgid "C<app_release>"
9742 msgstr "C<app_release>"
9743
9744 #. type: textblock
9745 #: ../fish/guestfish-actions.pod:2293 ../src/guestfs-actions.pod:3345
9746 msgid ""
9747 "The release string of the application or package, for package managers that "
9748 "use this.  If unavailable this is returned as an empty string C<\"\">."
9749 msgstr ""
9750
9751 #. type: =item
9752 #: ../fish/guestfish-actions.pod:2297 ../src/guestfs-actions.pod:3349
9753 msgid "C<app_install_path>"
9754 msgstr "C<app_install_path>"
9755
9756 #. type: textblock
9757 #: ../fish/guestfish-actions.pod:2299 ../src/guestfs-actions.pod:3351
9758 msgid ""
9759 "The installation path of the application (on operating systems such as "
9760 "Windows which use installation paths).  This path is in the format used by "
9761 "the guest operating system, it is not a libguestfs path."
9762 msgstr ""
9763
9764 #. type: textblock
9765 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3356
9766 msgid "If unavailable this is returned as an empty string C<\"\">."
9767 msgstr ""
9768
9769 #. type: =item
9770 #: ../fish/guestfish-actions.pod:2306 ../src/guestfs-actions.pod:3358
9771 msgid "C<app_trans_path>"
9772 msgstr "C<app_trans_path>"
9773
9774 #. type: textblock
9775 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3360
9776 msgid ""
9777 "The install path translated into a libguestfs path.  If unavailable this is "
9778 "returned as an empty string C<\"\">."
9779 msgstr ""
9780
9781 #. type: =item
9782 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3363
9783 msgid "C<app_publisher>"
9784 msgstr "C<app_publisher>"
9785
9786 #. type: textblock
9787 #: ../fish/guestfish-actions.pod:2313 ../src/guestfs-actions.pod:3365
9788 msgid ""
9789 "The name of the publisher of the application, for package managers that use "
9790 "this.  If unavailable this is returned as an empty string C<\"\">."
9791 msgstr ""
9792
9793 #. type: =item
9794 #: ../fish/guestfish-actions.pod:2317 ../src/guestfs-actions.pod:3369
9795 msgid "C<app_url>"
9796 msgstr "C<app_url>"
9797
9798 #. type: textblock
9799 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3371
9800 msgid ""
9801 "The URL (eg. upstream URL) of the application.  If unavailable this is "
9802 "returned as an empty string C<\"\">."
9803 msgstr ""
9804
9805 #. type: =item
9806 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3374
9807 msgid "C<app_source_package>"
9808 msgstr "C<app_source_package>"
9809
9810 #. type: textblock
9811 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3376
9812 msgid ""
9813 "For packaging systems which support this, the name of the source package.  "
9814 "If unavailable this is returned as an empty string C<\"\">."
9815 msgstr ""
9816
9817 #. type: =item
9818 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3379
9819 msgid "C<app_summary>"
9820 msgstr "C<app_summary>"
9821
9822 #. type: textblock
9823 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3381
9824 msgid ""
9825 "A short (usually one line) description of the application or package.  If "
9826 "unavailable this is returned as an empty string C<\"\">."
9827 msgstr ""
9828
9829 #. type: =item
9830 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3384
9831 msgid "C<app_description>"
9832 msgstr "C<app_description>"
9833
9834 #. type: textblock
9835 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3386
9836 msgid ""
9837 "A longer description of the application or package.  If unavailable this is "
9838 "returned as an empty string C<\"\">."
9839 msgstr ""
9840
9841 #. type: =head2
9842 #: ../fish/guestfish-actions.pod:2341
9843 msgid "inspect-os"
9844 msgstr "inspect-os"
9845
9846 #. type: verbatim
9847 #: ../fish/guestfish-actions.pod:2343
9848 #, no-wrap
9849 msgid ""
9850 " inspect-os\n"
9851 "\n"
9852 msgstr ""
9853 " inspect-os\n"
9854 "\n"
9855
9856 #. type: textblock
9857 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3404
9858 msgid ""
9859 "This function uses other libguestfs functions and certain heuristics to "
9860 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
9861 "for operating systems."
9862 msgstr ""
9863
9864 #. type: textblock
9865 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3408
9866 msgid "The list returned is empty if no operating systems were found."
9867 msgstr ""
9868
9869 #. type: textblock
9870 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3410
9871 msgid ""
9872 "If one operating system was found, then this returns a list with a single "
9873 "element, which is the name of the root filesystem of this operating system.  "
9874 "It is also possible for this function to return a list containing more than "
9875 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
9876 "element being the root filesystem of one of the operating systems."
9877 msgstr ""
9878
9879 #. type: textblock
9880 #: ../fish/guestfish-actions.pod:2358
9881 msgid ""
9882 "You can pass the root string(s) returned to other L</inspect-get-*> "
9883 "functions in order to query further information about each operating system, "
9884 "such as the name and version."
9885 msgstr ""
9886
9887 #. type: textblock
9888 #: ../fish/guestfish-actions.pod:2363
9889 msgid ""
9890 "This function uses other libguestfs features such as L</mount-ro> and L</"
9891 "umount-all> in order to mount and unmount filesystems and look at the "
9892 "contents.  This should be called with no disks currently mounted.  The "
9893 "function may also use Augeas, so any existing Augeas handle will be closed."
9894 msgstr ""
9895
9896 #. type: textblock
9897 #: ../fish/guestfish-actions.pod:2369 ../src/guestfs-actions.pod:3428
9898 msgid ""
9899 "This function cannot decrypt encrypted disks.  The caller must do that first "
9900 "(supplying the necessary keys) if the disk is encrypted."
9901 msgstr ""
9902
9903 #. type: textblock
9904 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2573
9905 #: ../fish/guestfish-actions.pod:2632
9906 msgid "See also L</list-filesystems>."
9907 msgstr "Див. також L</list-filesystems>."
9908
9909 #. type: =head2
9910 #: ../fish/guestfish-actions.pod:2377
9911 msgid "is-blockdev"
9912 msgstr "is-blockdev"
9913
9914 #. type: verbatim
9915 #: ../fish/guestfish-actions.pod:2379
9916 #, no-wrap
9917 msgid ""
9918 " is-blockdev path\n"
9919 "\n"
9920 msgstr ""
9921 " is-blockdev шлях\n"
9922 "\n"
9923
9924 #. type: textblock
9925 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3448
9926 msgid ""
9927 "This returns C<true> if and only if there is a block device with the given "
9928 "C<path> name."
9929 msgstr ""
9930
9931 #. type: textblock
9932 #: ../fish/guestfish-actions.pod:2384 ../fish/guestfish-actions.pod:2402
9933 #: ../fish/guestfish-actions.pod:2421 ../fish/guestfish-actions.pod:2430
9934 #: ../fish/guestfish-actions.pod:2440 ../fish/guestfish-actions.pod:2474
9935 #: ../fish/guestfish-actions.pod:2483
9936 msgid "See also L</stat>."
9937 msgstr "Див. також L</stat>."
9938
9939 #. type: =head2
9940 #: ../fish/guestfish-actions.pod:2386
9941 msgid "is-busy"
9942 msgstr "is-busy"
9943
9944 #. type: verbatim
9945 #: ../fish/guestfish-actions.pod:2388
9946 #, no-wrap
9947 msgid ""
9948 " is-busy\n"
9949 "\n"
9950 msgstr ""
9951 " is-busy\n"
9952 "\n"
9953
9954 #. type: textblock
9955 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3462
9956 msgid ""
9957 "This returns true iff this handle is busy processing a command (in the "
9958 "C<BUSY> state)."
9959 msgstr ""
9960
9961 #. type: =head2
9962 #: ../fish/guestfish-actions.pod:2395
9963 msgid "is-chardev"
9964 msgstr "is-chardev"
9965
9966 #. type: verbatim
9967 #: ../fish/guestfish-actions.pod:2397
9968 #, no-wrap
9969 msgid ""
9970 " is-chardev path\n"
9971 "\n"
9972 msgstr ""
9973 " is-chardev шлях\n"
9974 "\n"
9975
9976 #. type: textblock
9977 #: ../fish/guestfish-actions.pod:2399 ../src/guestfs-actions.pod:3477
9978 msgid ""
9979 "This returns C<true> if and only if there is a character device with the "
9980 "given C<path> name."
9981 msgstr ""
9982
9983 #. type: =head2
9984 #: ../fish/guestfish-actions.pod:2404
9985 msgid "is-config"
9986 msgstr "is-config"
9987
9988 #. type: verbatim
9989 #: ../fish/guestfish-actions.pod:2406
9990 #, no-wrap
9991 msgid ""
9992 " is-config\n"
9993 "\n"
9994 msgstr ""
9995 " is-config\n"
9996 "\n"
9997
9998 #. type: textblock
9999 #: ../fish/guestfish-actions.pod:2408 ../src/guestfs-actions.pod:3491
10000 msgid ""
10001 "This returns true iff this handle is being configured (in the C<CONFIG> "
10002 "state)."
10003 msgstr ""
10004
10005 #. type: =head2
10006 #: ../fish/guestfish-actions.pod:2413
10007 msgid "is-dir"
10008 msgstr "is-dir"
10009
10010 #. type: verbatim
10011 #: ../fish/guestfish-actions.pod:2415
10012 #, no-wrap
10013 msgid ""
10014 " is-dir path\n"
10015 "\n"
10016 msgstr ""
10017 " is-dir шлях\n"
10018 "\n"
10019
10020 #. type: textblock
10021 #: ../fish/guestfish-actions.pod:2417 ../src/guestfs-actions.pod:3506
10022 msgid ""
10023 "This returns C<true> if and only if there is a directory with the given "
10024 "C<path> name.  Note that it returns false for other objects like files."
10025 msgstr ""
10026
10027 #. type: =head2
10028 #: ../fish/guestfish-actions.pod:2423
10029 msgid "is-fifo"
10030 msgstr "is-fifo"
10031
10032 #. type: verbatim
10033 #: ../fish/guestfish-actions.pod:2425
10034 #, no-wrap
10035 msgid ""
10036 " is-fifo path\n"
10037 "\n"
10038 msgstr ""
10039 " is-fifo шлях\n"
10040 "\n"
10041
10042 #. type: textblock
10043 #: ../fish/guestfish-actions.pod:2427 ../src/guestfs-actions.pod:3522
10044 msgid ""
10045 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
10046 "given C<path> name."
10047 msgstr ""
10048
10049 #. type: =head2
10050 #: ../fish/guestfish-actions.pod:2432
10051 msgid "is-file"
10052 msgstr "is-file"
10053
10054 #. type: verbatim
10055 #: ../fish/guestfish-actions.pod:2434
10056 #, no-wrap
10057 msgid ""
10058 " is-file path\n"
10059 "\n"
10060 msgstr ""
10061 " is-file шлях\n"
10062 "\n"
10063
10064 #. type: textblock
10065 #: ../fish/guestfish-actions.pod:2436 ../src/guestfs-actions.pod:3537
10066 msgid ""
10067 "This returns C<true> if and only if there is a regular file with the given "
10068 "C<path> name.  Note that it returns false for other objects like directories."
10069 msgstr ""
10070
10071 #. type: =head2
10072 #: ../fish/guestfish-actions.pod:2442
10073 msgid "is-launching"
10074 msgstr "is-launching"
10075
10076 #. type: verbatim
10077 #: ../fish/guestfish-actions.pod:2444
10078 #, no-wrap
10079 msgid ""
10080 " is-launching\n"
10081 "\n"
10082 msgstr ""
10083 " is-launching\n"
10084 "\n"
10085
10086 #. type: textblock
10087 #: ../fish/guestfish-actions.pod:2446 ../src/guestfs-actions.pod:3552
10088 msgid ""
10089 "This returns true iff this handle is launching the subprocess (in the "
10090 "C<LAUNCHING> state)."
10091 msgstr ""
10092
10093 #. type: =head2
10094 #: ../fish/guestfish-actions.pod:2451
10095 msgid "is-lv"
10096 msgstr "is-lv"
10097
10098 #. type: verbatim
10099 #: ../fish/guestfish-actions.pod:2453
10100 #, no-wrap
10101 msgid ""
10102 " is-lv device\n"
10103 "\n"
10104 msgstr ""
10105 " is-lv пристрій\n"
10106 "\n"
10107
10108 #. type: textblock
10109 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3567
10110 msgid ""
10111 "This command tests whether C<device> is a logical volume, and returns true "
10112 "iff this is the case."
10113 msgstr ""
10114
10115 #. type: =head2
10116 #: ../fish/guestfish-actions.pod:2458
10117 msgid "is-ready"
10118 msgstr "is-ready"
10119
10120 #. type: verbatim
10121 #: ../fish/guestfish-actions.pod:2460
10122 #, no-wrap
10123 msgid ""
10124 " is-ready\n"
10125 "\n"
10126 msgstr ""
10127 " is-ready\n"
10128 "\n"
10129
10130 #. type: textblock
10131 #: ../fish/guestfish-actions.pod:2462 ../src/guestfs-actions.pod:3579
10132 msgid ""
10133 "This returns true iff this handle is ready to accept commands (in the "
10134 "C<READY> state)."
10135 msgstr ""
10136
10137 #. type: =head2
10138 #: ../fish/guestfish-actions.pod:2467
10139 msgid "is-socket"
10140 msgstr "is-socket"
10141
10142 #. type: verbatim
10143 #: ../fish/guestfish-actions.pod:2469
10144 #, no-wrap
10145 msgid ""
10146 " is-socket path\n"
10147 "\n"
10148 msgstr ""
10149 " is-socket шлях\n"
10150 "\n"
10151
10152 #. type: textblock
10153 #: ../fish/guestfish-actions.pod:2471 ../src/guestfs-actions.pod:3594
10154 msgid ""
10155 "This returns C<true> if and only if there is a Unix domain socket with the "
10156 "given C<path> name."
10157 msgstr ""
10158
10159 #. type: =head2
10160 #: ../fish/guestfish-actions.pod:2476
10161 msgid "is-symlink"
10162 msgstr "is-symlink"
10163
10164 #. type: verbatim
10165 #: ../fish/guestfish-actions.pod:2478
10166 #, no-wrap
10167 msgid ""
10168 " is-symlink path\n"
10169 "\n"
10170 msgstr ""
10171 " is-symlink шлях\n"
10172 "\n"
10173
10174 #. type: textblock
10175 #: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3609
10176 msgid ""
10177 "This returns C<true> if and only if there is a symbolic link with the given "
10178 "C<path> name."
10179 msgstr ""
10180
10181 #. type: =head2
10182 #: ../fish/guestfish-actions.pod:2485
10183 msgid "is-zero"
10184 msgstr ""
10185
10186 #. type: verbatim
10187 #: ../fish/guestfish-actions.pod:2487
10188 #, no-wrap
10189 msgid ""
10190 " is-zero path\n"
10191 "\n"
10192 msgstr ""
10193
10194 #. type: textblock
10195 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3624
10196 msgid ""
10197 "This returns true iff the file exists and the file is empty or it contains "
10198 "all zero bytes."
10199 msgstr ""
10200
10201 #. type: =head2
10202 #: ../fish/guestfish-actions.pod:2492
10203 msgid "is-zero-device"
10204 msgstr ""
10205
10206 #. type: verbatim
10207 #: ../fish/guestfish-actions.pod:2494
10208 #, no-wrap
10209 msgid ""
10210 " is-zero-device device\n"
10211 "\n"
10212 msgstr ""
10213
10214 #. type: textblock
10215 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3637
10216 msgid "This returns true iff the device exists and contains all zero bytes."
10217 msgstr ""
10218
10219 #. type: textblock
10220 #: ../fish/guestfish-actions.pod:2498 ../src/guestfs-actions.pod:3639
10221 msgid "Note that for large devices this can take a long time to run."
10222 msgstr ""
10223
10224 #. type: =head2
10225 #: ../fish/guestfish-actions.pod:2500
10226 msgid "kill-subprocess"
10227 msgstr "kill-subprocess"
10228
10229 #. type: verbatim
10230 #: ../fish/guestfish-actions.pod:2502
10231 #, no-wrap
10232 msgid ""
10233 " kill-subprocess\n"
10234 "\n"
10235 msgstr ""
10236 " kill-subprocess\n"
10237 "\n"
10238
10239 #. type: textblock
10240 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3650
10241 msgid "This kills the qemu subprocess.  You should never need to call this."
10242 msgstr ""
10243
10244 #. type: =head2
10245 #: ../fish/guestfish-actions.pod:2506
10246 msgid "launch"
10247 msgstr "launch"
10248
10249 #. type: =head2
10250 #: ../fish/guestfish-actions.pod:2508
10251 msgid "run"
10252 msgstr ""
10253
10254 #. type: verbatim
10255 #: ../fish/guestfish-actions.pod:2510
10256 #, no-wrap
10257 msgid ""
10258 " launch\n"
10259 "\n"
10260 msgstr ""
10261 " launch\n"
10262 "\n"
10263
10264 #. type: textblock
10265 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3661
10266 msgid ""
10267 "Internally libguestfs is implemented by running a virtual machine using "
10268 "L<qemu(1)>."
10269 msgstr ""
10270
10271 #. type: textblock
10272 #: ../fish/guestfish-actions.pod:2515 ../src/guestfs-actions.pod:3664
10273 msgid ""
10274 "You should call this after configuring the handle (eg. adding drives) but "
10275 "before performing any actions."
10276 msgstr ""
10277
10278 #. type: =head2
10279 #: ../fish/guestfish-actions.pod:2518
10280 msgid "lchown"
10281 msgstr "lchown"
10282
10283 #. type: verbatim
10284 #: ../fish/guestfish-actions.pod:2520
10285 #, no-wrap
10286 msgid ""
10287 " lchown owner group path\n"
10288 "\n"
10289 msgstr ""
10290 " lchown власник група шлях\n"
10291 "\n"
10292
10293 #. type: textblock
10294 #: ../fish/guestfish-actions.pod:2522
10295 msgid ""
10296 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
10297 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10298 "target."
10299 msgstr ""
10300
10301 #. type: =head2
10302 #: ../fish/guestfish-actions.pod:2530
10303 msgid "lgetxattr"
10304 msgstr "lgetxattr"
10305
10306 #. type: verbatim
10307 #: ../fish/guestfish-actions.pod:2532
10308 #, no-wrap
10309 msgid ""
10310 " lgetxattr path name\n"
10311 "\n"
10312 msgstr ""
10313 " lgetxattr шлях назва\n"
10314 "\n"
10315
10316 #. type: textblock
10317 #: ../fish/guestfish-actions.pod:2534 ../src/guestfs-actions.pod:3704
10318 msgid ""
10319 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10320 "is a symlink, then this call returns an extended attribute from the symlink."
10321 msgstr ""
10322
10323 #. type: textblock
10324 #: ../fish/guestfish-actions.pod:2548
10325 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10326 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10327
10328 #. type: =head2
10329 #: ../fish/guestfish-actions.pod:2550
10330 msgid "lgetxattrs"
10331 msgstr "lgetxattrs"
10332
10333 #. type: verbatim
10334 #: ../fish/guestfish-actions.pod:2552
10335 #, no-wrap
10336 msgid ""
10337 " lgetxattrs path\n"
10338 "\n"
10339 msgstr ""
10340 " lgetxattrs шлях\n"
10341 "\n"
10342
10343 #. type: textblock
10344 #: ../fish/guestfish-actions.pod:2554
10345 msgid ""
10346 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10347 "it returns the extended attributes of the link itself."
10348 msgstr ""
10349
10350 #. type: =head2
10351 #: ../fish/guestfish-actions.pod:2558
10352 msgid "list-9p"
10353 msgstr ""
10354
10355 #. type: verbatim
10356 #: ../fish/guestfish-actions.pod:2560
10357 #, no-wrap
10358 msgid ""
10359 " list-9p\n"
10360 "\n"
10361 msgstr ""
10362
10363 #. type: textblock
10364 #: ../fish/guestfish-actions.pod:2562 ../src/guestfs-actions.pod:3747
10365 msgid ""
10366 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10367 "returned."
10368 msgstr ""
10369
10370 #. type: =head2
10371 #: ../fish/guestfish-actions.pod:2565
10372 msgid "list-devices"
10373 msgstr "list-devices"
10374
10375 #. type: verbatim
10376 #: ../fish/guestfish-actions.pod:2567
10377 #, no-wrap
10378 msgid ""
10379 " list-devices\n"
10380 "\n"
10381 msgstr ""
10382 " list-devices\n"
10383 "\n"
10384
10385 #. type: textblock
10386 #: ../fish/guestfish-actions.pod:2569 ../src/guestfs-actions.pod:3761
10387 msgid "List all the block devices."
10388 msgstr ""
10389
10390 #. type: textblock
10391 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3763
10392 msgid "The full block device names are returned, eg. C</dev/sda>."
10393 msgstr ""
10394
10395 #. type: =head2
10396 #: ../fish/guestfish-actions.pod:2575
10397 msgid "list-dm-devices"
10398 msgstr ""
10399
10400 #. type: verbatim
10401 #: ../fish/guestfish-actions.pod:2577
10402 #, no-wrap
10403 msgid ""
10404 " list-dm-devices\n"
10405 "\n"
10406 msgstr ""
10407
10408 #. type: textblock
10409 #: ../fish/guestfish-actions.pod:2579 ../src/guestfs-actions.pod:3778
10410 msgid "List all device mapper devices."
10411 msgstr ""
10412
10413 #. type: textblock
10414 #: ../fish/guestfish-actions.pod:2581
10415 msgid ""
10416 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10417 "previous call to L</luks-open>."
10418 msgstr ""
10419
10420 #. type: textblock
10421 #: ../fish/guestfish-actions.pod:2584
10422 msgid ""
10423 "Device mapper devices which correspond to logical volumes are I<not> "
10424 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10425 msgstr ""
10426
10427 #. type: =head2
10428 #: ../fish/guestfish-actions.pod:2588
10429 msgid "list-filesystems"
10430 msgstr "list-filesystems"
10431
10432 #. type: verbatim
10433 #: ../fish/guestfish-actions.pod:2590
10434 #, no-wrap
10435 msgid ""
10436 " list-filesystems\n"
10437 "\n"
10438 msgstr ""
10439 " list-filesystems\n"
10440 "\n"
10441
10442 #. type: textblock
10443 #: ../fish/guestfish-actions.pod:2592 ../src/guestfs-actions.pod:3798
10444 msgid ""
10445 "This inspection command looks for filesystems on partitions, block devices "
10446 "and logical volumes, returning a list of devices containing filesystems and "
10447 "their type."
10448 msgstr ""
10449
10450 #. type: textblock
10451 #: ../fish/guestfish-actions.pod:2596 ../src/guestfs-actions.pod:3802
10452 msgid ""
10453 "The return value is a hash, where the keys are the devices containing "
10454 "filesystems, and the values are the filesystem types.  For example:"
10455 msgstr ""
10456
10457 #. type: verbatim
10458 #: ../fish/guestfish-actions.pod:2600 ../src/guestfs-actions.pod:3806
10459 #, no-wrap
10460 msgid ""
10461 " \"/dev/sda1\" => \"ntfs\"\n"
10462 " \"/dev/sda2\" => \"ext2\"\n"
10463 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10464 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10465 "\n"
10466 msgstr ""
10467
10468 #. type: textblock
10469 #: ../fish/guestfish-actions.pod:2605 ../src/guestfs-actions.pod:3811
10470 msgid ""
10471 "The value can have the special value \"unknown\", meaning the content of the "
10472 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10473 msgstr ""
10474
10475 #. type: textblock
10476 #: ../fish/guestfish-actions.pod:2609
10477 msgid ""
10478 "This command runs other libguestfs commands, which might include L</mount> "
10479 "and L</umount>, and therefore you should use this soon after launch and only "
10480 "when nothing is mounted."
10481 msgstr ""
10482
10483 #. type: textblock
10484 #: ../fish/guestfish-actions.pod:2613
10485 msgid ""
10486 "Not all of the filesystems returned will be mountable.  In particular, swap "
10487 "partitions are returned in the list.  Also this command does not check that "
10488 "each filesystem found is valid and mountable, and some filesystems might be "
10489 "mountable but require special options.  Filesystems may not all belong to a "
10490 "single logical operating system (use L</inspect-os> to look for OSes)."
10491 msgstr ""
10492
10493 #. type: =head2
10494 #: ../fish/guestfish-actions.pod:2621
10495 msgid "list-partitions"
10496 msgstr "list-partitions"
10497
10498 #. type: verbatim
10499 #: ../fish/guestfish-actions.pod:2623
10500 #, no-wrap
10501 msgid ""
10502 " list-partitions\n"
10503 "\n"
10504 msgstr ""
10505 " list-partitions\n"
10506 "\n"
10507
10508 #. type: textblock
10509 #: ../fish/guestfish-actions.pod:2625 ../src/guestfs-actions.pod:3840
10510 msgid "List all the partitions detected on all block devices."
10511 msgstr ""
10512
10513 #. type: textblock
10514 #: ../fish/guestfish-actions.pod:2627 ../src/guestfs-actions.pod:3842
10515 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10516 msgstr ""
10517
10518 #. type: textblock
10519 #: ../fish/guestfish-actions.pod:2629
10520 msgid ""
10521 "This does not return logical volumes.  For that you will need to call L</"
10522 "lvs>."
10523 msgstr ""
10524
10525 #. type: =head2
10526 #: ../fish/guestfish-actions.pod:2634
10527 msgid "ll"
10528 msgstr "ll"
10529
10530 #. type: verbatim
10531 #: ../fish/guestfish-actions.pod:2636
10532 #, no-wrap
10533 msgid ""
10534 " ll directory\n"
10535 "\n"
10536 msgstr ""
10537 " ll каталог\n"
10538 "\n"
10539
10540 #. type: textblock
10541 #: ../fish/guestfish-actions.pod:2638 ../src/guestfs-actions.pod:3861
10542 msgid ""
10543 "List the files in C<directory> (relative to the root directory, there is no "
10544 "cwd) in the format of 'ls -la'."
10545 msgstr ""
10546
10547 #. type: textblock
10548 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3864
10549 msgid ""
10550 "This command is mostly useful for interactive sessions.  It is I<not> "
10551 "intended that you try to parse the output string."
10552 msgstr ""
10553
10554 #. type: =head2
10555 #: ../fish/guestfish-actions.pod:2644
10556 msgid "ln"
10557 msgstr "ln"
10558
10559 #. type: verbatim
10560 #: ../fish/guestfish-actions.pod:2646
10561 #, no-wrap
10562 msgid ""
10563 " ln target linkname\n"
10564 "\n"
10565 msgstr ""
10566 " ln призначення назва_посилання\n"
10567 "\n"
10568
10569 #. type: textblock
10570 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:3879
10571 msgid "This command creates a hard link using the C<ln> command."
10572 msgstr ""
10573
10574 #. type: =head2
10575 #: ../fish/guestfish-actions.pod:2650
10576 msgid "ln-f"
10577 msgstr "ln-f"
10578
10579 #. type: verbatim
10580 #: ../fish/guestfish-actions.pod:2652
10581 #, no-wrap
10582 msgid ""
10583 " ln-f target linkname\n"
10584 "\n"
10585 msgstr ""
10586 " ln-f призначення назва_посилання\n"
10587 "\n"
10588
10589 #. type: textblock
10590 #: ../fish/guestfish-actions.pod:2654 ../src/guestfs-actions.pod:3892
10591 msgid ""
10592 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
10593 "option removes the link (C<linkname>) if it exists already."
10594 msgstr ""
10595
10596 #. type: =head2
10597 #: ../fish/guestfish-actions.pod:2657
10598 msgid "ln-s"
10599 msgstr "ln-s"
10600
10601 #. type: verbatim
10602 #: ../fish/guestfish-actions.pod:2659
10603 #, no-wrap
10604 msgid ""
10605 " ln-s target linkname\n"
10606 "\n"
10607 msgstr ""
10608 " ln-s призначення назва_посилання\n"
10609 "\n"
10610
10611 #. type: textblock
10612 #: ../fish/guestfish-actions.pod:2661 ../src/guestfs-actions.pod:3906
10613 msgid "This command creates a symbolic link using the C<ln -s> command."
10614 msgstr ""
10615
10616 #. type: =head2
10617 #: ../fish/guestfish-actions.pod:2663
10618 msgid "ln-sf"
10619 msgstr "ln-sf"
10620
10621 #. type: verbatim
10622 #: ../fish/guestfish-actions.pod:2665
10623 #, no-wrap
10624 msgid ""
10625 " ln-sf target linkname\n"
10626 "\n"
10627 msgstr ""
10628 " ln-sf призначення назва_посилання\n"
10629 "\n"
10630
10631 #. type: textblock
10632 #: ../fish/guestfish-actions.pod:2667 ../src/guestfs-actions.pod:3919
10633 msgid ""
10634 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
10635 "option removes the link (C<linkname>) if it exists already."
10636 msgstr ""
10637
10638 #. type: =head2
10639 #: ../fish/guestfish-actions.pod:2670
10640 msgid "lremovexattr"
10641 msgstr "lremovexattr"
10642
10643 #. type: verbatim
10644 #: ../fish/guestfish-actions.pod:2672
10645 #, no-wrap
10646 msgid ""
10647 " lremovexattr xattr path\n"
10648 "\n"
10649 msgstr ""
10650
10651 #. type: textblock
10652 #: ../fish/guestfish-actions.pod:2674
10653 msgid ""
10654 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
10655 "it removes an extended attribute of the link itself."
10656 msgstr ""
10657
10658 #. type: =head2
10659 #: ../fish/guestfish-actions.pod:2678
10660 msgid "ls"
10661 msgstr "ls"
10662
10663 #. type: verbatim
10664 #: ../fish/guestfish-actions.pod:2680
10665 #, no-wrap
10666 msgid ""
10667 " ls directory\n"
10668 "\n"
10669 msgstr ""
10670 " ls каталог\n"
10671 "\n"
10672
10673 #. type: textblock
10674 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3947
10675 msgid ""
10676 "List the files in C<directory> (relative to the root directory, there is no "
10677 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
10678 msgstr ""
10679
10680 #. type: textblock
10681 #: ../fish/guestfish-actions.pod:2686
10682 msgid ""
10683 "This command is mostly useful for interactive sessions.  Programs should "
10684 "probably use L</readdir> instead."
10685 msgstr ""
10686
10687 #. type: =head2
10688 #: ../fish/guestfish-actions.pod:2689
10689 msgid "lsetxattr"
10690 msgstr "lsetxattr"
10691
10692 #. type: verbatim
10693 #: ../fish/guestfish-actions.pod:2691
10694 #, no-wrap
10695 msgid ""
10696 " lsetxattr xattr val vallen path\n"
10697 "\n"
10698 msgstr ""
10699
10700 #. type: textblock
10701 #: ../fish/guestfish-actions.pod:2693
10702 msgid ""
10703 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
10704 "sets an extended attribute of the link itself."
10705 msgstr ""
10706
10707 #. type: =head2
10708 #: ../fish/guestfish-actions.pod:2697
10709 msgid "lstat"
10710 msgstr "lstat"
10711
10712 #. type: verbatim
10713 #: ../fish/guestfish-actions.pod:2699
10714 #, no-wrap
10715 msgid ""
10716 " lstat path\n"
10717 "\n"
10718 msgstr ""
10719 " lstat шлях\n"
10720 "\n"
10721
10722 #. type: textblock
10723 #: ../fish/guestfish-actions.pod:2701 ../fish/guestfish-actions.pod:4509
10724 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:6762
10725 msgid "Returns file information for the given C<path>."
10726 msgstr ""
10727
10728 #. type: textblock
10729 #: ../fish/guestfish-actions.pod:2703
10730 msgid ""
10731 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
10732 "the link is stat-ed, not the file it refers to."
10733 msgstr ""
10734
10735 #. type: textblock
10736 #: ../fish/guestfish-actions.pod:2707 ../src/guestfs-actions.pod:3989
10737 msgid "This is the same as the C<lstat(2)> system call."
10738 msgstr ""
10739
10740 #. type: =head2
10741 #: ../fish/guestfish-actions.pod:2709
10742 msgid "lstatlist"
10743 msgstr "lstatlist"
10744
10745 #. type: verbatim
10746 #: ../fish/guestfish-actions.pod:2711
10747 #, no-wrap
10748 msgid ""
10749 " lstatlist path 'names ...'\n"
10750 "\n"
10751 msgstr ""
10752
10753 #. type: textblock
10754 #: ../fish/guestfish-actions.pod:2713
10755 msgid ""
10756 "This call allows you to perform the L</lstat> operation on multiple files, "
10757 "where all files are in the directory C<path>.  C<names> is the list of files "
10758 "from this directory."
10759 msgstr ""
10760
10761 #. type: textblock
10762 #: ../fish/guestfish-actions.pod:2717 ../src/guestfs-actions.pod:4008
10763 msgid ""
10764 "On return you get a list of stat structs, with a one-to-one correspondence "
10765 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
10766 "then the C<ino> field of that structure is set to C<-1>."
10767 msgstr ""
10768
10769 #. type: textblock
10770 #: ../fish/guestfish-actions.pod:2722
10771 msgid ""
10772 "This call is intended for programs that want to efficiently list a directory "
10773 "contents without making many round-trips.  See also L</lxattrlist> for a "
10774 "similarly efficient call for getting extended attributes.  Very long "
10775 "directory listings might cause the protocol message size to be exceeded, "
10776 "causing this call to fail.  The caller must split up such requests into "
10777 "smaller groups of names."
10778 msgstr ""
10779
10780 #. type: =head2
10781 #: ../fish/guestfish-actions.pod:2730
10782 msgid "luks-add-key"
10783 msgstr "luks-add-key"
10784
10785 #. type: verbatim
10786 #: ../fish/guestfish-actions.pod:2732
10787 #, no-wrap
10788 msgid ""
10789 " luks-add-key device keyslot\n"
10790 "\n"
10791 msgstr ""
10792
10793 #. type: textblock
10794 #: ../fish/guestfish-actions.pod:2734 ../src/guestfs-actions.pod:4036
10795 msgid ""
10796 "This command adds a new key on LUKS device C<device>.  C<key> is any "
10797 "existing key, and is used to access the device.  C<newkey> is the new key to "
10798 "add.  C<keyslot> is the key slot that will be replaced."
10799 msgstr ""
10800
10801 #. type: textblock
10802 #: ../fish/guestfish-actions.pod:2739
10803 msgid ""
10804 "Note that if C<keyslot> already contains a key, then this command will "
10805 "fail.  You have to use L</luks-kill-slot> first to remove that key."
10806 msgstr ""
10807
10808 #. type: textblock
10809 #: ../fish/guestfish-actions.pod:2743 ../fish/guestfish-actions.pod:2765
10810 #: ../fish/guestfish-actions.pod:2778 ../fish/guestfish-actions.pod:2792
10811 #: ../fish/guestfish-actions.pod:2818 ../fish/guestfish-actions.pod:2828
10812 msgid ""
10813 "This command has one or more key or passphrase parameters.  Guestfish will "
10814 "prompt for these separately."
10815 msgstr ""
10816
10817 #. type: =head2
10818 #: ../fish/guestfish-actions.pod:2746
10819 msgid "luks-close"
10820 msgstr "luks-close"
10821
10822 #. type: verbatim
10823 #: ../fish/guestfish-actions.pod:2748
10824 #, no-wrap
10825 msgid ""
10826 " luks-close device\n"
10827 "\n"
10828 msgstr ""
10829 " luks-close пристрій\n"
10830 "\n"
10831
10832 #. type: textblock
10833 #: ../fish/guestfish-actions.pod:2750
10834 msgid ""
10835 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
10836 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
10837 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
10838 "block device."
10839 msgstr ""
10840
10841 #. type: =head2
10842 #: ../fish/guestfish-actions.pod:2756
10843 msgid "luks-format"
10844 msgstr "luks-format"
10845
10846 #. type: verbatim
10847 #: ../fish/guestfish-actions.pod:2758
10848 #, no-wrap
10849 msgid ""
10850 " luks-format device keyslot\n"
10851 "\n"
10852 msgstr ""
10853
10854 #. type: textblock
10855 #: ../fish/guestfish-actions.pod:2760 ../src/guestfs-actions.pod:4077
10856 msgid ""
10857 "This command erases existing data on C<device> and formats the device as a "
10858 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
10859 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
10860 msgstr ""
10861
10862 #. type: textblock
10863 #: ../fish/guestfish-actions.pod:2768 ../fish/guestfish-actions.pod:2781
10864 #: ../fish/guestfish-actions.pod:2868 ../fish/guestfish-actions.pod:3529
10865 #: ../fish/guestfish-actions.pod:4055 ../fish/guestfish-actions.pod:4380
10866 #: ../fish/guestfish-actions.pod:4403 ../fish/guestfish-actions.pod:4425
10867 #: ../fish/guestfish-actions.pod:5171 ../src/guestfs-actions.pod:4084
10868 #: ../src/guestfs-actions.pod:4107 ../src/guestfs-actions.pod:4250
10869 #: ../src/guestfs-actions.pod:5353 ../src/guestfs-actions.pod:6141
10870 #: ../src/guestfs-actions.pod:6576 ../src/guestfs-actions.pod:6606
10871 #: ../src/guestfs-actions.pod:6639 ../src/guestfs-actions.pod:7838
10872 msgid ""
10873 "B<This command is dangerous.  Without careful use you can easily destroy all "
10874 "your data>."
10875 msgstr ""
10876
10877 #. type: =head2
10878 #: ../fish/guestfish-actions.pod:2771
10879 msgid "luks-format-cipher"
10880 msgstr "luks-format-cipher"
10881
10882 #. type: verbatim
10883 #: ../fish/guestfish-actions.pod:2773
10884 #, no-wrap
10885 msgid ""
10886 " luks-format-cipher device keyslot cipher\n"
10887 "\n"
10888 msgstr ""
10889
10890 #. type: textblock
10891 #: ../fish/guestfish-actions.pod:2775
10892 msgid ""
10893 "This command is the same as L</luks-format> but it also allows you to set "
10894 "the C<cipher> used."
10895 msgstr ""
10896
10897 #. type: =head2
10898 #: ../fish/guestfish-actions.pod:2784
10899 msgid "luks-kill-slot"
10900 msgstr "luks-kill-slot"
10901
10902 #. type: verbatim
10903 #: ../fish/guestfish-actions.pod:2786
10904 #, no-wrap
10905 msgid ""
10906 " luks-kill-slot device keyslot\n"
10907 "\n"
10908 msgstr ""
10909
10910 #. type: textblock
10911 #: ../fish/guestfish-actions.pod:2788 ../src/guestfs-actions.pod:4124
10912 msgid ""
10913 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
10914 "device C<device>.  C<key> must be one of the I<other> keys."
10915 msgstr ""
10916
10917 #. type: =head2
10918 #: ../fish/guestfish-actions.pod:2795
10919 msgid "luks-open"
10920 msgstr "luks-open"
10921
10922 #. type: verbatim
10923 #: ../fish/guestfish-actions.pod:2797
10924 #, no-wrap
10925 msgid ""
10926 " luks-open device mapname\n"
10927 "\n"
10928 msgstr ""
10929
10930 #. type: textblock
10931 #: ../fish/guestfish-actions.pod:2799 ../src/guestfs-actions.pod:4144
10932 msgid ""
10933 "This command opens a block device which has been encrypted according to the "
10934 "Linux Unified Key Setup (LUKS) standard."
10935 msgstr ""
10936
10937 #. type: textblock
10938 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4147
10939 msgid "C<device> is the encrypted block device or partition."
10940 msgstr ""
10941
10942 #. type: textblock
10943 #: ../fish/guestfish-actions.pod:2804 ../src/guestfs-actions.pod:4149
10944 msgid ""
10945 "The caller must supply one of the keys associated with the LUKS block "
10946 "device, in the C<key> parameter."
10947 msgstr ""
10948
10949 #. type: textblock
10950 #: ../fish/guestfish-actions.pod:2807 ../src/guestfs-actions.pod:4152
10951 msgid ""
10952 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
10953 "writes to this block device are decrypted from and encrypted to the "
10954 "underlying C<device> respectively."
10955 msgstr ""
10956
10957 #. type: textblock
10958 #: ../fish/guestfish-actions.pod:2811
10959 msgid ""
10960 "If this block device contains LVM volume groups, then calling L</vgscan> "
10961 "followed by L</vg-activate-all> will make them visible."
10962 msgstr ""
10963
10964 #. type: textblock
10965 #: ../fish/guestfish-actions.pod:2815
10966 msgid "Use L</list-dm-devices> to list all device mapper devices."
10967 msgstr ""
10968
10969 #. type: =head2
10970 #: ../fish/guestfish-actions.pod:2821
10971 msgid "luks-open-ro"
10972 msgstr "luks-open-ro"
10973
10974 #. type: verbatim
10975 #: ../fish/guestfish-actions.pod:2823
10976 #, no-wrap
10977 msgid ""
10978 " luks-open-ro device mapname\n"
10979 "\n"
10980 msgstr ""
10981
10982 #. type: textblock
10983 #: ../fish/guestfish-actions.pod:2825
10984 msgid ""
10985 "This is the same as L</luks-open> except that a read-only mapping is created."
10986 msgstr ""
10987
10988 #. type: =head2
10989 #: ../fish/guestfish-actions.pod:2831
10990 msgid "lvcreate"
10991 msgstr "lvcreate"
10992
10993 #. type: verbatim
10994 #: ../fish/guestfish-actions.pod:2833
10995 #, no-wrap
10996 msgid ""
10997 " lvcreate logvol volgroup mbytes\n"
10998 "\n"
10999 msgstr ""
11000
11001 #. type: textblock
11002 #: ../fish/guestfish-actions.pod:2835 ../src/guestfs-actions.pod:4198
11003 msgid ""
11004 "This creates an LVM logical volume called C<logvol> on the volume group "
11005 "C<volgroup>, with C<size> megabytes."
11006 msgstr ""
11007
11008 #. type: =head2
11009 #: ../fish/guestfish-actions.pod:2838
11010 msgid "lvm-canonical-lv-name"
11011 msgstr "lvm-canonical-lv-name"
11012
11013 #. type: verbatim
11014 #: ../fish/guestfish-actions.pod:2840
11015 #, no-wrap
11016 msgid ""
11017 " lvm-canonical-lv-name lvname\n"
11018 "\n"
11019 msgstr ""
11020
11021 #. type: textblock
11022 #: ../fish/guestfish-actions.pod:2842 ../src/guestfs-actions.pod:4211
11023 msgid ""
11024 "This converts alternative naming schemes for LVs that you might find to the "
11025 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
11026 "LV>."
11027 msgstr ""
11028
11029 #. type: textblock
11030 #: ../fish/guestfish-actions.pod:2846 ../src/guestfs-actions.pod:4215
11031 msgid ""
11032 "This command returns an error if the C<lvname> parameter does not refer to a "
11033 "logical volume."
11034 msgstr ""
11035
11036 #. type: textblock
11037 #: ../fish/guestfish-actions.pod:2849
11038 msgid "See also L</is-lv>."
11039 msgstr "Див. також L</is-lv>."
11040
11041 #. type: =head2
11042 #: ../fish/guestfish-actions.pod:2851
11043 msgid "lvm-clear-filter"
11044 msgstr "lvm-clear-filter"
11045
11046 #. type: verbatim
11047 #: ../fish/guestfish-actions.pod:2853
11048 #, no-wrap
11049 msgid ""
11050 " lvm-clear-filter\n"
11051 "\n"
11052 msgstr ""
11053 " lvm-clear-filter\n"
11054 "\n"
11055
11056 #. type: textblock
11057 #: ../fish/guestfish-actions.pod:2855
11058 msgid ""
11059 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
11060 "block device."
11061 msgstr ""
11062
11063 #. type: textblock
11064 #: ../fish/guestfish-actions.pod:2858 ../fish/guestfish-actions.pod:2889
11065 #: ../src/guestfs-actions.pod:4233 ../src/guestfs-actions.pod:4275
11066 msgid ""
11067 "This command also clears the LVM cache and performs a volume group scan."
11068 msgstr ""
11069
11070 #. type: =head2
11071 #: ../fish/guestfish-actions.pod:2861
11072 msgid "lvm-remove-all"
11073 msgstr "lvm-remove-all"
11074
11075 #. type: verbatim
11076 #: ../fish/guestfish-actions.pod:2863
11077 #, no-wrap
11078 msgid ""
11079 " lvm-remove-all\n"
11080 "\n"
11081 msgstr ""
11082 " lvm-remove-all\n"
11083 "\n"
11084
11085 #. type: textblock
11086 #: ../fish/guestfish-actions.pod:2865 ../src/guestfs-actions.pod:4245
11087 msgid ""
11088 "This command removes all LVM logical volumes, volume groups and physical "
11089 "volumes."
11090 msgstr ""
11091
11092 #. type: =head2
11093 #: ../fish/guestfish-actions.pod:2871
11094 msgid "lvm-set-filter"
11095 msgstr "lvm-set-filter"
11096
11097 #. type: verbatim
11098 #: ../fish/guestfish-actions.pod:2873
11099 #, no-wrap
11100 msgid ""
11101 " lvm-set-filter 'devices ...'\n"
11102 "\n"
11103 msgstr ""
11104 " lvm-set-filter 'пристрої...'\n"
11105 "\n"
11106
11107 #. type: textblock
11108 #: ../fish/guestfish-actions.pod:2875 ../src/guestfs-actions.pod:4261
11109 msgid ""
11110 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11111 "block devices in the list C<devices>, and will ignore all other attached "
11112 "block devices."
11113 msgstr ""
11114
11115 #. type: textblock
11116 #: ../fish/guestfish-actions.pod:2879 ../src/guestfs-actions.pod:4265
11117 msgid ""
11118 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11119 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
11120 "there are two types of duplication possible: either cloned PVs/VGs which "
11121 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11122 "same name.  In normal operation you cannot create this situation, but you "
11123 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
11124 "inside the LVM metadata."
11125 msgstr ""
11126
11127 #. type: textblock
11128 #: ../fish/guestfish-actions.pod:2892 ../src/guestfs-actions.pod:4278
11129 msgid "You can filter whole block devices or individual partitions."
11130 msgstr ""
11131
11132 #. type: textblock
11133 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4280
11134 msgid ""
11135 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
11136 "filesystem), even if you are not filtering out that VG."
11137 msgstr ""
11138
11139 #. type: =head2
11140 #: ../fish/guestfish-actions.pod:2898
11141 msgid "lvremove"
11142 msgstr "lvremove"
11143
11144 #. type: verbatim
11145 #: ../fish/guestfish-actions.pod:2900
11146 #, no-wrap
11147 msgid ""
11148 " lvremove device\n"
11149 "\n"
11150 msgstr ""
11151 " lvremove пристрій\n"
11152 "\n"
11153
11154 #. type: textblock
11155 #: ../fish/guestfish-actions.pod:2902 ../src/guestfs-actions.pod:4294
11156 msgid ""
11157 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11158 "LV, such as C</dev/VG/LV>."
11159 msgstr ""
11160
11161 #. type: textblock
11162 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4297
11163 msgid ""
11164 "You can also remove all LVs in a volume group by specifying the VG name, C</"
11165 "dev/VG>."
11166 msgstr ""
11167
11168 #. type: =head2
11169 #: ../fish/guestfish-actions.pod:2908
11170 msgid "lvrename"
11171 msgstr "lvrename"
11172
11173 #. type: verbatim
11174 #: ../fish/guestfish-actions.pod:2910
11175 #, no-wrap
11176 msgid ""
11177 " lvrename logvol newlogvol\n"
11178 "\n"
11179 msgstr ""
11180
11181 #. type: textblock
11182 #: ../fish/guestfish-actions.pod:2912 ../src/guestfs-actions.pod:4311
11183 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11184 msgstr ""
11185
11186 #. type: =head2
11187 #: ../fish/guestfish-actions.pod:2914
11188 msgid "lvresize"
11189 msgstr "lvresize"
11190
11191 #. type: verbatim
11192 #: ../fish/guestfish-actions.pod:2916
11193 #, no-wrap
11194 msgid ""
11195 " lvresize device mbytes\n"
11196 "\n"
11197 msgstr ""
11198
11199 #. type: textblock
11200 #: ../fish/guestfish-actions.pod:2918 ../src/guestfs-actions.pod:4324
11201 msgid ""
11202 "This resizes (expands or shrinks) an existing LVM logical volume to "
11203 "C<mbytes>.  When reducing, data in the reduced part is lost."
11204 msgstr ""
11205
11206 #. type: =head2
11207 #: ../fish/guestfish-actions.pod:2922
11208 msgid "lvresize-free"
11209 msgstr "lvresize-free"
11210
11211 #. type: verbatim
11212 #: ../fish/guestfish-actions.pod:2924
11213 #, no-wrap
11214 msgid ""
11215 " lvresize-free lv percent\n"
11216 "\n"
11217 msgstr ""
11218
11219 #. type: textblock
11220 #: ../fish/guestfish-actions.pod:2926 ../src/guestfs-actions.pod:4339
11221 msgid ""
11222 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11223 "remaining free space in the volume group.  Commonly you would call this with "
11224 "pc = 100 which expands the logical volume as much as possible, using all "
11225 "remaining free space in the volume group."
11226 msgstr ""
11227
11228 #. type: =head2
11229 #: ../fish/guestfish-actions.pod:2932
11230 msgid "lvs"
11231 msgstr "lvs"
11232
11233 #. type: verbatim
11234 #: ../fish/guestfish-actions.pod:2934
11235 #, no-wrap
11236 msgid ""
11237 " lvs\n"
11238 "\n"
11239 msgstr ""
11240 " lvs\n"
11241 "\n"
11242
11243 #. type: textblock
11244 #: ../fish/guestfish-actions.pod:2936 ../src/guestfs-actions.pod:4354
11245 msgid ""
11246 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11247 "(8)> command."
11248 msgstr ""
11249
11250 #. type: textblock
11251 #: ../fish/guestfish-actions.pod:2939 ../src/guestfs-actions.pod:4357
11252 msgid ""
11253 "This returns a list of the logical volume device names (eg. C</dev/"
11254 "VolGroup00/LogVol00>)."
11255 msgstr ""
11256
11257 #. type: textblock
11258 #: ../fish/guestfish-actions.pod:2942
11259 msgid "See also L</lvs-full>, L</list-filesystems>."
11260 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
11261
11262 #. type: =head2
11263 #: ../fish/guestfish-actions.pod:2944
11264 msgid "lvs-full"
11265 msgstr "lvs-full"
11266
11267 #. type: verbatim
11268 #: ../fish/guestfish-actions.pod:2946
11269 #, no-wrap
11270 msgid ""
11271 " lvs-full\n"
11272 "\n"
11273 msgstr ""
11274 " lvs-full\n"
11275 "\n"
11276
11277 #. type: textblock
11278 #: ../fish/guestfish-actions.pod:2948 ../src/guestfs-actions.pod:4373
11279 msgid ""
11280 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11281 "(8)> command.  The \"full\" version includes all fields."
11282 msgstr ""
11283
11284 #. type: =head2
11285 #: ../fish/guestfish-actions.pod:2951
11286 msgid "lvuuid"
11287 msgstr "lvuuid"
11288
11289 #. type: verbatim
11290 #: ../fish/guestfish-actions.pod:2953
11291 #, no-wrap
11292 msgid ""
11293 " lvuuid device\n"
11294 "\n"
11295 msgstr ""
11296 " lvuuid пристрій\n"
11297 "\n"
11298
11299 #. type: textblock
11300 #: ../fish/guestfish-actions.pod:2955 ../src/guestfs-actions.pod:4388
11301 msgid "This command returns the UUID of the LVM LV C<device>."
11302 msgstr ""
11303
11304 #. type: =head2
11305 #: ../fish/guestfish-actions.pod:2957
11306 msgid "lxattrlist"
11307 msgstr "lxattrlist"
11308
11309 #. type: verbatim
11310 #: ../fish/guestfish-actions.pod:2959
11311 #, no-wrap
11312 msgid ""
11313 " lxattrlist path 'names ...'\n"
11314 "\n"
11315 msgstr ""
11316
11317 #. type: textblock
11318 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4402
11319 msgid ""
11320 "This call allows you to get the extended attributes of multiple files, where "
11321 "all files are in the directory C<path>.  C<names> is the list of files from "
11322 "this directory."
11323 msgstr ""
11324
11325 #. type: textblock
11326 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4406
11327 msgid ""
11328 "On return you get a flat list of xattr structs which must be interpreted "
11329 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11330 "C<attrval> in this struct is zero-length to indicate there was an error "
11331 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11332 "number (the number of following attributes for this file, which could be C<"
11333 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11334 "for the first named file.  This repeats for the second and subsequent files."
11335 msgstr ""
11336
11337 #. type: textblock
11338 #: ../fish/guestfish-actions.pod:2975
11339 msgid ""
11340 "This call is intended for programs that want to efficiently list a directory "
11341 "contents without making many round-trips.  See also L</lstatlist> for a "
11342 "similarly efficient call for getting standard stats.  Very long directory "
11343 "listings might cause the protocol message size to be exceeded, causing this "
11344 "call to fail.  The caller must split up such requests into smaller groups of "
11345 "names."
11346 msgstr ""
11347
11348 #. type: =head2
11349 #: ../fish/guestfish-actions.pod:2983
11350 msgid "mkdir"
11351 msgstr "mkdir"
11352
11353 #. type: verbatim
11354 #: ../fish/guestfish-actions.pod:2985
11355 #, no-wrap
11356 msgid ""
11357 " mkdir path\n"
11358 "\n"
11359 msgstr ""
11360 " mkdir шлях\n"
11361 "\n"
11362
11363 #. type: textblock
11364 #: ../fish/guestfish-actions.pod:2987 ../src/guestfs-actions.pod:4436
11365 msgid "Create a directory named C<path>."
11366 msgstr ""
11367
11368 #. type: =head2
11369 #: ../fish/guestfish-actions.pod:2989
11370 msgid "mkdir-mode"
11371 msgstr "mkdir-mode"
11372
11373 #. type: verbatim
11374 #: ../fish/guestfish-actions.pod:2991
11375 #, no-wrap
11376 msgid ""
11377 " mkdir-mode path mode\n"
11378 "\n"
11379 msgstr ""
11380 " mkdir-mode шлях режим\n"
11381 "\n"
11382
11383 #. type: textblock
11384 #: ../fish/guestfish-actions.pod:2993 ../src/guestfs-actions.pod:4449
11385 msgid ""
11386 "This command creates a directory, setting the initial permissions of the "
11387 "directory to C<mode>."
11388 msgstr ""
11389
11390 #. type: textblock
11391 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4452
11392 msgid ""
11393 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11394 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11395 "other ways."
11396 msgstr ""
11397
11398 #. type: textblock
11399 #: ../fish/guestfish-actions.pod:3000
11400 msgid "See also L</mkdir>, L</umask>"
11401 msgstr "Див. також L</mkdir>, L</umask>"
11402
11403 #. type: =head2
11404 #: ../fish/guestfish-actions.pod:3002
11405 msgid "mkdir-p"
11406 msgstr "mkdir-p"
11407
11408 #. type: verbatim
11409 #: ../fish/guestfish-actions.pod:3004
11410 #, no-wrap
11411 msgid ""
11412 " mkdir-p path\n"
11413 "\n"
11414 msgstr ""
11415 " mkdir-p шлях\n"
11416 "\n"
11417
11418 #. type: textblock
11419 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4468
11420 msgid ""
11421 "Create a directory named C<path>, creating any parent directories as "
11422 "necessary.  This is like the C<mkdir -p> shell command."
11423 msgstr ""
11424
11425 #. type: =head2
11426 #: ../fish/guestfish-actions.pod:3009
11427 msgid "mkdtemp"
11428 msgstr "mkdtemp"
11429
11430 #. type: verbatim
11431 #: ../fish/guestfish-actions.pod:3011
11432 #, no-wrap
11433 msgid ""
11434 " mkdtemp template\n"
11435 "\n"
11436 msgstr ""
11437 " mkdtemp шаблон\n"
11438 "\n"
11439
11440 #. type: textblock
11441 #: ../fish/guestfish-actions.pod:3013 ../src/guestfs-actions.pod:4481
11442 msgid ""
11443 "This command creates a temporary directory.  The C<template> parameter "
11444 "should be a full pathname for the temporary directory name with the final "
11445 "six characters being \"XXXXXX\"."
11446 msgstr ""
11447
11448 #. type: textblock
11449 #: ../fish/guestfish-actions.pod:3018 ../src/guestfs-actions.pod:4486
11450 msgid ""
11451 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11452 "being suitable for Windows filesystems."
11453 msgstr ""
11454
11455 #. type: textblock
11456 #: ../fish/guestfish-actions.pod:3021 ../src/guestfs-actions.pod:4489
11457 msgid "The name of the temporary directory that was created is returned."
11458 msgstr ""
11459
11460 #. type: textblock
11461 #: ../fish/guestfish-actions.pod:3024 ../src/guestfs-actions.pod:4492
11462 msgid "The temporary directory is created with mode 0700 and is owned by root."
11463 msgstr ""
11464
11465 #. type: textblock
11466 #: ../fish/guestfish-actions.pod:3027 ../src/guestfs-actions.pod:4495
11467 msgid ""
11468 "The caller is responsible for deleting the temporary directory and its "
11469 "contents after use."
11470 msgstr ""
11471
11472 #. type: textblock
11473 #: ../fish/guestfish-actions.pod:3030 ../src/guestfs-actions.pod:4498
11474 msgid "See also: L<mkdtemp(3)>"
11475 msgstr ""
11476
11477 #. type: =head2
11478 #: ../fish/guestfish-actions.pod:3032
11479 msgid "mke2fs-J"
11480 msgstr "mke2fs-J"
11481
11482 #. type: verbatim
11483 #: ../fish/guestfish-actions.pod:3034
11484 #, no-wrap
11485 msgid ""
11486 " mke2fs-J fstype blocksize device journal\n"
11487 "\n"
11488 msgstr ""
11489
11490 #. type: textblock
11491 #: ../fish/guestfish-actions.pod:3036 ../src/guestfs-actions.pod:4514
11492 msgid ""
11493 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11494 "C<journal>.  It is equivalent to the command:"
11495 msgstr ""
11496
11497 #. type: verbatim
11498 #: ../fish/guestfish-actions.pod:3040 ../src/guestfs-actions.pod:4518
11499 #, no-wrap
11500 msgid ""
11501 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11502 "\n"
11503 msgstr ""
11504 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11505 "\n"
11506
11507 #. type: textblock
11508 #: ../fish/guestfish-actions.pod:3042
11509 msgid "See also L</mke2journal>."
11510 msgstr "Див. також L</mke2journal>."
11511
11512 #. type: =head2
11513 #: ../fish/guestfish-actions.pod:3044
11514 msgid "mke2fs-JL"
11515 msgstr "mke2fs-JL"
11516
11517 #. type: verbatim
11518 #: ../fish/guestfish-actions.pod:3046
11519 #, no-wrap
11520 msgid ""
11521 " mke2fs-JL fstype blocksize device label\n"
11522 "\n"
11523 msgstr ""
11524
11525 #. type: textblock
11526 #: ../fish/guestfish-actions.pod:3048 ../src/guestfs-actions.pod:4535
11527 msgid ""
11528 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11529 "the journal labeled C<label>."
11530 msgstr ""
11531
11532 #. type: textblock
11533 #: ../fish/guestfish-actions.pod:3051
11534 msgid "See also L</mke2journal-L>."
11535 msgstr "Див. також L</mke2journal-L>."
11536
11537 #. type: =head2
11538 #: ../fish/guestfish-actions.pod:3053
11539 msgid "mke2fs-JU"
11540 msgstr "mke2fs-JU"
11541
11542 #. type: verbatim
11543 #: ../fish/guestfish-actions.pod:3055
11544 #, no-wrap
11545 msgid ""
11546 " mke2fs-JU fstype blocksize device uuid\n"
11547 "\n"
11548 msgstr ""
11549
11550 #. type: textblock
11551 #: ../fish/guestfish-actions.pod:3057 ../src/guestfs-actions.pod:4553
11552 msgid ""
11553 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11554 "the journal with UUID C<uuid>."
11555 msgstr ""
11556
11557 #. type: textblock
11558 #: ../fish/guestfish-actions.pod:3060
11559 msgid "See also L</mke2journal-U>."
11560 msgstr "Див. також L</mke2journal-U>."
11561
11562 #. type: =head2
11563 #: ../fish/guestfish-actions.pod:3062
11564 msgid "mke2journal"
11565 msgstr "mke2journal"
11566
11567 #. type: verbatim
11568 #: ../fish/guestfish-actions.pod:3064
11569 #, no-wrap
11570 msgid ""
11571 " mke2journal blocksize device\n"
11572 "\n"
11573 msgstr ""
11574
11575 #. type: textblock
11576 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4569
11577 msgid ""
11578 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
11579 "command:"
11580 msgstr ""
11581
11582 #. type: verbatim
11583 #: ../fish/guestfish-actions.pod:3069 ../src/guestfs-actions.pod:4572
11584 #, no-wrap
11585 msgid ""
11586 " mke2fs -O journal_dev -b blocksize device\n"
11587 "\n"
11588 msgstr ""
11589
11590 #. type: =head2
11591 #: ../fish/guestfish-actions.pod:3071
11592 msgid "mke2journal-L"
11593 msgstr "mke2journal-L"
11594
11595 #. type: verbatim
11596 #: ../fish/guestfish-actions.pod:3073
11597 #, no-wrap
11598 msgid ""
11599 " mke2journal-L blocksize label device\n"
11600 "\n"
11601 msgstr ""
11602
11603 #. type: textblock
11604 #: ../fish/guestfish-actions.pod:3075 ../src/guestfs-actions.pod:4586
11605 msgid "This creates an ext2 external journal on C<device> with label C<label>."
11606 msgstr ""
11607
11608 #. type: =head2
11609 #: ../fish/guestfish-actions.pod:3077
11610 msgid "mke2journal-U"
11611 msgstr "mke2journal-U"
11612
11613 #. type: verbatim
11614 #: ../fish/guestfish-actions.pod:3079
11615 #, no-wrap
11616 msgid ""
11617 " mke2journal-U blocksize uuid device\n"
11618 "\n"
11619 msgstr ""
11620
11621 #. type: textblock
11622 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4600
11623 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
11624 msgstr ""
11625
11626 #. type: =head2
11627 #: ../fish/guestfish-actions.pod:3083
11628 msgid "mkfifo"
11629 msgstr "mkfifo"
11630
11631 #. type: verbatim
11632 #: ../fish/guestfish-actions.pod:3085
11633 #, no-wrap
11634 msgid ""
11635 " mkfifo mode path\n"
11636 "\n"
11637 msgstr ""
11638 " mkfifo режим шлях\n"
11639 "\n"
11640
11641 #. type: textblock
11642 #: ../fish/guestfish-actions.pod:3087
11643 msgid ""
11644 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
11645 "is just a convenient wrapper around L</mknod>."
11646 msgstr ""
11647
11648 #. type: =head2
11649 #: ../fish/guestfish-actions.pod:3093
11650 msgid "mkfs"
11651 msgstr "mkfs"
11652
11653 #. type: verbatim
11654 #: ../fish/guestfish-actions.pod:3095
11655 #, no-wrap
11656 msgid ""
11657 " mkfs fstype device\n"
11658 "\n"
11659 msgstr ""
11660 " mkfs тип_файлової_системи пристрій\n"
11661 "\n"
11662
11663 #. type: textblock
11664 #: ../fish/guestfish-actions.pod:3097 ../src/guestfs-actions.pod:4630
11665 msgid ""
11666 "This creates a filesystem on C<device> (usually a partition or LVM logical "
11667 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
11668 msgstr ""
11669
11670 #. type: =head2
11671 #: ../fish/guestfish-actions.pod:3101
11672 msgid "mkfs-b"
11673 msgstr "mkfs-b"
11674
11675 #. type: verbatim
11676 #: ../fish/guestfish-actions.pod:3103
11677 #, no-wrap
11678 msgid ""
11679 " mkfs-b fstype blocksize device\n"
11680 "\n"
11681 msgstr ""
11682
11683 #. type: textblock
11684 #: ../fish/guestfish-actions.pod:3105
11685 msgid ""
11686 "This call is similar to L</mkfs>, but it allows you to control the block "
11687 "size of the resulting filesystem.  Supported block sizes depend on the "
11688 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
11689 msgstr ""
11690
11691 #. type: textblock
11692 #: ../fish/guestfish-actions.pod:3110 ../fish/guestfish-actions.pod:3137
11693 #: ../src/guestfs-actions.pod:4658 ../src/guestfs-actions.pod:4696
11694 msgid ""
11695 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
11696 "cluster size."
11697 msgstr ""
11698
11699 #. type: textblock
11700 #: ../fish/guestfish-actions.pod:3113
11701 msgid ""
11702 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
11703 "instead."
11704 msgstr ""
11705
11706 #. type: =head2
11707 #: ../fish/guestfish-actions.pod:3120
11708 msgid "mkfs-opts"
11709 msgstr "mkfs-opts"
11710
11711 #. type: verbatim
11712 #: ../fish/guestfish-actions.pod:3122
11713 #, no-wrap
11714 msgid ""
11715 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
11716 "\n"
11717 msgstr ""
11718
11719 #. type: textblock
11720 #: ../fish/guestfish-actions.pod:3124 ../src/guestfs-actions.pod:4683
11721 msgid ""
11722 "This function creates a filesystem on C<device>.  The filesystem type is "
11723 "C<fstype>, for example C<ext3>."
11724 msgstr ""
11725
11726 #. type: =item
11727 #: ../fish/guestfish-actions.pod:3131 ../src/guestfs-actions.pod:4690
11728 msgid "C<blocksize>"
11729 msgstr "C<blocksize>"
11730
11731 #. type: textblock
11732 #: ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4692
11733 msgid ""
11734 "The filesystem block size.  Supported block sizes depend on the filesystem "
11735 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
11736 "filesystems."
11737 msgstr ""
11738
11739 #. type: textblock
11740 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4699
11741 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
11742 msgstr ""
11743
11744 #. type: =item
11745 #: ../fish/guestfish-actions.pod:3142 ../src/guestfs-actions.pod:4701
11746 msgid "C<features>"
11747 msgstr "C<features>"
11748
11749 #. type: textblock
11750 #: ../fish/guestfish-actions.pod:3144 ../src/guestfs-actions.pod:4703
11751 msgid "This passes the I<-O> parameter to the external mkfs program."
11752 msgstr ""
11753
11754 #. type: textblock
11755 #: ../fish/guestfish-actions.pod:3146 ../src/guestfs-actions.pod:4705
11756 msgid ""
11757 "For certain filesystem types, this allows extra filesystem features to be "
11758 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
11759 msgstr ""
11760
11761 #. type: textblock
11762 #: ../fish/guestfish-actions.pod:3150 ../src/guestfs-actions.pod:4709
11763 msgid ""
11764 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
11765 "type."
11766 msgstr ""
11767
11768 #. type: =item
11769 #: ../fish/guestfish-actions.pod:3153 ../src/guestfs-actions.pod:4712
11770 msgid "C<inode>"
11771 msgstr ""
11772
11773 #. type: textblock
11774 #: ../fish/guestfish-actions.pod:3155 ../src/guestfs-actions.pod:4714
11775 msgid ""
11776 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
11777 "sets the inode size (only for ext2/3/4 filesystems at present)."
11778 msgstr ""
11779
11780 #. type: =item
11781 #: ../fish/guestfish-actions.pod:3158 ../src/guestfs-actions.pod:4717
11782 msgid "C<sectorsize>"
11783 msgstr ""
11784
11785 #. type: textblock
11786 #: ../fish/guestfish-actions.pod:3160 ../src/guestfs-actions.pod:4719
11787 msgid ""
11788 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
11789 "sets sector size for ufs filesystem."
11790 msgstr ""
11791
11792 #. type: =head2
11793 #: ../fish/guestfish-actions.pod:3167
11794 msgid "mkmountpoint"
11795 msgstr "mkmountpoint"
11796
11797 #. type: verbatim
11798 #: ../fish/guestfish-actions.pod:3169
11799 #, no-wrap
11800 msgid ""
11801 " mkmountpoint exemptpath\n"
11802 "\n"
11803 msgstr ""
11804
11805 #. type: textblock
11806 #: ../fish/guestfish-actions.pod:3171
11807 msgid ""
11808 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
11809 "to create extra mountpoints before mounting the first filesystem."
11810 msgstr ""
11811
11812 #. type: textblock
11813 #: ../fish/guestfish-actions.pod:3175 ../src/guestfs-actions.pod:4762
11814 msgid ""
11815 "These calls are I<only> necessary in some very limited circumstances, mainly "
11816 "the case where you want to mount a mix of unrelated and/or read-only "
11817 "filesystems together."
11818 msgstr ""
11819
11820 #. type: textblock
11821 #: ../fish/guestfish-actions.pod:3179 ../src/guestfs-actions.pod:4766
11822 msgid ""
11823 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
11824 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
11825 "inside that.  You can unpack this as follows in guestfish:"
11826 msgstr ""
11827
11828 #. type: verbatim
11829 #: ../fish/guestfish-actions.pod:3184 ../src/guestfs-actions.pod:4771
11830 #, no-wrap
11831 msgid ""
11832 " add-ro Fedora-11-i686-Live.iso\n"
11833 " run\n"
11834 " mkmountpoint /cd\n"
11835 " mkmountpoint /sqsh\n"
11836 " mkmountpoint /ext3fs\n"
11837 " mount /dev/sda /cd\n"
11838 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11839 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11840 "\n"
11841 msgstr ""
11842 " add-ro Fedora-11-i686-Live.iso\n"
11843 " run\n"
11844 " mkmountpoint /cd\n"
11845 " mkmountpoint /sqsh\n"
11846 " mkmountpoint /ext3fs\n"
11847 " mount /dev/sda /cd\n"
11848 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
11849 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
11850 "\n"
11851
11852 #. type: textblock
11853 #: ../fish/guestfish-actions.pod:3193 ../src/guestfs-actions.pod:4780
11854 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
11855 msgstr ""
11856
11857 #. type: textblock
11858 #: ../fish/guestfish-actions.pod:3195
11859 msgid ""
11860 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
11861 "unexpected errors if you try to mix these calls.  It is safest to manually "
11862 "unmount filesystems and remove mountpoints after use."
11863 msgstr ""
11864
11865 #. type: textblock
11866 #: ../fish/guestfish-actions.pod:3199
11867 msgid ""
11868 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
11869 "for this to work for manual mountpoints, you must ensure that the innermost "
11870 "mountpoints have the longest pathnames, as in the example code above."
11871 msgstr ""
11872
11873 #. type: textblock
11874 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4791
11875 msgid ""
11876 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
11877 msgstr ""
11878
11879 #. type: textblock
11880 #: ../fish/guestfish-actions.pod:3206
11881 msgid ""
11882 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
11883 "L</umount-all> to be called when the handle is closed which can also trigger "
11884 "these issues."
11885 msgstr ""
11886
11887 #. type: =head2
11888 #: ../fish/guestfish-actions.pod:3210
11889 msgid "mknod"
11890 msgstr "mknod"
11891
11892 #. type: verbatim
11893 #: ../fish/guestfish-actions.pod:3212
11894 #, no-wrap
11895 msgid ""
11896 " mknod mode devmajor devminor path\n"
11897 "\n"
11898 msgstr ""
11899
11900 #. type: textblock
11901 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4810
11902 msgid ""
11903 "This call creates block or character special devices, or named pipes (FIFOs)."
11904 msgstr ""
11905
11906 #. type: textblock
11907 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4813
11908 msgid ""
11909 "The C<mode> parameter should be the mode, using the standard constants.  "
11910 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
11911 "used when creating block and character special devices."
11912 msgstr ""
11913
11914 #. type: textblock
11915 #: ../fish/guestfish-actions.pod:3222
11916 msgid ""
11917 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
11918 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
11919 "regular file).  These constants are available in the standard Linux header "
11920 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
11921 "wrappers around this command which bitwise OR in the appropriate constant "
11922 "for you."
11923 msgstr ""
11924
11925 #. type: =head2
11926 #: ../fish/guestfish-actions.pod:3232
11927 msgid "mknod-b"
11928 msgstr "mknod-b"
11929
11930 #. type: verbatim
11931 #: ../fish/guestfish-actions.pod:3234
11932 #, no-wrap
11933 msgid ""
11934 " mknod-b mode devmajor devminor path\n"
11935 "\n"
11936 msgstr ""
11937
11938 #. type: textblock
11939 #: ../fish/guestfish-actions.pod:3236
11940 msgid ""
11941 "This call creates a block device node called C<path> with mode C<mode> and "
11942 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11943 "wrapper around L</mknod>."
11944 msgstr ""
11945
11946 #. type: =head2
11947 #: ../fish/guestfish-actions.pod:3242
11948 msgid "mknod-c"
11949 msgstr "mknod-c"
11950
11951 #. type: verbatim
11952 #: ../fish/guestfish-actions.pod:3244
11953 #, no-wrap
11954 msgid ""
11955 " mknod-c mode devmajor devminor path\n"
11956 "\n"
11957 msgstr ""
11958
11959 #. type: textblock
11960 #: ../fish/guestfish-actions.pod:3246
11961 msgid ""
11962 "This call creates a char device node called C<path> with mode C<mode> and "
11963 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
11964 "wrapper around L</mknod>."
11965 msgstr ""
11966
11967 #. type: =head2
11968 #: ../fish/guestfish-actions.pod:3252
11969 msgid "mkswap"
11970 msgstr "mkswap"
11971
11972 #. type: verbatim
11973 #: ../fish/guestfish-actions.pod:3254
11974 #, no-wrap
11975 msgid ""
11976 " mkswap device\n"
11977 "\n"
11978 msgstr ""
11979 " mkswap пристрій\n"
11980 "\n"
11981
11982 #. type: textblock
11983 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:4876
11984 msgid "Create a swap partition on C<device>."
11985 msgstr ""
11986
11987 #. type: =head2
11988 #: ../fish/guestfish-actions.pod:3258
11989 msgid "mkswap-L"
11990 msgstr "mkswap-L"
11991
11992 #. type: verbatim
11993 #: ../fish/guestfish-actions.pod:3260
11994 #, no-wrap
11995 msgid ""
11996 " mkswap-L label device\n"
11997 "\n"
11998 msgstr ""
11999 " mkswap-L мітка пристрій\n"
12000 "\n"
12001
12002 #. type: textblock
12003 #: ../fish/guestfish-actions.pod:3262 ../src/guestfs-actions.pod:4889
12004 msgid "Create a swap partition on C<device> with label C<label>."
12005 msgstr ""
12006
12007 #. type: textblock
12008 #: ../fish/guestfish-actions.pod:3264 ../src/guestfs-actions.pod:4891
12009 msgid ""
12010 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
12011 "sda>), just to a partition.  This appears to be a limitation of the kernel "
12012 "or swap tools."
12013 msgstr ""
12014
12015 #. type: =head2
12016 #: ../fish/guestfish-actions.pod:3268
12017 msgid "mkswap-U"
12018 msgstr "mkswap-U"
12019
12020 #. type: verbatim
12021 #: ../fish/guestfish-actions.pod:3270
12022 #, no-wrap
12023 msgid ""
12024 " mkswap-U uuid device\n"
12025 "\n"
12026 msgstr ""
12027 " mkswap-U uuid пристрій\n"
12028 "\n"
12029
12030 #. type: textblock
12031 #: ../fish/guestfish-actions.pod:3272 ../src/guestfs-actions.pod:4906
12032 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12033 msgstr ""
12034
12035 #. type: =head2
12036 #: ../fish/guestfish-actions.pod:3274
12037 msgid "mkswap-file"
12038 msgstr "mkswap-file"
12039
12040 #. type: verbatim
12041 #: ../fish/guestfish-actions.pod:3276
12042 #, no-wrap
12043 msgid ""
12044 " mkswap-file path\n"
12045 "\n"
12046 msgstr ""
12047 " mkswap-file шлях\n"
12048 "\n"
12049
12050 #. type: textblock
12051 #: ../fish/guestfish-actions.pod:3278 ../src/guestfs-actions.pod:4918
12052 msgid "Create a swap file."
12053 msgstr "Створити файл резервної пам’яті."
12054
12055 #. type: textblock
12056 #: ../fish/guestfish-actions.pod:3280
12057 msgid ""
12058 "This command just writes a swap file signature to an existing file.  To "
12059 "create the file itself, use something like L</fallocate>."
12060 msgstr ""
12061
12062 #. type: =head2
12063 #: ../fish/guestfish-actions.pod:3283
12064 msgid "modprobe"
12065 msgstr "modprobe"
12066
12067 #. type: verbatim
12068 #: ../fish/guestfish-actions.pod:3285
12069 #, no-wrap
12070 msgid ""
12071 " modprobe modulename\n"
12072 "\n"
12073 msgstr ""
12074 " modprobe назва_модуля\n"
12075 "\n"
12076
12077 #. type: textblock
12078 #: ../fish/guestfish-actions.pod:3287 ../src/guestfs-actions.pod:4933
12079 msgid "This loads a kernel module in the appliance."
12080 msgstr ""
12081
12082 #. type: textblock
12083 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:4935
12084 msgid ""
12085 "The kernel module must have been whitelisted when libguestfs was built (see "
12086 "C<appliance/kmod.whitelist.in> in the source)."
12087 msgstr ""
12088
12089 #. type: =head2
12090 #: ../fish/guestfish-actions.pod:3292
12091 msgid "mount"
12092 msgstr "mount"
12093
12094 #. type: verbatim
12095 #: ../fish/guestfish-actions.pod:3294
12096 #, no-wrap
12097 msgid ""
12098 " mount device mountpoint\n"
12099 "\n"
12100 msgstr ""
12101 " mount пристрій точка_монтування\n"
12102 "\n"
12103
12104 #. type: textblock
12105 #: ../fish/guestfish-actions.pod:3296 ../src/guestfs-actions.pod:4956
12106 msgid ""
12107 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12108 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12109 "those block devices contain partitions, they will have the usual names (eg. "
12110 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12111 msgstr ""
12112
12113 #. type: textblock
12114 #: ../fish/guestfish-actions.pod:3302 ../src/guestfs-actions.pod:4962
12115 msgid ""
12116 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12117 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12118 "mounted on directories which already exist."
12119 msgstr ""
12120
12121 #. type: textblock
12122 #: ../fish/guestfish-actions.pod:3307 ../src/guestfs-actions.pod:4967
12123 msgid ""
12124 "The mounted filesystem is writable, if we have sufficient permissions on the "
12125 "underlying device."
12126 msgstr ""
12127
12128 #. type: textblock
12129 #: ../fish/guestfish-actions.pod:3310
12130 msgid ""
12131 "B<Important note:> When you use this call, the filesystem options C<sync> "
12132 "and C<noatime> are set implicitly.  This was originally done because we "
12133 "thought it would improve reliability, but it turns out that I<-o sync> has a "
12134 "very large negative performance impact and negligible effect on "
12135 "reliability.  Therefore we recommend that you avoid using L</mount> in any "
12136 "code that needs performance, and instead use L</mount-options> (use an empty "
12137 "string for the first parameter if you don't want any options)."
12138 msgstr ""
12139
12140 #. type: textblock
12141 #: ../fish/guestfish-actions.pod:3320
12142 msgid ""
12143 "I<This function is deprecated.> In new code, use the L</mount_options> call "
12144 "instead."
12145 msgstr ""
12146
12147 #. type: =head2
12148 #: ../fish/guestfish-actions.pod:3327
12149 msgid "mount-9p"
12150 msgstr ""
12151
12152 #. type: verbatim
12153 #: ../fish/guestfish-actions.pod:3329
12154 #, no-wrap
12155 msgid ""
12156 " mount-9p mounttag mountpoint [options:..]\n"
12157 "\n"
12158 msgstr ""
12159
12160 #. type: textblock
12161 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:4999
12162 msgid ""
12163 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12164 "C<mountpoint>."
12165 msgstr ""
12166
12167 #. type: textblock
12168 #: ../fish/guestfish-actions.pod:3334 ../src/guestfs-actions.pod:5002
12169 msgid ""
12170 "If required, C<trans=virtio> will be automatically added to the options.  "
12171 "Any other options required can be passed in the optional C<options> "
12172 "parameter."
12173 msgstr ""
12174
12175 #. type: =head2
12176 #: ../fish/guestfish-actions.pod:3340
12177 msgid "mount-loop"
12178 msgstr "mount-loop"
12179
12180 #. type: verbatim
12181 #: ../fish/guestfish-actions.pod:3342
12182 #, no-wrap
12183 msgid ""
12184 " mount-loop file mountpoint\n"
12185 "\n"
12186 msgstr ""
12187
12188 #. type: textblock
12189 #: ../fish/guestfish-actions.pod:3344 ../src/guestfs-actions.pod:5041
12190 msgid ""
12191 "This command lets you mount C<file> (a filesystem image in a file) on a "
12192 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
12193 "mountpoint>."
12194 msgstr ""
12195
12196 #. type: =head2
12197 #: ../fish/guestfish-actions.pod:3348
12198 msgid "mount-options"
12199 msgstr "mount-options"
12200
12201 #. type: verbatim
12202 #: ../fish/guestfish-actions.pod:3350
12203 #, no-wrap
12204 msgid ""
12205 " mount-options options device mountpoint\n"
12206 "\n"
12207 msgstr ""
12208
12209 #. type: textblock
12210 #: ../fish/guestfish-actions.pod:3352
12211 msgid ""
12212 "This is the same as the L</mount> command, but it allows you to set the "
12213 "mount options as for the L<mount(8)> I<-o> flag."
12214 msgstr ""
12215
12216 #. type: textblock
12217 #: ../fish/guestfish-actions.pod:3356 ../src/guestfs-actions.pod:5061
12218 msgid ""
12219 "If the C<options> parameter is an empty string, then no options are passed "
12220 "(all options default to whatever the filesystem uses)."
12221 msgstr ""
12222
12223 #. type: =head2
12224 #: ../fish/guestfish-actions.pod:3360
12225 msgid "mount-ro"
12226 msgstr "mount-ro"
12227
12228 #. type: verbatim
12229 #: ../fish/guestfish-actions.pod:3362
12230 #, no-wrap
12231 msgid ""
12232 " mount-ro device mountpoint\n"
12233 "\n"
12234 msgstr ""
12235 " mount-ro пристрій точка_монтування\n"
12236 "\n"
12237
12238 #. type: textblock
12239 #: ../fish/guestfish-actions.pod:3364
12240 msgid ""
12241 "This is the same as the L</mount> command, but it mounts the filesystem with "
12242 "the read-only (I<-o ro>) flag."
12243 msgstr ""
12244
12245 #. type: =head2
12246 #: ../fish/guestfish-actions.pod:3367
12247 msgid "mount-vfs"
12248 msgstr "mount-vfs"
12249
12250 #. type: verbatim
12251 #: ../fish/guestfish-actions.pod:3369
12252 #, no-wrap
12253 msgid ""
12254 " mount-vfs options vfstype device mountpoint\n"
12255 "\n"
12256 msgstr ""
12257
12258 #. type: textblock
12259 #: ../fish/guestfish-actions.pod:3371
12260 msgid ""
12261 "This is the same as the L</mount> command, but it allows you to set both the "
12262 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12263 msgstr ""
12264
12265 #. type: =head2
12266 #: ../fish/guestfish-actions.pod:3375
12267 msgid "mountpoints"
12268 msgstr "mountpoints"
12269
12270 #. type: verbatim
12271 #: ../fish/guestfish-actions.pod:3377
12272 #, no-wrap
12273 msgid ""
12274 " mountpoints\n"
12275 "\n"
12276 msgstr ""
12277 " mountpoints\n"
12278 "\n"
12279
12280 #. type: textblock
12281 #: ../fish/guestfish-actions.pod:3379
12282 msgid ""
12283 "This call is similar to L</mounts>.  That call returns a list of devices.  "
12284 "This one returns a hash table (map) of device name to directory where the "
12285 "device is mounted."
12286 msgstr ""
12287
12288 #. type: =head2
12289 #: ../fish/guestfish-actions.pod:3383
12290 msgid "mounts"
12291 msgstr "mounts"
12292
12293 #. type: verbatim
12294 #: ../fish/guestfish-actions.pod:3385
12295 #, no-wrap
12296 msgid ""
12297 " mounts\n"
12298 "\n"
12299 msgstr ""
12300 " mounts\n"
12301 "\n"
12302
12303 #. type: textblock
12304 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5122
12305 msgid ""
12306 "This returns the list of currently mounted filesystems.  It returns the list "
12307 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12308 msgstr ""
12309
12310 #. type: textblock
12311 #: ../fish/guestfish-actions.pod:3390 ../src/guestfs-actions.pod:5125
12312 msgid "Some internal mounts are not shown."
12313 msgstr ""
12314
12315 #. type: textblock
12316 #: ../fish/guestfish-actions.pod:3392
12317 msgid "See also: L</mountpoints>"
12318 msgstr "Див. також L</mountpoints>"
12319
12320 #. type: =head2
12321 #: ../fish/guestfish-actions.pod:3394
12322 msgid "mv"
12323 msgstr "mv"
12324
12325 #. type: verbatim
12326 #: ../fish/guestfish-actions.pod:3396
12327 #, no-wrap
12328 msgid ""
12329 " mv src dest\n"
12330 "\n"
12331 msgstr ""
12332 " mv джерело призначення\n"
12333 "\n"
12334
12335 #. type: textblock
12336 #: ../fish/guestfish-actions.pod:3398 ../src/guestfs-actions.pod:5142
12337 msgid ""
12338 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12339 "destination filename or destination directory."
12340 msgstr ""
12341
12342 #. type: =head2
12343 #: ../fish/guestfish-actions.pod:3401
12344 msgid "ntfs-3g-probe"
12345 msgstr "ntfs-3g-probe"
12346
12347 #. type: verbatim
12348 #: ../fish/guestfish-actions.pod:3403
12349 #, no-wrap
12350 msgid ""
12351 " ntfs-3g-probe true|false device\n"
12352 "\n"
12353 msgstr ""
12354
12355 #. type: textblock
12356 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5156
12357 msgid ""
12358 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12359 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12360 "write, and some cannot be mounted at all)."
12361 msgstr ""
12362
12363 #. type: textblock
12364 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5160
12365 msgid ""
12366 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12367 "can be mounted read-write.  Set it to false if you want to test if the "
12368 "volume can be mounted read-only."
12369 msgstr ""
12370
12371 #. type: textblock
12372 #: ../fish/guestfish-actions.pod:3413 ../src/guestfs-actions.pod:5164
12373 msgid ""
12374 "The return value is an integer which C<0> if the operation would succeed, or "
12375 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12376 msgstr ""
12377
12378 #. type: =head2
12379 #: ../fish/guestfish-actions.pod:3417
12380 msgid "ntfsresize"
12381 msgstr "ntfsresize"
12382
12383 #. type: verbatim
12384 #: ../fish/guestfish-actions.pod:3419
12385 #, no-wrap
12386 msgid ""
12387 " ntfsresize device\n"
12388 "\n"
12389 msgstr ""
12390 " ntfsresize пристрій\n"
12391 "\n"
12392
12393 #. type: textblock
12394 #: ../fish/guestfish-actions.pod:3421 ../fish/guestfish-actions.pod:3445
12395 #: ../src/guestfs-actions.pod:5185 ../src/guestfs-actions.pod:5217
12396 msgid ""
12397 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12398 "size of the underlying device."
12399 msgstr ""
12400
12401 #. type: textblock
12402 #: ../fish/guestfish-actions.pod:3424 ../src/guestfs-actions.pod:5188
12403 msgid ""
12404 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12405 "consistency check (for safety).  You have to boot into Windows to perform "
12406 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12407 "resize filesystems which have been marked in this way.  So in effect it is "
12408 "not possible to call ntfsresize multiple times on a single filesystem "
12409 "without booting into Windows between each resize."
12410 msgstr ""
12411
12412 #. type: textblock
12413 #: ../fish/guestfish-actions.pod:3432 ../fish/guestfish-actions.pod:3471
12414 #: ../src/guestfs-actions.pod:5196 ../src/guestfs-actions.pod:5243
12415 msgid "See also L<ntfsresize(8)>."
12416 msgstr ""
12417
12418 #. type: textblock
12419 #: ../fish/guestfish-actions.pod:3434 ../fish/guestfish-actions.pod:3482
12420 msgid ""
12421 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12422 "call instead."
12423 msgstr ""
12424
12425 #. type: =head2
12426 #: ../fish/guestfish-actions.pod:3441
12427 msgid "ntfsresize-opts"
12428 msgstr ""
12429
12430 #. type: verbatim
12431 #: ../fish/guestfish-actions.pod:3443
12432 #, no-wrap
12433 msgid ""
12434 " ntfsresize-opts device [size:..] [force:..]\n"
12435 "\n"
12436 msgstr ""
12437
12438 #. type: textblock
12439 #: ../fish/guestfish-actions.pod:3454 ../src/guestfs-actions.pod:5226
12440 msgid ""
12441 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12442 "resized to fit the container (eg. partition)."
12443 msgstr ""
12444
12445 #. type: =item
12446 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5229
12447 msgid "C<force>"
12448 msgstr ""
12449
12450 #. type: textblock
12451 #: ../fish/guestfish-actions.pod:3459 ../src/guestfs-actions.pod:5231
12452 msgid ""
12453 "If this option is true, then force the resize of the filesystem even if the "
12454 "filesystem is marked as requiring a consistency check."
12455 msgstr ""
12456
12457 #. type: textblock
12458 #: ../fish/guestfish-actions.pod:3462
12459 msgid ""
12460 "After the resize operation, the filesystem is always marked as requiring a "
12461 "consistency check (for safety).  You have to boot into Windows to perform "
12462 "this check and clear this condition.  If you I<don't> set the C<force> "
12463 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12464 "a single filesystem without booting into Windows between each resize."
12465 msgstr ""
12466
12467 #. type: =head2
12468 #: ../fish/guestfish-actions.pod:3475
12469 msgid "ntfsresize-size"
12470 msgstr "ntfsresize-size"
12471
12472 #. type: verbatim
12473 #: ../fish/guestfish-actions.pod:3477
12474 #, no-wrap
12475 msgid ""
12476 " ntfsresize-size device size\n"
12477 "\n"
12478 msgstr ""
12479
12480 #. type: textblock
12481 #: ../fish/guestfish-actions.pod:3479
12482 msgid ""
12483 "This command is the same as L</ntfsresize> except that it allows you to "
12484 "specify the new size (in bytes) explicitly."
12485 msgstr ""
12486
12487 #. type: =head2
12488 #: ../fish/guestfish-actions.pod:3489
12489 msgid "part-add"
12490 msgstr "part-add"
12491
12492 #. type: verbatim
12493 #: ../fish/guestfish-actions.pod:3491
12494 #, no-wrap
12495 msgid ""
12496 " part-add device prlogex startsect endsect\n"
12497 "\n"
12498 msgstr ""
12499
12500 #. type: textblock
12501 #: ../fish/guestfish-actions.pod:3493
12502 msgid ""
12503 "This command adds a partition to C<device>.  If there is no partition table "
12504 "on the device, call L</part-init> first."
12505 msgstr ""
12506
12507 #. type: textblock
12508 #: ../fish/guestfish-actions.pod:3496 ../src/guestfs-actions.pod:5304
12509 msgid ""
12510 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12511 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12512 "C<logical>) and C<e> (or C<extended>) partition types."
12513 msgstr ""
12514
12515 #. type: textblock
12516 #: ../fish/guestfish-actions.pod:3501 ../src/guestfs-actions.pod:5309
12517 msgid ""
12518 "C<startsect> and C<endsect> are the start and end of the partition in "
12519 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12520 "from the end of the disk (C<-1> is the last sector)."
12521 msgstr ""
12522
12523 #. type: textblock
12524 #: ../fish/guestfish-actions.pod:3505
12525 msgid ""
12526 "Creating a partition which covers the whole disk is not so easy.  Use L</"
12527 "part-disk> to do that."
12528 msgstr ""
12529
12530 #. type: =head2
12531 #: ../fish/guestfish-actions.pod:3508
12532 msgid "part-del"
12533 msgstr "part-del"
12534
12535 #. type: verbatim
12536 #: ../fish/guestfish-actions.pod:3510
12537 #, no-wrap
12538 msgid ""
12539 " part-del device partnum\n"
12540 "\n"
12541 msgstr ""
12542
12543 #. type: textblock
12544 #: ../fish/guestfish-actions.pod:3512 ../src/guestfs-actions.pod:5327
12545 msgid "This command deletes the partition numbered C<partnum> on C<device>."
12546 msgstr ""
12547
12548 #. type: textblock
12549 #: ../fish/guestfish-actions.pod:3514 ../src/guestfs-actions.pod:5329
12550 msgid ""
12551 "Note that in the case of MBR partitioning, deleting an extended partition "
12552 "also deletes any logical partitions it contains."
12553 msgstr ""
12554
12555 #. type: =head2
12556 #: ../fish/guestfish-actions.pod:3518
12557 msgid "part-disk"
12558 msgstr "part-disk"
12559
12560 #. type: verbatim
12561 #: ../fish/guestfish-actions.pod:3520
12562 #, no-wrap
12563 msgid ""
12564 " part-disk device parttype\n"
12565 "\n"
12566 msgstr ""
12567 " part-disk пристрій тип_розділу\n"
12568 "\n"
12569
12570 #. type: textblock
12571 #: ../fish/guestfish-actions.pod:3522
12572 msgid ""
12573 "This command is simply a combination of L</part-init> followed by L</part-"
12574 "add> to create a single primary partition covering the whole disk."
12575 msgstr ""
12576
12577 #. type: textblock
12578 #: ../fish/guestfish-actions.pod:3526
12579 msgid ""
12580 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
12581 "possible values are described in L</part-init>."
12582 msgstr ""
12583
12584 #. type: =head2
12585 #: ../fish/guestfish-actions.pod:3532
12586 msgid "part-get-bootable"
12587 msgstr "part-get-bootable"
12588
12589 #. type: verbatim
12590 #: ../fish/guestfish-actions.pod:3534
12591 #, no-wrap
12592 msgid ""
12593 " part-get-bootable device partnum\n"
12594 "\n"
12595 msgstr ""
12596
12597 #. type: textblock
12598 #: ../fish/guestfish-actions.pod:3536 ../src/guestfs-actions.pod:5365
12599 msgid ""
12600 "This command returns true if the partition C<partnum> on C<device> has the "
12601 "bootable flag set."
12602 msgstr ""
12603
12604 #. type: textblock
12605 #: ../fish/guestfish-actions.pod:3539
12606 msgid "See also L</part-set-bootable>."
12607 msgstr "Див. також L</part-set-bootable>."
12608
12609 #. type: =head2
12610 #: ../fish/guestfish-actions.pod:3541
12611 msgid "part-get-mbr-id"
12612 msgstr "part-get-mbr-id"
12613
12614 #. type: verbatim
12615 #: ../fish/guestfish-actions.pod:3543
12616 #, no-wrap
12617 msgid ""
12618 " part-get-mbr-id device partnum\n"
12619 "\n"
12620 msgstr ""
12621
12622 #. type: textblock
12623 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5381
12624 msgid ""
12625 "Returns the MBR type byte (also known as the ID byte) from the numbered "
12626 "partition C<partnum>."
12627 msgstr ""
12628
12629 #. type: textblock
12630 #: ../fish/guestfish-actions.pod:3548 ../fish/guestfish-actions.pod:3692
12631 msgid ""
12632 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
12633 "undefined results for other partition table types (see L</part-get-"
12634 "parttype>)."
12635 msgstr ""
12636
12637 #. type: =head2
12638 #: ../fish/guestfish-actions.pod:3552
12639 msgid "part-get-parttype"
12640 msgstr "part-get-parttype"
12641
12642 #. type: verbatim
12643 #: ../fish/guestfish-actions.pod:3554
12644 #, no-wrap
12645 msgid ""
12646 " part-get-parttype device\n"
12647 "\n"
12648 msgstr ""
12649 " part-get-parttype пристрій\n"
12650 "\n"
12651
12652 #. type: textblock
12653 #: ../fish/guestfish-actions.pod:3556 ../src/guestfs-actions.pod:5398
12654 msgid ""
12655 "This command examines the partition table on C<device> and returns the "
12656 "partition table type (format) being used."
12657 msgstr ""
12658
12659 #. type: textblock
12660 #: ../fish/guestfish-actions.pod:3559
12661 msgid ""
12662 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
12663 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
12664 "possible, although unusual.  See L</part-init> for a full list."
12665 msgstr ""
12666
12667 #. type: =head2
12668 #: ../fish/guestfish-actions.pod:3564
12669 msgid "part-init"
12670 msgstr "part-init"
12671
12672 #. type: verbatim
12673 #: ../fish/guestfish-actions.pod:3566
12674 #, no-wrap
12675 msgid ""
12676 " part-init device parttype\n"
12677 "\n"
12678 msgstr ""
12679
12680 #. type: textblock
12681 #: ../fish/guestfish-actions.pod:3568 ../src/guestfs-actions.pod:5418
12682 msgid ""
12683 "This creates an empty partition table on C<device> of one of the partition "
12684 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
12685 "(for large disks)."
12686 msgstr ""
12687
12688 #. type: textblock
12689 #: ../fish/guestfish-actions.pod:3572
12690 msgid ""
12691 "Initially there are no partitions.  Following this, you should call L</part-"
12692 "add> for each partition required."
12693 msgstr ""
12694
12695 #. type: textblock
12696 #: ../fish/guestfish-actions.pod:3575 ../src/guestfs-actions.pod:5425
12697 msgid "Possible values for C<parttype> are:"
12698 msgstr ""
12699
12700 #. type: =item
12701 #: ../fish/guestfish-actions.pod:3579 ../src/guestfs-actions.pod:5429
12702 msgid "B<efi>"
12703 msgstr ""
12704
12705 #. type: =item
12706 #: ../fish/guestfish-actions.pod:3581 ../src/guestfs-actions.pod:5431
12707 msgid "B<gpt>"
12708 msgstr ""
12709
12710 #. type: textblock
12711 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5433
12712 msgid "Intel EFI / GPT partition table."
12713 msgstr ""
12714
12715 #. type: textblock
12716 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5435
12717 msgid ""
12718 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
12719 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
12720 "the C<mbr> format."
12721 msgstr ""
12722
12723 #. type: =item
12724 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5439
12725 msgid "B<mbr>"
12726 msgstr ""
12727
12728 #. type: =item
12729 #: ../fish/guestfish-actions.pod:3591 ../src/guestfs-actions.pod:5441
12730 msgid "B<msdos>"
12731 msgstr ""
12732
12733 #. type: textblock
12734 #: ../fish/guestfish-actions.pod:3593 ../src/guestfs-actions.pod:5443
12735 msgid ""
12736 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
12737 "Windows.  This partition type will B<only> work for device sizes up to 2 "
12738 "TB.  For large disks we recommend using C<gpt>."
12739 msgstr ""
12740
12741 #. type: textblock
12742 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5450
12743 msgid ""
12744 "Other partition table types that may work but are not supported include:"
12745 msgstr ""
12746
12747 #. type: =item
12748 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5455
12749 msgid "B<aix>"
12750 msgstr "B<aix>"
12751
12752 #. type: textblock
12753 #: ../fish/guestfish-actions.pod:3607 ../src/guestfs-actions.pod:5457
12754 msgid "AIX disk labels."
12755 msgstr "Мітки дисків AIX."
12756
12757 #. type: =item
12758 #: ../fish/guestfish-actions.pod:3609 ../src/guestfs-actions.pod:5459
12759 #, fuzzy
12760 #| msgid "B<amiga> | B<rdb>"
12761 msgid "B<amiga>"
12762 msgstr "B<amiga> | B<rdb>"
12763
12764 #. type: =item
12765 #: ../fish/guestfish-actions.pod:3611 ../src/guestfs-actions.pod:5461
12766 msgid "B<rdb>"
12767 msgstr ""
12768
12769 #. type: textblock
12770 #: ../fish/guestfish-actions.pod:3613 ../src/guestfs-actions.pod:5463
12771 msgid "Amiga \"Rigid Disk Block\" format."
12772 msgstr "Формат \"Rigid Disk Block\" Amiga."
12773
12774 #. type: =item
12775 #: ../fish/guestfish-actions.pod:3615 ../src/guestfs-actions.pod:5465
12776 msgid "B<bsd>"
12777 msgstr "B<bsd>"
12778
12779 #. type: textblock
12780 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5467
12781 msgid "BSD disk labels."
12782 msgstr "Мітки дисків BSD."
12783
12784 #. type: =item
12785 #: ../fish/guestfish-actions.pod:3619 ../src/guestfs-actions.pod:5469
12786 msgid "B<dasd>"
12787 msgstr "B<dasd>"
12788
12789 #. type: textblock
12790 #: ../fish/guestfish-actions.pod:3621 ../src/guestfs-actions.pod:5471
12791 msgid "DASD, used on IBM mainframes."
12792 msgstr "DASD, використовувалися у мейнфреймах IBM."
12793
12794 #. type: =item
12795 #: ../fish/guestfish-actions.pod:3623 ../src/guestfs-actions.pod:5473
12796 msgid "B<dvh>"
12797 msgstr "B<dvh>"
12798
12799 #. type: textblock
12800 #: ../fish/guestfish-actions.pod:3625 ../src/guestfs-actions.pod:5475
12801 msgid "MIPS/SGI volumes."
12802 msgstr "Томи MIPS/SGI."
12803
12804 #. type: =item
12805 #: ../fish/guestfish-actions.pod:3627 ../src/guestfs-actions.pod:5477
12806 msgid "B<mac>"
12807 msgstr "B<mac>"
12808
12809 #. type: textblock
12810 #: ../fish/guestfish-actions.pod:3629 ../src/guestfs-actions.pod:5479
12811 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
12812 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
12813
12814 #. type: =item
12815 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5481
12816 msgid "B<pc98>"
12817 msgstr "B<pc98>"
12818
12819 #. type: textblock
12820 #: ../fish/guestfish-actions.pod:3633 ../src/guestfs-actions.pod:5483
12821 msgid "NEC PC-98 format, common in Japan apparently."
12822 msgstr "Формат NEC PC-98, поширений у Японії."
12823
12824 #. type: =item
12825 #: ../fish/guestfish-actions.pod:3635 ../src/guestfs-actions.pod:5485
12826 msgid "B<sun>"
12827 msgstr "B<sun>"
12828
12829 #. type: textblock
12830 #: ../fish/guestfish-actions.pod:3637 ../src/guestfs-actions.pod:5487
12831 msgid "Sun disk labels."
12832 msgstr "Мітки дисків Sun."
12833
12834 #. type: =head2
12835 #: ../fish/guestfish-actions.pod:3641
12836 msgid "part-list"
12837 msgstr "part-list"
12838
12839 #. type: verbatim
12840 #: ../fish/guestfish-actions.pod:3643
12841 #, no-wrap
12842 msgid ""
12843 " part-list device\n"
12844 "\n"
12845 msgstr ""
12846 " part-list device\n"
12847 "\n"
12848
12849 #. type: textblock
12850 #: ../fish/guestfish-actions.pod:3645 ../src/guestfs-actions.pod:5501
12851 msgid ""
12852 "This command parses the partition table on C<device> and returns the list of "
12853 "partitions found."
12854 msgstr ""
12855
12856 #. type: textblock
12857 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5504
12858 msgid "The fields in the returned structure are:"
12859 msgstr ""
12860
12861 #. type: =item
12862 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5508
12863 msgid "B<part_num>"
12864 msgstr "B<part_num>"
12865
12866 #. type: textblock
12867 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5510
12868 msgid "Partition number, counting from 1."
12869 msgstr ""
12870
12871 #. type: =item
12872 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5512
12873 msgid "B<part_start>"
12874 msgstr "B<part_start>"
12875
12876 #. type: textblock
12877 #: ../fish/guestfish-actions.pod:3658
12878 msgid ""
12879 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
12880 "the device's sector size, see L</blockdev-getss>."
12881 msgstr ""
12882
12883 #. type: =item
12884 #: ../fish/guestfish-actions.pod:3661 ../src/guestfs-actions.pod:5517
12885 msgid "B<part_end>"
12886 msgstr "B<part_end>"
12887
12888 #. type: textblock
12889 #: ../fish/guestfish-actions.pod:3663 ../src/guestfs-actions.pod:5519
12890 msgid "End of the partition in bytes."
12891 msgstr ""
12892
12893 #. type: =item
12894 #: ../fish/guestfish-actions.pod:3665 ../src/guestfs-actions.pod:5521
12895 msgid "B<part_size>"
12896 msgstr "B<part_size>"
12897
12898 #. type: textblock
12899 #: ../fish/guestfish-actions.pod:3667 ../src/guestfs-actions.pod:5523
12900 msgid "Size of the partition in bytes."
12901 msgstr ""
12902
12903 #. type: =head2
12904 #: ../fish/guestfish-actions.pod:3671
12905 msgid "part-set-bootable"
12906 msgstr "part-set-bootable"
12907
12908 #. type: verbatim
12909 #: ../fish/guestfish-actions.pod:3673
12910 #, no-wrap
12911 msgid ""
12912 " part-set-bootable device partnum true|false\n"
12913 "\n"
12914 msgstr ""
12915
12916 #. type: textblock
12917 #: ../fish/guestfish-actions.pod:3675 ../src/guestfs-actions.pod:5541
12918 msgid ""
12919 "This sets the bootable flag on partition numbered C<partnum> on device "
12920 "C<device>.  Note that partitions are numbered from 1."
12921 msgstr ""
12922
12923 #. type: textblock
12924 #: ../fish/guestfish-actions.pod:3678 ../src/guestfs-actions.pod:5544
12925 msgid ""
12926 "The bootable flag is used by some operating systems (notably Windows) to "
12927 "determine which partition to boot from.  It is by no means universally "
12928 "recognized."
12929 msgstr ""
12930
12931 #. type: =head2
12932 #: ../fish/guestfish-actions.pod:3682
12933 msgid "part-set-mbr-id"
12934 msgstr "part-set-mbr-id"
12935
12936 #. type: verbatim
12937 #: ../fish/guestfish-actions.pod:3684
12938 #, no-wrap
12939 msgid ""
12940 " part-set-mbr-id device partnum idbyte\n"
12941 "\n"
12942 msgstr ""
12943
12944 #. type: textblock
12945 #: ../fish/guestfish-actions.pod:3686 ../src/guestfs-actions.pod:5560
12946 msgid ""
12947 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
12948 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
12949 "documentation are in fact hexadecimal numbers, but usually documented "
12950 "without any leading \"0x\" which might be confusing."
12951 msgstr ""
12952
12953 #. type: =head2
12954 #: ../fish/guestfish-actions.pod:3696
12955 msgid "part-set-name"
12956 msgstr "part-set-name"
12957
12958 #. type: verbatim
12959 #: ../fish/guestfish-actions.pod:3698
12960 #, no-wrap
12961 msgid ""
12962 " part-set-name device partnum name\n"
12963 "\n"
12964 msgstr ""
12965
12966 #. type: textblock
12967 #: ../fish/guestfish-actions.pod:3700 ../src/guestfs-actions.pod:5582
12968 msgid ""
12969 "This sets the partition name on partition numbered C<partnum> on device "
12970 "C<device>.  Note that partitions are numbered from 1."
12971 msgstr ""
12972
12973 #. type: textblock
12974 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5585
12975 msgid ""
12976 "The partition name can only be set on certain types of partition table.  "
12977 "This works on C<gpt> but not on C<mbr> partitions."
12978 msgstr ""
12979
12980 #. type: =head2
12981 #: ../fish/guestfish-actions.pod:3706
12982 msgid "part-to-dev"
12983 msgstr "part-to-dev"
12984
12985 #. type: verbatim
12986 #: ../fish/guestfish-actions.pod:3708
12987 #, no-wrap
12988 msgid ""
12989 " part-to-dev partition\n"
12990 "\n"
12991 msgstr ""
12992 " part-to-dev розділ\n"
12993 "\n"
12994
12995 #. type: textblock
12996 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5598
12997 msgid ""
12998 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
12999 "partition number, returning the device name (eg. \"/dev/sdb\")."
13000 msgstr ""
13001
13002 #. type: textblock
13003 #: ../fish/guestfish-actions.pod:3714
13004 msgid ""
13005 "The named partition must exist, for example as a string returned from L</"
13006 "list-partitions>."
13007 msgstr ""
13008
13009 #. type: =head2
13010 #: ../fish/guestfish-actions.pod:3717
13011 msgid "ping-daemon"
13012 msgstr "ping-daemon"
13013
13014 #. type: verbatim
13015 #: ../fish/guestfish-actions.pod:3719
13016 #, no-wrap
13017 msgid ""
13018 " ping-daemon\n"
13019 "\n"
13020 msgstr ""
13021 " ping-daemon\n"
13022 "\n"
13023
13024 #. type: textblock
13025 #: ../fish/guestfish-actions.pod:3721 ../src/guestfs-actions.pod:5615
13026 msgid ""
13027 "This is a test probe into the guestfs daemon running inside the qemu "
13028 "subprocess.  Calling this function checks that the daemon responds to the "
13029 "ping message, without affecting the daemon or attached block device(s) in "
13030 "any other way."
13031 msgstr ""
13032
13033 #. type: =head2
13034 #: ../fish/guestfish-actions.pod:3726
13035 msgid "pread"
13036 msgstr "pread"
13037
13038 #. type: verbatim
13039 #: ../fish/guestfish-actions.pod:3728
13040 #, no-wrap
13041 msgid ""
13042 " pread path count offset\n"
13043 "\n"
13044 msgstr ""
13045
13046 #. type: textblock
13047 #: ../fish/guestfish-actions.pod:3730 ../src/guestfs-actions.pod:5633
13048 msgid ""
13049 "This command lets you read part of a file.  It reads C<count> bytes of the "
13050 "file, starting at C<offset>, from file C<path>."
13051 msgstr ""
13052
13053 #. type: textblock
13054 #: ../fish/guestfish-actions.pod:3733 ../fish/guestfish-actions.pod:3748
13055 #: ../src/guestfs-actions.pod:5636 ../src/guestfs-actions.pod:5662
13056 msgid ""
13057 "This may read fewer bytes than requested.  For further details see the "
13058 "L<pread(2)> system call."
13059 msgstr ""
13060
13061 #. type: textblock
13062 #: ../fish/guestfish-actions.pod:3736
13063 msgid "See also L</pwrite>, L</pread-device>."
13064 msgstr "Див. також L</pwrite>, L</pread-device>."
13065
13066 #. type: =head2
13067 #: ../fish/guestfish-actions.pod:3741
13068 msgid "pread-device"
13069 msgstr "pread-device"
13070
13071 #. type: verbatim
13072 #: ../fish/guestfish-actions.pod:3743
13073 #, no-wrap
13074 msgid ""
13075 " pread-device device count offset\n"
13076 "\n"
13077 msgstr ""
13078
13079 #. type: textblock
13080 #: ../fish/guestfish-actions.pod:3745 ../src/guestfs-actions.pod:5659
13081 msgid ""
13082 "This command lets you read part of a file.  It reads C<count> bytes of "
13083 "C<device>, starting at C<offset>."
13084 msgstr ""
13085
13086 #. type: textblock
13087 #: ../fish/guestfish-actions.pod:3751
13088 msgid "See also L</pread>."
13089 msgstr "Див. також L</pread>."
13090
13091 #. type: =head2
13092 #: ../fish/guestfish-actions.pod:3756
13093 msgid "pvcreate"
13094 msgstr "pvcreate"
13095
13096 #. type: verbatim
13097 #: ../fish/guestfish-actions.pod:3758
13098 #, no-wrap
13099 msgid ""
13100 " pvcreate device\n"
13101 "\n"
13102 msgstr ""
13103 " pvcreate пристрій\n"
13104 "\n"
13105
13106 #. type: textblock
13107 #: ../fish/guestfish-actions.pod:3760 ../src/guestfs-actions.pod:5682
13108 msgid ""
13109 "This creates an LVM physical volume on the named C<device>, where C<device> "
13110 "should usually be a partition name such as C</dev/sda1>."
13111 msgstr ""
13112
13113 #. type: =head2
13114 #: ../fish/guestfish-actions.pod:3764
13115 msgid "pvremove"
13116 msgstr "pvremove"
13117
13118 #. type: verbatim
13119 #: ../fish/guestfish-actions.pod:3766
13120 #, no-wrap
13121 msgid ""
13122 " pvremove device\n"
13123 "\n"
13124 msgstr ""
13125 " pvremove пристрій\n"
13126 "\n"
13127
13128 #. type: textblock
13129 #: ../fish/guestfish-actions.pod:3768 ../src/guestfs-actions.pod:5696
13130 msgid ""
13131 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13132 "it."
13133 msgstr ""
13134
13135 #. type: textblock
13136 #: ../fish/guestfish-actions.pod:3771 ../src/guestfs-actions.pod:5699
13137 msgid ""
13138 "The implementation uses the C<pvremove> command which refuses to wipe "
13139 "physical volumes that contain any volume groups, so you have to remove those "
13140 "first."
13141 msgstr ""
13142
13143 #. type: =head2
13144 #: ../fish/guestfish-actions.pod:3775
13145 msgid "pvresize"
13146 msgstr "pvresize"
13147
13148 #. type: verbatim
13149 #: ../fish/guestfish-actions.pod:3777
13150 #, no-wrap
13151 msgid ""
13152 " pvresize device\n"
13153 "\n"
13154 msgstr ""
13155 " pvresize пристрій\n"
13156 "\n"
13157
13158 #. type: textblock
13159 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5713
13160 msgid ""
13161 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13162 "the new size of the underlying device."
13163 msgstr ""
13164
13165 #. type: =head2
13166 #: ../fish/guestfish-actions.pod:3782
13167 msgid "pvresize-size"
13168 msgstr "pvresize-size"
13169
13170 #. type: verbatim
13171 #: ../fish/guestfish-actions.pod:3784
13172 #, no-wrap
13173 msgid ""
13174 " pvresize-size device size\n"
13175 "\n"
13176 msgstr ""
13177
13178 #. type: textblock
13179 #: ../fish/guestfish-actions.pod:3786
13180 msgid ""
13181 "This command is the same as L</pvresize> except that it allows you to "
13182 "specify the new size (in bytes) explicitly."
13183 msgstr ""
13184
13185 #. type: =head2
13186 #: ../fish/guestfish-actions.pod:3789
13187 msgid "pvs"
13188 msgstr "pvs"
13189
13190 #. type: verbatim
13191 #: ../fish/guestfish-actions.pod:3791
13192 #, no-wrap
13193 msgid ""
13194 " pvs\n"
13195 "\n"
13196 msgstr ""
13197 " pvs\n"
13198 "\n"
13199
13200 #. type: textblock
13201 #: ../fish/guestfish-actions.pod:3793 ../src/guestfs-actions.pod:5739
13202 msgid ""
13203 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13204 "(8)> command."
13205 msgstr ""
13206
13207 #. type: textblock
13208 #: ../fish/guestfish-actions.pod:3796 ../src/guestfs-actions.pod:5742
13209 msgid ""
13210 "This returns a list of just the device names that contain PVs (eg. C</dev/"
13211 "sda2>)."
13212 msgstr ""
13213
13214 #. type: textblock
13215 #: ../fish/guestfish-actions.pod:3799
13216 msgid "See also L</pvs-full>."
13217 msgstr "Див. також L</pvs-full>."
13218
13219 #. type: =head2
13220 #: ../fish/guestfish-actions.pod:3801
13221 msgid "pvs-full"
13222 msgstr "pvs-full"
13223
13224 #. type: verbatim
13225 #: ../fish/guestfish-actions.pod:3803
13226 #, no-wrap
13227 msgid ""
13228 " pvs-full\n"
13229 "\n"
13230 msgstr ""
13231 " pvs-full\n"
13232 "\n"
13233
13234 #. type: textblock
13235 #: ../fish/guestfish-actions.pod:3805 ../src/guestfs-actions.pod:5758
13236 msgid ""
13237 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13238 "(8)> command.  The \"full\" version includes all fields."
13239 msgstr ""
13240
13241 #. type: =head2
13242 #: ../fish/guestfish-actions.pod:3808
13243 msgid "pvuuid"
13244 msgstr "pvuuid"
13245
13246 #. type: verbatim
13247 #: ../fish/guestfish-actions.pod:3810
13248 #, no-wrap
13249 msgid ""
13250 " pvuuid device\n"
13251 "\n"
13252 msgstr ""
13253 " pvuuid пристрій\n"
13254 "\n"
13255
13256 #. type: textblock
13257 #: ../fish/guestfish-actions.pod:3812 ../src/guestfs-actions.pod:5773
13258 msgid "This command returns the UUID of the LVM PV C<device>."
13259 msgstr ""
13260
13261 #. type: =head2
13262 #: ../fish/guestfish-actions.pod:3814
13263 msgid "pwrite"
13264 msgstr "pwrite"
13265
13266 #. type: verbatim
13267 #: ../fish/guestfish-actions.pod:3816
13268 #, no-wrap
13269 msgid ""
13270 " pwrite path content offset\n"
13271 "\n"
13272 msgstr ""
13273
13274 #. type: textblock
13275 #: ../fish/guestfish-actions.pod:3818 ../src/guestfs-actions.pod:5789
13276 msgid ""
13277 "This command writes to part of a file.  It writes the data buffer C<content> "
13278 "to the file C<path> starting at offset C<offset>."
13279 msgstr ""
13280
13281 #. type: textblock
13282 #: ../fish/guestfish-actions.pod:3821 ../src/guestfs-actions.pod:5792
13283 msgid ""
13284 "This command implements the L<pwrite(2)> system call, and like that system "
13285 "call it may not write the full data requested.  The return value is the "
13286 "number of bytes that were actually written to the file.  This could even be "
13287 "0, although short writes are unlikely for regular files in ordinary "
13288 "circumstances."
13289 msgstr ""
13290
13291 #. type: textblock
13292 #: ../fish/guestfish-actions.pod:3827
13293 msgid "See also L</pread>, L</pwrite-device>."
13294 msgstr "Див. також L</pread>, L</pwrite-device>."
13295
13296 #. type: =head2
13297 #: ../fish/guestfish-actions.pod:3832
13298 msgid "pwrite-device"
13299 msgstr "pwrite-device"
13300
13301 #. type: verbatim
13302 #: ../fish/guestfish-actions.pod:3834
13303 #, no-wrap
13304 msgid ""
13305 " pwrite-device device content offset\n"
13306 "\n"
13307 msgstr ""
13308
13309 #. type: textblock
13310 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5816
13311 msgid ""
13312 "This command writes to part of a device.  It writes the data buffer "
13313 "C<content> to C<device> starting at offset C<offset>."
13314 msgstr ""
13315
13316 #. type: textblock
13317 #: ../fish/guestfish-actions.pod:3839 ../src/guestfs-actions.pod:5819
13318 msgid ""
13319 "This command implements the L<pwrite(2)> system call, and like that system "
13320 "call it may not write the full data requested (although short writes to disk "
13321 "devices and partitions are probably impossible with standard Linux kernels)."
13322 msgstr ""
13323
13324 #. type: textblock
13325 #: ../fish/guestfish-actions.pod:3844
13326 msgid "See also L</pwrite>."
13327 msgstr "Див. також L</pwrite>."
13328
13329 #. type: =head2
13330 #: ../fish/guestfish-actions.pod:3849
13331 msgid "read-file"
13332 msgstr "read-file"
13333
13334 #. type: verbatim
13335 #: ../fish/guestfish-actions.pod:3851
13336 #, no-wrap
13337 msgid ""
13338 " read-file path\n"
13339 "\n"
13340 msgstr ""
13341 " read-file шлях\n"
13342 "\n"
13343
13344 #. type: textblock
13345 #: ../fish/guestfish-actions.pod:3853 ../src/guestfs-actions.pod:5840
13346 msgid "This calls returns the contents of the file C<path> as a buffer."
13347 msgstr ""
13348
13349 #. type: textblock
13350 #: ../fish/guestfish-actions.pod:3856
13351 msgid ""
13352 "Unlike L</cat>, this function can correctly handle files that contain "
13353 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13354 "is limited in the total size of file that can be handled."
13355 msgstr ""
13356
13357 #. type: =head2
13358 #: ../fish/guestfish-actions.pod:3864
13359 msgid "read-lines"
13360 msgstr "read-lines"
13361
13362 #. type: verbatim
13363 #: ../fish/guestfish-actions.pod:3866
13364 #, no-wrap
13365 msgid ""
13366 " read-lines path\n"
13367 "\n"
13368 msgstr ""
13369 " read-lines шлях\n"
13370 "\n"
13371
13372 #. type: textblock
13373 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5865
13374 msgid ""
13375 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13376 "C<CRLF> character sequences are I<not> returned."
13377 msgstr ""
13378
13379 #. type: textblock
13380 #: ../fish/guestfish-actions.pod:3873
13381 msgid ""
13382 "Note that this function cannot correctly handle binary files (specifically, "
13383 "files containing C<\\0> character which is treated as end of line).  For "
13384 "those you need to use the L</read-file> function which has a more complex "
13385 "interface."
13386 msgstr ""
13387
13388 #. type: =head2
13389 #: ../fish/guestfish-actions.pod:3878
13390 msgid "readdir"
13391 msgstr "readdir"
13392
13393 #. type: verbatim
13394 #: ../fish/guestfish-actions.pod:3880
13395 #, no-wrap
13396 msgid ""
13397 " readdir dir\n"
13398 "\n"
13399 msgstr ""
13400 " readdir каталог\n"
13401 "\n"
13402
13403 #. type: textblock
13404 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:5885
13405 msgid "This returns the list of directory entries in directory C<dir>."
13406 msgstr ""
13407
13408 #. type: textblock
13409 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5887
13410 msgid ""
13411 "All entries in the directory are returned, including C<.> and C<..>.  The "
13412 "entries are I<not> sorted, but returned in the same order as the underlying "
13413 "filesystem."
13414 msgstr ""
13415
13416 #. type: textblock
13417 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5891
13418 msgid ""
13419 "Also this call returns basic file type information about each file.  The "
13420 "C<ftyp> field will contain one of the following characters:"
13421 msgstr ""
13422
13423 #. type: =item
13424 #: ../fish/guestfish-actions.pod:3893 ../src/guestfs-actions.pod:5896
13425 msgid "'b'"
13426 msgstr "'b'"
13427
13428 #. type: textblock
13429 #: ../fish/guestfish-actions.pod:3895 ../src/guestfs-actions.pod:5898
13430 msgid "Block special"
13431 msgstr "Блоковий особливий"
13432
13433 #. type: =item
13434 #: ../fish/guestfish-actions.pod:3897 ../src/guestfs-actions.pod:5900
13435 msgid "'c'"
13436 msgstr "'c'"
13437
13438 #. type: textblock
13439 #: ../fish/guestfish-actions.pod:3899 ../src/guestfs-actions.pod:5902
13440 msgid "Char special"
13441 msgstr "Символьний особливий"
13442
13443 #. type: =item
13444 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5904
13445 msgid "'d'"
13446 msgstr "'d'"
13447
13448 #. type: textblock
13449 #: ../fish/guestfish-actions.pod:3903 ../src/guestfs-actions.pod:5906
13450 msgid "Directory"
13451 msgstr "Каталог"
13452
13453 #. type: =item
13454 #: ../fish/guestfish-actions.pod:3905 ../src/guestfs-actions.pod:5908
13455 msgid "'f'"
13456 msgstr "'f'"
13457
13458 #. type: textblock
13459 #: ../fish/guestfish-actions.pod:3907 ../src/guestfs-actions.pod:5910
13460 msgid "FIFO (named pipe)"
13461 msgstr "FIFO (іменований канал)"
13462
13463 #. type: =item
13464 #: ../fish/guestfish-actions.pod:3909 ../src/guestfs-actions.pod:5912
13465 msgid "'l'"
13466 msgstr "'l'"
13467
13468 #. type: textblock
13469 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:5914
13470 msgid "Symbolic link"
13471 msgstr "Символічне посилання"
13472
13473 #. type: =item
13474 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5916
13475 msgid "'r'"
13476 msgstr "'r'"
13477
13478 #. type: textblock
13479 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5918
13480 msgid "Regular file"
13481 msgstr "Звичайний файл"
13482
13483 #. type: =item
13484 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:5920
13485 msgid "'s'"
13486 msgstr "'s'"
13487
13488 #. type: textblock
13489 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5922
13490 msgid "Socket"
13491 msgstr "Сокет"
13492
13493 #. type: =item
13494 #: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:5924
13495 msgid "'u'"
13496 msgstr "'u'"
13497
13498 #. type: textblock
13499 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:5926
13500 msgid "Unknown file type"
13501 msgstr "Невідомий тип файла"
13502
13503 #. type: =item
13504 #: ../fish/guestfish-actions.pod:3925 ../src/guestfs-actions.pod:5928
13505 msgid "'?'"
13506 msgstr ""
13507
13508 #. type: textblock
13509 #: ../fish/guestfish-actions.pod:3927 ../src/guestfs-actions.pod:5930
13510 msgid ""
13511 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13512 msgstr ""
13513
13514 #. type: textblock
13515 #: ../fish/guestfish-actions.pod:3932
13516 msgid ""
13517 "This function is primarily intended for use by programs.  To get a simple "
13518 "list of names, use L</ls>.  To get a printable directory for human "
13519 "consumption, use L</ll>."
13520 msgstr ""
13521
13522 #. type: =head2
13523 #: ../fish/guestfish-actions.pod:3936
13524 msgid "readlink"
13525 msgstr "readlink"
13526
13527 #. type: verbatim
13528 #: ../fish/guestfish-actions.pod:3938
13529 #, no-wrap
13530 msgid ""
13531 " readlink path\n"
13532 "\n"
13533 msgstr ""
13534 " readlink шлях\n"
13535 "\n"
13536
13537 #. type: textblock
13538 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:5951
13539 msgid "This command reads the target of a symbolic link."
13540 msgstr ""
13541
13542 #. type: =head2
13543 #: ../fish/guestfish-actions.pod:3942
13544 msgid "readlinklist"
13545 msgstr "readlinklist"
13546
13547 #. type: verbatim
13548 #: ../fish/guestfish-actions.pod:3944
13549 #, no-wrap
13550 msgid ""
13551 " readlinklist path 'names ...'\n"
13552 "\n"
13553 msgstr ""
13554
13555 #. type: textblock
13556 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:5965
13557 msgid ""
13558 "This call allows you to do a C<readlink> operation on multiple files, where "
13559 "all files are in the directory C<path>.  C<names> is the list of files from "
13560 "this directory."
13561 msgstr ""
13562
13563 #. type: textblock
13564 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:5969
13565 msgid ""
13566 "On return you get a list of strings, with a one-to-one correspondence to the "
13567 "C<names> list.  Each string is the value of the symbolic link."
13568 msgstr ""
13569
13570 #. type: textblock
13571 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:5973
13572 msgid ""
13573 "If the C<readlink(2)> operation fails on any name, then the corresponding "
13574 "result string is the empty string C<\"\">.  However the whole operation is "
13575 "completed even if there were C<readlink(2)> errors, and so you can call this "
13576 "function with names where you don't know if they are symbolic links already "
13577 "(albeit slightly less efficient)."
13578 msgstr ""
13579
13580 #. type: textblock
13581 #: ../fish/guestfish-actions.pod:3961 ../src/guestfs-actions.pod:5980
13582 msgid ""
13583 "This call is intended for programs that want to efficiently list a directory "
13584 "contents without making many round-trips.  Very long directory listings "
13585 "might cause the protocol message size to be exceeded, causing this call to "
13586 "fail.  The caller must split up such requests into smaller groups of names."
13587 msgstr ""
13588
13589 #. type: =head2
13590 #: ../fish/guestfish-actions.pod:3968
13591 msgid "realpath"
13592 msgstr "realpath"
13593
13594 #. type: verbatim
13595 #: ../fish/guestfish-actions.pod:3970
13596 #, no-wrap
13597 msgid ""
13598 " realpath path\n"
13599 "\n"
13600 msgstr ""
13601 " realpath шлях\n"
13602 "\n"
13603
13604 #. type: textblock
13605 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:5999
13606 msgid ""
13607 "Return the canonicalized absolute pathname of C<path>.  The returned path "
13608 "has no C<.>, C<..> or symbolic link path elements."
13609 msgstr ""
13610
13611 #. type: =head2
13612 #: ../fish/guestfish-actions.pod:3975
13613 msgid "removexattr"
13614 msgstr "removexattr"
13615
13616 #. type: verbatim
13617 #: ../fish/guestfish-actions.pod:3977
13618 #, no-wrap
13619 msgid ""
13620 " removexattr xattr path\n"
13621 "\n"
13622 msgstr ""
13623
13624 #. type: textblock
13625 #: ../fish/guestfish-actions.pod:3979 ../src/guestfs-actions.pod:6014
13626 msgid ""
13627 "This call removes the extended attribute named C<xattr> of the file C<path>."
13628 msgstr ""
13629
13630 #. type: textblock
13631 #: ../fish/guestfish-actions.pod:3982
13632 msgid "See also: L</lremovexattr>, L<attr(5)>."
13633 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
13634
13635 #. type: =head2
13636 #: ../fish/guestfish-actions.pod:3984
13637 msgid "resize2fs"
13638 msgstr "resize2fs"
13639
13640 #. type: verbatim
13641 #: ../fish/guestfish-actions.pod:3986
13642 #, no-wrap
13643 msgid ""
13644 " resize2fs device\n"
13645 "\n"
13646 msgstr ""
13647 " resize2fs пристрій\n"
13648 "\n"
13649
13650 #. type: textblock
13651 #: ../fish/guestfish-actions.pod:3988 ../src/guestfs-actions.pod:6029
13652 msgid ""
13653 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
13654 "underlying device."
13655 msgstr ""
13656
13657 #. type: textblock
13658 #: ../fish/guestfish-actions.pod:3991
13659 msgid ""
13660 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
13661 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
13662 "gives an error about this and sometimes not.  In any case, it is always safe "
13663 "to call L</e2fsck-f> before calling this function."
13664 msgstr ""
13665
13666 #. type: =head2
13667 #: ../fish/guestfish-actions.pod:3997
13668 msgid "resize2fs-M"
13669 msgstr "resize2fs-M"
13670
13671 #. type: verbatim
13672 #: ../fish/guestfish-actions.pod:3999
13673 #, no-wrap
13674 msgid ""
13675 " resize2fs-M device\n"
13676 "\n"
13677 msgstr ""
13678 " resize2fs-M пристрій\n"
13679 "\n"
13680
13681 #. type: textblock
13682 #: ../fish/guestfish-actions.pod:4001
13683 msgid ""
13684 "This command is the same as L</resize2fs>, but the filesystem is resized to "
13685 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
13686 "command."
13687 msgstr ""
13688
13689 #. type: textblock
13690 #: ../fish/guestfish-actions.pod:4005
13691 msgid ""
13692 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
13693 "and read the C<Block size> and C<Block count> values.  These two numbers, "
13694 "multiplied together, give the resulting size of the minimal filesystem in "
13695 "bytes."
13696 msgstr ""
13697
13698 #. type: =head2
13699 #: ../fish/guestfish-actions.pod:4010
13700 msgid "resize2fs-size"
13701 msgstr "resize2fs-size"
13702
13703 #. type: verbatim
13704 #: ../fish/guestfish-actions.pod:4012
13705 #, no-wrap
13706 msgid ""
13707 " resize2fs-size device size\n"
13708 "\n"
13709 msgstr ""
13710
13711 #. type: textblock
13712 #: ../fish/guestfish-actions.pod:4014
13713 msgid ""
13714 "This command is the same as L</resize2fs> except that it allows you to "
13715 "specify the new size (in bytes) explicitly."
13716 msgstr ""
13717
13718 #. type: =head2
13719 #: ../fish/guestfish-actions.pod:4017
13720 msgid "rm"
13721 msgstr "rm"
13722
13723 #. type: verbatim
13724 #: ../fish/guestfish-actions.pod:4019
13725 #, no-wrap
13726 msgid ""
13727 " rm path\n"
13728 "\n"
13729 msgstr ""
13730 " rm шлях\n"
13731 "\n"
13732
13733 #. type: textblock
13734 #: ../fish/guestfish-actions.pod:4021 ../src/guestfs-actions.pod:6081
13735 msgid "Remove the single file C<path>."
13736 msgstr ""
13737
13738 #. type: =head2
13739 #: ../fish/guestfish-actions.pod:4023
13740 msgid "rm-rf"
13741 msgstr "rm-rf"
13742
13743 #. type: verbatim
13744 #: ../fish/guestfish-actions.pod:4025
13745 #, no-wrap
13746 msgid ""
13747 " rm-rf path\n"
13748 "\n"
13749 msgstr ""
13750 " rm-rf шлях\n"
13751 "\n"
13752
13753 #. type: textblock
13754 #: ../fish/guestfish-actions.pod:4027 ../src/guestfs-actions.pod:6093
13755 msgid ""
13756 "Remove the file or directory C<path>, recursively removing the contents if "
13757 "its a directory.  This is like the C<rm -rf> shell command."
13758 msgstr ""
13759
13760 #. type: =head2
13761 #: ../fish/guestfish-actions.pod:4031
13762 msgid "rmdir"
13763 msgstr "rmdir"
13764
13765 #. type: verbatim
13766 #: ../fish/guestfish-actions.pod:4033
13767 #, no-wrap
13768 msgid ""
13769 " rmdir path\n"
13770 "\n"
13771 msgstr ""
13772 " rmdir шлях\n"
13773 "\n"
13774
13775 #. type: textblock
13776 #: ../fish/guestfish-actions.pod:4035 ../src/guestfs-actions.pod:6107
13777 msgid "Remove the single directory C<path>."
13778 msgstr ""
13779
13780 #. type: =head2
13781 #: ../fish/guestfish-actions.pod:4037
13782 msgid "rmmountpoint"
13783 msgstr "rmmountpoint"
13784
13785 #. type: verbatim
13786 #: ../fish/guestfish-actions.pod:4039
13787 #, no-wrap
13788 msgid ""
13789 " rmmountpoint exemptpath\n"
13790 "\n"
13791 msgstr ""
13792
13793 #. type: textblock
13794 #: ../fish/guestfish-actions.pod:4041
13795 msgid ""
13796 "This calls removes a mountpoint that was previously created with L</"
13797 "mkmountpoint>.  See L</mkmountpoint> for full details."
13798 msgstr ""
13799
13800 #. type: =head2
13801 #: ../fish/guestfish-actions.pod:4045
13802 msgid "scrub-device"
13803 msgstr "scrub-device"
13804
13805 #. type: verbatim
13806 #: ../fish/guestfish-actions.pod:4047
13807 #, no-wrap
13808 msgid ""
13809 " scrub-device device\n"
13810 "\n"
13811 msgstr ""
13812 " scrub-device пристрій\n"
13813 "\n"
13814
13815 #. type: textblock
13816 #: ../fish/guestfish-actions.pod:4049 ../src/guestfs-actions.pod:6133
13817 msgid ""
13818 "This command writes patterns over C<device> to make data retrieval more "
13819 "difficult."
13820 msgstr ""
13821
13822 #. type: textblock
13823 #: ../fish/guestfish-actions.pod:4052 ../fish/guestfish-actions.pod:4067
13824 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6136
13825 #: ../src/guestfs-actions.pod:6157 ../src/guestfs-actions.pod:6176
13826 msgid ""
13827 "It is an interface to the L<scrub(1)> program.  See that manual page for "
13828 "more details."
13829 msgstr ""
13830
13831 #. type: =head2
13832 #: ../fish/guestfish-actions.pod:4058
13833 msgid "scrub-file"
13834 msgstr "scrub-file"
13835
13836 #. type: verbatim
13837 #: ../fish/guestfish-actions.pod:4060
13838 #, no-wrap
13839 msgid ""
13840 " scrub-file file\n"
13841 "\n"
13842 msgstr ""
13843 " scrub-file файл\n"
13844 "\n"
13845
13846 #. type: textblock
13847 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6152
13848 msgid ""
13849 "This command writes patterns over a file to make data retrieval more "
13850 "difficult."
13851 msgstr ""
13852
13853 #. type: textblock
13854 #: ../fish/guestfish-actions.pod:4065 ../src/guestfs-actions.pod:6155
13855 msgid "The file is I<removed> after scrubbing."
13856 msgstr ""
13857
13858 #. type: =head2
13859 #: ../fish/guestfish-actions.pod:4070
13860 msgid "scrub-freespace"
13861 msgstr "scrub-freespace"
13862
13863 #. type: verbatim
13864 #: ../fish/guestfish-actions.pod:4072
13865 #, no-wrap
13866 msgid ""
13867 " scrub-freespace dir\n"
13868 "\n"
13869 msgstr ""
13870 " scrub-freespace каталог\n"
13871 "\n"
13872
13873 #. type: textblock
13874 #: ../fish/guestfish-actions.pod:4074
13875 msgid ""
13876 "This command creates the directory C<dir> and then fills it with files until "
13877 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
13878 "deletes them.  The intention is to scrub any free space on the partition "
13879 "containing C<dir>."
13880 msgstr ""
13881
13882 #. type: =head2
13883 #: ../fish/guestfish-actions.pod:4083
13884 msgid "set-append"
13885 msgstr "set-append"
13886
13887 #. type: =head2
13888 #: ../fish/guestfish-actions.pod:4085
13889 msgid "append"
13890 msgstr ""
13891
13892 #. type: verbatim
13893 #: ../fish/guestfish-actions.pod:4087
13894 #, no-wrap
13895 msgid ""
13896 " set-append append\n"
13897 "\n"
13898 msgstr ""
13899
13900 #. type: textblock
13901 #: ../fish/guestfish-actions.pod:4089 ../src/guestfs-actions.pod:6189
13902 msgid ""
13903 "This function is used to add additional options to the guest kernel command "
13904 "line."
13905 msgstr ""
13906
13907 #. type: textblock
13908 #: ../fish/guestfish-actions.pod:4092 ../src/guestfs-actions.pod:6192
13909 msgid ""
13910 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
13911 "environment variable."
13912 msgstr ""
13913
13914 #. type: textblock
13915 #: ../fish/guestfish-actions.pod:4095 ../src/guestfs-actions.pod:6195
13916 msgid ""
13917 "Setting C<append> to C<NULL> means I<no> additional options are passed "
13918 "(libguestfs always adds a few of its own)."
13919 msgstr ""
13920
13921 #. type: =head2
13922 #: ../fish/guestfish-actions.pod:4098
13923 msgid "set-attach-method"
13924 msgstr "set-attach-method"
13925
13926 #. type: =head2
13927 #: ../fish/guestfish-actions.pod:4100
13928 msgid "attach-method"
13929 msgstr ""
13930
13931 #. type: verbatim
13932 #: ../fish/guestfish-actions.pod:4102
13933 #, no-wrap
13934 msgid ""
13935 " set-attach-method attachmethod\n"
13936 "\n"
13937 msgstr ""
13938
13939 #. type: textblock
13940 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6208
13941 msgid ""
13942 "Set the method that libguestfs uses to connect to the back end guestfsd "
13943 "daemon.  Possible methods are:"
13944 msgstr ""
13945
13946 #. type: =item
13947 #: ../fish/guestfish-actions.pod:4109 ../src/guestfs-actions.pod:6213
13948 #: ../src/guestfs.pod:2800
13949 msgid "C<appliance>"
13950 msgstr "C<appliance>"
13951
13952 #. type: textblock
13953 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6215
13954 msgid ""
13955 "Launch an appliance and connect to it.  This is the ordinary method and the "
13956 "default."
13957 msgstr ""
13958
13959 #. type: =item
13960 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6218
13961 msgid "C<unix:I<path>>"
13962 msgstr "C<unix:I<шлях>>"
13963
13964 #. type: textblock
13965 #: ../fish/guestfish-actions.pod:4116 ../src/guestfs-actions.pod:6220
13966 msgid "Connect to the Unix domain socket I<path>."
13967 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
13968
13969 #. type: textblock
13970 #: ../fish/guestfish-actions.pod:4118 ../src/guestfs-actions.pod:6222
13971 msgid ""
13972 "This method lets you connect to an existing daemon or (using virtio-serial) "
13973 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
13974 "RUNNING DAEMONS>."
13975 msgstr ""
13976
13977 #. type: =head2
13978 #: ../fish/guestfish-actions.pod:4124
13979 msgid "set-autosync"
13980 msgstr "set-autosync"
13981
13982 #. type: =head2
13983 #: ../fish/guestfish-actions.pod:4126
13984 msgid "autosync"
13985 msgstr "autosync"
13986
13987 #. type: verbatim
13988 #: ../fish/guestfish-actions.pod:4128
13989 #, no-wrap
13990 msgid ""
13991 " set-autosync true|false\n"
13992 "\n"
13993 msgstr ""
13994 " set-autosync true|false\n"
13995 "\n"
13996
13997 #. type: textblock
13998 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6238
13999 msgid ""
14000 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
14001 "effort attempt to make filesystems consistent and synchronized when the "
14002 "handle is closed (also if the program exits without closing handles)."
14003 msgstr ""
14004
14005 #. type: textblock
14006 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6243
14007 msgid ""
14008 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14009 "disabled by default)."
14010 msgstr ""
14011
14012 #. type: =head2
14013 #: ../fish/guestfish-actions.pod:4138
14014 msgid "set-direct"
14015 msgstr "set-direct"
14016
14017 #. type: =head2
14018 #: ../fish/guestfish-actions.pod:4140
14019 msgid "direct"
14020 msgstr "direct"
14021
14022 #. type: verbatim
14023 #: ../fish/guestfish-actions.pod:4142
14024 #, no-wrap
14025 msgid ""
14026 " set-direct true|false\n"
14027 "\n"
14028 msgstr ""
14029 " set-direct true|false\n"
14030 "\n"
14031
14032 #. type: textblock
14033 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6256
14034 msgid ""
14035 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14036 "passed directly through to the appliance once it is launched."
14037 msgstr ""
14038
14039 #. type: textblock
14040 #: ../fish/guestfish-actions.pod:4148
14041 msgid ""
14042 "One consequence of this is that log messages aren't caught by the library "
14043 "and handled by L</set-log-message-callback>, but go straight to stdout."
14044 msgstr ""
14045
14046 #. type: textblock
14047 #: ../fish/guestfish-actions.pod:4152 ../src/guestfs-actions.pod:6264
14048 msgid "You probably don't want to use this unless you know what you are doing."
14049 msgstr ""
14050
14051 #. type: textblock
14052 #: ../fish/guestfish-actions.pod:4155 ../src/guestfs-actions.pod:6267
14053 msgid "The default is disabled."
14054 msgstr ""
14055
14056 #. type: =head2
14057 #: ../fish/guestfish-actions.pod:4157
14058 msgid "set-e2label"
14059 msgstr "set-e2label"
14060
14061 #. type: verbatim
14062 #: ../fish/guestfish-actions.pod:4159
14063 #, no-wrap
14064 msgid ""
14065 " set-e2label device label\n"
14066 "\n"
14067 msgstr ""
14068
14069 #. type: textblock
14070 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6280
14071 msgid ""
14072 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14073 "C<label>.  Filesystem labels are limited to 16 characters."
14074 msgstr ""
14075
14076 #. type: textblock
14077 #: ../fish/guestfish-actions.pod:4165
14078 msgid ""
14079 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14080 "label on a filesystem."
14081 msgstr ""
14082
14083 #. type: =head2
14084 #: ../fish/guestfish-actions.pod:4168
14085 msgid "set-e2uuid"
14086 msgstr "set-e2uuid"
14087
14088 #. type: verbatim
14089 #: ../fish/guestfish-actions.pod:4170
14090 #, no-wrap
14091 msgid ""
14092 " set-e2uuid device uuid\n"
14093 "\n"
14094 msgstr ""
14095
14096 #. type: textblock
14097 #: ../fish/guestfish-actions.pod:4172 ../src/guestfs-actions.pod:6298
14098 msgid ""
14099 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14100 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
14101 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14102 msgstr ""
14103
14104 #. type: textblock
14105 #: ../fish/guestfish-actions.pod:4177
14106 msgid ""
14107 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14108 "UUID of a filesystem."
14109 msgstr ""
14110
14111 #. type: =head2
14112 #: ../fish/guestfish-actions.pod:4180
14113 msgid "set-memsize"
14114 msgstr "set-memsize"
14115
14116 #. type: =head2
14117 #: ../fish/guestfish-actions.pod:4182
14118 msgid "memsize"
14119 msgstr ""
14120
14121 #. type: verbatim
14122 #: ../fish/guestfish-actions.pod:4184
14123 #, no-wrap
14124 msgid ""
14125 " set-memsize memsize\n"
14126 "\n"
14127 msgstr ""
14128
14129 #. type: textblock
14130 #: ../fish/guestfish-actions.pod:4186
14131 msgid ""
14132 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
14133 "This only has any effect if called before L</launch>."
14134 msgstr ""
14135
14136 #. type: textblock
14137 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6320
14138 msgid ""
14139 "You can also change this by setting the environment variable "
14140 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14141 msgstr ""
14142
14143 #. type: =head2
14144 #: ../fish/guestfish-actions.pod:4197
14145 msgid "set-network"
14146 msgstr "set-network"
14147
14148 #. type: =head2
14149 #: ../fish/guestfish-actions.pod:4199
14150 msgid "network"
14151 msgstr "network"
14152
14153 #. type: verbatim
14154 #: ../fish/guestfish-actions.pod:4201
14155 #, no-wrap
14156 msgid ""
14157 " set-network true|false\n"
14158 "\n"
14159 msgstr ""
14160 " set-network true|false\n"
14161 "\n"
14162
14163 #. type: textblock
14164 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6337
14165 msgid ""
14166 "If C<network> is true, then the network is enabled in the libguestfs "
14167 "appliance.  The default is false."
14168 msgstr ""
14169
14170 #. type: textblock
14171 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6340
14172 msgid ""
14173 "This affects whether commands are able to access the network (see L<guestfs"
14174 "(3)/RUNNING COMMANDS>)."
14175 msgstr ""
14176
14177 #. type: textblock
14178 #: ../fish/guestfish-actions.pod:4209
14179 msgid ""
14180 "You must call this before calling L</launch>, otherwise it has no effect."
14181 msgstr ""
14182
14183 #. type: =head2
14184 #: ../fish/guestfish-actions.pod:4212
14185 msgid "set-path"
14186 msgstr "set-path"
14187
14188 #. type: verbatim
14189 #: ../fish/guestfish-actions.pod:4216
14190 #, no-wrap
14191 msgid ""
14192 " set-path searchpath\n"
14193 "\n"
14194 msgstr ""
14195
14196 #. type: textblock
14197 #: ../fish/guestfish-actions.pod:4218 ../src/guestfs-actions.pod:6356
14198 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14199 msgstr ""
14200
14201 #. type: textblock
14202 #: ../fish/guestfish-actions.pod:4220 ../src/guestfs-actions.pod:6358
14203 msgid ""
14204 "The default is C<$libdir/guestfs> unless overridden by setting "
14205 "C<LIBGUESTFS_PATH> environment variable."
14206 msgstr ""
14207
14208 #. type: textblock
14209 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6361
14210 msgid "Setting C<path> to C<NULL> restores the default path."
14211 msgstr ""
14212
14213 #. type: =head2
14214 #: ../fish/guestfish-actions.pod:4225
14215 msgid "set-pgroup"
14216 msgstr ""
14217
14218 #. type: =head2
14219 #: ../fish/guestfish-actions.pod:4227
14220 msgid "pgroup"
14221 msgstr ""
14222
14223 #. type: verbatim
14224 #: ../fish/guestfish-actions.pod:4229
14225 #, no-wrap
14226 msgid ""
14227 " set-pgroup true|false\n"
14228 "\n"
14229 msgstr ""
14230
14231 #. type: textblock
14232 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6373
14233 msgid ""
14234 "If C<pgroup> is true, child processes are placed into their own process "
14235 "group."
14236 msgstr ""
14237
14238 #. type: textblock
14239 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6376
14240 msgid ""
14241 "The practical upshot of this is that signals like C<SIGINT> (from users "
14242 "pressing C<^C>) won't be received by the child process."
14243 msgstr ""
14244
14245 #. type: textblock
14246 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6379
14247 msgid ""
14248 "The default for this flag is false, because usually you want C<^C> to kill "
14249 "the subprocess."
14250 msgstr ""
14251
14252 #. type: =head2
14253 #: ../fish/guestfish-actions.pod:4240
14254 msgid "set-qemu"
14255 msgstr "set-qemu"
14256
14257 #. type: =head2
14258 #: ../fish/guestfish-actions.pod:4242
14259 msgid "qemu"
14260 msgstr "qemu"
14261
14262 #. type: verbatim
14263 #: ../fish/guestfish-actions.pod:4244
14264 #, no-wrap
14265 msgid ""
14266 " set-qemu qemu\n"
14267 "\n"
14268 msgstr ""
14269 " set-qemu qemu\n"
14270 "\n"
14271
14272 #. type: textblock
14273 #: ../fish/guestfish-actions.pod:4246 ../src/guestfs-actions.pod:6392
14274 msgid "Set the qemu binary that we will use."
14275 msgstr ""
14276
14277 #. type: textblock
14278 #: ../fish/guestfish-actions.pod:4248 ../src/guestfs-actions.pod:6394
14279 msgid ""
14280 "The default is chosen when the library was compiled by the configure script."
14281 msgstr ""
14282
14283 #. type: textblock
14284 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6397
14285 msgid ""
14286 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14287 "variable."
14288 msgstr ""
14289
14290 #. type: textblock
14291 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6400
14292 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14293 msgstr ""
14294
14295 #. type: textblock
14296 #: ../fish/guestfish-actions.pod:4256 ../src/guestfs-actions.pod:6402
14297 msgid ""
14298 "Note that you should call this function as early as possible after creating "
14299 "the handle.  This is because some pre-launch operations depend on testing "
14300 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14301 "don't retest features, and so you might see inconsistent results.  Using the "
14302 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14303 "the qemu binary at the same time as the handle is created."
14304 msgstr ""
14305
14306 #. type: =head2
14307 #: ../fish/guestfish-actions.pod:4264
14308 msgid "set-recovery-proc"
14309 msgstr "set-recovery-proc"
14310
14311 #. type: =head2
14312 #: ../fish/guestfish-actions.pod:4266
14313 msgid "recovery-proc"
14314 msgstr "recovery-proc"
14315
14316 #. type: verbatim
14317 #: ../fish/guestfish-actions.pod:4268
14318 #, no-wrap
14319 msgid ""
14320 " set-recovery-proc true|false\n"
14321 "\n"
14322 msgstr ""
14323 " set-recovery-proc true|false\n"
14324 "\n"
14325
14326 #. type: textblock
14327 #: ../fish/guestfish-actions.pod:4270
14328 msgid ""
14329 "If this is called with the parameter C<false> then L</launch> does not "
14330 "create a recovery process.  The purpose of the recovery process is to stop "
14331 "runaway qemu processes in the case where the main program aborts abruptly."
14332 msgstr ""
14333
14334 #. type: textblock
14335 #: ../fish/guestfish-actions.pod:4275
14336 msgid ""
14337 "This only has any effect if called before L</launch>, and the default is "
14338 "true."
14339 msgstr ""
14340
14341 #. type: textblock
14342 #: ../fish/guestfish-actions.pod:4278 ../src/guestfs-actions.pod:6428
14343 msgid ""
14344 "About the only time when you would want to disable this is if the main "
14345 "process will fork itself into the background (\"daemonize\" itself).  In "
14346 "this case the recovery process thinks that the main program has disappeared "
14347 "and so kills qemu, which is not very helpful."
14348 msgstr ""
14349
14350 #. type: =head2
14351 #: ../fish/guestfish-actions.pod:4284
14352 msgid "set-selinux"
14353 msgstr "set-selinux"
14354
14355 #. type: =head2
14356 #: ../fish/guestfish-actions.pod:4286
14357 msgid "selinux"
14358 msgstr "selinux"
14359
14360 #. type: verbatim
14361 #: ../fish/guestfish-actions.pod:4288
14362 #, no-wrap
14363 msgid ""
14364 " set-selinux true|false\n"
14365 "\n"
14366 msgstr ""
14367 " set-selinux true|false\n"
14368 "\n"
14369
14370 #. type: textblock
14371 #: ../fish/guestfish-actions.pod:4290 ../src/guestfs-actions.pod:6444
14372 msgid ""
14373 "This sets the selinux flag that is passed to the appliance at boot time.  "
14374 "The default is C<selinux=0> (disabled)."
14375 msgstr ""
14376
14377 #. type: textblock
14378 #: ../fish/guestfish-actions.pod:4293 ../src/guestfs-actions.pod:6447
14379 msgid ""
14380 "Note that if SELinux is enabled, it is always in Permissive mode "
14381 "(C<enforcing=0>)."
14382 msgstr ""
14383
14384 #. type: =head2
14385 #: ../fish/guestfish-actions.pod:4299
14386 msgid "set-trace"
14387 msgstr "set-trace"
14388
14389 #. type: =head2
14390 #: ../fish/guestfish-actions.pod:4301
14391 msgid "trace"
14392 msgstr "trace"
14393
14394 #. type: verbatim
14395 #: ../fish/guestfish-actions.pod:4303
14396 #, no-wrap
14397 msgid ""
14398 " set-trace true|false\n"
14399 "\n"
14400 msgstr ""
14401 " set-trace true|false\n"
14402 "\n"
14403
14404 #. type: textblock
14405 #: ../fish/guestfish-actions.pod:4305 ../src/guestfs-actions.pod:6463
14406 msgid ""
14407 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14408 "return values are traced."
14409 msgstr ""
14410
14411 #. type: textblock
14412 #: ../fish/guestfish-actions.pod:4308 ../src/guestfs-actions.pod:6466
14413 msgid ""
14414 "If you want to trace C API calls into libguestfs (and other libraries) then "
14415 "possibly a better way is to use the external ltrace(1) command."
14416 msgstr ""
14417
14418 #. type: textblock
14419 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6470
14420 msgid ""
14421 "Command traces are disabled unless the environment variable "
14422 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14423 msgstr ""
14424
14425 #. type: textblock
14426 #: ../fish/guestfish-actions.pod:4315
14427 msgid ""
14428 "Trace messages are normally sent to C<stderr>, unless you register a "
14429 "callback to send them somewhere else (see L</set-event-callback>)."
14430 msgstr ""
14431
14432 #. type: =head2
14433 #: ../fish/guestfish-actions.pod:4319
14434 msgid "set-verbose"
14435 msgstr "set-verbose"
14436
14437 #. type: =head2
14438 #: ../fish/guestfish-actions.pod:4321
14439 msgid "verbose"
14440 msgstr ""
14441
14442 #. type: verbatim
14443 #: ../fish/guestfish-actions.pod:4323
14444 #, no-wrap
14445 msgid ""
14446 " set-verbose true|false\n"
14447 "\n"
14448 msgstr ""
14449 " set-verbose true|false\n"
14450 "\n"
14451
14452 #. type: textblock
14453 #: ../fish/guestfish-actions.pod:4325 ../src/guestfs-actions.pod:6487
14454 msgid "If C<verbose> is true, this turns on verbose messages."
14455 msgstr ""
14456
14457 #. type: textblock
14458 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6489
14459 msgid ""
14460 "Verbose messages are disabled unless the environment variable "
14461 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14462 msgstr ""
14463
14464 #. type: textblock
14465 #: ../fish/guestfish-actions.pod:4330
14466 msgid ""
14467 "Verbose messages are normally sent to C<stderr>, unless you register a "
14468 "callback to send them somewhere else (see L</set-event-callback>)."
14469 msgstr ""
14470
14471 #. type: =head2
14472 #: ../fish/guestfish-actions.pod:4334
14473 msgid "setcon"
14474 msgstr "setcon"
14475
14476 #. type: verbatim
14477 #: ../fish/guestfish-actions.pod:4336
14478 #, no-wrap
14479 msgid ""
14480 " setcon context\n"
14481 "\n"
14482 msgstr ""
14483 " setcon контекст\n"
14484 "\n"
14485
14486 #. type: textblock
14487 #: ../fish/guestfish-actions.pod:4338 ../src/guestfs-actions.pod:6506
14488 msgid ""
14489 "This sets the SELinux security context of the daemon to the string "
14490 "C<context>."
14491 msgstr ""
14492
14493 #. type: textblock
14494 #: ../fish/guestfish-actions.pod:4341 ../src/guestfs-actions.pod:6509
14495 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14496 msgstr ""
14497
14498 #. type: =head2
14499 #: ../fish/guestfish-actions.pod:4343
14500 msgid "setxattr"
14501 msgstr "setxattr"
14502
14503 #. type: verbatim
14504 #: ../fish/guestfish-actions.pod:4345
14505 #, no-wrap
14506 msgid ""
14507 " setxattr xattr val vallen path\n"
14508 "\n"
14509 msgstr ""
14510
14511 #. type: textblock
14512 #: ../fish/guestfish-actions.pod:4347 ../src/guestfs-actions.pod:6524
14513 msgid ""
14514 "This call sets the extended attribute named C<xattr> of the file C<path> to "
14515 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
14516 msgstr ""
14517
14518 #. type: textblock
14519 #: ../fish/guestfish-actions.pod:4351
14520 msgid "See also: L</lsetxattr>, L<attr(5)>."
14521 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
14522
14523 #. type: =head2
14524 #: ../fish/guestfish-actions.pod:4353
14525 msgid "sfdisk"
14526 msgstr "sfdisk"
14527
14528 #. type: verbatim
14529 #: ../fish/guestfish-actions.pod:4355
14530 #, no-wrap
14531 msgid ""
14532 " sfdisk device cyls heads sectors 'lines ...'\n"
14533 "\n"
14534 msgstr ""
14535
14536 #. type: textblock
14537 #: ../fish/guestfish-actions.pod:4357 ../src/guestfs-actions.pod:6551
14538 msgid ""
14539 "This is a direct interface to the L<sfdisk(8)> program for creating "
14540 "partitions on block devices."
14541 msgstr ""
14542
14543 #. type: textblock
14544 #: ../fish/guestfish-actions.pod:4360 ../src/guestfs-actions.pod:6554
14545 msgid "C<device> should be a block device, for example C</dev/sda>."
14546 msgstr ""
14547
14548 #. type: textblock
14549 #: ../fish/guestfish-actions.pod:4362 ../src/guestfs-actions.pod:6556
14550 msgid ""
14551 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
14552 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
14553 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
14554 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
14555 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
14556 "the kernel) cannot work out the right geometry and you will need to tell it."
14557 msgstr ""
14558
14559 #. type: textblock
14560 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6564
14561 msgid ""
14562 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
14563 "refer to the L<sfdisk(8)> manpage."
14564 msgstr ""
14565
14566 #. type: textblock
14567 #: ../fish/guestfish-actions.pod:4373 ../src/guestfs-actions.pod:6567
14568 msgid ""
14569 "To create a single partition occupying the whole disk, you would pass "
14570 "C<lines> as a single element list, when the single element being the string "
14571 "C<,> (comma)."
14572 msgstr ""
14573
14574 #. type: textblock
14575 #: ../fish/guestfish-actions.pod:4377
14576 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14577 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
14578
14579 #. type: textblock
14580 #: ../fish/guestfish-actions.pod:4383 ../fish/guestfish-actions.pod:4406
14581 #: ../fish/guestfish-actions.pod:4428
14582 msgid ""
14583 "I<This function is deprecated.> In new code, use the L</part_add> call "
14584 "instead."
14585 msgstr ""
14586
14587 #. type: =head2
14588 #: ../fish/guestfish-actions.pod:4390
14589 msgid "sfdiskM"
14590 msgstr "sfdiskM"
14591
14592 #. type: verbatim
14593 #: ../fish/guestfish-actions.pod:4392
14594 #, no-wrap
14595 msgid ""
14596 " sfdiskM device 'lines ...'\n"
14597 "\n"
14598 msgstr ""
14599
14600 #. type: textblock
14601 #: ../fish/guestfish-actions.pod:4394
14602 msgid ""
14603 "This is a simplified interface to the L</sfdisk> command, where partition "
14604 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
14605 "you don't need to specify the cyls, heads and sectors parameters which were "
14606 "rarely if ever used anyway."
14607 msgstr ""
14608
14609 #. type: textblock
14610 #: ../fish/guestfish-actions.pod:4400
14611 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
14612 msgstr ""
14613 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
14614
14615 #. type: =head2
14616 #: ../fish/guestfish-actions.pod:4413
14617 msgid "sfdisk-N"
14618 msgstr "sfdisk-N"
14619
14620 #. type: verbatim
14621 #: ../fish/guestfish-actions.pod:4415
14622 #, no-wrap
14623 msgid ""
14624 " sfdisk-N device partnum cyls heads sectors line\n"
14625 "\n"
14626 msgstr ""
14627
14628 #. type: textblock
14629 #: ../fish/guestfish-actions.pod:4417 ../src/guestfs-actions.pod:6629
14630 msgid ""
14631 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
14632 "(note: C<n> counts from 1)."
14633 msgstr ""
14634
14635 #. type: textblock
14636 #: ../fish/guestfish-actions.pod:4420
14637 msgid ""
14638 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
14639 "cyls/heads/sectors parameters."
14640 msgstr ""
14641
14642 #. type: textblock
14643 #: ../fish/guestfish-actions.pod:4423
14644 msgid "See also: L</part-add>"
14645 msgstr "Див. також L</part-add>"
14646
14647 #. type: =head2
14648 #: ../fish/guestfish-actions.pod:4435
14649 msgid "sfdisk-disk-geometry"
14650 msgstr "sfdisk-disk-geometry"
14651
14652 #. type: verbatim
14653 #: ../fish/guestfish-actions.pod:4437
14654 #, no-wrap
14655 msgid ""
14656 " sfdisk-disk-geometry device\n"
14657 "\n"
14658 msgstr ""
14659 " sfdisk-disk-geometry пристрій\n"
14660 "\n"
14661
14662 #. type: textblock
14663 #: ../fish/guestfish-actions.pod:4439
14664 msgid ""
14665 "This displays the disk geometry of C<device> read from the partition table.  "
14666 "Especially in the case where the underlying block device has been resized, "
14667 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
14668 "kernel-geometry>)."
14669 msgstr ""
14670
14671 #. type: textblock
14672 #: ../fish/guestfish-actions.pod:4444 ../fish/guestfish-actions.pod:4453
14673 #: ../src/guestfs-actions.pod:6655 ../src/guestfs-actions.pod:6671
14674 msgid "The result is in human-readable format, and not designed to be parsed."
14675 msgstr ""
14676
14677 #. type: =head2
14678 #: ../fish/guestfish-actions.pod:4447
14679 msgid "sfdisk-kernel-geometry"
14680 msgstr "sfdisk-kernel-geometry"
14681
14682 #. type: verbatim
14683 #: ../fish/guestfish-actions.pod:4449
14684 #, no-wrap
14685 msgid ""
14686 " sfdisk-kernel-geometry device\n"
14687 "\n"
14688 msgstr ""
14689 " sfdisk-kernel-geometry пристрій\n"
14690 "\n"
14691
14692 #. type: textblock
14693 #: ../fish/guestfish-actions.pod:4451 ../src/guestfs-actions.pod:6669
14694 msgid "This displays the kernel's idea of the geometry of C<device>."
14695 msgstr ""
14696
14697 #. type: =head2
14698 #: ../fish/guestfish-actions.pod:4456
14699 msgid "sfdisk-l"
14700 msgstr "sfdisk-l"
14701
14702 #. type: verbatim
14703 #: ../fish/guestfish-actions.pod:4458
14704 #, no-wrap
14705 msgid ""
14706 " sfdisk-l device\n"
14707 "\n"
14708 msgstr ""
14709 " sfdisk-l пристрій\n"
14710 "\n"
14711
14712 #. type: textblock
14713 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6692
14714 msgid ""
14715 "This displays the partition table on C<device>, in the human-readable output "
14716 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
14717 msgstr ""
14718
14719 #. type: textblock
14720 #: ../fish/guestfish-actions.pod:4464
14721 msgid "See also: L</part-list>"
14722 msgstr "Див. також L</part-list>"
14723
14724 #. type: textblock
14725 #: ../fish/guestfish-actions.pod:4466
14726 msgid ""
14727 "I<This function is deprecated.> In new code, use the L</part_list> call "
14728 "instead."
14729 msgstr ""
14730
14731 #. type: =head2
14732 #: ../fish/guestfish-actions.pod:4473
14733 msgid "sh"
14734 msgstr "sh"
14735
14736 #. type: verbatim
14737 #: ../fish/guestfish-actions.pod:4475
14738 #, no-wrap
14739 msgid ""
14740 " sh command\n"
14741 "\n"
14742 msgstr ""
14743 " sh команда\n"
14744 "\n"
14745
14746 #. type: textblock
14747 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6709
14748 msgid ""
14749 "This call runs a command from the guest filesystem via the guest's C</bin/"
14750 "sh>."
14751 msgstr ""
14752
14753 #. type: textblock
14754 #: ../fish/guestfish-actions.pod:4480
14755 msgid "This is like L</command>, but passes the command to:"
14756 msgstr ""
14757
14758 #. type: verbatim
14759 #: ../fish/guestfish-actions.pod:4482 ../src/guestfs-actions.pod:6714
14760 #, no-wrap
14761 msgid ""
14762 " /bin/sh -c \"command\"\n"
14763 "\n"
14764 msgstr ""
14765
14766 #. type: textblock
14767 #: ../fish/guestfish-actions.pod:4484 ../src/guestfs-actions.pod:6716
14768 msgid ""
14769 "Depending on the guest's shell, this usually results in wildcards being "
14770 "expanded, shell expressions being interpolated and so on."
14771 msgstr ""
14772
14773 #. type: textblock
14774 #: ../fish/guestfish-actions.pod:4488
14775 msgid "All the provisos about L</command> apply to this call."
14776 msgstr ""
14777
14778 #. type: =head2
14779 #: ../fish/guestfish-actions.pod:4490
14780 msgid "sh-lines"
14781 msgstr "sh-lines"
14782
14783 #. type: verbatim
14784 #: ../fish/guestfish-actions.pod:4492
14785 #, no-wrap
14786 msgid ""
14787 " sh-lines command\n"
14788 "\n"
14789 msgstr ""
14790 " sh-lines команда\n"
14791 "\n"
14792
14793 #. type: textblock
14794 #: ../fish/guestfish-actions.pod:4494
14795 msgid "This is the same as L</sh>, but splits the result into a list of lines."
14796 msgstr ""
14797
14798 #. type: textblock
14799 #: ../fish/guestfish-actions.pod:4497
14800 msgid "See also: L</command-lines>"
14801 msgstr "Див. також L</command-lines>"
14802
14803 #. type: =head2
14804 #: ../fish/guestfish-actions.pod:4499
14805 msgid "sleep"
14806 msgstr "sleep"
14807
14808 #. type: verbatim
14809 #: ../fish/guestfish-actions.pod:4501
14810 #, no-wrap
14811 msgid ""
14812 " sleep secs\n"
14813 "\n"
14814 msgstr ""
14815 " sleep час_у_секундах\n"
14816 "\n"
14817
14818 #. type: textblock
14819 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6750
14820 msgid "Sleep for C<secs> seconds."
14821 msgstr ""
14822
14823 #. type: =head2
14824 #: ../fish/guestfish-actions.pod:4505
14825 msgid "stat"
14826 msgstr "stat"
14827
14828 #. type: verbatim
14829 #: ../fish/guestfish-actions.pod:4507
14830 #, no-wrap
14831 msgid ""
14832 " stat path\n"
14833 "\n"
14834 msgstr ""
14835 " stat шлях\n"
14836 "\n"
14837
14838 #. type: textblock
14839 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6764
14840 msgid "This is the same as the C<stat(2)> system call."
14841 msgstr ""
14842
14843 #. type: =head2
14844 #: ../fish/guestfish-actions.pod:4513
14845 msgid "statvfs"
14846 msgstr "statvfs"
14847
14848 #. type: verbatim
14849 #: ../fish/guestfish-actions.pod:4515
14850 #, no-wrap
14851 msgid ""
14852 " statvfs path\n"
14853 "\n"
14854 msgstr ""
14855 " statvfs шлях\n"
14856 "\n"
14857
14858 #. type: textblock
14859 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6778
14860 msgid ""
14861 "Returns file system statistics for any mounted file system.  C<path> should "
14862 "be a file or directory in the mounted file system (typically it is the mount "
14863 "point itself, but it doesn't need to be)."
14864 msgstr ""
14865
14866 #. type: textblock
14867 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6782
14868 msgid "This is the same as the C<statvfs(2)> system call."
14869 msgstr ""
14870
14871 #. type: =head2
14872 #: ../fish/guestfish-actions.pod:4523
14873 msgid "strings"
14874 msgstr "strings"
14875
14876 #. type: verbatim
14877 #: ../fish/guestfish-actions.pod:4525
14878 #, no-wrap
14879 msgid ""
14880 " strings path\n"
14881 "\n"
14882 msgstr ""
14883 " strings шлях\n"
14884 "\n"
14885
14886 #. type: textblock
14887 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6796
14888 msgid ""
14889 "This runs the L<strings(1)> command on a file and returns the list of "
14890 "printable strings found."
14891 msgstr ""
14892
14893 #. type: =head2
14894 #: ../fish/guestfish-actions.pod:4533
14895 msgid "strings-e"
14896 msgstr "strings-e"
14897
14898 #. type: verbatim
14899 #: ../fish/guestfish-actions.pod:4535
14900 #, no-wrap
14901 msgid ""
14902 " strings-e encoding path\n"
14903 "\n"
14904 msgstr ""
14905 " strings-e кодування шлях\n"
14906 "\n"
14907
14908 #. type: textblock
14909 #: ../fish/guestfish-actions.pod:4537
14910 msgid ""
14911 "This is like the L</strings> command, but allows you to specify the encoding "
14912 "of strings that are looked for in the source file C<path>."
14913 msgstr ""
14914
14915 #. type: textblock
14916 #: ../fish/guestfish-actions.pod:4541 ../src/guestfs-actions.pod:6819
14917 msgid "Allowed encodings are:"
14918 msgstr "Можливими кодуваннями є:"
14919
14920 #. type: =item
14921 #: ../fish/guestfish-actions.pod:4545 ../src/guestfs-actions.pod:6823
14922 msgid "s"
14923 msgstr "s"
14924
14925 #. type: textblock
14926 #: ../fish/guestfish-actions.pod:4547
14927 msgid ""
14928 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
14929 "ISO-8859-X (this is what L</strings> uses)."
14930 msgstr ""
14931
14932 #. type: =item
14933 #: ../fish/guestfish-actions.pod:4550 ../src/guestfs-actions.pod:6828
14934 msgid "S"
14935 msgstr "S"
14936
14937 #. type: textblock
14938 #: ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:6830
14939 msgid "Single 8-bit-byte characters."
14940 msgstr "Окремі 8-бітові-байтові символи."
14941
14942 #. type: =item
14943 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6832
14944 msgid "b"
14945 msgstr "b"
14946
14947 #. type: textblock
14948 #: ../fish/guestfish-actions.pod:4556 ../src/guestfs-actions.pod:6834
14949 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
14950 msgstr ""
14951
14952 #. type: =item
14953 #: ../fish/guestfish-actions.pod:4559 ../src/guestfs-actions.pod:6837
14954 msgid "l (lower case letter L)"
14955 msgstr ""
14956
14957 #. type: textblock
14958 #: ../fish/guestfish-actions.pod:4561 ../src/guestfs-actions.pod:6839
14959 msgid ""
14960 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
14961 "examining binaries in Windows guests."
14962 msgstr ""
14963
14964 #. type: =item
14965 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6842
14966 msgid "B"
14967 msgstr "B"
14968
14969 #. type: textblock
14970 #: ../fish/guestfish-actions.pod:4566 ../src/guestfs-actions.pod:6844
14971 msgid "32-bit big endian such as UCS-4BE."
14972 msgstr ""
14973
14974 #. type: =item
14975 #: ../fish/guestfish-actions.pod:4568 ../src/guestfs-actions.pod:6846
14976 msgid "L"
14977 msgstr "L"
14978
14979 #. type: textblock
14980 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6848
14981 msgid "32-bit little endian such as UCS-4LE."
14982 msgstr ""
14983
14984 #. type: textblock
14985 #: ../fish/guestfish-actions.pod:4574 ../src/guestfs-actions.pod:6852
14986 msgid "The returned strings are transcoded to UTF-8."
14987 msgstr ""
14988
14989 #. type: =head2
14990 #: ../fish/guestfish-actions.pod:4579
14991 msgid "swapoff-device"
14992 msgstr "swapoff-device"
14993
14994 #. type: verbatim
14995 #: ../fish/guestfish-actions.pod:4581
14996 #, no-wrap
14997 msgid ""
14998 " swapoff-device device\n"
14999 "\n"
15000 msgstr ""
15001 " swapoff-device пристрій\n"
15002 "\n"
15003
15004 #. type: textblock
15005 #: ../fish/guestfish-actions.pod:4583
15006 msgid ""
15007 "This command disables the libguestfs appliance swap device or partition "
15008 "named C<device>.  See L</swapon-device>."
15009 msgstr ""
15010
15011 #. type: =head2
15012 #: ../fish/guestfish-actions.pod:4587
15013 msgid "swapoff-file"
15014 msgstr "swapoff-file"
15015
15016 #. type: verbatim
15017 #: ../fish/guestfish-actions.pod:4589
15018 #, no-wrap
15019 msgid ""
15020 " swapoff-file file\n"
15021 "\n"
15022 msgstr ""
15023 " swapoff-file файл\n"
15024 "\n"
15025
15026 #. type: textblock
15027 #: ../fish/guestfish-actions.pod:4591 ../src/guestfs-actions.pod:6883
15028 msgid "This command disables the libguestfs appliance swap on file."
15029 msgstr ""
15030
15031 #. type: =head2
15032 #: ../fish/guestfish-actions.pod:4593
15033 msgid "swapoff-label"
15034 msgstr "swapoff-label"
15035
15036 #. type: verbatim
15037 #: ../fish/guestfish-actions.pod:4595
15038 #, no-wrap
15039 msgid ""
15040 " swapoff-label label\n"
15041 "\n"
15042 msgstr ""
15043 " swapoff-label мітка\n"
15044 "\n"
15045
15046 #. type: textblock
15047 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6895
15048 msgid ""
15049 "This command disables the libguestfs appliance swap on labeled swap "
15050 "partition."
15051 msgstr ""
15052
15053 #. type: =head2
15054 #: ../fish/guestfish-actions.pod:4600
15055 msgid "swapoff-uuid"
15056 msgstr "swapoff-uuid"
15057
15058 #. type: verbatim
15059 #: ../fish/guestfish-actions.pod:4602
15060 #, no-wrap
15061 msgid ""
15062 " swapoff-uuid uuid\n"
15063 "\n"
15064 msgstr ""
15065 " swapoff-uuid uuid\n"
15066 "\n"
15067
15068 #. type: textblock
15069 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6908
15070 msgid ""
15071 "This command disables the libguestfs appliance swap partition with the given "
15072 "UUID."
15073 msgstr ""
15074
15075 #. type: =head2
15076 #: ../fish/guestfish-actions.pod:4607
15077 msgid "swapon-device"
15078 msgstr "swapon-device"
15079
15080 #. type: verbatim
15081 #: ../fish/guestfish-actions.pod:4609
15082 #, no-wrap
15083 msgid ""
15084 " swapon-device device\n"
15085 "\n"
15086 msgstr ""
15087 " swapon-device пристрій\n"
15088 "\n"
15089
15090 #. type: textblock
15091 #: ../fish/guestfish-actions.pod:4611
15092 msgid ""
15093 "This command enables the libguestfs appliance to use the swap device or "
15094 "partition named C<device>.  The increased memory is made available for all "
15095 "commands, for example those run using L</command> or L</sh>."
15096 msgstr ""
15097
15098 #. type: textblock
15099 #: ../fish/guestfish-actions.pod:4616 ../src/guestfs-actions.pod:6926
15100 msgid ""
15101 "Note that you should not swap to existing guest swap partitions unless you "
15102 "know what you are doing.  They may contain hibernation information, or other "
15103 "information that the guest doesn't want you to trash.  You also risk leaking "
15104 "information about the host to the guest this way.  Instead, attach a new "
15105 "host device to the guest and swap on that."
15106 msgstr ""
15107
15108 #. type: =head2
15109 #: ../fish/guestfish-actions.pod:4623
15110 msgid "swapon-file"
15111 msgstr "swapon-file"
15112
15113 #. type: verbatim
15114 #: ../fish/guestfish-actions.pod:4625
15115 #, no-wrap
15116 msgid ""
15117 " swapon-file file\n"
15118 "\n"
15119 msgstr ""
15120 " swapon-file файл\n"
15121 "\n"
15122
15123 #. type: textblock
15124 #: ../fish/guestfish-actions.pod:4627
15125 msgid ""
15126 "This command enables swap to a file.  See L</swapon-device> for other notes."
15127 msgstr ""
15128
15129 #. type: =head2
15130 #: ../fish/guestfish-actions.pod:4630
15131 msgid "swapon-label"
15132 msgstr "swapon-label"
15133
15134 #. type: verbatim
15135 #: ../fish/guestfish-actions.pod:4632
15136 #, no-wrap
15137 msgid ""
15138 " swapon-label label\n"
15139 "\n"
15140 msgstr ""
15141 " swapon-label мітка\n"
15142 "\n"
15143
15144 #. type: textblock
15145 #: ../fish/guestfish-actions.pod:4634
15146 msgid ""
15147 "This command enables swap to a labeled swap partition.  See L</swapon-"
15148 "device> for other notes."
15149 msgstr ""
15150
15151 #. type: =head2
15152 #: ../fish/guestfish-actions.pod:4637
15153 msgid "swapon-uuid"
15154 msgstr "swapon-uuid"
15155
15156 #. type: verbatim
15157 #: ../fish/guestfish-actions.pod:4639
15158 #, no-wrap
15159 msgid ""
15160 " swapon-uuid uuid\n"
15161 "\n"
15162 msgstr ""
15163 " swapon-uuid uuid\n"
15164 "\n"
15165
15166 #. type: textblock
15167 #: ../fish/guestfish-actions.pod:4641
15168 msgid ""
15169 "This command enables swap to a swap partition with the given UUID.  See L</"
15170 "swapon-device> for other notes."
15171 msgstr ""
15172
15173 #. type: =head2
15174 #: ../fish/guestfish-actions.pod:4644
15175 msgid "sync"
15176 msgstr "sync"
15177
15178 #. type: verbatim
15179 #: ../fish/guestfish-actions.pod:4646
15180 #, no-wrap
15181 msgid ""
15182 " sync\n"
15183 "\n"
15184 msgstr ""
15185 " sync\n"
15186 "\n"
15187
15188 #. type: textblock
15189 #: ../fish/guestfish-actions.pod:4648 ../src/guestfs-actions.pod:6981
15190 msgid ""
15191 "This syncs the disk, so that any writes are flushed through to the "
15192 "underlying disk image."
15193 msgstr ""
15194
15195 #. type: textblock
15196 #: ../fish/guestfish-actions.pod:4651 ../src/guestfs-actions.pod:6984
15197 msgid ""
15198 "You should always call this if you have modified a disk image, before "
15199 "closing the handle."
15200 msgstr ""
15201
15202 #. type: =head2
15203 #: ../fish/guestfish-actions.pod:4654
15204 msgid "tail"
15205 msgstr "tail"
15206
15207 #. type: verbatim
15208 #: ../fish/guestfish-actions.pod:4656
15209 #, no-wrap
15210 msgid ""
15211 " tail path\n"
15212 "\n"
15213 msgstr ""
15214 " tail шлях\n"
15215 "\n"
15216
15217 #. type: textblock
15218 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:6997
15219 msgid ""
15220 "This command returns up to the last 10 lines of a file as a list of strings."
15221 msgstr ""
15222
15223 #. type: =head2
15224 #: ../fish/guestfish-actions.pod:4664
15225 msgid "tail-n"
15226 msgstr "tail-n"
15227
15228 #. type: verbatim
15229 #: ../fish/guestfish-actions.pod:4666
15230 #, no-wrap
15231 msgid ""
15232 " tail-n nrlines path\n"
15233 "\n"
15234 msgstr ""
15235
15236 #. type: textblock
15237 #: ../fish/guestfish-actions.pod:4668 ../src/guestfs-actions.pod:7016
15238 msgid ""
15239 "If the parameter C<nrlines> is a positive number, this returns the last "
15240 "C<nrlines> lines of the file C<path>."
15241 msgstr ""
15242
15243 #. type: textblock
15244 #: ../fish/guestfish-actions.pod:4671 ../src/guestfs-actions.pod:7019
15245 msgid ""
15246 "If the parameter C<nrlines> is a negative number, this returns lines from "
15247 "the file C<path>, starting with the C<-nrlines>th line."
15248 msgstr ""
15249
15250 #. type: =head2
15251 #: ../fish/guestfish-actions.pod:4679
15252 msgid "tar-in"
15253 msgstr "tar-in"
15254
15255 #. type: verbatim
15256 #: ../fish/guestfish-actions.pod:4681
15257 #, no-wrap
15258 msgid ""
15259 " tar-in (tarfile|-) directory\n"
15260 "\n"
15261 msgstr ""
15262 " tar-in (файл_tar|-) каталог\n"
15263 "\n"
15264
15265 #. type: textblock
15266 #: ../fish/guestfish-actions.pod:4683 ../src/guestfs-actions.pod:7040
15267 msgid ""
15268 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15269 "tar file) into C<directory>."
15270 msgstr ""
15271
15272 #. type: textblock
15273 #: ../fish/guestfish-actions.pod:4686
15274 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15275 msgstr ""
15276
15277 #. type: =head2
15278 #: ../fish/guestfish-actions.pod:4691
15279 msgid "tar-out"
15280 msgstr "tar-out"
15281
15282 #. type: verbatim
15283 #: ../fish/guestfish-actions.pod:4693
15284 #, no-wrap
15285 msgid ""
15286 " tar-out directory (tarfile|-)\n"
15287 "\n"
15288 msgstr ""
15289 " tar-out каталог (файл tar|-)\n"
15290 "\n"
15291
15292 #. type: textblock
15293 #: ../fish/guestfish-actions.pod:4695 ../src/guestfs-actions.pod:7057
15294 msgid ""
15295 "This command packs the contents of C<directory> and downloads it to local "
15296 "file C<tarfile>."
15297 msgstr ""
15298
15299 #. type: textblock
15300 #: ../fish/guestfish-actions.pod:4698
15301 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15302 msgstr ""
15303
15304 #. type: =head2
15305 #: ../fish/guestfish-actions.pod:4703
15306 msgid "tgz-in"
15307 msgstr "tgz-in"
15308
15309 #. type: verbatim
15310 #: ../fish/guestfish-actions.pod:4705
15311 #, no-wrap
15312 msgid ""
15313 " tgz-in (tarball|-) directory\n"
15314 "\n"
15315 msgstr ""
15316 " tgz-in (архів tar|-) каталог\n"
15317 "\n"
15318
15319 #. type: textblock
15320 #: ../fish/guestfish-actions.pod:4707 ../src/guestfs-actions.pod:7074
15321 msgid ""
15322 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15323 "tar file) into C<directory>."
15324 msgstr ""
15325
15326 #. type: textblock
15327 #: ../fish/guestfish-actions.pod:4710
15328 msgid "To upload an uncompressed tarball, use L</tar-in>."
15329 msgstr ""
15330
15331 #. type: =head2
15332 #: ../fish/guestfish-actions.pod:4714
15333 msgid "tgz-out"
15334 msgstr "tgz-out"
15335
15336 #. type: verbatim
15337 #: ../fish/guestfish-actions.pod:4716
15338 #, no-wrap
15339 msgid ""
15340 " tgz-out directory (tarball|-)\n"
15341 "\n"
15342 msgstr ""
15343 " tgz-out каталог (архів tar|-)\n"
15344 "\n"
15345
15346 #. type: textblock
15347 #: ../fish/guestfish-actions.pod:4718 ../src/guestfs-actions.pod:7090
15348 msgid ""
15349 "This command packs the contents of C<directory> and downloads it to local "
15350 "file C<tarball>."
15351 msgstr ""
15352
15353 #. type: textblock
15354 #: ../fish/guestfish-actions.pod:4721
15355 msgid "To download an uncompressed tarball, use L</tar-out>."
15356 msgstr ""
15357
15358 #. type: =head2
15359 #: ../fish/guestfish-actions.pod:4725
15360 msgid "touch"
15361 msgstr "touch"
15362
15363 #. type: verbatim
15364 #: ../fish/guestfish-actions.pod:4727
15365 #, no-wrap
15366 msgid ""
15367 " touch path\n"
15368 "\n"
15369 msgstr ""
15370 " touch шлях\n"
15371 "\n"
15372
15373 #. type: textblock
15374 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7105
15375 msgid ""
15376 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15377 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15378 "length file."
15379 msgstr ""
15380
15381 #. type: textblock
15382 #: ../fish/guestfish-actions.pod:4733 ../src/guestfs-actions.pod:7109
15383 msgid ""
15384 "This command only works on regular files, and will fail on other file types "
15385 "such as directories, symbolic links, block special etc."
15386 msgstr ""
15387
15388 #. type: =head2
15389 #: ../fish/guestfish-actions.pod:4736
15390 msgid "truncate"
15391 msgstr "truncate"
15392
15393 #. type: verbatim
15394 #: ../fish/guestfish-actions.pod:4738
15395 #, no-wrap
15396 msgid ""
15397 " truncate path\n"
15398 "\n"
15399 msgstr ""
15400 " truncate шлях\n"
15401 "\n"
15402
15403 #. type: textblock
15404 #: ../fish/guestfish-actions.pod:4740 ../src/guestfs-actions.pod:7122
15405 msgid ""
15406 "This command truncates C<path> to a zero-length file.  The file must exist "
15407 "already."
15408 msgstr ""
15409
15410 #. type: =head2
15411 #: ../fish/guestfish-actions.pod:4743
15412 msgid "truncate-size"
15413 msgstr "truncate-size"
15414
15415 #. type: verbatim
15416 #: ../fish/guestfish-actions.pod:4745
15417 #, no-wrap
15418 msgid ""
15419 " truncate-size path size\n"
15420 "\n"
15421 msgstr ""
15422 " truncate-size шлях розмір\n"
15423 "\n"
15424
15425 #. type: textblock
15426 #: ../fish/guestfish-actions.pod:4747 ../src/guestfs-actions.pod:7136
15427 msgid ""
15428 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15429 "already."
15430 msgstr ""
15431
15432 #. type: textblock
15433 #: ../fish/guestfish-actions.pod:4750
15434 msgid ""
15435 "If the current file size is less than C<size> then the file is extended to "
15436 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15437 "blocks are not allocated for the file until you write to it).  To create a "
15438 "non-sparse file of zeroes, use L</fallocate64> instead."
15439 msgstr ""
15440
15441 #. type: =head2
15442 #: ../fish/guestfish-actions.pod:4756
15443 msgid "tune2fs-l"
15444 msgstr "tune2fs-l"
15445
15446 #. type: verbatim
15447 #: ../fish/guestfish-actions.pod:4758
15448 #, no-wrap
15449 msgid ""
15450 " tune2fs-l device\n"
15451 "\n"
15452 msgstr ""
15453 " tune2fs-l пристрій\n"
15454 "\n"
15455
15456 #. type: textblock
15457 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7155
15458 msgid ""
15459 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15460 "C<device>."
15461 msgstr ""
15462
15463 #. type: textblock
15464 #: ../fish/guestfish-actions.pod:4763 ../src/guestfs-actions.pod:7158
15465 msgid ""
15466 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15467 "for more details.  The list of fields returned isn't clearly defined, and "
15468 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15469 "and the filesystem itself."
15470 msgstr ""
15471
15472 #. type: =head2
15473 #: ../fish/guestfish-actions.pod:4768
15474 msgid "txz-in"
15475 msgstr "txz-in"
15476
15477 #. type: verbatim
15478 #: ../fish/guestfish-actions.pod:4770
15479 #, no-wrap
15480 msgid ""
15481 " txz-in (tarball|-) directory\n"
15482 "\n"
15483 msgstr ""
15484 " txz-in (архів tar|-) каталог\n"
15485 "\n"
15486
15487 #. type: textblock
15488 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7178
15489 msgid ""
15490 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15491 "tar file) into C<directory>."
15492 msgstr ""
15493
15494 #. type: =head2
15495 #: ../fish/guestfish-actions.pod:4777
15496 msgid "txz-out"
15497 msgstr "txz-out"
15498
15499 #. type: verbatim
15500 #: ../fish/guestfish-actions.pod:4779
15501 #, no-wrap
15502 msgid ""
15503 " txz-out directory (tarball|-)\n"
15504 "\n"
15505 msgstr ""
15506 " txz-out каталог (архів tar|-)\n"
15507 "\n"
15508
15509 #. type: textblock
15510 #: ../fish/guestfish-actions.pod:4781 ../src/guestfs-actions.pod:7192
15511 msgid ""
15512 "This command packs the contents of C<directory> and downloads it to local "
15513 "file C<tarball> (as an xz compressed tar archive)."
15514 msgstr ""
15515
15516 #. type: =head2
15517 #: ../fish/guestfish-actions.pod:4786
15518 msgid "umask"
15519 msgstr "umask"
15520
15521 #. type: verbatim
15522 #: ../fish/guestfish-actions.pod:4788
15523 #, no-wrap
15524 msgid ""
15525 " umask mask\n"
15526 "\n"
15527 msgstr ""
15528 " umask маска\n"
15529 "\n"
15530
15531 #. type: textblock
15532 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7205
15533 msgid ""
15534 "This function sets the mask used for creating new files and device nodes to "
15535 "C<mask & 0777>."
15536 msgstr ""
15537
15538 #. type: textblock
15539 #: ../fish/guestfish-actions.pod:4793 ../src/guestfs-actions.pod:7208
15540 msgid ""
15541 "Typical umask values would be C<022> which creates new files with "
15542 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
15543 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
15544 msgstr ""
15545
15546 #. type: textblock
15547 #: ../fish/guestfish-actions.pod:4798 ../src/guestfs-actions.pod:7213
15548 msgid ""
15549 "The default umask is C<022>.  This is important because it means that "
15550 "directories and device nodes will be created with C<0644> or C<0755> mode "
15551 "even if you specify C<0777>."
15552 msgstr ""
15553
15554 #. type: textblock
15555 #: ../fish/guestfish-actions.pod:4802
15556 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15557 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
15558
15559 #. type: textblock
15560 #: ../fish/guestfish-actions.pod:4805 ../src/guestfs-actions.pod:7220
15561 msgid "This call returns the previous umask."
15562 msgstr ""
15563
15564 #. type: =head2
15565 #: ../fish/guestfish-actions.pod:4807
15566 msgid "umount"
15567 msgstr "umount"
15568
15569 #. type: =head2
15570 #: ../fish/guestfish-actions.pod:4809
15571 msgid "unmount"
15572 msgstr "unmount"
15573
15574 #. type: verbatim
15575 #: ../fish/guestfish-actions.pod:4811
15576 #, no-wrap
15577 msgid ""
15578 " umount pathordevice\n"
15579 "\n"
15580 msgstr ""
15581 " umount шлях_або_пристрій\n"
15582 "\n"
15583
15584 #. type: textblock
15585 #: ../fish/guestfish-actions.pod:4813 ../src/guestfs-actions.pod:7232
15586 msgid ""
15587 "This unmounts the given filesystem.  The filesystem may be specified either "
15588 "by its mountpoint (path) or the device which contains the filesystem."
15589 msgstr ""
15590
15591 #. type: =head2
15592 #: ../fish/guestfish-actions.pod:4817
15593 msgid "umount-all"
15594 msgstr "umount-all"
15595
15596 #. type: =head2
15597 #: ../fish/guestfish-actions.pod:4819
15598 msgid "unmount-all"
15599 msgstr "unmount-all"
15600
15601 #. type: verbatim
15602 #: ../fish/guestfish-actions.pod:4821
15603 #, no-wrap
15604 msgid ""
15605 " umount-all\n"
15606 "\n"
15607 msgstr ""
15608 " umount-all\n"
15609 "\n"
15610
15611 #. type: textblock
15612 #: ../fish/guestfish-actions.pod:4823 ../src/guestfs-actions.pod:7245
15613 msgid "This unmounts all mounted filesystems."
15614 msgstr ""
15615
15616 #. type: textblock
15617 #: ../fish/guestfish-actions.pod:4825 ../src/guestfs-actions.pod:7247
15618 msgid "Some internal mounts are not unmounted by this call."
15619 msgstr ""
15620
15621 #. type: =head2
15622 #: ../fish/guestfish-actions.pod:4827
15623 msgid "upload"
15624 msgstr "upload"
15625
15626 #. type: verbatim
15627 #: ../fish/guestfish-actions.pod:4829
15628 #, no-wrap
15629 msgid ""
15630 " upload (filename|-) remotefilename\n"
15631 "\n"
15632 msgstr ""
15633 " upload (назва_файла|-) назва_віддаленого_файла\n"
15634 "\n"
15635
15636 #. type: textblock
15637 #: ../fish/guestfish-actions.pod:4831 ../fish/guestfish-actions.pod:4844
15638 #: ../src/guestfs-actions.pod:7260 ../src/guestfs-actions.pod:7284
15639 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
15640 msgstr ""
15641
15642 #. type: textblock
15643 #: ../fish/guestfish-actions.pod:4836
15644 msgid "See also L</download>."
15645 msgstr "Див. також L</download>."
15646
15647 #. type: =head2
15648 #: ../fish/guestfish-actions.pod:4840
15649 msgid "upload-offset"
15650 msgstr "upload-offset"
15651
15652 #. type: verbatim
15653 #: ../fish/guestfish-actions.pod:4842
15654 #, no-wrap
15655 msgid ""
15656 " upload-offset (filename|-) remotefilename offset\n"
15657 "\n"
15658 msgstr ""
15659 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
15660 "\n"
15661
15662 #. type: textblock
15663 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7287
15664 msgid ""
15665 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
15666 "The intention is to overwrite parts of existing files or devices, although "
15667 "if a non-existant file is specified then it is created with a \"hole\" "
15668 "before C<offset>.  The size of the data written is implicit in the size of "
15669 "the source C<filename>."
15670 msgstr ""
15671
15672 #. type: textblock
15673 #: ../fish/guestfish-actions.pod:4854
15674 msgid ""
15675 "Note that there is no limit on the amount of data that can be uploaded with "
15676 "this call, unlike with L</pwrite>, and this call always writes the full "
15677 "amount unless an error occurs."
15678 msgstr ""
15679
15680 #. type: textblock
15681 #: ../fish/guestfish-actions.pod:4859
15682 msgid "See also L</upload>, L</pwrite>."
15683 msgstr "Див. також L</upload>, L</pwrite>."
15684
15685 #. type: =head2
15686 #: ../fish/guestfish-actions.pod:4863
15687 msgid "utimens"
15688 msgstr "utimens"
15689
15690 #. type: verbatim
15691 #: ../fish/guestfish-actions.pod:4865
15692 #, no-wrap
15693 msgid ""
15694 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
15695 "\n"
15696 msgstr ""
15697
15698 #. type: textblock
15699 #: ../fish/guestfish-actions.pod:4867 ../src/guestfs-actions.pod:7320
15700 msgid "This command sets the timestamps of a file with nanosecond precision."
15701 msgstr ""
15702
15703 #. type: textblock
15704 #: ../fish/guestfish-actions.pod:4870 ../src/guestfs-actions.pod:7323
15705 msgid ""
15706 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
15707 "from the epoch."
15708 msgstr ""
15709
15710 #. type: textblock
15711 #: ../fish/guestfish-actions.pod:4873 ../src/guestfs-actions.pod:7326
15712 msgid ""
15713 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
15714 "nanoseconds from the epoch."
15715 msgstr ""
15716
15717 #. type: textblock
15718 #: ../fish/guestfish-actions.pod:4876 ../src/guestfs-actions.pod:7329
15719 msgid ""
15720 "If the C<*nsecs> field contains the special value C<-1> then the "
15721 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
15722 "ignored in this case)."
15723 msgstr ""
15724
15725 #. type: textblock
15726 #: ../fish/guestfish-actions.pod:4880 ../src/guestfs-actions.pod:7333
15727 msgid ""
15728 "If the C<*nsecs> field contains the special value C<-2> then the "
15729 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
15730 "in this case)."
15731 msgstr ""
15732
15733 #. type: =head2
15734 #: ../fish/guestfish-actions.pod:4884
15735 msgid "version"
15736 msgstr "version"
15737
15738 #. type: verbatim
15739 #: ../fish/guestfish-actions.pod:4886
15740 #, no-wrap
15741 msgid ""
15742 " version\n"
15743 "\n"
15744 msgstr ""
15745 " version\n"
15746 "\n"
15747
15748 #. type: textblock
15749 #: ../fish/guestfish-actions.pod:4888 ../src/guestfs-actions.pod:7346
15750 msgid ""
15751 "Return the libguestfs version number that the program is linked against."
15752 msgstr ""
15753
15754 #. type: textblock
15755 #: ../fish/guestfish-actions.pod:4891 ../src/guestfs-actions.pod:7349
15756 msgid ""
15757 "Note that because of dynamic linking this is not necessarily the version of "
15758 "libguestfs that you compiled against.  You can compile the program, and then "
15759 "at runtime dynamically link against a completely different C<libguestfs.so> "
15760 "library."
15761 msgstr ""
15762
15763 #. type: textblock
15764 #: ../fish/guestfish-actions.pod:4896 ../src/guestfs-actions.pod:7354
15765 msgid ""
15766 "This call was added in version C<1.0.58>.  In previous versions of "
15767 "libguestfs there was no way to get the version number.  From C code you can "
15768 "use dynamic linker functions to find out if this symbol exists (if it "
15769 "doesn't, then it's an earlier version)."
15770 msgstr ""
15771
15772 #. type: textblock
15773 #: ../fish/guestfish-actions.pod:4902 ../src/guestfs-actions.pod:7360
15774 msgid ""
15775 "The call returns a structure with four elements.  The first three (C<major>, "
15776 "C<minor> and C<release>) are numbers and correspond to the usual version "
15777 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
15778 "but may be used for distro-specific information."
15779 msgstr ""
15780
15781 #. type: textblock
15782 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7366
15783 msgid ""
15784 "To construct the original version string: C<$major.$minor.$release$extra>"
15785 msgstr ""
15786
15787 #. type: textblock
15788 #: ../fish/guestfish-actions.pod:4911 ../src/guestfs-actions.pod:7369
15789 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
15790 msgstr ""
15791
15792 #. type: textblock
15793 #: ../fish/guestfish-actions.pod:4913
15794 msgid ""
15795 "I<Note:> Don't use this call to test for availability of features.  In "
15796 "enterprise distributions we backport features from later versions into "
15797 "earlier versions, making this an unreliable way to test for features.  Use "
15798 "L</available> instead."
15799 msgstr ""
15800
15801 #. type: =head2
15802 #: ../fish/guestfish-actions.pod:4919
15803 msgid "vfs-label"
15804 msgstr "vfs-label"
15805
15806 #. type: verbatim
15807 #: ../fish/guestfish-actions.pod:4921
15808 #, no-wrap
15809 msgid ""
15810 " vfs-label device\n"
15811 "\n"
15812 msgstr ""
15813 " vfs-label пристрій\n"
15814 "\n"
15815
15816 #. type: textblock
15817 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7389
15818 msgid "This returns the filesystem label of the filesystem on C<device>."
15819 msgstr ""
15820
15821 #. type: textblock
15822 #: ../fish/guestfish-actions.pod:4926 ../src/guestfs-actions.pod:7392
15823 msgid "If the filesystem is unlabeled, this returns the empty string."
15824 msgstr ""
15825
15826 #. type: textblock
15827 #: ../fish/guestfish-actions.pod:4928
15828 msgid "To find a filesystem from the label, use L</findfs-label>."
15829 msgstr ""
15830
15831 #. type: =head2
15832 #: ../fish/guestfish-actions.pod:4930
15833 msgid "vfs-type"
15834 msgstr "vfs-type"
15835
15836 #. type: verbatim
15837 #: ../fish/guestfish-actions.pod:4932
15838 #, no-wrap
15839 msgid ""
15840 " vfs-type device\n"
15841 "\n"
15842 msgstr ""
15843 " vfs-type пристрій\n"
15844 "\n"
15845
15846 #. type: textblock
15847 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7407
15848 msgid ""
15849 "This command gets the filesystem type corresponding to the filesystem on "
15850 "C<device>."
15851 msgstr ""
15852
15853 #. type: textblock
15854 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7410
15855 msgid ""
15856 "For most filesystems, the result is the name of the Linux VFS module which "
15857 "would be used to mount this filesystem if you mounted it without specifying "
15858 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
15859 msgstr ""
15860
15861 #. type: =head2
15862 #: ../fish/guestfish-actions.pod:4942
15863 msgid "vfs-uuid"
15864 msgstr "vfs-uuid"
15865
15866 #. type: verbatim
15867 #: ../fish/guestfish-actions.pod:4944
15868 #, no-wrap
15869 msgid ""
15870 " vfs-uuid device\n"
15871 "\n"
15872 msgstr ""
15873 " vfs-uuid пристрій\n"
15874 "\n"
15875
15876 #. type: textblock
15877 #: ../fish/guestfish-actions.pod:4946 ../src/guestfs-actions.pod:7426
15878 msgid "This returns the filesystem UUID of the filesystem on C<device>."
15879 msgstr ""
15880
15881 #. type: textblock
15882 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7429
15883 msgid "If the filesystem does not have a UUID, this returns the empty string."
15884 msgstr ""
15885
15886 #. type: textblock
15887 #: ../fish/guestfish-actions.pod:4951
15888 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
15889 msgstr ""
15890
15891 #. type: =head2
15892 #: ../fish/guestfish-actions.pod:4953
15893 msgid "vg-activate"
15894 msgstr "vg-activate"
15895
15896 #. type: verbatim
15897 #: ../fish/guestfish-actions.pod:4955
15898 #, no-wrap
15899 msgid ""
15900 " vg-activate true|false 'volgroups ...'\n"
15901 "\n"
15902 msgstr ""
15903
15904 #. type: textblock
15905 #: ../fish/guestfish-actions.pod:4957 ../src/guestfs-actions.pod:7445
15906 msgid ""
15907 "This command activates or (if C<activate> is false) deactivates all logical "
15908 "volumes in the listed volume groups C<volgroups>."
15909 msgstr ""
15910
15911 #. type: textblock
15912 #: ../fish/guestfish-actions.pod:4960 ../src/guestfs-actions.pod:7448
15913 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
15914 msgstr ""
15915
15916 #. type: textblock
15917 #: ../fish/guestfish-actions.pod:4962 ../src/guestfs-actions.pod:7450
15918 msgid ""
15919 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
15920 "activated or deactivated."
15921 msgstr ""
15922
15923 #. type: =head2
15924 #: ../fish/guestfish-actions.pod:4965
15925 msgid "vg-activate-all"
15926 msgstr "vg-activate-all"
15927
15928 #. type: verbatim
15929 #: ../fish/guestfish-actions.pod:4967
15930 #, no-wrap
15931 msgid ""
15932 " vg-activate-all true|false\n"
15933 "\n"
15934 msgstr ""
15935 " vg-activate-all true|false\n"
15936 "\n"
15937
15938 #. type: textblock
15939 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7463
15940 msgid ""
15941 "This command activates or (if C<activate> is false) deactivates all logical "
15942 "volumes in all volume groups."
15943 msgstr ""
15944
15945 #. type: textblock
15946 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7466
15947 msgid "This command is the same as running C<vgchange -a y|n>"
15948 msgstr ""
15949
15950 #. type: =head2
15951 #: ../fish/guestfish-actions.pod:4974
15952 msgid "vgcreate"
15953 msgstr "vgcreate"
15954
15955 #. type: verbatim
15956 #: ../fish/guestfish-actions.pod:4976
15957 #, no-wrap
15958 msgid ""
15959 " vgcreate volgroup 'physvols ...'\n"
15960 "\n"
15961 msgstr ""
15962
15963 #. type: textblock
15964 #: ../fish/guestfish-actions.pod:4978 ../src/guestfs-actions.pod:7479
15965 msgid ""
15966 "This creates an LVM volume group called C<volgroup> from the non-empty list "
15967 "of physical volumes C<physvols>."
15968 msgstr ""
15969
15970 #. type: =head2
15971 #: ../fish/guestfish-actions.pod:4981
15972 msgid "vglvuuids"
15973 msgstr "vglvuuids"
15974
15975 #. type: verbatim
15976 #: ../fish/guestfish-actions.pod:4983
15977 #, no-wrap
15978 msgid ""
15979 " vglvuuids vgname\n"
15980 "\n"
15981 msgstr ""
15982
15983 #. type: textblock
15984 #: ../fish/guestfish-actions.pod:4985 ../src/guestfs-actions.pod:7492
15985 msgid ""
15986 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
15987 "volumes created in this volume group."
15988 msgstr ""
15989
15990 #. type: textblock
15991 #: ../fish/guestfish-actions.pod:4988
15992 msgid ""
15993 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
15994 "logical volumes and volume groups."
15995 msgstr ""
15996
15997 #. type: textblock
15998 #: ../fish/guestfish-actions.pod:4991
15999 msgid "See also L</vgpvuuids>."
16000 msgstr "Див. також L</vgpvuuids>."
16001
16002 #. type: =head2
16003 #: ../fish/guestfish-actions.pod:4993
16004 msgid "vgpvuuids"
16005 msgstr "vgpvuuids"
16006
16007 #. type: verbatim
16008 #: ../fish/guestfish-actions.pod:4995
16009 #, no-wrap
16010 msgid ""
16011 " vgpvuuids vgname\n"
16012 "\n"
16013 msgstr ""
16014
16015 #. type: textblock
16016 #: ../fish/guestfish-actions.pod:4997 ../src/guestfs-actions.pod:7512
16017 msgid ""
16018 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16019 "volumes that this volume group resides on."
16020 msgstr ""
16021
16022 #. type: textblock
16023 #: ../fish/guestfish-actions.pod:5000
16024 msgid ""
16025 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16026 "physical volumes and volume groups."
16027 msgstr ""
16028
16029 #. type: textblock
16030 #: ../fish/guestfish-actions.pod:5003
16031 msgid "See also L</vglvuuids>."
16032 msgstr "Див. також L</vglvuuids>."
16033
16034 #. type: =head2
16035 #: ../fish/guestfish-actions.pod:5005
16036 msgid "vgremove"
16037 msgstr "vgremove"
16038
16039 #. type: verbatim
16040 #: ../fish/guestfish-actions.pod:5007
16041 #, no-wrap
16042 msgid ""
16043 " vgremove vgname\n"
16044 "\n"
16045 msgstr ""
16046
16047 #. type: textblock
16048 #: ../fish/guestfish-actions.pod:5009 ../src/guestfs-actions.pod:7532
16049 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16050 msgstr ""
16051
16052 #. type: textblock
16053 #: ../fish/guestfish-actions.pod:5011 ../src/guestfs-actions.pod:7534
16054 msgid ""
16055 "This also forcibly removes all logical volumes in the volume group (if any)."
16056 msgstr ""
16057
16058 #. type: =head2
16059 #: ../fish/guestfish-actions.pod:5014
16060 msgid "vgrename"
16061 msgstr "vgrename"
16062
16063 #. type: verbatim
16064 #: ../fish/guestfish-actions.pod:5016
16065 #, no-wrap
16066 msgid ""
16067 " vgrename volgroup newvolgroup\n"
16068 "\n"
16069 msgstr ""
16070
16071 #. type: textblock
16072 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7548
16073 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16074 msgstr ""
16075
16076 #. type: =head2
16077 #: ../fish/guestfish-actions.pod:5020
16078 msgid "vgs"
16079 msgstr "vgs"
16080
16081 #. type: verbatim
16082 #: ../fish/guestfish-actions.pod:5022
16083 #, no-wrap
16084 msgid ""
16085 " vgs\n"
16086 "\n"
16087 msgstr ""
16088 " vgs\n"
16089 "\n"
16090
16091 #. type: textblock
16092 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7559
16093 msgid ""
16094 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16095 "> command."
16096 msgstr ""
16097
16098 #. type: textblock
16099 #: ../fish/guestfish-actions.pod:5027 ../src/guestfs-actions.pod:7562
16100 msgid ""
16101 "This returns a list of just the volume group names that were detected (eg. "
16102 "C<VolGroup00>)."
16103 msgstr ""
16104
16105 #. type: textblock
16106 #: ../fish/guestfish-actions.pod:5030
16107 msgid "See also L</vgs-full>."
16108 msgstr "Див. також L</vgs-full>."
16109
16110 #. type: =head2
16111 #: ../fish/guestfish-actions.pod:5032
16112 msgid "vgs-full"
16113 msgstr "vgs-full"
16114
16115 #. type: verbatim
16116 #: ../fish/guestfish-actions.pod:5034
16117 #, no-wrap
16118 msgid ""
16119 " vgs-full\n"
16120 "\n"
16121 msgstr ""
16122 " vgs-full\n"
16123 "\n"
16124
16125 #. type: textblock
16126 #: ../fish/guestfish-actions.pod:5036 ../src/guestfs-actions.pod:7578
16127 msgid ""
16128 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16129 "> command.  The \"full\" version includes all fields."
16130 msgstr ""
16131
16132 #. type: =head2
16133 #: ../fish/guestfish-actions.pod:5039
16134 msgid "vgscan"
16135 msgstr "vgscan"
16136
16137 #. type: verbatim
16138 #: ../fish/guestfish-actions.pod:5041
16139 #, no-wrap
16140 msgid ""
16141 " vgscan\n"
16142 "\n"
16143 msgstr ""
16144 " vgscan\n"
16145 "\n"
16146
16147 #. type: textblock
16148 #: ../fish/guestfish-actions.pod:5043 ../src/guestfs-actions.pod:7592
16149 msgid ""
16150 "This rescans all block devices and rebuilds the list of LVM physical "
16151 "volumes, volume groups and logical volumes."
16152 msgstr ""
16153
16154 #. type: =head2
16155 #: ../fish/guestfish-actions.pod:5046
16156 msgid "vguuid"
16157 msgstr "vguuid"
16158
16159 #. type: verbatim
16160 #: ../fish/guestfish-actions.pod:5048
16161 #, no-wrap
16162 msgid ""
16163 " vguuid vgname\n"
16164 "\n"
16165 msgstr ""
16166
16167 #. type: textblock
16168 #: ../fish/guestfish-actions.pod:5050 ../src/guestfs-actions.pod:7605
16169 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16170 msgstr ""
16171
16172 #. type: =head2
16173 #: ../fish/guestfish-actions.pod:5052
16174 msgid "wc-c"
16175 msgstr "wc-c"
16176
16177 #. type: verbatim
16178 #: ../fish/guestfish-actions.pod:5054
16179 #, no-wrap
16180 msgid ""
16181 " wc-c path\n"
16182 "\n"
16183 msgstr ""
16184 " wc-c шлях\n"
16185 "\n"
16186
16187 #. type: textblock
16188 #: ../fish/guestfish-actions.pod:5056 ../src/guestfs-actions.pod:7645
16189 msgid ""
16190 "This command counts the characters in a file, using the C<wc -c> external "
16191 "command."
16192 msgstr ""
16193
16194 #. type: =head2
16195 #: ../fish/guestfish-actions.pod:5059
16196 msgid "wc-l"
16197 msgstr "wc-l"
16198
16199 #. type: verbatim
16200 #: ../fish/guestfish-actions.pod:5061
16201 #, no-wrap
16202 msgid ""
16203 " wc-l path\n"
16204 "\n"
16205 msgstr ""
16206 " wc-l шлях\n"
16207 "\n"
16208
16209 #. type: textblock
16210 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7658
16211 msgid ""
16212 "This command counts the lines in a file, using the C<wc -l> external command."
16213 msgstr ""
16214
16215 #. type: =head2
16216 #: ../fish/guestfish-actions.pod:5066
16217 msgid "wc-w"
16218 msgstr "wc-w"
16219
16220 #. type: verbatim
16221 #: ../fish/guestfish-actions.pod:5068
16222 #, no-wrap
16223 msgid ""
16224 " wc-w path\n"
16225 "\n"
16226 msgstr ""
16227 " wc-w шлях\n"
16228 "\n"
16229
16230 #. type: textblock
16231 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7671
16232 msgid ""
16233 "This command counts the words in a file, using the C<wc -w> external command."
16234 msgstr ""
16235
16236 #. type: =head2
16237 #: ../fish/guestfish-actions.pod:5073
16238 msgid "write"
16239 msgstr "write"
16240
16241 #. type: verbatim
16242 #: ../fish/guestfish-actions.pod:5075
16243 #, no-wrap
16244 msgid ""
16245 " write path content\n"
16246 "\n"
16247 msgstr ""
16248 " write шлях дані\n"
16249 "\n"
16250
16251 #. type: textblock
16252 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7686
16253 msgid ""
16254 "This call creates a file called C<path>.  The content of the file is the "
16255 "string C<content> (which can contain any 8 bit data)."
16256 msgstr ""
16257
16258 #. type: textblock
16259 #: ../fish/guestfish-actions.pod:5080
16260 msgid "See also L</write-append>."
16261 msgstr ""
16262
16263 #. type: =head2
16264 #: ../fish/guestfish-actions.pod:5085
16265 msgid "write-append"
16266 msgstr ""
16267
16268 #. type: verbatim
16269 #: ../fish/guestfish-actions.pod:5087
16270 #, no-wrap
16271 msgid ""
16272 " write-append path content\n"
16273 "\n"
16274 msgstr ""
16275
16276 #. type: textblock
16277 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7706
16278 msgid ""
16279 "This call appends C<content> to the end of file C<path>.  If C<path> does "
16280 "not exist, then a new file is created."
16281 msgstr ""
16282
16283 #. type: textblock
16284 #: ../fish/guestfish-actions.pod:5092
16285 msgid "See also L</write>."
16286 msgstr ""
16287
16288 #. type: =head2
16289 #: ../fish/guestfish-actions.pod:5097
16290 msgid "write-file"
16291 msgstr "write-file"
16292
16293 #. type: verbatim
16294 #: ../fish/guestfish-actions.pod:5099
16295 #, no-wrap
16296 msgid ""
16297 " write-file path content size\n"
16298 "\n"
16299 msgstr ""
16300
16301 #. type: textblock
16302 #: ../fish/guestfish-actions.pod:5101 ../src/guestfs-actions.pod:7733
16303 msgid ""
16304 "This call creates a file called C<path>.  The contents of the file is the "
16305 "string C<content> (which can contain any 8 bit data), with length C<size>."
16306 msgstr ""
16307
16308 #. type: textblock
16309 #: ../fish/guestfish-actions.pod:5105 ../src/guestfs-actions.pod:7737
16310 msgid ""
16311 "As a special case, if C<size> is C<0> then the length is calculated using "
16312 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16313 msgstr ""
16314
16315 #. type: textblock
16316 #: ../fish/guestfish-actions.pod:5109 ../src/guestfs-actions.pod:7741
16317 msgid ""
16318 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16319 "I<not> work, even if the length is specified."
16320 msgstr ""
16321
16322 #. type: textblock
16323 #: ../fish/guestfish-actions.pod:5115
16324 msgid ""
16325 "I<This function is deprecated.> In new code, use the L</write> call instead."
16326 msgstr ""
16327
16328 #. type: =head2
16329 #: ../fish/guestfish-actions.pod:5122
16330 msgid "zegrep"
16331 msgstr "zegrep"
16332
16333 #. type: verbatim
16334 #: ../fish/guestfish-actions.pod:5124
16335 #, no-wrap
16336 msgid ""
16337 " zegrep regex path\n"
16338 "\n"
16339 msgstr ""
16340 " zegrep формальний_вираз шлях\n"
16341 "\n"
16342
16343 #. type: textblock
16344 #: ../fish/guestfish-actions.pod:5126 ../src/guestfs-actions.pod:7758
16345 msgid ""
16346 "This calls the external C<zegrep> program and returns the matching lines."
16347 msgstr ""
16348
16349 #. type: =head2
16350 #: ../fish/guestfish-actions.pod:5132
16351 msgid "zegrepi"
16352 msgstr "zegrepi"
16353
16354 #. type: verbatim
16355 #: ../fish/guestfish-actions.pod:5134
16356 #, no-wrap
16357 msgid ""
16358 " zegrepi regex path\n"
16359 "\n"
16360 msgstr ""
16361
16362 #. type: textblock
16363 #: ../fish/guestfish-actions.pod:5136 ../src/guestfs-actions.pod:7777
16364 msgid ""
16365 "This calls the external C<zegrep -i> program and returns the matching lines."
16366 msgstr ""
16367
16368 #. type: =head2
16369 #: ../fish/guestfish-actions.pod:5142
16370 msgid "zero"
16371 msgstr "zero"
16372
16373 #. type: verbatim
16374 #: ../fish/guestfish-actions.pod:5144
16375 #, no-wrap
16376 msgid ""
16377 " zero device\n"
16378 "\n"
16379 msgstr ""
16380 " zero пристрій\n"
16381 "\n"
16382
16383 #. type: textblock
16384 #: ../fish/guestfish-actions.pod:5146 ../src/guestfs-actions.pod:7795
16385 msgid "This command writes zeroes over the first few blocks of C<device>."
16386 msgstr ""
16387
16388 #. type: textblock
16389 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7797
16390 msgid ""
16391 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16392 "securely wipe the device).  It should be sufficient to remove any partition "
16393 "tables, filesystem superblocks and so on."
16394 msgstr ""
16395
16396 #. type: textblock
16397 #: ../fish/guestfish-actions.pod:5152 ../fish/guestfish-actions.pod:5167
16398 #: ../src/guestfs-actions.pod:7801 ../src/guestfs-actions.pod:7827
16399 msgid ""
16400 "If blocks are already zero, then this command avoids writing zeroes.  This "
16401 "prevents the underlying device from becoming non-sparse or growing "
16402 "unnecessarily."
16403 msgstr ""
16404
16405 #. type: textblock
16406 #: ../fish/guestfish-actions.pod:5156
16407 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16408 msgstr ""
16409
16410 #. type: =head2
16411 #: ../fish/guestfish-actions.pod:5159
16412 msgid "zero-device"
16413 msgstr "zero-device"
16414
16415 #. type: verbatim
16416 #: ../fish/guestfish-actions.pod:5161
16417 #, no-wrap
16418 msgid ""
16419 " zero-device device\n"
16420 "\n"
16421 msgstr ""
16422 " zero-device пристрій\n"
16423 "\n"
16424
16425 #. type: textblock
16426 #: ../fish/guestfish-actions.pod:5163
16427 msgid ""
16428 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16429 "which just zeroes the first few blocks of a device."
16430 msgstr ""
16431
16432 #. type: =head2
16433 #: ../fish/guestfish-actions.pod:5174
16434 msgid "zerofree"
16435 msgstr "zerofree"
16436
16437 #. type: verbatim
16438 #: ../fish/guestfish-actions.pod:5176
16439 #, no-wrap
16440 msgid ""
16441 " zerofree device\n"
16442 "\n"
16443 msgstr ""
16444 " zerofree пристрій\n"
16445 "\n"
16446
16447 #. type: textblock
16448 #: ../fish/guestfish-actions.pod:5178 ../src/guestfs-actions.pod:7849
16449 msgid ""
16450 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16451 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16452 "possible to compress the filesystem more effectively."
16453 msgstr ""
16454
16455 #. type: textblock
16456 #: ../fish/guestfish-actions.pod:5183 ../src/guestfs-actions.pod:7854
16457 msgid "You should B<not> run this program if the filesystem is mounted."
16458 msgstr ""
16459
16460 #. type: textblock
16461 #: ../fish/guestfish-actions.pod:5186 ../src/guestfs-actions.pod:7857
16462 msgid ""
16463 "It is possible that using this program can damage the filesystem or data on "
16464 "the filesystem."
16465 msgstr ""
16466
16467 #. type: =head2
16468 #: ../fish/guestfish-actions.pod:5189
16469 msgid "zfgrep"
16470 msgstr "zfgrep"
16471
16472 #. type: verbatim
16473 #: ../fish/guestfish-actions.pod:5191
16474 #, no-wrap
16475 msgid ""
16476 " zfgrep pattern path\n"
16477 "\n"
16478 msgstr ""
16479 " zfgrep шаблон шлях\n"
16480 "\n"
16481
16482 #. type: textblock
16483 #: ../fish/guestfish-actions.pod:5193 ../src/guestfs-actions.pod:7871
16484 msgid ""
16485 "This calls the external C<zfgrep> program and returns the matching lines."
16486 msgstr ""
16487
16488 #. type: =head2
16489 #: ../fish/guestfish-actions.pod:5199
16490 msgid "zfgrepi"
16491 msgstr "zfgrepi"
16492
16493 #. type: verbatim
16494 #: ../fish/guestfish-actions.pod:5201
16495 #, no-wrap
16496 msgid ""
16497 " zfgrepi pattern path\n"
16498 "\n"
16499 msgstr ""
16500 " zfgrepi шаблон шлях\n"
16501 "\n"
16502
16503 #. type: textblock
16504 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:7890
16505 msgid ""
16506 "This calls the external C<zfgrep -i> program and returns the matching lines."
16507 msgstr ""
16508
16509 #. type: =head2
16510 #: ../fish/guestfish-actions.pod:5209
16511 msgid "zfile"
16512 msgstr "zfile"
16513
16514 #. type: verbatim
16515 #: ../fish/guestfish-actions.pod:5211
16516 #, no-wrap
16517 msgid ""
16518 " zfile meth path\n"
16519 "\n"
16520 msgstr ""
16521 " zfile метод шлях\n"
16522 "\n"
16523
16524 #. type: textblock
16525 #: ../fish/guestfish-actions.pod:5213 ../src/guestfs-actions.pod:7916
16526 msgid ""
16527 "This command runs C<file> after first decompressing C<path> using C<method>."
16528 msgstr ""
16529
16530 #. type: textblock
16531 #: ../fish/guestfish-actions.pod:5216 ../src/guestfs-actions.pod:7919
16532 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
16533 msgstr ""
16534
16535 #. type: textblock
16536 #: ../fish/guestfish-actions.pod:5218
16537 msgid ""
16538 "Since 1.0.63, use L</file> instead which can now process compressed files."
16539 msgstr ""
16540
16541 #. type: textblock
16542 #: ../fish/guestfish-actions.pod:5221
16543 msgid ""
16544 "I<This function is deprecated.> In new code, use the L</file> call instead."
16545 msgstr ""
16546
16547 #. type: =head2
16548 #: ../fish/guestfish-actions.pod:5228
16549 msgid "zgrep"
16550 msgstr "zgrep"
16551
16552 #. type: verbatim
16553 #: ../fish/guestfish-actions.pod:5230
16554 #, no-wrap
16555 msgid ""
16556 " zgrep regex path\n"
16557 "\n"
16558 msgstr ""
16559 " zgrep формальний_вираз шлях\n"
16560 "\n"
16561
16562 #. type: textblock
16563 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:7936
16564 msgid ""
16565 "This calls the external C<zgrep> program and returns the matching lines."
16566 msgstr ""
16567
16568 #. type: =head2
16569 #: ../fish/guestfish-actions.pod:5238
16570 msgid "zgrepi"
16571 msgstr "zgrepi"
16572
16573 #. type: verbatim
16574 #: ../fish/guestfish-actions.pod:5240
16575 #, no-wrap
16576 msgid ""
16577 " zgrepi regex path\n"
16578 "\n"
16579 msgstr ""
16580 " zgrepi формальний_вираз шлях\n"
16581 "\n"
16582
16583 #. type: textblock
16584 #: ../fish/guestfish-actions.pod:5242 ../src/guestfs-actions.pod:7955
16585 msgid ""
16586 "This calls the external C<zgrep -i> program and returns the matching lines."
16587 msgstr ""
16588
16589 #. type: =head2
16590 #: ../fish/guestfish-commands.pod:1
16591 msgid "alloc"
16592 msgstr "alloc"
16593
16594 #. type: =head2
16595 #: ../fish/guestfish-commands.pod:3
16596 msgid "allocate"
16597 msgstr ""
16598
16599 #. type: verbatim
16600 #: ../fish/guestfish-commands.pod:5
16601 #, no-wrap
16602 msgid ""
16603 " alloc filename size\n"
16604 "\n"
16605 msgstr ""
16606
16607 #. type: textblock
16608 #: ../fish/guestfish-commands.pod:7
16609 msgid ""
16610 "This creates an empty (zeroed) file of the given size, and then adds so it "
16611 "can be further examined."
16612 msgstr ""
16613
16614 #. type: textblock
16615 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
16616 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
16617 msgstr ""
16618
16619 #. type: textblock
16620 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
16621 msgid "Size can be specified using standard suffixes, eg. C<1M>."
16622 msgstr ""
16623
16624 #. type: textblock
16625 #: ../fish/guestfish-commands.pod:14
16626 msgid ""
16627 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
16628 "image, see L</PREPARED DISK IMAGES>."
16629 msgstr ""
16630
16631 #. type: =head2
16632 #: ../fish/guestfish-commands.pod:17
16633 msgid "copy-in"
16634 msgstr "copy-in"
16635
16636 #. type: verbatim
16637 #: ../fish/guestfish-commands.pod:19
16638 #, no-wrap
16639 msgid ""
16640 " copy-in local [local ...] /remotedir\n"
16641 "\n"
16642 msgstr ""
16643
16644 #. type: textblock
16645 #: ../fish/guestfish-commands.pod:21
16646 msgid ""
16647 "C<copy-in> copies local files or directories recursively into the disk "
16648 "image, placing them in the directory called C</remotedir> (which must "
16649 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
16650 "other commands as necessary."
16651 msgstr ""
16652
16653 #. type: textblock
16654 #: ../fish/guestfish-commands.pod:26
16655 msgid ""
16656 "Multiple local files and directories can be specified, but the last "
16657 "parameter must always be a remote directory.  Wildcards cannot be used."
16658 msgstr ""
16659
16660 #. type: =head2
16661 #: ../fish/guestfish-commands.pod:30
16662 msgid "copy-out"
16663 msgstr "copy-out"
16664
16665 #. type: verbatim
16666 #: ../fish/guestfish-commands.pod:32
16667 #, no-wrap
16668 msgid ""
16669 " copy-out remote [remote ...] localdir\n"
16670 "\n"
16671 msgstr ""
16672
16673 #. type: textblock
16674 #: ../fish/guestfish-commands.pod:34
16675 msgid ""
16676 "C<copy-out> copies remote files or directories recursively out of the disk "
16677 "image, placing them on the host disk in a local directory called C<localdir> "
16678 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
16679 "download>, L</tar-out> and other commands as necessary."
16680 msgstr ""
16681
16682 #. type: textblock
16683 #: ../fish/guestfish-commands.pod:40
16684 msgid ""
16685 "Multiple remote files and directories can be specified, but the last "
16686 "parameter must always be a local directory.  To download to the current "
16687 "directory, use C<.> as in:"
16688 msgstr ""
16689
16690 #. type: verbatim
16691 #: ../fish/guestfish-commands.pod:44
16692 #, no-wrap
16693 msgid ""
16694 " copy-out /home .\n"
16695 "\n"
16696 msgstr ""
16697 " copy-out /home .\n"
16698 "\n"
16699
16700 #. type: textblock
16701 #: ../fish/guestfish-commands.pod:46
16702 msgid ""
16703 "Wildcards cannot be used in the ordinary command, but you can use them with "
16704 "the help of L</glob> like this:"
16705 msgstr ""
16706
16707 #. type: verbatim
16708 #: ../fish/guestfish-commands.pod:49
16709 #, no-wrap
16710 msgid ""
16711 " glob copy-out /home/* .\n"
16712 "\n"
16713 msgstr ""
16714 " glob copy-out /home/* .\n"
16715 "\n"
16716
16717 #. type: =head2
16718 #: ../fish/guestfish-commands.pod:51
16719 msgid "display"
16720 msgstr ""
16721
16722 #. type: verbatim
16723 #: ../fish/guestfish-commands.pod:53
16724 #, no-wrap
16725 msgid ""
16726 " display filename\n"
16727 "\n"
16728 msgstr ""
16729
16730 #. type: textblock
16731 #: ../fish/guestfish-commands.pod:55
16732 msgid ""
16733 "Use C<display> (a graphical display program) to display an image file.  It "
16734 "downloads the file, and runs C<display> on it."
16735 msgstr ""
16736
16737 #. type: textblock
16738 #: ../fish/guestfish-commands.pod:58
16739 msgid ""
16740 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
16741 "environment variable.  For example to use the GNOME display program:"
16742 msgstr ""
16743
16744 #. type: verbatim
16745 #: ../fish/guestfish-commands.pod:61
16746 #, no-wrap
16747 msgid ""
16748 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
16749 "\n"
16750 msgstr ""
16751
16752 #. type: textblock
16753 #: ../fish/guestfish-commands.pod:63
16754 msgid "See also L<display(1)>."
16755 msgstr ""
16756
16757 #. type: =head2
16758 #: ../fish/guestfish-commands.pod:65
16759 msgid "echo"
16760 msgstr "echo"
16761
16762 #. type: verbatim
16763 #: ../fish/guestfish-commands.pod:67
16764 #, no-wrap
16765 msgid ""
16766 " echo [params ...]\n"
16767 "\n"
16768 msgstr ""
16769 " echo [параметри...]\n"
16770 "\n"
16771
16772 #. type: textblock
16773 #: ../fish/guestfish-commands.pod:69
16774 msgid "This echos the parameters to the terminal."
16775 msgstr ""
16776
16777 #. type: =head2
16778 #: ../fish/guestfish-commands.pod:71
16779 msgid "edit"
16780 msgstr "edit"
16781
16782 #. type: =head2
16783 #: ../fish/guestfish-commands.pod:73
16784 msgid "vi"
16785 msgstr "vi"
16786
16787 #. type: =head2
16788 #: ../fish/guestfish-commands.pod:75
16789 msgid "emacs"
16790 msgstr "emacs"
16791
16792 #. type: verbatim
16793 #: ../fish/guestfish-commands.pod:77
16794 #, no-wrap
16795 msgid ""
16796 " edit filename\n"
16797 "\n"
16798 msgstr ""
16799 " edit назва_файла\n"
16800 "\n"
16801
16802 #. type: textblock
16803 #: ../fish/guestfish-commands.pod:79
16804 msgid ""
16805 "This is used to edit a file.  It downloads the file, edits it locally using "
16806 "your editor, then uploads the result."
16807 msgstr ""
16808
16809 #. type: textblock
16810 #: ../fish/guestfish-commands.pod:82
16811 msgid ""
16812 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
16813 "or C<emacs> you will get those corresponding editors."
16814 msgstr ""
16815
16816 #. type: =head2
16817 #: ../fish/guestfish-commands.pod:86
16818 msgid "glob"
16819 msgstr "glob"
16820
16821 #. type: verbatim
16822 #: ../fish/guestfish-commands.pod:88
16823 #, no-wrap
16824 msgid ""
16825 " glob command args...\n"
16826 "\n"
16827 msgstr ""
16828 " glob команда параметри...\n"
16829 "\n"
16830
16831 #. type: textblock
16832 #: ../fish/guestfish-commands.pod:90
16833 msgid ""
16834 "Expand wildcards in any paths in the args list, and run C<command> "
16835 "repeatedly on each matching path."
16836 msgstr ""
16837
16838 #. type: textblock
16839 #: ../fish/guestfish-commands.pod:93
16840 msgid "See L</WILDCARDS AND GLOBBING>."
16841 msgstr "Див. L</WILDCARDS AND GLOBBING>."
16842
16843 #. type: =head2
16844 #: ../fish/guestfish-commands.pod:95
16845 msgid "hexedit"
16846 msgstr "hexedit"
16847
16848 #. type: verbatim
16849 #: ../fish/guestfish-commands.pod:97
16850 #, no-wrap
16851 msgid ""
16852 " hexedit <filename|device>\n"
16853 " hexedit <filename|device> <max>\n"
16854 " hexedit <filename|device> <start> <max>\n"
16855 "\n"
16856 msgstr ""
16857
16858 #. type: textblock
16859 #: ../fish/guestfish-commands.pod:101
16860 msgid ""
16861 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
16862 "device."
16863 msgstr ""
16864
16865 #. type: textblock
16866 #: ../fish/guestfish-commands.pod:104
16867 msgid ""
16868 "This command works by downloading potentially the whole file or device, "
16869 "editing it locally, then uploading it.  If the file or device is large, you "
16870 "have to specify which part you wish to edit by using C<max> and/or C<start> "
16871 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
16872 "usual modifiers allowed such as C<1M> (1 megabyte)."
16873 msgstr ""
16874
16875 #. type: textblock
16876 #: ../fish/guestfish-commands.pod:111
16877 msgid "For example to edit the first few sectors of a disk you might do:"
16878 msgstr ""
16879
16880 #. type: verbatim
16881 #: ../fish/guestfish-commands.pod:114
16882 #, no-wrap
16883 msgid ""
16884 " hexedit /dev/sda 1M\n"
16885 "\n"
16886 msgstr ""
16887 " hexedit /dev/sda 1M\n"
16888 "\n"
16889
16890 #. type: textblock
16891 #: ../fish/guestfish-commands.pod:116
16892 msgid ""
16893 "which would allow you to edit anywhere within the first megabyte of the disk."
16894 msgstr ""
16895
16896 #. type: textblock
16897 #: ../fish/guestfish-commands.pod:119
16898 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
16899 msgstr ""
16900
16901 #. type: verbatim
16902 #: ../fish/guestfish-commands.pod:121
16903 #, no-wrap
16904 msgid ""
16905 " hexedit /dev/sda1 0x400 0x400\n"
16906 "\n"
16907 msgstr ""
16908 " hexedit /dev/sda1 0x400 0x400\n"
16909 "\n"
16910
16911 #. type: textblock
16912 #: ../fish/guestfish-commands.pod:123
16913 msgid "(assuming the superblock is in the standard location)."
16914 msgstr ""
16915
16916 #. type: textblock
16917 #: ../fish/guestfish-commands.pod:125
16918 msgid ""
16919 "This command requires the external L<hexedit(1)> program.  You can specify "
16920 "another program to use by setting the C<HEXEDITOR> environment variable."
16921 msgstr ""
16922
16923 #. type: textblock
16924 #: ../fish/guestfish-commands.pod:129
16925 msgid "See also L</hexdump>."
16926 msgstr "Див. також L</hexdump>."
16927
16928 #. type: =head2
16929 #: ../fish/guestfish-commands.pod:131
16930 msgid "lcd"
16931 msgstr "lcd"
16932
16933 #. type: verbatim
16934 #: ../fish/guestfish-commands.pod:133
16935 #, no-wrap
16936 msgid ""
16937 " lcd directory\n"
16938 "\n"
16939 msgstr ""
16940
16941 #. type: textblock
16942 #: ../fish/guestfish-commands.pod:135
16943 msgid ""
16944 "Change the local directory, ie. the current directory of guestfish itself."
16945 msgstr ""
16946
16947 #. type: textblock
16948 #: ../fish/guestfish-commands.pod:138
16949 msgid "Note that C<!cd> won't do what you might expect."
16950 msgstr ""
16951
16952 #. type: =head2
16953 #: ../fish/guestfish-commands.pod:140
16954 msgid "man"
16955 msgstr "man"
16956
16957 #. type: =head2
16958 #: ../fish/guestfish-commands.pod:142
16959 msgid "manual"
16960 msgstr ""
16961
16962 #. type: verbatim
16963 #: ../fish/guestfish-commands.pod:144
16964 #, no-wrap
16965 msgid ""
16966 "  man\n"
16967 "\n"
16968 msgstr ""
16969 "  man\n"
16970 "\n"
16971
16972 #. type: textblock
16973 #: ../fish/guestfish-commands.pod:146
16974 msgid "Opens the manual page for guestfish."
16975 msgstr ""
16976
16977 #. type: =head2
16978 #: ../fish/guestfish-commands.pod:148
16979 msgid "more"
16980 msgstr "more"
16981
16982 #. type: =head2
16983 #: ../fish/guestfish-commands.pod:150
16984 msgid "less"
16985 msgstr "less"
16986
16987 #. type: verbatim
16988 #: ../fish/guestfish-commands.pod:152
16989 #, no-wrap
16990 msgid ""
16991 " more filename\n"
16992 "\n"
16993 msgstr ""
16994
16995 #. type: verbatim
16996 #: ../fish/guestfish-commands.pod:154
16997 #, no-wrap
16998 msgid ""
16999 " less filename\n"
17000 "\n"
17001 msgstr ""
17002
17003 #. type: textblock
17004 #: ../fish/guestfish-commands.pod:156
17005 msgid "This is used to view a file."
17006 msgstr ""
17007
17008 #. type: textblock
17009 #: ../fish/guestfish-commands.pod:158
17010 msgid ""
17011 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17012 "C<less> you will get the C<less> command specifically."
17013 msgstr ""
17014
17015 #. type: =head2
17016 #: ../fish/guestfish-commands.pod:161
17017 msgid "reopen"
17018 msgstr "reopen"
17019
17020 #. type: verbatim
17021 #: ../fish/guestfish-commands.pod:163
17022 #, no-wrap
17023 msgid ""
17024 "  reopen\n"
17025 "\n"
17026 msgstr ""
17027
17028 #. type: textblock
17029 #: ../fish/guestfish-commands.pod:165
17030 msgid ""
17031 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17032 "normally, because the handle is closed properly when guestfish exits.  "
17033 "However this is occasionally useful for testing."
17034 msgstr ""
17035
17036 #. type: =head2
17037 #: ../fish/guestfish-commands.pod:169
17038 msgid "setenv"
17039 msgstr ""
17040
17041 #. type: verbatim
17042 #: ../fish/guestfish-commands.pod:171
17043 #, no-wrap
17044 msgid ""
17045 "  setenv VAR value\n"
17046 "\n"
17047 msgstr ""
17048
17049 #. type: textblock
17050 #: ../fish/guestfish-commands.pod:173
17051 msgid "Set the environment variable C<VAR> to the string C<value>."
17052 msgstr ""
17053
17054 #. type: textblock
17055 #: ../fish/guestfish-commands.pod:175
17056 msgid ""
17057 "To print the value of an environment variable use a shell command such as:"
17058 msgstr ""
17059
17060 #. type: verbatim
17061 #: ../fish/guestfish-commands.pod:178
17062 #, no-wrap
17063 msgid ""
17064 " !echo $VAR\n"
17065 "\n"
17066 msgstr ""
17067
17068 #. type: =head2
17069 #: ../fish/guestfish-commands.pod:180
17070 msgid "sparse"
17071 msgstr "sparse"
17072
17073 #. type: verbatim
17074 #: ../fish/guestfish-commands.pod:182
17075 #, no-wrap
17076 msgid ""
17077 " sparse filename size\n"
17078 "\n"
17079 msgstr ""
17080
17081 #. type: textblock
17082 #: ../fish/guestfish-commands.pod:184
17083 msgid ""
17084 "This creates an empty sparse file of the given size, and then adds so it can "
17085 "be further examined."
17086 msgstr ""
17087
17088 #. type: textblock
17089 #: ../fish/guestfish-commands.pod:187
17090 msgid ""
17091 "In all respects it works the same as the L</alloc> command, except that the "
17092 "image file is allocated sparsely, which means that disk blocks are not "
17093 "assigned to the file until they are needed.  Sparse disk files only use "
17094 "space when written to, but they are slower and there is a danger you could "
17095 "run out of real disk space during a write operation."
17096 msgstr ""
17097
17098 #. type: =head2
17099 #: ../fish/guestfish-commands.pod:197
17100 msgid "supported"
17101 msgstr "supported"
17102
17103 #. type: verbatim
17104 #: ../fish/guestfish-commands.pod:199
17105 #, no-wrap
17106 msgid ""
17107 " supported\n"
17108 "\n"
17109 msgstr ""
17110 " supported\n"
17111 "\n"
17112
17113 #. type: textblock
17114 #: ../fish/guestfish-commands.pod:201
17115 msgid ""
17116 "This command returns a list of the optional groups known to the daemon, and "
17117 "indicates which ones are supported by this build of the libguestfs appliance."
17118 msgstr ""
17119
17120 #. type: textblock
17121 #: ../fish/guestfish-commands.pod:205
17122 msgid "See also L<guestfs(3)/AVAILABILITY>."
17123 msgstr ""
17124
17125 #. type: =head2
17126 #: ../fish/guestfish-commands.pod:207
17127 msgid "time"
17128 msgstr "time"
17129
17130 #. type: verbatim
17131 #: ../fish/guestfish-commands.pod:209
17132 #, no-wrap
17133 msgid ""
17134 " time command args...\n"
17135 "\n"
17136 msgstr ""
17137
17138 #. type: textblock
17139 #: ../fish/guestfish-commands.pod:211
17140 msgid ""
17141 "Run the command as usual, but print the elapsed time afterwards.  This can "
17142 "be useful for benchmarking operations."
17143 msgstr ""
17144
17145 #. type: =head2
17146 #: ../fish/guestfish-commands.pod:214
17147 msgid "unsetenv"
17148 msgstr ""
17149
17150 #. type: verbatim
17151 #: ../fish/guestfish-commands.pod:216
17152 #, no-wrap
17153 msgid ""
17154 "  unsetenv VAR\n"
17155 "\n"
17156 msgstr ""
17157
17158 #. type: textblock
17159 #: ../fish/guestfish-commands.pod:218
17160 msgid "Remove C<VAR> from the environment."
17161 msgstr ""
17162
17163 #. type: textblock
17164 #: ../fish/guestfish.pod:5
17165 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17166 msgstr ""
17167
17168 #. type: verbatim
17169 #: ../fish/guestfish.pod:9
17170 #, no-wrap
17171 msgid ""
17172 " guestfish [--options] [commands]\n"
17173 "\n"
17174 msgstr ""
17175
17176 #. type: verbatim
17177 #: ../fish/guestfish.pod:11
17178 #, no-wrap
17179 msgid ""
17180 " guestfish\n"
17181 "\n"
17182 msgstr ""
17183
17184 #. type: verbatim
17185 #: ../fish/guestfish.pod:13
17186 #, no-wrap
17187 msgid ""
17188 " guestfish [--ro|--rw] -a disk.img\n"
17189 "\n"
17190 msgstr ""
17191
17192 #. type: verbatim
17193 #: ../fish/guestfish.pod:15
17194 #, no-wrap
17195 msgid ""
17196 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17197 "\n"
17198 msgstr ""
17199
17200 #. type: verbatim
17201 #: ../fish/guestfish.pod:17
17202 #, no-wrap
17203 msgid ""
17204 " guestfish -d libvirt-domain\n"
17205 "\n"
17206 msgstr ""
17207
17208 #. type: verbatim
17209 #: ../fish/guestfish.pod:19
17210 #, no-wrap
17211 msgid ""
17212 " guestfish [--ro|--rw] -a disk.img -i\n"
17213 "\n"
17214 msgstr ""
17215
17216 #. type: verbatim
17217 #: ../fish/guestfish.pod:21
17218 #, no-wrap
17219 msgid ""
17220 " guestfish -d libvirt-domain -i\n"
17221 "\n"
17222 msgstr ""
17223
17224 #. type: textblock
17225 #: ../fish/guestfish.pod:25
17226 msgid ""
17227 "Using guestfish in read/write mode on live virtual machines can be "
17228 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17229 "option to use guestfish safely if the disk image or virtual machine might be "
17230 "live."
17231 msgstr ""
17232
17233 #. type: textblock
17234 #: ../fish/guestfish.pod:32
17235 msgid ""
17236 "Guestfish is a shell and command-line tool for examining and modifying "
17237 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17238 "functionality of the guestfs API, see L<guestfs(3)>."
17239 msgstr ""
17240
17241 #. type: textblock
17242 #: ../fish/guestfish.pod:36
17243 msgid ""
17244 "Guestfish gives you structured access to the libguestfs API, from shell "
17245 "scripts or the command line or interactively.  If you want to rescue a "
17246 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17247 "command."
17248 msgstr ""
17249
17250 #. type: =head2
17251 #: ../fish/guestfish.pod:43
17252 msgid "As an interactive shell"
17253 msgstr ""
17254
17255 #. type: verbatim
17256 #: ../fish/guestfish.pod:45
17257 #, no-wrap
17258 msgid ""
17259 " $ guestfish\n"
17260 " \n"
17261 msgstr ""
17262
17263 #. type: verbatim
17264 #: ../fish/guestfish.pod:47
17265 #, no-wrap
17266 msgid ""
17267 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17268 " editing virtual machine filesystems.\n"
17269 " \n"
17270 msgstr ""
17271
17272 #. type: verbatim
17273 #: ../fish/guestfish.pod:50
17274 #, no-wrap
17275 msgid ""
17276 " Type: 'help' for a list of commands\n"
17277 "       'man' to read the manual\n"
17278 "       'quit' to quit the shell\n"
17279 " \n"
17280 msgstr ""
17281
17282 #. type: verbatim
17283 #: ../fish/guestfish.pod:54
17284 #, no-wrap
17285 msgid ""
17286 " ><fs> add-ro disk.img\n"
17287 " ><fs> run\n"
17288 " ><fs> list-filesystems\n"
17289 " /dev/sda1: ext4\n"
17290 " /dev/vg_guest/lv_root: ext4\n"
17291 " /dev/vg_guest/lv_swap: swap\n"
17292 " ><fs> mount /dev/vg_guest/lv_root /\n"
17293 " ><fs> cat /etc/fstab\n"
17294 " # /etc/fstab\n"
17295 " # Created by anaconda\n"
17296 " [...]\n"
17297 " ><fs> exit\n"
17298 "\n"
17299 msgstr ""
17300
17301 #. type: =head2
17302 #: ../fish/guestfish.pod:67
17303 msgid "From shell scripts"
17304 msgstr ""
17305
17306 #. type: textblock
17307 #: ../fish/guestfish.pod:69
17308 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17309 msgstr ""
17310
17311 #. type: verbatim
17312 #: ../fish/guestfish.pod:71
17313 #, no-wrap
17314 msgid ""
17315 " guestfish <<_EOF_\n"
17316 " add disk.img\n"
17317 " run\n"
17318 " mount /dev/vg_guest/lv_root /\n"
17319 " write /etc/motd \"Welcome, new users\"\n"
17320 " _EOF_\n"
17321 "\n"
17322 msgstr ""
17323
17324 #. type: textblock
17325 #: ../fish/guestfish.pod:78
17326 msgid "List the LVM logical volumes in a disk image:"
17327 msgstr ""
17328
17329 #. type: verbatim
17330 #: ../fish/guestfish.pod:80
17331 #, no-wrap
17332 msgid ""
17333 " guestfish -a disk.img --ro <<_EOF_\n"
17334 " run\n"
17335 " lvs\n"
17336 " _EOF_\n"
17337 "\n"
17338 msgstr ""
17339
17340 #. type: textblock
17341 #: ../fish/guestfish.pod:85
17342 msgid "List all the filesystems in a disk image:"
17343 msgstr ""
17344
17345 #. type: verbatim
17346 #: ../fish/guestfish.pod:87
17347 #, no-wrap
17348 msgid ""
17349 " guestfish -a disk.img --ro <<_EOF_\n"
17350 " run\n"
17351 " list-filesystems\n"
17352 " _EOF_\n"
17353 "\n"
17354 msgstr ""
17355
17356 #. type: =head2
17357 #: ../fish/guestfish.pod:92
17358 msgid "On one command line"
17359 msgstr ""
17360
17361 #. type: textblock
17362 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17363 msgid "Update C</etc/resolv.conf> in a guest:"
17364 msgstr ""
17365
17366 #. type: verbatim
17367 #: ../fish/guestfish.pod:96
17368 #, no-wrap
17369 msgid ""
17370 " guestfish \\\n"
17371 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17372 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17373 "\n"
17374 msgstr ""
17375
17376 #. type: textblock
17377 #: ../fish/guestfish.pod:100
17378 msgid "Edit C</boot/grub/grub.conf> interactively:"
17379 msgstr ""
17380
17381 #. type: verbatim
17382 #: ../fish/guestfish.pod:102
17383 #, no-wrap
17384 msgid ""
17385 " guestfish --rw --add disk.img \\\n"
17386 "   --mount /dev/vg_guest/lv_root \\\n"
17387 "   --mount /dev/sda1:/boot \\\n"
17388 "   edit /boot/grub/grub.conf\n"
17389 "\n"
17390 msgstr ""
17391
17392 #. type: =head2
17393 #: ../fish/guestfish.pod:107
17394 msgid "Mount disks automatically"
17395 msgstr ""
17396
17397 #. type: textblock
17398 #: ../fish/guestfish.pod:109
17399 msgid ""
17400 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17401 msgstr ""
17402
17403 #. type: verbatim
17404 #: ../fish/guestfish.pod:112
17405 #, no-wrap
17406 msgid ""
17407 " guestfish --ro -a disk.img -i cat /etc/group\n"
17408 "\n"
17409 msgstr ""
17410
17411 #. type: verbatim
17412 #: ../fish/guestfish.pod:114
17413 #, no-wrap
17414 msgid ""
17415 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17416 "\n"
17417 msgstr ""
17418
17419 #. type: textblock
17420 #: ../fish/guestfish.pod:116
17421 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17422 msgstr ""
17423
17424 #. type: verbatim
17425 #: ../fish/guestfish.pod:118
17426 #, no-wrap
17427 msgid ""
17428 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17429 "\n"
17430 msgstr ""
17431
17432 #. type: =head2
17433 #: ../fish/guestfish.pod:120
17434 msgid "As a script interpreter"
17435 msgstr ""
17436
17437 #. type: textblock
17438 #: ../fish/guestfish.pod:122
17439 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17440 msgstr ""
17441
17442 #. type: verbatim
17443 #: ../fish/guestfish.pod:124
17444 #, no-wrap
17445 msgid ""
17446 " #!/usr/bin/guestfish -f\n"
17447 " sparse test1.img 100M\n"
17448 " run\n"
17449 " part-disk /dev/sda mbr\n"
17450 " mkfs ext2 /dev/sda1\n"
17451 "\n"
17452 msgstr ""
17453
17454 #. type: =head2
17455 #: ../fish/guestfish.pod:130
17456 msgid "Start with a prepared disk"
17457 msgstr ""
17458
17459 #. type: textblock
17460 #: ../fish/guestfish.pod:132
17461 msgid ""
17462 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17463 "single ext2-formatted partition:"
17464 msgstr ""
17465
17466 #. type: verbatim
17467 #: ../fish/guestfish.pod:135
17468 #, no-wrap
17469 msgid ""
17470 " guestfish -N fs\n"
17471 "\n"
17472 msgstr ""
17473
17474 #. type: textblock
17475 #: ../fish/guestfish.pod:137
17476 msgid "To list what is available do:"
17477 msgstr ""
17478
17479 #. type: verbatim
17480 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17481 #, no-wrap
17482 msgid ""
17483 " guestfish -N help | less\n"
17484 "\n"
17485 msgstr ""
17486
17487 #. type: =head2
17488 #: ../fish/guestfish.pod:141
17489 msgid "Remote control"
17490 msgstr "Дистанційне керування"
17491
17492 #. type: verbatim
17493 #: ../fish/guestfish.pod:143
17494 #, no-wrap
17495 msgid ""
17496 " eval \"`guestfish --listen`\"\n"
17497 " guestfish --remote add-ro disk.img\n"
17498 " guestfish --remote run\n"
17499 " guestfish --remote lvs\n"
17500 "\n"
17501 msgstr ""
17502 " eval \"`guestfish --listen`\"\n"
17503 " guestfish --remote add-ro disk.img\n"
17504 " guestfish --remote run\n"
17505 " guestfish --remote lvs\n"
17506 "\n"
17507
17508 #. type: textblock
17509 #: ../fish/guestfish.pod:154
17510 msgid "Displays general help on options."
17511 msgstr ""
17512
17513 #. type: =item
17514 #: ../fish/guestfish.pod:158
17515 msgid "B<--cmd-help>"
17516 msgstr "B<--cmd-help>"
17517
17518 #. type: textblock
17519 #: ../fish/guestfish.pod:160
17520 msgid "Lists all available guestfish commands."
17521 msgstr ""
17522
17523 #. type: =item
17524 #: ../fish/guestfish.pod:162
17525 msgid "B<-h cmd>"
17526 msgstr "B<-h команда>"
17527
17528 #. type: =item
17529 #: ../fish/guestfish.pod:164
17530 msgid "B<--cmd-help cmd>"
17531 msgstr "B<--cmd-help команда>"
17532
17533 #. type: textblock
17534 #: ../fish/guestfish.pod:166
17535 msgid "Displays detailed help on a single command C<cmd>."
17536 msgstr ""
17537
17538 #. type: =item
17539 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
17540 msgid "B<-a image>"
17541 msgstr "B<-a образ>"
17542
17543 #. type: =item
17544 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
17545 msgid "B<--add image>"
17546 msgstr "B<--add образ>"
17547
17548 #. type: textblock
17549 #: ../fish/guestfish.pod:172
17550 msgid "Add a block device or virtual machine image to the shell."
17551 msgstr ""
17552
17553 #. type: textblock
17554 #: ../fish/guestfish.pod:177
17555 msgid ""
17556 "Using this flag is mostly equivalent to using the C<add> command, with "
17557 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
17558 "the I<--format=...> flag was given."
17559 msgstr ""
17560
17561 #. type: textblock
17562 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
17563 msgid ""
17564 "When used in conjunction with the I<-d> option, this specifies the libvirt "
17565 "URI to use.  The default is to use the default libvirt connection."
17566 msgstr ""
17567
17568 #. type: =item
17569 #: ../fish/guestfish.pod:189
17570 msgid "B<--csh>"
17571 msgstr "B<--csh>"
17572
17573 #. type: textblock
17574 #: ../fish/guestfish.pod:191
17575 msgid ""
17576 "If using the I<--listen> option and a csh-like shell, use this option.  See "
17577 "section L</REMOTE CONTROL AND CSH> below."
17578 msgstr ""
17579
17580 #. type: =item
17581 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
17582 msgid "B<-d libvirt-domain>"
17583 msgstr "B<-d домен-libvirt>"
17584
17585 #. type: =item
17586 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
17587 msgid "B<--domain libvirt-domain>"
17588 msgstr "B<--domain домен-libvirt>"
17589
17590 #. type: textblock
17591 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
17592 msgid ""
17593 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
17594 "used, then any libvirt domain can be used.  However in write mode, only "
17595 "libvirt domains which are shut down can be named here."
17596 msgstr ""
17597
17598 #. type: textblock
17599 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
17600 msgid "Domain UUIDs can be used instead of names."
17601 msgstr ""
17602
17603 #. type: textblock
17604 #: ../fish/guestfish.pod:204
17605 msgid ""
17606 "Using this flag is mostly equivalent to using the C<add-domain> command, "
17607 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
17608 "if the I<--format:...> flag was given."
17609 msgstr ""
17610
17611 #. type: =item
17612 #: ../fish/guestfish.pod:208
17613 msgid "B<-D>"
17614 msgstr "B<-D>"
17615
17616 #. type: =item
17617 #: ../fish/guestfish.pod:210
17618 msgid "B<--no-dest-paths>"
17619 msgstr "B<--no-dest-paths>"
17620
17621 #. type: textblock
17622 #: ../fish/guestfish.pod:212
17623 msgid ""
17624 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
17625 "to hit the tab key to complete paths on the guest filesystem, but this "
17626 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
17627 "allow this feature to be disabled."
17628 msgstr ""
17629
17630 #. type: textblock
17631 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
17632 msgid ""
17633 "When prompting for keys and passphrases, guestfish normally turns echoing "
17634 "off so you cannot see what you are typing.  If you are not worried about "
17635 "Tempest attacks and there is no one else in the room you can specify this "
17636 "flag to see what you are typing."
17637 msgstr ""
17638
17639 #. type: =item
17640 #: ../fish/guestfish.pod:224
17641 msgid "B<-f file>"
17642 msgstr "B<-f файл>"
17643
17644 #. type: =item
17645 #: ../fish/guestfish.pod:226
17646 msgid "B<--file file>"
17647 msgstr "B<--file файл>"
17648
17649 #. type: textblock
17650 #: ../fish/guestfish.pod:228
17651 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
17652 msgstr ""
17653
17654 #. type: verbatim
17655 #: ../fish/guestfish.pod:231
17656 #, no-wrap
17657 msgid ""
17658 " #!/usr/bin/guestfish -f\n"
17659 "\n"
17660 msgstr ""
17661 " #!/usr/bin/guestfish -f\n"
17662 "\n"
17663
17664 #. type: verbatim
17665 #: ../fish/guestfish.pod:244
17666 #, no-wrap
17667 msgid ""
17668 " guestfish --format=raw -a disk.img\n"
17669 "\n"
17670 msgstr ""
17671 " guestfish --format=raw -a disk.img\n"
17672 "\n"
17673
17674 #. type: verbatim
17675 #: ../fish/guestfish.pod:248
17676 #, no-wrap
17677 msgid ""
17678 " guestfish --format=raw -a disk.img --format -a another.img\n"
17679 "\n"
17680 msgstr ""
17681 " guestfish --format=raw -a disk.img --format -a another.img\n"
17682 "\n"
17683
17684 #. type: textblock
17685 #: ../fish/guestfish.pod:253
17686 msgid ""
17687 "If you have untrusted raw-format guest disk images, you should use this "
17688 "option to specify the disk format.  This avoids a possible security problem "
17689 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
17690 msgstr ""
17691
17692 #. type: =item
17693 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
17694 msgid "B<--inspector>"
17695 msgstr "B<--inspector>"
17696
17697 #. type: textblock
17698 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
17699 msgid ""
17700 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
17701 "system and mount filesystems as they would be mounted on the real virtual "
17702 "machine."
17703 msgstr ""
17704
17705 #. type: textblock
17706 #: ../fish/guestfish.pod:266
17707 msgid "Typical usage is either:"
17708 msgstr ""
17709
17710 #. type: verbatim
17711 #: ../fish/guestfish.pod:268
17712 #, no-wrap
17713 msgid ""
17714 " guestfish -d myguest -i\n"
17715 "\n"
17716 msgstr ""
17717 " guestfish -d myguest -i\n"
17718 "\n"
17719
17720 #. type: textblock
17721 #: ../fish/guestfish.pod:270
17722 msgid "(for an inactive libvirt domain called I<myguest>), or:"
17723 msgstr ""
17724
17725 #. type: verbatim
17726 #: ../fish/guestfish.pod:272
17727 #, no-wrap
17728 msgid ""
17729 " guestfish --ro -d myguest -i\n"
17730 "\n"
17731 msgstr ""
17732 " guestfish --ro -d myguest -i\n"
17733 "\n"
17734
17735 #. type: textblock
17736 #: ../fish/guestfish.pod:274
17737 msgid "(for active domains, readonly), or specify the block device directly:"
17738 msgstr ""
17739
17740 #. type: verbatim
17741 #: ../fish/guestfish.pod:276
17742 #, no-wrap
17743 msgid ""
17744 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17745 "\n"
17746 msgstr ""
17747 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
17748 "\n"
17749
17750 #. type: textblock
17751 #: ../fish/guestfish.pod:278
17752 msgid ""
17753 "Note that the command line syntax changed slightly over older versions of "
17754 "guestfish.  You can still use the old syntax:"
17755 msgstr ""
17756
17757 #. type: verbatim
17758 #: ../fish/guestfish.pod:281
17759 #, no-wrap
17760 msgid ""
17761 " guestfish [--ro] -i disk.img\n"
17762 "\n"
17763 msgstr ""
17764 " guestfish [--ro] -i disk.img\n"
17765 "\n"
17766
17767 #. type: verbatim
17768 #: ../fish/guestfish.pod:283
17769 #, no-wrap
17770 msgid ""
17771 " guestfish [--ro] -i libvirt-domain\n"
17772 "\n"
17773 msgstr ""
17774
17775 #. type: textblock
17776 #: ../fish/guestfish.pod:285
17777 msgid ""
17778 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
17779 "then using other commands to mount the filesystems that were found."
17780 msgstr ""
17781
17782 #. type: =item
17783 #: ../fish/guestfish.pod:294
17784 msgid "B<--listen>"
17785 msgstr "B<--listen>"
17786
17787 #. type: textblock
17788 #: ../fish/guestfish.pod:296
17789 msgid ""
17790 "Fork into the background and listen for remote commands.  See section L</"
17791 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
17792 msgstr ""
17793
17794 #. type: =item
17795 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
17796 msgid "B<--live>"
17797 msgstr "B<--live>"
17798
17799 #. type: textblock
17800 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
17801 msgid ""
17802 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
17803 "ATTACHING TO RUNNING DAEMONS>)."
17804 msgstr ""
17805
17806 #. type: =item
17807 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
17808 msgid "B<-m dev[:mountpoint[:options]]>"
17809 msgstr ""
17810
17811 #. type: =item
17812 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
17813 msgid "B<--mount dev[:mountpoint[:options]]>"
17814 msgstr ""
17815
17816 #. type: textblock
17817 #: ../fish/guestfish.pod:308
17818 msgid "Mount the named partition or logical volume on the given mountpoint."
17819 msgstr ""
17820
17821 #. type: textblock
17822 #: ../fish/guestfish.pod:310
17823 msgid "If the mountpoint is omitted, it defaults to C</>."
17824 msgstr ""
17825
17826 #. type: textblock
17827 #: ../fish/guestfish.pod:312
17828 msgid "You have to mount something on C</> before most commands will work."
17829 msgstr ""
17830
17831 #. type: textblock
17832 #: ../fish/guestfish.pod:314
17833 msgid ""
17834 "If any I<-m> or I<--mount> options are given, the guest is automatically "
17835 "launched."
17836 msgstr ""
17837
17838 #. type: textblock
17839 #: ../fish/guestfish.pod:317
17840 msgid ""
17841 "If you don't know what filesystems a disk image contains, you can either run "
17842 "guestfish without this option, then list the partitions, filesystems and LVs "
17843 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
17844 "commands), or you can use the L<virt-filesystems(1)> program."
17845 msgstr ""
17846
17847 #. type: textblock
17848 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
17849 msgid ""
17850 "The third (and rarely used) part of the mount parameter is the list of mount "
17851 "options used to mount the underlying filesystem.  If this is not given, then "
17852 "the mount options are either the empty string or C<ro> (the latter if the "
17853 "I<--ro> flag is used).  By specifying the mount options, you override this "
17854 "default choice.  Probably the only time you would use this is to enable ACLs "
17855 "and/or extended attributes if the filesystem can support them:"
17856 msgstr ""
17857
17858 #. type: verbatim
17859 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
17860 #, no-wrap
17861 msgid ""
17862 " -m /dev/sda1:/:acl,user_xattr\n"
17863 "\n"
17864 msgstr ""
17865
17866 #. type: textblock
17867 #: ../fish/guestfish.pod:333
17868 msgid "Using this flag is equivalent to using the C<mount-options> command."
17869 msgstr ""
17870
17871 #. type: =item
17872 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
17873 #: ../resize/virt-resize.pod:358
17874 msgid "B<-n>"
17875 msgstr "B<-n>"
17876
17877 #. type: =item
17878 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
17879 msgid "B<--no-sync>"
17880 msgstr "B<--no-sync>"
17881
17882 #. type: textblock
17883 #: ../fish/guestfish.pod:339
17884 msgid ""
17885 "Disable autosync.  This is enabled by default.  See the discussion of "
17886 "autosync in the L<guestfs(3)> manpage."
17887 msgstr ""
17888
17889 #. type: =item
17890 #: ../fish/guestfish.pod:342
17891 msgid "B<-N type>"
17892 msgstr "B<-N тип>"
17893
17894 #. type: =item
17895 #: ../fish/guestfish.pod:344
17896 msgid "B<--new type>"
17897 msgstr "B<--new тип>"
17898
17899 #. type: =item
17900 #: ../fish/guestfish.pod:346
17901 msgid "B<-N help>"
17902 msgstr "B<-N help>"
17903
17904 #. type: textblock
17905 #: ../fish/guestfish.pod:348
17906 msgid ""
17907 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
17908 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
17909 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
17910 "IMAGES> below."
17911 msgstr ""
17912
17913 #. type: =item
17914 #: ../fish/guestfish.pod:353
17915 msgid "B<--progress-bars>"
17916 msgstr "B<--progress-bars>"
17917
17918 #. type: textblock
17919 #: ../fish/guestfish.pod:355
17920 msgid "Enable progress bars, even when guestfish is used non-interactively."
17921 msgstr ""
17922
17923 #. type: textblock
17924 #: ../fish/guestfish.pod:357
17925 msgid ""
17926 "Progress bars are enabled by default when guestfish is used as an "
17927 "interactive shell."
17928 msgstr ""
17929
17930 #. type: =item
17931 #: ../fish/guestfish.pod:360
17932 msgid "B<--no-progress-bars>"
17933 msgstr "B<--no-progress-bars>"
17934
17935 #. type: textblock
17936 #: ../fish/guestfish.pod:362
17937 msgid "Disable progress bars."
17938 msgstr ""
17939
17940 #. type: =item
17941 #: ../fish/guestfish.pod:364
17942 msgid "B<--remote[=pid]>"
17943 msgstr "B<--remote[=pid]>"
17944
17945 #. type: textblock
17946 #: ../fish/guestfish.pod:366
17947 msgid ""
17948 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
17949 "CONTROL GUESTFISH OVER A SOCKET> below."
17950 msgstr ""
17951
17952 #. type: =item
17953 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
17954 #: ../rescue/virt-rescue.pod:161
17955 msgid "B<-r>"
17956 msgstr "B<-r>"
17957
17958 #. type: =item
17959 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
17960 #: ../rescue/virt-rescue.pod:163
17961 msgid "B<--ro>"
17962 msgstr "B<--ro>"
17963
17964 #. type: textblock
17965 #: ../fish/guestfish.pod:373
17966 msgid ""
17967 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
17968 "mounts are done read-only."
17969 msgstr ""
17970
17971 #. type: textblock
17972 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
17973 msgid ""
17974 "The option must always be used if the disk image or virtual machine might be "
17975 "running, and is generally recommended in cases where you don't need write "
17976 "access to the disk."
17977 msgstr ""
17978
17979 #. type: textblock
17980 #: ../fish/guestfish.pod:380
17981 msgid ""
17982 "Note that prepared disk images created with I<-N> are not affected by this "
17983 "option.  Also commands like C<add> are not affected - you have to specify "
17984 "the C<readonly:true> option explicitly if you need it."
17985 msgstr ""
17986
17987 #. type: textblock
17988 #: ../fish/guestfish.pod:384
17989 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
17990 msgstr ""
17991
17992 #. type: =item
17993 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
17994 #: ../rescue/virt-rescue.pod:173
17995 msgid "B<--selinux>"
17996 msgstr "B<--selinux>"
17997
17998 #. type: textblock
17999 #: ../fish/guestfish.pod:388
18000 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18001 msgstr ""
18002
18003 #. type: textblock
18004 #: ../fish/guestfish.pod:394
18005 msgid ""
18006 "Enable very verbose messages.  This is particularly useful if you find a bug."
18007 msgstr ""
18008
18009 #. type: textblock
18010 #: ../fish/guestfish.pod:401
18011 msgid "Display the guestfish / libguestfs version number and exit."
18012 msgstr ""
18013
18014 #. type: =item
18015 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
18016 #: ../rescue/virt-rescue.pod:190
18017 msgid "B<-w>"
18018 msgstr "B<-w>"
18019
18020 #. type: =item
18021 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
18022 #: ../rescue/virt-rescue.pod:192
18023 msgid "B<--rw>"
18024 msgstr "B<--rw>"
18025
18026 #. type: textblock
18027 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
18028 msgid ""
18029 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18030 "mounts are done read-write."
18031 msgstr ""
18032
18033 #. type: textblock
18034 #: ../fish/guestfish.pod:410
18035 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18036 msgstr ""
18037
18038 #. type: textblock
18039 #: ../fish/guestfish.pod:414
18040 msgid "Echo each command before executing it."
18041 msgstr ""
18042
18043 #. type: =head1
18044 #: ../fish/guestfish.pod:418
18045 msgid "COMMANDS ON COMMAND LINE"
18046 msgstr ""
18047
18048 #. type: textblock
18049 #: ../fish/guestfish.pod:420
18050 msgid ""
18051 "Any additional (non-option) arguments are treated as commands to execute."
18052 msgstr ""
18053
18054 #. type: textblock
18055 #: ../fish/guestfish.pod:423
18056 msgid ""
18057 "Commands to execute should be separated by a colon (C<:>), where the colon "
18058 "is a separate parameter.  Thus:"
18059 msgstr ""
18060
18061 #. type: verbatim
18062 #: ../fish/guestfish.pod:426
18063 #, no-wrap
18064 msgid ""
18065 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18066 "\n"
18067 msgstr ""
18068
18069 #. type: textblock
18070 #: ../fish/guestfish.pod:428
18071 msgid ""
18072 "If there are no additional arguments, then we enter a shell, either an "
18073 "interactive shell with a prompt (if the input is a terminal) or a non-"
18074 "interactive shell."
18075 msgstr ""
18076
18077 #. type: textblock
18078 #: ../fish/guestfish.pod:432
18079 msgid ""
18080 "In either command line mode or non-interactive shell, the first command that "
18081 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18082 "prompt) if a command fails, you can continue to enter commands."
18083 msgstr ""
18084
18085 #. type: =head1
18086 #: ../fish/guestfish.pod:437
18087 msgid "USING launch (OR run)"
18088 msgstr ""
18089
18090 #. type: textblock
18091 #: ../fish/guestfish.pod:439
18092 msgid ""
18093 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18094 "then launch it, then mount any disks you need, and finally issue actions/"
18095 "commands.  So the general order of the day is:"
18096 msgstr ""
18097
18098 #. type: textblock
18099 #: ../fish/guestfish.pod:447
18100 msgid "add or -a/--add"
18101 msgstr ""
18102
18103 #. type: textblock
18104 #: ../fish/guestfish.pod:451
18105 msgid "launch (aka run)"
18106 msgstr ""
18107
18108 #. type: textblock
18109 #: ../fish/guestfish.pod:455
18110 msgid "mount or -m/--mount"
18111 msgstr ""
18112
18113 #. type: textblock
18114 #: ../fish/guestfish.pod:459
18115 msgid "any other commands"
18116 msgstr ""
18117
18118 #. type: textblock
18119 #: ../fish/guestfish.pod:463
18120 msgid ""
18121 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18122 "guest before mounting or performing any other commands."
18123 msgstr ""
18124
18125 #. type: textblock
18126 #: ../fish/guestfish.pod:466
18127 msgid ""
18128 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18129 "I<--new> options were given then C<run> is done automatically, simply "
18130 "because guestfish can't perform the action you asked for without doing this."
18131 msgstr ""
18132
18133 #. type: =head1
18134 #: ../fish/guestfish.pod:471
18135 msgid "OPENING DISKS FOR READ AND WRITE"
18136 msgstr ""
18137
18138 #. type: textblock
18139 #: ../fish/guestfish.pod:473
18140 msgid ""
18141 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18142 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18143 "I<-i> and I<-m> open disk images read-only or for writing."
18144 msgstr ""
18145
18146 #. type: textblock
18147 #: ../fish/guestfish.pod:478
18148 msgid ""
18149 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18150 "opening disk images supplied on the command line for write.  To open a disk "
18151 "image read-only you have to do I<-a image --ro>."
18152 msgstr ""
18153
18154 #. type: textblock
18155 #: ../fish/guestfish.pod:482
18156 msgid ""
18157 "This matters: If you accidentally open a live VM disk image writable then "
18158 "you will cause irreversible disk corruption."
18159 msgstr ""
18160
18161 #. type: textblock
18162 #: ../fish/guestfish.pod:485
18163 msgid ""
18164 "In a future libguestfs we intend to change the default the other way.  Disk "
18165 "images will be opened read-only.  You will have to either specify "
18166 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18167 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18168 "access for disk images specified by those other command line options."
18169 msgstr ""
18170
18171 #. type: textblock
18172 #: ../fish/guestfish.pod:492
18173 msgid ""
18174 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18175 "which does nothing (it is already the default).  However it is highly "
18176 "recommended that you use this option to indicate that you need write access, "
18177 "and prepare your scripts for the day when this option will be required for "
18178 "write access."
18179 msgstr ""
18180
18181 #. type: textblock
18182 #: ../fish/guestfish.pod:498
18183 msgid ""
18184 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18185 "other libguestfs program apart from guestfish and guestmount."
18186 msgstr ""
18187
18188 #. type: =head1
18189 #: ../fish/guestfish.pod:501
18190 msgid "QUOTING"
18191 msgstr ""
18192
18193 #. type: textblock
18194 #: ../fish/guestfish.pod:503
18195 msgid ""
18196 "You can quote ordinary parameters using either single or double quotes.  For "
18197 "example:"
18198 msgstr ""
18199
18200 #. type: verbatim
18201 #: ../fish/guestfish.pod:506
18202 #, no-wrap
18203 msgid ""
18204 " add \"file with a space.img\"\n"
18205 "\n"
18206 msgstr ""
18207
18208 #. type: verbatim
18209 #: ../fish/guestfish.pod:508
18210 #, no-wrap
18211 msgid ""
18212 " rm '/file name'\n"
18213 "\n"
18214 msgstr ""
18215
18216 #. type: verbatim
18217 #: ../fish/guestfish.pod:510
18218 #, no-wrap
18219 msgid ""
18220 " rm '/\"'\n"
18221 "\n"
18222 msgstr ""
18223
18224 #. type: textblock
18225 #: ../fish/guestfish.pod:512
18226 msgid ""
18227 "A few commands require a list of strings to be passed.  For these, use a "
18228 "whitespace-separated list, enclosed in quotes.  Strings containing "
18229 "whitespace to be passed through must be enclosed in single quotes.  A "
18230 "literal single quote must be escaped with a backslash."
18231 msgstr ""
18232
18233 #. type: verbatim
18234 #: ../fish/guestfish.pod:517
18235 #, no-wrap
18236 msgid ""
18237 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18238 " command \"/bin/echo 'foo      bar'\"\n"
18239 " command \"/bin/echo \\'foo\\'\"\n"
18240 "\n"
18241 msgstr ""
18242
18243 #. type: =head2
18244 #: ../fish/guestfish.pod:521
18245 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18246 msgstr ""
18247
18248 #. type: textblock
18249 #: ../fish/guestfish.pod:523
18250 msgid ""
18251 "In double-quoted arguments (only) use backslash to insert special characters:"
18252 msgstr ""
18253
18254 #. type: =item
18255 #: ../fish/guestfish.pod:528
18256 msgid "C<\\a>"
18257 msgstr ""
18258
18259 #. type: textblock
18260 #: ../fish/guestfish.pod:530
18261 msgid "Alert (bell) character."
18262 msgstr ""
18263
18264 #. type: =item
18265 #: ../fish/guestfish.pod:532
18266 msgid "C<\\b>"
18267 msgstr ""
18268
18269 #. type: textblock
18270 #: ../fish/guestfish.pod:534
18271 msgid "Backspace character."
18272 msgstr ""
18273
18274 #. type: =item
18275 #: ../fish/guestfish.pod:536
18276 msgid "C<\\f>"
18277 msgstr ""
18278
18279 #. type: textblock
18280 #: ../fish/guestfish.pod:538
18281 msgid "Form feed character."
18282 msgstr ""
18283
18284 #. type: =item
18285 #: ../fish/guestfish.pod:540
18286 msgid "C<\\n>"
18287 msgstr ""
18288
18289 #. type: textblock
18290 #: ../fish/guestfish.pod:542
18291 msgid "Newline character."
18292 msgstr ""
18293
18294 #. type: =item
18295 #: ../fish/guestfish.pod:544
18296 msgid "C<\\r>"
18297 msgstr ""
18298
18299 #. type: textblock
18300 #: ../fish/guestfish.pod:546
18301 msgid "Carriage return character."
18302 msgstr ""
18303
18304 #. type: =item
18305 #: ../fish/guestfish.pod:548
18306 msgid "C<\\t>"
18307 msgstr ""
18308
18309 #. type: textblock
18310 #: ../fish/guestfish.pod:550
18311 msgid "Horizontal tab character."
18312 msgstr ""
18313
18314 #. type: =item
18315 #: ../fish/guestfish.pod:552
18316 msgid "C<\\v>"
18317 msgstr ""
18318
18319 #. type: textblock
18320 #: ../fish/guestfish.pod:554
18321 msgid "Vertical tab character."
18322 msgstr ""
18323
18324 #. type: =item
18325 #: ../fish/guestfish.pod:556
18326 msgid "C<\\\">"
18327 msgstr ""
18328
18329 #. type: textblock
18330 #: ../fish/guestfish.pod:558
18331 msgid "A literal double quote character."
18332 msgstr ""
18333
18334 #. type: =item
18335 #: ../fish/guestfish.pod:560
18336 msgid "C<\\ooo>"
18337 msgstr ""
18338
18339 #. type: textblock
18340 #: ../fish/guestfish.pod:562
18341 msgid ""
18342 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18343 "(unlike C)."
18344 msgstr ""
18345
18346 #. type: =item
18347 #: ../fish/guestfish.pod:565
18348 msgid "C<\\xhh>"
18349 msgstr ""
18350
18351 #. type: textblock
18352 #: ../fish/guestfish.pod:567
18353 msgid ""
18354 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18355 msgstr ""
18356
18357 #. type: textblock
18358 #: ../fish/guestfish.pod:570
18359 msgid ""
18360 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18361 "strings."
18362 msgstr ""
18363
18364 #. type: =item
18365 #: ../fish/guestfish.pod:573
18366 msgid "C<\\\\>"
18367 msgstr ""
18368
18369 #. type: textblock
18370 #: ../fish/guestfish.pod:575
18371 msgid "A literal backslash character."
18372 msgstr ""
18373
18374 #. type: =head1
18375 #: ../fish/guestfish.pod:579
18376 msgid "OPTIONAL ARGUMENTS"
18377 msgstr ""
18378
18379 #. type: textblock
18380 #: ../fish/guestfish.pod:581
18381 msgid ""
18382 "Some commands take optional arguments.  These arguments appear in this "
18383 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18384 msgstr ""
18385
18386 #. type: verbatim
18387 #: ../fish/guestfish.pod:585
18388 #, no-wrap
18389 msgid ""
18390 " add-drive-opts filename\n"
18391 "\n"
18392 msgstr ""
18393
18394 #. type: verbatim
18395 #: ../fish/guestfish.pod:587
18396 #, no-wrap
18397 msgid ""
18398 " add-drive-opts filename readonly:true\n"
18399 "\n"
18400 msgstr ""
18401
18402 #. type: verbatim
18403 #: ../fish/guestfish.pod:589
18404 #, no-wrap
18405 msgid ""
18406 " add-drive-opts filename format:qcow2 readonly:false\n"
18407 "\n"
18408 msgstr ""
18409
18410 #. type: textblock
18411 #: ../fish/guestfish.pod:591
18412 msgid ""
18413 "Each optional argument can appear at most once.  All optional arguments must "
18414 "appear after the required ones."
18415 msgstr ""
18416
18417 #. type: =head1
18418 #: ../fish/guestfish.pod:594
18419 msgid "NUMBERS"
18420 msgstr "ЧИСЛА"
18421
18422 #. type: textblock
18423 #: ../fish/guestfish.pod:596
18424 msgid ""
18425 "This section applies to all commands which can take integers as parameters."
18426 msgstr ""
18427
18428 #. type: =head2
18429 #: ../fish/guestfish.pod:599
18430 msgid "SIZE SUFFIX"
18431 msgstr ""
18432
18433 #. type: textblock
18434 #: ../fish/guestfish.pod:601
18435 msgid ""
18436 "When the command takes a parameter measured in bytes, you can use one of the "
18437 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18438 msgstr ""
18439
18440 #. type: =item
18441 #: ../fish/guestfish.pod:607
18442 msgid "B<k> or B<K> or B<KiB>"
18443 msgstr "B<k>, B<K> або B<KiB>"
18444
18445 #. type: textblock
18446 #: ../fish/guestfish.pod:609
18447 msgid "The size in kilobytes (multiplied by 1024)."
18448 msgstr ""
18449
18450 #. type: =item
18451 #: ../fish/guestfish.pod:611
18452 msgid "B<KB>"
18453 msgstr "B<KB>"
18454
18455 #. type: textblock
18456 #: ../fish/guestfish.pod:613
18457 msgid "The size in SI 1000 byte units."
18458 msgstr ""
18459
18460 #. type: =item
18461 #: ../fish/guestfish.pod:615
18462 msgid "B<M> or B<MiB>"
18463 msgstr "B<M> або B<MiB>"
18464
18465 #. type: textblock
18466 #: ../fish/guestfish.pod:617
18467 msgid "The size in megabytes (multiplied by 1048576)."
18468 msgstr ""
18469
18470 #. type: =item
18471 #: ../fish/guestfish.pod:619
18472 msgid "B<MB>"
18473 msgstr "B<MB>"
18474
18475 #. type: textblock
18476 #: ../fish/guestfish.pod:621
18477 msgid "The size in SI 1000000 byte units."
18478 msgstr ""
18479
18480 #. type: =item
18481 #: ../fish/guestfish.pod:623
18482 msgid "B<G> or B<GiB>"
18483 msgstr "B<G> або B<GiB>"
18484
18485 #. type: textblock
18486 #: ../fish/guestfish.pod:625
18487 msgid "The size in gigabytes (multiplied by 2**30)."
18488 msgstr "Розмір у гігабайтах (з множником 2**30)."
18489
18490 #. type: =item
18491 #: ../fish/guestfish.pod:627
18492 msgid "B<GB>"
18493 msgstr "B<GB>"
18494
18495 #. type: textblock
18496 #: ../fish/guestfish.pod:629
18497 msgid "The size in SI 10**9 byte units."
18498 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18499
18500 #. type: =item
18501 #: ../fish/guestfish.pod:631
18502 msgid "B<T> or B<TiB>"
18503 msgstr "B<T> або B<TiB>"
18504
18505 #. type: textblock
18506 #: ../fish/guestfish.pod:633
18507 msgid "The size in terabytes (multiplied by 2**40)."
18508 msgstr "Розмір у терабайтах (з множником 2**40)."
18509
18510 #. type: =item
18511 #: ../fish/guestfish.pod:635
18512 msgid "B<TB>"
18513 msgstr "B<TB>"
18514
18515 #. type: textblock
18516 #: ../fish/guestfish.pod:637
18517 msgid "The size in SI 10**12 byte units."
18518 msgstr ""
18519
18520 #. type: =item
18521 #: ../fish/guestfish.pod:639
18522 msgid "B<P> or B<PiB>"
18523 msgstr "B<P> або B<PiB>"
18524
18525 #. type: textblock
18526 #: ../fish/guestfish.pod:641
18527 msgid "The size in petabytes (multiplied by 2**50)."
18528 msgstr ""
18529
18530 #. type: =item
18531 #: ../fish/guestfish.pod:643
18532 msgid "B<PB>"
18533 msgstr "B<PB>"
18534
18535 #. type: textblock
18536 #: ../fish/guestfish.pod:645
18537 msgid "The size in SI 10**15 byte units."
18538 msgstr ""
18539
18540 #. type: =item
18541 #: ../fish/guestfish.pod:647
18542 msgid "B<E> or B<EiB>"
18543 msgstr "B<E> або B<EiB>"
18544
18545 #. type: textblock
18546 #: ../fish/guestfish.pod:649
18547 msgid "The size in exabytes (multiplied by 2**60)."
18548 msgstr ""
18549
18550 #. type: =item
18551 #: ../fish/guestfish.pod:651
18552 msgid "B<EB>"
18553 msgstr "B<EB>"
18554
18555 #. type: textblock
18556 #: ../fish/guestfish.pod:653
18557 msgid "The size in SI 10**18 byte units."
18558 msgstr ""
18559
18560 #. type: =item
18561 #: ../fish/guestfish.pod:655
18562 msgid "B<Z> or B<ZiB>"
18563 msgstr "B<Z> або B<ZiB>"
18564
18565 #. type: textblock
18566 #: ../fish/guestfish.pod:657
18567 msgid "The size in zettabytes (multiplied by 2**70)."
18568 msgstr ""
18569
18570 #. type: =item
18571 #: ../fish/guestfish.pod:659
18572 msgid "B<ZB>"
18573 msgstr "B<ZB>"
18574
18575 #. type: textblock
18576 #: ../fish/guestfish.pod:661
18577 msgid "The size in SI 10**21 byte units."
18578 msgstr ""
18579
18580 #. type: =item
18581 #: ../fish/guestfish.pod:663
18582 msgid "B<Y> or B<YiB>"
18583 msgstr "B<Y> або B<YiB>"
18584
18585 #. type: textblock
18586 #: ../fish/guestfish.pod:665
18587 msgid "The size in yottabytes (multiplied by 2**80)."
18588 msgstr ""
18589
18590 #. type: =item
18591 #: ../fish/guestfish.pod:667
18592 msgid "B<YB>"
18593 msgstr "B<YB>"
18594
18595 #. type: textblock
18596 #: ../fish/guestfish.pod:669
18597 msgid "The size in SI 10**24 byte units."
18598 msgstr ""
18599
18600 #. type: verbatim
18601 #: ../fish/guestfish.pod:675
18602 #, no-wrap
18603 msgid ""
18604 " truncate-size /file 1G\n"
18605 "\n"
18606 msgstr ""
18607
18608 #. type: textblock
18609 #: ../fish/guestfish.pod:677
18610 msgid "would truncate the file to 1 gigabyte."
18611 msgstr ""
18612
18613 #. type: textblock
18614 #: ../fish/guestfish.pod:679
18615 msgid ""
18616 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
18617 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
18618 "suffix will probably not do what you expect."
18619 msgstr ""
18620
18621 #. type: =head2
18622 #: ../fish/guestfish.pod:683
18623 msgid "OCTAL AND HEXADECIMAL NUMBERS"
18624 msgstr ""
18625
18626 #. type: textblock
18627 #: ../fish/guestfish.pod:685
18628 msgid ""
18629 "For specifying the radix (base) use the C convention: C<0> to prefix an "
18630 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
18631 msgstr ""
18632
18633 #. type: verbatim
18634 #: ../fish/guestfish.pod:688
18635 #, no-wrap
18636 msgid ""
18637 " 1234      decimal number 1234\n"
18638 " 02322     octal number, equivalent to decimal 1234\n"
18639 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
18640 "\n"
18641 msgstr ""
18642
18643 #. type: textblock
18644 #: ../fish/guestfish.pod:692
18645 msgid ""
18646 "When using the C<chmod> command, you almost always want to specify an octal "
18647 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
18648 "L<chmod(1)> program):"
18649 msgstr ""
18650
18651 #. type: verbatim
18652 #: ../fish/guestfish.pod:696
18653 #, no-wrap
18654 msgid ""
18655 " chmod 0777 /public  # OK\n"
18656 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
18657 "\n"
18658 msgstr ""
18659
18660 #. type: textblock
18661 #: ../fish/guestfish.pod:699
18662 msgid ""
18663 "Commands that return numbers usually print them in decimal, but some "
18664 "commands print numbers in other radices (eg. C<umask> prints the mode in "
18665 "octal, preceeded by C<0>)."
18666 msgstr ""
18667
18668 #. type: =head1
18669 #: ../fish/guestfish.pod:703
18670 msgid "WILDCARDS AND GLOBBING"
18671 msgstr ""
18672
18673 #. type: textblock
18674 #: ../fish/guestfish.pod:705
18675 msgid ""
18676 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
18677 "(globbing) by default.  So for example the following will not do what you "
18678 "expect:"
18679 msgstr ""
18680
18681 #. type: verbatim
18682 #: ../fish/guestfish.pod:709
18683 #, no-wrap
18684 msgid ""
18685 " rm-rf /home/*\n"
18686 "\n"
18687 msgstr ""
18688
18689 #. type: textblock
18690 #: ../fish/guestfish.pod:711
18691 msgid ""
18692 "Assuming you don't have a directory called literally C</home/*> then the "
18693 "above command will return an error."
18694 msgstr ""
18695
18696 #. type: textblock
18697 #: ../fish/guestfish.pod:714
18698 msgid "To perform wildcard expansion, use the C<glob> command."
18699 msgstr ""
18700
18701 #. type: verbatim
18702 #: ../fish/guestfish.pod:716
18703 #, no-wrap
18704 msgid ""
18705 " glob rm-rf /home/*\n"
18706 "\n"
18707 msgstr ""
18708
18709 #. type: textblock
18710 #: ../fish/guestfish.pod:718
18711 msgid ""
18712 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
18713 "many times), equivalent to:"
18714 msgstr ""
18715
18716 #. type: verbatim
18717 #: ../fish/guestfish.pod:721
18718 #, no-wrap
18719 msgid ""
18720 " rm-rf /home/jim\n"
18721 " rm-rf /home/joe\n"
18722 " rm-rf /home/mary\n"
18723 "\n"
18724 msgstr ""
18725
18726 #. type: textblock
18727 #: ../fish/guestfish.pod:725
18728 msgid "C<glob> only works on simple guest paths and not on device names."
18729 msgstr ""
18730
18731 #. type: textblock
18732 #: ../fish/guestfish.pod:727
18733 msgid ""
18734 "If you have several parameters, each containing a wildcard, then glob will "
18735 "perform a Cartesian product."
18736 msgstr ""
18737
18738 #. type: =head1
18739 #: ../fish/guestfish.pod:730
18740 msgid "COMMENTS"
18741 msgstr "КОМЕНТАРІ"
18742
18743 #. type: textblock
18744 #: ../fish/guestfish.pod:732
18745 msgid ""
18746 "Any line which starts with a I<#> character is treated as a comment and "
18747 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
18748 "a command.  For example:"
18749 msgstr ""
18750
18751 #. type: verbatim
18752 #: ../fish/guestfish.pod:736
18753 #, no-wrap
18754 msgid ""
18755 " # this is a comment\n"
18756 "         # this is a comment\n"
18757 " foo # NOT a comment\n"
18758 "\n"
18759 msgstr ""
18760
18761 #. type: textblock
18762 #: ../fish/guestfish.pod:740
18763 msgid "Blank lines are also ignored."
18764 msgstr ""
18765
18766 #. type: =head1
18767 #: ../fish/guestfish.pod:742
18768 msgid "RUNNING COMMANDS LOCALLY"
18769 msgstr ""
18770
18771 #. type: textblock
18772 #: ../fish/guestfish.pod:744
18773 msgid ""
18774 "Any line which starts with a I<!> character is treated as a command sent to "
18775 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
18776 msgstr ""
18777
18778 #. type: verbatim
18779 #: ../fish/guestfish.pod:748
18780 #, no-wrap
18781 msgid ""
18782 " !mkdir local\n"
18783 " tgz-out /remote local/remote-data.tar.gz\n"
18784 "\n"
18785 msgstr ""
18786
18787 #. type: textblock
18788 #: ../fish/guestfish.pod:751
18789 msgid ""
18790 "will create a directory C<local> on the host, and then export the contents "
18791 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
18792 "(See C<tgz-out>)."
18793 msgstr ""
18794
18795 #. type: textblock
18796 #: ../fish/guestfish.pod:755
18797 msgid ""
18798 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
18799 "effect, due to the way that subprocesses work in Unix."
18800 msgstr ""
18801
18802 #. type: =head2
18803 #: ../fish/guestfish.pod:758
18804 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
18805 msgstr ""
18806
18807 #. type: textblock
18808 #: ../fish/guestfish.pod:760
18809 msgid ""
18810 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
18811 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
18812 "and executed as guestfish commands."
18813 msgstr ""
18814
18815 #. type: textblock
18816 #: ../fish/guestfish.pod:764
18817 msgid ""
18818 "Thus you can use shell script to construct arbitrary guestfish commands "
18819 "which are then parsed by guestfish."
18820 msgstr ""
18821
18822 #. type: textblock
18823 #: ../fish/guestfish.pod:767
18824 msgid ""
18825 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
18826 "through C</foo.100>) using guestfish commands alone.  However this is simple "
18827 "if we use a shell script to create the guestfish commands for us:"
18828 msgstr ""
18829
18830 #. type: verbatim
18831 #: ../fish/guestfish.pod:772
18832 #, no-wrap
18833 msgid ""
18834 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
18835 "\n"
18836 msgstr ""
18837
18838 #. type: textblock
18839 #: ../fish/guestfish.pod:774
18840 msgid "or with names like C</foo.001>:"
18841 msgstr ""
18842
18843 #. type: verbatim
18844 #: ../fish/guestfish.pod:776
18845 #, no-wrap
18846 msgid ""
18847 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
18848 "\n"
18849 msgstr ""
18850
18851 #. type: textblock
18852 #: ../fish/guestfish.pod:778
18853 msgid ""
18854 "When using guestfish interactively it can be helpful to just run the shell "
18855 "script first (ie. remove the initial C<E<lt>> character so it is just an "
18856 "ordinary I<!> local command), see what guestfish commands it would run, and "
18857 "when you are happy with those prepend the C<E<lt>> character to run the "
18858 "guestfish commands for real."
18859 msgstr ""
18860
18861 #. type: =head1
18862 #: ../fish/guestfish.pod:784
18863 msgid "PIPES"
18864 msgstr "КАНАЛИ"
18865
18866 #. type: textblock
18867 #: ../fish/guestfish.pod:786
18868 msgid ""
18869 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
18870 "command (a guestfish command) to the second command (any host command).  For "
18871 "example:"
18872 msgstr ""
18873
18874 #. type: verbatim
18875 #: ../fish/guestfish.pod:790
18876 #, no-wrap
18877 msgid ""
18878 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
18879 "\n"
18880 msgstr ""
18881
18882 #. type: textblock
18883 #: ../fish/guestfish.pod:792
18884 msgid ""
18885 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
18886 "program).  The above command would list all accounts in the guest filesystem "
18887 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
18888 msgstr ""
18889
18890 #. type: verbatim
18891 #: ../fish/guestfish.pod:797
18892 #, no-wrap
18893 msgid ""
18894 " hexdump /bin/ls | head\n"
18895 " list-devices | tail -1\n"
18896 " tgz-out / - | tar ztf -\n"
18897 "\n"
18898 msgstr ""
18899
18900 #. type: textblock
18901 #: ../fish/guestfish.pod:801
18902 msgid ""
18903 "The space before the pipe symbol is required, any space after the pipe "
18904 "symbol is optional.  Everything after the pipe symbol is just passed "
18905 "straight to the host shell, so it can contain redirections, globs and "
18906 "anything else that makes sense on the host side."
18907 msgstr ""
18908
18909 #. type: textblock
18910 #: ../fish/guestfish.pod:806
18911 msgid ""
18912 "To use a literal argument which begins with a pipe symbol, you have to quote "
18913 "it, eg:"
18914 msgstr ""
18915
18916 #. type: verbatim
18917 #: ../fish/guestfish.pod:809
18918 #, no-wrap
18919 msgid ""
18920 " echo \"|\"\n"
18921 "\n"
18922 msgstr ""
18923
18924 #. type: =head1
18925 #: ../fish/guestfish.pod:811
18926 msgid "HOME DIRECTORIES"
18927 msgstr ""
18928
18929 #. type: textblock
18930 #: ../fish/guestfish.pod:813
18931 msgid ""
18932 "If a parameter starts with the character C<~> then the tilde may be expanded "
18933 "as a home directory path (either C<~> for the current user's home directory, "
18934 "or C<~user> for another user)."
18935 msgstr ""
18936
18937 #. type: textblock
18938 #: ../fish/guestfish.pod:817
18939 msgid ""
18940 "Note that home directory expansion happens for users known I<on the host>, "
18941 "not in the guest filesystem."
18942 msgstr ""
18943
18944 #. type: textblock
18945 #: ../fish/guestfish.pod:820
18946 msgid ""
18947 "To use a literal argument which begins with a tilde, you have to quote it, "
18948 "eg:"
18949 msgstr ""
18950
18951 #. type: verbatim
18952 #: ../fish/guestfish.pod:823
18953 #, no-wrap
18954 msgid ""
18955 " echo \"~\"\n"
18956 "\n"
18957 msgstr ""
18958
18959 #. type: =head2
18960 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
18961 msgid "ENCRYPTED DISKS"
18962 msgstr "ЗАШИФРОВАНІ ДИСКИ"
18963
18964 #. type: textblock
18965 #: ../fish/guestfish.pod:827
18966 msgid ""
18967 "Libguestfs has some support for Linux guests encrypted according to the "
18968 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
18969 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
18970 "LUKS is supported."
18971 msgstr ""
18972
18973 #. type: textblock
18974 #: ../fish/guestfish.pod:832
18975 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
18976 msgstr ""
18977
18978 #. type: verbatim
18979 #: ../fish/guestfish.pod:834
18980 #, no-wrap
18981 msgid ""
18982 " ><fs> vfs-type /dev/sda2\n"
18983 " crypto_LUKS\n"
18984 "\n"
18985 msgstr ""
18986
18987 #. type: textblock
18988 #: ../fish/guestfish.pod:837
18989 msgid ""
18990 "Then open those devices using L</luks-open>.  This creates a device-mapper "
18991 "device called C</dev/mapper/luksdev>."
18992 msgstr ""
18993
18994 #. type: verbatim
18995 #: ../fish/guestfish.pod:840
18996 #, no-wrap
18997 msgid ""
18998 " ><fs> luks-open /dev/sda2 luksdev\n"
18999 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19000 "\n"
19001 msgstr ""
19002
19003 #. type: textblock
19004 #: ../fish/guestfish.pod:843
19005 msgid ""
19006 "Finally you have to tell LVM to scan for volume groups on the newly created "
19007 "mapper device:"
19008 msgstr ""
19009
19010 #. type: verbatim
19011 #: ../fish/guestfish.pod:846
19012 #, no-wrap
19013 msgid ""
19014 " vgscan\n"
19015 " vg-activate-all true\n"
19016 "\n"
19017 msgstr ""
19018
19019 #. type: textblock
19020 #: ../fish/guestfish.pod:849
19021 msgid "The logical volume(s) can now be mounted in the usual way."
19022 msgstr ""
19023
19024 #. type: textblock
19025 #: ../fish/guestfish.pod:851
19026 msgid ""
19027 "Before closing a LUKS device you must unmount any logical volumes on it and "
19028 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19029 "one.  Then you can close the mapper device:"
19030 msgstr ""
19031
19032 #. type: verbatim
19033 #: ../fish/guestfish.pod:855
19034 #, no-wrap
19035 msgid ""
19036 " vg-activate false /dev/VG\n"
19037 " luks-close /dev/mapper/luksdev\n"
19038 "\n"
19039 msgstr ""
19040
19041 #. type: textblock
19042 #: ../fish/guestfish.pod:860
19043 msgid ""
19044 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19045 "letters and paths (with some limitations).  The following commands are "
19046 "equivalent:"
19047 msgstr ""
19048
19049 #. type: verbatim
19050 #: ../fish/guestfish.pod:864
19051 #, no-wrap
19052 msgid ""
19053 " file /WINDOWS/system32/config/system.LOG\n"
19054 "\n"
19055 msgstr ""
19056
19057 #. type: verbatim
19058 #: ../fish/guestfish.pod:866
19059 #, no-wrap
19060 msgid ""
19061 " file win:\\windows\\system32\\config\\system.log\n"
19062 "\n"
19063 msgstr ""
19064
19065 #. type: verbatim
19066 #: ../fish/guestfish.pod:868
19067 #, no-wrap
19068 msgid ""
19069 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19070 "\n"
19071 msgstr ""
19072
19073 #. type: textblock
19074 #: ../fish/guestfish.pod:870
19075 msgid ""
19076 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19077 "where the drive is mounted, prepending that to the path, changing all "
19078 "backslash characters to forward slash, then resolving the result using L</"
19079 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
19080 "the parameter might be rewritten like this:"
19081 msgstr ""
19082
19083 #. type: verbatim
19084 #: ../fish/guestfish.pod:876
19085 #, no-wrap
19086 msgid ""
19087 " win:e:\\foo\\bar => /e/FOO/bar\n"
19088 "\n"
19089 msgstr ""
19090
19091 #. type: textblock
19092 #: ../fish/guestfish.pod:878
19093 msgid "This only works in argument positions that expect a path."
19094 msgstr ""
19095
19096 #. type: =head1
19097 #: ../fish/guestfish.pod:880
19098 msgid "UPLOADING AND DOWNLOADING FILES"
19099 msgstr ""
19100
19101 #. type: textblock
19102 #: ../fish/guestfish.pod:882
19103 msgid ""
19104 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19105 "others which upload from or download to a local file, you can use the "
19106 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19107 msgstr ""
19108
19109 #. type: verbatim
19110 #: ../fish/guestfish.pod:886
19111 #, no-wrap
19112 msgid ""
19113 " upload - /foo\n"
19114 "\n"
19115 msgstr ""
19116
19117 #. type: textblock
19118 #: ../fish/guestfish.pod:888
19119 msgid ""
19120 "reads stdin and creates from that a file C</foo> in the disk image, and:"
19121 msgstr ""
19122
19123 #. type: verbatim
19124 #: ../fish/guestfish.pod:891
19125 #, no-wrap
19126 msgid ""
19127 " tar-out /etc - | tar tf -\n"
19128 "\n"
19129 msgstr ""
19130
19131 #. type: textblock
19132 #: ../fish/guestfish.pod:893
19133 msgid ""
19134 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19135 "command (see L</PIPES>)."
19136 msgstr ""
19137
19138 #. type: textblock
19139 #: ../fish/guestfish.pod:896
19140 msgid ""
19141 "When using C<-> to read from stdin, the input is read up to the end of "
19142 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19143 "some arbitrary end marker:"
19144 msgstr ""
19145
19146 #. type: verbatim
19147 #: ../fish/guestfish.pod:900
19148 #, no-wrap
19149 msgid ""
19150 " upload -<<END /foo\n"
19151 " input line 1\n"
19152 " input line 2\n"
19153 " input line 3\n"
19154 " END\n"
19155 "\n"
19156 msgstr ""
19157
19158 #. type: textblock
19159 #: ../fish/guestfish.pod:906
19160 msgid ""
19161 "Any string of characters can be used instead of C<END>.  The end marker must "
19162 "appear on a line of its own, without any preceeding or following characters "
19163 "(not even spaces)."
19164 msgstr ""
19165
19166 #. type: textblock
19167 #: ../fish/guestfish.pod:910
19168 msgid ""
19169 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19170 "upload local files (so-called \"FileIn\" parameters in the generator)."
19171 msgstr ""
19172
19173 #. type: =head1
19174 #: ../fish/guestfish.pod:913
19175 msgid "EXIT ON ERROR BEHAVIOUR"
19176 msgstr ""
19177
19178 #. type: textblock
19179 #: ../fish/guestfish.pod:915
19180 msgid ""
19181 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19182 "taking commands from a human over a tty), and will exit on the first error "
19183 "in non-interactive mode (scripts, commands given on the command line)."
19184 msgstr ""
19185
19186 #. type: textblock
19187 #: ../fish/guestfish.pod:920
19188 msgid ""
19189 "If you prefix a command with a I<-> character, then that command will not "
19190 "cause guestfish to exit, even if that (one) command returns an error."
19191 msgstr ""
19192
19193 #. type: =head1
19194 #: ../fish/guestfish.pod:924
19195 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19196 msgstr ""
19197
19198 #. type: textblock
19199 #: ../fish/guestfish.pod:926
19200 msgid ""
19201 "Guestfish can be remote-controlled over a socket.  This is useful "
19202 "particularly in shell scripts where you want to make several different "
19203 "changes to a filesystem, but you don't want the overhead of starting up a "
19204 "guestfish process each time."
19205 msgstr ""
19206
19207 #. type: textblock
19208 #: ../fish/guestfish.pod:931
19209 msgid "Start a guestfish server process using:"
19210 msgstr ""
19211
19212 #. type: verbatim
19213 #: ../fish/guestfish.pod:933
19214 #, no-wrap
19215 msgid ""
19216 " eval \"`guestfish --listen`\"\n"
19217 "\n"
19218 msgstr ""
19219
19220 #. type: textblock
19221 #: ../fish/guestfish.pod:935
19222 msgid "and then send it commands by doing:"
19223 msgstr ""
19224
19225 #. type: verbatim
19226 #: ../fish/guestfish.pod:937
19227 #, no-wrap
19228 msgid ""
19229 " guestfish --remote cmd [...]\n"
19230 "\n"
19231 msgstr ""
19232
19233 #. type: textblock
19234 #: ../fish/guestfish.pod:939
19235 msgid "To cause the server to exit, send it the exit command:"
19236 msgstr ""
19237
19238 #. type: textblock
19239 #: ../fish/guestfish.pod:943
19240 msgid ""
19241 "Note that the server will normally exit if there is an error in a command.  "
19242 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19243 "BEHAVIOUR>."
19244 msgstr ""
19245
19246 #. type: =head2
19247 #: ../fish/guestfish.pod:947
19248 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19249 msgstr ""
19250
19251 #. type: textblock
19252 #: ../fish/guestfish.pod:949
19253 msgid ""
19254 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19255 "is how the I<--remote> option knows where to send the commands.  You can "
19256 "have several guestfish listener processes running using:"
19257 msgstr ""
19258
19259 #. type: verbatim
19260 #: ../fish/guestfish.pod:953
19261 #, no-wrap
19262 msgid ""
19263 " eval \"`guestfish --listen`\"\n"
19264 " pid1=$GUESTFISH_PID\n"
19265 " eval \"`guestfish --listen`\"\n"
19266 " pid2=$GUESTFISH_PID\n"
19267 " ...\n"
19268 " guestfish --remote=$pid1 cmd\n"
19269 " guestfish --remote=$pid2 cmd\n"
19270 "\n"
19271 msgstr ""
19272
19273 #. type: =head2
19274 #: ../fish/guestfish.pod:961
19275 msgid "REMOTE CONTROL AND CSH"
19276 msgstr ""
19277
19278 #. type: textblock
19279 #: ../fish/guestfish.pod:963
19280 msgid ""
19281 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19282 "option:"
19283 msgstr ""
19284
19285 #. type: verbatim
19286 #: ../fish/guestfish.pod:966
19287 #, no-wrap
19288 msgid ""
19289 " eval \"`guestfish --listen --csh`\"\n"
19290 "\n"
19291 msgstr ""
19292
19293 #. type: =head2
19294 #: ../fish/guestfish.pod:968
19295 msgid "REMOTE CONTROL DETAILS"
19296 msgstr ""
19297
19298 #. type: textblock
19299 #: ../fish/guestfish.pod:970
19300 msgid ""
19301 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19302 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19303 "and C<$PID> is the process ID of the server."
19304 msgstr ""
19305
19306 #. type: textblock
19307 #: ../fish/guestfish.pod:974
19308 msgid "Guestfish client and server versions must match exactly."
19309 msgstr ""
19310
19311 #. type: =head2
19312 #: ../fish/guestfish.pod:976
19313 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19314 msgstr ""
19315
19316 #. type: textblock
19317 #: ../fish/guestfish.pod:978
19318 msgid ""
19319 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19320 "context hangs, ie. don't do (note the backquotes):"
19321 msgstr ""
19322
19323 #. type: verbatim
19324 #: ../fish/guestfish.pod:981
19325 #, fuzzy, no-wrap
19326 #| msgid ""
19327 #| " guestfish --ro -d myguest -i\n"
19328 #| "\n"
19329 msgid ""
19330 " a=`guestfish --remote run`\n"
19331 "\n"
19332 msgstr ""
19333 " guestfish --ro -d myguest -i\n"
19334 "\n"
19335
19336 #. type: textblock
19337 #: ../fish/guestfish.pod:983
19338 msgid ""
19339 "Since the C<run> command produces no output on stdout, this is not useful "
19340 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
19341 "cgi?id=592910>."
19342 msgstr ""
19343
19344 #. type: =head1
19345 #: ../fish/guestfish.pod:987
19346 msgid "PREPARED DISK IMAGES"
19347 msgstr ""
19348
19349 #. type: textblock
19350 #: ../fish/guestfish.pod:989
19351 msgid ""
19352 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19353 "preformatted disk images that guestfish can make for you to save typing.  "
19354 "This is particularly useful for testing purposes.  This option is used "
19355 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19356 "can be mixed with I<-a>)."
19357 msgstr ""
19358
19359 #. type: textblock
19360 #: ../fish/guestfish.pod:995
19361 msgid ""
19362 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19363 "the second and so on.  Existing files in the current directory are "
19364 "I<overwritten>."
19365 msgstr ""
19366
19367 #. type: textblock
19368 #: ../fish/guestfish.pod:999
19369 msgid ""
19370 "The type briefly describes how the disk should be sized, partitioned, how "
19371 "filesystem(s) should be created, and how content should be added.  "
19372 "Optionally the type can be followed by extra parameters, separated by C<:> "
19373 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
19374 "allocated disk, containing a single partition, with the partition formatted "
19375 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19376 "disk instead."
19377 msgstr ""
19378
19379 #. type: textblock
19380 #: ../fish/guestfish.pod:1007
19381 msgid "To list the available types and any extra parameters they take, run:"
19382 msgstr ""
19383
19384 #. type: textblock
19385 #: ../fish/guestfish.pod:1011
19386 msgid ""
19387 "Note that the prepared filesystem is not mounted.  You would usually have to "
19388 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19389 msgstr ""
19390
19391 #. type: textblock
19392 #: ../fish/guestfish.pod:1015
19393 msgid ""
19394 "If any I<-N> or I<--new> options are given, the guest is automatically "
19395 "launched."
19396 msgstr ""
19397
19398 #. type: textblock
19399 #: ../fish/guestfish.pod:1020
19400 msgid "Create a 100MB disk with an ext4-formatted partition:"
19401 msgstr ""
19402
19403 #. type: verbatim
19404 #: ../fish/guestfish.pod:1022
19405 #, no-wrap
19406 msgid ""
19407 " guestfish -N fs:ext4\n"
19408 "\n"
19409 msgstr ""
19410
19411 #. type: textblock
19412 #: ../fish/guestfish.pod:1024
19413 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19414 msgstr ""
19415
19416 #. type: verbatim
19417 #: ../fish/guestfish.pod:1026
19418 #, no-wrap
19419 msgid ""
19420 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19421 "\n"
19422 msgstr ""
19423
19424 #. type: textblock
19425 #: ../fish/guestfish.pod:1028
19426 msgid "Create a blank 200MB disk:"
19427 msgstr ""
19428
19429 #. type: verbatim
19430 #: ../fish/guestfish.pod:1030
19431 #, no-wrap
19432 msgid ""
19433 " guestfish -N disk:200M\n"
19434 "\n"
19435 msgstr ""
19436
19437 #. type: =head1
19438 #: ../fish/guestfish.pod:1032
19439 msgid "PROGRESS BARS"
19440 msgstr ""
19441
19442 #. type: textblock
19443 #: ../fish/guestfish.pod:1034
19444 msgid ""
19445 "Some (not all) long-running commands send progress notification messages as "
19446 "they are running.  Guestfish turns these messages into progress bars."
19447 msgstr ""
19448
19449 #. type: textblock
19450 #: ../fish/guestfish.pod:1038
19451 msgid ""
19452 "When a command that supports progress bars takes longer than two seconds to "
19453 "run, and if progress bars are enabled, then you will see one appearing below "
19454 "the command:"
19455 msgstr ""
19456
19457 #. type: verbatim
19458 #: ../fish/guestfish.pod:1042
19459 #, no-wrap
19460 msgid ""
19461 " ><fs> copy-size /large-file /another-file 2048M\n"
19462 " / 10% [#####-----------------------------------------] 00:30\n"
19463 "\n"
19464 msgstr ""
19465
19466 #. type: textblock
19467 #: ../fish/guestfish.pod:1045
19468 msgid ""
19469 "The spinner on the left hand side moves round once for every progress "
19470 "notification received from the backend.  This is a (reasonably) golden "
19471 "assurance that the command is \"doing something\" even if the progress bar "
19472 "is not moving, because the command is able to send the progress "
19473 "notifications.  When the bar reaches 100% and the command finishes, the "
19474 "spinner disappears."
19475 msgstr ""
19476
19477 #. type: textblock
19478 #: ../fish/guestfish.pod:1052
19479 msgid ""
19480 "Progress bars are enabled by default when guestfish is used interactively.  "
19481 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19482 "and you can disable them completely using I<--no-progress-bars>."
19483 msgstr ""
19484
19485 #. type: =head1
19486 #: ../fish/guestfish.pod:1057
19487 msgid "GUESTFISH COMMANDS"
19488 msgstr ""
19489
19490 #. type: textblock
19491 #: ../fish/guestfish.pod:1059
19492 msgid ""
19493 "The commands in this section are guestfish convenience commands, in other "
19494 "words, they are not part of the L<guestfs(3)> API."
19495 msgstr ""
19496
19497 #. type: =head2
19498 #: ../fish/guestfish.pod:1062
19499 msgid "help"
19500 msgstr "help"
19501
19502 #. type: verbatim
19503 #: ../fish/guestfish.pod:1064
19504 #, no-wrap
19505 msgid ""
19506 " help\n"
19507 " help cmd\n"
19508 "\n"
19509 msgstr ""
19510 " help\n"
19511 " help команда\n"
19512 "\n"
19513
19514 #. type: textblock
19515 #: ../fish/guestfish.pod:1067
19516 msgid "Without any parameter, this provides general help."
19517 msgstr "Без параметра показує загальну довідкову інформацію."
19518
19519 #. type: textblock
19520 #: ../fish/guestfish.pod:1069
19521 msgid "With a C<cmd> parameter, this displays detailed help for that command."
19522 msgstr ""
19523
19524 #. type: =head2
19525 #: ../fish/guestfish.pod:1071
19526 msgid "quit | exit"
19527 msgstr ""
19528
19529 #. type: textblock
19530 #: ../fish/guestfish.pod:1073
19531 msgid "This exits guestfish.  You can also use C<^D> key."
19532 msgstr ""
19533
19534 #. type: textblock
19535 #: ../fish/guestfish.pod:1075
19536 msgid "@FISH_COMMANDS@"
19537 msgstr ""
19538
19539 #. type: =head1
19540 #: ../fish/guestfish.pod:1077
19541 msgid "COMMANDS"
19542 msgstr "КОМАНДИ"
19543
19544 #. type: textblock
19545 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1479
19546 msgid "@ACTIONS@"
19547 msgstr "@ACTIONS@"
19548
19549 #. type: textblock
19550 #: ../fish/guestfish.pod:1083
19551 msgid ""
19552 "guestfish returns 0 if the commands completed without error, or 1 if there "
19553 "was an error."
19554 msgstr ""
19555
19556 #. type: =item
19557 #: ../fish/guestfish.pod:1090
19558 msgid "EDITOR"
19559 msgstr "РЕДАКТОР"
19560
19561 #. type: textblock
19562 #: ../fish/guestfish.pod:1092
19563 msgid ""
19564 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
19565 "C<vi>."
19566 msgstr ""
19567
19568 #. type: =item
19569 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3084
19570 msgid "FEBOOTSTRAP_KERNEL"
19571 msgstr ""
19572
19573 #. type: =item
19574 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3086
19575 msgid "FEBOOTSTRAP_MODULES"
19576 msgstr ""
19577
19578 #. type: textblock
19579 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3088
19580 msgid ""
19581 "These two environment variables allow the kernel that libguestfs uses in the "
19582 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
19583 "most recent host kernel is chosen.  For more information about kernel "
19584 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
19585 "available in febootstrap E<ge> 3.8."
19586 msgstr ""
19587
19588 #. type: =item
19589 #: ../fish/guestfish.pod:1105
19590 msgid "GUESTFISH_DISPLAY_IMAGE"
19591 msgstr ""
19592
19593 #. type: textblock
19594 #: ../fish/guestfish.pod:1107
19595 msgid ""
19596 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
19597 "If not set, it uses L<display(1)>."
19598 msgstr ""
19599
19600 #. type: =item
19601 #: ../fish/guestfish.pod:1110
19602 msgid "GUESTFISH_PID"
19603 msgstr ""
19604
19605 #. type: textblock
19606 #: ../fish/guestfish.pod:1112
19607 msgid ""
19608 "Used with the I<--remote> option to specify the remote guestfish process to "
19609 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
19610 msgstr ""
19611
19612 #. type: =item
19613 #: ../fish/guestfish.pod:1116
19614 msgid "HEXEDITOR"
19615 msgstr ""
19616
19617 #. type: textblock
19618 #: ../fish/guestfish.pod:1118
19619 msgid ""
19620 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
19621 "not specified, the external L<hexedit(1)> program is used."
19622 msgstr ""
19623
19624 #. type: =item
19625 #: ../fish/guestfish.pod:1122
19626 msgid "HOME"
19627 msgstr "ДОМІВКА"
19628
19629 #. type: textblock
19630 #: ../fish/guestfish.pod:1124
19631 msgid ""
19632 "If compiled with GNU readline support, various files in the home directory "
19633 "can be used.  See L</FILES>."
19634 msgstr ""
19635
19636 #. type: =item
19637 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3094
19638 msgid "LIBGUESTFS_APPEND"
19639 msgstr ""
19640
19641 #. type: textblock
19642 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3096
19643 msgid "Pass additional options to the guest kernel."
19644 msgstr ""
19645
19646 #. type: =item
19647 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3098
19648 msgid "LIBGUESTFS_DEBUG"
19649 msgstr "LIBGUESTFS_DEBUG"
19650
19651 #. type: textblock
19652 #: ../fish/guestfish.pod:1133
19653 msgid ""
19654 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
19655 "effect as using the B<-v> option."
19656 msgstr ""
19657
19658 #. type: =item
19659 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3103
19660 msgid "LIBGUESTFS_MEMSIZE"
19661 msgstr "LIBGUESTFS_MEMSIZE"
19662
19663 #. type: textblock
19664 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3105
19665 msgid ""
19666 "Set the memory allocated to the qemu process, in megabytes.  For example:"
19667 msgstr ""
19668
19669 #. type: verbatim
19670 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3108
19671 #, no-wrap
19672 msgid ""
19673 " LIBGUESTFS_MEMSIZE=700\n"
19674 "\n"
19675 msgstr ""
19676 " LIBGUESTFS_MEMSIZE=700\n"
19677 "\n"
19678
19679 #. type: =item
19680 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3110
19681 msgid "LIBGUESTFS_PATH"
19682 msgstr ""
19683
19684 #. type: textblock
19685 #: ../fish/guestfish.pod:1145
19686 msgid ""
19687 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
19688 "the discussion of paths in L<guestfs(3)>."
19689 msgstr ""
19690
19691 #. type: =item
19692 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3115
19693 msgid "LIBGUESTFS_QEMU"
19694 msgstr ""
19695
19696 #. type: textblock
19697 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3117
19698 msgid ""
19699 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
19700 "which was found at compile time by the configure script is used."
19701 msgstr ""
19702
19703 #. type: =item
19704 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3123
19705 msgid "LIBGUESTFS_TRACE"
19706 msgstr ""
19707
19708 #. type: textblock
19709 #: ../fish/guestfish.pod:1156
19710 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
19711 msgstr ""
19712
19713 #. type: =item
19714 #: ../fish/guestfish.pod:1158
19715 msgid "PAGER"
19716 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
19717
19718 #. type: textblock
19719 #: ../fish/guestfish.pod:1160
19720 msgid ""
19721 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
19722 "C<more>."
19723 msgstr ""
19724
19725 #. type: =item
19726 #: ../fish/guestfish.pod:1163 ../src/guestfs.pod:3128
19727 msgid "TMPDIR"
19728 msgstr ""
19729
19730 #. type: textblock
19731 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3130
19732 msgid ""
19733 "Location of temporary directory, defaults to C</tmp> except for the cached "
19734 "supermin appliance which defaults to C</var/tmp>."
19735 msgstr ""
19736
19737 #. type: textblock
19738 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3133
19739 msgid ""
19740 "If libguestfs was compiled to use the supermin appliance then the real "
19741 "appliance is cached in this directory, shared between all handles belonging "
19742 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
19743 "use in case C</var/tmp> is not large enough."
19744 msgstr ""
19745
19746 #. type: =head1
19747 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
19748 #: ../rescue/virt-rescue.pod:269
19749 msgid "FILES"
19750 msgstr "ФАЙЛИ"
19751
19752 #. type: =item
19753 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
19754 #: ../rescue/virt-rescue.pod:273
19755 msgid "$HOME/.libguestfs-tools.rc"
19756 msgstr ""
19757
19758 #. type: =item
19759 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
19760 #: ../rescue/virt-rescue.pod:275
19761 msgid "/etc/libguestfs-tools.conf"
19762 msgstr ""
19763
19764 #. type: textblock
19765 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
19766 #: ../rescue/virt-rescue.pod:277
19767 msgid ""
19768 "This configuration file controls the default read-only or read-write mode "
19769 "(I<--ro> or I<--rw>)."
19770 msgstr ""
19771
19772 #. type: textblock
19773 #: ../fish/guestfish.pod:1187
19774 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
19775 msgstr ""
19776
19777 #. type: =item
19778 #: ../fish/guestfish.pod:1189
19779 msgid "$HOME/.guestfish"
19780 msgstr ""
19781
19782 #. type: textblock
19783 #: ../fish/guestfish.pod:1191
19784 msgid ""
19785 "If compiled with GNU readline support, then the command history is saved in "
19786 "this file."
19787 msgstr ""
19788
19789 #. type: =item
19790 #: ../fish/guestfish.pod:1194
19791 msgid "$HOME/.inputrc"
19792 msgstr ""
19793
19794 #. type: =item
19795 #: ../fish/guestfish.pod:1196
19796 msgid "/etc/inputrc"
19797 msgstr ""
19798
19799 #. type: textblock
19800 #: ../fish/guestfish.pod:1198
19801 msgid ""
19802 "If compiled with GNU readline support, then these files can be used to "
19803 "configure readline.  For further information, please see L<readline(3)/"
19804 "INITIALIZATION FILE>."
19805 msgstr ""
19806
19807 #. type: textblock
19808 #: ../fish/guestfish.pod:1202
19809 msgid "To write rules which only apply to guestfish, use:"
19810 msgstr ""
19811
19812 #. type: verbatim
19813 #: ../fish/guestfish.pod:1204
19814 #, no-wrap
19815 msgid ""
19816 " $if guestfish\n"
19817 " ...\n"
19818 " $endif\n"
19819 "\n"
19820 msgstr ""
19821
19822 #. type: textblock
19823 #: ../fish/guestfish.pod:1208
19824 msgid ""
19825 "Variables that you can set in inputrc that change the behaviour of guestfish "
19826 "in useful ways include:"
19827 msgstr ""
19828
19829 #. type: =item
19830 #: ../fish/guestfish.pod:1213
19831 msgid "completion-ignore-case (default: on)"
19832 msgstr ""
19833
19834 #. type: textblock
19835 #: ../fish/guestfish.pod:1215
19836 msgid ""
19837 "By default, guestfish will ignore case when tab-completing paths on the "
19838 "disk.  Use:"
19839 msgstr ""
19840
19841 #. type: verbatim
19842 #: ../fish/guestfish.pod:1218
19843 #, no-wrap
19844 msgid ""
19845 " set completion-ignore-case off\n"
19846 "\n"
19847 msgstr ""
19848
19849 #. type: textblock
19850 #: ../fish/guestfish.pod:1220
19851 msgid "to make guestfish case sensitive."
19852 msgstr ""
19853
19854 #. type: =item
19855 #: ../fish/guestfish.pod:1224
19856 msgid "test1.img"
19857 msgstr ""
19858
19859 #. type: =item
19860 #: ../fish/guestfish.pod:1226
19861 msgid "test2.img (etc)"
19862 msgstr ""
19863
19864 #. type: textblock
19865 #: ../fish/guestfish.pod:1228
19866 msgid ""
19867 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
19868 "will be created in the file C<test1.img> in the current directory.  The "
19869 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
19870 "the same name will be overwritten."
19871 msgstr ""
19872
19873 #. type: textblock
19874 #: ../fish/guestfish.pod:1237
19875 msgid ""
19876 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-cat(1)>, L<virt-copy-in(1)"
19877 ">, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)"
19878 ">, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions"
19879 "(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-resize(1)"
19880 ">, L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)"
19881 ">, L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
19882 msgstr ""
19883
19884 #. type: textblock
19885 #: ../fish/guestfish.pod:1266 ../src/guestfs.pod:3220
19886 #: ../test-tool/libguestfs-test-tool.pod:112
19887 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
19888 msgstr ""
19889
19890 #. type: textblock
19891 #: ../fish/virt-copy-in.pod:5
19892 msgid ""
19893 "virt-copy-in - Copy files and directories into a virtual machine disk image."
19894 msgstr ""
19895
19896 #. type: verbatim
19897 #: ../fish/virt-copy-in.pod:9
19898 #, no-wrap
19899 msgid ""
19900 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
19901 "\n"
19902 msgstr ""
19903
19904 #. type: verbatim
19905 #: ../fish/virt-copy-in.pod:11
19906 #, no-wrap
19907 msgid ""
19908 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
19909 "\n"
19910 msgstr ""
19911
19912 #. type: textblock
19913 #: ../fish/virt-copy-in.pod:15
19914 msgid ""
19915 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
19916 "causing disk corruption.  The virtual machine must be shut down before you "
19917 "use this command."
19918 msgstr ""
19919
19920 #. type: textblock
19921 #: ../fish/virt-copy-in.pod:21
19922 msgid ""
19923 "C<virt-copy-in> copies files and directories from the local disk into a "
19924 "virtual machine disk image or named libvirt domain."
19925 msgstr ""
19926
19927 #. type: textblock
19928 #: ../fish/virt-copy-in.pod:24
19929 msgid ""
19930 "You can give one of more filenames and directories on the command line.  "
19931 "Directories are copied in recursively.  The final parameter must be the "
19932 "destination directory in the disk image which must be an absolute path "
19933 "starting with a C</> character."
19934 msgstr ""
19935
19936 #. type: verbatim
19937 #: ../fish/virt-copy-in.pod:33
19938 #, no-wrap
19939 msgid ""
19940 " virt-copy-in -d MyGuest resolv.conf /etc\n"
19941 "\n"
19942 msgstr ""
19943
19944 #. type: textblock
19945 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
19946 msgid "Upload a home directory to a guest:"
19947 msgstr ""
19948
19949 #. type: verbatim
19950 #: ../fish/virt-copy-in.pod:37
19951 #, no-wrap
19952 msgid ""
19953 " virt-copy-in -d MyGuest skel /home\n"
19954 "\n"
19955 msgstr ""
19956
19957 #. type: =head1
19958 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
19959 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
19960 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
19961 msgstr ""
19962
19963 #. type: textblock
19964 #: ../fish/virt-copy-in.pod:41
19965 msgid ""
19966 "This command is just a simple shell script wrapper around the L<guestfish(1)"
19967 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
19968 "are probably better off using guestfish directly."
19969 msgstr ""
19970
19971 #. type: textblock
19972 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
19973 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
19974 msgid ""
19975 "Since the shell script just passes options straight to guestfish, read "
19976 "L<guestfish(1)> to see the full list of options."
19977 msgstr ""
19978
19979 #. type: textblock
19980 #: ../fish/virt-copy-in.pod:52
19981 #, fuzzy
19982 #| msgid ""
19983 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
19984 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
19985 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
19986 #| "libguestfs.org/>."
19987 msgid ""
19988 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
19989 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
19990 msgstr ""
19991 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
19992 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
19993 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
19994 "org/>."
19995
19996 #. type: textblock
19997 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
19998 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
19999 #, fuzzy
20000 #| msgid "Copyright (C) 2009 Red Hat Inc."
20001 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20002 msgstr "© Red Hat Inc., 2009"
20003
20004 #. type: textblock
20005 #: ../fish/virt-copy-out.pod:5
20006 msgid ""
20007 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20008 "image."
20009 msgstr ""
20010
20011 #. type: verbatim
20012 #: ../fish/virt-copy-out.pod:9
20013 #, no-wrap
20014 msgid ""
20015 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20016 "\n"
20017 msgstr ""
20018
20019 #. type: verbatim
20020 #: ../fish/virt-copy-out.pod:11
20021 #, no-wrap
20022 msgid ""
20023 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20024 "\n"
20025 msgstr ""
20026
20027 #. type: textblock
20028 #: ../fish/virt-copy-out.pod:15
20029 msgid ""
20030 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20031 "image or named libvirt domain."
20032 msgstr ""
20033
20034 #. type: textblock
20035 #: ../fish/virt-copy-out.pod:18
20036 msgid ""
20037 "You can give one of more filenames and directories on the command line.  "
20038 "Directories are copied out recursively."
20039 msgstr ""
20040
20041 #. type: textblock
20042 #: ../fish/virt-copy-out.pod:23
20043 msgid "Download the home directories from a virtual machine:"
20044 msgstr ""
20045
20046 #. type: verbatim
20047 #: ../fish/virt-copy-out.pod:25
20048 #, no-wrap
20049 msgid ""
20050 " mkdir homes\n"
20051 " virt-copy-out -d MyGuest /home homes\n"
20052 "\n"
20053 msgstr ""
20054
20055 #. type: textblock
20056 #: ../fish/virt-copy-out.pod:30
20057 msgid ""
20058 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20059 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
20060 "are probably better off using guestfish directly."
20061 msgstr ""
20062
20063 #. type: textblock
20064 #: ../fish/virt-copy-out.pod:41
20065 #, fuzzy
20066 #| msgid ""
20067 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20068 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20069 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20070 #| "libguestfs.org/>."
20071 msgid ""
20072 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
20073 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20074 msgstr ""
20075 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20076 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20077 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20078 "org/>."
20079
20080 #. type: textblock
20081 #: ../fish/virt-tar-in.pod:5
20082 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20083 msgstr ""
20084
20085 #. type: verbatim
20086 #: ../fish/virt-tar-in.pod:9
20087 #, no-wrap
20088 msgid ""
20089 " virt-tar-in -a disk.img data.tar /destination\n"
20090 "\n"
20091 msgstr ""
20092
20093 #. type: verbatim
20094 #: ../fish/virt-tar-in.pod:11
20095 #, no-wrap
20096 msgid ""
20097 " virt-tar-in -d domain data.tar /destination\n"
20098 "\n"
20099 msgstr ""
20100
20101 #. type: verbatim
20102 #: ../fish/virt-tar-in.pod:13
20103 #, no-wrap
20104 msgid ""
20105 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20106 "\n"
20107 msgstr ""
20108
20109 #. type: textblock
20110 #: ../fish/virt-tar-in.pod:17
20111 msgid ""
20112 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20113 "causing disk corruption.  The virtual machine must be shut down before you "
20114 "use this command."
20115 msgstr ""
20116
20117 #. type: textblock
20118 #: ../fish/virt-tar-in.pod:23
20119 msgid ""
20120 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20121 "image or named libvirt domain."
20122 msgstr ""
20123
20124 #. type: textblock
20125 #: ../fish/virt-tar-in.pod:26
20126 msgid ""
20127 "The first parameter is the tar file.  Use C<-> to read the tar file from "
20128 "standard input.  The second parameter is the absolute target directory to "
20129 "unpack into."
20130 msgstr ""
20131
20132 #. type: verbatim
20133 #: ../fish/virt-tar-in.pod:34
20134 #, no-wrap
20135 msgid ""
20136 " virt-tar-in -d MyGuest homes.tar /home\n"
20137 "\n"
20138 msgstr ""
20139
20140 #. type: textblock
20141 #: ../fish/virt-tar-in.pod:38
20142 msgid ""
20143 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20144 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
20145 "probably better off using guestfish directly."
20146 msgstr ""
20147
20148 #. type: textblock
20149 #: ../fish/virt-tar-in.pod:49
20150 #, fuzzy
20151 #| msgid ""
20152 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20153 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20154 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20155 #| "libguestfs.org/>."
20156 msgid ""
20157 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20158 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
20159 "org/>."
20160 msgstr ""
20161 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20162 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20163 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20164 "org/>."
20165
20166 #. type: textblock
20167 #: ../fish/virt-tar-out.pod:5
20168 msgid ""
20169 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20170 msgstr ""
20171
20172 #. type: verbatim
20173 #: ../fish/virt-tar-out.pod:9
20174 #, no-wrap
20175 msgid ""
20176 " virt-tar-out -a disk.img /dir files.tar\n"
20177 "\n"
20178 msgstr ""
20179
20180 #. type: verbatim
20181 #: ../fish/virt-tar-out.pod:11
20182 #, no-wrap
20183 msgid ""
20184 " virt-tar-out -d domain /dir files.tar\n"
20185 "\n"
20186 msgstr ""
20187
20188 #. type: verbatim
20189 #: ../fish/virt-tar-out.pod:13
20190 #, no-wrap
20191 msgid ""
20192 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20193 "\n"
20194 msgstr ""
20195
20196 #. type: textblock
20197 #: ../fish/virt-tar-out.pod:17
20198 msgid ""
20199 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20200 msgstr ""
20201
20202 #. type: textblock
20203 #: ../fish/virt-tar-out.pod:20
20204 msgid ""
20205 "The first parameter is the absolute path of the virtual machine directory.  "
20206 "The second parameter is the tar file to write.  Use C<-> to write to "
20207 "standard output."
20208 msgstr ""
20209
20210 #. type: textblock
20211 #: ../fish/virt-tar-out.pod:26
20212 msgid "Download the home directories from a guest:"
20213 msgstr ""
20214
20215 #. type: verbatim
20216 #: ../fish/virt-tar-out.pod:28
20217 #, no-wrap
20218 msgid ""
20219 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20220 "\n"
20221 msgstr ""
20222
20223 #. type: textblock
20224 #: ../fish/virt-tar-out.pod:32
20225 msgid ""
20226 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20227 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
20228 "are probably better off using guestfish directly."
20229 msgstr ""
20230
20231 #. type: textblock
20232 #: ../fish/virt-tar-out.pod:43
20233 #, fuzzy
20234 #| msgid ""
20235 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20236 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20237 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20238 #| "libguestfs.org/>."
20239 msgid ""
20240 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20241 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20242 msgstr ""
20243 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20244 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20245 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20246 "org/>."
20247
20248 #. type: textblock
20249 #: ../fuse/guestmount.pod:5
20250 msgid ""
20251 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20252 msgstr ""
20253
20254 #. type: verbatim
20255 #: ../fuse/guestmount.pod:9
20256 #, no-wrap
20257 msgid ""
20258 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20259 "\n"
20260 msgstr ""
20261
20262 #. type: verbatim
20263 #: ../fuse/guestmount.pod:11
20264 #, no-wrap
20265 msgid ""
20266 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20267 "\n"
20268 msgstr ""
20269
20270 #. type: verbatim
20271 #: ../fuse/guestmount.pod:13
20272 #, no-wrap
20273 msgid ""
20274 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20275 "\n"
20276 msgstr ""
20277
20278 #. type: textblock
20279 #: ../fuse/guestmount.pod:17
20280 msgid ""
20281 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20282 "machines.  If you do this, you risk disk corruption in the VM."
20283 msgstr ""
20284
20285 #. type: textblock
20286 #: ../fuse/guestmount.pod:22
20287 msgid ""
20288 "The guestmount program can be used to mount virtual machine filesystems and "
20289 "other disk images on the host.  It uses libguestfs for access to the guest "
20290 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20291 "a mountable device."
20292 msgstr ""
20293
20294 #. type: textblock
20295 #: ../fuse/guestmount.pod:27
20296 msgid ""
20297 "Along with other options, you have to give at least one device (I<-a> "
20298 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20299 "option) or use the I<-i> inspection option.  How this works is better "
20300 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20301 "below."
20302 msgstr ""
20303
20304 #. type: textblock
20305 #: ../fuse/guestmount.pod:33
20306 msgid ""
20307 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20308 "by you, and the filesystem will not be visible to any other users unless you "
20309 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20310 "the filesystem, use the C<fusermount -u> command."
20311 msgstr ""
20312
20313 #. type: textblock
20314 #: ../fuse/guestmount.pod:41
20315 msgid ""
20316 "For a typical Windows guest which has its main filesystem on the first "
20317 "partition:"
20318 msgstr ""
20319
20320 #. type: verbatim
20321 #: ../fuse/guestmount.pod:44
20322 #, no-wrap
20323 msgid ""
20324 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20325 "\n"
20326 msgstr ""
20327
20328 #. type: textblock
20329 #: ../fuse/guestmount.pod:46
20330 msgid ""
20331 "For a typical Linux guest which has a /boot filesystem on the first "
20332 "partition, and the root filesystem on a logical volume:"
20333 msgstr ""
20334
20335 #. type: verbatim
20336 #: ../fuse/guestmount.pod:49
20337 #, no-wrap
20338 msgid ""
20339 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20340 "\n"
20341 msgstr ""
20342
20343 #. type: textblock
20344 #: ../fuse/guestmount.pod:51
20345 msgid "To get libguestfs to detect guest mountpoints for you:"
20346 msgstr ""
20347
20348 #. type: verbatim
20349 #: ../fuse/guestmount.pod:53
20350 #, no-wrap
20351 msgid ""
20352 " guestmount -a guest.img -i --ro /mnt\n"
20353 "\n"
20354 msgstr ""
20355
20356 #. type: textblock
20357 #: ../fuse/guestmount.pod:55
20358 msgid "For a libvirt guest called \"Guest\" you could do:"
20359 msgstr ""
20360
20361 #. type: verbatim
20362 #: ../fuse/guestmount.pod:57
20363 #, no-wrap
20364 msgid ""
20365 " guestmount -d Guest -i --ro /mnt\n"
20366 "\n"
20367 msgstr ""
20368
20369 #. type: textblock
20370 #: ../fuse/guestmount.pod:59
20371 msgid ""
20372 "If you don't know what filesystems are contained in a guest or disk image, "
20373 "use L<virt-filesystems(1)> first:"
20374 msgstr ""
20375
20376 #. type: verbatim
20377 #: ../fuse/guestmount.pod:62
20378 #, no-wrap
20379 msgid ""
20380 " virt-filesystems MyGuest\n"
20381 "\n"
20382 msgstr ""
20383
20384 #. type: textblock
20385 #: ../fuse/guestmount.pod:64
20386 msgid ""
20387 "If you want to trace the libguestfs calls but without excessive debugging "
20388 "information, we recommend:"
20389 msgstr ""
20390
20391 #. type: verbatim
20392 #: ../fuse/guestmount.pod:67
20393 #, no-wrap
20394 msgid ""
20395 " guestmount [...] --trace /mnt\n"
20396 "\n"
20397 msgstr ""
20398
20399 #. type: textblock
20400 #: ../fuse/guestmount.pod:69
20401 msgid "If you want to debug the program, we recommend:"
20402 msgstr ""
20403
20404 #. type: verbatim
20405 #: ../fuse/guestmount.pod:71
20406 #, no-wrap
20407 msgid ""
20408 " guestmount [...] --trace --verbose /mnt\n"
20409 "\n"
20410 msgstr ""
20411
20412 #. type: =head1
20413 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20414 #: ../resize/virt-resize.pod:544
20415 msgid "NOTES"
20416 msgstr "ПРИМІТКИ"
20417
20418 #. type: =head2
20419 #: ../fuse/guestmount.pod:75
20420 msgid "Other users cannot see the filesystem by default"
20421 msgstr ""
20422
20423 #. type: textblock
20424 #: ../fuse/guestmount.pod:77
20425 msgid ""
20426 "If you mount a filesystem as one user (eg. root), then other users will not "
20427 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20428 "option when mounting:"
20429 msgstr ""
20430
20431 #. type: verbatim
20432 #: ../fuse/guestmount.pod:81
20433 #, no-wrap
20434 msgid ""
20435 " sudo guestmount [...] -o allow_other /mnt\n"
20436 "\n"
20437 msgstr ""
20438
20439 #. type: textblock
20440 #: ../fuse/guestmount.pod:91
20441 msgid "Add a block device or virtual machine image."
20442 msgstr ""
20443
20444 #. type: =item
20445 #: ../fuse/guestmount.pod:114
20446 msgid "B<--dir-cache-timeout N>"
20447 msgstr "B<--dir-cache-timeout N>"
20448
20449 #. type: textblock
20450 #: ../fuse/guestmount.pod:116
20451 msgid ""
20452 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20453 "seconds.  The readdir cache [actually, there are several semi-independent "
20454 "caches] is populated after a readdir(2) call with the stat and extended "
20455 "attributes of the files in the directory, in anticipation that they will be "
20456 "requested soon after."
20457 msgstr ""
20458
20459 #. type: textblock
20460 #: ../fuse/guestmount.pod:122
20461 msgid ""
20462 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20463 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20464 "requests, only cache existing ones."
20465 msgstr ""
20466
20467 #. type: textblock
20468 #: ../fuse/guestmount.pod:142
20469 msgid ""
20470 "If you have untrusted raw-format guest disk images, you should use this "
20471 "option to specify the disk format.  This avoids a possible security problem "
20472 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
20473 "guestfs_add_drive_opts>."
20474 msgstr ""
20475
20476 #. type: =item
20477 #: ../fuse/guestmount.pod:147
20478 msgid "B<--fuse-help>"
20479 msgstr "B<--fuse-help>"
20480
20481 #. type: textblock
20482 #: ../fuse/guestmount.pod:149
20483 msgid "Display help on special FUSE options (see I<-o> below)."
20484 msgstr ""
20485
20486 #. type: textblock
20487 #: ../fuse/guestmount.pod:153
20488 msgid "Display brief help and exit."
20489 msgstr ""
20490
20491 #. type: textblock
20492 #: ../fuse/guestmount.pod:177
20493 msgid ""
20494 "Mount the named partition or logical volume on the given mountpoint B<in the "
20495 "guest> (this has nothing to do with mountpoints in the host)."
20496 msgstr ""
20497
20498 #. type: textblock
20499 #: ../fuse/guestmount.pod:180
20500 msgid ""
20501 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
20502 "something on C</>."
20503 msgstr ""
20504
20505 #. type: textblock
20506 #: ../fuse/guestmount.pod:197
20507 msgid ""
20508 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
20509 "unmounted.  If you specify this option, then we don't attempt to sync the "
20510 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
20511 msgstr ""
20512
20513 #. type: =item
20514 #: ../fuse/guestmount.pod:202
20515 #, fuzzy
20516 #| msgid "B<--partition>"
20517 msgid "B<-o option>"
20518 msgstr "B<--partition>"
20519
20520 #. type: =item
20521 #: ../fuse/guestmount.pod:204
20522 #, fuzzy
20523 #| msgid "B<--partition>"
20524 msgid "B<--option option>"
20525 msgstr "B<--partition>"
20526
20527 #. type: textblock
20528 #: ../fuse/guestmount.pod:206
20529 msgid "Pass extra options to FUSE."
20530 msgstr ""
20531
20532 #. type: textblock
20533 #: ../fuse/guestmount.pod:208
20534 msgid ""
20535 "To get a list of all the extra options supported by FUSE, use the command "
20536 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
20537 "of them are a good idea."
20538 msgstr ""
20539
20540 #. type: verbatim
20541 #: ../fuse/guestmount.pod:212
20542 #, no-wrap
20543 msgid ""
20544 " guestmount --fuse-help\n"
20545 "\n"
20546 msgstr ""
20547
20548 #. type: textblock
20549 #: ../fuse/guestmount.pod:214
20550 msgid "Some potentially useful FUSE options:"
20551 msgstr ""
20552
20553 #. type: =item
20554 #: ../fuse/guestmount.pod:218
20555 msgid "B<-o allow_other>"
20556 msgstr ""
20557
20558 #. type: textblock
20559 #: ../fuse/guestmount.pod:220
20560 msgid "Allow other users to see the filesystem."
20561 msgstr ""
20562
20563 #. type: =item
20564 #: ../fuse/guestmount.pod:222
20565 msgid "B<-o attr_timeout=N>"
20566 msgstr "B<-o attr_timeout=N>"
20567
20568 #. type: textblock
20569 #: ../fuse/guestmount.pod:224
20570 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
20571 msgstr ""
20572
20573 #. type: =item
20574 #: ../fuse/guestmount.pod:226
20575 msgid "B<-o kernel_cache>"
20576 msgstr ""
20577
20578 #. type: textblock
20579 #: ../fuse/guestmount.pod:228
20580 msgid ""
20581 "Allow the kernel to cache files (reduces the number of reads that have to go "
20582 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
20583 "afford the extra memory usage."
20584 msgstr ""
20585
20586 #. type: =item
20587 #: ../fuse/guestmount.pod:232
20588 msgid "B<-o uid=N> B<-o gid=N>"
20589 msgstr ""
20590
20591 #. type: textblock
20592 #: ../fuse/guestmount.pod:234
20593 msgid ""
20594 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
20595 "the chosen values."
20596 msgstr ""
20597
20598 #. type: textblock
20599 #: ../fuse/guestmount.pod:243
20600 msgid ""
20601 "Add devices and mount everything read-only.  Also disallow writes and make "
20602 "the disk appear read-only to FUSE."
20603 msgstr ""
20604
20605 #. type: textblock
20606 #: ../fuse/guestmount.pod:246
20607 msgid ""
20608 "This is highly recommended if you are not going to edit the guest disk.  If "
20609 "the guest is running and this option is I<not> supplied, then there is a "
20610 "strong risk of disk corruption in the guest.  We try to prevent this from "
20611 "happening, but it is not always possible."
20612 msgstr ""
20613
20614 #. type: textblock
20615 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
20616 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20617 msgstr ""
20618
20619 #. type: textblock
20620 #: ../fuse/guestmount.pod:255
20621 msgid "Enable SELinux support for the guest."
20622 msgstr ""
20623
20624 #. type: textblock
20625 #: ../fuse/guestmount.pod:261
20626 msgid "Enable verbose messages from underlying libguestfs."
20627 msgstr ""
20628
20629 #. type: textblock
20630 #: ../fuse/guestmount.pod:267
20631 msgid "Display the program version and exit."
20632 msgstr ""
20633
20634 #. type: textblock
20635 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
20636 #: ../rescue/virt-rescue.pod:197 ../rescue/virt-rescue.pod:280
20637 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
20638 msgstr ""
20639
20640 #. type: =item
20641 #: ../fuse/guestmount.pod:280
20642 #, fuzzy
20643 #| msgid "B<--ro>"
20644 msgid "B<--trace>"
20645 msgstr "B<--ro>"
20646
20647 #. type: textblock
20648 #: ../fuse/guestmount.pod:282
20649 msgid "Trace libguestfs calls and entry into each FUSE function."
20650 msgstr ""
20651
20652 #. type: textblock
20653 #: ../fuse/guestmount.pod:284
20654 msgid "This also stops the daemon from forking into the background."
20655 msgstr ""
20656
20657 #. type: textblock
20658 #: ../fuse/guestmount.pod:310
20659 msgid ""
20660 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
20661 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
20662 "net/>."
20663 msgstr ""
20664
20665 #. type: textblock
20666 #: ../fuse/guestmount.pod:325
20667 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
20668 msgstr ""
20669
20670 #. type: textblock
20671 #: ../inspector/virt-inspector.pod:5
20672 msgid ""
20673 "virt-inspector - Display operating system version and other information "
20674 "about a virtual machine"
20675 msgstr ""
20676
20677 #. type: verbatim
20678 #: ../inspector/virt-inspector.pod:9
20679 #, fuzzy, no-wrap
20680 #| msgid ""
20681 #| " virt-list-partitions [--options] domname\n"
20682 #| "\n"
20683 msgid ""
20684 " virt-inspector [--options] -d domname\n"
20685 "\n"
20686 msgstr ""
20687 " virt-list-partitions [--параметри] назва_домену\n"
20688 "\n"
20689
20690 #. type: verbatim
20691 #: ../inspector/virt-inspector.pod:11
20692 #, fuzzy, no-wrap
20693 #| msgid ""
20694 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20695 #| "\n"
20696 msgid ""
20697 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
20698 "\n"
20699 msgstr ""
20700 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20701 "\n"
20702
20703 #. type: verbatim
20704 #: ../inspector/virt-inspector.pod:15
20705 #, fuzzy, no-wrap
20706 #| msgid ""
20707 #| " virt-list-partitions [--options] domname\n"
20708 #| "\n"
20709 msgid ""
20710 " virt-inspector domname\n"
20711 "\n"
20712 msgstr ""
20713 " virt-list-partitions [--параметри] назва_домену\n"
20714 "\n"
20715
20716 #. type: verbatim
20717 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
20718 #, fuzzy, no-wrap
20719 #| msgid ""
20720 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
20721 #| "\n"
20722 msgid ""
20723 " virt-inspector disk.img [disk.img ...]\n"
20724 "\n"
20725 msgstr ""
20726 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
20727 "\n"
20728
20729 #. type: textblock
20730 #: ../inspector/virt-inspector.pod:21
20731 msgid ""
20732 "B<virt-inspector> examines a virtual machine or disk image and tries to "
20733 "determine the version of the operating system and other information about "
20734 "the virtual machine."
20735 msgstr ""
20736
20737 #. type: textblock
20738 #: ../inspector/virt-inspector.pod:25
20739 msgid "Virt-inspector produces XML output for feeding into other programs."
20740 msgstr ""
20741
20742 #. type: textblock
20743 #: ../inspector/virt-inspector.pod:27
20744 msgid ""
20745 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
20746 "the libvirt domain (see: C<virsh list --all>)."
20747 msgstr ""
20748
20749 #. type: textblock
20750 #: ../inspector/virt-inspector.pod:30
20751 msgid ""
20752 "You can also run virt-inspector directly on disk images from a single "
20753 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
20754 "has several block devices, in which case you should list several I<-a> "
20755 "options one after another, with the first corresponding to the guest's C</"
20756 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
20757 msgstr ""
20758
20759 #. type: textblock
20760 #: ../inspector/virt-inspector.pod:37
20761 msgid ""
20762 "You can also run virt-inspector on install disks, live CDs, bootable USB "
20763 "keys and similar."
20764 msgstr ""
20765
20766 #. type: textblock
20767 #: ../inspector/virt-inspector.pod:40
20768 msgid ""
20769 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
20770 "inspect several virtual machines, you have to run virt-inspector several "
20771 "times (for example, from a shell script for-loop)."
20772 msgstr ""
20773
20774 #. type: textblock
20775 #: ../inspector/virt-inspector.pod:45
20776 msgid ""
20777 "Because virt-inspector needs direct access to guest images, it won't "
20778 "normally work over remote libvirt connections."
20779 msgstr ""
20780
20781 #. type: textblock
20782 #: ../inspector/virt-inspector.pod:48
20783 msgid ""
20784 "All of the information available from virt-inspector is also available "
20785 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
20786 "The same information can also be fetched using guestfish or via libguestfs "
20787 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
20788 "WITH OTHER PROGRAMMING LANGUAGES>)."
20789 msgstr ""
20790
20791 #. type: textblock
20792 #: ../inspector/virt-inspector.pod:81
20793 msgid ""
20794 "Libvirt is only used if you specify a C<domname> on the command line.  If "
20795 "you specify guest block devices directly (I<-a>), then libvirt is not used "
20796 "at all."
20797 msgstr ""
20798
20799 #. type: textblock
20800 #: ../inspector/virt-inspector.pod:94
20801 msgid ""
20802 "When prompting for keys and passphrases, virt-inspector normally turns "
20803 "echoing off so you cannot see what you are typing.  If you are not worried "
20804 "about Tempest attacks and there is no one else in the room you can specify "
20805 "this flag to see what you are typing."
20806 msgstr ""
20807
20808 #. type: textblock
20809 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
20810 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
20811 #: ../tools/virt-win-reg.pl:144
20812 msgid ""
20813 "Specify the format of disk images given on the command line.  If this is "
20814 "omitted then the format is autodetected from the content of the disk image."
20815 msgstr ""
20816
20817 #. type: textblock
20818 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
20819 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
20820 #: ../tools/virt-win-reg.pl:148
20821 msgid ""
20822 "If disk images are requested from libvirt, then this program asks libvirt "
20823 "for this information.  In this case, the value of the format parameter is "
20824 "ignored."
20825 msgstr ""
20826
20827 #. type: textblock
20828 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
20829 #: ../resize/virt-resize.pod:406 ../tools/virt-list-filesystems.pl:101
20830 #: ../tools/virt-list-partitions.pl:102 ../tools/virt-tar.pl:151
20831 #: ../tools/virt-win-reg.pl:152
20832 msgid ""
20833 "If working with untrusted raw-format guest disk images, you should ensure "
20834 "the format is always specified."
20835 msgstr ""
20836
20837 #. type: textblock
20838 #: ../inspector/virt-inspector.pod:139
20839 msgid "Previous versions of virt-inspector allowed you to write either:"
20840 msgstr ""
20841
20842 #. type: verbatim
20843 #: ../inspector/virt-inspector.pod:145
20844 #, fuzzy, no-wrap
20845 #| msgid ""
20846 #| " inspect-get-hostname root\n"
20847 #| "\n"
20848 msgid ""
20849 " virt-inspector guestname\n"
20850 "\n"
20851 msgstr ""
20852 " inspect-get-hostname корінь\n"
20853 "\n"
20854
20855 #. type: =head1
20856 #: ../inspector/virt-inspector.pod:153
20857 msgid "XML FORMAT"
20858 msgstr ""
20859
20860 #. type: textblock
20861 #: ../inspector/virt-inspector.pod:155
20862 msgid ""
20863 "The virt-inspector XML is described precisely in a RELAX NG schema file "
20864 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
20865 "just an overview."
20866 msgstr ""
20867
20868 #. type: textblock
20869 #: ../inspector/virt-inspector.pod:159
20870 msgid ""
20871 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
20872 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
20873 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
20874 "which is vanishingly rare in real world VMs."
20875 msgstr ""
20876
20877 #. type: =head2
20878 #: ../inspector/virt-inspector.pod:164
20879 msgid "E<lt>operatingsystemE<gt>"
20880 msgstr ""
20881
20882 #. type: textblock
20883 #: ../inspector/virt-inspector.pod:166
20884 msgid ""
20885 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
20886 "describe the operating system, its architecture, the descriptive \"product "
20887 "name\" string, the type of OS and so on, as in this example:"
20888 msgstr ""
20889
20890 #. type: verbatim
20891 #: ../inspector/virt-inspector.pod:170
20892 #, no-wrap
20893 msgid ""
20894 " <operatingsystems>\n"
20895 "   <operatingsystem>\n"
20896 "     <root>/dev/sda2</root>\n"
20897 "     <name>windows</name>\n"
20898 "     <arch>i386</arch>\n"
20899 "     <distro>windows</distro>\n"
20900 "     <product_name>Windows 7 Enterprise</product_name>\n"
20901 "     <product_variant>Client</product_variant>\n"
20902 "     <major_version>6</major_version>\n"
20903 "     <minor_version>1</minor_version>\n"
20904 "     <windows_systemroot>/Windows</windows_systemroot>\n"
20905 "     <format>installed</format>\n"
20906 "\n"
20907 msgstr ""
20908
20909 #. type: textblock
20910 #: ../inspector/virt-inspector.pod:183
20911 msgid ""
20912 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
20913 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
20914 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
20915 "architecture.  The other fields are fairly self-explanatory, but because "
20916 "these fields are taken directly from the libguestfs inspection API you can "
20917 "find precise information from L<guestfs(3)/INSPECTION>."
20918 msgstr ""
20919
20920 #. type: textblock
20921 #: ../inspector/virt-inspector.pod:191
20922 msgid ""
20923 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
20924 "of view of libguestfs (block devices may have completely different names "
20925 "inside the VM itself)."
20926 msgstr ""
20927
20928 #. type: =head2
20929 #: ../inspector/virt-inspector.pod:195
20930 #, fuzzy
20931 #| msgid "mountpoints"
20932 msgid "E<lt>mountpointsE<gt>"
20933 msgstr "mountpoints"
20934
20935 #. type: textblock
20936 #: ../inspector/virt-inspector.pod:197
20937 msgid ""
20938 "Un*x-like guests typically have multiple filesystems which are mounted at "
20939 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
20940 "element which looks like this:"
20941 msgstr ""
20942
20943 #. type: verbatim
20944 #: ../inspector/virt-inspector.pod:201
20945 #, no-wrap
20946 msgid ""
20947 " <operatingsystems>\n"
20948 "   <operatingsystem>\n"
20949 "     ...\n"
20950 "     <mountpoints>\n"
20951 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
20952 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
20953 "     </mountpoints>\n"
20954 "\n"
20955 msgstr ""
20956
20957 #. type: textblock
20958 #: ../inspector/virt-inspector.pod:209
20959 msgid ""
20960 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
20961 "and may have completely different names inside the guest.  Only mountable "
20962 "filesystems appear in this list, not things like swap devices."
20963 msgstr ""
20964
20965 #. type: =head2
20966 #: ../inspector/virt-inspector.pod:214
20967 #, fuzzy
20968 #| msgid "list-filesystems"
20969 msgid "E<lt>filesystemsE<gt>"
20970 msgstr "list-filesystems"
20971
20972 #. type: textblock
20973 #: ../inspector/virt-inspector.pod:216
20974 msgid ""
20975 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
20976 "filesystems belonging to the guest, including swap and empty partitions.  "
20977 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
20978 "this OS or shared with this OS and other OSes)."
20979 msgstr ""
20980
20981 #. type: textblock
20982 #: ../inspector/virt-inspector.pod:222
20983 msgid "You might see something like this:"
20984 msgstr ""
20985
20986 #. type: verbatim
20987 #: ../inspector/virt-inspector.pod:224
20988 #, no-wrap
20989 msgid ""
20990 " <operatingsystems>\n"
20991 "   <operatingsystem>\n"
20992 "     ...\n"
20993 "     <filesystems>\n"
20994 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
20995 "         <type>ext4</type>\n"
20996 "         <label>Fedora-13-x86_64</label>\n"
20997 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
20998 "       </filesystem>\n"
20999 "\n"
21000 msgstr ""
21001
21002 #. type: textblock
21003 #: ../inspector/virt-inspector.pod:234
21004 msgid ""
21005 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21006 "the label, and the UUID."
21007 msgstr ""
21008
21009 #. type: =head2
21010 #: ../inspector/virt-inspector.pod:237
21011 msgid "E<lt>applicationsE<gt>"
21012 msgstr ""
21013
21014 #. type: textblock
21015 #: ../inspector/virt-inspector.pod:239
21016 msgid ""
21017 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21018 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21019 "machine."
21020 msgstr ""
21021
21022 #. type: textblock
21023 #: ../inspector/virt-inspector.pod:243
21024 msgid ""
21025 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21026 "Typical values would be C<rpm> and C<deb>."
21027 msgstr ""
21028
21029 #. type: textblock
21030 #: ../inspector/virt-inspector.pod:246
21031 msgid ""
21032 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21033 "Typical values include C<yum>, C<up2date> and C<apt>"
21034 msgstr ""
21035
21036 #. type: textblock
21037 #: ../inspector/virt-inspector.pod:249
21038 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21039 msgstr ""
21040
21041 #. type: verbatim
21042 #: ../inspector/virt-inspector.pod:252
21043 #, no-wrap
21044 msgid ""
21045 " <operatingsystems>\n"
21046 "   <operatingsystem>\n"
21047 "     ...\n"
21048 "     <applications>\n"
21049 "       <application>\n"
21050 "         <name>coreutils</name>\n"
21051 "         <version>8.5</version>\n"
21052 "         <release>1</release>\n"
21053 "       </application>\n"
21054 "\n"
21055 msgstr ""
21056
21057 #. type: textblock
21058 #: ../inspector/virt-inspector.pod:262
21059 msgid ""
21060 "The version and release fields may not be available for some types guests.  "
21061 "Other fields are possible, see L<guestfs(3)/"
21062 "guestfs_inspect_list_applications>."
21063 msgstr ""
21064
21065 #. type: =head2
21066 #: ../inspector/virt-inspector.pod:266
21067 msgid "E<lt>drive_mappingsE<gt>"
21068 msgstr ""
21069
21070 #. type: textblock
21071 #: ../inspector/virt-inspector.pod:268
21072 msgid ""
21073 "For operating systems like Windows which use drive letters, virt-inspector "
21074 "is able to find out how drive letters map to filesystems."
21075 msgstr ""
21076
21077 #. type: verbatim
21078 #: ../inspector/virt-inspector.pod:272
21079 #, no-wrap
21080 msgid ""
21081 " <operatingsystems>\n"
21082 "   <operatingsystem>\n"
21083 "     ...\n"
21084 "     <drive_mappings>\n"
21085 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21086 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21087 "     </drive_mappings>\n"
21088 "\n"
21089 msgstr ""
21090
21091 #. type: textblock
21092 #: ../inspector/virt-inspector.pod:280
21093 msgid ""
21094 "In the example above, drive C maps to the filesystem on the second partition "
21095 "on the first disk, and drive E maps to the filesystem on the first partition "
21096 "on the second disk."
21097 msgstr ""
21098
21099 #. type: textblock
21100 #: ../inspector/virt-inspector.pod:284
21101 msgid ""
21102 "Note that this only covers permanent local filesystem mappings, not things "
21103 "like network shares.  Furthermore NTFS volume mount points may not be listed "
21104 "here."
21105 msgstr ""
21106
21107 #. type: =head2
21108 #: ../inspector/virt-inspector.pod:288
21109 #, fuzzy
21110 #| msgid "B<-s E<lt>NE<gt>>"
21111 msgid "E<lt>iconE<gt>"
21112 msgstr "B<-s E<lt>NE<gt>>"
21113
21114 #. type: textblock
21115 #: ../inspector/virt-inspector.pod:290
21116 msgid ""
21117 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
21118 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
21119 "very large and high quality."
21120 msgstr ""
21121
21122 #. type: verbatim
21123 #: ../inspector/virt-inspector.pod:294
21124 #, no-wrap
21125 msgid ""
21126 " <operatingsystems>\n"
21127 "   <operatingsystem>\n"
21128 "     ...\n"
21129 "     <icon>\n"
21130 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21131 "       [... many lines of base64 data ...]\n"
21132 "     </icon>\n"
21133 "\n"
21134 msgstr ""
21135
21136 #. type: textblock
21137 #: ../inspector/virt-inspector.pod:302
21138 msgid ""
21139 "To display the icon, you have to extract it and convert the base64 data back "
21140 "to a binary file.  Use an XPath query or simply an editor to extract the "
21141 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21142 "to a PNG file:"
21143 msgstr ""
21144
21145 #. type: verbatim
21146 #: ../inspector/virt-inspector.pod:307
21147 #, no-wrap
21148 msgid ""
21149 " base64 -i -d < icon.data > icon.png\n"
21150 "\n"
21151 msgstr ""
21152
21153 #. type: =head2
21154 #: ../inspector/virt-inspector.pod:309
21155 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21156 msgstr ""
21157
21158 #. type: textblock
21159 #: ../inspector/virt-inspector.pod:311
21160 msgid ""
21161 "Virt-inspector can detect some operating system installers on install disks, "
21162 "live CDs, bootable USB keys and more."
21163 msgstr ""
21164
21165 #. type: textblock
21166 #: ../inspector/virt-inspector.pod:314
21167 msgid ""
21168 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21169 "fields may be present to indicate a live CD, network installer, or one part "
21170 "of a multipart CD.  For example:"
21171 msgstr ""
21172
21173 #. type: verbatim
21174 #: ../inspector/virt-inspector.pod:318
21175 #, no-wrap
21176 msgid ""
21177 " <operatingsystems>\n"
21178 "   <operatingsystem>\n"
21179 "     <root>/dev/sda</root>\n"
21180 "     <name>linux</name>\n"
21181 "     <arch>i386</arch>\n"
21182 "     <distro>ubuntu</distro>\n"
21183 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
21184 "     <major_version>10</major_version>\n"
21185 "     <minor_version>10</minor_version>\n"
21186 "     <format>installer</format>\n"
21187 "     <live/>\n"
21188 "\n"
21189 msgstr ""
21190
21191 #. type: =head1
21192 #: ../inspector/virt-inspector.pod:330
21193 msgid "USING XPATH"
21194 msgstr ""
21195
21196 #. type: textblock
21197 #: ../inspector/virt-inspector.pod:332
21198 msgid ""
21199 "You can use the XPath query language to select parts of the XML.  We "
21200 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
21201 msgstr ""
21202
21203 #. type: verbatim
21204 #: ../inspector/virt-inspector.pod:338
21205 #, no-wrap
21206 msgid ""
21207 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21208 " <filesystems>\n"
21209 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21210 "        <type>ext4</type>\n"
21211 " [...]\n"
21212 "\n"
21213 msgstr ""
21214
21215 #. type: verbatim
21216 #: ../inspector/virt-inspector.pod:344
21217 #, no-wrap
21218 msgid ""
21219 " $ virt-inspector -d Guest | \\\n"
21220 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21221 " ext4\n"
21222 "\n"
21223 msgstr ""
21224
21225 #. type: verbatim
21226 #: ../inspector/virt-inspector.pod:348
21227 #, no-wrap
21228 msgid ""
21229 " $ virt-inspector -d Guest | \\\n"
21230 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21231 " [displays the guest icon, if there is one]\n"
21232 "\n"
21233 msgstr ""
21234
21235 #. type: =head1
21236 #: ../inspector/virt-inspector.pod:359
21237 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21238 msgstr ""
21239
21240 #. type: textblock
21241 #: ../inspector/virt-inspector.pod:361
21242 msgid ""
21243 "Early versions of libguestfs shipped with a different virt-inspector program "
21244 "written in Perl (the current version is written in C).  The XML output of "
21245 "the Perl virt-inspector was different and it could also output in other "
21246 "formats like text."
21247 msgstr ""
21248
21249 #. type: textblock
21250 #: ../inspector/virt-inspector.pod:366
21251 msgid ""
21252 "The old virt-inspector is no longer supported or shipped with libguestfs."
21253 msgstr ""
21254
21255 #. type: textblock
21256 #: ../inspector/virt-inspector.pod:369
21257 msgid ""
21258 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21259 "versions of virt-inspector with different names:"
21260 msgstr ""
21261
21262 #. type: verbatim
21263 #: ../inspector/virt-inspector.pod:372
21264 #, no-wrap
21265 msgid ""
21266 " virt-inspector     Old Perl version.\n"
21267 " virt-inspector2    New C version.\n"
21268 "\n"
21269 msgstr ""
21270
21271 #. type: textblock
21272 #: ../inspector/virt-inspector.pod:382
21273 #, fuzzy
21274 #| msgid ""
21275 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21276 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21277 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21278 msgid ""
21279 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
21280 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21281 msgstr ""
21282 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21283 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21284 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21285
21286 #. type: textblock
21287 #: ../inspector/virt-inspector.pod:399
21288 msgid "Matthew Booth L<mbooth@redhat.com>"
21289 msgstr ""
21290
21291 #. type: textblock
21292 #: ../java/examples/guestfs-java.pod:5
21293 msgid "guestfs-java - How to use libguestfs from Java"
21294 msgstr ""
21295
21296 #. type: verbatim
21297 #: ../java/examples/guestfs-java.pod:9
21298 #, no-wrap
21299 msgid ""
21300 " import com.redhat.et.libguestfs.*;\n"
21301 " \n"
21302 msgstr ""
21303
21304 #. type: verbatim
21305 #: ../java/examples/guestfs-java.pod:11
21306 #, no-wrap
21307 msgid ""
21308 " GuestFS g = new GuestFS ();\n"
21309 " g.add_drive_opts (\"disk.img\", null);\n"
21310 " g.launch ();\n"
21311 "\n"
21312 msgstr ""
21313
21314 #. type: textblock
21315 #: ../java/examples/guestfs-java.pod:17
21316 msgid ""
21317 "This manual page documents how to call libguestfs from the Java programming "
21318 "language.  This page just documents the differences from the C API and gives "
21319 "some examples.  If you are not familiar with using libguestfs, you also need "
21320 "to read L<guestfs(3)>."
21321 msgstr ""
21322
21323 #. type: =head2
21324 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21325 msgid "CLOSING THE HANDLE"
21326 msgstr ""
21327
21328 #. type: textblock
21329 #: ../java/examples/guestfs-java.pod:24
21330 msgid ""
21331 "The handle is closed when it is reaped by the garbage collector.  Because "
21332 "libguestfs handles include a lot of state, it is also possible to close (and "
21333 "hence free) them explicitly by calling the C<close> method."
21334 msgstr ""
21335
21336 #. type: =head2
21337 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21338 #: ../python/examples/guestfs-python.pod:21
21339 #: ../ruby/examples/guestfs-ruby.pod:22
21340 #, fuzzy
21341 #| msgid "OPTIONS"
21342 msgid "EXCEPTIONS"
21343 msgstr "ПАРАМЕТРИ"
21344
21345 #. type: textblock
21346 #: ../java/examples/guestfs-java.pod:31
21347 msgid ""
21348 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21349 "exception.  This has a single parameter which is the error message (a "
21350 "C<String>)."
21351 msgstr ""
21352
21353 #. type: textblock
21354 #: ../java/examples/guestfs-java.pod:35
21355 msgid "Calling any method on a closed handle raises the same exception."
21356 msgstr ""
21357
21358 #. type: textblock
21359 #: ../java/examples/guestfs-java.pod:47
21360 #, fuzzy
21361 #| msgid ""
21362 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21363 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21364 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21365 msgid ""
21366 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
21367 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21368 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21369 msgstr ""
21370 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21371 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21372 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21373
21374 #. type: textblock
21375 #: ../ocaml/examples/guestfs-ocaml.pod:5
21376 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21377 msgstr ""
21378
21379 #. type: textblock
21380 #: ../ocaml/examples/guestfs-ocaml.pod:9
21381 msgid "Module style:"
21382 msgstr ""
21383
21384 #. type: verbatim
21385 #: ../ocaml/examples/guestfs-ocaml.pod:11
21386 #, no-wrap
21387 msgid ""
21388 " let g = Guestfs.create () in\n"
21389 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21390 " Guestfs.launch g;\n"
21391 "\n"
21392 msgstr ""
21393
21394 #. type: textblock
21395 #: ../ocaml/examples/guestfs-ocaml.pod:15
21396 msgid "Object-oriented style:"
21397 msgstr ""
21398
21399 #. type: verbatim
21400 #: ../ocaml/examples/guestfs-ocaml.pod:17
21401 #, no-wrap
21402 msgid ""
21403 " let g = new Guestfs.guestfs () in\n"
21404 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21405 " g#launch ();\n"
21406 "\n"
21407 msgstr ""
21408
21409 #. type: verbatim
21410 #: ../ocaml/examples/guestfs-ocaml.pod:21
21411 #, no-wrap
21412 msgid ""
21413 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21414 "or:\n"
21415 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21416 "\n"
21417 msgstr ""
21418
21419 #. type: textblock
21420 #: ../ocaml/examples/guestfs-ocaml.pod:27
21421 msgid ""
21422 "This manual page documents how to call libguestfs from the OCaml programming "
21423 "language.  This page just documents the differences from the C API and gives "
21424 "some examples.  If you are not familiar with using libguestfs, you also need "
21425 "to read L<guestfs(3)>."
21426 msgstr ""
21427
21428 #. type: =head2
21429 #: ../ocaml/examples/guestfs-ocaml.pod:32
21430 msgid "PROGRAMMING STYLES"
21431 msgstr ""
21432
21433 #. type: textblock
21434 #: ../ocaml/examples/guestfs-ocaml.pod:34
21435 msgid ""
21436 "There are two different programming styles supported by the OCaml bindings.  "
21437 "You can use a module style, with each C function mapped to an OCaml function:"
21438 msgstr ""
21439
21440 #. type: verbatim
21441 #: ../ocaml/examples/guestfs-ocaml.pod:38
21442 #, fuzzy, no-wrap
21443 #| msgid ""
21444 #| " int guestfs_last_errno (guestfs_h *g);\n"
21445 #| "\n"
21446 msgid ""
21447 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21448 "\n"
21449 msgstr ""
21450 " int guestfs_last_errno (guestfs_h *g);\n"
21451 "\n"
21452
21453 #. type: textblock
21454 #: ../ocaml/examples/guestfs-ocaml.pod:40
21455 msgid "becomes:"
21456 msgstr ""
21457
21458 #. type: verbatim
21459 #: ../ocaml/examples/guestfs-ocaml.pod:42
21460 #, no-wrap
21461 msgid ""
21462 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21463 "\n"
21464 msgstr ""
21465
21466 #. type: textblock
21467 #: ../ocaml/examples/guestfs-ocaml.pod:44
21468 msgid ""
21469 "Alternately you can use an object-oriented style, calling methods on the "
21470 "class C<Guestfs.guestfs>:"
21471 msgstr ""
21472
21473 #. type: verbatim
21474 #: ../ocaml/examples/guestfs-ocaml.pod:47
21475 #, no-wrap
21476 msgid ""
21477 " method set_verbose : bool -> unit\n"
21478 "\n"
21479 msgstr ""
21480
21481 #. type: textblock
21482 #: ../ocaml/examples/guestfs-ocaml.pod:49
21483 msgid ""
21484 "The object-oriented style is usually briefer, and the minor performance "
21485 "penalty isn't noticable in the general overhead of performing libguestfs "
21486 "functions."
21487 msgstr ""
21488
21489 #. type: textblock
21490 #: ../ocaml/examples/guestfs-ocaml.pod:55
21491 msgid ""
21492 "The handle is closed when it is reaped by the garbage collector.  Because "
21493 "libguestfs handles include a lot of state, it is also possible to close (and "
21494 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21495 "method."
21496 msgstr ""
21497
21498 #. type: textblock
21499 #: ../ocaml/examples/guestfs-ocaml.pod:62
21500 msgid ""
21501 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
21502 "exception.  This has a single parameter which is the error message (a "
21503 "string)."
21504 msgstr ""
21505
21506 #. type: textblock
21507 #: ../ocaml/examples/guestfs-ocaml.pod:66
21508 msgid ""
21509 "Calling any function/method on a closed handle raises C<Guestfs."
21510 "Handle_closed>.  The single parameter is the name of the function that you "
21511 "called."
21512 msgstr ""
21513
21514 #. type: textblock
21515 #: ../ocaml/examples/guestfs-ocaml.pod:80
21516 #, fuzzy
21517 #| msgid ""
21518 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21519 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21520 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21521 msgid ""
21522 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21523 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21524 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21525 msgstr ""
21526 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21527 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21528 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21529
21530 #. type: textblock
21531 #: ../perl/examples/guestfs-perl.pod:5
21532 msgid "guestfs-perl - How to use libguestfs from Perl"
21533 msgstr ""
21534
21535 #. type: verbatim
21536 #: ../perl/examples/guestfs-perl.pod:9
21537 #, no-wrap
21538 msgid ""
21539 " use Sys::Guestfs;\n"
21540 " \n"
21541 msgstr ""
21542
21543 #. type: verbatim
21544 #: ../perl/examples/guestfs-perl.pod:11
21545 #, no-wrap
21546 msgid ""
21547 " my $h = Sys::Guestfs->new ();\n"
21548 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
21549 " $h->launch ();\n"
21550 " $h->mount_options ('', '/dev/sda1', '/');\n"
21551 " $h->touch ('/hello');\n"
21552 " $h->sync ();\n"
21553 "\n"
21554 msgstr ""
21555
21556 #. type: textblock
21557 #: ../perl/examples/guestfs-perl.pod:20
21558 msgid ""
21559 "This manual page documents how to call libguestfs from the Perl programming "
21560 "language.  This page just documents the differences from the C API and gives "
21561 "some examples.  If you are not familiar with using libguestfs, you also need "
21562 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
21563 msgstr ""
21564
21565 #. type: =head2
21566 #: ../perl/examples/guestfs-perl.pod:26
21567 msgid "ERRORS"
21568 msgstr ""
21569
21570 #. type: textblock
21571 #: ../perl/examples/guestfs-perl.pod:28
21572 msgid ""
21573 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
21574 ">)."
21575 msgstr ""
21576
21577 #. type: textblock
21578 #: ../perl/examples/guestfs-perl.pod:41
21579 #, fuzzy
21580 #| msgid ""
21581 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21582 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21583 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21584 msgid ""
21585 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
21586 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
21587 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21588 msgstr ""
21589 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21590 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21591 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21592
21593 #. type: textblock
21594 #: ../python/examples/guestfs-python.pod:5
21595 msgid "guestfs-python - How to use libguestfs from Python"
21596 msgstr ""
21597
21598 #. type: verbatim
21599 #: ../python/examples/guestfs-python.pod:9
21600 #, no-wrap
21601 msgid ""
21602 " import guestfs\n"
21603 " g = guestfs.GuestFS ()\n"
21604 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
21605 " g.launch\n"
21606 "\n"
21607 msgstr ""
21608
21609 #. type: textblock
21610 #: ../python/examples/guestfs-python.pod:16
21611 msgid ""
21612 "This manual page documents how to call libguestfs from the Python "
21613 "programming language.  This page just documents the differences from the C "
21614 "API and gives some examples.  If you are not familiar with using libguestfs, "
21615 "you also need to read L<guestfs(3)>."
21616 msgstr ""
21617
21618 #. type: textblock
21619 #: ../python/examples/guestfs-python.pod:23
21620 msgid ""
21621 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
21622 "single string argument which is the error message."
21623 msgstr ""
21624
21625 #. type: =head2
21626 #: ../python/examples/guestfs-python.pod:26
21627 msgid "MORE DOCUMENTATION"
21628 msgstr ""
21629
21630 #. type: textblock
21631 #: ../python/examples/guestfs-python.pod:28
21632 msgid "Type:"
21633 msgstr ""
21634
21635 #. type: verbatim
21636 #: ../python/examples/guestfs-python.pod:30
21637 #, no-wrap
21638 msgid ""
21639 " $ python\n"
21640 " >>> import guestfs\n"
21641 " >>> help (guestfs)\n"
21642 "\n"
21643 msgstr ""
21644
21645 #. type: textblock
21646 #: ../python/examples/guestfs-python.pod:44
21647 #, fuzzy
21648 #| msgid ""
21649 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21650 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21651 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21652 msgid ""
21653 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
21654 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
21655 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
21656 msgstr ""
21657 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21658 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21659 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21660
21661 #. type: textblock
21662 #: ../rescue/virt-rescue.pod:5
21663 msgid "virt-rescue - Run a rescue shell on a virtual machine"
21664 msgstr ""
21665
21666 #. type: verbatim
21667 #: ../rescue/virt-rescue.pod:9
21668 #, fuzzy, no-wrap
21669 #| msgid ""
21670 #| " virt-list-partitions [--options] domname\n"
21671 #| "\n"
21672 msgid ""
21673 " virt-rescue [--options] -d domname\n"
21674 "\n"
21675 msgstr ""
21676 " virt-list-partitions [--параметри] назва_домену\n"
21677 "\n"
21678
21679 #. type: verbatim
21680 #: ../rescue/virt-rescue.pod:11
21681 #, fuzzy, no-wrap
21682 #| msgid ""
21683 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21684 #| "\n"
21685 msgid ""
21686 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
21687 "\n"
21688 msgstr ""
21689 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21690 "\n"
21691
21692 #. type: verbatim
21693 #: ../rescue/virt-rescue.pod:15
21694 #, fuzzy, no-wrap
21695 #| msgid ""
21696 #| " virt-list-partitions [--options] domname\n"
21697 #| "\n"
21698 msgid ""
21699 " virt-rescue [--options] domname\n"
21700 "\n"
21701 msgstr ""
21702 " virt-list-partitions [--параметри] назва_домену\n"
21703 "\n"
21704
21705 #. type: verbatim
21706 #: ../rescue/virt-rescue.pod:17
21707 #, fuzzy, no-wrap
21708 #| msgid ""
21709 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21710 #| "\n"
21711 msgid ""
21712 " virt-rescue [--options] disk.img [disk.img ...]\n"
21713 "\n"
21714 msgstr ""
21715 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21716 "\n"
21717
21718 #. type: textblock
21719 #: ../rescue/virt-rescue.pod:21
21720 msgid ""
21721 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
21722 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
21723 "you from doing this, but doesn't catch all cases."
21724 msgstr ""
21725
21726 #. type: textblock
21727 #: ../rescue/virt-rescue.pod:25
21728 msgid ""
21729 "However if you use the I<--ro> (read only) option, then you can attach a "
21730 "shell to a live virtual machine.  The results might be strange or "
21731 "inconsistent at times but you won't get disk corruption."
21732 msgstr ""
21733
21734 #. type: textblock
21735 #: ../rescue/virt-rescue.pod:31
21736 msgid ""
21737 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
21738 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
21739 "recovery tools which you can use to examine or rescue a virtual machine or "
21740 "disk image."
21741 msgstr ""
21742
21743 #. type: textblock
21744 #: ../rescue/virt-rescue.pod:36
21745 msgid ""
21746 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
21747 "on disk image(s):"
21748 msgstr ""
21749
21750 #. type: verbatim
21751 #: ../rescue/virt-rescue.pod:39
21752 #, no-wrap
21753 msgid ""
21754 " virt-rescue -d GuestName\n"
21755 "\n"
21756 msgstr ""
21757
21758 #. type: verbatim
21759 #: ../rescue/virt-rescue.pod:41
21760 #, no-wrap
21761 msgid ""
21762 " virt-rescue --ro -a /path/to/disk.img\n"
21763 "\n"
21764 msgstr ""
21765
21766 #. type: verbatim
21767 #: ../rescue/virt-rescue.pod:43
21768 #, no-wrap
21769 msgid ""
21770 " virt-rescue -a /dev/sdc\n"
21771 "\n"
21772 msgstr ""
21773
21774 #. type: textblock
21775 #: ../rescue/virt-rescue.pod:45
21776 msgid "For live VMs you I<must> use the --ro option."
21777 msgstr ""
21778
21779 #. type: textblock
21780 #: ../rescue/virt-rescue.pod:47
21781 msgid ""
21782 "When you run virt-rescue on a virtual machine or disk image, you are placed "
21783 "in an interactive bash shell where you can use many ordinary Linux "
21784 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
21785 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
21786 "is an empty directory called C</sysroot> where you can mount filesystems."
21787 msgstr ""
21788
21789 #. type: textblock
21790 #: ../rescue/virt-rescue.pod:54
21791 msgid ""
21792 "In the example below, we list logical volumes, then choose one to mount "
21793 "under C</sysroot>:"
21794 msgstr ""
21795
21796 #. type: verbatim
21797 #: ../rescue/virt-rescue.pod:57
21798 #, no-wrap
21799 msgid ""
21800 " ><rescue> lvs\n"
21801 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
21802 " lv_root vg_f11x64 -wi-a-   8.83G\n"
21803 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
21804 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
21805 " ><rescue> ls /sysroot\n"
21806 "\n"
21807 msgstr ""
21808
21809 #. type: textblock
21810 #: ../rescue/virt-rescue.pod:64
21811 msgid ""
21812 "If you don't know what filesystems are available on the virtual machine then "
21813 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
21814 msgstr ""
21815
21816 #. type: textblock
21817 #: ../rescue/virt-rescue.pod:70
21818 msgid ""
21819 "Virt-rescue can be used on I<any> disk image file or device, not just a "
21820 "virtual machine.  For example you can use it on a blank file if you want to "
21821 "partition that file (although we would recommend using L<guestfish(1)> "
21822 "instead as it is more suitable for this purpose).  You can even use virt-"
21823 "rescue on things like SD cards."
21824 msgstr ""
21825
21826 #. type: textblock
21827 #: ../rescue/virt-rescue.pod:76
21828 msgid ""
21829 "Virt-rescue does not require root.  You only need to run it as root if you "
21830 "need root to open the disk image."
21831 msgstr ""
21832
21833 #. type: textblock
21834 #: ../rescue/virt-rescue.pod:79
21835 msgid ""
21836 "This tool is just designed for quick interactive hacking on a virtual "
21837 "machine.  For more structured access to a virtual machine disk image, you "
21838 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
21839 "make scripted changes to guests, use L<guestfish(1)>."
21840 msgstr ""
21841
21842 #. type: =item
21843 #: ../rescue/virt-rescue.pod:103
21844 msgid "B<--append kernelopts>"
21845 msgstr ""
21846
21847 #. type: textblock
21848 #: ../rescue/virt-rescue.pod:105
21849 msgid "Pass additional options to the rescue kernel."
21850 msgstr ""
21851
21852 #. type: verbatim
21853 #: ../rescue/virt-rescue.pod:135
21854 #, fuzzy, no-wrap
21855 #| msgid ""
21856 #| " guestfish --format=raw -a disk.img\n"
21857 #| "\n"
21858 msgid ""
21859 " virt-rescue --format=raw -a disk.img\n"
21860 "\n"
21861 msgstr ""
21862 " guestfish --format=raw -a disk.img\n"
21863 "\n"
21864
21865 #. type: verbatim
21866 #: ../rescue/virt-rescue.pod:139
21867 #, fuzzy, no-wrap
21868 #| msgid ""
21869 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
21870 #| "\n"
21871 msgid ""
21872 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
21873 "\n"
21874 msgstr ""
21875 " guestfish --format=raw -a disk.img --format -a another.img\n"
21876 "\n"
21877
21878 #. type: =item
21879 #: ../rescue/virt-rescue.pod:148
21880 msgid "B<-m MB>"
21881 msgstr ""
21882
21883 #. type: =item
21884 #: ../rescue/virt-rescue.pod:150
21885 #, fuzzy
21886 #| msgid "B<--merge>"
21887 msgid "B<--memsize MB>"
21888 msgstr "B<--merge>"
21889
21890 #. type: textblock
21891 #: ../rescue/virt-rescue.pod:152
21892 msgid ""
21893 "Change the amount of memory allocated to the rescue system.  The default is "
21894 "set by libguestfs and is small but adequate for running system tools.  The "
21895 "occasional program might need more memory.  The parameter is specified in "
21896 "megabytes."
21897 msgstr ""
21898
21899 #. type: =item
21900 #: ../rescue/virt-rescue.pod:157
21901 #, fuzzy
21902 #| msgid "B<--inspector>"
21903 msgid "B<--network>"
21904 msgstr "B<--inspector>"
21905
21906 #. type: textblock
21907 #: ../rescue/virt-rescue.pod:159
21908 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
21909 msgstr ""
21910
21911 #. type: textblock
21912 #: ../rescue/virt-rescue.pod:165
21913 msgid "Open the image read-only."
21914 msgstr ""
21915
21916 #. type: textblock
21917 #: ../rescue/virt-rescue.pod:175
21918 msgid ""
21919 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
21920 "SELINUX> before using this option."
21921 msgstr ""
21922
21923 #. type: textblock
21924 #: ../rescue/virt-rescue.pod:194
21925 msgid ""
21926 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
21927 "are done read-write."
21928 msgstr ""
21929
21930 #. type: textblock
21931 #: ../rescue/virt-rescue.pod:207
21932 msgid "Previous versions of virt-rescue allowed you to write either:"
21933 msgstr ""
21934
21935 #. type: verbatim
21936 #: ../rescue/virt-rescue.pod:209
21937 #, fuzzy, no-wrap
21938 #| msgid ""
21939 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21940 #| "\n"
21941 msgid ""
21942 " virt-rescue disk.img [disk.img ...]\n"
21943 "\n"
21944 msgstr ""
21945 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21946 "\n"
21947
21948 #. type: verbatim
21949 #: ../rescue/virt-rescue.pod:213
21950 #, fuzzy, no-wrap
21951 #| msgid ""
21952 #| " file-architecture filename\n"
21953 #| "\n"
21954 msgid ""
21955 " virt-rescue guestname\n"
21956 "\n"
21957 msgstr ""
21958 " file-architecture назва_файла\n"
21959 "\n"
21960
21961 #. type: =head1
21962 #: ../rescue/virt-rescue.pod:221
21963 msgid "NETWORK"
21964 msgstr ""
21965
21966 #. type: textblock
21967 #: ../rescue/virt-rescue.pod:223
21968 msgid ""
21969 "Adding the I<--network> option enables QEMU user networking in the rescue "
21970 "appliance.  There are some differences between user networking and ordinary "
21971 "networking:"
21972 msgstr ""
21973
21974 #. type: =item
21975 #: ../rescue/virt-rescue.pod:229
21976 msgid "ping does not work"
21977 msgstr ""
21978
21979 #. type: textblock
21980 #: ../rescue/virt-rescue.pod:231
21981 msgid ""
21982 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
21983 "send the ping packets, and because virt-rescue must be able to run as non-"
21984 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
21985 "The ping command will appear to resolve addresses but will not be able to "
21986 "send or receive any packets.  This does not mean that the network is not "
21987 "working."
21988 msgstr ""
21989
21990 #. type: =item
21991 #: ../rescue/virt-rescue.pod:238
21992 msgid "cannot receive connections"
21993 msgstr ""
21994
21995 #. type: textblock
21996 #: ../rescue/virt-rescue.pod:240
21997 msgid "QEMU user networking cannot receive incoming connections."
21998 msgstr ""
21999
22000 #. type: =item
22001 #: ../rescue/virt-rescue.pod:242
22002 msgid "making TCP connections"
22003 msgstr ""
22004
22005 #. type: textblock
22006 #: ../rescue/virt-rescue.pod:244
22007 msgid ""
22008 "The virt-rescue appliance needs to be small and so does not include many "
22009 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22010 "make TCP connections from the shell using the magical C</dev/tcp/"
22011 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22012 msgstr ""
22013
22014 #. type: verbatim
22015 #: ../rescue/virt-rescue.pod:249
22016 #, no-wrap
22017 msgid ""
22018 " exec 3<>/dev/tcp/redhat.com/80\n"
22019 " echo \"GET /\" >&3\n"
22020 " cat <&3\n"
22021 "\n"
22022 msgstr ""
22023
22024 #. type: textblock
22025 #: ../rescue/virt-rescue.pod:253
22026 msgid "See L<bash(1)> for more details."
22027 msgstr ""
22028
22029 #. type: textblock
22030 #: ../rescue/virt-rescue.pod:259
22031 msgid ""
22032 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
22033 "ENVIRONMENT VARIABLES> for the complete list."
22034 msgstr ""
22035
22036 #. type: textblock
22037 #: ../rescue/virt-rescue.pod:286
22038 #, fuzzy
22039 #| msgid ""
22040 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22041 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22042 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22043 msgid ""
22044 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22045 "libguestfs.org/>."
22046 msgstr ""
22047 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22048 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22049 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22050
22051 #. type: textblock
22052 #: ../resize/virt-resize.pod:5
22053 msgid "virt-resize - Resize a virtual machine disk"
22054 msgstr ""
22055
22056 #. type: verbatim
22057 #: ../resize/virt-resize.pod:9
22058 #, no-wrap
22059 msgid ""
22060 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22061 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22062 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22063 "\n"
22064 msgstr ""
22065
22066 #. type: textblock
22067 #: ../resize/virt-resize.pod:15
22068 msgid ""
22069 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22070 "larger or smaller overall, and resizing or deleting any partitions contained "
22071 "within."
22072 msgstr ""
22073
22074 #. type: textblock
22075 #: ../resize/virt-resize.pod:19
22076 msgid ""
22077 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22078 "not> be used on live virtual machines - for consistent results, shut the "
22079 "virtual machine down before resizing it."
22080 msgstr ""
22081
22082 #. type: textblock
22083 #: ../resize/virt-resize.pod:23
22084 msgid ""
22085 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22086 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22087 msgstr ""
22088
22089 #. type: =item
22090 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
22091 #: ../src/guestfs.pod:469 ../src/guestfs.pod:1261 ../src/guestfs.pod:1400
22092 #: ../src/guestfs.pod:2578
22093 msgid "1."
22094 msgstr "1."
22095
22096 #. type: textblock
22097 #: ../resize/virt-resize.pod:33
22098 msgid ""
22099 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22100 "fill the extra 5GB of space."
22101 msgstr ""
22102
22103 #. type: verbatim
22104 #: ../resize/virt-resize.pod:36
22105 #, no-wrap
22106 msgid ""
22107 " virt-filesystems --long -h --all -a olddisk\n"
22108 " \n"
22109 msgstr ""
22110
22111 #. type: verbatim
22112 #: ../resize/virt-resize.pod:38
22113 #, no-wrap
22114 msgid ""
22115 " truncate -r olddisk newdisk\n"
22116 " truncate -s +5G newdisk\n"
22117 " \n"
22118 msgstr ""
22119
22120 #. type: verbatim
22121 #: ../resize/virt-resize.pod:41
22122 #, no-wrap
22123 msgid ""
22124 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22125 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22126 "\n"
22127 msgstr ""
22128
22129 #. type: =item
22130 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
22131 #: ../src/guestfs.pod:475 ../src/guestfs.pod:1265 ../src/guestfs.pod:1404
22132 #: ../src/guestfs.pod:2603
22133 msgid "2."
22134 msgstr "2."
22135
22136 #. type: textblock
22137 #: ../resize/virt-resize.pod:46
22138 msgid ""
22139 "As above, but make the /boot partition 200MB bigger, while giving the "
22140 "remaining space to /dev/sda2:"
22141 msgstr ""
22142
22143 #. type: verbatim
22144 #: ../resize/virt-resize.pod:49
22145 #, no-wrap
22146 msgid ""
22147 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22148 "   olddisk newdisk\n"
22149 "\n"
22150 msgstr ""
22151
22152 #. type: =item
22153 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
22154 #: ../src/guestfs.pod:486 ../src/guestfs.pod:1410
22155 msgid "3."
22156 msgstr "3."
22157
22158 #. type: textblock
22159 #: ../resize/virt-resize.pod:54
22160 msgid ""
22161 "As in the first example, but expand a logical volume as the final step.  "
22162 "This is what you would typically use for Linux guests that use LVM:"
22163 msgstr ""
22164
22165 #. type: verbatim
22166 #: ../resize/virt-resize.pod:58
22167 #, no-wrap
22168 msgid ""
22169 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22170 "   olddisk newdisk\n"
22171 "\n"
22172 msgstr ""
22173
22174 #. type: =item
22175 #: ../resize/virt-resize.pod:61
22176 msgid "4."
22177 msgstr ""
22178
22179 #. type: textblock
22180 #: ../resize/virt-resize.pod:63
22181 msgid ""
22182 "As in the first example, but the output format will be qcow2 instead of a "
22183 "raw disk:"
22184 msgstr ""
22185
22186 #. type: verbatim
22187 #: ../resize/virt-resize.pod:66
22188 #, no-wrap
22189 msgid ""
22190 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22191 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22192 "\n"
22193 msgstr ""
22194
22195 #. type: =head1
22196 #: ../resize/virt-resize.pod:71
22197 msgid "DETAILED USAGE"
22198 msgstr ""
22199
22200 #. type: =head2
22201 #: ../resize/virt-resize.pod:73
22202 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22203 msgstr ""
22204
22205 #. type: =item
22206 #: ../resize/virt-resize.pod:77
22207 msgid "1. Shut down the virtual machine"
22208 msgstr ""
22209
22210 #. type: =item
22211 #: ../resize/virt-resize.pod:79
22212 msgid "2. Locate input disk image"
22213 msgstr ""
22214
22215 #. type: textblock
22216 #: ../resize/virt-resize.pod:81
22217 msgid ""
22218 "Locate the input disk image (ie. the file or device on the host containing "
22219 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
22220 "dumpxml> like this to find the disk image name:"
22221 msgstr ""
22222
22223 #. type: verbatim
22224 #: ../resize/virt-resize.pod:85
22225 #, no-wrap
22226 msgid ""
22227 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22228 " Found 1 nodes:\n"
22229 " -- NODE --\n"
22230 " <source dev=\"/dev/vg/lv_guest\" />\n"
22231 "\n"
22232 msgstr ""
22233
22234 #. type: =item
22235 #: ../resize/virt-resize.pod:90
22236 msgid "3. Look at current sizing"
22237 msgstr ""
22238
22239 #. type: textblock
22240 #: ../resize/virt-resize.pod:92
22241 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22242 msgstr ""
22243
22244 #. type: verbatim
22245 #: ../resize/virt-resize.pod:95
22246 #, no-wrap
22247 msgid ""
22248 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22249 " Name       Type       Size  Parent\n"
22250 " /dev/sda1  partition  101M  /dev/sda\n"
22251 " /dev/sda2  partition  7.9G  /dev/sda\n"
22252 " /dev/sda   device     8.0G  -\n"
22253 "\n"
22254 msgstr ""
22255
22256 #. type: textblock
22257 #: ../resize/virt-resize.pod:101
22258 msgid ""
22259 "(This example is a virtual machine with an 8 GB disk which we would like to "
22260 "expand up to 10 GB)."
22261 msgstr ""
22262
22263 #. type: =item
22264 #: ../resize/virt-resize.pod:104
22265 msgid "4. Create output disk"
22266 msgstr ""
22267
22268 #. type: textblock
22269 #: ../resize/virt-resize.pod:106
22270 msgid ""
22271 "Virt-resize cannot do in-place disk modifications.  You have to have space "
22272 "to store the resized output disk."
22273 msgstr ""
22274
22275 #. type: textblock
22276 #: ../resize/virt-resize.pod:109
22277 msgid ""
22278 "To store the resized disk image in a file, create a file of a suitable size:"
22279 msgstr ""
22280
22281 #. type: verbatim
22282 #: ../resize/virt-resize.pod:112
22283 #, no-wrap
22284 msgid ""
22285 " # rm -f outdisk\n"
22286 " # truncate -s 10G outdisk\n"
22287 "\n"
22288 msgstr ""
22289
22290 #. type: textblock
22291 #: ../resize/virt-resize.pod:115
22292 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22293 msgstr ""
22294
22295 #. type: verbatim
22296 #: ../resize/virt-resize.pod:117
22297 #, no-wrap
22298 msgid ""
22299 " # lvcreate -L 10G -n lv_name vg_name\n"
22300 "\n"
22301 msgstr ""
22302
22303 #. type: textblock
22304 #: ../resize/virt-resize.pod:119
22305 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22306 msgstr ""
22307
22308 #. type: verbatim
22309 #: ../resize/virt-resize.pod:121
22310 #, no-wrap
22311 msgid ""
22312 " # virsh pool-list\n"
22313 " # virsh vol-create-as poolname newvol 10G\n"
22314 "\n"
22315 msgstr ""
22316
22317 #. type: =item
22318 #: ../resize/virt-resize.pod:124
22319 msgid "5. Resize"
22320 msgstr ""
22321
22322 #. type: textblock
22323 #: ../resize/virt-resize.pod:126
22324 msgid ""
22325 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22326 "file) and the output disk.  The output disk is the one created in the "
22327 "previous step."
22328 msgstr ""
22329
22330 #. type: verbatim
22331 #: ../resize/virt-resize.pod:130
22332 #, no-wrap
22333 msgid ""
22334 " # virt-resize indisk outdisk\n"
22335 "\n"
22336 msgstr ""
22337
22338 #. type: textblock
22339 #: ../resize/virt-resize.pod:132
22340 msgid ""
22341 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22342 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22343 "larger, then an extra, empty partition is created at the end of the disk "
22344 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22345 "error."
22346 msgstr ""
22347
22348 #. type: textblock
22349 #: ../resize/virt-resize.pod:138
22350 msgid ""
22351 "More realistically you'd want to expand existing partitions in the disk "
22352 "image by passing extra options (for the full list see the L</OPTIONS> "
22353 "section below)."
22354 msgstr ""
22355
22356 #. type: textblock
22357 #: ../resize/virt-resize.pod:142
22358 msgid ""
22359 "L</--expand> is the most useful option.  It expands the named partition "
22360 "within the disk to fill any extra space:"
22361 msgstr ""
22362
22363 #. type: verbatim
22364 #: ../resize/virt-resize.pod:145
22365 #, no-wrap
22366 msgid ""
22367 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22368 "\n"
22369 msgstr ""
22370
22371 #. type: textblock
22372 #: ../resize/virt-resize.pod:147
22373 msgid ""
22374 "(In this case, an extra partition is I<not> created at the end of the disk, "
22375 "because there will be no unused space)."
22376 msgstr ""
22377
22378 #. type: textblock
22379 #: ../resize/virt-resize.pod:150
22380 msgid ""
22381 "L</--resize> is the other commonly used option.  The following would "
22382 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22383 "rest of the available space:"
22384 msgstr ""
22385
22386 #. type: verbatim
22387 #: ../resize/virt-resize.pod:154
22388 #, no-wrap
22389 msgid ""
22390 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22391 "     indisk outdisk\n"
22392 "\n"
22393 msgstr ""
22394
22395 #. type: textblock
22396 #: ../resize/virt-resize.pod:157
22397 msgid ""
22398 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22399 "if virt-resize knows how, it will resize the contents, the equivalent of "
22400 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22401 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22402 "filesystems, so you would have to online resize them after booting the guest."
22403 msgstr ""
22404
22405 #. type: textblock
22406 #: ../resize/virt-resize.pod:164
22407 msgid "Other options are covered below."
22408 msgstr ""
22409
22410 #. type: =item
22411 #: ../resize/virt-resize.pod:166
22412 msgid "6. Test"
22413 msgstr ""
22414
22415 #. type: textblock
22416 #: ../resize/virt-resize.pod:168
22417 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22418 msgstr ""
22419
22420 #. type: textblock
22421 #: ../resize/virt-resize.pod:170
22422 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22423 msgstr ""
22424
22425 #. type: verbatim
22426 #: ../resize/virt-resize.pod:172
22427 #, fuzzy, no-wrap
22428 #| msgid ""
22429 #| " edit filename\n"
22430 #| "\n"
22431 msgid ""
22432 " # virsh edit guestname\n"
22433 "\n"
22434 msgstr ""
22435 " edit назва_файла\n"
22436 "\n"
22437
22438 #. type: textblock
22439 #: ../resize/virt-resize.pod:174
22440 msgid ""
22441 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22442 "html#elementsDisks>"
22443 msgstr ""
22444
22445 #. type: textblock
22446 #: ../resize/virt-resize.pod:177
22447 msgid "Then start up the domain with the new, resized disk:"
22448 msgstr ""
22449
22450 #. type: verbatim
22451 #: ../resize/virt-resize.pod:179
22452 #, fuzzy, no-wrap
22453 #| msgid ""
22454 #| " ln-s target linkname\n"
22455 #| "\n"
22456 msgid ""
22457 " # virsh start guestname\n"
22458 "\n"
22459 msgstr ""
22460 " ln-s призначення назва_посилання\n"
22461 "\n"
22462
22463 #. type: textblock
22464 #: ../resize/virt-resize.pod:181
22465 msgid ""
22466 "and check that it still works.  See also the L</NOTES> section below for "
22467 "additional information."
22468 msgstr ""
22469
22470 #. type: =item
22471 #: ../resize/virt-resize.pod:184
22472 msgid "7. Resize LVs etc inside the guest"
22473 msgstr ""
22474
22475 #. type: textblock
22476 #: ../resize/virt-resize.pod:186
22477 msgid "(This can also be done offline using L<guestfish(1)>)"
22478 msgstr ""
22479
22480 #. type: textblock
22481 #: ../resize/virt-resize.pod:188
22482 msgid ""
22483 "Once the guest has booted you should see the new space available, at least "
22484 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22485 "may need to resize LVs inside PVs, and also resize filesystem types that "
22486 "virt-resize does not know how to expand."
22487 msgstr ""
22488
22489 #. type: =head2
22490 #: ../resize/virt-resize.pod:195
22491 msgid "SHRINKING A VIRTUAL MACHINE DISK"
22492 msgstr ""
22493
22494 #. type: textblock
22495 #: ../resize/virt-resize.pod:197
22496 msgid ""
22497 "Shrinking is somewhat more complex than expanding, and only an overview is "
22498 "given here."
22499 msgstr ""
22500
22501 #. type: textblock
22502 #: ../resize/virt-resize.pod:200
22503 msgid ""
22504 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
22505 "filesystems).  The user has to shrink content before passing the disk image "
22506 "to virt-resize, and virt-resize will check that the content has been shrunk "
22507 "properly."
22508 msgstr ""
22509
22510 #. type: textblock
22511 #: ../resize/virt-resize.pod:205
22512 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
22513 msgstr ""
22514
22515 #. type: textblock
22516 #: ../resize/virt-resize.pod:207
22517 msgid ""
22518 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
22519 "steps 3 and 4 above to allocate a new disk image."
22520 msgstr ""
22521
22522 #. type: textblock
22523 #: ../resize/virt-resize.pod:210
22524 msgid ""
22525 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
22526 msgstr ""
22527
22528 #. type: =head2
22529 #: ../resize/virt-resize.pod:213
22530 msgid "IGNORING OR DELETING PARTITIONS"
22531 msgstr ""
22532
22533 #. type: textblock
22534 #: ../resize/virt-resize.pod:215
22535 msgid ""
22536 "virt-resize also gives a convenient way to ignore or delete partitions when "
22537 "copying from the input disk to the output disk.  Ignoring a partition speeds "
22538 "up the copy where you don't care about the existing contents of a "
22539 "partition.  Deleting a partition removes it completely, but note that it "
22540 "also renumbers any partitions after the one which is deleted, which can "
22541 "leave some guests unbootable."
22542 msgstr ""
22543
22544 #. type: =head2
22545 #: ../resize/virt-resize.pod:222
22546 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
22547 msgstr ""
22548
22549 #. type: textblock
22550 #: ../resize/virt-resize.pod:224
22551 msgid ""
22552 "If the input disk is in qcow2 format, then you may prefer that the output is "
22553 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
22554 "the fly.  The output format is simply determined by the format of the empty "
22555 "output container that you provide.  Thus to create qcow2 output, use:"
22556 msgstr ""
22557
22558 #. type: verbatim
22559 #: ../resize/virt-resize.pod:230
22560 #, no-wrap
22561 msgid ""
22562 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
22563 "\n"
22564 msgstr ""
22565
22566 #. type: textblock
22567 #: ../resize/virt-resize.pod:232
22568 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
22569 msgstr ""
22570
22571 #. type: textblock
22572 #: ../resize/virt-resize.pod:234
22573 msgid "Similarly, to get non-sparse raw output use:"
22574 msgstr ""
22575
22576 #. type: verbatim
22577 #: ../resize/virt-resize.pod:236
22578 #, fuzzy, no-wrap
22579 #| msgid ""
22580 #| " fallocate path len\n"
22581 #| "\n"
22582 msgid ""
22583 " fallocate -l size outdisk\n"
22584 "\n"
22585 msgstr ""
22586 " fallocate шлях довжина\n"
22587 "\n"
22588
22589 #. type: textblock
22590 #: ../resize/virt-resize.pod:238
22591 msgid ""
22592 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
22593 "dev/zero of=outdisk bs=1M count=..>)"
22594 msgstr ""
22595
22596 #. type: textblock
22597 #: ../resize/virt-resize.pod:247
22598 msgid "Display help."
22599 msgstr ""
22600
22601 #. type: =item
22602 #: ../resize/virt-resize.pod:249
22603 msgid "B<-d>"
22604 msgstr ""
22605
22606 #. type: =item
22607 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
22608 #: ../tools/virt-win-reg.pl:120
22609 msgid "B<--debug>"
22610 msgstr "B<--debug>"
22611
22612 #. type: textblock
22613 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
22614 msgid "Enable debugging messages."
22615 msgstr ""
22616
22617 #. type: =item
22618 #: ../resize/virt-resize.pod:255
22619 #, fuzzy
22620 #| msgid "B<--no-dest-paths>"
22621 msgid "B<--delete part>"
22622 msgstr "B<--no-dest-paths>"
22623
22624 #. type: textblock
22625 #: ../resize/virt-resize.pod:257
22626 msgid ""
22627 "Delete the named partition.  It would be more accurate to describe this as "
22628 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
22629 "the original disk image is left intact."
22630 msgstr ""
22631
22632 #. type: textblock
22633 #: ../resize/virt-resize.pod:261
22634 msgid ""
22635 "Note that when you delete a partition, then anything contained in the "
22636 "partition is also deleted.  Furthermore, this causes any partitions that "
22637 "come after to be I<renumbered>, which can easily make your guest unbootable."
22638 msgstr ""
22639
22640 #. type: textblock
22641 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
22642 #: ../resize/virt-resize.pod:454
22643 msgid "You can give this option multiple times."
22644 msgstr ""
22645
22646 #. type: =item
22647 #: ../resize/virt-resize.pod:268
22648 #, fuzzy
22649 #| msgid "B<--partition>"
22650 msgid "B<--expand part>"
22651 msgstr "B<--partition>"
22652
22653 #. type: textblock
22654 #: ../resize/virt-resize.pod:270
22655 msgid ""
22656 "Expand the named partition so it uses up all extra space (space left over "
22657 "after any other resize changes that you request have been done)."
22658 msgstr ""
22659
22660 #. type: textblock
22661 #: ../resize/virt-resize.pod:273
22662 msgid ""
22663 "If virt-resize knows how, it will expand the direct content of the "
22664 "partition.  For example, if the partition is an LVM PV, it will expand the "
22665 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
22666 "content it doesn't know about alone."
22667 msgstr ""
22668
22669 #. type: textblock
22670 #: ../resize/virt-resize.pod:278
22671 msgid "Currently virt-resize can resize:"
22672 msgstr ""
22673
22674 #. type: textblock
22675 #: ../resize/virt-resize.pod:284
22676 msgid "ext2, ext3 and ext4 filesystems."
22677 msgstr ""
22678
22679 #. type: textblock
22680 #: ../resize/virt-resize.pod:288
22681 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
22682 msgstr ""
22683
22684 #. type: textblock
22685 #: ../resize/virt-resize.pod:290
22686 msgid ""
22687 "The filesystem must have been shut down consistently last time it was used.  "
22688 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
22689 "consistency check, so at the first boot after resizing Windows will check "
22690 "the disk."
22691 msgstr ""
22692
22693 #. type: textblock
22694 #: ../resize/virt-resize.pod:297
22695 msgid ""
22696 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
22697 "inside the PV, but see the I<--LV-expand> option.  The user could also "
22698 "resize LVs as desired after boot."
22699 msgstr ""
22700
22701 #. type: textblock
22702 #: ../resize/virt-resize.pod:303
22703 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
22704 msgstr ""
22705
22706 #. type: textblock
22707 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
22708 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
22709 msgstr ""
22710
22711 #. type: =item
22712 #: ../resize/virt-resize.pod:309 ../tools/virt-list-filesystems.pl:91
22713 #: ../tools/virt-list-partitions.pl:92 ../tools/virt-tar.pl:141
22714 #: ../tools/virt-win-reg.pl:142
22715 msgid "B<--format> raw"
22716 msgstr ""
22717
22718 #. type: textblock
22719 #: ../resize/virt-resize.pod:311
22720 msgid ""
22721 "Specify the format of the input disk image.  If this flag is not given then "
22722 "it is auto-detected from the image itself."
22723 msgstr ""
22724
22725 #. type: textblock
22726 #: ../resize/virt-resize.pod:317
22727 msgid ""
22728 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
22729 "AND NON-SPARSE RAW FORMATS>."
22730 msgstr ""
22731
22732 #. type: =item
22733 #: ../resize/virt-resize.pod:320
22734 #, fuzzy
22735 #| msgid "B<--format>"
22736 msgid "B<--ignore part>"
22737 msgstr "B<--format>"
22738
22739 #. type: textblock
22740 #: ../resize/virt-resize.pod:322
22741 msgid ""
22742 "Ignore the named partition.  Effectively this means the partition is "
22743 "allocated on the destination disk, but the content is not copied across from "
22744 "the source disk.  The content of the partition will be blank (all zero "
22745 "bytes)."
22746 msgstr ""
22747
22748 #. type: =item
22749 #: ../resize/virt-resize.pod:329
22750 msgid "B<--LV-expand logvol>"
22751 msgstr ""
22752
22753 #. type: textblock
22754 #: ../resize/virt-resize.pod:331
22755 msgid ""
22756 "This takes the logical volume and, as a final step, expands it to fill all "
22757 "the space available in its volume group.  A typical usage, assuming a Linux "
22758 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
22759 "lv_root> would be:"
22760 msgstr ""
22761
22762 #. type: verbatim
22763 #: ../resize/virt-resize.pod:336
22764 #, no-wrap
22765 msgid ""
22766 " virt-resize indisk outdisk \\\n"
22767 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
22768 "\n"
22769 msgstr ""
22770
22771 #. type: textblock
22772 #: ../resize/virt-resize.pod:339
22773 msgid ""
22774 "This would first expand the partition (and PV), and then expand the root "
22775 "device to fill the extra space in the PV."
22776 msgstr ""
22777
22778 #. type: textblock
22779 #: ../resize/virt-resize.pod:342
22780 msgid ""
22781 "The contents of the LV are also resized if virt-resize knows how to do "
22782 "that.  You can stop virt-resize from trying to expand the content by using "
22783 "the option I<--no-expand-content>."
22784 msgstr ""
22785
22786 #. type: textblock
22787 #: ../resize/virt-resize.pod:346
22788 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
22789 msgstr ""
22790
22791 #. type: textblock
22792 #: ../resize/virt-resize.pod:348
22793 msgid ""
22794 "You can give this option multiple times, I<but> it doesn't make sense to do "
22795 "this unless the logical volumes you specify are all in different volume "
22796 "groups."
22797 msgstr ""
22798
22799 #. type: =item
22800 #: ../resize/virt-resize.pod:352
22801 #, fuzzy
22802 #| msgid "B<-h> | B<--human-readable>"
22803 msgid "B<--machine-readable>"
22804 msgstr "B<-h> | B<--human-readable>"
22805
22806 #. type: textblock
22807 #: ../resize/virt-resize.pod:354
22808 msgid ""
22809 "This option is used to make the output more machine friendly when being "
22810 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
22811 msgstr ""
22812
22813 #. type: =item
22814 #: ../resize/virt-resize.pod:360
22815 #, fuzzy
22816 #| msgid "B<--debug>"
22817 msgid "B<--dryrun>"
22818 msgstr "B<--debug>"
22819
22820 #. type: textblock
22821 #: ../resize/virt-resize.pod:362
22822 msgid "Print a summary of what would be done, but don't do anything."
22823 msgstr ""
22824
22825 #. type: =item
22826 #: ../resize/virt-resize.pod:364
22827 msgid "B<--no-copy-boot-loader>"
22828 msgstr ""
22829
22830 #. type: textblock
22831 #: ../resize/virt-resize.pod:366
22832 msgid ""
22833 "By default, virt-resize copies over some sectors at the start of the disk "
22834 "(up to the beginning of the first partition).  Commonly these sectors "
22835 "contain the Master Boot Record (MBR) and the boot loader, and are required "
22836 "in order for the guest to boot correctly."
22837 msgstr ""
22838
22839 #. type: textblock
22840 #: ../resize/virt-resize.pod:371
22841 msgid ""
22842 "If you specify this flag, then this initial copy is not done.  You may need "
22843 "to reinstall the boot loader in this case."
22844 msgstr ""
22845
22846 #. type: =item
22847 #: ../resize/virt-resize.pod:374
22848 #, fuzzy
22849 #| msgid "B<--partition>"
22850 msgid "B<--no-extra-partition>"
22851 msgstr "B<--partition>"
22852
22853 #. type: textblock
22854 #: ../resize/virt-resize.pod:376
22855 msgid ""
22856 "By default, virt-resize creates an extra partition if there is any extra, "
22857 "unused space after all resizing has happened.  Use this option to prevent "
22858 "the extra partition from being created.  If you do this then the extra space "
22859 "will be inaccessible until you run fdisk, parted, or some other partitioning "
22860 "tool in the guest."
22861 msgstr ""
22862
22863 #. type: textblock
22864 #: ../resize/virt-resize.pod:382
22865 msgid ""
22866 "Note that if the surplus space is smaller than 10 MB, no extra partition "
22867 "will be created."
22868 msgstr ""
22869
22870 #. type: =item
22871 #: ../resize/virt-resize.pod:385
22872 #, fuzzy
22873 #| msgid "B<--no-dest-paths>"
22874 msgid "B<--no-expand-content>"
22875 msgstr "B<--no-dest-paths>"
22876
22877 #. type: textblock
22878 #: ../resize/virt-resize.pod:387
22879 msgid ""
22880 "By default, virt-resize will try to expand the direct contents of "
22881 "partitions, if it knows how (see I<--expand> option above)."
22882 msgstr ""
22883
22884 #. type: textblock
22885 #: ../resize/virt-resize.pod:390
22886 msgid ""
22887 "If you give the I<--no-expand-content> option then virt-resize will not "
22888 "attempt this."
22889 msgstr ""
22890
22891 #. type: =item
22892 #: ../resize/virt-resize.pod:393
22893 #, fuzzy
22894 #| msgid "ntfsresize-size"
22895 msgid "B<--ntfsresize-force>"
22896 msgstr "ntfsresize-size"
22897
22898 #. type: textblock
22899 #: ../resize/virt-resize.pod:395
22900 msgid ""
22901 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
22902 "the NTFS disk is marked as needing a consistency check.  You have to use "
22903 "this option if you want to resize a Windows guest multiple times without "
22904 "booting into Windows between each resize."
22905 msgstr ""
22906
22907 #. type: =item
22908 #: ../resize/virt-resize.pod:401
22909 #, fuzzy
22910 #| msgid "B<--format>"
22911 msgid "B<--output-format> raw"
22912 msgstr "B<--format>"
22913
22914 #. type: textblock
22915 #: ../resize/virt-resize.pod:403
22916 msgid ""
22917 "Specify the format of the output disk image.  If this flag is not given then "
22918 "it is auto-detected from the image itself."
22919 msgstr ""
22920
22921 #. type: textblock
22922 #: ../resize/virt-resize.pod:409
22923 msgid ""
22924 "Note that this option I<does not create> the output format.  This option "
22925 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
22926 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
22927 "SPARSE RAW FORMATS>."
22928 msgstr ""
22929
22930 #. type: =item
22931 #: ../resize/virt-resize.pod:414
22932 msgid "B<-q>"
22933 msgstr ""
22934
22935 #. type: =item
22936 #: ../resize/virt-resize.pod:416
22937 #, fuzzy
22938 #| msgid "B<--live>"
22939 msgid "B<--quiet>"
22940 msgstr "B<--live>"
22941
22942 #. type: textblock
22943 #: ../resize/virt-resize.pod:418
22944 msgid "Don't print the summary."
22945 msgstr ""
22946
22947 #. type: =item
22948 #: ../resize/virt-resize.pod:420
22949 #, fuzzy
22950 #| msgid "B<part_size>"
22951 msgid "B<--resize part=size>"
22952 msgstr "B<part_size>"
22953
22954 #. type: textblock
22955 #: ../resize/virt-resize.pod:422
22956 msgid ""
22957 "Resize the named partition (expanding or shrinking it) so that it has the "
22958 "given size."
22959 msgstr ""
22960
22961 #. type: textblock
22962 #: ../resize/virt-resize.pod:425
22963 msgid ""
22964 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
22965 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
22966 "size; or as a relative number or percentage.  For example:"
22967 msgstr ""
22968
22969 #. type: verbatim
22970 #: ../resize/virt-resize.pod:431
22971 #, fuzzy, no-wrap
22972 #| msgid ""
22973 #| " hexedit /dev/sda 1M\n"
22974 #| "\n"
22975 msgid ""
22976 " --resize /dev/sda2=10G\n"
22977 "\n"
22978 msgstr ""
22979 " hexedit /dev/sda 1M\n"
22980 "\n"
22981
22982 #. type: verbatim
22983 #: ../resize/virt-resize.pod:433
22984 #, fuzzy, no-wrap
22985 #| msgid ""
22986 #| " pvresize device\n"
22987 #| "\n"
22988 msgid ""
22989 " --resize /dev/sda4=90%\n"
22990 "\n"
22991 msgstr ""
22992 " pvresize пристрій\n"
22993 "\n"
22994
22995 #. type: verbatim
22996 #: ../resize/virt-resize.pod:435
22997 #, fuzzy, no-wrap
22998 #| msgid ""
22999 #| " hexedit /dev/sda 1M\n"
23000 #| "\n"
23001 msgid ""
23002 " --resize /dev/sda2=+1G\n"
23003 "\n"
23004 msgstr ""
23005 " hexedit /dev/sda 1M\n"
23006 "\n"
23007
23008 #. type: verbatim
23009 #: ../resize/virt-resize.pod:437
23010 #, fuzzy, no-wrap
23011 #| msgid ""
23012 #| " hexedit /dev/sda 1M\n"
23013 #| "\n"
23014 msgid ""
23015 " --resize /dev/sda2=-200M\n"
23016 "\n"
23017 msgstr ""
23018 " hexedit /dev/sda 1M\n"
23019 "\n"
23020
23021 #. type: verbatim
23022 #: ../resize/virt-resize.pod:439
23023 #, fuzzy, no-wrap
23024 #| msgid ""
23025 #| " hexedit /dev/sda 1M\n"
23026 #| "\n"
23027 msgid ""
23028 " --resize /dev/sda1=+128K\n"
23029 "\n"
23030 msgstr ""
23031 " hexedit /dev/sda 1M\n"
23032 "\n"
23033
23034 #. type: verbatim
23035 #: ../resize/virt-resize.pod:441
23036 #, fuzzy, no-wrap
23037 #| msgid ""
23038 #| " hexedit /dev/sda 1M\n"
23039 #| "\n"
23040 msgid ""
23041 " --resize /dev/sda1=+10%\n"
23042 "\n"
23043 msgstr ""
23044 " hexedit /dev/sda 1M\n"
23045 "\n"
23046
23047 #. type: verbatim
23048 #: ../resize/virt-resize.pod:443
23049 #, fuzzy, no-wrap
23050 #| msgid ""
23051 #| " hexedit /dev/sda 1M\n"
23052 #| "\n"
23053 msgid ""
23054 " --resize /dev/sda1=-10%\n"
23055 "\n"
23056 msgstr ""
23057 " hexedit /dev/sda 1M\n"
23058 "\n"
23059
23060 #. type: textblock
23061 #: ../resize/virt-resize.pod:445
23062 msgid ""
23063 "You can increase the size of any partition.  Virt-resize will expand the "
23064 "direct content of the partition if it knows how (see I<--expand> below)."
23065 msgstr ""
23066
23067 #. type: textblock
23068 #: ../resize/virt-resize.pod:449
23069 msgid ""
23070 "You can only I<decrease> the size of partitions that contain filesystems or "
23071 "PVs which have already been shrunk.  Virt-resize will check this has been "
23072 "done before proceeding, or else will print an error (see also I<--resize-"
23073 "force>)."
23074 msgstr ""
23075
23076 #. type: =item
23077 #: ../resize/virt-resize.pod:456
23078 msgid "B<--resize-force part=size>"
23079 msgstr ""
23080
23081 #. type: textblock
23082 #: ../resize/virt-resize.pod:458
23083 msgid ""
23084 "This is the same as I<--resize> except that it will let you decrease the "
23085 "size of any partition.  Generally this means you will lose any data which "
23086 "was at the end of the partition you shrink, but you may not care about that "
23087 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23088 "as a swap partition)."
23089 msgstr ""
23090
23091 #. type: textblock
23092 #: ../resize/virt-resize.pod:464
23093 msgid "See also the I<--ignore> option."
23094 msgstr ""
23095
23096 #. type: =item
23097 #: ../resize/virt-resize.pod:466
23098 #, fuzzy
23099 #| msgid "B<--partition>"
23100 msgid "B<--shrink part>"
23101 msgstr "B<--partition>"
23102
23103 #. type: textblock
23104 #: ../resize/virt-resize.pod:468
23105 msgid ""
23106 "Shrink the named partition until the overall disk image fits in the "
23107 "destination.  The named partition B<must> contain a filesystem or PV which "
23108 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23109 "online tools).  Virt-resize will check this and give an error if it has not "
23110 "been done."
23111 msgstr ""
23112
23113 #. type: textblock
23114 #: ../resize/virt-resize.pod:474
23115 msgid ""
23116 "The amount by which the overall disk must be shrunk (after carrying out all "
23117 "other operations requested by the user) is called the \"deficit\".  For "
23118 "example, a straight copy (assume no other operations)  from a 5GB disk image "
23119 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
23120 "would give an error unless the user specified a partition to shrink and that "
23121 "partition had more than a gigabyte of free space."
23122 msgstr ""
23123
23124 #. type: =head1
23125 #: ../resize/virt-resize.pod:492
23126 msgid "MACHINE READABLE OUTPUT"
23127 msgstr ""
23128
23129 #. type: textblock
23130 #: ../resize/virt-resize.pod:494
23131 msgid ""
23132 "The I<--machine-readable> option can be used to make the output more machine "
23133 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23134 "etc."
23135 msgstr ""
23136
23137 #. type: textblock
23138 #: ../resize/virt-resize.pod:498
23139 msgid "There are two ways to use this option."
23140 msgstr ""
23141
23142 #. type: textblock
23143 #: ../resize/virt-resize.pod:500
23144 msgid ""
23145 "Firstly use the option on its own to query the capabilities of the virt-"
23146 "resize binary.  Typical output looks like this:"
23147 msgstr ""
23148
23149 #. type: verbatim
23150 #: ../resize/virt-resize.pod:503
23151 #, no-wrap
23152 msgid ""
23153 " $ virt-resize --machine-readable\n"
23154 " virt-resize\n"
23155 " ntfsresize-force\n"
23156 " 32bitok\n"
23157 " ntfs\n"
23158 " btrfs\n"
23159 "\n"
23160 msgstr ""
23161
23162 #. type: textblock
23163 #: ../resize/virt-resize.pod:510
23164 msgid ""
23165 "A list of features is printed, one per line, and the program exits with "
23166 "status 0."
23167 msgstr ""
23168
23169 #. type: textblock
23170 #: ../resize/virt-resize.pod:513
23171 msgid ""
23172 "Secondly use the option in conjunction with other options to make the "
23173 "regular program output more machine friendly."
23174 msgstr ""
23175
23176 #. type: textblock
23177 #: ../resize/virt-resize.pod:516
23178 msgid "At the moment this means:"
23179 msgstr ""
23180
23181 #. type: textblock
23182 #: ../resize/virt-resize.pod:522
23183 msgid ""
23184 "Progress bar messages can be parsed from stdout by looking for this regular "
23185 "expression:"
23186 msgstr ""
23187
23188 #. type: verbatim
23189 #: ../resize/virt-resize.pod:525
23190 #, no-wrap
23191 msgid ""
23192 " ^[0-9]+/[0-9]+$\n"
23193 "\n"
23194 msgstr ""
23195
23196 #. type: textblock
23197 #: ../resize/virt-resize.pod:529
23198 msgid ""
23199 "The calling program should treat messages sent to stdout (except for "
23200 "progress bar messages) as status messages.  They can be logged and/or "
23201 "displayed to the user."
23202 msgstr ""
23203
23204 #. type: textblock
23205 #: ../resize/virt-resize.pod:535
23206 msgid ""
23207 "The calling program should treat messages sent to stderr as error messages.  "
23208 "In addition, virt-resize exits with a non-zero status code if there was a "
23209 "fatal error."
23210 msgstr ""
23211
23212 #. type: textblock
23213 #: ../resize/virt-resize.pod:541
23214 msgid ""
23215 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
23216 "readable> option and will return an error."
23217 msgstr ""
23218
23219 #. type: =head2
23220 #: ../resize/virt-resize.pod:546
23221 msgid "\"Partition 1 does not end on cylinder boundary.\""
23222 msgstr ""
23223
23224 #. type: textblock
23225 #: ../resize/virt-resize.pod:548
23226 msgid ""
23227 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
23228 "means the partitions will not be aligned to the ancient CHS geometry.  "
23229 "However CHS geometry is meaningless for disks manufactured since the early "
23230 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
23231 "cylinders is not required by any modern operating system."
23232 msgstr ""
23233
23234 #. type: =head2
23235 #: ../resize/virt-resize.pod:555
23236 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23237 msgstr ""
23238
23239 #. type: textblock
23240 #: ../resize/virt-resize.pod:557
23241 msgid ""
23242 "In Windows Vista and later versions, Microsoft switched to using a separate "
23243 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
23244 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
23245 "the boot partition.  Doing so seems to break the guest completely.  However "
23246 "expanding the second partition (ie. C: drive) should work."
23247 msgstr ""
23248
23249 #. type: textblock
23250 #: ../resize/virt-resize.pod:564
23251 msgid ""
23252 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23253 "NTFS partitions have been expanded.  This is just a safety check and (unless "
23254 "it find errors) is nothing to worry about."
23255 msgstr ""
23256
23257 #. type: =head2
23258 #: ../resize/virt-resize.pod:568
23259 msgid "GUEST BOOT STUCK AT \"GRUB\""
23260 msgstr ""
23261
23262 #. type: textblock
23263 #: ../resize/virt-resize.pod:570
23264 msgid ""
23265 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23266 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
23267 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
23268 "although we think is to do with partition alignment."
23269 msgstr ""
23270
23271 #. type: verbatim
23272 #: ../resize/virt-resize.pod:575
23273 #, no-wrap
23274 msgid ""
23275 " guestfish -i -a newdisk\n"
23276 " ><fs> cat /boot/grub/device.map\n"
23277 " # check the contents of this file are sensible or\n"
23278 " # edit the file if necessary\n"
23279 " ><fs> grub-install / /dev/vda\n"
23280 " ><fs> exit\n"
23281 "\n"
23282 msgstr ""
23283
23284 #. type: textblock
23285 #: ../resize/virt-resize.pod:582
23286 msgid ""
23287 "For more flexible guest reconfiguration, including if you need to specify "
23288 "other parameters to grub-install, use L<virt-rescue(1)>."
23289 msgstr ""
23290
23291 #. type: =head1
23292 #: ../resize/virt-resize.pod:585
23293 msgid "ALTERNATIVE TOOLS"
23294 msgstr ""
23295
23296 #. type: textblock
23297 #: ../resize/virt-resize.pod:587
23298 msgid ""
23299 "There are several proprietary tools for resizing partitions.  We won't "
23300 "mention any here."
23301 msgstr ""
23302
23303 #. type: textblock
23304 #: ../resize/virt-resize.pod:590
23305 msgid ""
23306 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23307 "operations on disk images.  They can resize and move partitions, but I don't "
23308 "think they can do anything with the contents, and they certainly don't "
23309 "understand LVM."
23310 msgstr ""
23311
23312 #. type: textblock
23313 #: ../resize/virt-resize.pod:595
23314 msgid ""
23315 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23316 "but at a much lower level.  You will probably end up hand-calculating sector "
23317 "offsets, which is something that virt-resize was designed to avoid.  If you "
23318 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23319 "I<--debug> flag."
23320 msgstr ""
23321
23322 #. type: textblock
23323 #: ../resize/virt-resize.pod:615
23324 msgid ""
23325 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23326 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23327 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23328 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<http://libguestfs.org/>."
23329 msgstr ""
23330
23331 #. type: textblock
23332 #: ../ruby/examples/guestfs-ruby.pod:5
23333 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23334 msgstr ""
23335
23336 #. type: verbatim
23337 #: ../ruby/examples/guestfs-ruby.pod:9
23338 #, no-wrap
23339 msgid ""
23340 " require 'guestfs'\n"
23341 " g = Guestfs::Guestfs.new()\n"
23342 " g.add_drive_opts(\"disk.img\",\n"
23343 "                  :readonly => 1, :format => \"raw\")\n"
23344 " g.launch()\n"
23345 "\n"
23346 msgstr ""
23347
23348 #. type: textblock
23349 #: ../ruby/examples/guestfs-ruby.pod:17
23350 msgid ""
23351 "This manual page documents how to call libguestfs from the Ruby programming "
23352 "language.  This page just documents the differences from the C API and gives "
23353 "some examples.  If you are not familiar with using libguestfs, you also need "
23354 "to read L<guestfs(3)>."
23355 msgstr ""
23356
23357 #. type: textblock
23358 #: ../ruby/examples/guestfs-ruby.pod:24
23359 msgid ""
23360 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
23361 "This has a single parameter which is the error message (a string)."
23362 msgstr ""
23363
23364 #. type: textblock
23365 #: ../ruby/examples/guestfs-ruby.pod:38
23366 #, fuzzy
23367 #| msgid ""
23368 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23369 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23370 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23371 msgid ""
23372 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23373 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
23374 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23375 msgstr ""
23376 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23377 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23378 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23379
23380 #. type: =head2
23381 #: ../src/guestfs-actions.pod:1
23382 msgid "guestfs_add_cdrom"
23383 msgstr ""
23384
23385 #. type: verbatim
23386 #: ../src/guestfs-actions.pod:3
23387 #, no-wrap
23388 msgid ""
23389 " int\n"
23390 " guestfs_add_cdrom (guestfs_h *g,\n"
23391 "                    const char *filename);\n"
23392 "\n"
23393 msgstr ""
23394
23395 #. type: textblock
23396 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
23397 #: ../src/guestfs-actions.pod:270
23398 msgid ""
23399 "I<This function is deprecated.> In new code, use the L</"
23400 "guestfs_add_drive_opts> call instead."
23401 msgstr ""
23402
23403 #. type: textblock
23404 #: ../src/guestfs-actions.pod:24
23405 msgid ""
23406 "This call checks for the existence of C<filename>.  This stops you from "
23407 "specifying other types of drive which are supported by qemu such as C<nbd:> "
23408 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
23409 "instead."
23410 msgstr ""
23411
23412 #. type: textblock
23413 #: ../src/guestfs-actions.pod:31
23414 msgid ""
23415 "If you just want to add an ISO file (often you use this as an efficient way "
23416 "to transfer large files into the guest), then you should probably use "
23417 "C<guestfs_add_drive_ro> instead."
23418 msgstr ""
23419
23420 #. type: textblock
23421 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
23422 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
23423 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
23424 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
23425 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
23426 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
23427 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
23428 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
23429 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
23430 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
23431 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
23432 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
23433 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
23434 #: ../src/guestfs-actions.pod:1168 ../src/guestfs-actions.pod:1186
23435 #: ../src/guestfs-actions.pod:1205 ../src/guestfs-actions.pod:1219
23436 #: ../src/guestfs-actions.pod:1239 ../src/guestfs-actions.pod:1309
23437 #: ../src/guestfs-actions.pod:1340 ../src/guestfs-actions.pod:1365
23438 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1520
23439 #: ../src/guestfs-actions.pod:1547 ../src/guestfs-actions.pod:1762
23440 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1871
23441 #: ../src/guestfs-actions.pod:2368 ../src/guestfs-actions.pod:2512
23442 #: ../src/guestfs-actions.pod:2573 ../src/guestfs-actions.pod:2608
23443 #: ../src/guestfs-actions.pod:3652 ../src/guestfs-actions.pod:3667
23444 #: ../src/guestfs-actions.pod:3692 ../src/guestfs-actions.pod:3881
23445 #: ../src/guestfs-actions.pod:3895 ../src/guestfs-actions.pod:3908
23446 #: ../src/guestfs-actions.pod:3922 ../src/guestfs-actions.pod:3937
23447 #: ../src/guestfs-actions.pod:3973 ../src/guestfs-actions.pod:4045
23448 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4082
23449 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:4128
23450 #: ../src/guestfs-actions.pod:4163 ../src/guestfs-actions.pod:4182
23451 #: ../src/guestfs-actions.pod:4201 ../src/guestfs-actions.pod:4236
23452 #: ../src/guestfs-actions.pod:4248 ../src/guestfs-actions.pod:4284
23453 #: ../src/guestfs-actions.pod:4300 ../src/guestfs-actions.pod:4313
23454 #: ../src/guestfs-actions.pod:4328 ../src/guestfs-actions.pod:4345
23455 #: ../src/guestfs-actions.pod:4438 ../src/guestfs-actions.pod:4458
23456 #: ../src/guestfs-actions.pod:4471 ../src/guestfs-actions.pod:4522
23457 #: ../src/guestfs-actions.pod:4540 ../src/guestfs-actions.pod:4558
23458 #: ../src/guestfs-actions.pod:4574 ../src/guestfs-actions.pod:4588
23459 #: ../src/guestfs-actions.pod:4602 ../src/guestfs-actions.pod:4619
23460 #: ../src/guestfs-actions.pod:4634 ../src/guestfs-actions.pod:4661
23461 #: ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4797
23462 #: ../src/guestfs-actions.pod:4828 ../src/guestfs-actions.pod:4847
23463 #: ../src/guestfs-actions.pod:4866 ../src/guestfs-actions.pod:4878
23464 #: ../src/guestfs-actions.pod:4895 ../src/guestfs-actions.pod:4908
23465 #: ../src/guestfs-actions.pod:4923 ../src/guestfs-actions.pod:4938
23466 #: ../src/guestfs-actions.pod:4980 ../src/guestfs-actions.pod:5006
23467 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5065
23468 #: ../src/guestfs-actions.pod:5079 ../src/guestfs-actions.pod:5096
23469 #: ../src/guestfs-actions.pod:5145 ../src/guestfs-actions.pod:5198
23470 #: ../src/guestfs-actions.pod:5245 ../src/guestfs-actions.pod:5288
23471 #: ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5333
23472 #: ../src/guestfs-actions.pod:5351 ../src/guestfs-actions.pod:5491
23473 #: ../src/guestfs-actions.pod:5548 ../src/guestfs-actions.pod:5570
23474 #: ../src/guestfs-actions.pod:5588 ../src/guestfs-actions.pod:5620
23475 #: ../src/guestfs-actions.pod:5686 ../src/guestfs-actions.pod:5703
23476 #: ../src/guestfs-actions.pod:5716 ../src/guestfs-actions.pod:5730
23477 #: ../src/guestfs-actions.pod:6019 ../src/guestfs-actions.pod:6038
23478 #: ../src/guestfs-actions.pod:6057 ../src/guestfs-actions.pod:6071
23479 #: ../src/guestfs-actions.pod:6083 ../src/guestfs-actions.pod:6097
23480 #: ../src/guestfs-actions.pod:6109 ../src/guestfs-actions.pod:6123
23481 #: ../src/guestfs-actions.pod:6139 ../src/guestfs-actions.pod:6160
23482 #: ../src/guestfs-actions.pod:6179 ../src/guestfs-actions.pod:6198
23483 #: ../src/guestfs-actions.pod:6228 ../src/guestfs-actions.pod:6246
23484 #: ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6287
23485 #: ../src/guestfs-actions.pod:6306 ../src/guestfs-actions.pod:6327
23486 #: ../src/guestfs-actions.pod:6346 ../src/guestfs-actions.pod:6363
23487 #: ../src/guestfs-actions.pod:6382 ../src/guestfs-actions.pod:6410
23488 #: ../src/guestfs-actions.pod:6434 ../src/guestfs-actions.pod:6453
23489 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6496
23490 #: ../src/guestfs-actions.pod:6511 ../src/guestfs-actions.pod:6530
23491 #: ../src/guestfs-actions.pod:6574 ../src/guestfs-actions.pod:6604
23492 #: ../src/guestfs-actions.pod:6637 ../src/guestfs-actions.pod:6752
23493 #: ../src/guestfs-actions.pod:6873 ../src/guestfs-actions.pod:6885
23494 #: ../src/guestfs-actions.pod:6898 ../src/guestfs-actions.pod:6911
23495 #: ../src/guestfs-actions.pod:6933 ../src/guestfs-actions.pod:6946
23496 #: ../src/guestfs-actions.pod:6959 ../src/guestfs-actions.pod:6972
23497 #: ../src/guestfs-actions.pod:6987 ../src/guestfs-actions.pod:7046
23498 #: ../src/guestfs-actions.pod:7063 ../src/guestfs-actions.pod:7079
23499 #: ../src/guestfs-actions.pod:7095 ../src/guestfs-actions.pod:7112
23500 #: ../src/guestfs-actions.pod:7125 ../src/guestfs-actions.pod:7145
23501 #: ../src/guestfs-actions.pod:7181 ../src/guestfs-actions.pod:7195
23502 #: ../src/guestfs-actions.pod:7236 ../src/guestfs-actions.pod:7249
23503 #: ../src/guestfs-actions.pod:7267 ../src/guestfs-actions.pod:7301
23504 #: ../src/guestfs-actions.pod:7337 ../src/guestfs-actions.pod:7453
23505 #: ../src/guestfs-actions.pod:7468 ../src/guestfs-actions.pod:7482
23506 #: ../src/guestfs-actions.pod:7537 ../src/guestfs-actions.pod:7550
23507 #: ../src/guestfs-actions.pod:7595 ../src/guestfs-actions.pod:7635
23508 #: ../src/guestfs-actions.pod:7691 ../src/guestfs-actions.pod:7711
23509 #: ../src/guestfs-actions.pod:7744 ../src/guestfs-actions.pod:7808
23510 #: ../src/guestfs-actions.pod:7831 ../src/guestfs-actions.pod:7860
23511 msgid "This function returns 0 on success or -1 on error."
23512 msgstr ""
23513
23514 #. type: textblock
23515 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
23516 #: ../src/guestfs-actions.pod:1170 ../src/guestfs-actions.pod:1985
23517 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2197
23518 #: ../src/guestfs-actions.pod:3654 ../src/guestfs-actions.pod:3674
23519 #: ../src/guestfs-actions.pod:4982 ../src/guestfs-actions.pod:6248
23520 #: ../src/guestfs-actions.pod:6365 ../src/guestfs-actions.pod:6498
23521 #: ../src/guestfs-actions.pod:6989 ../src/guestfs-actions.pod:7114
23522 #: ../src/guestfs-actions.pod:7637
23523 msgid "(Added in 0.3)"
23524 msgstr ""
23525
23526 #. type: =head2
23527 #: ../src/guestfs-actions.pod:41
23528 msgid "guestfs_add_domain"
23529 msgstr ""
23530
23531 #. type: verbatim
23532 #: ../src/guestfs-actions.pod:43
23533 #, no-wrap
23534 msgid ""
23535 " int\n"
23536 " guestfs_add_domain (guestfs_h *g,\n"
23537 "                     const char *dom,\n"
23538 "                     ...);\n"
23539 "\n"
23540 msgstr ""
23541
23542 #. type: textblock
23543 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
23544 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:2857
23545 #: ../src/guestfs-actions.pod:4673 ../src/guestfs-actions.pod:4992
23546 #: ../src/guestfs-actions.pod:5209
23547 msgid ""
23548 "You may supply a list of optional arguments to this call.  Use zero or more "
23549 "of the following pairs of parameters, and terminate the list with C<-1> on "
23550 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
23551 msgstr ""
23552
23553 #. type: verbatim
23554 #: ../src/guestfs-actions.pod:53
23555 #, no-wrap
23556 msgid ""
23557 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
23558 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
23559 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
23560 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
23561 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
23562 "\n"
23563 msgstr ""
23564
23565 #. type: textblock
23566 #: ../src/guestfs-actions.pod:59
23567 msgid ""
23568 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
23569 "It works by connecting to libvirt, requesting the domain and domain XML from "
23570 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
23571 "one."
23572 msgstr ""
23573
23574 #. type: textblock
23575 #: ../src/guestfs-actions.pod:94
23576 msgid ""
23577 "The other optional parameters are passed directly through to "
23578 "C<guestfs_add_drive_opts>."
23579 msgstr ""
23580
23581 #. type: textblock
23582 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
23583 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
23584 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
23585 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1385
23586 #: ../src/guestfs-actions.pod:1741 ../src/guestfs-actions.pod:1944
23587 #: ../src/guestfs-actions.pod:2055 ../src/guestfs-actions.pod:2106
23588 #: ../src/guestfs-actions.pod:2161 ../src/guestfs-actions.pod:2184
23589 #: ../src/guestfs-actions.pod:2499 ../src/guestfs-actions.pod:2975
23590 #: ../src/guestfs-actions.pod:2993 ../src/guestfs-actions.pod:5168
23591 #: ../src/guestfs-actions.pod:5388 ../src/guestfs-actions.pod:5800
23592 #: ../src/guestfs-actions.pod:5826 ../src/guestfs-actions.pod:7222
23593 #: ../src/guestfs-actions.pod:7648 ../src/guestfs-actions.pod:7661
23594 #: ../src/guestfs-actions.pod:7674
23595 msgid "On error this function returns -1."
23596 msgstr ""
23597
23598 #. type: textblock
23599 #: ../src/guestfs-actions.pod:99
23600 msgid "(Added in 1.7.4)"
23601 msgstr ""
23602
23603 #. type: =head2
23604 #: ../src/guestfs-actions.pod:101
23605 msgid "guestfs_add_domain_va"
23606 msgstr ""
23607
23608 #. type: verbatim
23609 #: ../src/guestfs-actions.pod:103
23610 #, no-wrap
23611 msgid ""
23612 " int\n"
23613 " guestfs_add_domain_va (guestfs_h *g,\n"
23614 "                        const char *dom,\n"
23615 "                        va_list args);\n"
23616 "\n"
23617 msgstr ""
23618
23619 #. type: textblock
23620 #: ../src/guestfs-actions.pod:108
23621 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
23622 msgstr ""
23623
23624 #. type: textblock
23625 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
23626 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
23627 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
23628 #: ../src/guestfs-actions.pod:2941 ../src/guestfs-actions.pod:2953
23629 #: ../src/guestfs-actions.pod:4738 ../src/guestfs-actions.pod:4750
23630 #: ../src/guestfs-actions.pod:5020 ../src/guestfs-actions.pod:5032
23631 #: ../src/guestfs-actions.pod:5258 ../src/guestfs-actions.pod:5269
23632 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
23633 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
23634
23635 #. type: =head2
23636 #: ../src/guestfs-actions.pod:112
23637 msgid "guestfs_add_domain_argv"
23638 msgstr "guestfs_add_domain_argv"
23639
23640 #. type: verbatim
23641 #: ../src/guestfs-actions.pod:114
23642 #, no-wrap
23643 msgid ""
23644 " int\n"
23645 " guestfs_add_domain_argv (guestfs_h *g,\n"
23646 "                          const char *dom,\n"
23647 "                          const struct guestfs_add_domain_argv *optargs);\n"
23648 "\n"
23649 msgstr ""
23650
23651 #. type: textblock
23652 #: ../src/guestfs-actions.pod:119
23653 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
23654 msgstr ""
23655
23656 #. type: =head2
23657 #: ../src/guestfs-actions.pod:123
23658 msgid "guestfs_add_drive"
23659 msgstr ""
23660
23661 #. type: verbatim
23662 #: ../src/guestfs-actions.pod:125
23663 #, no-wrap
23664 msgid ""
23665 " int\n"
23666 " guestfs_add_drive (guestfs_h *g,\n"
23667 "                    const char *filename);\n"
23668 "\n"
23669 msgstr ""
23670
23671 #. type: textblock
23672 #: ../src/guestfs-actions.pod:129
23673 msgid ""
23674 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
23675 "optional parameters, so the disk is added writable, with the format being "
23676 "detected automatically."
23677 msgstr ""
23678
23679 #. type: textblock
23680 #: ../src/guestfs-actions.pod:133
23681 msgid ""
23682 "Automatic detection of the format opens you up to a potential security hole "
23683 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
23684 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
23685 "you should think about replacing calls to this function with calls to "
23686 "C<guestfs_add_drive_opts>, and specifying the format."
23687 msgstr ""
23688
23689 #. type: =head2
23690 #: ../src/guestfs-actions.pod:144
23691 msgid "guestfs_add_drive_opts"
23692 msgstr ""
23693
23694 #. type: verbatim
23695 #: ../src/guestfs-actions.pod:146
23696 #, no-wrap
23697 msgid ""
23698 " int\n"
23699 " guestfs_add_drive_opts (guestfs_h *g,\n"
23700 "                         const char *filename,\n"
23701 "                         ...);\n"
23702 "\n"
23703 msgstr ""
23704
23705 #. type: verbatim
23706 #: ../src/guestfs-actions.pod:156
23707 #, no-wrap
23708 msgid ""
23709 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
23710 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
23711 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
23712 "\n"
23713 msgstr ""
23714
23715 #. type: textblock
23716 #: ../src/guestfs-actions.pod:185
23717 msgid ""
23718 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
23719 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
23720 "Possible formats include C<raw> and C<qcow2>."
23721 msgstr ""
23722
23723 #. type: textblock
23724 #: ../src/guestfs-actions.pod:196
23725 msgid ""
23726 "This rarely-used option lets you emulate the behaviour of the deprecated "
23727 "C<guestfs_add_drive_with_if> call (q.v.)"
23728 msgstr ""
23729
23730 #. type: textblock
23731 #: ../src/guestfs-actions.pod:203
23732 msgid "(Added in 1.5.23)"
23733 msgstr ""
23734
23735 #. type: =head2
23736 #: ../src/guestfs-actions.pod:205
23737 msgid "guestfs_add_drive_opts_va"
23738 msgstr ""
23739
23740 #. type: verbatim
23741 #: ../src/guestfs-actions.pod:207
23742 #, no-wrap
23743 msgid ""
23744 " int\n"
23745 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
23746 "                            const char *filename,\n"
23747 "                            va_list args);\n"
23748 "\n"
23749 msgstr ""
23750
23751 #. type: textblock
23752 #: ../src/guestfs-actions.pod:212
23753 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
23754 msgstr ""
23755
23756 #. type: =head2
23757 #: ../src/guestfs-actions.pod:216
23758 msgid "guestfs_add_drive_opts_argv"
23759 msgstr ""
23760
23761 #. type: verbatim
23762 #: ../src/guestfs-actions.pod:218
23763 #, no-wrap
23764 msgid ""
23765 " int\n"
23766 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
23767 "                              const char *filename,\n"
23768 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
23769 "\n"
23770 msgstr ""
23771
23772 #. type: textblock
23773 #: ../src/guestfs-actions.pod:223
23774 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
23775 msgstr ""
23776
23777 #. type: =head2
23778 #: ../src/guestfs-actions.pod:227
23779 msgid "guestfs_add_drive_ro"
23780 msgstr ""
23781
23782 #. type: verbatim
23783 #: ../src/guestfs-actions.pod:229
23784 #, no-wrap
23785 msgid ""
23786 " int\n"
23787 " guestfs_add_drive_ro (guestfs_h *g,\n"
23788 "                       const char *filename);\n"
23789 "\n"
23790 msgstr ""
23791
23792 #. type: textblock
23793 #: ../src/guestfs-actions.pod:233
23794 msgid ""
23795 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
23796 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
23797 "disk is added read-only, with the format being detected automatically."
23798 msgstr ""
23799
23800 #. type: textblock
23801 #: ../src/guestfs-actions.pod:240
23802 msgid "(Added in 1.0.38)"
23803 msgstr ""
23804
23805 #. type: =head2
23806 #: ../src/guestfs-actions.pod:242
23807 msgid "guestfs_add_drive_ro_with_if"
23808 msgstr ""
23809
23810 #. type: verbatim
23811 #: ../src/guestfs-actions.pod:244
23812 #, no-wrap
23813 msgid ""
23814 " int\n"
23815 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
23816 "                               const char *filename,\n"
23817 "                               const char *iface);\n"
23818 "\n"
23819 msgstr ""
23820
23821 #. type: textblock
23822 #: ../src/guestfs-actions.pod:256
23823 msgid ""
23824 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
23825 "QEMU interface emulation to use at run time."
23826 msgstr ""
23827
23828 #. type: textblock
23829 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
23830 #: ../src/guestfs-actions.pod:2458
23831 msgid "(Added in 1.0.84)"
23832 msgstr ""
23833
23834 #. type: =head2
23835 #: ../src/guestfs-actions.pod:263
23836 msgid "guestfs_add_drive_with_if"
23837 msgstr ""
23838
23839 #. type: verbatim
23840 #: ../src/guestfs-actions.pod:265
23841 #, no-wrap
23842 msgid ""
23843 " int\n"
23844 " guestfs_add_drive_with_if (guestfs_h *g,\n"
23845 "                            const char *filename,\n"
23846 "                            const char *iface);\n"
23847 "\n"
23848 msgstr ""
23849
23850 #. type: textblock
23851 #: ../src/guestfs-actions.pod:277
23852 msgid ""
23853 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
23854 "QEMU interface emulation to use at run time."
23855 msgstr ""
23856
23857 #. type: =head2
23858 #: ../src/guestfs-actions.pod:284
23859 msgid "guestfs_aug_clear"
23860 msgstr ""
23861
23862 #. type: verbatim
23863 #: ../src/guestfs-actions.pod:286
23864 #, no-wrap
23865 msgid ""
23866 " int\n"
23867 " guestfs_aug_clear (guestfs_h *g,\n"
23868 "                    const char *augpath);\n"
23869 "\n"
23870 msgstr ""
23871
23872 #. type: textblock
23873 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2186
23874 msgid "(Added in 1.3.4)"
23875 msgstr ""
23876
23877 #. type: =head2
23878 #: ../src/guestfs-actions.pod:297
23879 msgid "guestfs_aug_close"
23880 msgstr ""
23881
23882 #. type: verbatim
23883 #: ../src/guestfs-actions.pod:299
23884 #, no-wrap
23885 msgid ""
23886 " int\n"
23887 " guestfs_aug_close (guestfs_h *g);\n"
23888 "\n"
23889 msgstr ""
23890
23891 #. type: textblock
23892 #: ../src/guestfs-actions.pod:302
23893 msgid ""
23894 "Close the current Augeas handle and free up any resources used by it.  After "
23895 "calling this, you have to call C<guestfs_aug_init> again before you can use "
23896 "any other Augeas functions."
23897 msgstr ""
23898
23899 #. type: textblock
23900 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
23901 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
23902 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
23903 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
23904 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
23905 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
23906 #: ../src/guestfs-actions.pod:5877
23907 msgid "(Added in 0.7)"
23908 msgstr ""
23909
23910 #. type: =head2
23911 #: ../src/guestfs-actions.pod:311
23912 msgid "guestfs_aug_defnode"
23913 msgstr ""
23914
23915 #. type: verbatim
23916 #: ../src/guestfs-actions.pod:313
23917 #, no-wrap
23918 msgid ""
23919 " struct guestfs_int_bool *\n"
23920 " guestfs_aug_defnode (guestfs_h *g,\n"
23921 "                      const char *name,\n"
23922 "                      const char *expr,\n"
23923 "                      const char *val);\n"
23924 "\n"
23925 msgstr ""
23926
23927 #. type: textblock
23928 #: ../src/guestfs-actions.pod:322
23929 msgid ""
23930 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
23931 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
23932 "containing that single node."
23933 msgstr ""
23934
23935 #. type: textblock
23936 #: ../src/guestfs-actions.pod:330
23937 msgid ""
23938 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
23939 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
23940 msgstr ""
23941
23942 #. type: =head2
23943 #: ../src/guestfs-actions.pod:336
23944 msgid "guestfs_aug_defvar"
23945 msgstr ""
23946
23947 #. type: verbatim
23948 #: ../src/guestfs-actions.pod:338
23949 #, no-wrap
23950 msgid ""
23951 " int\n"
23952 " guestfs_aug_defvar (guestfs_h *g,\n"
23953 "                     const char *name,\n"
23954 "                     const char *expr);\n"
23955 "\n"
23956 msgstr ""
23957
23958 #. type: =head2
23959 #: ../src/guestfs-actions.pod:354
23960 msgid "guestfs_aug_get"
23961 msgstr ""
23962
23963 #. type: verbatim
23964 #: ../src/guestfs-actions.pod:356
23965 #, no-wrap
23966 msgid ""
23967 " char *\n"
23968 " guestfs_aug_get (guestfs_h *g,\n"
23969 "                  const char *augpath);\n"
23970 "\n"
23971 msgstr ""
23972
23973 #. type: textblock
23974 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
23975 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
23976 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
23977 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1271
23978 #: ../src/guestfs-actions.pod:1290 ../src/guestfs-actions.pod:1424
23979 #: ../src/guestfs-actions.pod:1612 ../src/guestfs-actions.pod:1724
23980 #: ../src/guestfs-actions.pod:1887 ../src/guestfs-actions.pod:1904
23981 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:2014
23982 #: ../src/guestfs-actions.pod:2035 ../src/guestfs-actions.pod:2209
23983 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2627
23984 #: ../src/guestfs-actions.pod:2721 ../src/guestfs-actions.pod:2825
23985 #: ../src/guestfs-actions.pod:2844 ../src/guestfs-actions.pod:3058
23986 #: ../src/guestfs-actions.pod:3086 ../src/guestfs-actions.pod:3107
23987 #: ../src/guestfs-actions.pod:3141 ../src/guestfs-actions.pod:3200
23988 #: ../src/guestfs-actions.pod:3220 ../src/guestfs-actions.pod:3240
23989 #: ../src/guestfs-actions.pod:3867 ../src/guestfs-actions.pod:4220
23990 #: ../src/guestfs-actions.pod:4390 ../src/guestfs-actions.pod:4500
23991 #: ../src/guestfs-actions.pod:5406 ../src/guestfs-actions.pod:5605
23992 #: ../src/guestfs-actions.pod:5775 ../src/guestfs-actions.pod:5953
23993 #: ../src/guestfs-actions.pod:6002 ../src/guestfs-actions.pod:6658
23994 #: ../src/guestfs-actions.pod:6674 ../src/guestfs-actions.pod:6698
23995 #: ../src/guestfs-actions.pod:6722 ../src/guestfs-actions.pod:7396
23996 #: ../src/guestfs-actions.pod:7415 ../src/guestfs-actions.pod:7433
23997 #: ../src/guestfs-actions.pod:7607 ../src/guestfs-actions.pod:7924
23998 msgid ""
23999 "This function returns a string, or NULL on error.  I<The caller must free "
24000 "the returned string after use>."
24001 msgstr ""
24002
24003 #. type: =head2
24004 #: ../src/guestfs-actions.pod:368
24005 msgid "guestfs_aug_init"
24006 msgstr ""
24007
24008 #. type: verbatim
24009 #: ../src/guestfs-actions.pod:370
24010 #, no-wrap
24011 msgid ""
24012 " int\n"
24013 " guestfs_aug_init (guestfs_h *g,\n"
24014 "                   const char *root,\n"
24015 "                   int flags);\n"
24016 "\n"
24017 msgstr ""
24018
24019 #. type: textblock
24020 #: ../src/guestfs-actions.pod:379
24021 msgid "You must call this before using any other C<guestfs_aug_*> commands."
24022 msgstr ""
24023
24024 #. type: textblock
24025 #: ../src/guestfs-actions.pod:404
24026 msgid ""
24027 "This option is only useful when debugging Augeas lenses.  Use of this option "
24028 "may require additional memory for the libguestfs appliance.  You may need to "
24029 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
24030 "C<guestfs_set_memsize>."
24031 msgstr ""
24032
24033 #. type: textblock
24034 #: ../src/guestfs-actions.pod:419
24035 msgid "Do not load the tree in C<guestfs_aug_init>."
24036 msgstr ""
24037
24038 #. type: textblock
24039 #: ../src/guestfs-actions.pod:423
24040 msgid "To close the handle, you can call C<guestfs_aug_close>."
24041 msgstr ""
24042
24043 #. type: =head2
24044 #: ../src/guestfs-actions.pod:431
24045 msgid "guestfs_aug_insert"
24046 msgstr ""
24047
24048 #. type: verbatim
24049 #: ../src/guestfs-actions.pod:433
24050 #, no-wrap
24051 msgid ""
24052 " int\n"
24053 " guestfs_aug_insert (guestfs_h *g,\n"
24054 "                     const char *augpath,\n"
24055 "                     const char *label,\n"
24056 "                     int before);\n"
24057 "\n"
24058 msgstr ""
24059
24060 #. type: =head2
24061 #: ../src/guestfs-actions.pod:451
24062 msgid "guestfs_aug_load"
24063 msgstr ""
24064
24065 #. type: verbatim
24066 #: ../src/guestfs-actions.pod:453
24067 #, no-wrap
24068 msgid ""
24069 " int\n"
24070 " guestfs_aug_load (guestfs_h *g);\n"
24071 "\n"
24072 msgstr ""
24073
24074 #. type: =head2
24075 #: ../src/guestfs-actions.pod:465
24076 msgid "guestfs_aug_ls"
24077 msgstr ""
24078
24079 #. type: verbatim
24080 #: ../src/guestfs-actions.pod:467
24081 #, no-wrap
24082 msgid ""
24083 " char **\n"
24084 " guestfs_aug_ls (guestfs_h *g,\n"
24085 "                 const char *augpath);\n"
24086 "\n"
24087 msgstr ""
24088
24089 #. type: textblock
24090 #: ../src/guestfs-actions.pod:471
24091 msgid ""
24092 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24093 "sorting the resulting nodes into alphabetical order."
24094 msgstr ""
24095
24096 #. type: textblock
24097 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
24098 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
24099 #: ../src/guestfs-actions.pod:1439 ../src/guestfs-actions.pod:1458
24100 #: ../src/guestfs-actions.pod:1561 ../src/guestfs-actions.pod:1580
24101 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:2281
24102 #: ../src/guestfs-actions.pod:2297 ../src/guestfs-actions.pod:2316
24103 #: ../src/guestfs-actions.pod:2381 ../src/guestfs-actions.pod:2405
24104 #: ../src/guestfs-actions.pod:2476 ../src/guestfs-actions.pod:2525
24105 #: ../src/guestfs-actions.pod:2786 ../src/guestfs-actions.pod:3160
24106 #: ../src/guestfs-actions.pod:3436 ../src/guestfs-actions.pod:3750
24107 #: ../src/guestfs-actions.pod:3767 ../src/guestfs-actions.pod:3787
24108 #: ../src/guestfs-actions.pod:3849 ../src/guestfs-actions.pod:3954
24109 #: ../src/guestfs-actions.pod:4362 ../src/guestfs-actions.pod:5129
24110 #: ../src/guestfs-actions.pod:5747 ../src/guestfs-actions.pod:5873
24111 #: ../src/guestfs-actions.pod:5987 ../src/guestfs-actions.pod:6738
24112 #: ../src/guestfs-actions.pod:6799 ../src/guestfs-actions.pod:6854
24113 #: ../src/guestfs-actions.pod:7000 ../src/guestfs-actions.pod:7024
24114 #: ../src/guestfs-actions.pod:7500 ../src/guestfs-actions.pod:7520
24115 #: ../src/guestfs-actions.pod:7567 ../src/guestfs-actions.pod:7761
24116 #: ../src/guestfs-actions.pod:7780 ../src/guestfs-actions.pod:7874
24117 #: ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7939
24118 #: ../src/guestfs-actions.pod:7958
24119 msgid ""
24120 "This function returns a NULL-terminated array of strings (like L<environ(3)"
24121 ">), or NULL if there was an error.  I<The caller must free the strings and "
24122 "the array after use>."
24123 msgstr ""
24124
24125 #. type: textblock
24126 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
24127 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1496
24128 #: ../src/guestfs-actions.pod:3514 ../src/guestfs-actions.pod:3545
24129 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4253
24130 #: ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:4473
24131 #: ../src/guestfs-actions.pod:4636 ../src/guestfs-actions.pod:5133
24132 #: ../src/guestfs-actions.pod:5688 ../src/guestfs-actions.pod:6085
24133 #: ../src/guestfs-actions.pod:6099 ../src/guestfs-actions.pod:6111
24134 #: ../src/guestfs-actions.pod:6579 ../src/guestfs-actions.pod:7238
24135 #: ../src/guestfs-actions.pod:7251 ../src/guestfs-actions.pod:7484
24136 #: ../src/guestfs-actions.pod:7749
24137 msgid "(Added in 0.8)"
24138 msgstr ""
24139
24140 #. type: =head2
24141 #: ../src/guestfs-actions.pod:480
24142 msgid "guestfs_aug_match"
24143 msgstr ""
24144
24145 #. type: verbatim
24146 #: ../src/guestfs-actions.pod:482
24147 #, no-wrap
24148 msgid ""
24149 " char **\n"
24150 " guestfs_aug_match (guestfs_h *g,\n"
24151 "                    const char *augpath);\n"
24152 "\n"
24153 msgstr ""
24154
24155 #. type: =head2
24156 #: ../src/guestfs-actions.pod:496
24157 msgid "guestfs_aug_mv"
24158 msgstr ""
24159
24160 #. type: verbatim
24161 #: ../src/guestfs-actions.pod:498
24162 #, no-wrap
24163 msgid ""
24164 " int\n"
24165 " guestfs_aug_mv (guestfs_h *g,\n"
24166 "                 const char *src,\n"
24167 "                 const char *dest);\n"
24168 "\n"
24169 msgstr ""
24170
24171 #. type: =head2
24172 #: ../src/guestfs-actions.pod:510
24173 msgid "guestfs_aug_rm"
24174 msgstr ""
24175
24176 #. type: verbatim
24177 #: ../src/guestfs-actions.pod:512
24178 #, no-wrap
24179 msgid ""
24180 " int\n"
24181 " guestfs_aug_rm (guestfs_h *g,\n"
24182 "                 const char *augpath);\n"
24183 "\n"
24184 msgstr ""
24185
24186 #. type: =head2
24187 #: ../src/guestfs-actions.pod:524
24188 msgid "guestfs_aug_save"
24189 msgstr ""
24190
24191 #. type: verbatim
24192 #: ../src/guestfs-actions.pod:526
24193 #, no-wrap
24194 msgid ""
24195 " int\n"
24196 " guestfs_aug_save (guestfs_h *g);\n"
24197 "\n"
24198 msgstr ""
24199
24200 #. type: textblock
24201 #: ../src/guestfs-actions.pod:531
24202 msgid ""
24203 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
24204 "are saved."
24205 msgstr ""
24206
24207 #. type: =head2
24208 #: ../src/guestfs-actions.pod:538
24209 msgid "guestfs_aug_set"
24210 msgstr ""
24211
24212 #. type: verbatim
24213 #: ../src/guestfs-actions.pod:540
24214 #, no-wrap
24215 msgid ""
24216 " int\n"
24217 " guestfs_aug_set (guestfs_h *g,\n"
24218 "                  const char *augpath,\n"
24219 "                  const char *val);\n"
24220 "\n"
24221 msgstr ""
24222
24223 #. type: textblock
24224 #: ../src/guestfs-actions.pod:547
24225 msgid ""
24226 "In the Augeas API, it is possible to clear a node by setting the value to "
24227 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
24228 "this call.  Instead you must use the C<guestfs_aug_clear> call."
24229 msgstr ""
24230
24231 #. type: =head2
24232 #: ../src/guestfs-actions.pod:556
24233 msgid "guestfs_available"
24234 msgstr ""
24235
24236 #. type: verbatim
24237 #: ../src/guestfs-actions.pod:558
24238 #, no-wrap
24239 msgid ""
24240 " int\n"
24241 " guestfs_available (guestfs_h *g,\n"
24242 "                    char *const *groups);\n"
24243 "\n"
24244 msgstr ""
24245
24246 #. type: textblock
24247 #: ../src/guestfs-actions.pod:566
24248 msgid ""
24249 "The libguestfs groups, and the functions that those groups correspond to, "
24250 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
24251 "runtime by calling C<guestfs_available_all_groups>."
24252 msgstr ""
24253
24254 #. type: textblock
24255 #: ../src/guestfs-actions.pod:590
24256 msgid "You must call C<guestfs_launch> before calling this function."
24257 msgstr ""
24258
24259 #. type: textblock
24260 #: ../src/guestfs-actions.pod:612
24261 msgid ""
24262 "This call was added in version C<1.0.80>.  In previous versions of "
24263 "libguestfs all you could do would be to speculatively execute a command to "
24264 "find out if the daemon implemented it.  See also C<guestfs_version>."
24265 msgstr ""
24266
24267 #. type: textblock
24268 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1241
24269 msgid "(Added in 1.0.80)"
24270 msgstr ""
24271
24272 #. type: =head2
24273 #: ../src/guestfs-actions.pod:623
24274 msgid "guestfs_available_all_groups"
24275 msgstr ""
24276
24277 #. type: verbatim
24278 #: ../src/guestfs-actions.pod:625
24279 #, no-wrap
24280 msgid ""
24281 " char **\n"
24282 " guestfs_available_all_groups (guestfs_h *g);\n"
24283 "\n"
24284 msgstr ""
24285
24286 #. type: textblock
24287 #: ../src/guestfs-actions.pod:628
24288 msgid ""
24289 "This command returns a list of all optional groups that this daemon knows "
24290 "about.  Note this returns both supported and unsupported groups.  To find "
24291 "out which ones the daemon can actually support you have to call "
24292 "C<guestfs_available> on each member of the returned list."
24293 msgstr ""
24294
24295 #. type: textblock
24296 #: ../src/guestfs-actions.pod:634
24297 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
24298 msgstr ""
24299
24300 #. type: textblock
24301 #: ../src/guestfs-actions.pod:640
24302 msgid "(Added in 1.3.15)"
24303 msgstr ""
24304
24305 #. type: =head2
24306 #: ../src/guestfs-actions.pod:642
24307 msgid "guestfs_base64_in"
24308 msgstr ""
24309
24310 #. type: verbatim
24311 #: ../src/guestfs-actions.pod:644
24312 #, no-wrap
24313 msgid ""
24314 " int\n"
24315 " guestfs_base64_in (guestfs_h *g,\n"
24316 "                    const char *base64file,\n"
24317 "                    const char *filename);\n"
24318 "\n"
24319 msgstr ""
24320
24321 #. type: textblock
24322 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
24323 msgid "(Added in 1.3.5)"
24324 msgstr ""
24325
24326 #. type: =head2
24327 #: ../src/guestfs-actions.pod:656
24328 msgid "guestfs_base64_out"
24329 msgstr ""
24330
24331 #. type: verbatim
24332 #: ../src/guestfs-actions.pod:658
24333 #, no-wrap
24334 msgid ""
24335 " int\n"
24336 " guestfs_base64_out (guestfs_h *g,\n"
24337 "                     const char *filename,\n"
24338 "                     const char *base64file);\n"
24339 "\n"
24340 msgstr ""
24341
24342 #. type: =head2
24343 #: ../src/guestfs-actions.pod:670
24344 msgid "guestfs_blockdev_flushbufs"
24345 msgstr ""
24346
24347 #. type: verbatim
24348 #: ../src/guestfs-actions.pod:672
24349 #, no-wrap
24350 msgid ""
24351 " int\n"
24352 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
24353 "                             const char *device);\n"
24354 "\n"
24355 msgstr ""
24356
24357 #. type: textblock
24358 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
24359 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
24360 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
24361 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
24362 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
24363 msgid "(Added in 0.9.3)"
24364 msgstr ""
24365
24366 #. type: =head2
24367 #: ../src/guestfs-actions.pod:685
24368 msgid "guestfs_blockdev_getbsz"
24369 msgstr ""
24370
24371 #. type: verbatim
24372 #: ../src/guestfs-actions.pod:687
24373 #, no-wrap
24374 msgid ""
24375 " int\n"
24376 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
24377 "                          const char *device);\n"
24378 "\n"
24379 msgstr ""
24380
24381 #. type: =head2
24382 #: ../src/guestfs-actions.pod:702
24383 msgid "guestfs_blockdev_getro"
24384 msgstr ""
24385
24386 #. type: verbatim
24387 #: ../src/guestfs-actions.pod:704
24388 #, no-wrap
24389 msgid ""
24390 " int\n"
24391 " guestfs_blockdev_getro (guestfs_h *g,\n"
24392 "                         const char *device);\n"
24393 "\n"
24394 msgstr ""
24395
24396 #. type: textblock
24397 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1479
24398 #: ../src/guestfs-actions.pod:1494 ../src/guestfs-actions.pod:1983
24399 #: ../src/guestfs-actions.pod:1994 ../src/guestfs-actions.pod:2066
24400 #: ../src/guestfs-actions.pod:2092 ../src/guestfs-actions.pod:2132
24401 #: ../src/guestfs-actions.pod:2147 ../src/guestfs-actions.pod:2172
24402 #: ../src/guestfs-actions.pod:2195 ../src/guestfs-actions.pod:3257
24403 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3291
24404 #: ../src/guestfs-actions.pod:3453 ../src/guestfs-actions.pod:3467
24405 #: ../src/guestfs-actions.pod:3482 ../src/guestfs-actions.pod:3496
24406 #: ../src/guestfs-actions.pod:3512 ../src/guestfs-actions.pod:3527
24407 #: ../src/guestfs-actions.pod:3543 ../src/guestfs-actions.pod:3557
24408 #: ../src/guestfs-actions.pod:3570 ../src/guestfs-actions.pod:3584
24409 #: ../src/guestfs-actions.pod:3599 ../src/guestfs-actions.pod:3614
24410 #: ../src/guestfs-actions.pod:3627 ../src/guestfs-actions.pod:3641
24411 #: ../src/guestfs-actions.pod:5370
24412 msgid "This function returns a C truth value on success or -1 on error."
24413 msgstr ""
24414
24415 #. type: =head2
24416 #: ../src/guestfs-actions.pod:717
24417 msgid "guestfs_blockdev_getsize64"
24418 msgstr ""
24419
24420 #. type: verbatim
24421 #: ../src/guestfs-actions.pod:719
24422 #, no-wrap
24423 msgid ""
24424 " int64_t\n"
24425 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
24426 "                             const char *device);\n"
24427 "\n"
24428 msgstr ""
24429
24430 #. type: textblock
24431 #: ../src/guestfs-actions.pod:725
24432 msgid "See also C<guestfs_blockdev_getsz>."
24433 msgstr ""
24434
24435 #. type: =head2
24436 #: ../src/guestfs-actions.pod:733
24437 msgid "guestfs_blockdev_getss"
24438 msgstr ""
24439
24440 #. type: verbatim
24441 #: ../src/guestfs-actions.pod:735
24442 #, no-wrap
24443 msgid ""
24444 " int\n"
24445 " guestfs_blockdev_getss (guestfs_h *g,\n"
24446 "                         const char *device);\n"
24447 "\n"
24448 msgstr ""
24449
24450 #. type: textblock
24451 #: ../src/guestfs-actions.pod:742
24452 msgid ""
24453 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
24454 "that)."
24455 msgstr ""
24456
24457 #. type: =head2
24458 #: ../src/guestfs-actions.pod:751
24459 msgid "guestfs_blockdev_getsz"
24460 msgstr ""
24461
24462 #. type: verbatim
24463 #: ../src/guestfs-actions.pod:753
24464 #, no-wrap
24465 msgid ""
24466 " int64_t\n"
24467 " guestfs_blockdev_getsz (guestfs_h *g,\n"
24468 "                         const char *device);\n"
24469 "\n"
24470 msgstr ""
24471
24472 #. type: textblock
24473 #: ../src/guestfs-actions.pod:760
24474 msgid ""
24475 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
24476 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
24477 msgstr ""
24478
24479 #. type: =head2
24480 #: ../src/guestfs-actions.pod:770
24481 msgid "guestfs_blockdev_rereadpt"
24482 msgstr ""
24483
24484 #. type: verbatim
24485 #: ../src/guestfs-actions.pod:772
24486 #, no-wrap
24487 msgid ""
24488 " int\n"
24489 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
24490 "                            const char *device);\n"
24491 "\n"
24492 msgstr ""
24493
24494 #. type: =head2
24495 #: ../src/guestfs-actions.pod:784
24496 msgid "guestfs_blockdev_setbsz"
24497 msgstr ""
24498
24499 #. type: verbatim
24500 #: ../src/guestfs-actions.pod:786
24501 #, no-wrap
24502 msgid ""
24503 " int\n"
24504 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
24505 "                          const char *device,\n"
24506 "                          int blocksize);\n"
24507 "\n"
24508 msgstr ""
24509
24510 #. type: =head2
24511 #: ../src/guestfs-actions.pod:802
24512 msgid "guestfs_blockdev_setro"
24513 msgstr ""
24514
24515 #. type: verbatim
24516 #: ../src/guestfs-actions.pod:804
24517 #, no-wrap
24518 msgid ""
24519 " int\n"
24520 " guestfs_blockdev_setro (guestfs_h *g,\n"
24521 "                         const char *device);\n"
24522 "\n"
24523 msgstr ""
24524
24525 #. type: =head2
24526 #: ../src/guestfs-actions.pod:816
24527 msgid "guestfs_blockdev_setrw"
24528 msgstr ""
24529
24530 #. type: verbatim
24531 #: ../src/guestfs-actions.pod:818
24532 #, no-wrap
24533 msgid ""
24534 " int\n"
24535 " guestfs_blockdev_setrw (guestfs_h *g,\n"
24536 "                         const char *device);\n"
24537 "\n"
24538 msgstr ""
24539
24540 #. type: =head2
24541 #: ../src/guestfs-actions.pod:830
24542 msgid "guestfs_btrfs_filesystem_resize"
24543 msgstr ""
24544
24545 #. type: verbatim
24546 #: ../src/guestfs-actions.pod:832
24547 #, no-wrap
24548 msgid ""
24549 " int\n"
24550 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
24551 "                                  const char *mountpoint,\n"
24552 "                                  ...);\n"
24553 "\n"
24554 msgstr ""
24555
24556 #. type: verbatim
24557 #: ../src/guestfs-actions.pod:842
24558 #, no-wrap
24559 msgid ""
24560 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
24561 "\n"
24562 msgstr ""
24563
24564 #. type: textblock
24565 #: ../src/guestfs-actions.pod:865
24566 msgid "(Added in 1.11.17)"
24567 msgstr ""
24568
24569 #. type: =head2
24570 #: ../src/guestfs-actions.pod:867
24571 msgid "guestfs_btrfs_filesystem_resize_va"
24572 msgstr ""
24573
24574 #. type: verbatim
24575 #: ../src/guestfs-actions.pod:869
24576 #, no-wrap
24577 msgid ""
24578 " int\n"
24579 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
24580 "                                     const char *mountpoint,\n"
24581 "                                     va_list args);\n"
24582 "\n"
24583 msgstr ""
24584
24585 #. type: textblock
24586 #: ../src/guestfs-actions.pod:874
24587 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
24588 msgstr ""
24589
24590 #. type: =head2
24591 #: ../src/guestfs-actions.pod:878
24592 msgid "guestfs_btrfs_filesystem_resize_argv"
24593 msgstr ""
24594
24595 #. type: verbatim
24596 #: ../src/guestfs-actions.pod:880
24597 #, no-wrap
24598 msgid ""
24599 " int\n"
24600 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
24601 "                                       const char *mountpoint,\n"
24602 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
24603 "\n"
24604 msgstr ""
24605
24606 #. type: textblock
24607 #: ../src/guestfs-actions.pod:885
24608 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
24609 msgstr ""
24610
24611 #. type: =head2
24612 #: ../src/guestfs-actions.pod:889
24613 msgid "guestfs_case_sensitive_path"
24614 msgstr ""
24615
24616 #. type: verbatim
24617 #: ../src/guestfs-actions.pod:891
24618 #, no-wrap
24619 msgid ""
24620 " char *\n"
24621 " guestfs_case_sensitive_path (guestfs_h *g,\n"
24622 "                              const char *path);\n"
24623 "\n"
24624 msgstr ""
24625
24626 #. type: textblock
24627 #: ../src/guestfs-actions.pod:917
24628 msgid ""
24629 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
24630 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
24631 "how the directories were originally created under Windows)."
24632 msgstr ""
24633
24634 #. type: textblock
24635 #: ../src/guestfs-actions.pod:925
24636 msgid "See also C<guestfs_realpath>."
24637 msgstr ""
24638
24639 #. type: textblock
24640 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7418
24641 msgid "(Added in 1.0.75)"
24642 msgstr ""
24643
24644 #. type: =head2
24645 #: ../src/guestfs-actions.pod:932
24646 msgid "guestfs_cat"
24647 msgstr ""
24648
24649 #. type: verbatim
24650 #: ../src/guestfs-actions.pod:934
24651 #, no-wrap
24652 msgid ""
24653 " char *\n"
24654 " guestfs_cat (guestfs_h *g,\n"
24655 "              const char *path);\n"
24656 "\n"
24657 msgstr ""
24658
24659 #. type: textblock
24660 #: ../src/guestfs-actions.pod:940
24661 msgid ""
24662 "Note that this function cannot correctly handle binary files (specifically, "
24663 "files containing C<\\0> character which is treated as end of string).  For "
24664 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
24665 "functions which have a more complex interface."
24666 msgstr ""
24667
24668 #. type: textblock
24669 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3771
24670 #: ../src/guestfs-actions.pod:3853 ../src/guestfs-actions.pod:3870
24671 #: ../src/guestfs-actions.pod:3958 ../src/guestfs-actions.pod:4366
24672 #: ../src/guestfs-actions.pod:4380 ../src/guestfs-actions.pod:5751
24673 #: ../src/guestfs-actions.pod:5765 ../src/guestfs-actions.pod:7571
24674 #: ../src/guestfs-actions.pod:7585
24675 msgid "(Added in 0.4)"
24676 msgstr ""
24677
24678 #. type: =head2
24679 #: ../src/guestfs-actions.pod:953
24680 msgid "guestfs_checksum"
24681 msgstr ""
24682
24683 #. type: verbatim
24684 #: ../src/guestfs-actions.pod:955
24685 #, no-wrap
24686 msgid ""
24687 " char *\n"
24688 " guestfs_checksum (guestfs_h *g,\n"
24689 "                   const char *csumtype,\n"
24690 "                   const char *path);\n"
24691 "\n"
24692 msgstr ""
24693
24694 #. type: textblock
24695 #: ../src/guestfs-actions.pod:1001
24696 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
24697 msgstr ""
24698
24699 #. type: textblock
24700 #: ../src/guestfs-actions.pod:1003
24701 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
24702 msgstr ""
24703
24704 #. type: textblock
24705 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1316
24706 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:3469
24707 #: ../src/guestfs-actions.pod:3498 ../src/guestfs-actions.pod:3559
24708 #: ../src/guestfs-actions.pod:3586 ../src/guestfs-actions.pod:7274
24709 msgid "(Added in 1.0.2)"
24710 msgstr ""
24711
24712 #. type: =head2
24713 #: ../src/guestfs-actions.pod:1010
24714 msgid "guestfs_checksum_device"
24715 msgstr ""
24716
24717 #. type: verbatim
24718 #: ../src/guestfs-actions.pod:1012
24719 #, no-wrap
24720 msgid ""
24721 " char *\n"
24722 " guestfs_checksum_device (guestfs_h *g,\n"
24723 "                          const char *csumtype,\n"
24724 "                          const char *device);\n"
24725 "\n"
24726 msgstr ""
24727
24728 #. type: textblock
24729 #: ../src/guestfs-actions.pod:1017
24730 msgid ""
24731 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
24732 "device named C<device>.  For the types of checksums supported see the "
24733 "C<guestfs_checksum> command."
24734 msgstr ""
24735
24736 #. type: textblock
24737 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5200
24738 #: ../src/guestfs-actions.pod:5335 ../src/guestfs-actions.pod:5372
24739 #: ../src/guestfs-actions.pod:5390 ../src/guestfs-actions.pod:5572
24740 #: ../src/guestfs-actions.pod:7183 ../src/guestfs-actions.pod:7197
24741 #: ../src/guestfs-actions.pod:7597
24742 msgid "(Added in 1.3.2)"
24743 msgstr ""
24744
24745 #. type: =head2
24746 #: ../src/guestfs-actions.pod:1026
24747 msgid "guestfs_checksums_out"
24748 msgstr ""
24749
24750 #. type: verbatim
24751 #: ../src/guestfs-actions.pod:1028
24752 #, no-wrap
24753 msgid ""
24754 " int\n"
24755 " guestfs_checksums_out (guestfs_h *g,\n"
24756 "                        const char *csumtype,\n"
24757 "                        const char *directory,\n"
24758 "                        const char *sumsfile);\n"
24759 "\n"
24760 msgstr ""
24761
24762 #. type: textblock
24763 #: ../src/guestfs-actions.pod:1048
24764 msgid "(Added in 1.3.7)"
24765 msgstr ""
24766
24767 #. type: =head2
24768 #: ../src/guestfs-actions.pod:1050
24769 msgid "guestfs_chmod"
24770 msgstr ""
24771
24772 #. type: verbatim
24773 #: ../src/guestfs-actions.pod:1052
24774 #, no-wrap
24775 msgid ""
24776 " int\n"
24777 " guestfs_chmod (guestfs_h *g,\n"
24778 "                int mode,\n"
24779 "                const char *path);\n"
24780 "\n"
24781 msgstr ""
24782
24783 #. type: =head2
24784 #: ../src/guestfs-actions.pod:1070
24785 msgid "guestfs_chown"
24786 msgstr ""
24787
24788 #. type: verbatim
24789 #: ../src/guestfs-actions.pod:1072
24790 #, no-wrap
24791 msgid ""
24792 " int\n"
24793 " guestfs_chown (guestfs_h *g,\n"
24794 "                int owner,\n"
24795 "                int group,\n"
24796 "                const char *path);\n"
24797 "\n"
24798 msgstr ""
24799
24800 #. type: =head2
24801 #: ../src/guestfs-actions.pod:1088
24802 msgid "guestfs_command"
24803 msgstr ""
24804
24805 #. type: verbatim
24806 #: ../src/guestfs-actions.pod:1090
24807 #, no-wrap
24808 msgid ""
24809 " char *\n"
24810 " guestfs_command (guestfs_h *g,\n"
24811 "                  char *const *arguments);\n"
24812 "\n"
24813 msgstr ""
24814
24815 #. type: textblock
24816 #: ../src/guestfs-actions.pod:1099
24817 msgid ""
24818 "The single parameter is an argv-style list of arguments.  The first element "
24819 "is the name of the program to run.  Subsequent elements are parameters.  The "
24820 "list must be non-empty (ie. must contain a program name).  Note that the "
24821 "command runs directly, and is I<not> invoked via the shell (see "
24822 "C<guestfs_sh>)."
24823 msgstr ""
24824
24825 #. type: textblock
24826 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
24827 #: ../src/guestfs-actions.pod:1615
24828 msgid "(Added in 0.9.1)"
24829 msgstr ""
24830
24831 #. type: =head2
24832 #: ../src/guestfs-actions.pod:1132
24833 msgid "guestfs_command_lines"
24834 msgstr ""
24835
24836 #. type: verbatim
24837 #: ../src/guestfs-actions.pod:1134
24838 #, no-wrap
24839 msgid ""
24840 " char **\n"
24841 " guestfs_command_lines (guestfs_h *g,\n"
24842 "                        char *const *arguments);\n"
24843 "\n"
24844 msgstr ""
24845
24846 #. type: textblock
24847 #: ../src/guestfs-actions.pod:1138
24848 msgid ""
24849 "This is the same as C<guestfs_command>, but splits the result into a list of "
24850 "lines."
24851 msgstr ""
24852
24853 #. type: textblock
24854 #: ../src/guestfs-actions.pod:1141
24855 msgid "See also: C<guestfs_sh_lines>"
24856 msgstr ""
24857
24858 #. type: =head2
24859 #: ../src/guestfs-actions.pod:1152
24860 msgid "guestfs_config"
24861 msgstr ""
24862
24863 #. type: verbatim
24864 #: ../src/guestfs-actions.pod:1154
24865 #, no-wrap
24866 msgid ""
24867 " int\n"
24868 " guestfs_config (guestfs_h *g,\n"
24869 "                 const char *qemuparam,\n"
24870 "                 const char *qemuvalue);\n"
24871 "\n"
24872 msgstr ""
24873
24874 #. type: =head2
24875 #: ../src/guestfs-actions.pod:1172
24876 msgid "guestfs_copy_size"
24877 msgstr ""
24878
24879 #. type: verbatim
24880 #: ../src/guestfs-actions.pod:1174
24881 #, no-wrap
24882 msgid ""
24883 " int\n"
24884 " guestfs_copy_size (guestfs_h *g,\n"
24885 "                    const char *src,\n"
24886 "                    const char *dest,\n"
24887 "                    int64_t size);\n"
24888 "\n"
24889 msgstr ""
24890
24891 #. type: textblock
24892 #: ../src/guestfs-actions.pod:1188 ../src/guestfs-actions.pod:1311
24893 #: ../src/guestfs-actions.pod:1342 ../src/guestfs-actions.pod:1387
24894 #: ../src/guestfs-actions.pod:1764 ../src/guestfs-actions.pod:1786
24895 #: ../src/guestfs-actions.pod:3669 ../src/guestfs-actions.pod:7269
24896 #: ../src/guestfs-actions.pod:7303 ../src/guestfs-actions.pod:7810
24897 #: ../src/guestfs-actions.pod:7833
24898 msgid ""
24899 "This long-running command can generate progress notification messages so "
24900 "that the caller can display a progress bar or indicator.  To receive these "
24901 "messages, the caller must register a progress event callback.  See L<guestfs"
24902 "(3)/GUESTFS_EVENT_PROGRESS>."
24903 msgstr ""
24904
24905 #. type: textblock
24906 #: ../src/guestfs-actions.pod:1193 ../src/guestfs-actions.pod:4393
24907 #: ../src/guestfs-actions.pod:5778 ../src/guestfs-actions.pod:7504
24908 #: ../src/guestfs-actions.pod:7524 ../src/guestfs-actions.pod:7610
24909 msgid "(Added in 1.0.87)"
24910 msgstr ""
24911
24912 #. type: =head2
24913 #: ../src/guestfs-actions.pod:1195
24914 msgid "guestfs_cp"
24915 msgstr ""
24916
24917 #. type: verbatim
24918 #: ../src/guestfs-actions.pod:1197
24919 #, no-wrap
24920 msgid ""
24921 " int\n"
24922 " guestfs_cp (guestfs_h *g,\n"
24923 "             const char *src,\n"
24924 "             const char *dest);\n"
24925 "\n"
24926 msgstr ""
24927
24928 #. type: textblock
24929 #: ../src/guestfs-actions.pod:1207 ../src/guestfs-actions.pod:1221
24930 #: ../src/guestfs-actions.pod:1293 ../src/guestfs-actions.pod:1367
24931 #: ../src/guestfs-actions.pod:1481 ../src/guestfs-actions.pod:5147
24932 #: ../src/guestfs-actions.pod:5622
24933 msgid "(Added in 1.0.18)"
24934 msgstr ""
24935
24936 #. type: =head2
24937 #: ../src/guestfs-actions.pod:1209
24938 msgid "guestfs_cp_a"
24939 msgstr ""
24940
24941 #. type: verbatim
24942 #: ../src/guestfs-actions.pod:1211
24943 #, no-wrap
24944 msgid ""
24945 " int\n"
24946 " guestfs_cp_a (guestfs_h *g,\n"
24947 "               const char *src,\n"
24948 "               const char *dest);\n"
24949 "\n"
24950 msgstr ""
24951
24952 #. type: =head2
24953 #: ../src/guestfs-actions.pod:1223
24954 msgid "guestfs_dd"
24955 msgstr ""
24956
24957 #. type: verbatim
24958 #: ../src/guestfs-actions.pod:1225
24959 #, no-wrap
24960 msgid ""
24961 " int\n"
24962 " guestfs_dd (guestfs_h *g,\n"
24963 "             const char *src,\n"
24964 "             const char *dest);\n"
24965 "\n"
24966 msgstr ""
24967
24968 #. type: textblock
24969 #: ../src/guestfs-actions.pod:1235
24970 msgid ""
24971 "If the destination is a device, it must be as large or larger than the "
24972 "source file or device, otherwise the copy will fail.  This command cannot do "
24973 "partial copies (see C<guestfs_copy_size>)."
24974 msgstr ""
24975
24976 #. type: =head2
24977 #: ../src/guestfs-actions.pod:1243
24978 msgid "guestfs_df"
24979 msgstr ""
24980
24981 #. type: verbatim
24982 #: ../src/guestfs-actions.pod:1245
24983 #, no-wrap
24984 msgid ""
24985 " char *\n"
24986 " guestfs_df (guestfs_h *g);\n"
24987 "\n"
24988 msgstr ""
24989
24990 #. type: textblock
24991 #: ../src/guestfs-actions.pod:1250 ../src/guestfs-actions.pod:1267
24992 msgid ""
24993 "This command is mostly useful for interactive sessions.  It is I<not> "
24994 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
24995 "from programs."
24996 msgstr ""
24997
24998 #. type: textblock
24999 #: ../src/guestfs-actions.pod:1257 ../src/guestfs-actions.pod:1274
25000 #: ../src/guestfs-actions.pod:1392 ../src/guestfs-actions.pod:2388
25001 #: ../src/guestfs-actions.pod:2412 ../src/guestfs-actions.pod:2480
25002 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:5047
25003 #: ../src/guestfs-actions.pod:7007 ../src/guestfs-actions.pod:7031
25004 #: ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7663
25005 #: ../src/guestfs-actions.pod:7676
25006 msgid "(Added in 1.0.54)"
25007 msgstr ""
25008
25009 #. type: =head2
25010 #: ../src/guestfs-actions.pod:1259
25011 msgid "guestfs_df_h"
25012 msgstr ""
25013
25014 #. type: verbatim
25015 #: ../src/guestfs-actions.pod:1261
25016 #, no-wrap
25017 msgid ""
25018 " char *\n"
25019 " guestfs_df_h (guestfs_h *g);\n"
25020 "\n"
25021 msgstr ""
25022
25023 #. type: =head2
25024 #: ../src/guestfs-actions.pod:1276
25025 msgid "guestfs_dmesg"
25026 msgstr ""
25027
25028 #. type: verbatim
25029 #: ../src/guestfs-actions.pod:1278
25030 #, no-wrap
25031 msgid ""
25032 " char *\n"
25033 " guestfs_dmesg (guestfs_h *g);\n"
25034 "\n"
25035 msgstr ""
25036
25037 #. type: textblock
25038 #: ../src/guestfs-actions.pod:1285
25039 msgid ""
25040 "Another way to get the same information is to enable verbose messages with "
25041 "C<guestfs_set_verbose> or by setting the environment variable "
25042 "C<LIBGUESTFS_DEBUG=1> before running the program."
25043 msgstr ""
25044
25045 #. type: =head2
25046 #: ../src/guestfs-actions.pod:1295
25047 msgid "guestfs_download"
25048 msgstr ""
25049
25050 #. type: verbatim
25051 #: ../src/guestfs-actions.pod:1297
25052 #, no-wrap
25053 msgid ""
25054 " int\n"
25055 " guestfs_download (guestfs_h *g,\n"
25056 "                   const char *remotefilename,\n"
25057 "                   const char *filename);\n"
25058 "\n"
25059 msgstr ""
25060
25061 #. type: textblock
25062 #: ../src/guestfs-actions.pod:1307
25063 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
25064 msgstr ""
25065
25066 #. type: =head2
25067 #: ../src/guestfs-actions.pod:1318
25068 msgid "guestfs_download_offset"
25069 msgstr ""
25070
25071 #. type: verbatim
25072 #: ../src/guestfs-actions.pod:1320
25073 #, no-wrap
25074 msgid ""
25075 " int\n"
25076 " guestfs_download_offset (guestfs_h *g,\n"
25077 "                          const char *remotefilename,\n"
25078 "                          const char *filename,\n"
25079 "                          int64_t offset,\n"
25080 "                          int64_t size);\n"
25081 "\n"
25082 msgstr ""
25083
25084 #. type: textblock
25085 #: ../src/guestfs-actions.pod:1333
25086 msgid ""
25087 "Note that there is no limit on the amount of data that can be downloaded "
25088 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
25089 "full amount unless an error occurs."
25090 msgstr ""
25091
25092 #. type: textblock
25093 #: ../src/guestfs-actions.pod:1338
25094 msgid "See also C<guestfs_download>, C<guestfs_pread>."
25095 msgstr ""
25096
25097 #. type: textblock
25098 #: ../src/guestfs-actions.pod:1347 ../src/guestfs-actions.pod:7308
25099 msgid "(Added in 1.5.17)"
25100 msgstr ""
25101
25102 #. type: =head2
25103 #: ../src/guestfs-actions.pod:1349
25104 msgid "guestfs_drop_caches"
25105 msgstr ""
25106
25107 #. type: verbatim
25108 #: ../src/guestfs-actions.pod:1351
25109 #, no-wrap
25110 msgid ""
25111 " int\n"
25112 " guestfs_drop_caches (guestfs_h *g,\n"
25113 "                      int whattodrop);\n"
25114 "\n"
25115 msgstr ""
25116
25117 #. type: =head2
25118 #: ../src/guestfs-actions.pod:1369
25119 msgid "guestfs_du"
25120 msgstr ""
25121
25122 #. type: verbatim
25123 #: ../src/guestfs-actions.pod:1371
25124 #, no-wrap
25125 msgid ""
25126 " int64_t\n"
25127 " guestfs_du (guestfs_h *g,\n"
25128 "             const char *path);\n"
25129 "\n"
25130 msgstr ""
25131
25132 #. type: =head2
25133 #: ../src/guestfs-actions.pod:1394
25134 msgid "guestfs_e2fsck_f"
25135 msgstr ""
25136
25137 #. type: verbatim
25138 #: ../src/guestfs-actions.pod:1396
25139 #, no-wrap
25140 msgid ""
25141 " int\n"
25142 " guestfs_e2fsck_f (guestfs_h *g,\n"
25143 "                   const char *device);\n"
25144 "\n"
25145 msgstr ""
25146
25147 #. type: textblock
25148 #: ../src/guestfs-actions.pod:1404
25149 msgid ""
25150 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
25151 "Normally you should use C<guestfs_fsck>."
25152 msgstr ""
25153
25154 #. type: textblock
25155 #: ../src/guestfs-actions.pod:1409
25156 msgid "(Added in 1.0.29)"
25157 msgstr ""
25158
25159 #. type: =head2
25160 #: ../src/guestfs-actions.pod:1411
25161 msgid "guestfs_echo_daemon"
25162 msgstr ""
25163
25164 #. type: verbatim
25165 #: ../src/guestfs-actions.pod:1413
25166 #, no-wrap
25167 msgid ""
25168 " char *\n"
25169 " guestfs_echo_daemon (guestfs_h *g,\n"
25170 "                      char *const *words);\n"
25171 "\n"
25172 msgstr ""
25173
25174 #. type: textblock
25175 #: ../src/guestfs-actions.pod:1422
25176 msgid "See also C<guestfs_ping_daemon>."
25177 msgstr ""
25178
25179 #. type: textblock
25180 #: ../src/guestfs-actions.pod:1427 ../src/guestfs-actions.pod:2174
25181 #: ../src/guestfs-actions.pod:6479
25182 msgid "(Added in 1.0.69)"
25183 msgstr ""
25184
25185 #. type: =head2
25186 #: ../src/guestfs-actions.pod:1429
25187 msgid "guestfs_egrep"
25188 msgstr ""
25189
25190 #. type: verbatim
25191 #: ../src/guestfs-actions.pod:1431
25192 #, no-wrap
25193 msgid ""
25194 " char **\n"
25195 " guestfs_egrep (guestfs_h *g,\n"
25196 "                const char *regex,\n"
25197 "                const char *path);\n"
25198 "\n"
25199 msgstr ""
25200
25201 #. type: textblock
25202 #: ../src/guestfs-actions.pod:1446 ../src/guestfs-actions.pod:1465
25203 #: ../src/guestfs-actions.pod:1522 ../src/guestfs-actions.pod:1568
25204 #: ../src/guestfs-actions.pod:1587 ../src/guestfs-actions.pod:2304
25205 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:2501
25206 #: ../src/guestfs-actions.pod:2514 ../src/guestfs-actions.pod:2529
25207 #: ../src/guestfs-actions.pod:2575 ../src/guestfs-actions.pod:2597
25208 #: ../src/guestfs-actions.pod:2610 ../src/guestfs-actions.pod:3883
25209 #: ../src/guestfs-actions.pod:3897 ../src/guestfs-actions.pod:3910
25210 #: ../src/guestfs-actions.pod:3924 ../src/guestfs-actions.pod:4925
25211 #: ../src/guestfs-actions.pod:5956 ../src/guestfs-actions.pod:6005
25212 #: ../src/guestfs-actions.pod:6875 ../src/guestfs-actions.pod:6887
25213 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-actions.pod:6913
25214 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:6948
25215 #: ../src/guestfs-actions.pod:6961 ../src/guestfs-actions.pod:6974
25216 #: ../src/guestfs-actions.pod:7768 ../src/guestfs-actions.pod:7787
25217 #: ../src/guestfs-actions.pod:7881 ../src/guestfs-actions.pod:7900
25218 #: ../src/guestfs-actions.pod:7946 ../src/guestfs-actions.pod:7965
25219 msgid "(Added in 1.0.66)"
25220 msgstr ""
25221
25222 #. type: =head2
25223 #: ../src/guestfs-actions.pod:1448
25224 msgid "guestfs_egrepi"
25225 msgstr ""
25226
25227 #. type: verbatim
25228 #: ../src/guestfs-actions.pod:1450
25229 #, no-wrap
25230 msgid ""
25231 " char **\n"
25232 " guestfs_egrepi (guestfs_h *g,\n"
25233 "                 const char *regex,\n"
25234 "                 const char *path);\n"
25235 "\n"
25236 msgstr ""
25237
25238 #. type: =head2
25239 #: ../src/guestfs-actions.pod:1467
25240 msgid "guestfs_equal"
25241 msgstr ""
25242
25243 #. type: verbatim
25244 #: ../src/guestfs-actions.pod:1469
25245 #, no-wrap
25246 msgid ""
25247 " int\n"
25248 " guestfs_equal (guestfs_h *g,\n"
25249 "                const char *file1,\n"
25250 "                const char *file2);\n"
25251 "\n"
25252 msgstr ""
25253
25254 #. type: =head2
25255 #: ../src/guestfs-actions.pod:1483
25256 msgid "guestfs_exists"
25257 msgstr ""
25258
25259 #. type: verbatim
25260 #: ../src/guestfs-actions.pod:1485
25261 #, no-wrap
25262 msgid ""
25263 " int\n"
25264 " guestfs_exists (guestfs_h *g,\n"
25265 "                 const char *path);\n"
25266 "\n"
25267 msgstr ""
25268
25269 #. type: textblock
25270 #: ../src/guestfs-actions.pod:1492
25271 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
25272 msgstr ""
25273
25274 #. type: =head2
25275 #: ../src/guestfs-actions.pod:1498
25276 msgid "guestfs_fallocate"
25277 msgstr ""
25278
25279 #. type: verbatim
25280 #: ../src/guestfs-actions.pod:1500
25281 #, no-wrap
25282 msgid ""
25283 " int\n"
25284 " guestfs_fallocate (guestfs_h *g,\n"
25285 "                    const char *path,\n"
25286 "                    int len);\n"
25287 "\n"
25288 msgstr ""
25289
25290 #. type: textblock
25291 #: ../src/guestfs-actions.pod:1505
25292 msgid ""
25293 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
25294 "call instead."
25295 msgstr ""
25296
25297 #. type: =head2
25298 #: ../src/guestfs-actions.pod:1524
25299 msgid "guestfs_fallocate64"
25300 msgstr ""
25301
25302 #. type: verbatim
25303 #: ../src/guestfs-actions.pod:1526
25304 #, no-wrap
25305 msgid ""
25306 " int\n"
25307 " guestfs_fallocate64 (guestfs_h *g,\n"
25308 "                      const char *path,\n"
25309 "                      int64_t len);\n"
25310 "\n"
25311 msgstr ""
25312
25313 #. type: textblock
25314 #: ../src/guestfs-actions.pod:1535
25315 msgid ""
25316 "Note that this call allocates disk blocks for the file.  To create a sparse "
25317 "file use C<guestfs_truncate_size> instead."
25318 msgstr ""
25319
25320 #. type: textblock
25321 #: ../src/guestfs-actions.pod:1538
25322 msgid ""
25323 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
25324 "oversight it only allowed 30 bit lengths to be specified, effectively "
25325 "limiting the maximum size of files created through that call to 1GB."
25326 msgstr ""
25327
25328 #. type: textblock
25329 #: ../src/guestfs-actions.pod:1549
25330 msgid "(Added in 1.3.17)"
25331 msgstr ""
25332
25333 #. type: =head2
25334 #: ../src/guestfs-actions.pod:1551
25335 msgid "guestfs_fgrep"
25336 msgstr ""
25337
25338 #. type: verbatim
25339 #: ../src/guestfs-actions.pod:1553
25340 #, no-wrap
25341 msgid ""
25342 " char **\n"
25343 " guestfs_fgrep (guestfs_h *g,\n"
25344 "                const char *pattern,\n"
25345 "                const char *path);\n"
25346 "\n"
25347 msgstr ""
25348
25349 #. type: =head2
25350 #: ../src/guestfs-actions.pod:1570
25351 msgid "guestfs_fgrepi"
25352 msgstr ""
25353
25354 #. type: verbatim
25355 #: ../src/guestfs-actions.pod:1572
25356 #, no-wrap
25357 msgid ""
25358 " char **\n"
25359 " guestfs_fgrepi (guestfs_h *g,\n"
25360 "                 const char *pattern,\n"
25361 "                 const char *path);\n"
25362 "\n"
25363 msgstr ""
25364
25365 #. type: =head2
25366 #: ../src/guestfs-actions.pod:1589
25367 msgid "guestfs_file"
25368 msgstr ""
25369
25370 #. type: verbatim
25371 #: ../src/guestfs-actions.pod:1591
25372 #, no-wrap
25373 msgid ""
25374 " char *\n"
25375 " guestfs_file (guestfs_h *g,\n"
25376 "               const char *path);\n"
25377 "\n"
25378 msgstr ""
25379
25380 #. type: textblock
25381 #: ../src/guestfs-actions.pod:1609
25382 msgid ""
25383 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
25384 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
25385 msgstr ""
25386
25387 #. type: =head2
25388 #: ../src/guestfs-actions.pod:1617
25389 msgid "guestfs_file_architecture"
25390 msgstr ""
25391
25392 #. type: verbatim
25393 #: ../src/guestfs-actions.pod:1619
25394 #, no-wrap
25395 msgid ""
25396 " char *\n"
25397 " guestfs_file_architecture (guestfs_h *g,\n"
25398 "                            const char *filename);\n"
25399 "\n"
25400 msgstr ""
25401
25402 #. type: textblock
25403 #: ../src/guestfs-actions.pod:1727 ../src/guestfs-actions.pod:1890
25404 #: ../src/guestfs-actions.pod:1907 ../src/guestfs-actions.pod:2630
25405 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2790
25406 #: ../src/guestfs-actions.pod:2977 ../src/guestfs-actions.pod:2995
25407 #: ../src/guestfs-actions.pod:3035 ../src/guestfs-actions.pod:3110
25408 #: ../src/guestfs-actions.pod:3203 ../src/guestfs-actions.pod:3440
25409 #: ../src/guestfs-actions.pod:3572
25410 msgid "(Added in 1.5.3)"
25411 msgstr ""
25412
25413 #. type: =head2
25414 #: ../src/guestfs-actions.pod:1729
25415 msgid "guestfs_filesize"
25416 msgstr ""
25417
25418 #. type: verbatim
25419 #: ../src/guestfs-actions.pod:1731
25420 #, no-wrap
25421 msgid ""
25422 " int64_t\n"
25423 " guestfs_filesize (guestfs_h *g,\n"
25424 "                   const char *file);\n"
25425 "\n"
25426 msgstr ""
25427
25428 #. type: textblock
25429 #: ../src/guestfs-actions.pod:1737
25430 msgid ""
25431 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
25432 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
25433 "devices, use C<guestfs_blockdev_getsize64>."
25434 msgstr ""
25435
25436 #. type: textblock
25437 #: ../src/guestfs-actions.pod:1743
25438 msgid "(Added in 1.0.82)"
25439 msgstr ""
25440
25441 #. type: =head2
25442 #: ../src/guestfs-actions.pod:1745
25443 msgid "guestfs_fill"
25444 msgstr ""
25445
25446 #. type: verbatim
25447 #: ../src/guestfs-actions.pod:1747
25448 #, no-wrap
25449 msgid ""
25450 " int\n"
25451 " guestfs_fill (guestfs_h *g,\n"
25452 "               int c,\n"
25453 "               int len,\n"
25454 "               const char *path);\n"
25455 "\n"
25456 msgstr ""
25457
25458 #. type: textblock
25459 #: ../src/guestfs-actions.pod:1757
25460 msgid ""
25461 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
25462 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
25463 "bytes use C<guestfs_fill_pattern>."
25464 msgstr ""
25465
25466 #. type: textblock
25467 #: ../src/guestfs-actions.pod:1769
25468 msgid "(Added in 1.0.79)"
25469 msgstr ""
25470
25471 #. type: =head2
25472 #: ../src/guestfs-actions.pod:1771
25473 msgid "guestfs_fill_pattern"
25474 msgstr ""
25475
25476 #. type: verbatim
25477 #: ../src/guestfs-actions.pod:1773
25478 #, no-wrap
25479 msgid ""
25480 " int\n"
25481 " guestfs_fill_pattern (guestfs_h *g,\n"
25482 "                       const char *pattern,\n"
25483 "                       int len,\n"
25484 "                       const char *path);\n"
25485 "\n"
25486 msgstr ""
25487
25488 #. type: textblock
25489 #: ../src/guestfs-actions.pod:1779
25490 msgid ""
25491 "This function is like C<guestfs_fill> except that it creates a new file of "
25492 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
25493 "pattern is truncated if necessary to ensure the length of the file is "
25494 "exactly C<len> bytes."
25495 msgstr ""
25496
25497 #. type: textblock
25498 #: ../src/guestfs-actions.pod:1791
25499 msgid "(Added in 1.3.12)"
25500 msgstr ""
25501
25502 #. type: =head2
25503 #: ../src/guestfs-actions.pod:1793
25504 msgid "guestfs_find"
25505 msgstr ""
25506
25507 #. type: verbatim
25508 #: ../src/guestfs-actions.pod:1795
25509 #, no-wrap
25510 msgid ""
25511 " char **\n"
25512 " guestfs_find (guestfs_h *g,\n"
25513 "               const char *directory);\n"
25514 "\n"
25515 msgstr ""
25516
25517 #. type: textblock
25518 #: ../src/guestfs-actions.pod:1811
25519 msgid ""
25520 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
25521 msgstr ""
25522
25523 #. type: textblock
25524 #: ../src/guestfs-actions.pod:1824
25525 msgid "See also C<guestfs_find0>."
25526 msgstr ""
25527
25528 #. type: textblock
25529 #: ../src/guestfs-actions.pod:1833 ../src/guestfs-actions.pod:4330
25530 #: ../src/guestfs-actions.pod:6040
25531 msgid "(Added in 1.0.27)"
25532 msgstr ""
25533
25534 #. type: =head2
25535 #: ../src/guestfs-actions.pod:1835
25536 msgid "guestfs_find0"
25537 msgstr ""
25538
25539 #. type: verbatim
25540 #: ../src/guestfs-actions.pod:1837
25541 #, no-wrap
25542 msgid ""
25543 " int\n"
25544 " guestfs_find0 (guestfs_h *g,\n"
25545 "                const char *directory,\n"
25546 "                const char *files);\n"
25547 "\n"
25548 msgstr ""
25549
25550 #. type: textblock
25551 #: ../src/guestfs-actions.pod:1846
25552 msgid ""
25553 "This command works the same way as C<guestfs_find> with the following "
25554 "exceptions:"
25555 msgstr ""
25556
25557 #. type: textblock
25558 #: ../src/guestfs-actions.pod:1873
25559 msgid "(Added in 1.0.74)"
25560 msgstr ""
25561
25562 #. type: =head2
25563 #: ../src/guestfs-actions.pod:1875
25564 msgid "guestfs_findfs_label"
25565 msgstr ""
25566
25567 #. type: verbatim
25568 #: ../src/guestfs-actions.pod:1877
25569 #, no-wrap
25570 msgid ""
25571 " char *\n"
25572 " guestfs_findfs_label (guestfs_h *g,\n"
25573 "                       const char *label);\n"
25574 "\n"
25575 msgstr ""
25576
25577 #. type: textblock
25578 #: ../src/guestfs-actions.pod:1885
25579 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
25580 msgstr ""
25581
25582 #. type: =head2
25583 #: ../src/guestfs-actions.pod:1892
25584 msgid "guestfs_findfs_uuid"
25585 msgstr ""
25586
25587 #. type: verbatim
25588 #: ../src/guestfs-actions.pod:1894
25589 #, no-wrap
25590 msgid ""
25591 " char *\n"
25592 " guestfs_findfs_uuid (guestfs_h *g,\n"
25593 "                      const char *uuid);\n"
25594 "\n"
25595 msgstr ""
25596
25597 #. type: textblock
25598 #: ../src/guestfs-actions.pod:1902
25599 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
25600 msgstr ""
25601
25602 #. type: =head2
25603 #: ../src/guestfs-actions.pod:1909
25604 msgid "guestfs_fsck"
25605 msgstr ""
25606
25607 #. type: verbatim
25608 #: ../src/guestfs-actions.pod:1911
25609 #, no-wrap
25610 msgid ""
25611 " int\n"
25612 " guestfs_fsck (guestfs_h *g,\n"
25613 "               const char *fstype,\n"
25614 "               const char *device);\n"
25615 "\n"
25616 msgstr ""
25617
25618 #. type: textblock
25619 #: ../src/guestfs-actions.pod:1946 ../src/guestfs-actions.pod:7815
25620 msgid "(Added in 1.0.16)"
25621 msgstr ""
25622
25623 #. type: =head2
25624 #: ../src/guestfs-actions.pod:1948
25625 msgid "guestfs_get_append"
25626 msgstr ""
25627
25628 #. type: verbatim
25629 #: ../src/guestfs-actions.pod:1950
25630 #, no-wrap
25631 msgid ""
25632 " const char *\n"
25633 " guestfs_get_append (guestfs_h *g);\n"
25634 "\n"
25635 msgstr ""
25636
25637 #. type: textblock
25638 #: ../src/guestfs-actions.pod:1958
25639 msgid ""
25640 "This function returns a string which may be NULL.  There is no way to return "
25641 "an error from this function.  The string is owned by the guest handle and "
25642 "must I<not> be freed."
25643 msgstr ""
25644
25645 #. type: textblock
25646 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:5718
25647 #: ../src/guestfs-actions.pod:6200 ../src/guestfs-actions.pod:6642
25648 #: ../src/guestfs-actions.pod:6661 ../src/guestfs-actions.pod:6677
25649 #: ../src/guestfs-actions.pod:6701 ../src/guestfs-actions.pod:7455
25650 #: ../src/guestfs-actions.pod:7470 ../src/guestfs-actions.pod:7862
25651 msgid "(Added in 1.0.26)"
25652 msgstr ""
25653
25654 #. type: =head2
25655 #: ../src/guestfs-actions.pod:1964
25656 msgid "guestfs_get_attach_method"
25657 msgstr ""
25658
25659 #. type: verbatim
25660 #: ../src/guestfs-actions.pod:1966
25661 #, no-wrap
25662 msgid ""
25663 " char *\n"
25664 " guestfs_get_attach_method (guestfs_h *g);\n"
25665 "\n"
25666 msgstr ""
25667
25668 #. type: textblock
25669 #: ../src/guestfs-actions.pod:1969
25670 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
25671 msgstr ""
25672
25673 #. type: textblock
25674 #: ../src/guestfs-actions.pod:1974 ../src/guestfs-actions.pod:6230
25675 msgid "(Added in 1.9.8)"
25676 msgstr ""
25677
25678 #. type: =head2
25679 #: ../src/guestfs-actions.pod:1976
25680 msgid "guestfs_get_autosync"
25681 msgstr ""
25682
25683 #. type: verbatim
25684 #: ../src/guestfs-actions.pod:1978
25685 #, no-wrap
25686 msgid ""
25687 " int\n"
25688 " guestfs_get_autosync (guestfs_h *g);\n"
25689 "\n"
25690 msgstr ""
25691
25692 #. type: =head2
25693 #: ../src/guestfs-actions.pod:1987
25694 msgid "guestfs_get_direct"
25695 msgstr ""
25696
25697 #. type: verbatim
25698 #: ../src/guestfs-actions.pod:1989
25699 #, no-wrap
25700 msgid ""
25701 " int\n"
25702 " guestfs_get_direct (guestfs_h *g);\n"
25703 "\n"
25704 msgstr ""
25705
25706 #. type: textblock
25707 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:6271
25708 msgid "(Added in 1.0.72)"
25709 msgstr ""
25710
25711 #. type: =head2
25712 #: ../src/guestfs-actions.pod:1998
25713 msgid "guestfs_get_e2label"
25714 msgstr ""
25715
25716 #. type: verbatim
25717 #: ../src/guestfs-actions.pod:2000
25718 #, no-wrap
25719 msgid ""
25720 " char *\n"
25721 " guestfs_get_e2label (guestfs_h *g,\n"
25722 "                      const char *device);\n"
25723 "\n"
25724 msgstr ""
25725
25726 #. type: textblock
25727 #: ../src/guestfs-actions.pod:2004
25728 msgid ""
25729 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
25730 "call instead."
25731 msgstr ""
25732
25733 #. type: textblock
25734 #: ../src/guestfs-actions.pod:2017 ../src/guestfs-actions.pod:2038
25735 #: ../src/guestfs-actions.pod:6289 ../src/guestfs-actions.pod:6308
25736 msgid "(Added in 1.0.15)"
25737 msgstr ""
25738
25739 #. type: =head2
25740 #: ../src/guestfs-actions.pod:2019
25741 msgid "guestfs_get_e2uuid"
25742 msgstr ""
25743
25744 #. type: verbatim
25745 #: ../src/guestfs-actions.pod:2021
25746 #, no-wrap
25747 msgid ""
25748 " char *\n"
25749 " guestfs_get_e2uuid (guestfs_h *g,\n"
25750 "                     const char *device);\n"
25751 "\n"
25752 msgstr ""
25753
25754 #. type: textblock
25755 #: ../src/guestfs-actions.pod:2025
25756 msgid ""
25757 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
25758 "call instead."
25759 msgstr ""
25760
25761 #. type: =head2
25762 #: ../src/guestfs-actions.pod:2040
25763 msgid "guestfs_get_memsize"
25764 msgstr ""
25765
25766 #. type: verbatim
25767 #: ../src/guestfs-actions.pod:2042
25768 #, no-wrap
25769 msgid ""
25770 " int\n"
25771 " guestfs_get_memsize (guestfs_h *g);\n"
25772 "\n"
25773 msgstr ""
25774
25775 #. type: textblock
25776 #: ../src/guestfs-actions.pod:2048
25777 msgid ""
25778 "If C<guestfs_set_memsize> was not called on this handle, and if "
25779 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
25780 "value for memsize."
25781 msgstr ""
25782
25783 #. type: textblock
25784 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:4621
25785 #: ../src/guestfs-actions.pod:4830 ../src/guestfs-actions.pod:4849
25786 #: ../src/guestfs-actions.pod:4868 ../src/guestfs-actions.pod:4880
25787 #: ../src/guestfs-actions.pod:4897 ../src/guestfs-actions.pod:4910
25788 #: ../src/guestfs-actions.pod:5943 ../src/guestfs-actions.pod:6329
25789 #: ../src/guestfs-actions.pod:6609 ../src/guestfs-actions.pod:7224
25790 msgid "(Added in 1.0.55)"
25791 msgstr ""
25792
25793 #. type: =head2
25794 #: ../src/guestfs-actions.pod:2059
25795 msgid "guestfs_get_network"
25796 msgstr ""
25797
25798 #. type: verbatim
25799 #: ../src/guestfs-actions.pod:2061
25800 #, no-wrap
25801 msgid ""
25802 " int\n"
25803 " guestfs_get_network (guestfs_h *g);\n"
25804 "\n"
25805 msgstr ""
25806
25807 #. type: textblock
25808 #: ../src/guestfs-actions.pod:2068 ../src/guestfs-actions.pod:6348
25809 msgid "(Added in 1.5.4)"
25810 msgstr ""
25811
25812 #. type: =head2
25813 #: ../src/guestfs-actions.pod:2070
25814 msgid "guestfs_get_path"
25815 msgstr ""
25816
25817 #. type: verbatim
25818 #: ../src/guestfs-actions.pod:2072
25819 #, no-wrap
25820 msgid ""
25821 " const char *\n"
25822 " guestfs_get_path (guestfs_h *g);\n"
25823 "\n"
25824 msgstr ""
25825
25826 #. type: textblock
25827 #: ../src/guestfs-actions.pod:2080 ../src/guestfs-actions.pod:2120
25828 msgid ""
25829 "This function returns a string, or NULL on error.  The string is owned by "
25830 "the guest handle and must I<not> be freed."
25831 msgstr ""
25832
25833 #. type: =head2
25834 #: ../src/guestfs-actions.pod:2085
25835 msgid "guestfs_get_pgroup"
25836 msgstr ""
25837
25838 #. type: verbatim
25839 #: ../src/guestfs-actions.pod:2087
25840 #, no-wrap
25841 msgid ""
25842 " int\n"
25843 " guestfs_get_pgroup (guestfs_h *g);\n"
25844 "\n"
25845 msgstr ""
25846
25847 #. type: textblock
25848 #: ../src/guestfs-actions.pod:2094 ../src/guestfs-actions.pod:6384
25849 #: ../src/guestfs-actions.pod:7716
25850 #, fuzzy
25851 #| msgid "(Added in 1.5.1)"
25852 msgid "(Added in 1.11.18)"
25853 msgstr "(Додано у 1.5.1)"
25854
25855 #. type: =head2
25856 #: ../src/guestfs-actions.pod:2096
25857 msgid "guestfs_get_pid"
25858 msgstr ""
25859
25860 #. type: verbatim
25861 #: ../src/guestfs-actions.pod:2098
25862 #, no-wrap
25863 msgid ""
25864 " int\n"
25865 " guestfs_get_pid (guestfs_h *g);\n"
25866 "\n"
25867 msgstr ""
25868
25869 #. type: textblock
25870 #: ../src/guestfs-actions.pod:2108
25871 msgid "(Added in 1.0.56)"
25872 msgstr ""
25873
25874 #. type: =head2
25875 #: ../src/guestfs-actions.pod:2110
25876 msgid "guestfs_get_qemu"
25877 msgstr ""
25878
25879 #. type: verbatim
25880 #: ../src/guestfs-actions.pod:2112
25881 #, no-wrap
25882 msgid ""
25883 " const char *\n"
25884 " guestfs_get_qemu (guestfs_h *g);\n"
25885 "\n"
25886 msgstr ""
25887
25888 #. type: textblock
25889 #: ../src/guestfs-actions.pod:2123 ../src/guestfs-actions.pod:6412
25890 msgid "(Added in 1.0.6)"
25891 msgstr ""
25892
25893 #. type: =head2
25894 #: ../src/guestfs-actions.pod:2125
25895 msgid "guestfs_get_recovery_proc"
25896 msgstr ""
25897
25898 #. type: verbatim
25899 #: ../src/guestfs-actions.pod:2127
25900 #, no-wrap
25901 msgid ""
25902 " int\n"
25903 " guestfs_get_recovery_proc (guestfs_h *g);\n"
25904 "\n"
25905 msgstr ""
25906
25907 #. type: textblock
25908 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:3694
25909 #: ../src/guestfs-actions.pod:4025 ../src/guestfs-actions.pod:4428
25910 #: ../src/guestfs-actions.pod:4460 ../src/guestfs-actions.pod:5648
25911 #: ../src/guestfs-actions.pod:5991 ../src/guestfs-actions.pod:6436
25912 #: ../src/guestfs-actions.pod:7127 ../src/guestfs-actions.pod:7147
25913 #: ../src/guestfs-actions.pod:7339
25914 msgid "(Added in 1.0.77)"
25915 msgstr ""
25916
25917 #. type: =head2
25918 #: ../src/guestfs-actions.pod:2136
25919 msgid "guestfs_get_selinux"
25920 msgstr ""
25921
25922 #. type: verbatim
25923 #: ../src/guestfs-actions.pod:2138
25924 #, no-wrap
25925 msgid ""
25926 " int\n"
25927 " guestfs_get_selinux (guestfs_h *g);\n"
25928 "\n"
25929 msgstr ""
25930
25931 #. type: textblock
25932 #: ../src/guestfs-actions.pod:2141
25933 msgid ""
25934 "This returns the current setting of the selinux flag which is passed to the "
25935 "appliance at boot time.  See C<guestfs_set_selinux>."
25936 msgstr ""
25937
25938 #. type: textblock
25939 #: ../src/guestfs-actions.pod:2149 ../src/guestfs-actions.pod:2212
25940 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6513
25941 msgid "(Added in 1.0.67)"
25942 msgstr ""
25943
25944 #. type: =head2
25945 #: ../src/guestfs-actions.pod:2151
25946 msgid "guestfs_get_state"
25947 msgstr ""
25948
25949 #. type: verbatim
25950 #: ../src/guestfs-actions.pod:2153
25951 #, no-wrap
25952 msgid ""
25953 " int\n"
25954 " guestfs_get_state (guestfs_h *g);\n"
25955 "\n"
25956 msgstr ""
25957
25958 #. type: =head2
25959 #: ../src/guestfs-actions.pod:2165
25960 msgid "guestfs_get_trace"
25961 msgstr ""
25962
25963 #. type: verbatim
25964 #: ../src/guestfs-actions.pod:2167
25965 #, no-wrap
25966 msgid ""
25967 " int\n"
25968 " guestfs_get_trace (guestfs_h *g);\n"
25969 "\n"
25970 msgstr ""
25971
25972 #. type: =head2
25973 #: ../src/guestfs-actions.pod:2176
25974 msgid "guestfs_get_umask"
25975 msgstr ""
25976
25977 #. type: verbatim
25978 #: ../src/guestfs-actions.pod:2178
25979 #, no-wrap
25980 msgid ""
25981 " int\n"
25982 " guestfs_get_umask (guestfs_h *g);\n"
25983 "\n"
25984 msgstr ""
25985
25986 #. type: textblock
25987 #: ../src/guestfs-actions.pod:2181
25988 msgid ""
25989 "Return the current umask.  By default the umask is C<022> unless it has been "
25990 "set by calling C<guestfs_umask>."
25991 msgstr ""
25992
25993 #. type: =head2
25994 #: ../src/guestfs-actions.pod:2188
25995 msgid "guestfs_get_verbose"
25996 msgstr ""
25997
25998 #. type: verbatim
25999 #: ../src/guestfs-actions.pod:2190
26000 #, no-wrap
26001 msgid ""
26002 " int\n"
26003 " guestfs_get_verbose (guestfs_h *g);\n"
26004 "\n"
26005 msgstr ""
26006
26007 #. type: =head2
26008 #: ../src/guestfs-actions.pod:2199
26009 msgid "guestfs_getcon"
26010 msgstr ""
26011
26012 #. type: verbatim
26013 #: ../src/guestfs-actions.pod:2201
26014 #, no-wrap
26015 msgid ""
26016 " char *\n"
26017 " guestfs_getcon (guestfs_h *g);\n"
26018 "\n"
26019 msgstr ""
26020
26021 #. type: textblock
26022 #: ../src/guestfs-actions.pod:2206
26023 msgid ""
26024 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
26025 msgstr ""
26026
26027 #. type: =head2
26028 #: ../src/guestfs-actions.pod:2214
26029 msgid "guestfs_getxattr"
26030 msgstr ""
26031
26032 #. type: verbatim
26033 #: ../src/guestfs-actions.pod:2216
26034 #, no-wrap
26035 msgid ""
26036 " char *\n"
26037 " guestfs_getxattr (guestfs_h *g,\n"
26038 "                   const char *path,\n"
26039 "                   const char *name,\n"
26040 "                   size_t *size_r);\n"
26041 "\n"
26042 msgstr ""
26043
26044 #. type: textblock
26045 #: ../src/guestfs-actions.pod:2222
26046 msgid ""
26047 "Get a single extended attribute from file C<path> named C<name>.  This call "
26048 "follows symlinks.  If you want to lookup an extended attribute for the "
26049 "symlink itself, use C<guestfs_lgetxattr>."
26050 msgstr ""
26051
26052 #. type: textblock
26053 #: ../src/guestfs-actions.pod:2226 ../src/guestfs-actions.pod:3708
26054 msgid ""
26055 "Normally it is better to get all extended attributes from a file in one go "
26056 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
26057 "implementations are buggy and do not provide a way to list out attributes.  "
26058 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
26059 "extended attributes you want in advance and call this function."
26060 msgstr ""
26061
26062 #. type: textblock
26063 #: ../src/guestfs-actions.pod:2236
26064 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
26065 msgstr ""
26066
26067 #. type: textblock
26068 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2451
26069 #: ../src/guestfs-actions.pod:2925 ../src/guestfs-actions.pod:3720
26070 #: ../src/guestfs-actions.pod:5641 ../src/guestfs-actions.pod:5667
26071 #: ../src/guestfs-actions.pod:5848
26072 msgid ""
26073 "This function returns a buffer, or NULL on error.  The size of the returned "
26074 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
26075 "after use>."
26076 msgstr ""
26077
26078 #. type: textblock
26079 #: ../src/guestfs-actions.pod:2242 ../src/guestfs-actions.pod:3724
26080 msgid "(Added in 1.7.24)"
26081 msgstr ""
26082
26083 #. type: =head2
26084 #: ../src/guestfs-actions.pod:2244
26085 msgid "guestfs_getxattrs"
26086 msgstr ""
26087
26088 #. type: verbatim
26089 #: ../src/guestfs-actions.pod:2246
26090 #, no-wrap
26091 msgid ""
26092 " struct guestfs_xattr_list *\n"
26093 " guestfs_getxattrs (guestfs_h *g,\n"
26094 "                    const char *path);\n"
26095 "\n"
26096 msgstr ""
26097
26098 #. type: textblock
26099 #: ../src/guestfs-actions.pod:2256
26100 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
26101 msgstr ""
26102
26103 #. type: textblock
26104 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:3736
26105 #: ../src/guestfs-actions.pod:4424
26106 msgid ""
26107 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
26108 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
26109 msgstr ""
26110
26111 #. type: textblock
26112 #: ../src/guestfs-actions.pod:2262 ../src/guestfs-actions.pod:3740
26113 #: ../src/guestfs-actions.pod:3939 ../src/guestfs-actions.pod:3975
26114 #: ../src/guestfs-actions.pod:6021 ../src/guestfs-actions.pod:6532
26115 #: ../src/guestfs-actions.pod:7927
26116 msgid "(Added in 1.0.59)"
26117 msgstr ""
26118
26119 #. type: =head2
26120 #: ../src/guestfs-actions.pod:2264
26121 msgid "guestfs_glob_expand"
26122 msgstr ""
26123
26124 #. type: verbatim
26125 #: ../src/guestfs-actions.pod:2266
26126 #, no-wrap
26127 msgid ""
26128 " char **\n"
26129 " guestfs_glob_expand (guestfs_h *g,\n"
26130 "                      const char *pattern);\n"
26131 "\n"
26132 msgstr ""
26133
26134 #. type: textblock
26135 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:6725
26136 #: ../src/guestfs-actions.pod:6742
26137 msgid "(Added in 1.0.50)"
26138 msgstr ""
26139
26140 #. type: =head2
26141 #: ../src/guestfs-actions.pod:2287
26142 msgid "guestfs_grep"
26143 msgstr ""
26144
26145 #. type: verbatim
26146 #: ../src/guestfs-actions.pod:2289
26147 #, no-wrap
26148 msgid ""
26149 " char **\n"
26150 " guestfs_grep (guestfs_h *g,\n"
26151 "               const char *regex,\n"
26152 "               const char *path);\n"
26153 "\n"
26154 msgstr ""
26155
26156 #. type: =head2
26157 #: ../src/guestfs-actions.pod:2306
26158 msgid "guestfs_grepi"
26159 msgstr ""
26160
26161 #. type: verbatim
26162 #: ../src/guestfs-actions.pod:2308
26163 #, no-wrap
26164 msgid ""
26165 " char **\n"
26166 " guestfs_grepi (guestfs_h *g,\n"
26167 "                const char *regex,\n"
26168 "                const char *path);\n"
26169 "\n"
26170 msgstr ""
26171
26172 #. type: =head2
26173 #: ../src/guestfs-actions.pod:2325
26174 msgid "guestfs_grub_install"
26175 msgstr ""
26176
26177 #. type: verbatim
26178 #: ../src/guestfs-actions.pod:2327
26179 #, no-wrap
26180 msgid ""
26181 " int\n"
26182 " guestfs_grub_install (guestfs_h *g,\n"
26183 "                       const char *root,\n"
26184 "                       const char *device);\n"
26185 "\n"
26186 msgstr ""
26187
26188 #. type: textblock
26189 #: ../src/guestfs-actions.pod:2370
26190 msgid "(Added in 1.0.17)"
26191 msgstr ""
26192
26193 #. type: =head2
26194 #: ../src/guestfs-actions.pod:2372
26195 msgid "guestfs_head"
26196 msgstr ""
26197
26198 #. type: verbatim
26199 #: ../src/guestfs-actions.pod:2374
26200 #, no-wrap
26201 msgid ""
26202 " char **\n"
26203 " guestfs_head (guestfs_h *g,\n"
26204 "               const char *path);\n"
26205 "\n"
26206 msgstr ""
26207
26208 #. type: =head2
26209 #: ../src/guestfs-actions.pod:2390
26210 msgid "guestfs_head_n"
26211 msgstr ""
26212
26213 #. type: verbatim
26214 #: ../src/guestfs-actions.pod:2392
26215 #, no-wrap
26216 msgid ""
26217 " char **\n"
26218 " guestfs_head_n (guestfs_h *g,\n"
26219 "                 int nrlines,\n"
26220 "                 const char *path);\n"
26221 "\n"
26222 msgstr ""
26223
26224 #. type: =head2
26225 #: ../src/guestfs-actions.pod:2414
26226 msgid "guestfs_hexdump"
26227 msgstr ""
26228
26229 #. type: verbatim
26230 #: ../src/guestfs-actions.pod:2416
26231 #, no-wrap
26232 msgid ""
26233 " char *\n"
26234 " guestfs_hexdump (guestfs_h *g,\n"
26235 "                  const char *path);\n"
26236 "\n"
26237 msgstr ""
26238
26239 #. type: textblock
26240 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:6806
26241 #: ../src/guestfs-actions.pod:6861
26242 msgid "(Added in 1.0.22)"
26243 msgstr ""
26244
26245 #. type: =head2
26246 #: ../src/guestfs-actions.pod:2431
26247 msgid "guestfs_initrd_cat"
26248 msgstr ""
26249
26250 #. type: verbatim
26251 #: ../src/guestfs-actions.pod:2433
26252 #, no-wrap
26253 msgid ""
26254 " char *\n"
26255 " guestfs_initrd_cat (guestfs_h *g,\n"
26256 "                     const char *initrdpath,\n"
26257 "                     const char *filename,\n"
26258 "                     size_t *size_r);\n"
26259 "\n"
26260 msgstr ""
26261
26262 #. type: textblock
26263 #: ../src/guestfs-actions.pod:2449
26264 msgid "See also C<guestfs_initrd_list>."
26265 msgstr ""
26266
26267 #. type: =head2
26268 #: ../src/guestfs-actions.pod:2460
26269 msgid "guestfs_initrd_list"
26270 msgstr ""
26271
26272 #. type: verbatim
26273 #: ../src/guestfs-actions.pod:2462
26274 #, no-wrap
26275 msgid ""
26276 " char **\n"
26277 " guestfs_initrd_list (guestfs_h *g,\n"
26278 "                      const char *path);\n"
26279 "\n"
26280 msgstr ""
26281
26282 #. type: =head2
26283 #: ../src/guestfs-actions.pod:2482
26284 msgid "guestfs_inotify_add_watch"
26285 msgstr ""
26286
26287 #. type: verbatim
26288 #: ../src/guestfs-actions.pod:2484
26289 #, no-wrap
26290 msgid ""
26291 " int64_t\n"
26292 " guestfs_inotify_add_watch (guestfs_h *g,\n"
26293 "                            const char *path,\n"
26294 "                            int mask);\n"
26295 "\n"
26296 msgstr ""
26297
26298 #. type: =head2
26299 #: ../src/guestfs-actions.pod:2503
26300 msgid "guestfs_inotify_close"
26301 msgstr ""
26302
26303 #. type: verbatim
26304 #: ../src/guestfs-actions.pod:2505
26305 #, no-wrap
26306 msgid ""
26307 " int\n"
26308 " guestfs_inotify_close (guestfs_h *g);\n"
26309 "\n"
26310 msgstr ""
26311
26312 #. type: =head2
26313 #: ../src/guestfs-actions.pod:2516
26314 msgid "guestfs_inotify_files"
26315 msgstr ""
26316
26317 #. type: verbatim
26318 #: ../src/guestfs-actions.pod:2518
26319 #, no-wrap
26320 msgid ""
26321 " char **\n"
26322 " guestfs_inotify_files (guestfs_h *g);\n"
26323 "\n"
26324 msgstr ""
26325
26326 #. type: textblock
26327 #: ../src/guestfs-actions.pod:2521
26328 msgid ""
26329 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
26330 "returns a list of pathnames of objects that were touched.  The returned "
26331 "pathnames are sorted and deduplicated."
26332 msgstr ""
26333
26334 #. type: =head2
26335 #: ../src/guestfs-actions.pod:2531
26336 msgid "guestfs_inotify_init"
26337 msgstr ""
26338
26339 #. type: verbatim
26340 #: ../src/guestfs-actions.pod:2533
26341 #, no-wrap
26342 msgid ""
26343 " int\n"
26344 " guestfs_inotify_init (guestfs_h *g,\n"
26345 "                       int maxevents);\n"
26346 "\n"
26347 msgstr ""
26348
26349 #. type: textblock
26350 #: ../src/guestfs-actions.pod:2541
26351 msgid ""
26352 "C<maxevents> is the maximum number of events which will be queued up between "
26353 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
26354 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
26355 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
26356 "throws away events, but records the fact that it threw them away by setting "
26357 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
26358 "C<guestfs_inotify_read>)."
26359 msgstr ""
26360
26361 #. type: textblock
26362 #: ../src/guestfs-actions.pod:2551
26363 msgid ""
26364 "Before any events are generated, you have to add some watches to the "
26365 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
26366 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
26367 msgstr ""
26368
26369 #. type: textblock
26370 #: ../src/guestfs-actions.pod:2557
26371 msgid ""
26372 "Queued up events should be read periodically by calling "
26373 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
26374 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
26375 "often enough then you risk the internal queue overflowing."
26376 msgstr ""
26377
26378 #. type: textblock
26379 #: ../src/guestfs-actions.pod:2564
26380 msgid ""
26381 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
26382 "This also removes any watches automatically."
26383 msgstr ""
26384
26385 #. type: =head2
26386 #: ../src/guestfs-actions.pod:2577
26387 msgid "guestfs_inotify_read"
26388 msgstr ""
26389
26390 #. type: verbatim
26391 #: ../src/guestfs-actions.pod:2579
26392 #, no-wrap
26393 msgid ""
26394 " struct guestfs_inotify_event_list *\n"
26395 " guestfs_inotify_read (guestfs_h *g);\n"
26396 "\n"
26397 msgstr ""
26398
26399 #. type: textblock
26400 #: ../src/guestfs-actions.pod:2593
26401 msgid ""
26402 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
26403 "there was an error.  I<The caller must call "
26404 "C<guestfs_free_inotify_event_list> after use>."
26405 msgstr ""
26406
26407 #. type: =head2
26408 #: ../src/guestfs-actions.pod:2599
26409 msgid "guestfs_inotify_rm_watch"
26410 msgstr ""
26411
26412 #. type: verbatim
26413 #: ../src/guestfs-actions.pod:2601
26414 #, no-wrap
26415 msgid ""
26416 " int\n"
26417 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
26418 "                           int wd);\n"
26419 "\n"
26420 msgstr ""
26421
26422 #. type: textblock
26423 #: ../src/guestfs-actions.pod:2605
26424 msgid ""
26425 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
26426 msgstr ""
26427
26428 #. type: =head2
26429 #: ../src/guestfs-actions.pod:2612
26430 msgid "guestfs_inspect_get_arch"
26431 msgstr ""
26432
26433 #. type: verbatim
26434 #: ../src/guestfs-actions.pod:2614
26435 #, no-wrap
26436 msgid ""
26437 " char *\n"
26438 " guestfs_inspect_get_arch (guestfs_h *g,\n"
26439 "                           const char *root);\n"
26440 "\n"
26441 msgstr ""
26442
26443 #. type: textblock
26444 #: ../src/guestfs-actions.pod:2618
26445 msgid ""
26446 "This returns the architecture of the inspected operating system.  The "
26447 "possible return values are listed under C<guestfs_file_architecture>."
26448 msgstr ""
26449
26450 #. type: =head2
26451 #: ../src/guestfs-actions.pod:2632
26452 msgid "guestfs_inspect_get_distro"
26453 msgstr ""
26454
26455 #. type: verbatim
26456 #: ../src/guestfs-actions.pod:2634
26457 #, no-wrap
26458 msgid ""
26459 " char *\n"
26460 " guestfs_inspect_get_distro (guestfs_h *g,\n"
26461 "                             const char *root);\n"
26462 "\n"
26463 msgstr ""
26464
26465 #. type: =head2
26466 #: ../src/guestfs-actions.pod:2726
26467 msgid "guestfs_inspect_get_drive_mappings"
26468 msgstr ""
26469
26470 #. type: verbatim
26471 #: ../src/guestfs-actions.pod:2728
26472 #, no-wrap
26473 msgid ""
26474 " char **\n"
26475 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
26476 "                                     const char *root);\n"
26477 "\n"
26478 msgstr ""
26479
26480 #. type: textblock
26481 #: ../src/guestfs-actions.pod:2757
26482 msgid ""
26483 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26484 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
26485 msgstr ""
26486
26487 #. type: textblock
26488 #: ../src/guestfs-actions.pod:2761 ../src/guestfs-actions.pod:3029
26489 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:5109
26490 #: ../src/guestfs-actions.pod:7163
26491 msgid ""
26492 "This function returns a NULL-terminated array of strings, or NULL if there "
26493 "was an error.  The array of strings will always have length C<2n+1>, where "
26494 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
26495 "caller must free the strings and the array after use>."
26496 msgstr ""
26497
26498 #. type: textblock
26499 #: ../src/guestfs-actions.pod:2767 ../src/guestfs-actions.pod:3223
26500 msgid "(Added in 1.9.17)"
26501 msgstr ""
26502
26503 #. type: =head2
26504 #: ../src/guestfs-actions.pod:2769
26505 msgid "guestfs_inspect_get_filesystems"
26506 msgstr ""
26507
26508 #. type: verbatim
26509 #: ../src/guestfs-actions.pod:2771
26510 #, no-wrap
26511 msgid ""
26512 " char **\n"
26513 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
26514 "                                  const char *root);\n"
26515 "\n"
26516 msgstr ""
26517
26518 #. type: textblock
26519 #: ../src/guestfs-actions.pod:2783
26520 msgid ""
26521 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26522 "C<guestfs_inspect_get_mountpoints>."
26523 msgstr ""
26524
26525 #. type: =head2
26526 #: ../src/guestfs-actions.pod:2792
26527 msgid "guestfs_inspect_get_format"
26528 msgstr ""
26529
26530 #. type: verbatim
26531 #: ../src/guestfs-actions.pod:2794
26532 #, no-wrap
26533 msgid ""
26534 " char *\n"
26535 " guestfs_inspect_get_format (guestfs_h *g,\n"
26536 "                             const char *root);\n"
26537 "\n"
26538 msgstr ""
26539
26540 #. type: textblock
26541 #: ../src/guestfs-actions.pod:2828 ../src/guestfs-actions.pod:3259
26542 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3293
26543 #: ../src/guestfs-actions.pod:6059
26544 msgid "(Added in 1.9.4)"
26545 msgstr ""
26546
26547 #. type: =head2
26548 #: ../src/guestfs-actions.pod:2830
26549 msgid "guestfs_inspect_get_hostname"
26550 msgstr ""
26551
26552 #. type: verbatim
26553 #: ../src/guestfs-actions.pod:2832
26554 #, no-wrap
26555 msgid ""
26556 " char *\n"
26557 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
26558 "                               const char *root);\n"
26559 "\n"
26560 msgstr ""
26561
26562 #. type: textblock
26563 #: ../src/guestfs-actions.pod:2847
26564 msgid "(Added in 1.7.9)"
26565 msgstr ""
26566
26567 #. type: =head2
26568 #: ../src/guestfs-actions.pod:2849
26569 msgid "guestfs_inspect_get_icon"
26570 msgstr ""
26571
26572 #. type: verbatim
26573 #: ../src/guestfs-actions.pod:2851
26574 #, no-wrap
26575 msgid ""
26576 " char *\n"
26577 " guestfs_inspect_get_icon (guestfs_h *g,\n"
26578 "                           const char *root,\n"
26579 "                           size_t *size_r,\n"
26580 "                           ...);\n"
26581 "\n"
26582 msgstr ""
26583
26584 #. type: verbatim
26585 #: ../src/guestfs-actions.pod:2862
26586 #, no-wrap
26587 msgid ""
26588 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
26589 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
26590 "\n"
26591 msgstr ""
26592
26593 #. type: textblock
26594 #: ../src/guestfs-actions.pod:2929 ../src/guestfs-actions.pod:3754
26595 #: ../src/guestfs-actions.pod:5008
26596 msgid "(Added in 1.11.12)"
26597 msgstr ""
26598
26599 #. type: =head2
26600 #: ../src/guestfs-actions.pod:2931
26601 msgid "guestfs_inspect_get_icon_va"
26602 msgstr ""
26603
26604 #. type: verbatim
26605 #: ../src/guestfs-actions.pod:2933
26606 #, no-wrap
26607 msgid ""
26608 " char *\n"
26609 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
26610 "                              const char *root,\n"
26611 "                              size_t *size_r,\n"
26612 "                              va_list args);\n"
26613 "\n"
26614 msgstr ""
26615
26616 #. type: textblock
26617 #: ../src/guestfs-actions.pod:2939
26618 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
26619 msgstr ""
26620
26621 #. type: =head2
26622 #: ../src/guestfs-actions.pod:2943
26623 msgid "guestfs_inspect_get_icon_argv"
26624 msgstr ""
26625
26626 #. type: verbatim
26627 #: ../src/guestfs-actions.pod:2945
26628 #, no-wrap
26629 msgid ""
26630 " char *\n"
26631 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
26632 "                                const char *root,\n"
26633 "                                size_t *size_r,\n"
26634 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
26635 "\n"
26636 msgstr ""
26637
26638 #. type: textblock
26639 #: ../src/guestfs-actions.pod:2951
26640 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
26641 msgstr ""
26642
26643 #. type: =head2
26644 #: ../src/guestfs-actions.pod:2955
26645 msgid "guestfs_inspect_get_major_version"
26646 msgstr ""
26647
26648 #. type: verbatim
26649 #: ../src/guestfs-actions.pod:2957
26650 #, no-wrap
26651 msgid ""
26652 " int\n"
26653 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
26654 "                                    const char *root);\n"
26655 "\n"
26656 msgstr ""
26657
26658 #. type: =head2
26659 #: ../src/guestfs-actions.pod:2979
26660 msgid "guestfs_inspect_get_minor_version"
26661 msgstr ""
26662
26663 #. type: verbatim
26664 #: ../src/guestfs-actions.pod:2981
26665 #, no-wrap
26666 msgid ""
26667 " int\n"
26668 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
26669 "                                    const char *root);\n"
26670 "\n"
26671 msgstr ""
26672
26673 #. type: textblock
26674 #: ../src/guestfs-actions.pod:2990
26675 msgid ""
26676 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26677 "C<guestfs_inspect_get_major_version>."
26678 msgstr ""
26679
26680 #. type: =head2
26681 #: ../src/guestfs-actions.pod:2997
26682 msgid "guestfs_inspect_get_mountpoints"
26683 msgstr ""
26684
26685 #. type: verbatim
26686 #: ../src/guestfs-actions.pod:2999
26687 #, no-wrap
26688 msgid ""
26689 " char **\n"
26690 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
26691 "                                  const char *root);\n"
26692 "\n"
26693 msgstr ""
26694
26695 #. type: textblock
26696 #: ../src/guestfs-actions.pod:3020
26697 msgid ""
26698 "For operating systems like Windows which still use drive letters, this call "
26699 "will only return an entry for the first drive \"mounted on\" C</>.  For "
26700 "information about the mapping of drive letters to partitions, see "
26701 "C<guestfs_inspect_get_drive_mappings>."
26702 msgstr ""
26703
26704 #. type: textblock
26705 #: ../src/guestfs-actions.pod:3026
26706 msgid ""
26707 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26708 "C<guestfs_inspect_get_filesystems>."
26709 msgstr ""
26710
26711 #. type: =head2
26712 #: ../src/guestfs-actions.pod:3037
26713 msgid "guestfs_inspect_get_package_format"
26714 msgstr ""
26715
26716 #. type: verbatim
26717 #: ../src/guestfs-actions.pod:3039
26718 #, no-wrap
26719 msgid ""
26720 " char *\n"
26721 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
26722 "                                     const char *root);\n"
26723 "\n"
26724 msgstr ""
26725
26726 #. type: textblock
26727 #: ../src/guestfs-actions.pod:3043
26728 msgid ""
26729 "This function and C<guestfs_inspect_get_package_management> return the "
26730 "package format and package management tool used by the inspected operating "
26731 "system.  For example for Fedora these functions would return C<rpm> (package "
26732 "format) and C<yum> (package management)."
26733 msgstr ""
26734
26735 #. type: textblock
26736 #: ../src/guestfs-actions.pod:3061 ../src/guestfs-actions.pod:3089
26737 msgid "(Added in 1.7.5)"
26738 msgstr ""
26739
26740 #. type: =head2
26741 #: ../src/guestfs-actions.pod:3063
26742 msgid "guestfs_inspect_get_package_management"
26743 msgstr ""
26744
26745 #. type: verbatim
26746 #: ../src/guestfs-actions.pod:3065
26747 #, no-wrap
26748 msgid ""
26749 " char *\n"
26750 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
26751 "                                         const char *root);\n"
26752 "\n"
26753 msgstr ""
26754
26755 #. type: textblock
26756 #: ../src/guestfs-actions.pod:3069
26757 msgid ""
26758 "C<guestfs_inspect_get_package_format> and this function return the package "
26759 "format and package management tool used by the inspected operating system.  "
26760 "For example for Fedora these functions would return C<rpm> (package format) "
26761 "and C<yum> (package management)."
26762 msgstr ""
26763
26764 #. type: =head2
26765 #: ../src/guestfs-actions.pod:3091
26766 msgid "guestfs_inspect_get_product_name"
26767 msgstr ""
26768
26769 #. type: verbatim
26770 #: ../src/guestfs-actions.pod:3093
26771 #, no-wrap
26772 msgid ""
26773 " char *\n"
26774 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
26775 "                                   const char *root);\n"
26776 "\n"
26777 msgstr ""
26778
26779 #. type: =head2
26780 #: ../src/guestfs-actions.pod:3112
26781 msgid "guestfs_inspect_get_product_variant"
26782 msgstr ""
26783
26784 #. type: verbatim
26785 #: ../src/guestfs-actions.pod:3114
26786 #, no-wrap
26787 msgid ""
26788 " char *\n"
26789 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
26790 "                                      const char *root);\n"
26791 "\n"
26792 msgstr ""
26793
26794 #. type: textblock
26795 #: ../src/guestfs-actions.pod:3137
26796 msgid ""
26797 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
26798 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
26799 msgstr ""
26800
26801 #. type: textblock
26802 #: ../src/guestfs-actions.pod:3144
26803 msgid "(Added in 1.9.13)"
26804 msgstr ""
26805
26806 #. type: =head2
26807 #: ../src/guestfs-actions.pod:3146
26808 msgid "guestfs_inspect_get_roots"
26809 msgstr ""
26810
26811 #. type: verbatim
26812 #: ../src/guestfs-actions.pod:3148
26813 #, no-wrap
26814 msgid ""
26815 " char **\n"
26816 " guestfs_inspect_get_roots (guestfs_h *g);\n"
26817 "\n"
26818 msgstr ""
26819
26820 #. type: textblock
26821 #: ../src/guestfs-actions.pod:3151
26822 msgid ""
26823 "This function is a convenient way to get the list of root devices, as "
26824 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
26825 "the whole inspection process."
26826 msgstr ""
26827
26828 #. type: textblock
26829 #: ../src/guestfs-actions.pod:3155
26830 msgid ""
26831 "This returns an empty list if either no root devices were found or the "
26832 "caller has not called C<guestfs_inspect_os>."
26833 msgstr ""
26834
26835 #. type: textblock
26836 #: ../src/guestfs-actions.pod:3164
26837 msgid "(Added in 1.7.3)"
26838 msgstr ""
26839
26840 #. type: =head2
26841 #: ../src/guestfs-actions.pod:3166
26842 msgid "guestfs_inspect_get_type"
26843 msgstr ""
26844
26845 #. type: verbatim
26846 #: ../src/guestfs-actions.pod:3168
26847 #, no-wrap
26848 msgid ""
26849 " char *\n"
26850 " guestfs_inspect_get_type (guestfs_h *g,\n"
26851 "                           const char *root);\n"
26852 "\n"
26853 msgstr ""
26854
26855 #. type: =head2
26856 #: ../src/guestfs-actions.pod:3205
26857 msgid "guestfs_inspect_get_windows_current_control_set"
26858 msgstr ""
26859
26860 #. type: verbatim
26861 #: ../src/guestfs-actions.pod:3207
26862 #, no-wrap
26863 msgid ""
26864 " char *\n"
26865 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
26866 "                                                  const char *root);\n"
26867 "\n"
26868 msgstr ""
26869
26870 #. type: =head2
26871 #: ../src/guestfs-actions.pod:3225
26872 msgid "guestfs_inspect_get_windows_systemroot"
26873 msgstr ""
26874
26875 #. type: verbatim
26876 #: ../src/guestfs-actions.pod:3227
26877 #, no-wrap
26878 msgid ""
26879 " char *\n"
26880 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
26881 "                                         const char *root);\n"
26882 "\n"
26883 msgstr ""
26884
26885 #. type: textblock
26886 #: ../src/guestfs-actions.pod:3243
26887 msgid "(Added in 1.5.25)"
26888 msgstr ""
26889
26890 #. type: =head2
26891 #: ../src/guestfs-actions.pod:3245
26892 msgid "guestfs_inspect_is_live"
26893 msgstr ""
26894
26895 #. type: verbatim
26896 #: ../src/guestfs-actions.pod:3247
26897 #, no-wrap
26898 msgid ""
26899 " int\n"
26900 " guestfs_inspect_is_live (guestfs_h *g,\n"
26901 "                          const char *root);\n"
26902 "\n"
26903 msgstr ""
26904
26905 #. type: textblock
26906 #: ../src/guestfs-actions.pod:3251
26907 msgid ""
26908 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26909 "disk), then this returns true if a live image was detected on the disk."
26910 msgstr ""
26911
26912 #. type: =head2
26913 #: ../src/guestfs-actions.pod:3261
26914 msgid "guestfs_inspect_is_multipart"
26915 msgstr ""
26916
26917 #. type: verbatim
26918 #: ../src/guestfs-actions.pod:3263
26919 #, no-wrap
26920 msgid ""
26921 " int\n"
26922 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
26923 "                               const char *root);\n"
26924 "\n"
26925 msgstr ""
26926
26927 #. type: textblock
26928 #: ../src/guestfs-actions.pod:3267
26929 msgid ""
26930 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26931 "disk), then this returns true if the disk is part of a set."
26932 msgstr ""
26933
26934 #. type: =head2
26935 #: ../src/guestfs-actions.pod:3277
26936 msgid "guestfs_inspect_is_netinst"
26937 msgstr ""
26938
26939 #. type: verbatim
26940 #: ../src/guestfs-actions.pod:3279
26941 #, no-wrap
26942 msgid ""
26943 " int\n"
26944 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
26945 "                             const char *root);\n"
26946 "\n"
26947 msgstr ""
26948
26949 #. type: textblock
26950 #: ../src/guestfs-actions.pod:3283
26951 msgid ""
26952 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
26953 "disk), then this returns true if the disk is a network installer, ie. not a "
26954 "self-contained install CD but one which is likely to require network access "
26955 "to complete the install."
26956 msgstr ""
26957
26958 #. type: =head2
26959 #: ../src/guestfs-actions.pod:3295
26960 msgid "guestfs_inspect_list_applications"
26961 msgstr ""
26962
26963 #. type: verbatim
26964 #: ../src/guestfs-actions.pod:3297
26965 #, no-wrap
26966 msgid ""
26967 " struct guestfs_application_list *\n"
26968 " guestfs_inspect_list_applications (guestfs_h *g,\n"
26969 "                                    const char *root);\n"
26970 "\n"
26971 msgstr ""
26972
26973 #. type: textblock
26974 #: ../src/guestfs-actions.pod:3303
26975 msgid ""
26976 "I<Note:> This call works differently from other parts of the inspection "
26977 "API.  You have to call C<guestfs_inspect_os>, then "
26978 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
26979 "this.  Listing applications is a significantly more difficult operation "
26980 "which requires access to the full filesystem.  Also note that unlike the "
26981 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
26982 "the libguestfs handle, this call actually reads parts of the mounted "
26983 "filesystems during the call."
26984 msgstr ""
26985
26986 #. type: textblock
26987 #: ../src/guestfs-actions.pod:3393
26988 msgid ""
26989 "This function returns a C<struct guestfs_application_list *>, or NULL if "
26990 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
26991 "after use>."
26992 msgstr ""
26993
26994 #. type: textblock
26995 #: ../src/guestfs-actions.pod:3397
26996 msgid "(Added in 1.7.8)"
26997 msgstr ""
26998
26999 #. type: =head2
27000 #: ../src/guestfs-actions.pod:3399
27001 msgid "guestfs_inspect_os"
27002 msgstr ""
27003
27004 #. type: verbatim
27005 #: ../src/guestfs-actions.pod:3401
27006 #, no-wrap
27007 msgid ""
27008 " char **\n"
27009 " guestfs_inspect_os (guestfs_h *g);\n"
27010 "\n"
27011 msgstr ""
27012
27013 #. type: textblock
27014 #: ../src/guestfs-actions.pod:3417
27015 msgid ""
27016 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
27017 "functions in order to query further information about each operating system, "
27018 "such as the name and version."
27019 msgstr ""
27020
27021 #. type: textblock
27022 #: ../src/guestfs-actions.pod:3422
27023 msgid ""
27024 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
27025 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
27026 "the contents.  This should be called with no disks currently mounted.  The "
27027 "function may also use Augeas, so any existing Augeas handle will be closed."
27028 msgstr ""
27029
27030 #. type: textblock
27031 #: ../src/guestfs-actions.pod:3434 ../src/guestfs-actions.pod:3765
27032 #: ../src/guestfs-actions.pod:3847
27033 msgid "See also C<guestfs_list_filesystems>."
27034 msgstr ""
27035
27036 #. type: =head2
27037 #: ../src/guestfs-actions.pod:3442
27038 msgid "guestfs_is_blockdev"
27039 msgstr ""
27040
27041 #. type: verbatim
27042 #: ../src/guestfs-actions.pod:3444
27043 #, no-wrap
27044 msgid ""
27045 " int\n"
27046 " guestfs_is_blockdev (guestfs_h *g,\n"
27047 "                      const char *path);\n"
27048 "\n"
27049 msgstr ""
27050
27051 #. type: textblock
27052 #: ../src/guestfs-actions.pod:3451 ../src/guestfs-actions.pod:3480
27053 #: ../src/guestfs-actions.pod:3510 ../src/guestfs-actions.pod:3525
27054 #: ../src/guestfs-actions.pod:3541 ../src/guestfs-actions.pod:3597
27055 #: ../src/guestfs-actions.pod:3612
27056 msgid "See also C<guestfs_stat>."
27057 msgstr ""
27058
27059 #. type: textblock
27060 #: ../src/guestfs-actions.pod:3455 ../src/guestfs-actions.pod:3484
27061 #: ../src/guestfs-actions.pod:3529 ../src/guestfs-actions.pod:3601
27062 #: ../src/guestfs-actions.pod:3616
27063 msgid "(Added in 1.5.10)"
27064 msgstr ""
27065
27066 #. type: =head2
27067 #: ../src/guestfs-actions.pod:3457
27068 msgid "guestfs_is_busy"
27069 msgstr ""
27070
27071 #. type: verbatim
27072 #: ../src/guestfs-actions.pod:3459
27073 #, no-wrap
27074 msgid ""
27075 " int\n"
27076 " guestfs_is_busy (guestfs_h *g);\n"
27077 "\n"
27078 msgstr ""
27079
27080 #. type: =head2
27081 #: ../src/guestfs-actions.pod:3471
27082 msgid "guestfs_is_chardev"
27083 msgstr ""
27084
27085 #. type: verbatim
27086 #: ../src/guestfs-actions.pod:3473
27087 #, no-wrap
27088 msgid ""
27089 " int\n"
27090 " guestfs_is_chardev (guestfs_h *g,\n"
27091 "                     const char *path);\n"
27092 "\n"
27093 msgstr ""
27094
27095 #. type: =head2
27096 #: ../src/guestfs-actions.pod:3486
27097 msgid "guestfs_is_config"
27098 msgstr ""
27099
27100 #. type: verbatim
27101 #: ../src/guestfs-actions.pod:3488
27102 #, no-wrap
27103 msgid ""
27104 " int\n"
27105 " guestfs_is_config (guestfs_h *g);\n"
27106 "\n"
27107 msgstr ""
27108
27109 #. type: =head2
27110 #: ../src/guestfs-actions.pod:3500
27111 msgid "guestfs_is_dir"
27112 msgstr ""
27113
27114 #. type: verbatim
27115 #: ../src/guestfs-actions.pod:3502
27116 #, no-wrap
27117 msgid ""
27118 " int\n"
27119 " guestfs_is_dir (guestfs_h *g,\n"
27120 "                 const char *path);\n"
27121 "\n"
27122 msgstr ""
27123
27124 #. type: =head2
27125 #: ../src/guestfs-actions.pod:3516
27126 msgid "guestfs_is_fifo"
27127 msgstr ""
27128
27129 #. type: verbatim
27130 #: ../src/guestfs-actions.pod:3518
27131 #, no-wrap
27132 msgid ""
27133 " int\n"
27134 " guestfs_is_fifo (guestfs_h *g,\n"
27135 "                  const char *path);\n"
27136 "\n"
27137 msgstr ""
27138
27139 #. type: =head2
27140 #: ../src/guestfs-actions.pod:3531
27141 msgid "guestfs_is_file"
27142 msgstr ""
27143
27144 #. type: verbatim
27145 #: ../src/guestfs-actions.pod:3533
27146 #, no-wrap
27147 msgid ""
27148 " int\n"
27149 " guestfs_is_file (guestfs_h *g,\n"
27150 "                  const char *path);\n"
27151 "\n"
27152 msgstr ""
27153
27154 #. type: =head2
27155 #: ../src/guestfs-actions.pod:3547
27156 msgid "guestfs_is_launching"
27157 msgstr ""
27158
27159 #. type: verbatim
27160 #: ../src/guestfs-actions.pod:3549
27161 #, no-wrap
27162 msgid ""
27163 " int\n"
27164 " guestfs_is_launching (guestfs_h *g);\n"
27165 "\n"
27166 msgstr ""
27167
27168 #. type: =head2
27169 #: ../src/guestfs-actions.pod:3561
27170 msgid "guestfs_is_lv"
27171 msgstr ""
27172
27173 #. type: verbatim
27174 #: ../src/guestfs-actions.pod:3563
27175 #, no-wrap
27176 msgid ""
27177 " int\n"
27178 " guestfs_is_lv (guestfs_h *g,\n"
27179 "                const char *device);\n"
27180 "\n"
27181 msgstr ""
27182
27183 #. type: =head2
27184 #: ../src/guestfs-actions.pod:3574
27185 msgid "guestfs_is_ready"
27186 msgstr ""
27187
27188 #. type: verbatim
27189 #: ../src/guestfs-actions.pod:3576
27190 #, no-wrap
27191 msgid ""
27192 " int\n"
27193 " guestfs_is_ready (guestfs_h *g);\n"
27194 "\n"
27195 msgstr ""
27196
27197 #. type: =head2
27198 #: ../src/guestfs-actions.pod:3588
27199 msgid "guestfs_is_socket"
27200 msgstr ""
27201
27202 #. type: verbatim
27203 #: ../src/guestfs-actions.pod:3590
27204 #, no-wrap
27205 msgid ""
27206 " int\n"
27207 " guestfs_is_socket (guestfs_h *g,\n"
27208 "                    const char *path);\n"
27209 "\n"
27210 msgstr ""
27211
27212 #. type: =head2
27213 #: ../src/guestfs-actions.pod:3603
27214 msgid "guestfs_is_symlink"
27215 msgstr ""
27216
27217 #. type: verbatim
27218 #: ../src/guestfs-actions.pod:3605
27219 #, no-wrap
27220 msgid ""
27221 " int\n"
27222 " guestfs_is_symlink (guestfs_h *g,\n"
27223 "                     const char *path);\n"
27224 "\n"
27225 msgstr ""
27226
27227 #. type: =head2
27228 #: ../src/guestfs-actions.pod:3618
27229 msgid "guestfs_is_zero"
27230 msgstr ""
27231
27232 #. type: verbatim
27233 #: ../src/guestfs-actions.pod:3620
27234 #, no-wrap
27235 msgid ""
27236 " int\n"
27237 " guestfs_is_zero (guestfs_h *g,\n"
27238 "                  const char *path);\n"
27239 "\n"
27240 msgstr ""
27241
27242 #. type: textblock
27243 #: ../src/guestfs-actions.pod:3629 ../src/guestfs-actions.pod:3643
27244 msgid "(Added in 1.11.8)"
27245 msgstr ""
27246
27247 #. type: =head2
27248 #: ../src/guestfs-actions.pod:3631
27249 msgid "guestfs_is_zero_device"
27250 msgstr ""
27251
27252 #. type: verbatim
27253 #: ../src/guestfs-actions.pod:3633
27254 #, no-wrap
27255 msgid ""
27256 " int\n"
27257 " guestfs_is_zero_device (guestfs_h *g,\n"
27258 "                         const char *device);\n"
27259 "\n"
27260 msgstr ""
27261
27262 #. type: =head2
27263 #: ../src/guestfs-actions.pod:3645
27264 msgid "guestfs_kill_subprocess"
27265 msgstr ""
27266
27267 #. type: verbatim
27268 #: ../src/guestfs-actions.pod:3647
27269 #, no-wrap
27270 msgid ""
27271 " int\n"
27272 " guestfs_kill_subprocess (guestfs_h *g);\n"
27273 "\n"
27274 msgstr ""
27275
27276 #. type: =head2
27277 #: ../src/guestfs-actions.pod:3656
27278 msgid "guestfs_launch"
27279 msgstr ""
27280
27281 #. type: verbatim
27282 #: ../src/guestfs-actions.pod:3658
27283 #, no-wrap
27284 msgid ""
27285 " int\n"
27286 " guestfs_launch (guestfs_h *g);\n"
27287 "\n"
27288 msgstr ""
27289
27290 #. type: =head2
27291 #: ../src/guestfs-actions.pod:3676
27292 msgid "guestfs_lchown"
27293 msgstr ""
27294
27295 #. type: verbatim
27296 #: ../src/guestfs-actions.pod:3678
27297 #, no-wrap
27298 msgid ""
27299 " int\n"
27300 " guestfs_lchown (guestfs_h *g,\n"
27301 "                 int owner,\n"
27302 "                 int group,\n"
27303 "                 const char *path);\n"
27304 "\n"
27305 msgstr ""
27306
27307 #. type: textblock
27308 #: ../src/guestfs-actions.pod:3684
27309 msgid ""
27310 "Change the file owner to C<owner> and group to C<group>.  This is like "
27311 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
27312 "changed, not the target."
27313 msgstr ""
27314
27315 #. type: =head2
27316 #: ../src/guestfs-actions.pod:3696
27317 msgid "guestfs_lgetxattr"
27318 msgstr ""
27319
27320 #. type: verbatim
27321 #: ../src/guestfs-actions.pod:3698
27322 #, no-wrap
27323 msgid ""
27324 " char *\n"
27325 " guestfs_lgetxattr (guestfs_h *g,\n"
27326 "                    const char *path,\n"
27327 "                    const char *name,\n"
27328 "                    size_t *size_r);\n"
27329 "\n"
27330 msgstr ""
27331
27332 #. type: textblock
27333 #: ../src/guestfs-actions.pod:3718
27334 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
27335 msgstr ""
27336
27337 #. type: =head2
27338 #: ../src/guestfs-actions.pod:3726
27339 msgid "guestfs_lgetxattrs"
27340 msgstr ""
27341
27342 #. type: verbatim
27343 #: ../src/guestfs-actions.pod:3728
27344 #, no-wrap
27345 msgid ""
27346 " struct guestfs_xattr_list *\n"
27347 " guestfs_lgetxattrs (guestfs_h *g,\n"
27348 "                     const char *path);\n"
27349 "\n"
27350 msgstr ""
27351
27352 #. type: textblock
27353 #: ../src/guestfs-actions.pod:3732
27354 msgid ""
27355 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
27356 "then it returns the extended attributes of the link itself."
27357 msgstr ""
27358
27359 #. type: =head2
27360 #: ../src/guestfs-actions.pod:3742
27361 msgid "guestfs_list_9p"
27362 msgstr ""
27363
27364 #. type: verbatim
27365 #: ../src/guestfs-actions.pod:3744
27366 #, no-wrap
27367 msgid ""
27368 " char **\n"
27369 " guestfs_list_9p (guestfs_h *g);\n"
27370 "\n"
27371 msgstr ""
27372
27373 #. type: =head2
27374 #: ../src/guestfs-actions.pod:3756
27375 msgid "guestfs_list_devices"
27376 msgstr ""
27377
27378 #. type: verbatim
27379 #: ../src/guestfs-actions.pod:3758
27380 #, no-wrap
27381 msgid ""
27382 " char **\n"
27383 " guestfs_list_devices (guestfs_h *g);\n"
27384 "\n"
27385 msgstr ""
27386
27387 #. type: =head2
27388 #: ../src/guestfs-actions.pod:3773
27389 msgid "guestfs_list_dm_devices"
27390 msgstr ""
27391
27392 #. type: verbatim
27393 #: ../src/guestfs-actions.pod:3775
27394 #, no-wrap
27395 msgid ""
27396 " char **\n"
27397 " guestfs_list_dm_devices (guestfs_h *g);\n"
27398 "\n"
27399 msgstr ""
27400
27401 #. type: textblock
27402 #: ../src/guestfs-actions.pod:3780
27403 msgid ""
27404 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
27405 "previous call to C<guestfs_luks_open>."
27406 msgstr ""
27407
27408 #. type: textblock
27409 #: ../src/guestfs-actions.pod:3783
27410 msgid ""
27411 "Device mapper devices which correspond to logical volumes are I<not> "
27412 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
27413 "volumes."
27414 msgstr ""
27415
27416 #. type: textblock
27417 #: ../src/guestfs-actions.pod:3791 ../src/guestfs-actions.pod:5247
27418 msgid "(Added in 1.11.15)"
27419 msgstr ""
27420
27421 #. type: =head2
27422 #: ../src/guestfs-actions.pod:3793
27423 msgid "guestfs_list_filesystems"
27424 msgstr ""
27425
27426 #. type: verbatim
27427 #: ../src/guestfs-actions.pod:3795
27428 #, no-wrap
27429 msgid ""
27430 " char **\n"
27431 " guestfs_list_filesystems (guestfs_h *g);\n"
27432 "\n"
27433 msgstr ""
27434
27435 #. type: textblock
27436 #: ../src/guestfs-actions.pod:3815
27437 msgid ""
27438 "This command runs other libguestfs commands, which might include "
27439 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
27440 "soon after launch and only when nothing is mounted."
27441 msgstr ""
27442
27443 #. type: textblock
27444 #: ../src/guestfs-actions.pod:3819
27445 msgid ""
27446 "Not all of the filesystems returned will be mountable.  In particular, swap "
27447 "partitions are returned in the list.  Also this command does not check that "
27448 "each filesystem found is valid and mountable, and some filesystems might be "
27449 "mountable but require special options.  Filesystems may not all belong to a "
27450 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
27451 msgstr ""
27452
27453 #. type: textblock
27454 #: ../src/guestfs-actions.pod:3833 ../src/guestfs-actions.pod:5608
27455 msgid "(Added in 1.5.15)"
27456 msgstr ""
27457
27458 #. type: =head2
27459 #: ../src/guestfs-actions.pod:3835
27460 msgid "guestfs_list_partitions"
27461 msgstr "guestfs_list_partitions"
27462
27463 #. type: verbatim
27464 #: ../src/guestfs-actions.pod:3837
27465 #, no-wrap
27466 msgid ""
27467 " char **\n"
27468 " guestfs_list_partitions (guestfs_h *g);\n"
27469 "\n"
27470 msgstr ""
27471 " char **\n"
27472 " guestfs_list_partitions (guestfs_h *g);\n"
27473 "\n"
27474
27475 #. type: textblock
27476 #: ../src/guestfs-actions.pod:3844
27477 msgid ""
27478 "This does not return logical volumes.  For that you will need to call "
27479 "C<guestfs_lvs>."
27480 msgstr ""
27481
27482 #. type: =head2
27483 #: ../src/guestfs-actions.pod:3855
27484 msgid "guestfs_ll"
27485 msgstr "guestfs_ll"
27486
27487 #. type: verbatim
27488 #: ../src/guestfs-actions.pod:3857
27489 #, no-wrap
27490 msgid ""
27491 " char *\n"
27492 " guestfs_ll (guestfs_h *g,\n"
27493 "             const char *directory);\n"
27494 "\n"
27495 msgstr ""
27496 " char *\n"
27497 " guestfs_ll (guestfs_h *g,\n"
27498 "             const char *directory);\n"
27499 "\n"
27500
27501 #. type: =head2
27502 #: ../src/guestfs-actions.pod:3872
27503 msgid "guestfs_ln"
27504 msgstr "guestfs_ln"
27505
27506 #. type: verbatim
27507 #: ../src/guestfs-actions.pod:3874
27508 #, no-wrap
27509 msgid ""
27510 " int\n"
27511 " guestfs_ln (guestfs_h *g,\n"
27512 "             const char *target,\n"
27513 "             const char *linkname);\n"
27514 "\n"
27515 msgstr ""
27516 " int\n"
27517 " guestfs_ln (guestfs_h *g,\n"
27518 "             const char *target,\n"
27519 "             const char *linkname);\n"
27520 "\n"
27521
27522 #. type: =head2
27523 #: ../src/guestfs-actions.pod:3885
27524 msgid "guestfs_ln_f"
27525 msgstr "guestfs_ln_f"
27526
27527 #. type: verbatim
27528 #: ../src/guestfs-actions.pod:3887
27529 #, no-wrap
27530 msgid ""
27531 " int\n"
27532 " guestfs_ln_f (guestfs_h *g,\n"
27533 "               const char *target,\n"
27534 "               const char *linkname);\n"
27535 "\n"
27536 msgstr ""
27537 " int\n"
27538 " guestfs_ln_f (guestfs_h *g,\n"
27539 "               const char *target,\n"
27540 "               const char *linkname);\n"
27541 "\n"
27542
27543 #. type: =head2
27544 #: ../src/guestfs-actions.pod:3899
27545 msgid "guestfs_ln_s"
27546 msgstr "guestfs_ln_s"
27547
27548 #. type: verbatim
27549 #: ../src/guestfs-actions.pod:3901
27550 #, no-wrap
27551 msgid ""
27552 " int\n"
27553 " guestfs_ln_s (guestfs_h *g,\n"
27554 "               const char *target,\n"
27555 "               const char *linkname);\n"
27556 "\n"
27557 msgstr ""
27558 " int\n"
27559 " guestfs_ln_s (guestfs_h *g,\n"
27560 "               const char *target,\n"
27561 "               const char *linkname);\n"
27562 "\n"
27563
27564 #. type: =head2
27565 #: ../src/guestfs-actions.pod:3912
27566 msgid "guestfs_ln_sf"
27567 msgstr "guestfs_ln_sf"
27568
27569 #. type: verbatim
27570 #: ../src/guestfs-actions.pod:3914
27571 #, no-wrap
27572 msgid ""
27573 " int\n"
27574 " guestfs_ln_sf (guestfs_h *g,\n"
27575 "                const char *target,\n"
27576 "                const char *linkname);\n"
27577 "\n"
27578 msgstr ""
27579 " int\n"
27580 " guestfs_ln_sf (guestfs_h *g,\n"
27581 "                const char *target,\n"
27582 "                const char *linkname);\n"
27583 "\n"
27584
27585 #. type: =head2
27586 #: ../src/guestfs-actions.pod:3926
27587 msgid "guestfs_lremovexattr"
27588 msgstr "guestfs_lremovexattr"
27589
27590 #. type: verbatim
27591 #: ../src/guestfs-actions.pod:3928
27592 #, no-wrap
27593 msgid ""
27594 " int\n"
27595 " guestfs_lremovexattr (guestfs_h *g,\n"
27596 "                       const char *xattr,\n"
27597 "                       const char *path);\n"
27598 "\n"
27599 msgstr ""
27600 " int\n"
27601 " guestfs_lremovexattr (guestfs_h *g,\n"
27602 "                       const char *xattr,\n"
27603 "                       const char *path);\n"
27604 "\n"
27605
27606 #. type: textblock
27607 #: ../src/guestfs-actions.pod:3933
27608 msgid ""
27609 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
27610 "link, then it removes an extended attribute of the link itself."
27611 msgstr ""
27612
27613 #. type: =head2
27614 #: ../src/guestfs-actions.pod:3941
27615 msgid "guestfs_ls"
27616 msgstr "guestfs_ls"
27617
27618 #. type: verbatim
27619 #: ../src/guestfs-actions.pod:3943
27620 #, no-wrap
27621 msgid ""
27622 " char **\n"
27623 " guestfs_ls (guestfs_h *g,\n"
27624 "             const char *directory);\n"
27625 "\n"
27626 msgstr ""
27627 " char **\n"
27628 " guestfs_ls (guestfs_h *g,\n"
27629 "             const char *directory);\n"
27630 "\n"
27631
27632 #. type: textblock
27633 #: ../src/guestfs-actions.pod:3951
27634 msgid ""
27635 "This command is mostly useful for interactive sessions.  Programs should "
27636 "probably use C<guestfs_readdir> instead."
27637 msgstr ""
27638
27639 #. type: =head2
27640 #: ../src/guestfs-actions.pod:3960
27641 msgid "guestfs_lsetxattr"
27642 msgstr "guestfs_lsetxattr"
27643
27644 #. type: verbatim
27645 #: ../src/guestfs-actions.pod:3962
27646 #, no-wrap
27647 msgid ""
27648 " int\n"
27649 " guestfs_lsetxattr (guestfs_h *g,\n"
27650 "                    const char *xattr,\n"
27651 "                    const char *val,\n"
27652 "                    int vallen,\n"
27653 "                    const char *path);\n"
27654 "\n"
27655 msgstr ""
27656 " int\n"
27657 " guestfs_lsetxattr (guestfs_h *g,\n"
27658 "                    const char *xattr,\n"
27659 "                    const char *val,\n"
27660 "                    int vallen,\n"
27661 "                    const char *path);\n"
27662 "\n"
27663
27664 #. type: textblock
27665 #: ../src/guestfs-actions.pod:3969
27666 msgid ""
27667 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
27668 "then it sets an extended attribute of the link itself."
27669 msgstr ""
27670
27671 #. type: =head2
27672 #: ../src/guestfs-actions.pod:3977
27673 msgid "guestfs_lstat"
27674 msgstr "guestfs_lstat"
27675
27676 #. type: verbatim
27677 #: ../src/guestfs-actions.pod:3979
27678 #, no-wrap
27679 msgid ""
27680 " struct guestfs_stat *\n"
27681 " guestfs_lstat (guestfs_h *g,\n"
27682 "                const char *path);\n"
27683 "\n"
27684 msgstr ""
27685 " struct guestfs_stat *\n"
27686 " guestfs_lstat (guestfs_h *g,\n"
27687 "                const char *path);\n"
27688 "\n"
27689
27690 #. type: textblock
27691 #: ../src/guestfs-actions.pod:3985
27692 msgid ""
27693 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
27694 "link, then the link is stat-ed, not the file it refers to."
27695 msgstr ""
27696
27697 #. type: textblock
27698 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:6766
27699 msgid ""
27700 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
27701 "error.  I<The caller must call C<guestfs_free_stat> after use>."
27702 msgstr ""
27703
27704 #. type: textblock
27705 #: ../src/guestfs-actions.pod:3995 ../src/guestfs-actions.pod:6770
27706 #: ../src/guestfs-actions.pod:6788 ../src/guestfs-actions.pod:7169
27707 msgid "(Added in 0.9.2)"
27708 msgstr "(Додано у 0.9.2)"
27709
27710 #. type: =head2
27711 #: ../src/guestfs-actions.pod:3997
27712 msgid "guestfs_lstatlist"
27713 msgstr "guestfs_lstatlist"
27714
27715 #. type: verbatim
27716 #: ../src/guestfs-actions.pod:3999
27717 #, no-wrap
27718 msgid ""
27719 " struct guestfs_stat_list *\n"
27720 " guestfs_lstatlist (guestfs_h *g,\n"
27721 "                    const char *path,\n"
27722 "                    char *const *names);\n"
27723 "\n"
27724 msgstr ""
27725 " struct guestfs_stat_list *\n"
27726 " guestfs_lstatlist (guestfs_h *g,\n"
27727 "                    const char *path,\n"
27728 "                    char *const *names);\n"
27729 "\n"
27730
27731 #. type: textblock
27732 #: ../src/guestfs-actions.pod:4004
27733 msgid ""
27734 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
27735 "files, where all files are in the directory C<path>.  C<names> is the list "
27736 "of files from this directory."
27737 msgstr ""
27738
27739 #. type: textblock
27740 #: ../src/guestfs-actions.pod:4013
27741 msgid ""
27742 "This call is intended for programs that want to efficiently list a directory "
27743 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
27744 "for a similarly efficient call for getting extended attributes.  Very long "
27745 "directory listings might cause the protocol message size to be exceeded, "
27746 "causing this call to fail.  The caller must split up such requests into "
27747 "smaller groups of names."
27748 msgstr ""
27749
27750 #. type: textblock
27751 #: ../src/guestfs-actions.pod:4021
27752 msgid ""
27753 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
27754 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
27755 msgstr ""
27756
27757 #. type: =head2
27758 #: ../src/guestfs-actions.pod:4027
27759 msgid "guestfs_luks_add_key"
27760 msgstr "guestfs_luks_add_key"
27761
27762 #. type: verbatim
27763 #: ../src/guestfs-actions.pod:4029
27764 #, no-wrap
27765 msgid ""
27766 " int\n"
27767 " guestfs_luks_add_key (guestfs_h *g,\n"
27768 "                       const char *device,\n"
27769 "                       const char *key,\n"
27770 "                       const char *newkey,\n"
27771 "                       int keyslot);\n"
27772 "\n"
27773 msgstr ""
27774 " int\n"
27775 " guestfs_luks_add_key (guestfs_h *g,\n"
27776 "                       const char *device,\n"
27777 "                       const char *key,\n"
27778 "                       const char *newkey,\n"
27779 "                       int keyslot);\n"
27780 "\n"
27781
27782 #. type: textblock
27783 #: ../src/guestfs-actions.pod:4041
27784 msgid ""
27785 "Note that if C<keyslot> already contains a key, then this command will "
27786 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
27787 msgstr ""
27788
27789 #. type: textblock
27790 #: ../src/guestfs-actions.pod:4047 ../src/guestfs-actions.pod:4087
27791 #: ../src/guestfs-actions.pod:4110 ../src/guestfs-actions.pod:4130
27792 #: ../src/guestfs-actions.pod:4165 ../src/guestfs-actions.pod:4184
27793 msgid ""
27794 "This function takes a key or passphrase parameter which could contain "
27795 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
27796 "information."
27797 msgstr ""
27798
27799 #. type: textblock
27800 #: ../src/guestfs-actions.pod:4051 ../src/guestfs-actions.pod:4091
27801 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4134
27802 msgid "(Added in 1.5.2)"
27803 msgstr "(Додано у 1.5.2)"
27804
27805 #. type: =head2
27806 #: ../src/guestfs-actions.pod:4053
27807 msgid "guestfs_luks_close"
27808 msgstr "guestfs_luks_close"
27809
27810 #. type: verbatim
27811 #: ../src/guestfs-actions.pod:4055
27812 #, no-wrap
27813 msgid ""
27814 " int\n"
27815 " guestfs_luks_close (guestfs_h *g,\n"
27816 "                     const char *device);\n"
27817 "\n"
27818 msgstr ""
27819 " int\n"
27820 " guestfs_luks_close (guestfs_h *g,\n"
27821 "                     const char *device);\n"
27822 "\n"
27823
27824 #. type: textblock
27825 #: ../src/guestfs-actions.pod:4059
27826 msgid ""
27827 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
27828 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
27829 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
27830 "underlying block device."
27831 msgstr ""
27832
27833 #. type: textblock
27834 #: ../src/guestfs-actions.pod:4067 ../src/guestfs-actions.pod:4169
27835 #: ../src/guestfs-actions.pod:4188 ../src/guestfs-actions.pod:4238
27836 #: ../src/guestfs-actions.pod:4286
27837 msgid "(Added in 1.5.1)"
27838 msgstr "(Додано у 1.5.1)"
27839
27840 #. type: =head2
27841 #: ../src/guestfs-actions.pod:4069
27842 msgid "guestfs_luks_format"
27843 msgstr "guestfs_luks_format"
27844
27845 #. type: verbatim
27846 #: ../src/guestfs-actions.pod:4071
27847 #, no-wrap
27848 msgid ""
27849 " int\n"
27850 " guestfs_luks_format (guestfs_h *g,\n"
27851 "                      const char *device,\n"
27852 "                      const char *key,\n"
27853 "                      int keyslot);\n"
27854 "\n"
27855 msgstr ""
27856 " int\n"
27857 " guestfs_luks_format (guestfs_h *g,\n"
27858 "                      const char *device,\n"
27859 "                      const char *key,\n"
27860 "                      int keyslot);\n"
27861 "\n"
27862
27863 #. type: =head2
27864 #: ../src/guestfs-actions.pod:4093
27865 msgid "guestfs_luks_format_cipher"
27866 msgstr "guestfs_luks_format_cipher"
27867
27868 #. type: verbatim
27869 #: ../src/guestfs-actions.pod:4095
27870 #, no-wrap
27871 msgid ""
27872 " int\n"
27873 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27874 "                             const char *device,\n"
27875 "                             const char *key,\n"
27876 "                             int keyslot,\n"
27877 "                             const char *cipher);\n"
27878 "\n"
27879 msgstr ""
27880 " int\n"
27881 " guestfs_luks_format_cipher (guestfs_h *g,\n"
27882 "                             const char *device,\n"
27883 "                             const char *key,\n"
27884 "                             int keyslot,\n"
27885 "                             const char *cipher);\n"
27886 "\n"
27887
27888 #. type: textblock
27889 #: ../src/guestfs-actions.pod:4102
27890 msgid ""
27891 "This command is the same as C<guestfs_luks_format> but it also allows you to "
27892 "set the C<cipher> used."
27893 msgstr ""
27894
27895 #. type: =head2
27896 #: ../src/guestfs-actions.pod:4116
27897 msgid "guestfs_luks_kill_slot"
27898 msgstr "guestfs_luks_kill_slot"
27899
27900 #. type: verbatim
27901 #: ../src/guestfs-actions.pod:4118
27902 #, no-wrap
27903 msgid ""
27904 " int\n"
27905 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27906 "                         const char *device,\n"
27907 "                         const char *key,\n"
27908 "                         int keyslot);\n"
27909 "\n"
27910 msgstr ""
27911 " int\n"
27912 " guestfs_luks_kill_slot (guestfs_h *g,\n"
27913 "                         const char *device,\n"
27914 "                         const char *key,\n"
27915 "                         int keyslot);\n"
27916 "\n"
27917
27918 #. type: =head2
27919 #: ../src/guestfs-actions.pod:4136
27920 msgid "guestfs_luks_open"
27921 msgstr "guestfs_luks_open"
27922
27923 #. type: verbatim
27924 #: ../src/guestfs-actions.pod:4138
27925 #, no-wrap
27926 msgid ""
27927 " int\n"
27928 " guestfs_luks_open (guestfs_h *g,\n"
27929 "                    const char *device,\n"
27930 "                    const char *key,\n"
27931 "                    const char *mapname);\n"
27932 "\n"
27933 msgstr ""
27934 " int\n"
27935 " guestfs_luks_open (guestfs_h *g,\n"
27936 "                    const char *device,\n"
27937 "                    const char *key,\n"
27938 "                    const char *mapname);\n"
27939 "\n"
27940
27941 #. type: textblock
27942 #: ../src/guestfs-actions.pod:4156
27943 msgid ""
27944 "If this block device contains LVM volume groups, then calling "
27945 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
27946 "visible."
27947 msgstr ""
27948
27949 #. type: textblock
27950 #: ../src/guestfs-actions.pod:4160
27951 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
27952 msgstr ""
27953
27954 #. type: =head2
27955 #: ../src/guestfs-actions.pod:4171
27956 msgid "guestfs_luks_open_ro"
27957 msgstr "guestfs_luks_open_ro"
27958
27959 #. type: verbatim
27960 #: ../src/guestfs-actions.pod:4173
27961 #, no-wrap
27962 msgid ""
27963 " int\n"
27964 " guestfs_luks_open_ro (guestfs_h *g,\n"
27965 "                       const char *device,\n"
27966 "                       const char *key,\n"
27967 "                       const char *mapname);\n"
27968 "\n"
27969 msgstr ""
27970 " int\n"
27971 " guestfs_luks_open_ro (guestfs_h *g,\n"
27972 "                       const char *device,\n"
27973 "                       const char *key,\n"
27974 "                       const char *mapname);\n"
27975 "\n"
27976
27977 #. type: textblock
27978 #: ../src/guestfs-actions.pod:4179
27979 msgid ""
27980 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
27981 "created."
27982 msgstr ""
27983
27984 #. type: =head2
27985 #: ../src/guestfs-actions.pod:4190
27986 msgid "guestfs_lvcreate"
27987 msgstr "guestfs_lvcreate"
27988
27989 #. type: verbatim
27990 #: ../src/guestfs-actions.pod:4192
27991 #, no-wrap
27992 msgid ""
27993 " int\n"
27994 " guestfs_lvcreate (guestfs_h *g,\n"
27995 "                   const char *logvol,\n"
27996 "                   const char *volgroup,\n"
27997 "                   int mbytes);\n"
27998 "\n"
27999 msgstr ""
28000 " int\n"
28001 " guestfs_lvcreate (guestfs_h *g,\n"
28002 "                   const char *logvol,\n"
28003 "                   const char *volgroup,\n"
28004 "                   int mbytes);\n"
28005 "\n"
28006
28007 #. type: =head2
28008 #: ../src/guestfs-actions.pod:4205
28009 msgid "guestfs_lvm_canonical_lv_name"
28010 msgstr "guestfs_lvm_canonical_lv_name"
28011
28012 #. type: verbatim
28013 #: ../src/guestfs-actions.pod:4207
28014 #, no-wrap
28015 msgid ""
28016 " char *\n"
28017 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28018 "                                const char *lvname);\n"
28019 "\n"
28020 msgstr ""
28021 " char *\n"
28022 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
28023 "                                const char *lvname);\n"
28024 "\n"
28025
28026 #. type: textblock
28027 #: ../src/guestfs-actions.pod:4218
28028 msgid "See also C<guestfs_is_lv>."
28029 msgstr ""
28030
28031 #. type: textblock
28032 #: ../src/guestfs-actions.pod:4223
28033 msgid "(Added in 1.5.24)"
28034 msgstr "(Додано у 1.5.24)"
28035
28036 #. type: =head2
28037 #: ../src/guestfs-actions.pod:4225
28038 msgid "guestfs_lvm_clear_filter"
28039 msgstr "guestfs_lvm_clear_filter"
28040
28041 #. type: verbatim
28042 #: ../src/guestfs-actions.pod:4227
28043 #, no-wrap
28044 msgid ""
28045 " int\n"
28046 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28047 "\n"
28048 msgstr ""
28049 " int\n"
28050 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
28051 "\n"
28052
28053 #. type: textblock
28054 #: ../src/guestfs-actions.pod:4230
28055 msgid ""
28056 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
28057 "see every block device."
28058 msgstr ""
28059
28060 #. type: =head2
28061 #: ../src/guestfs-actions.pod:4240
28062 msgid "guestfs_lvm_remove_all"
28063 msgstr "guestfs_lvm_remove_all"
28064
28065 #. type: verbatim
28066 #: ../src/guestfs-actions.pod:4242
28067 #, no-wrap
28068 msgid ""
28069 " int\n"
28070 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28071 "\n"
28072 msgstr ""
28073 " int\n"
28074 " guestfs_lvm_remove_all (guestfs_h *g);\n"
28075 "\n"
28076
28077 #. type: =head2
28078 #: ../src/guestfs-actions.pod:4255
28079 msgid "guestfs_lvm_set_filter"
28080 msgstr "guestfs_lvm_set_filter"
28081
28082 #. type: verbatim
28083 #: ../src/guestfs-actions.pod:4257
28084 #, no-wrap
28085 msgid ""
28086 " int\n"
28087 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28088 "                         char *const *devices);\n"
28089 "\n"
28090 msgstr ""
28091 " int\n"
28092 " guestfs_lvm_set_filter (guestfs_h *g,\n"
28093 "                         char *const *devices);\n"
28094 "\n"
28095
28096 #. type: =head2
28097 #: ../src/guestfs-actions.pod:4288
28098 msgid "guestfs_lvremove"
28099 msgstr "guestfs_lvremove"
28100
28101 #. type: verbatim
28102 #: ../src/guestfs-actions.pod:4290
28103 #, no-wrap
28104 msgid ""
28105 " int\n"
28106 " guestfs_lvremove (guestfs_h *g,\n"
28107 "                   const char *device);\n"
28108 "\n"
28109 msgstr ""
28110 " int\n"
28111 " guestfs_lvremove (guestfs_h *g,\n"
28112 "                   const char *device);\n"
28113 "\n"
28114
28115 #. type: textblock
28116 #: ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:5705
28117 #: ../src/guestfs-actions.pod:7539
28118 msgid "(Added in 1.0.13)"
28119 msgstr "(Додано у 1.0.13)"
28120
28121 #. type: =head2
28122 #: ../src/guestfs-actions.pod:4304
28123 msgid "guestfs_lvrename"
28124 msgstr "guestfs_lvrename"
28125
28126 #. type: verbatim
28127 #: ../src/guestfs-actions.pod:4306
28128 #, no-wrap
28129 msgid ""
28130 " int\n"
28131 " guestfs_lvrename (guestfs_h *g,\n"
28132 "                   const char *logvol,\n"
28133 "                   const char *newlogvol);\n"
28134 "\n"
28135 msgstr ""
28136 " int\n"
28137 " guestfs_lvrename (guestfs_h *g,\n"
28138 "                   const char *logvol,\n"
28139 "                   const char *newlogvol);\n"
28140 "\n"
28141
28142 #. type: textblock
28143 #: ../src/guestfs-actions.pod:4315 ../src/guestfs-actions.pod:7552
28144 msgid "(Added in 1.0.83)"
28145 msgstr "(Додано у 1.0.83)"
28146
28147 #. type: =head2
28148 #: ../src/guestfs-actions.pod:4317
28149 msgid "guestfs_lvresize"
28150 msgstr "guestfs_lvresize"
28151
28152 #. type: verbatim
28153 #: ../src/guestfs-actions.pod:4319
28154 #, no-wrap
28155 msgid ""
28156 " int\n"
28157 " guestfs_lvresize (guestfs_h *g,\n"
28158 "                   const char *device,\n"
28159 "                   int mbytes);\n"
28160 "\n"
28161 msgstr ""
28162 " int\n"
28163 " guestfs_lvresize (guestfs_h *g,\n"
28164 "                   const char *device,\n"
28165 "                   int mbytes);\n"
28166 "\n"
28167
28168 #. type: =head2
28169 #: ../src/guestfs-actions.pod:4332
28170 msgid "guestfs_lvresize_free"
28171 msgstr "guestfs_lvresize_free"
28172
28173 #. type: verbatim
28174 #: ../src/guestfs-actions.pod:4334
28175 #, no-wrap
28176 msgid ""
28177 " int\n"
28178 " guestfs_lvresize_free (guestfs_h *g,\n"
28179 "                        const char *lv,\n"
28180 "                        int percent);\n"
28181 "\n"
28182 msgstr ""
28183 " int\n"
28184 " guestfs_lvresize_free (guestfs_h *g,\n"
28185 "                        const char *lv,\n"
28186 "                        int percent);\n"
28187 "\n"
28188
28189 #. type: textblock
28190 #: ../src/guestfs-actions.pod:4347
28191 msgid "(Added in 1.3.3)"
28192 msgstr "(Додано у 1.3.3)"
28193
28194 #. type: =head2
28195 #: ../src/guestfs-actions.pod:4349
28196 msgid "guestfs_lvs"
28197 msgstr "guestfs_lvs"
28198
28199 #. type: verbatim
28200 #: ../src/guestfs-actions.pod:4351
28201 #, no-wrap
28202 msgid ""
28203 " char **\n"
28204 " guestfs_lvs (guestfs_h *g);\n"
28205 "\n"
28206 msgstr ""
28207 " char **\n"
28208 " guestfs_lvs (guestfs_h *g);\n"
28209 "\n"
28210
28211 #. type: textblock
28212 #: ../src/guestfs-actions.pod:4360
28213 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
28214 msgstr ""
28215
28216 #. type: =head2
28217 #: ../src/guestfs-actions.pod:4368
28218 msgid "guestfs_lvs_full"
28219 msgstr "guestfs_lvs_full"
28220
28221 #. type: verbatim
28222 #: ../src/guestfs-actions.pod:4370
28223 #, no-wrap
28224 msgid ""
28225 " struct guestfs_lvm_lv_list *\n"
28226 " guestfs_lvs_full (guestfs_h *g);\n"
28227 "\n"
28228 msgstr ""
28229 " struct guestfs_lvm_lv_list *\n"
28230 " guestfs_lvs_full (guestfs_h *g);\n"
28231 "\n"
28232
28233 #. type: textblock
28234 #: ../src/guestfs-actions.pod:4376
28235 msgid ""
28236 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
28237 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
28238 msgstr ""
28239
28240 #. type: =head2
28241 #: ../src/guestfs-actions.pod:4382
28242 msgid "guestfs_lvuuid"
28243 msgstr "guestfs_lvuuid"
28244
28245 #. type: verbatim
28246 #: ../src/guestfs-actions.pod:4384
28247 #, no-wrap
28248 msgid ""
28249 " char *\n"
28250 " guestfs_lvuuid (guestfs_h *g,\n"
28251 "                 const char *device);\n"
28252 "\n"
28253 msgstr ""
28254 " char *\n"
28255 " guestfs_lvuuid (guestfs_h *g,\n"
28256 "                 const char *device);\n"
28257 "\n"
28258
28259 #. type: =head2
28260 #: ../src/guestfs-actions.pod:4395
28261 msgid "guestfs_lxattrlist"
28262 msgstr "guestfs_lxattrlist"
28263
28264 #. type: verbatim
28265 #: ../src/guestfs-actions.pod:4397
28266 #, no-wrap
28267 msgid ""
28268 " struct guestfs_xattr_list *\n"
28269 " guestfs_lxattrlist (guestfs_h *g,\n"
28270 "                     const char *path,\n"
28271 "                     char *const *names);\n"
28272 "\n"
28273 msgstr ""
28274 " struct guestfs_xattr_list *\n"
28275 " guestfs_lxattrlist (guestfs_h *g,\n"
28276 "                     const char *path,\n"
28277 "                     char *const *names);\n"
28278 "\n"
28279
28280 #. type: textblock
28281 #: ../src/guestfs-actions.pod:4416
28282 msgid ""
28283 "This call is intended for programs that want to efficiently list a directory "
28284 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
28285 "a similarly efficient call for getting standard stats.  Very long directory "
28286 "listings might cause the protocol message size to be exceeded, causing this "
28287 "call to fail.  The caller must split up such requests into smaller groups of "
28288 "names."
28289 msgstr ""
28290
28291 #. type: =head2
28292 #: ../src/guestfs-actions.pod:4430
28293 msgid "guestfs_mkdir"
28294 msgstr "guestfs_mkdir"
28295
28296 #. type: verbatim
28297 #: ../src/guestfs-actions.pod:4432
28298 #, no-wrap
28299 msgid ""
28300 " int\n"
28301 " guestfs_mkdir (guestfs_h *g,\n"
28302 "                const char *path);\n"
28303 "\n"
28304 msgstr ""
28305 " int\n"
28306 " guestfs_mkdir (guestfs_h *g,\n"
28307 "                const char *path);\n"
28308 "\n"
28309
28310 #. type: =head2
28311 #: ../src/guestfs-actions.pod:4442
28312 msgid "guestfs_mkdir_mode"
28313 msgstr "guestfs_mkdir_mode"
28314
28315 #. type: verbatim
28316 #: ../src/guestfs-actions.pod:4444
28317 #, no-wrap
28318 msgid ""
28319 " int\n"
28320 " guestfs_mkdir_mode (guestfs_h *g,\n"
28321 "                     const char *path,\n"
28322 "                     int mode);\n"
28323 "\n"
28324 msgstr ""
28325 " int\n"
28326 " guestfs_mkdir_mode (guestfs_h *g,\n"
28327 "                     const char *path,\n"
28328 "                     int mode);\n"
28329 "\n"
28330
28331 #. type: textblock
28332 #: ../src/guestfs-actions.pod:4456
28333 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
28334 msgstr ""
28335
28336 #. type: =head2
28337 #: ../src/guestfs-actions.pod:4462
28338 msgid "guestfs_mkdir_p"
28339 msgstr "guestfs_mkdir_p"
28340
28341 #. type: verbatim
28342 #: ../src/guestfs-actions.pod:4464
28343 #, no-wrap
28344 msgid ""
28345 " int\n"
28346 " guestfs_mkdir_p (guestfs_h *g,\n"
28347 "                  const char *path);\n"
28348 "\n"
28349 msgstr ""
28350 " int\n"
28351 " guestfs_mkdir_p (guestfs_h *g,\n"
28352 "                  const char *path);\n"
28353 "\n"
28354
28355 #. type: =head2
28356 #: ../src/guestfs-actions.pod:4475
28357 msgid "guestfs_mkdtemp"
28358 msgstr "guestfs_mkdtemp"
28359
28360 #. type: verbatim
28361 #: ../src/guestfs-actions.pod:4477
28362 #, no-wrap
28363 msgid ""
28364 " char *\n"
28365 " guestfs_mkdtemp (guestfs_h *g,\n"
28366 "                  const char *template);\n"
28367 "\n"
28368 msgstr ""
28369 " char *\n"
28370 " guestfs_mkdtemp (guestfs_h *g,\n"
28371 "                  const char *template);\n"
28372 "\n"
28373
28374 #. type: =head2
28375 #: ../src/guestfs-actions.pod:4505
28376 msgid "guestfs_mke2fs_J"
28377 msgstr "guestfs_mke2fs_J"
28378
28379 #. type: verbatim
28380 #: ../src/guestfs-actions.pod:4507
28381 #, no-wrap
28382 msgid ""
28383 " int\n"
28384 " guestfs_mke2fs_J (guestfs_h *g,\n"
28385 "                   const char *fstype,\n"
28386 "                   int blocksize,\n"
28387 "                   const char *device,\n"
28388 "                   const char *journal);\n"
28389 "\n"
28390 msgstr ""
28391 " int\n"
28392 " guestfs_mke2fs_J (guestfs_h *g,\n"
28393 "                   const char *fstype,\n"
28394 "                   int blocksize,\n"
28395 "                   const char *device,\n"
28396 "                   const char *journal);\n"
28397 "\n"
28398
28399 #. type: textblock
28400 #: ../src/guestfs-actions.pod:4520
28401 msgid "See also C<guestfs_mke2journal>."
28402 msgstr ""
28403
28404 #. type: textblock
28405 #: ../src/guestfs-actions.pod:4524 ../src/guestfs-actions.pod:4542
28406 #: ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4576
28407 #: ../src/guestfs-actions.pod:4590 ../src/guestfs-actions.pod:4604
28408 #: ../src/guestfs-actions.pod:4663 ../src/guestfs-actions.pod:4940
28409 msgid "(Added in 1.0.68)"
28410 msgstr "(Додано у 1.0.68)"
28411
28412 #. type: =head2
28413 #: ../src/guestfs-actions.pod:4526
28414 msgid "guestfs_mke2fs_JL"
28415 msgstr "guestfs_mke2fs_JL"
28416
28417 #. type: verbatim
28418 #: ../src/guestfs-actions.pod:4528
28419 #, no-wrap
28420 msgid ""
28421 " int\n"
28422 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28423 "                    const char *fstype,\n"
28424 "                    int blocksize,\n"
28425 "                    const char *device,\n"
28426 "                    const char *label);\n"
28427 "\n"
28428 msgstr ""
28429 " int\n"
28430 " guestfs_mke2fs_JL (guestfs_h *g,\n"
28431 "                    const char *fstype,\n"
28432 "                    int blocksize,\n"
28433 "                    const char *device,\n"
28434 "                    const char *label);\n"
28435 "\n"
28436
28437 #. type: textblock
28438 #: ../src/guestfs-actions.pod:4538
28439 msgid "See also C<guestfs_mke2journal_L>."
28440 msgstr ""
28441
28442 #. type: =head2
28443 #: ../src/guestfs-actions.pod:4544
28444 msgid "guestfs_mke2fs_JU"
28445 msgstr "guestfs_mke2fs_JU"
28446
28447 #. type: verbatim
28448 #: ../src/guestfs-actions.pod:4546
28449 #, no-wrap
28450 msgid ""
28451 " int\n"
28452 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28453 "                    const char *fstype,\n"
28454 "                    int blocksize,\n"
28455 "                    const char *device,\n"
28456 "                    const char *uuid);\n"
28457 "\n"
28458 msgstr ""
28459 " int\n"
28460 " guestfs_mke2fs_JU (guestfs_h *g,\n"
28461 "                    const char *fstype,\n"
28462 "                    int blocksize,\n"
28463 "                    const char *device,\n"
28464 "                    const char *uuid);\n"
28465 "\n"
28466
28467 #. type: textblock
28468 #: ../src/guestfs-actions.pod:4556
28469 msgid "See also C<guestfs_mke2journal_U>."
28470 msgstr ""
28471
28472 #. type: =head2
28473 #: ../src/guestfs-actions.pod:4562
28474 msgid "guestfs_mke2journal"
28475 msgstr "guestfs_mke2journal"
28476
28477 #. type: verbatim
28478 #: ../src/guestfs-actions.pod:4564
28479 #, no-wrap
28480 msgid ""
28481 " int\n"
28482 " guestfs_mke2journal (guestfs_h *g,\n"
28483 "                      int blocksize,\n"
28484 "                      const char *device);\n"
28485 "\n"
28486 msgstr ""
28487 " int\n"
28488 " guestfs_mke2journal (guestfs_h *g,\n"
28489 "                      int blocksize,\n"
28490 "                      const char *device);\n"
28491 "\n"
28492
28493 #. type: =head2
28494 #: ../src/guestfs-actions.pod:4578
28495 msgid "guestfs_mke2journal_L"
28496 msgstr "guestfs_mke2journal_L"
28497
28498 #. type: verbatim
28499 #: ../src/guestfs-actions.pod:4580
28500 #, no-wrap
28501 msgid ""
28502 " int\n"
28503 " guestfs_mke2journal_L (guestfs_h *g,\n"
28504 "                        int blocksize,\n"
28505 "                        const char *label,\n"
28506 "                        const char *device);\n"
28507 "\n"
28508 msgstr ""
28509 " int\n"
28510 " guestfs_mke2journal_L (guestfs_h *g,\n"
28511 "                        int blocksize,\n"
28512 "                        const char *label,\n"
28513 "                        const char *device);\n"
28514 "\n"
28515
28516 #. type: =head2
28517 #: ../src/guestfs-actions.pod:4592
28518 msgid "guestfs_mke2journal_U"
28519 msgstr "guestfs_mke2journal_U"
28520
28521 #. type: verbatim
28522 #: ../src/guestfs-actions.pod:4594
28523 #, no-wrap
28524 msgid ""
28525 " int\n"
28526 " guestfs_mke2journal_U (guestfs_h *g,\n"
28527 "                        int blocksize,\n"
28528 "                        const char *uuid,\n"
28529 "                        const char *device);\n"
28530 "\n"
28531 msgstr ""
28532 " int\n"
28533 " guestfs_mke2journal_U (guestfs_h *g,\n"
28534 "                        int blocksize,\n"
28535 "                        const char *uuid,\n"
28536 "                        const char *device);\n"
28537 "\n"
28538
28539 #. type: =head2
28540 #: ../src/guestfs-actions.pod:4606
28541 msgid "guestfs_mkfifo"
28542 msgstr "guestfs_mkfifo"
28543
28544 #. type: verbatim
28545 #: ../src/guestfs-actions.pod:4608
28546 #, no-wrap
28547 msgid ""
28548 " int\n"
28549 " guestfs_mkfifo (guestfs_h *g,\n"
28550 "                 int mode,\n"
28551 "                 const char *path);\n"
28552 "\n"
28553 msgstr ""
28554 " int\n"
28555 " guestfs_mkfifo (guestfs_h *g,\n"
28556 "                 int mode,\n"
28557 "                 const char *path);\n"
28558 "\n"
28559
28560 #. type: textblock
28561 #: ../src/guestfs-actions.pod:4613
28562 msgid ""
28563 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
28564 "is just a convenient wrapper around C<guestfs_mknod>."
28565 msgstr ""
28566
28567 #. type: =head2
28568 #: ../src/guestfs-actions.pod:4623
28569 msgid "guestfs_mkfs"
28570 msgstr "guestfs_mkfs"
28571
28572 #. type: verbatim
28573 #: ../src/guestfs-actions.pod:4625
28574 #, no-wrap
28575 msgid ""
28576 " int\n"
28577 " guestfs_mkfs (guestfs_h *g,\n"
28578 "               const char *fstype,\n"
28579 "               const char *device);\n"
28580 "\n"
28581 msgstr ""
28582 " int\n"
28583 " guestfs_mkfs (guestfs_h *g,\n"
28584 "               const char *fstype,\n"
28585 "               const char *device);\n"
28586 "\n"
28587
28588 #. type: =head2
28589 #: ../src/guestfs-actions.pod:4638
28590 msgid "guestfs_mkfs_b"
28591 msgstr "guestfs_mkfs_b"
28592
28593 #. type: verbatim
28594 #: ../src/guestfs-actions.pod:4640
28595 #, no-wrap
28596 msgid ""
28597 " int\n"
28598 " guestfs_mkfs_b (guestfs_h *g,\n"
28599 "                 const char *fstype,\n"
28600 "                 int blocksize,\n"
28601 "                 const char *device);\n"
28602 "\n"
28603 msgstr ""
28604 " int\n"
28605 " guestfs_mkfs_b (guestfs_h *g,\n"
28606 "                 const char *fstype,\n"
28607 "                 int blocksize,\n"
28608 "                 const char *device);\n"
28609 "\n"
28610
28611 #. type: textblock
28612 #: ../src/guestfs-actions.pod:4646
28613 msgid ""
28614 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
28615 "call instead."
28616 msgstr ""
28617
28618 #. type: textblock
28619 #: ../src/guestfs-actions.pod:4653
28620 msgid ""
28621 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
28622 "block size of the resulting filesystem.  Supported block sizes depend on the "
28623 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
28624 msgstr ""
28625
28626 #. type: =head2
28627 #: ../src/guestfs-actions.pod:4665
28628 msgid "guestfs_mkfs_opts"
28629 msgstr "guestfs_mkfs_opts"
28630
28631 #. type: verbatim
28632 #: ../src/guestfs-actions.pod:4667
28633 #, no-wrap
28634 msgid ""
28635 " int\n"
28636 " guestfs_mkfs_opts (guestfs_h *g,\n"
28637 "                    const char *fstype,\n"
28638 "                    const char *device,\n"
28639 "                    ...);\n"
28640 "\n"
28641 msgstr ""
28642 " int\n"
28643 " guestfs_mkfs_opts (guestfs_h *g,\n"
28644 "                    const char *fstype,\n"
28645 "                    const char *device,\n"
28646 "                    ...);\n"
28647 "\n"
28648
28649 #. type: verbatim
28650 #: ../src/guestfs-actions.pod:4678
28651 #, no-wrap
28652 msgid ""
28653 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
28654 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
28655 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
28656 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
28657 "\n"
28658 msgstr ""
28659
28660 #. type: textblock
28661 #: ../src/guestfs-actions.pod:4726
28662 msgid "(Added in 1.7.19)"
28663 msgstr "(Додано у 1.7.19)"
28664
28665 #. type: =head2
28666 #: ../src/guestfs-actions.pod:4728
28667 msgid "guestfs_mkfs_opts_va"
28668 msgstr "guestfs_mkfs_opts_va"
28669
28670 #. type: verbatim
28671 #: ../src/guestfs-actions.pod:4730
28672 #, no-wrap
28673 msgid ""
28674 " int\n"
28675 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28676 "                       const char *fstype,\n"
28677 "                       const char *device,\n"
28678 "                       va_list args);\n"
28679 "\n"
28680 msgstr ""
28681 " int\n"
28682 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
28683 "                       const char *fstype,\n"
28684 "                       const char *device,\n"
28685 "                       va_list args);\n"
28686 "\n"
28687
28688 #. type: textblock
28689 #: ../src/guestfs-actions.pod:4736
28690 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
28691 msgstr ""
28692
28693 #. type: =head2
28694 #: ../src/guestfs-actions.pod:4740
28695 msgid "guestfs_mkfs_opts_argv"
28696 msgstr "guestfs_mkfs_opts_argv"
28697
28698 #. type: verbatim
28699 #: ../src/guestfs-actions.pod:4742
28700 #, no-wrap
28701 msgid ""
28702 " int\n"
28703 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28704 "                         const char *fstype,\n"
28705 "                         const char *device,\n"
28706 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28707 "\n"
28708 msgstr ""
28709 " int\n"
28710 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
28711 "                         const char *fstype,\n"
28712 "                         const char *device,\n"
28713 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
28714 "\n"
28715
28716 #. type: textblock
28717 #: ../src/guestfs-actions.pod:4748
28718 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
28719 msgstr ""
28720
28721 #. type: =head2
28722 #: ../src/guestfs-actions.pod:4752
28723 msgid "guestfs_mkmountpoint"
28724 msgstr "guestfs_mkmountpoint"
28725
28726 #. type: verbatim
28727 #: ../src/guestfs-actions.pod:4754
28728 #, no-wrap
28729 msgid ""
28730 " int\n"
28731 " guestfs_mkmountpoint (guestfs_h *g,\n"
28732 "                       const char *exemptpath);\n"
28733 "\n"
28734 msgstr ""
28735 " int\n"
28736 " guestfs_mkmountpoint (guestfs_h *g,\n"
28737 "                       const char *exemptpath);\n"
28738 "\n"
28739
28740 #. type: textblock
28741 #: ../src/guestfs-actions.pod:4758
28742 msgid ""
28743 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
28744 "that can be used to create extra mountpoints before mounting the first "
28745 "filesystem."
28746 msgstr ""
28747
28748 #. type: textblock
28749 #: ../src/guestfs-actions.pod:4782
28750 msgid ""
28751 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
28752 "may get unexpected errors if you try to mix these calls.  It is safest to "
28753 "manually unmount filesystems and remove mountpoints after use."
28754 msgstr ""
28755
28756 #. type: textblock
28757 #: ../src/guestfs-actions.pod:4786
28758 msgid ""
28759 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
28760 "first, so for this to work for manual mountpoints, you must ensure that the "
28761 "innermost mountpoints have the longest pathnames, as in the example code "
28762 "above."
28763 msgstr ""
28764
28765 #. type: textblock
28766 #: ../src/guestfs-actions.pod:4793
28767 msgid ""
28768 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
28769 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
28770 "can also trigger these issues."
28771 msgstr ""
28772
28773 #. type: textblock
28774 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:5115
28775 #: ../src/guestfs-actions.pod:6125
28776 msgid "(Added in 1.0.62)"
28777 msgstr "(Додано у 1.0.62)"
28778
28779 #. type: =head2
28780 #: ../src/guestfs-actions.pod:4801
28781 msgid "guestfs_mknod"
28782 msgstr ""
28783
28784 #. type: verbatim
28785 #: ../src/guestfs-actions.pod:4803
28786 #, no-wrap
28787 msgid ""
28788 " int\n"
28789 " guestfs_mknod (guestfs_h *g,\n"
28790 "                int mode,\n"
28791 "                int devmajor,\n"
28792 "                int devminor,\n"
28793 "                const char *path);\n"
28794 "\n"
28795 msgstr ""
28796
28797 #. type: textblock
28798 #: ../src/guestfs-actions.pod:4818
28799 msgid ""
28800 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
28801 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
28802 "regular file).  These constants are available in the standard Linux header "
28803 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
28804 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
28805 "the appropriate constant for you."
28806 msgstr ""
28807
28808 #. type: =head2
28809 #: ../src/guestfs-actions.pod:4832
28810 msgid "guestfs_mknod_b"
28811 msgstr ""
28812
28813 #. type: verbatim
28814 #: ../src/guestfs-actions.pod:4834
28815 #, no-wrap
28816 msgid ""
28817 " int\n"
28818 " guestfs_mknod_b (guestfs_h *g,\n"
28819 "                  int mode,\n"
28820 "                  int devmajor,\n"
28821 "                  int devminor,\n"
28822 "                  const char *path);\n"
28823 "\n"
28824 msgstr ""
28825
28826 #. type: textblock
28827 #: ../src/guestfs-actions.pod:4841
28828 msgid ""
28829 "This call creates a block device node called C<path> with mode C<mode> and "
28830 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28831 "wrapper around C<guestfs_mknod>."
28832 msgstr ""
28833
28834 #. type: =head2
28835 #: ../src/guestfs-actions.pod:4851
28836 msgid "guestfs_mknod_c"
28837 msgstr ""
28838
28839 #. type: verbatim
28840 #: ../src/guestfs-actions.pod:4853
28841 #, no-wrap
28842 msgid ""
28843 " int\n"
28844 " guestfs_mknod_c (guestfs_h *g,\n"
28845 "                  int mode,\n"
28846 "                  int devmajor,\n"
28847 "                  int devminor,\n"
28848 "                  const char *path);\n"
28849 "\n"
28850 msgstr ""
28851
28852 #. type: textblock
28853 #: ../src/guestfs-actions.pod:4860
28854 msgid ""
28855 "This call creates a char device node called C<path> with mode C<mode> and "
28856 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
28857 "wrapper around C<guestfs_mknod>."
28858 msgstr ""
28859
28860 #. type: =head2
28861 #: ../src/guestfs-actions.pod:4870
28862 msgid "guestfs_mkswap"
28863 msgstr ""
28864
28865 #. type: verbatim
28866 #: ../src/guestfs-actions.pod:4872
28867 #, no-wrap
28868 msgid ""
28869 " int\n"
28870 " guestfs_mkswap (guestfs_h *g,\n"
28871 "                 const char *device);\n"
28872 "\n"
28873 msgstr ""
28874
28875 #. type: =head2
28876 #: ../src/guestfs-actions.pod:4882
28877 msgid "guestfs_mkswap_L"
28878 msgstr ""
28879
28880 #. type: verbatim
28881 #: ../src/guestfs-actions.pod:4884
28882 #, no-wrap
28883 msgid ""
28884 " int\n"
28885 " guestfs_mkswap_L (guestfs_h *g,\n"
28886 "                   const char *label,\n"
28887 "                   const char *device);\n"
28888 "\n"
28889 msgstr ""
28890
28891 #. type: =head2
28892 #: ../src/guestfs-actions.pod:4899
28893 msgid "guestfs_mkswap_U"
28894 msgstr ""
28895
28896 #. type: verbatim
28897 #: ../src/guestfs-actions.pod:4901
28898 #, no-wrap
28899 msgid ""
28900 " int\n"
28901 " guestfs_mkswap_U (guestfs_h *g,\n"
28902 "                   const char *uuid,\n"
28903 "                   const char *device);\n"
28904 "\n"
28905 msgstr ""
28906
28907 #. type: =head2
28908 #: ../src/guestfs-actions.pod:4912
28909 msgid "guestfs_mkswap_file"
28910 msgstr ""
28911
28912 #. type: verbatim
28913 #: ../src/guestfs-actions.pod:4914
28914 #, no-wrap
28915 msgid ""
28916 " int\n"
28917 " guestfs_mkswap_file (guestfs_h *g,\n"
28918 "                      const char *path);\n"
28919 "\n"
28920 msgstr ""
28921
28922 #. type: textblock
28923 #: ../src/guestfs-actions.pod:4920
28924 msgid ""
28925 "This command just writes a swap file signature to an existing file.  To "
28926 "create the file itself, use something like C<guestfs_fallocate>."
28927 msgstr ""
28928
28929 #. type: =head2
28930 #: ../src/guestfs-actions.pod:4927
28931 msgid "guestfs_modprobe"
28932 msgstr ""
28933
28934 #. type: verbatim
28935 #: ../src/guestfs-actions.pod:4929
28936 #, no-wrap
28937 msgid ""
28938 " int\n"
28939 " guestfs_modprobe (guestfs_h *g,\n"
28940 "                   const char *modulename);\n"
28941 "\n"
28942 msgstr ""
28943
28944 #. type: =head2
28945 #: ../src/guestfs-actions.pod:4942
28946 msgid "guestfs_mount"
28947 msgstr ""
28948
28949 #. type: verbatim
28950 #: ../src/guestfs-actions.pod:4944
28951 #, no-wrap
28952 msgid ""
28953 " int\n"
28954 " guestfs_mount (guestfs_h *g,\n"
28955 "                const char *device,\n"
28956 "                const char *mountpoint);\n"
28957 "\n"
28958 msgstr ""
28959
28960 #. type: textblock
28961 #: ../src/guestfs-actions.pod:4949
28962 msgid ""
28963 "I<This function is deprecated.> In new code, use the L</"
28964 "guestfs_mount_options> call instead."
28965 msgstr ""
28966
28967 #. type: textblock
28968 #: ../src/guestfs-actions.pod:4970
28969 msgid ""
28970 "B<Important note:> When you use this call, the filesystem options C<sync> "
28971 "and C<noatime> are set implicitly.  This was originally done because we "
28972 "thought it would improve reliability, but it turns out that I<-o sync> has a "
28973 "very large negative performance impact and negligible effect on "
28974 "reliability.  Therefore we recommend that you avoid using C<guestfs_mount> "
28975 "in any code that needs performance, and instead use C<guestfs_mount_options> "
28976 "(use an empty string for the first parameter if you don't want any options)."
28977 msgstr ""
28978
28979 #. type: =head2
28980 #: ../src/guestfs-actions.pod:4984
28981 msgid "guestfs_mount_9p"
28982 msgstr ""
28983
28984 #. type: verbatim
28985 #: ../src/guestfs-actions.pod:4986
28986 #, no-wrap
28987 msgid ""
28988 " int\n"
28989 " guestfs_mount_9p (guestfs_h *g,\n"
28990 "                   const char *mounttag,\n"
28991 "                   const char *mountpoint,\n"
28992 "                   ...);\n"
28993 "\n"
28994 msgstr ""
28995
28996 #. type: verbatim
28997 #: ../src/guestfs-actions.pod:4997
28998 #, no-wrap
28999 msgid ""
29000 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
29001 "\n"
29002 msgstr ""
29003
29004 #. type: =head2
29005 #: ../src/guestfs-actions.pod:5010
29006 msgid "guestfs_mount_9p_va"
29007 msgstr ""
29008
29009 #. type: verbatim
29010 #: ../src/guestfs-actions.pod:5012
29011 #, no-wrap
29012 msgid ""
29013 " int\n"
29014 " guestfs_mount_9p_va (guestfs_h *g,\n"
29015 "                      const char *mounttag,\n"
29016 "                      const char *mountpoint,\n"
29017 "                      va_list args);\n"
29018 "\n"
29019 msgstr ""
29020
29021 #. type: textblock
29022 #: ../src/guestfs-actions.pod:5018
29023 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
29024 msgstr ""
29025
29026 #. type: =head2
29027 #: ../src/guestfs-actions.pod:5022
29028 msgid "guestfs_mount_9p_argv"
29029 msgstr ""
29030
29031 #. type: verbatim
29032 #: ../src/guestfs-actions.pod:5024
29033 #, no-wrap
29034 msgid ""
29035 " int\n"
29036 " guestfs_mount_9p_argv (guestfs_h *g,\n"
29037 "                        const char *mounttag,\n"
29038 "                        const char *mountpoint,\n"
29039 "                        const struct guestfs_mount_9p_argv *optargs);\n"
29040 "\n"
29041 msgstr ""
29042
29043 #. type: textblock
29044 #: ../src/guestfs-actions.pod:5030
29045 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
29046 msgstr ""
29047
29048 #. type: =head2
29049 #: ../src/guestfs-actions.pod:5034
29050 msgid "guestfs_mount_loop"
29051 msgstr ""
29052
29053 #. type: verbatim
29054 #: ../src/guestfs-actions.pod:5036
29055 #, no-wrap
29056 msgid ""
29057 " int\n"
29058 " guestfs_mount_loop (guestfs_h *g,\n"
29059 "                     const char *file,\n"
29060 "                     const char *mountpoint);\n"
29061 "\n"
29062 msgstr ""
29063
29064 #. type: =head2
29065 #: ../src/guestfs-actions.pod:5049
29066 msgid "guestfs_mount_options"
29067 msgstr ""
29068
29069 #. type: verbatim
29070 #: ../src/guestfs-actions.pod:5051
29071 #, no-wrap
29072 msgid ""
29073 " int\n"
29074 " guestfs_mount_options (guestfs_h *g,\n"
29075 "                        const char *options,\n"
29076 "                        const char *device,\n"
29077 "                        const char *mountpoint);\n"
29078 "\n"
29079 msgstr ""
29080
29081 #. type: textblock
29082 #: ../src/guestfs-actions.pod:5057
29083 msgid ""
29084 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29085 "the mount options as for the L<mount(8)> I<-o> flag."
29086 msgstr ""
29087
29088 #. type: textblock
29089 #: ../src/guestfs-actions.pod:5067 ../src/guestfs-actions.pod:5081
29090 #: ../src/guestfs-actions.pod:5098
29091 msgid "(Added in 1.0.10)"
29092 msgstr ""
29093
29094 #. type: =head2
29095 #: ../src/guestfs-actions.pod:5069
29096 msgid "guestfs_mount_ro"
29097 msgstr ""
29098
29099 #. type: verbatim
29100 #: ../src/guestfs-actions.pod:5071
29101 #, no-wrap
29102 msgid ""
29103 " int\n"
29104 " guestfs_mount_ro (guestfs_h *g,\n"
29105 "                   const char *device,\n"
29106 "                   const char *mountpoint);\n"
29107 "\n"
29108 msgstr ""
29109
29110 #. type: textblock
29111 #: ../src/guestfs-actions.pod:5076
29112 msgid ""
29113 "This is the same as the C<guestfs_mount> command, but it mounts the "
29114 "filesystem with the read-only (I<-o ro>) flag."
29115 msgstr ""
29116
29117 #. type: =head2
29118 #: ../src/guestfs-actions.pod:5083
29119 msgid "guestfs_mount_vfs"
29120 msgstr ""
29121
29122 #. type: verbatim
29123 #: ../src/guestfs-actions.pod:5085
29124 #, no-wrap
29125 msgid ""
29126 " int\n"
29127 " guestfs_mount_vfs (guestfs_h *g,\n"
29128 "                    const char *options,\n"
29129 "                    const char *vfstype,\n"
29130 "                    const char *device,\n"
29131 "                    const char *mountpoint);\n"
29132 "\n"
29133 msgstr ""
29134
29135 #. type: textblock
29136 #: ../src/guestfs-actions.pod:5092
29137 msgid ""
29138 "This is the same as the C<guestfs_mount> command, but it allows you to set "
29139 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
29140 "t> flags."
29141 msgstr ""
29142
29143 #. type: =head2
29144 #: ../src/guestfs-actions.pod:5100
29145 msgid "guestfs_mountpoints"
29146 msgstr ""
29147
29148 #. type: verbatim
29149 #: ../src/guestfs-actions.pod:5102
29150 #, no-wrap
29151 msgid ""
29152 " char **\n"
29153 " guestfs_mountpoints (guestfs_h *g);\n"
29154 "\n"
29155 msgstr ""
29156
29157 #. type: textblock
29158 #: ../src/guestfs-actions.pod:5105
29159 msgid ""
29160 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
29161 "devices.  This one returns a hash table (map) of device name to directory "
29162 "where the device is mounted."
29163 msgstr ""
29164
29165 #. type: =head2
29166 #: ../src/guestfs-actions.pod:5117
29167 msgid "guestfs_mounts"
29168 msgstr ""
29169
29170 #. type: verbatim
29171 #: ../src/guestfs-actions.pod:5119
29172 #, no-wrap
29173 msgid ""
29174 " char **\n"
29175 " guestfs_mounts (guestfs_h *g);\n"
29176 "\n"
29177 msgstr ""
29178
29179 #. type: textblock
29180 #: ../src/guestfs-actions.pod:5127
29181 msgid "See also: C<guestfs_mountpoints>"
29182 msgstr ""
29183
29184 #. type: =head2
29185 #: ../src/guestfs-actions.pod:5135
29186 msgid "guestfs_mv"
29187 msgstr ""
29188
29189 #. type: verbatim
29190 #: ../src/guestfs-actions.pod:5137
29191 #, no-wrap
29192 msgid ""
29193 " int\n"
29194 " guestfs_mv (guestfs_h *g,\n"
29195 "             const char *src,\n"
29196 "             const char *dest);\n"
29197 "\n"
29198 msgstr ""
29199
29200 #. type: =head2
29201 #: ../src/guestfs-actions.pod:5149
29202 msgid "guestfs_ntfs_3g_probe"
29203 msgstr ""
29204
29205 #. type: verbatim
29206 #: ../src/guestfs-actions.pod:5151
29207 #, no-wrap
29208 msgid ""
29209 " int\n"
29210 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
29211 "                        int rw,\n"
29212 "                        const char *device);\n"
29213 "\n"
29214 msgstr ""
29215
29216 #. type: textblock
29217 #: ../src/guestfs-actions.pod:5170
29218 msgid "(Added in 1.0.43)"
29219 msgstr ""
29220
29221 #. type: =head2
29222 #: ../src/guestfs-actions.pod:5172
29223 msgid "guestfs_ntfsresize"
29224 msgstr ""
29225
29226 #. type: verbatim
29227 #: ../src/guestfs-actions.pod:5174
29228 #, no-wrap
29229 msgid ""
29230 " int\n"
29231 " guestfs_ntfsresize (guestfs_h *g,\n"
29232 "                     const char *device);\n"
29233 "\n"
29234 msgstr ""
29235
29236 #. type: textblock
29237 #: ../src/guestfs-actions.pod:5178 ../src/guestfs-actions.pod:5278
29238 msgid ""
29239 "I<This function is deprecated.> In new code, use the L</"
29240 "guestfs_ntfsresize_opts> call instead."
29241 msgstr ""
29242
29243 #. type: =head2
29244 #: ../src/guestfs-actions.pod:5202
29245 msgid "guestfs_ntfsresize_opts"
29246 msgstr ""
29247
29248 #. type: verbatim
29249 #: ../src/guestfs-actions.pod:5204
29250 #, no-wrap
29251 msgid ""
29252 " int\n"
29253 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
29254 "                          const char *device,\n"
29255 "                          ...);\n"
29256 "\n"
29257 msgstr ""
29258
29259 #. type: verbatim
29260 #: ../src/guestfs-actions.pod:5214
29261 #, no-wrap
29262 msgid ""
29263 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
29264 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
29265 "\n"
29266 msgstr ""
29267
29268 #. type: textblock
29269 #: ../src/guestfs-actions.pod:5234
29270 msgid ""
29271 "After the resize operation, the filesystem is always marked as requiring a "
29272 "consistency check (for safety).  You have to boot into Windows to perform "
29273 "this check and clear this condition.  If you I<don't> set the C<force> "
29274 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
29275 "times on a single filesystem without booting into Windows between each "
29276 "resize."
29277 msgstr ""
29278
29279 #. type: =head2
29280 #: ../src/guestfs-actions.pod:5249
29281 msgid "guestfs_ntfsresize_opts_va"
29282 msgstr ""
29283
29284 #. type: verbatim
29285 #: ../src/guestfs-actions.pod:5251
29286 #, no-wrap
29287 msgid ""
29288 " int\n"
29289 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
29290 "                             const char *device,\n"
29291 "                             va_list args);\n"
29292 "\n"
29293 msgstr ""
29294
29295 #. type: textblock
29296 #: ../src/guestfs-actions.pod:5256
29297 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
29298 msgstr ""
29299
29300 #. type: =head2
29301 #: ../src/guestfs-actions.pod:5260
29302 msgid "guestfs_ntfsresize_opts_argv"
29303 msgstr ""
29304
29305 #. type: verbatim
29306 #: ../src/guestfs-actions.pod:5262
29307 #, no-wrap
29308 msgid ""
29309 " int\n"
29310 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
29311 "                               const char *device,\n"
29312 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
29313 "\n"
29314 msgstr ""
29315
29316 #. type: textblock
29317 #: ../src/guestfs-actions.pod:5267
29318 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
29319 msgstr ""
29320
29321 #. type: =head2
29322 #: ../src/guestfs-actions.pod:5271
29323 msgid "guestfs_ntfsresize_size"
29324 msgstr ""
29325
29326 #. type: verbatim
29327 #: ../src/guestfs-actions.pod:5273
29328 #, no-wrap
29329 msgid ""
29330 " int\n"
29331 " guestfs_ntfsresize_size (guestfs_h *g,\n"
29332 "                          const char *device,\n"
29333 "                          int64_t size);\n"
29334 "\n"
29335 msgstr ""
29336
29337 #. type: textblock
29338 #: ../src/guestfs-actions.pod:5285
29339 msgid ""
29340 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
29341 "to specify the new size (in bytes) explicitly."
29342 msgstr ""
29343
29344 #. type: textblock
29345 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5732
29346 #: ../src/guestfs-actions.pod:5805 ../src/guestfs-actions.pod:6073
29347 #: ../src/guestfs-actions.pod:7696
29348 msgid "(Added in 1.3.14)"
29349 msgstr ""
29350
29351 #. type: =head2
29352 #: ../src/guestfs-actions.pod:5292
29353 msgid "guestfs_part_add"
29354 msgstr ""
29355
29356 #. type: verbatim
29357 #: ../src/guestfs-actions.pod:5294
29358 #, no-wrap
29359 msgid ""
29360 " int\n"
29361 " guestfs_part_add (guestfs_h *g,\n"
29362 "                   const char *device,\n"
29363 "                   const char *prlogex,\n"
29364 "                   int64_t startsect,\n"
29365 "                   int64_t endsect);\n"
29366 "\n"
29367 msgstr ""
29368
29369 #. type: textblock
29370 #: ../src/guestfs-actions.pod:5301
29371 msgid ""
29372 "This command adds a partition to C<device>.  If there is no partition table "
29373 "on the device, call C<guestfs_part_init> first."
29374 msgstr ""
29375
29376 #. type: textblock
29377 #: ../src/guestfs-actions.pod:5313
29378 msgid ""
29379 "Creating a partition which covers the whole disk is not so easy.  Use "
29380 "C<guestfs_part_disk> to do that."
29381 msgstr ""
29382
29383 #. type: textblock
29384 #: ../src/guestfs-actions.pod:5318 ../src/guestfs-actions.pod:5356
29385 #: ../src/guestfs-actions.pod:5409 ../src/guestfs-actions.pod:5493
29386 #: ../src/guestfs-actions.pod:5531 ../src/guestfs-actions.pod:5550
29387 #: ../src/guestfs-actions.pod:5590
29388 msgid "(Added in 1.0.78)"
29389 msgstr ""
29390
29391 #. type: =head2
29392 #: ../src/guestfs-actions.pod:5320
29393 msgid "guestfs_part_del"
29394 msgstr ""
29395
29396 #. type: verbatim
29397 #: ../src/guestfs-actions.pod:5322
29398 #, no-wrap
29399 msgid ""
29400 " int\n"
29401 " guestfs_part_del (guestfs_h *g,\n"
29402 "                   const char *device,\n"
29403 "                   int partnum);\n"
29404 "\n"
29405 msgstr ""
29406
29407 #. type: =head2
29408 #: ../src/guestfs-actions.pod:5337
29409 msgid "guestfs_part_disk"
29410 msgstr ""
29411
29412 #. type: verbatim
29413 #: ../src/guestfs-actions.pod:5339
29414 #, no-wrap
29415 msgid ""
29416 " int\n"
29417 " guestfs_part_disk (guestfs_h *g,\n"
29418 "                    const char *device,\n"
29419 "                    const char *parttype);\n"
29420 "\n"
29421 msgstr ""
29422
29423 #. type: textblock
29424 #: ../src/guestfs-actions.pod:5344
29425 msgid ""
29426 "This command is simply a combination of C<guestfs_part_init> followed by "
29427 "C<guestfs_part_add> to create a single primary partition covering the whole "
29428 "disk."
29429 msgstr ""
29430
29431 #. type: textblock
29432 #: ../src/guestfs-actions.pod:5348
29433 msgid ""
29434 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
29435 "possible values are described in C<guestfs_part_init>."
29436 msgstr ""
29437
29438 #. type: =head2
29439 #: ../src/guestfs-actions.pod:5358
29440 msgid "guestfs_part_get_bootable"
29441 msgstr ""
29442
29443 #. type: verbatim
29444 #: ../src/guestfs-actions.pod:5360
29445 #, no-wrap
29446 msgid ""
29447 " int\n"
29448 " guestfs_part_get_bootable (guestfs_h *g,\n"
29449 "                            const char *device,\n"
29450 "                            int partnum);\n"
29451 "\n"
29452 msgstr ""
29453
29454 #. type: textblock
29455 #: ../src/guestfs-actions.pod:5368
29456 msgid "See also C<guestfs_part_set_bootable>."
29457 msgstr ""
29458
29459 #. type: =head2
29460 #: ../src/guestfs-actions.pod:5374
29461 msgid "guestfs_part_get_mbr_id"
29462 msgstr ""
29463
29464 #. type: verbatim
29465 #: ../src/guestfs-actions.pod:5376
29466 #, no-wrap
29467 msgid ""
29468 " int\n"
29469 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
29470 "                          const char *device,\n"
29471 "                          int partnum);\n"
29472 "\n"
29473 msgstr ""
29474
29475 #. type: textblock
29476 #: ../src/guestfs-actions.pod:5384 ../src/guestfs-actions.pod:5566
29477 msgid ""
29478 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
29479 "undefined results for other partition table types (see "
29480 "C<guestfs_part_get_parttype>)."
29481 msgstr ""
29482
29483 #. type: =head2
29484 #: ../src/guestfs-actions.pod:5392
29485 msgid "guestfs_part_get_parttype"
29486 msgstr ""
29487
29488 #. type: verbatim
29489 #: ../src/guestfs-actions.pod:5394
29490 #, no-wrap
29491 msgid ""
29492 " char *\n"
29493 " guestfs_part_get_parttype (guestfs_h *g,\n"
29494 "                            const char *device);\n"
29495 "\n"
29496 msgstr ""
29497
29498 #. type: textblock
29499 #: ../src/guestfs-actions.pod:5401
29500 msgid ""
29501 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
29502 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
29503 "possible, although unusual.  See C<guestfs_part_init> for a full list."
29504 msgstr ""
29505
29506 #. type: =head2
29507 #: ../src/guestfs-actions.pod:5411
29508 msgid "guestfs_part_init"
29509 msgstr ""
29510
29511 #. type: verbatim
29512 #: ../src/guestfs-actions.pod:5413
29513 #, no-wrap
29514 msgid ""
29515 " int\n"
29516 " guestfs_part_init (guestfs_h *g,\n"
29517 "                    const char *device,\n"
29518 "                    const char *parttype);\n"
29519 "\n"
29520 msgstr ""
29521
29522 #. type: textblock
29523 #: ../src/guestfs-actions.pod:5422
29524 msgid ""
29525 "Initially there are no partitions.  Following this, you should call "
29526 "C<guestfs_part_add> for each partition required."
29527 msgstr ""
29528
29529 #. type: =head2
29530 #: ../src/guestfs-actions.pod:5495
29531 msgid "guestfs_part_list"
29532 msgstr "guestfs_part_list"
29533
29534 #. type: verbatim
29535 #: ../src/guestfs-actions.pod:5497
29536 #, no-wrap
29537 msgid ""
29538 " struct guestfs_partition_list *\n"
29539 " guestfs_part_list (guestfs_h *g,\n"
29540 "                    const char *device);\n"
29541 "\n"
29542 msgstr ""
29543 " struct guestfs_partition_list *\n"
29544 " guestfs_part_list (guestfs_h *g,\n"
29545 "                    const char *device);\n"
29546 "\n"
29547
29548 #. type: textblock
29549 #: ../src/guestfs-actions.pod:5514
29550 msgid ""
29551 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
29552 "the device's sector size, see C<guestfs_blockdev_getss>."
29553 msgstr ""
29554
29555 #. type: textblock
29556 #: ../src/guestfs-actions.pod:5527
29557 msgid ""
29558 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
29559 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
29560 "use>."
29561 msgstr ""
29562
29563 #. type: =head2
29564 #: ../src/guestfs-actions.pod:5533
29565 msgid "guestfs_part_set_bootable"
29566 msgstr ""
29567
29568 #. type: verbatim
29569 #: ../src/guestfs-actions.pod:5535
29570 #, no-wrap
29571 msgid ""
29572 " int\n"
29573 " guestfs_part_set_bootable (guestfs_h *g,\n"
29574 "                            const char *device,\n"
29575 "                            int partnum,\n"
29576 "                            int bootable);\n"
29577 "\n"
29578 msgstr ""
29579
29580 #. type: =head2
29581 #: ../src/guestfs-actions.pod:5552
29582 msgid "guestfs_part_set_mbr_id"
29583 msgstr ""
29584
29585 #. type: verbatim
29586 #: ../src/guestfs-actions.pod:5554
29587 #, no-wrap
29588 msgid ""
29589 " int\n"
29590 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
29591 "                          const char *device,\n"
29592 "                          int partnum,\n"
29593 "                          int idbyte);\n"
29594 "\n"
29595 msgstr ""
29596
29597 #. type: =head2
29598 #: ../src/guestfs-actions.pod:5574
29599 msgid "guestfs_part_set_name"
29600 msgstr ""
29601
29602 #. type: verbatim
29603 #: ../src/guestfs-actions.pod:5576
29604 #, no-wrap
29605 msgid ""
29606 " int\n"
29607 " guestfs_part_set_name (guestfs_h *g,\n"
29608 "                        const char *device,\n"
29609 "                        int partnum,\n"
29610 "                        const char *name);\n"
29611 "\n"
29612 msgstr ""
29613
29614 #. type: =head2
29615 #: ../src/guestfs-actions.pod:5592
29616 msgid "guestfs_part_to_dev"
29617 msgstr ""
29618
29619 #. type: verbatim
29620 #: ../src/guestfs-actions.pod:5594
29621 #, no-wrap
29622 msgid ""
29623 " char *\n"
29624 " guestfs_part_to_dev (guestfs_h *g,\n"
29625 "                      const char *partition);\n"
29626 "\n"
29627 msgstr ""
29628
29629 #. type: textblock
29630 #: ../src/guestfs-actions.pod:5602
29631 msgid ""
29632 "The named partition must exist, for example as a string returned from "
29633 "C<guestfs_list_partitions>."
29634 msgstr ""
29635
29636 #. type: =head2
29637 #: ../src/guestfs-actions.pod:5610
29638 msgid "guestfs_ping_daemon"
29639 msgstr ""
29640
29641 #. type: verbatim
29642 #: ../src/guestfs-actions.pod:5612
29643 #, no-wrap
29644 msgid ""
29645 " int\n"
29646 " guestfs_ping_daemon (guestfs_h *g);\n"
29647 "\n"
29648 msgstr ""
29649
29650 #. type: =head2
29651 #: ../src/guestfs-actions.pod:5624
29652 msgid "guestfs_pread"
29653 msgstr ""
29654
29655 #. type: verbatim
29656 #: ../src/guestfs-actions.pod:5626
29657 #, no-wrap
29658 msgid ""
29659 " char *\n"
29660 " guestfs_pread (guestfs_h *g,\n"
29661 "                const char *path,\n"
29662 "                int count,\n"
29663 "                int64_t offset,\n"
29664 "                size_t *size_r);\n"
29665 "\n"
29666 msgstr ""
29667
29668 #. type: textblock
29669 #: ../src/guestfs-actions.pod:5639
29670 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
29671 msgstr ""
29672
29673 #. type: =head2
29674 #: ../src/guestfs-actions.pod:5650
29675 msgid "guestfs_pread_device"
29676 msgstr ""
29677
29678 #. type: verbatim
29679 #: ../src/guestfs-actions.pod:5652
29680 #, no-wrap
29681 msgid ""
29682 " char *\n"
29683 " guestfs_pread_device (guestfs_h *g,\n"
29684 "                       const char *device,\n"
29685 "                       int count,\n"
29686 "                       int64_t offset,\n"
29687 "                       size_t *size_r);\n"
29688 "\n"
29689 msgstr ""
29690
29691 #. type: textblock
29692 #: ../src/guestfs-actions.pod:5665
29693 msgid "See also C<guestfs_pread>."
29694 msgstr ""
29695
29696 #. type: textblock
29697 #: ../src/guestfs-actions.pod:5674
29698 msgid "(Added in 1.5.21)"
29699 msgstr ""
29700
29701 #. type: =head2
29702 #: ../src/guestfs-actions.pod:5676
29703 msgid "guestfs_pvcreate"
29704 msgstr ""
29705
29706 #. type: verbatim
29707 #: ../src/guestfs-actions.pod:5678
29708 #, no-wrap
29709 msgid ""
29710 " int\n"
29711 " guestfs_pvcreate (guestfs_h *g,\n"
29712 "                   const char *device);\n"
29713 "\n"
29714 msgstr ""
29715
29716 #. type: =head2
29717 #: ../src/guestfs-actions.pod:5690
29718 msgid "guestfs_pvremove"
29719 msgstr ""
29720
29721 #. type: verbatim
29722 #: ../src/guestfs-actions.pod:5692
29723 #, no-wrap
29724 msgid ""
29725 " int\n"
29726 " guestfs_pvremove (guestfs_h *g,\n"
29727 "                   const char *device);\n"
29728 "\n"
29729 msgstr ""
29730
29731 #. type: =head2
29732 #: ../src/guestfs-actions.pod:5707
29733 msgid "guestfs_pvresize"
29734 msgstr ""
29735
29736 #. type: verbatim
29737 #: ../src/guestfs-actions.pod:5709
29738 #, no-wrap
29739 msgid ""
29740 " int\n"
29741 " guestfs_pvresize (guestfs_h *g,\n"
29742 "                   const char *device);\n"
29743 "\n"
29744 msgstr ""
29745
29746 #. type: =head2
29747 #: ../src/guestfs-actions.pod:5720
29748 msgid "guestfs_pvresize_size"
29749 msgstr ""
29750
29751 #. type: verbatim
29752 #: ../src/guestfs-actions.pod:5722
29753 #, no-wrap
29754 msgid ""
29755 " int\n"
29756 " guestfs_pvresize_size (guestfs_h *g,\n"
29757 "                        const char *device,\n"
29758 "                        int64_t size);\n"
29759 "\n"
29760 msgstr ""
29761
29762 #. type: textblock
29763 #: ../src/guestfs-actions.pod:5727
29764 msgid ""
29765 "This command is the same as C<guestfs_pvresize> except that it allows you to "
29766 "specify the new size (in bytes) explicitly."
29767 msgstr ""
29768
29769 #. type: =head2
29770 #: ../src/guestfs-actions.pod:5734
29771 msgid "guestfs_pvs"
29772 msgstr ""
29773
29774 #. type: verbatim
29775 #: ../src/guestfs-actions.pod:5736
29776 #, no-wrap
29777 msgid ""
29778 " char **\n"
29779 " guestfs_pvs (guestfs_h *g);\n"
29780 "\n"
29781 msgstr ""
29782
29783 #. type: textblock
29784 #: ../src/guestfs-actions.pod:5745
29785 msgid "See also C<guestfs_pvs_full>."
29786 msgstr ""
29787
29788 #. type: =head2
29789 #: ../src/guestfs-actions.pod:5753
29790 msgid "guestfs_pvs_full"
29791 msgstr ""
29792
29793 #. type: verbatim
29794 #: ../src/guestfs-actions.pod:5755
29795 #, no-wrap
29796 msgid ""
29797 " struct guestfs_lvm_pv_list *\n"
29798 " guestfs_pvs_full (guestfs_h *g);\n"
29799 "\n"
29800 msgstr ""
29801
29802 #. type: textblock
29803 #: ../src/guestfs-actions.pod:5761
29804 msgid ""
29805 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
29806 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
29807 msgstr ""
29808
29809 #. type: =head2
29810 #: ../src/guestfs-actions.pod:5767
29811 msgid "guestfs_pvuuid"
29812 msgstr ""
29813
29814 #. type: verbatim
29815 #: ../src/guestfs-actions.pod:5769
29816 #, no-wrap
29817 msgid ""
29818 " char *\n"
29819 " guestfs_pvuuid (guestfs_h *g,\n"
29820 "                 const char *device);\n"
29821 "\n"
29822 msgstr ""
29823
29824 #. type: =head2
29825 #: ../src/guestfs-actions.pod:5780
29826 msgid "guestfs_pwrite"
29827 msgstr ""
29828
29829 #. type: verbatim
29830 #: ../src/guestfs-actions.pod:5782
29831 #, no-wrap
29832 msgid ""
29833 " int\n"
29834 " guestfs_pwrite (guestfs_h *g,\n"
29835 "                 const char *path,\n"
29836 "                 const char *content,\n"
29837 "                 size_t content_size,\n"
29838 "                 int64_t offset);\n"
29839 "\n"
29840 msgstr ""
29841
29842 #. type: textblock
29843 #: ../src/guestfs-actions.pod:5798
29844 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
29845 msgstr ""
29846
29847 #. type: =head2
29848 #: ../src/guestfs-actions.pod:5807
29849 msgid "guestfs_pwrite_device"
29850 msgstr ""
29851
29852 #. type: verbatim
29853 #: ../src/guestfs-actions.pod:5809
29854 #, no-wrap
29855 msgid ""
29856 " int\n"
29857 " guestfs_pwrite_device (guestfs_h *g,\n"
29858 "                        const char *device,\n"
29859 "                        const char *content,\n"
29860 "                        size_t content_size,\n"
29861 "                        int64_t offset);\n"
29862 "\n"
29863 msgstr ""
29864
29865 #. type: textblock
29866 #: ../src/guestfs-actions.pod:5824
29867 msgid "See also C<guestfs_pwrite>."
29868 msgstr ""
29869
29870 #. type: textblock
29871 #: ../src/guestfs-actions.pod:5831
29872 msgid "(Added in 1.5.20)"
29873 msgstr ""
29874
29875 #. type: =head2
29876 #: ../src/guestfs-actions.pod:5833
29877 msgid "guestfs_read_file"
29878 msgstr ""
29879
29880 #. type: verbatim
29881 #: ../src/guestfs-actions.pod:5835
29882 #, no-wrap
29883 msgid ""
29884 " char *\n"
29885 " guestfs_read_file (guestfs_h *g,\n"
29886 "                    const char *path,\n"
29887 "                    size_t *size_r);\n"
29888 "\n"
29889 msgstr ""
29890
29891 #. type: textblock
29892 #: ../src/guestfs-actions.pod:5843
29893 msgid ""
29894 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
29895 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
29896 "function is limited in the total size of file that can be handled."
29897 msgstr ""
29898
29899 #. type: textblock
29900 #: ../src/guestfs-actions.pod:5855
29901 msgid "(Added in 1.0.63)"
29902 msgstr ""
29903
29904 #. type: =head2
29905 #: ../src/guestfs-actions.pod:5857
29906 msgid "guestfs_read_lines"
29907 msgstr ""
29908
29909 #. type: verbatim
29910 #: ../src/guestfs-actions.pod:5859
29911 #, no-wrap
29912 msgid ""
29913 " char **\n"
29914 " guestfs_read_lines (guestfs_h *g,\n"
29915 "                     const char *path);\n"
29916 "\n"
29917 msgstr ""
29918
29919 #. type: textblock
29920 #: ../src/guestfs-actions.pod:5868
29921 msgid ""
29922 "Note that this function cannot correctly handle binary files (specifically, "
29923 "files containing C<\\0> character which is treated as end of line).  For "
29924 "those you need to use the C<guestfs_read_file> function which has a more "
29925 "complex interface."
29926 msgstr ""
29927
29928 #. type: =head2
29929 #: ../src/guestfs-actions.pod:5879
29930 msgid "guestfs_readdir"
29931 msgstr ""
29932
29933 #. type: verbatim
29934 #: ../src/guestfs-actions.pod:5881
29935 #, no-wrap
29936 msgid ""
29937 " struct guestfs_dirent_list *\n"
29938 " guestfs_readdir (guestfs_h *g,\n"
29939 "                  const char *dir);\n"
29940 "\n"
29941 msgstr ""
29942
29943 #. type: textblock
29944 #: ../src/guestfs-actions.pod:5935
29945 msgid ""
29946 "This function is primarily intended for use by programs.  To get a simple "
29947 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
29948 "consumption, use C<guestfs_ll>."
29949 msgstr ""
29950
29951 #. type: textblock
29952 #: ../src/guestfs-actions.pod:5939
29953 msgid ""
29954 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
29955 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
29956 msgstr ""
29957
29958 #. type: =head2
29959 #: ../src/guestfs-actions.pod:5945
29960 msgid "guestfs_readlink"
29961 msgstr ""
29962
29963 #. type: verbatim
29964 #: ../src/guestfs-actions.pod:5947
29965 #, no-wrap
29966 msgid ""
29967 " char *\n"
29968 " guestfs_readlink (guestfs_h *g,\n"
29969 "                   const char *path);\n"
29970 "\n"
29971 msgstr ""
29972
29973 #. type: =head2
29974 #: ../src/guestfs-actions.pod:5958
29975 msgid "guestfs_readlinklist"
29976 msgstr ""
29977
29978 #. type: verbatim
29979 #: ../src/guestfs-actions.pod:5960
29980 #, no-wrap
29981 msgid ""
29982 " char **\n"
29983 " guestfs_readlinklist (guestfs_h *g,\n"
29984 "                       const char *path,\n"
29985 "                       char *const *names);\n"
29986 "\n"
29987 msgstr ""
29988
29989 #. type: =head2
29990 #: ../src/guestfs-actions.pod:5993
29991 msgid "guestfs_realpath"
29992 msgstr ""
29993
29994 #. type: verbatim
29995 #: ../src/guestfs-actions.pod:5995
29996 #, no-wrap
29997 msgid ""
29998 " char *\n"
29999 " guestfs_realpath (guestfs_h *g,\n"
30000 "                   const char *path);\n"
30001 "\n"
30002 msgstr ""
30003
30004 #. type: =head2
30005 #: ../src/guestfs-actions.pod:6007
30006 msgid "guestfs_removexattr"
30007 msgstr ""
30008
30009 #. type: verbatim
30010 #: ../src/guestfs-actions.pod:6009
30011 #, no-wrap
30012 msgid ""
30013 " int\n"
30014 " guestfs_removexattr (guestfs_h *g,\n"
30015 "                      const char *xattr,\n"
30016 "                      const char *path);\n"
30017 "\n"
30018 msgstr ""
30019
30020 #. type: textblock
30021 #: ../src/guestfs-actions.pod:6017
30022 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
30023 msgstr ""
30024
30025 #. type: =head2
30026 #: ../src/guestfs-actions.pod:6023
30027 msgid "guestfs_resize2fs"
30028 msgstr ""
30029
30030 #. type: verbatim
30031 #: ../src/guestfs-actions.pod:6025
30032 #, no-wrap
30033 msgid ""
30034 " int\n"
30035 " guestfs_resize2fs (guestfs_h *g,\n"
30036 "                    const char *device);\n"
30037 "\n"
30038 msgstr ""
30039
30040 #. type: textblock
30041 #: ../src/guestfs-actions.pod:6032
30042 msgid ""
30043 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
30044 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
30045 "sometimes gives an error about this and sometimes not.  In any case, it is "
30046 "always safe to call C<guestfs_e2fsck_f> before calling this function."
30047 msgstr ""
30048
30049 #. type: =head2
30050 #: ../src/guestfs-actions.pod:6042
30051 msgid "guestfs_resize2fs_M"
30052 msgstr ""
30053
30054 #. type: verbatim
30055 #: ../src/guestfs-actions.pod:6044
30056 #, no-wrap
30057 msgid ""
30058 " int\n"
30059 " guestfs_resize2fs_M (guestfs_h *g,\n"
30060 "                      const char *device);\n"
30061 "\n"
30062 msgstr ""
30063
30064 #. type: textblock
30065 #: ../src/guestfs-actions.pod:6048
30066 msgid ""
30067 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
30068 "resized to its minimum size.  This works like the I<-M> option to the "
30069 "C<resize2fs> command."
30070 msgstr ""
30071
30072 #. type: textblock
30073 #: ../src/guestfs-actions.pod:6052
30074 msgid ""
30075 "To get the resulting size of the filesystem you should call "
30076 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
30077 "These two numbers, multiplied together, give the resulting size of the "
30078 "minimal filesystem in bytes."
30079 msgstr ""
30080
30081 #. type: =head2
30082 #: ../src/guestfs-actions.pod:6061
30083 msgid "guestfs_resize2fs_size"
30084 msgstr ""
30085
30086 #. type: verbatim
30087 #: ../src/guestfs-actions.pod:6063
30088 #, no-wrap
30089 msgid ""
30090 " int\n"
30091 " guestfs_resize2fs_size (guestfs_h *g,\n"
30092 "                         const char *device,\n"
30093 "                         int64_t size);\n"
30094 "\n"
30095 msgstr ""
30096
30097 #. type: textblock
30098 #: ../src/guestfs-actions.pod:6068
30099 msgid ""
30100 "This command is the same as C<guestfs_resize2fs> except that it allows you "
30101 "to specify the new size (in bytes) explicitly."
30102 msgstr ""
30103
30104 #. type: =head2
30105 #: ../src/guestfs-actions.pod:6075
30106 msgid "guestfs_rm"
30107 msgstr ""
30108
30109 #. type: verbatim
30110 #: ../src/guestfs-actions.pod:6077
30111 #, no-wrap
30112 msgid ""
30113 " int\n"
30114 " guestfs_rm (guestfs_h *g,\n"
30115 "             const char *path);\n"
30116 "\n"
30117 msgstr ""
30118
30119 #. type: =head2
30120 #: ../src/guestfs-actions.pod:6087
30121 msgid "guestfs_rm_rf"
30122 msgstr ""
30123
30124 #. type: verbatim
30125 #: ../src/guestfs-actions.pod:6089
30126 #, no-wrap
30127 msgid ""
30128 " int\n"
30129 " guestfs_rm_rf (guestfs_h *g,\n"
30130 "                const char *path);\n"
30131 "\n"
30132 msgstr ""
30133
30134 #. type: =head2
30135 #: ../src/guestfs-actions.pod:6101
30136 msgid "guestfs_rmdir"
30137 msgstr ""
30138
30139 #. type: verbatim
30140 #: ../src/guestfs-actions.pod:6103
30141 #, no-wrap
30142 msgid ""
30143 " int\n"
30144 " guestfs_rmdir (guestfs_h *g,\n"
30145 "                const char *path);\n"
30146 "\n"
30147 msgstr ""
30148
30149 #. type: =head2
30150 #: ../src/guestfs-actions.pod:6113
30151 msgid "guestfs_rmmountpoint"
30152 msgstr ""
30153
30154 #. type: verbatim
30155 #: ../src/guestfs-actions.pod:6115
30156 #, no-wrap
30157 msgid ""
30158 " int\n"
30159 " guestfs_rmmountpoint (guestfs_h *g,\n"
30160 "                       const char *exemptpath);\n"
30161 "\n"
30162 msgstr ""
30163
30164 #. type: textblock
30165 #: ../src/guestfs-actions.pod:6119
30166 msgid ""
30167 "This calls removes a mountpoint that was previously created with "
30168 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
30169 msgstr ""
30170
30171 #. type: =head2
30172 #: ../src/guestfs-actions.pod:6127
30173 msgid "guestfs_scrub_device"
30174 msgstr ""
30175
30176 #. type: verbatim
30177 #: ../src/guestfs-actions.pod:6129
30178 #, no-wrap
30179 msgid ""
30180 " int\n"
30181 " guestfs_scrub_device (guestfs_h *g,\n"
30182 "                       const char *device);\n"
30183 "\n"
30184 msgstr ""
30185
30186 #. type: textblock
30187 #: ../src/guestfs-actions.pod:6144 ../src/guestfs-actions.pod:6162
30188 #: ../src/guestfs-actions.pod:6181
30189 msgid "(Added in 1.0.52)"
30190 msgstr ""
30191
30192 #. type: =head2
30193 #: ../src/guestfs-actions.pod:6146
30194 msgid "guestfs_scrub_file"
30195 msgstr ""
30196
30197 #. type: verbatim
30198 #: ../src/guestfs-actions.pod:6148
30199 #, no-wrap
30200 msgid ""
30201 " int\n"
30202 " guestfs_scrub_file (guestfs_h *g,\n"
30203 "                     const char *file);\n"
30204 "\n"
30205 msgstr ""
30206
30207 #. type: =head2
30208 #: ../src/guestfs-actions.pod:6164
30209 msgid "guestfs_scrub_freespace"
30210 msgstr ""
30211
30212 #. type: verbatim
30213 #: ../src/guestfs-actions.pod:6166
30214 #, no-wrap
30215 msgid ""
30216 " int\n"
30217 " guestfs_scrub_freespace (guestfs_h *g,\n"
30218 "                          const char *dir);\n"
30219 "\n"
30220 msgstr ""
30221
30222 #. type: textblock
30223 #: ../src/guestfs-actions.pod:6170
30224 msgid ""
30225 "This command creates the directory C<dir> and then fills it with files until "
30226 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
30227 "and deletes them.  The intention is to scrub any free space on the partition "
30228 "containing C<dir>."
30229 msgstr ""
30230
30231 #. type: =head2
30232 #: ../src/guestfs-actions.pod:6183
30233 msgid "guestfs_set_append"
30234 msgstr ""
30235
30236 #. type: verbatim
30237 #: ../src/guestfs-actions.pod:6185
30238 #, no-wrap
30239 msgid ""
30240 " int\n"
30241 " guestfs_set_append (guestfs_h *g,\n"
30242 "                     const char *append);\n"
30243 "\n"
30244 msgstr ""
30245
30246 #. type: =head2
30247 #: ../src/guestfs-actions.pod:6202
30248 msgid "guestfs_set_attach_method"
30249 msgstr ""
30250
30251 #. type: verbatim
30252 #: ../src/guestfs-actions.pod:6204
30253 #, no-wrap
30254 msgid ""
30255 " int\n"
30256 " guestfs_set_attach_method (guestfs_h *g,\n"
30257 "                            const char *attachmethod);\n"
30258 "\n"
30259 msgstr ""
30260
30261 #. type: =head2
30262 #: ../src/guestfs-actions.pod:6232
30263 msgid "guestfs_set_autosync"
30264 msgstr ""
30265
30266 #. type: verbatim
30267 #: ../src/guestfs-actions.pod:6234
30268 #, no-wrap
30269 msgid ""
30270 " int\n"
30271 " guestfs_set_autosync (guestfs_h *g,\n"
30272 "                       int autosync);\n"
30273 "\n"
30274 msgstr ""
30275
30276 #. type: =head2
30277 #: ../src/guestfs-actions.pod:6250
30278 msgid "guestfs_set_direct"
30279 msgstr ""
30280
30281 #. type: verbatim
30282 #: ../src/guestfs-actions.pod:6252
30283 #, no-wrap
30284 msgid ""
30285 " int\n"
30286 " guestfs_set_direct (guestfs_h *g,\n"
30287 "                     int direct);\n"
30288 "\n"
30289 msgstr ""
30290
30291 #. type: textblock
30292 #: ../src/guestfs-actions.pod:6260
30293 msgid ""
30294 "One consequence of this is that log messages aren't caught by the library "
30295 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
30296 "stdout."
30297 msgstr ""
30298
30299 #. type: =head2
30300 #: ../src/guestfs-actions.pod:6273
30301 msgid "guestfs_set_e2label"
30302 msgstr ""
30303
30304 #. type: verbatim
30305 #: ../src/guestfs-actions.pod:6275
30306 #, no-wrap
30307 msgid ""
30308 " int\n"
30309 " guestfs_set_e2label (guestfs_h *g,\n"
30310 "                      const char *device,\n"
30311 "                      const char *label);\n"
30312 "\n"
30313 msgstr ""
30314
30315 #. type: textblock
30316 #: ../src/guestfs-actions.pod:6284
30317 msgid ""
30318 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
30319 "the existing label on a filesystem."
30320 msgstr ""
30321
30322 #. type: =head2
30323 #: ../src/guestfs-actions.pod:6291
30324 msgid "guestfs_set_e2uuid"
30325 msgstr ""
30326
30327 #. type: verbatim
30328 #: ../src/guestfs-actions.pod:6293
30329 #, no-wrap
30330 msgid ""
30331 " int\n"
30332 " guestfs_set_e2uuid (guestfs_h *g,\n"
30333 "                     const char *device,\n"
30334 "                     const char *uuid);\n"
30335 "\n"
30336 msgstr ""
30337
30338 #. type: textblock
30339 #: ../src/guestfs-actions.pod:6303
30340 msgid ""
30341 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
30342 "the existing UUID of a filesystem."
30343 msgstr ""
30344
30345 #. type: =head2
30346 #: ../src/guestfs-actions.pod:6310
30347 msgid "guestfs_set_memsize"
30348 msgstr ""
30349
30350 #. type: verbatim
30351 #: ../src/guestfs-actions.pod:6312
30352 #, no-wrap
30353 msgid ""
30354 " int\n"
30355 " guestfs_set_memsize (guestfs_h *g,\n"
30356 "                      int memsize);\n"
30357 "\n"
30358 msgstr ""
30359
30360 #. type: textblock
30361 #: ../src/guestfs-actions.pod:6316
30362 msgid ""
30363 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
30364 "This only has any effect if called before C<guestfs_launch>."
30365 msgstr ""
30366
30367 #. type: =head2
30368 #: ../src/guestfs-actions.pod:6331
30369 msgid "guestfs_set_network"
30370 msgstr ""
30371
30372 #. type: verbatim
30373 #: ../src/guestfs-actions.pod:6333
30374 #, no-wrap
30375 msgid ""
30376 " int\n"
30377 " guestfs_set_network (guestfs_h *g,\n"
30378 "                      int network);\n"
30379 "\n"
30380 msgstr ""
30381
30382 #. type: textblock
30383 #: ../src/guestfs-actions.pod:6343
30384 msgid ""
30385 "You must call this before calling C<guestfs_launch>, otherwise it has no "
30386 "effect."
30387 msgstr ""
30388
30389 #. type: =head2
30390 #: ../src/guestfs-actions.pod:6350
30391 msgid "guestfs_set_path"
30392 msgstr ""
30393
30394 #. type: verbatim
30395 #: ../src/guestfs-actions.pod:6352
30396 #, no-wrap
30397 msgid ""
30398 " int\n"
30399 " guestfs_set_path (guestfs_h *g,\n"
30400 "                   const char *searchpath);\n"
30401 "\n"
30402 msgstr ""
30403
30404 #. type: =head2
30405 #: ../src/guestfs-actions.pod:6367
30406 msgid "guestfs_set_pgroup"
30407 msgstr ""
30408
30409 #. type: verbatim
30410 #: ../src/guestfs-actions.pod:6369
30411 #, no-wrap
30412 msgid ""
30413 " int\n"
30414 " guestfs_set_pgroup (guestfs_h *g,\n"
30415 "                     int pgroup);\n"
30416 "\n"
30417 msgstr ""
30418
30419 #. type: =head2
30420 #: ../src/guestfs-actions.pod:6386
30421 msgid "guestfs_set_qemu"
30422 msgstr ""
30423
30424 #. type: verbatim
30425 #: ../src/guestfs-actions.pod:6388
30426 #, no-wrap
30427 msgid ""
30428 " int\n"
30429 " guestfs_set_qemu (guestfs_h *g,\n"
30430 "                   const char *qemu);\n"
30431 "\n"
30432 msgstr ""
30433
30434 #. type: =head2
30435 #: ../src/guestfs-actions.pod:6414
30436 msgid "guestfs_set_recovery_proc"
30437 msgstr ""
30438
30439 #. type: verbatim
30440 #: ../src/guestfs-actions.pod:6416
30441 #, no-wrap
30442 msgid ""
30443 " int\n"
30444 " guestfs_set_recovery_proc (guestfs_h *g,\n"
30445 "                            int recoveryproc);\n"
30446 "\n"
30447 msgstr ""
30448
30449 #. type: textblock
30450 #: ../src/guestfs-actions.pod:6420
30451 msgid ""
30452 "If this is called with the parameter C<false> then C<guestfs_launch> does "
30453 "not create a recovery process.  The purpose of the recovery process is to "
30454 "stop runaway qemu processes in the case where the main program aborts "
30455 "abruptly."
30456 msgstr ""
30457
30458 #. type: textblock
30459 #: ../src/guestfs-actions.pod:6425
30460 msgid ""
30461 "This only has any effect if called before C<guestfs_launch>, and the default "
30462 "is true."
30463 msgstr ""
30464
30465 #. type: =head2
30466 #: ../src/guestfs-actions.pod:6438
30467 msgid "guestfs_set_selinux"
30468 msgstr ""
30469
30470 #. type: verbatim
30471 #: ../src/guestfs-actions.pod:6440
30472 #, no-wrap
30473 msgid ""
30474 " int\n"
30475 " guestfs_set_selinux (guestfs_h *g,\n"
30476 "                      int selinux);\n"
30477 "\n"
30478 msgstr ""
30479
30480 #. type: =head2
30481 #: ../src/guestfs-actions.pod:6457
30482 msgid "guestfs_set_trace"
30483 msgstr ""
30484
30485 #. type: verbatim
30486 #: ../src/guestfs-actions.pod:6459
30487 #, no-wrap
30488 msgid ""
30489 " int\n"
30490 " guestfs_set_trace (guestfs_h *g,\n"
30491 "                    int trace);\n"
30492 "\n"
30493 msgstr ""
30494
30495 #. type: textblock
30496 #: ../src/guestfs-actions.pod:6473
30497 msgid ""
30498 "Trace messages are normally sent to C<stderr>, unless you register a "
30499 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30500 msgstr ""
30501
30502 #. type: =head2
30503 #: ../src/guestfs-actions.pod:6481
30504 msgid "guestfs_set_verbose"
30505 msgstr ""
30506
30507 #. type: verbatim
30508 #: ../src/guestfs-actions.pod:6483
30509 #, no-wrap
30510 msgid ""
30511 " int\n"
30512 " guestfs_set_verbose (guestfs_h *g,\n"
30513 "                      int verbose);\n"
30514 "\n"
30515 msgstr ""
30516
30517 #. type: textblock
30518 #: ../src/guestfs-actions.pod:6492
30519 msgid ""
30520 "Verbose messages are normally sent to C<stderr>, unless you register a "
30521 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
30522 msgstr ""
30523
30524 #. type: =head2
30525 #: ../src/guestfs-actions.pod:6500
30526 msgid "guestfs_setcon"
30527 msgstr ""
30528
30529 #. type: verbatim
30530 #: ../src/guestfs-actions.pod:6502
30531 #, no-wrap
30532 msgid ""
30533 " int\n"
30534 " guestfs_setcon (guestfs_h *g,\n"
30535 "                 const char *context);\n"
30536 "\n"
30537 msgstr ""
30538
30539 #. type: =head2
30540 #: ../src/guestfs-actions.pod:6515
30541 msgid "guestfs_setxattr"
30542 msgstr ""
30543
30544 #. type: verbatim
30545 #: ../src/guestfs-actions.pod:6517
30546 #, no-wrap
30547 msgid ""
30548 " int\n"
30549 " guestfs_setxattr (guestfs_h *g,\n"
30550 "                   const char *xattr,\n"
30551 "                   const char *val,\n"
30552 "                   int vallen,\n"
30553 "                   const char *path);\n"
30554 "\n"
30555 msgstr ""
30556
30557 #. type: textblock
30558 #: ../src/guestfs-actions.pod:6528
30559 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
30560 msgstr ""
30561
30562 #. type: =head2
30563 #: ../src/guestfs-actions.pod:6534
30564 msgid "guestfs_sfdisk"
30565 msgstr ""
30566
30567 #. type: verbatim
30568 #: ../src/guestfs-actions.pod:6536
30569 #, no-wrap
30570 msgid ""
30571 " int\n"
30572 " guestfs_sfdisk (guestfs_h *g,\n"
30573 "                 const char *device,\n"
30574 "                 int cyls,\n"
30575 "                 int heads,\n"
30576 "                 int sectors,\n"
30577 "                 char *const *lines);\n"
30578 "\n"
30579 msgstr ""
30580
30581 #. type: textblock
30582 #: ../src/guestfs-actions.pod:6544 ../src/guestfs-actions.pod:6588
30583 #: ../src/guestfs-actions.pod:6622
30584 msgid ""
30585 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
30586 "call instead."
30587 msgstr ""
30588
30589 #. type: textblock
30590 #: ../src/guestfs-actions.pod:6571
30591 msgid ""
30592 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
30593 msgstr ""
30594
30595 #. type: =head2
30596 #: ../src/guestfs-actions.pod:6581
30597 msgid "guestfs_sfdiskM"
30598 msgstr ""
30599
30600 #. type: verbatim
30601 #: ../src/guestfs-actions.pod:6583
30602 #, no-wrap
30603 msgid ""
30604 " int\n"
30605 " guestfs_sfdiskM (guestfs_h *g,\n"
30606 "                  const char *device,\n"
30607 "                  char *const *lines);\n"
30608 "\n"
30609 msgstr ""
30610
30611 #. type: textblock
30612 #: ../src/guestfs-actions.pod:6595
30613 msgid ""
30614 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
30615 "partition sizes are specified in megabytes only (rounded to the nearest "
30616 "cylinder) and you don't need to specify the cyls, heads and sectors "
30617 "parameters which were rarely if ever used anyway."
30618 msgstr ""
30619
30620 #. type: textblock
30621 #: ../src/guestfs-actions.pod:6601
30622 msgid ""
30623 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
30624 "C<guestfs_part_disk>"
30625 msgstr ""
30626
30627 #. type: =head2
30628 #: ../src/guestfs-actions.pod:6611
30629 msgid "guestfs_sfdisk_N"
30630 msgstr ""
30631
30632 #. type: verbatim
30633 #: ../src/guestfs-actions.pod:6613
30634 #, no-wrap
30635 msgid ""
30636 " int\n"
30637 " guestfs_sfdisk_N (guestfs_h *g,\n"
30638 "                   const char *device,\n"
30639 "                   int partnum,\n"
30640 "                   int cyls,\n"
30641 "                   int heads,\n"
30642 "                   int sectors,\n"
30643 "                   const char *line);\n"
30644 "\n"
30645 msgstr ""
30646
30647 #. type: textblock
30648 #: ../src/guestfs-actions.pod:6632
30649 msgid ""
30650 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
30651 "for the cyls/heads/sectors parameters."
30652 msgstr ""
30653
30654 #. type: textblock
30655 #: ../src/guestfs-actions.pod:6635
30656 msgid "See also: C<guestfs_part_add>"
30657 msgstr ""
30658
30659 #. type: =head2
30660 #: ../src/guestfs-actions.pod:6644
30661 msgid "guestfs_sfdisk_disk_geometry"
30662 msgstr ""
30663
30664 #. type: verbatim
30665 #: ../src/guestfs-actions.pod:6646
30666 #, no-wrap
30667 msgid ""
30668 " char *\n"
30669 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
30670 "                               const char *device);\n"
30671 "\n"
30672 msgstr ""
30673
30674 #. type: textblock
30675 #: ../src/guestfs-actions.pod:6650
30676 msgid ""
30677 "This displays the disk geometry of C<device> read from the partition table.  "
30678 "Especially in the case where the underlying block device has been resized, "
30679 "this can be different from the kernel's idea of the geometry (see "
30680 "C<guestfs_sfdisk_kernel_geometry>)."
30681 msgstr ""
30682
30683 #. type: =head2
30684 #: ../src/guestfs-actions.pod:6663
30685 msgid "guestfs_sfdisk_kernel_geometry"
30686 msgstr ""
30687
30688 #. type: verbatim
30689 #: ../src/guestfs-actions.pod:6665
30690 #, no-wrap
30691 msgid ""
30692 " char *\n"
30693 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
30694 "                                 const char *device);\n"
30695 "\n"
30696 msgstr ""
30697
30698 #. type: =head2
30699 #: ../src/guestfs-actions.pod:6679
30700 msgid "guestfs_sfdisk_l"
30701 msgstr ""
30702
30703 #. type: verbatim
30704 #: ../src/guestfs-actions.pod:6681
30705 #, no-wrap
30706 msgid ""
30707 " char *\n"
30708 " guestfs_sfdisk_l (guestfs_h *g,\n"
30709 "                   const char *device);\n"
30710 "\n"
30711 msgstr ""
30712
30713 #. type: textblock
30714 #: ../src/guestfs-actions.pod:6685
30715 msgid ""
30716 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
30717 "call instead."
30718 msgstr ""
30719
30720 #. type: textblock
30721 #: ../src/guestfs-actions.pod:6696
30722 msgid "See also: C<guestfs_part_list>"
30723 msgstr ""
30724
30725 #. type: =head2
30726 #: ../src/guestfs-actions.pod:6703
30727 msgid "guestfs_sh"
30728 msgstr ""
30729
30730 #. type: verbatim
30731 #: ../src/guestfs-actions.pod:6705
30732 #, no-wrap
30733 msgid ""
30734 " char *\n"
30735 " guestfs_sh (guestfs_h *g,\n"
30736 "             const char *command);\n"
30737 "\n"
30738 msgstr ""
30739
30740 #. type: textblock
30741 #: ../src/guestfs-actions.pod:6712
30742 msgid "This is like C<guestfs_command>, but passes the command to:"
30743 msgstr ""
30744
30745 #. type: textblock
30746 #: ../src/guestfs-actions.pod:6720
30747 msgid "All the provisos about C<guestfs_command> apply to this call."
30748 msgstr ""
30749
30750 #. type: =head2
30751 #: ../src/guestfs-actions.pod:6727
30752 msgid "guestfs_sh_lines"
30753 msgstr ""
30754
30755 #. type: verbatim
30756 #: ../src/guestfs-actions.pod:6729
30757 #, no-wrap
30758 msgid ""
30759 " char **\n"
30760 " guestfs_sh_lines (guestfs_h *g,\n"
30761 "                   const char *command);\n"
30762 "\n"
30763 msgstr ""
30764
30765 #. type: textblock
30766 #: ../src/guestfs-actions.pod:6733
30767 msgid ""
30768 "This is the same as C<guestfs_sh>, but splits the result into a list of "
30769 "lines."
30770 msgstr ""
30771
30772 #. type: textblock
30773 #: ../src/guestfs-actions.pod:6736
30774 msgid "See also: C<guestfs_command_lines>"
30775 msgstr ""
30776
30777 #. type: =head2
30778 #: ../src/guestfs-actions.pod:6744
30779 msgid "guestfs_sleep"
30780 msgstr ""
30781
30782 #. type: verbatim
30783 #: ../src/guestfs-actions.pod:6746
30784 #, no-wrap
30785 msgid ""
30786 " int\n"
30787 " guestfs_sleep (guestfs_h *g,\n"
30788 "                int secs);\n"
30789 "\n"
30790 msgstr ""
30791
30792 #. type: textblock
30793 #: ../src/guestfs-actions.pod:6754
30794 msgid "(Added in 1.0.41)"
30795 msgstr ""
30796
30797 #. type: =head2
30798 #: ../src/guestfs-actions.pod:6756 ../src/guestfs-structs.pod:109
30799 msgid "guestfs_stat"
30800 msgstr ""
30801
30802 #. type: verbatim
30803 #: ../src/guestfs-actions.pod:6758
30804 #, no-wrap
30805 msgid ""
30806 " struct guestfs_stat *\n"
30807 " guestfs_stat (guestfs_h *g,\n"
30808 "               const char *path);\n"
30809 "\n"
30810 msgstr ""
30811
30812 #. type: =head2
30813 #: ../src/guestfs-actions.pod:6772 ../src/guestfs-structs.pod:135
30814 msgid "guestfs_statvfs"
30815 msgstr ""
30816
30817 #. type: verbatim
30818 #: ../src/guestfs-actions.pod:6774
30819 #, no-wrap
30820 msgid ""
30821 " struct guestfs_statvfs *\n"
30822 " guestfs_statvfs (guestfs_h *g,\n"
30823 "                  const char *path);\n"
30824 "\n"
30825 msgstr ""
30826
30827 #. type: textblock
30828 #: ../src/guestfs-actions.pod:6784
30829 msgid ""
30830 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
30831 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
30832 msgstr ""
30833
30834 #. type: =head2
30835 #: ../src/guestfs-actions.pod:6790
30836 msgid "guestfs_strings"
30837 msgstr ""
30838
30839 #. type: verbatim
30840 #: ../src/guestfs-actions.pod:6792
30841 #, no-wrap
30842 msgid ""
30843 " char **\n"
30844 " guestfs_strings (guestfs_h *g,\n"
30845 "                  const char *path);\n"
30846 "\n"
30847 msgstr ""
30848
30849 #. type: =head2
30850 #: ../src/guestfs-actions.pod:6808
30851 msgid "guestfs_strings_e"
30852 msgstr ""
30853
30854 #. type: verbatim
30855 #: ../src/guestfs-actions.pod:6810
30856 #, no-wrap
30857 msgid ""
30858 " char **\n"
30859 " guestfs_strings_e (guestfs_h *g,\n"
30860 "                    const char *encoding,\n"
30861 "                    const char *path);\n"
30862 "\n"
30863 msgstr ""
30864
30865 #. type: textblock
30866 #: ../src/guestfs-actions.pod:6815
30867 msgid ""
30868 "This is like the C<guestfs_strings> command, but allows you to specify the "
30869 "encoding of strings that are looked for in the source file C<path>."
30870 msgstr ""
30871
30872 #. type: textblock
30873 #: ../src/guestfs-actions.pod:6825
30874 msgid ""
30875 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
30876 "ISO-8859-X (this is what C<guestfs_strings> uses)."
30877 msgstr ""
30878
30879 #. type: =head2
30880 #: ../src/guestfs-actions.pod:6863
30881 msgid "guestfs_swapoff_device"
30882 msgstr ""
30883
30884 #. type: verbatim
30885 #: ../src/guestfs-actions.pod:6865
30886 #, no-wrap
30887 msgid ""
30888 " int\n"
30889 " guestfs_swapoff_device (guestfs_h *g,\n"
30890 "                         const char *device);\n"
30891 "\n"
30892 msgstr ""
30893
30894 #. type: textblock
30895 #: ../src/guestfs-actions.pod:6869
30896 msgid ""
30897 "This command disables the libguestfs appliance swap device or partition "
30898 "named C<device>.  See C<guestfs_swapon_device>."
30899 msgstr ""
30900
30901 #. type: =head2
30902 #: ../src/guestfs-actions.pod:6877
30903 msgid "guestfs_swapoff_file"
30904 msgstr ""
30905
30906 #. type: verbatim
30907 #: ../src/guestfs-actions.pod:6879
30908 #, no-wrap
30909 msgid ""
30910 " int\n"
30911 " guestfs_swapoff_file (guestfs_h *g,\n"
30912 "                       const char *file);\n"
30913 "\n"
30914 msgstr ""
30915
30916 #. type: =head2
30917 #: ../src/guestfs-actions.pod:6889
30918 msgid "guestfs_swapoff_label"
30919 msgstr ""
30920
30921 #. type: verbatim
30922 #: ../src/guestfs-actions.pod:6891
30923 #, no-wrap
30924 msgid ""
30925 " int\n"
30926 " guestfs_swapoff_label (guestfs_h *g,\n"
30927 "                        const char *label);\n"
30928 "\n"
30929 msgstr ""
30930
30931 #. type: =head2
30932 #: ../src/guestfs-actions.pod:6902
30933 msgid "guestfs_swapoff_uuid"
30934 msgstr ""
30935
30936 #. type: verbatim
30937 #: ../src/guestfs-actions.pod:6904
30938 #, no-wrap
30939 msgid ""
30940 " int\n"
30941 " guestfs_swapoff_uuid (guestfs_h *g,\n"
30942 "                       const char *uuid);\n"
30943 "\n"
30944 msgstr ""
30945
30946 #. type: =head2
30947 #: ../src/guestfs-actions.pod:6915
30948 msgid "guestfs_swapon_device"
30949 msgstr ""
30950
30951 #. type: verbatim
30952 #: ../src/guestfs-actions.pod:6917
30953 #, no-wrap
30954 msgid ""
30955 " int\n"
30956 " guestfs_swapon_device (guestfs_h *g,\n"
30957 "                        const char *device);\n"
30958 "\n"
30959 msgstr ""
30960
30961 #. type: textblock
30962 #: ../src/guestfs-actions.pod:6921
30963 msgid ""
30964 "This command enables the libguestfs appliance to use the swap device or "
30965 "partition named C<device>.  The increased memory is made available for all "
30966 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
30967 msgstr ""
30968
30969 #. type: =head2
30970 #: ../src/guestfs-actions.pod:6937
30971 msgid "guestfs_swapon_file"
30972 msgstr ""
30973
30974 #. type: verbatim
30975 #: ../src/guestfs-actions.pod:6939
30976 #, no-wrap
30977 msgid ""
30978 " int\n"
30979 " guestfs_swapon_file (guestfs_h *g,\n"
30980 "                      const char *file);\n"
30981 "\n"
30982 msgstr ""
30983
30984 #. type: textblock
30985 #: ../src/guestfs-actions.pod:6943
30986 msgid ""
30987 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
30988 "notes."
30989 msgstr ""
30990
30991 #. type: =head2
30992 #: ../src/guestfs-actions.pod:6950
30993 msgid "guestfs_swapon_label"
30994 msgstr ""
30995
30996 #. type: verbatim
30997 #: ../src/guestfs-actions.pod:6952
30998 #, no-wrap
30999 msgid ""
31000 " int\n"
31001 " guestfs_swapon_label (guestfs_h *g,\n"
31002 "                       const char *label);\n"
31003 "\n"
31004 msgstr ""
31005
31006 #. type: textblock
31007 #: ../src/guestfs-actions.pod:6956
31008 msgid ""
31009 "This command enables swap to a labeled swap partition.  See "
31010 "C<guestfs_swapon_device> for other notes."
31011 msgstr ""
31012
31013 #. type: =head2
31014 #: ../src/guestfs-actions.pod:6963
31015 msgid "guestfs_swapon_uuid"
31016 msgstr ""
31017
31018 #. type: verbatim
31019 #: ../src/guestfs-actions.pod:6965
31020 #, no-wrap
31021 msgid ""
31022 " int\n"
31023 " guestfs_swapon_uuid (guestfs_h *g,\n"
31024 "                      const char *uuid);\n"
31025 "\n"
31026 msgstr ""
31027
31028 #. type: textblock
31029 #: ../src/guestfs-actions.pod:6969
31030 msgid ""
31031 "This command enables swap to a swap partition with the given UUID.  See "
31032 "C<guestfs_swapon_device> for other notes."
31033 msgstr ""
31034
31035 #. type: =head2
31036 #: ../src/guestfs-actions.pod:6976
31037 msgid "guestfs_sync"
31038 msgstr ""
31039
31040 #. type: verbatim
31041 #: ../src/guestfs-actions.pod:6978
31042 #, no-wrap
31043 msgid ""
31044 " int\n"
31045 " guestfs_sync (guestfs_h *g);\n"
31046 "\n"
31047 msgstr ""
31048
31049 #. type: =head2
31050 #: ../src/guestfs-actions.pod:6991
31051 msgid "guestfs_tail"
31052 msgstr ""
31053
31054 #. type: verbatim
31055 #: ../src/guestfs-actions.pod:6993
31056 #, no-wrap
31057 msgid ""
31058 " char **\n"
31059 " guestfs_tail (guestfs_h *g,\n"
31060 "               const char *path);\n"
31061 "\n"
31062 msgstr ""
31063
31064 #. type: =head2
31065 #: ../src/guestfs-actions.pod:7009
31066 msgid "guestfs_tail_n"
31067 msgstr ""
31068
31069 #. type: verbatim
31070 #: ../src/guestfs-actions.pod:7011
31071 #, no-wrap
31072 msgid ""
31073 " char **\n"
31074 " guestfs_tail_n (guestfs_h *g,\n"
31075 "                 int nrlines,\n"
31076 "                 const char *path);\n"
31077 "\n"
31078 msgstr ""
31079
31080 #. type: =head2
31081 #: ../src/guestfs-actions.pod:7033
31082 msgid "guestfs_tar_in"
31083 msgstr ""
31084
31085 #. type: verbatim
31086 #: ../src/guestfs-actions.pod:7035
31087 #, no-wrap
31088 msgid ""
31089 " int\n"
31090 " guestfs_tar_in (guestfs_h *g,\n"
31091 "                 const char *tarfile,\n"
31092 "                 const char *directory);\n"
31093 "\n"
31094 msgstr ""
31095
31096 #. type: textblock
31097 #: ../src/guestfs-actions.pod:7043
31098 msgid ""
31099 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
31100 msgstr ""
31101
31102 #. type: textblock
31103 #: ../src/guestfs-actions.pod:7048 ../src/guestfs-actions.pod:7065
31104 #: ../src/guestfs-actions.pod:7081 ../src/guestfs-actions.pod:7097
31105 msgid "(Added in 1.0.3)"
31106 msgstr ""
31107
31108 #. type: =head2
31109 #: ../src/guestfs-actions.pod:7050
31110 msgid "guestfs_tar_out"
31111 msgstr ""
31112
31113 #. type: verbatim
31114 #: ../src/guestfs-actions.pod:7052
31115 #, no-wrap
31116 msgid ""
31117 " int\n"
31118 " guestfs_tar_out (guestfs_h *g,\n"
31119 "                  const char *directory,\n"
31120 "                  const char *tarfile);\n"
31121 "\n"
31122 msgstr ""
31123
31124 #. type: textblock
31125 #: ../src/guestfs-actions.pod:7060
31126 msgid ""
31127 "To download a compressed tarball, use C<guestfs_tgz_out> or "
31128 "C<guestfs_txz_out>."
31129 msgstr ""
31130
31131 #. type: =head2
31132 #: ../src/guestfs-actions.pod:7067
31133 msgid "guestfs_tgz_in"
31134 msgstr ""
31135
31136 #. type: verbatim
31137 #: ../src/guestfs-actions.pod:7069
31138 #, no-wrap
31139 msgid ""
31140 " int\n"
31141 " guestfs_tgz_in (guestfs_h *g,\n"
31142 "                 const char *tarball,\n"
31143 "                 const char *directory);\n"
31144 "\n"
31145 msgstr ""
31146
31147 #. type: textblock
31148 #: ../src/guestfs-actions.pod:7077
31149 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
31150 msgstr ""
31151
31152 #. type: =head2
31153 #: ../src/guestfs-actions.pod:7083
31154 msgid "guestfs_tgz_out"
31155 msgstr ""
31156
31157 #. type: verbatim
31158 #: ../src/guestfs-actions.pod:7085
31159 #, no-wrap
31160 msgid ""
31161 " int\n"
31162 " guestfs_tgz_out (guestfs_h *g,\n"
31163 "                  const char *directory,\n"
31164 "                  const char *tarball);\n"
31165 "\n"
31166 msgstr ""
31167
31168 #. type: textblock
31169 #: ../src/guestfs-actions.pod:7093
31170 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
31171 msgstr ""
31172
31173 #. type: =head2
31174 #: ../src/guestfs-actions.pod:7099
31175 msgid "guestfs_touch"
31176 msgstr ""
31177
31178 #. type: verbatim
31179 #: ../src/guestfs-actions.pod:7101
31180 #, no-wrap
31181 msgid ""
31182 " int\n"
31183 " guestfs_touch (guestfs_h *g,\n"
31184 "                const char *path);\n"
31185 "\n"
31186 msgstr ""
31187
31188 #. type: =head2
31189 #: ../src/guestfs-actions.pod:7116
31190 msgid "guestfs_truncate"
31191 msgstr ""
31192
31193 #. type: verbatim
31194 #: ../src/guestfs-actions.pod:7118
31195 #, no-wrap
31196 msgid ""
31197 " int\n"
31198 " guestfs_truncate (guestfs_h *g,\n"
31199 "                   const char *path);\n"
31200 "\n"
31201 msgstr ""
31202
31203 #. type: =head2
31204 #: ../src/guestfs-actions.pod:7129
31205 msgid "guestfs_truncate_size"
31206 msgstr ""
31207
31208 #. type: verbatim
31209 #: ../src/guestfs-actions.pod:7131
31210 #, no-wrap
31211 msgid ""
31212 " int\n"
31213 " guestfs_truncate_size (guestfs_h *g,\n"
31214 "                        const char *path,\n"
31215 "                        int64_t size);\n"
31216 "\n"
31217 msgstr ""
31218
31219 #. type: textblock
31220 #: ../src/guestfs-actions.pod:7139
31221 msgid ""
31222 "If the current file size is less than C<size> then the file is extended to "
31223 "the required size with zero bytes.  This creates a sparse file (ie. disk "
31224 "blocks are not allocated for the file until you write to it).  To create a "
31225 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
31226 msgstr ""
31227
31228 #. type: =head2
31229 #: ../src/guestfs-actions.pod:7149
31230 msgid "guestfs_tune2fs_l"
31231 msgstr ""
31232
31233 #. type: verbatim
31234 #: ../src/guestfs-actions.pod:7151
31235 #, no-wrap
31236 msgid ""
31237 " char **\n"
31238 " guestfs_tune2fs_l (guestfs_h *g,\n"
31239 "                    const char *device);\n"
31240 "\n"
31241 msgstr ""
31242
31243 #. type: =head2
31244 #: ../src/guestfs-actions.pod:7171
31245 msgid "guestfs_txz_in"
31246 msgstr ""
31247
31248 #. type: verbatim
31249 #: ../src/guestfs-actions.pod:7173
31250 #, no-wrap
31251 msgid ""
31252 " int\n"
31253 " guestfs_txz_in (guestfs_h *g,\n"
31254 "                 const char *tarball,\n"
31255 "                 const char *directory);\n"
31256 "\n"
31257 msgstr ""
31258
31259 #. type: =head2
31260 #: ../src/guestfs-actions.pod:7185
31261 msgid "guestfs_txz_out"
31262 msgstr ""
31263
31264 #. type: verbatim
31265 #: ../src/guestfs-actions.pod:7187
31266 #, no-wrap
31267 msgid ""
31268 " int\n"
31269 " guestfs_txz_out (guestfs_h *g,\n"
31270 "                  const char *directory,\n"
31271 "                  const char *tarball);\n"
31272 "\n"
31273 msgstr ""
31274
31275 #. type: =head2
31276 #: ../src/guestfs-actions.pod:7199
31277 msgid "guestfs_umask"
31278 msgstr ""
31279
31280 #. type: verbatim
31281 #: ../src/guestfs-actions.pod:7201
31282 #, no-wrap
31283 msgid ""
31284 " int\n"
31285 " guestfs_umask (guestfs_h *g,\n"
31286 "                int mask);\n"
31287 "\n"
31288 msgstr ""
31289
31290 #. type: textblock
31291 #: ../src/guestfs-actions.pod:7217
31292 msgid ""
31293 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
31294 "C<guestfs_mkdir>."
31295 msgstr ""
31296
31297 #. type: =head2
31298 #: ../src/guestfs-actions.pod:7226
31299 msgid "guestfs_umount"
31300 msgstr ""
31301
31302 #. type: verbatim
31303 #: ../src/guestfs-actions.pod:7228
31304 #, no-wrap
31305 msgid ""
31306 " int\n"
31307 " guestfs_umount (guestfs_h *g,\n"
31308 "                 const char *pathordevice);\n"
31309 "\n"
31310 msgstr ""
31311
31312 #. type: =head2
31313 #: ../src/guestfs-actions.pod:7240
31314 msgid "guestfs_umount_all"
31315 msgstr ""
31316
31317 #. type: verbatim
31318 #: ../src/guestfs-actions.pod:7242
31319 #, no-wrap
31320 msgid ""
31321 " int\n"
31322 " guestfs_umount_all (guestfs_h *g);\n"
31323 "\n"
31324 msgstr ""
31325
31326 #. type: =head2
31327 #: ../src/guestfs-actions.pod:7253
31328 msgid "guestfs_upload"
31329 msgstr ""
31330
31331 #. type: verbatim
31332 #: ../src/guestfs-actions.pod:7255
31333 #, no-wrap
31334 msgid ""
31335 " int\n"
31336 " guestfs_upload (guestfs_h *g,\n"
31337 "                 const char *filename,\n"
31338 "                 const char *remotefilename);\n"
31339 "\n"
31340 msgstr ""
31341
31342 #. type: textblock
31343 #: ../src/guestfs-actions.pod:7265
31344 msgid "See also C<guestfs_download>."
31345 msgstr ""
31346
31347 #. type: =head2
31348 #: ../src/guestfs-actions.pod:7276
31349 msgid "guestfs_upload_offset"
31350 msgstr ""
31351
31352 #. type: verbatim
31353 #: ../src/guestfs-actions.pod:7278
31354 #, no-wrap
31355 msgid ""
31356 " int\n"
31357 " guestfs_upload_offset (guestfs_h *g,\n"
31358 "                        const char *filename,\n"
31359 "                        const char *remotefilename,\n"
31360 "                        int64_t offset);\n"
31361 "\n"
31362 msgstr ""
31363
31364 #. type: textblock
31365 #: ../src/guestfs-actions.pod:7294
31366 msgid ""
31367 "Note that there is no limit on the amount of data that can be uploaded with "
31368 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
31369 "full amount unless an error occurs."
31370 msgstr ""
31371
31372 #. type: textblock
31373 #: ../src/guestfs-actions.pod:7299
31374 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
31375 msgstr ""
31376
31377 #. type: =head2
31378 #: ../src/guestfs-actions.pod:7310
31379 msgid "guestfs_utimens"
31380 msgstr ""
31381
31382 #. type: verbatim
31383 #: ../src/guestfs-actions.pod:7312
31384 #, no-wrap
31385 msgid ""
31386 " int\n"
31387 " guestfs_utimens (guestfs_h *g,\n"
31388 "                  const char *path,\n"
31389 "                  int64_t atsecs,\n"
31390 "                  int64_t atnsecs,\n"
31391 "                  int64_t mtsecs,\n"
31392 "                  int64_t mtnsecs);\n"
31393 "\n"
31394 msgstr ""
31395
31396 #. type: =head2
31397 #: ../src/guestfs-actions.pod:7341 ../src/guestfs-structs.pod:175
31398 msgid "guestfs_version"
31399 msgstr ""
31400
31401 #. type: verbatim
31402 #: ../src/guestfs-actions.pod:7343
31403 #, no-wrap
31404 msgid ""
31405 " struct guestfs_version *\n"
31406 " guestfs_version (guestfs_h *g);\n"
31407 "\n"
31408 msgstr ""
31409
31410 #. type: textblock
31411 #: ../src/guestfs-actions.pod:7371
31412 msgid ""
31413 "I<Note:> Don't use this call to test for availability of features.  In "
31414 "enterprise distributions we backport features from later versions into "
31415 "earlier versions, making this an unreliable way to test for features.  Use "
31416 "C<guestfs_available> instead."
31417 msgstr ""
31418
31419 #. type: textblock
31420 #: ../src/guestfs-actions.pod:7377
31421 msgid ""
31422 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
31423 "error.  I<The caller must call C<guestfs_free_version> after use>."
31424 msgstr ""
31425
31426 #. type: textblock
31427 #: ../src/guestfs-actions.pod:7381
31428 msgid "(Added in 1.0.58)"
31429 msgstr ""
31430
31431 #. type: =head2
31432 #: ../src/guestfs-actions.pod:7383
31433 msgid "guestfs_vfs_label"
31434 msgstr ""
31435
31436 #. type: verbatim
31437 #: ../src/guestfs-actions.pod:7385
31438 #, no-wrap
31439 msgid ""
31440 " char *\n"
31441 " guestfs_vfs_label (guestfs_h *g,\n"
31442 "                    const char *device);\n"
31443 "\n"
31444 msgstr ""
31445
31446 #. type: textblock
31447 #: ../src/guestfs-actions.pod:7394
31448 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
31449 msgstr ""
31450
31451 #. type: textblock
31452 #: ../src/guestfs-actions.pod:7399 ../src/guestfs-actions.pod:7436
31453 msgid "(Added in 1.3.18)"
31454 msgstr ""
31455
31456 #. type: =head2
31457 #: ../src/guestfs-actions.pod:7401
31458 msgid "guestfs_vfs_type"
31459 msgstr ""
31460
31461 #. type: verbatim
31462 #: ../src/guestfs-actions.pod:7403
31463 #, no-wrap
31464 msgid ""
31465 " char *\n"
31466 " guestfs_vfs_type (guestfs_h *g,\n"
31467 "                   const char *device);\n"
31468 "\n"
31469 msgstr ""
31470
31471 #. type: =head2
31472 #: ../src/guestfs-actions.pod:7420
31473 msgid "guestfs_vfs_uuid"
31474 msgstr ""
31475
31476 #. type: verbatim
31477 #: ../src/guestfs-actions.pod:7422
31478 #, no-wrap
31479 msgid ""
31480 " char *\n"
31481 " guestfs_vfs_uuid (guestfs_h *g,\n"
31482 "                   const char *device);\n"
31483 "\n"
31484 msgstr ""
31485
31486 #. type: textblock
31487 #: ../src/guestfs-actions.pod:7431
31488 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
31489 msgstr ""
31490
31491 #. type: =head2
31492 #: ../src/guestfs-actions.pod:7438
31493 msgid "guestfs_vg_activate"
31494 msgstr ""
31495
31496 #. type: verbatim
31497 #: ../src/guestfs-actions.pod:7440
31498 #, no-wrap
31499 msgid ""
31500 " int\n"
31501 " guestfs_vg_activate (guestfs_h *g,\n"
31502 "                      int activate,\n"
31503 "                      char *const *volgroups);\n"
31504 "\n"
31505 msgstr ""
31506
31507 #. type: =head2
31508 #: ../src/guestfs-actions.pod:7457
31509 msgid "guestfs_vg_activate_all"
31510 msgstr ""
31511
31512 #. type: verbatim
31513 #: ../src/guestfs-actions.pod:7459
31514 #, no-wrap
31515 msgid ""
31516 " int\n"
31517 " guestfs_vg_activate_all (guestfs_h *g,\n"
31518 "                          int activate);\n"
31519 "\n"
31520 msgstr ""
31521
31522 #. type: =head2
31523 #: ../src/guestfs-actions.pod:7472
31524 msgid "guestfs_vgcreate"
31525 msgstr ""
31526
31527 #. type: verbatim
31528 #: ../src/guestfs-actions.pod:7474
31529 #, no-wrap
31530 msgid ""
31531 " int\n"
31532 " guestfs_vgcreate (guestfs_h *g,\n"
31533 "                   const char *volgroup,\n"
31534 "                   char *const *physvols);\n"
31535 "\n"
31536 msgstr ""
31537
31538 #. type: =head2
31539 #: ../src/guestfs-actions.pod:7486
31540 msgid "guestfs_vglvuuids"
31541 msgstr ""
31542
31543 #. type: verbatim
31544 #: ../src/guestfs-actions.pod:7488
31545 #, no-wrap
31546 msgid ""
31547 " char **\n"
31548 " guestfs_vglvuuids (guestfs_h *g,\n"
31549 "                    const char *vgname);\n"
31550 "\n"
31551 msgstr ""
31552
31553 #. type: textblock
31554 #: ../src/guestfs-actions.pod:7495
31555 msgid ""
31556 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
31557 "associate logical volumes and volume groups."
31558 msgstr ""
31559
31560 #. type: textblock
31561 #: ../src/guestfs-actions.pod:7498
31562 msgid "See also C<guestfs_vgpvuuids>."
31563 msgstr ""
31564
31565 #. type: =head2
31566 #: ../src/guestfs-actions.pod:7506
31567 msgid "guestfs_vgpvuuids"
31568 msgstr ""
31569
31570 #. type: verbatim
31571 #: ../src/guestfs-actions.pod:7508
31572 #, no-wrap
31573 msgid ""
31574 " char **\n"
31575 " guestfs_vgpvuuids (guestfs_h *g,\n"
31576 "                    const char *vgname);\n"
31577 "\n"
31578 msgstr ""
31579
31580 #. type: textblock
31581 #: ../src/guestfs-actions.pod:7515
31582 msgid ""
31583 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
31584 "associate physical volumes and volume groups."
31585 msgstr ""
31586
31587 #. type: textblock
31588 #: ../src/guestfs-actions.pod:7518
31589 msgid "See also C<guestfs_vglvuuids>."
31590 msgstr ""
31591
31592 #. type: =head2
31593 #: ../src/guestfs-actions.pod:7526
31594 msgid "guestfs_vgremove"
31595 msgstr ""
31596
31597 #. type: verbatim
31598 #: ../src/guestfs-actions.pod:7528
31599 #, no-wrap
31600 msgid ""
31601 " int\n"
31602 " guestfs_vgremove (guestfs_h *g,\n"
31603 "                   const char *vgname);\n"
31604 "\n"
31605 msgstr ""
31606
31607 #. type: =head2
31608 #: ../src/guestfs-actions.pod:7541
31609 msgid "guestfs_vgrename"
31610 msgstr ""
31611
31612 #. type: verbatim
31613 #: ../src/guestfs-actions.pod:7543
31614 #, no-wrap
31615 msgid ""
31616 " int\n"
31617 " guestfs_vgrename (guestfs_h *g,\n"
31618 "                   const char *volgroup,\n"
31619 "                   const char *newvolgroup);\n"
31620 "\n"
31621 msgstr ""
31622
31623 #. type: =head2
31624 #: ../src/guestfs-actions.pod:7554
31625 msgid "guestfs_vgs"
31626 msgstr ""
31627
31628 #. type: verbatim
31629 #: ../src/guestfs-actions.pod:7556
31630 #, no-wrap
31631 msgid ""
31632 " char **\n"
31633 " guestfs_vgs (guestfs_h *g);\n"
31634 "\n"
31635 msgstr ""
31636
31637 #. type: textblock
31638 #: ../src/guestfs-actions.pod:7565
31639 msgid "See also C<guestfs_vgs_full>."
31640 msgstr ""
31641
31642 #. type: =head2
31643 #: ../src/guestfs-actions.pod:7573
31644 msgid "guestfs_vgs_full"
31645 msgstr ""
31646
31647 #. type: verbatim
31648 #: ../src/guestfs-actions.pod:7575
31649 #, no-wrap
31650 msgid ""
31651 " struct guestfs_lvm_vg_list *\n"
31652 " guestfs_vgs_full (guestfs_h *g);\n"
31653 "\n"
31654 msgstr ""
31655
31656 #. type: textblock
31657 #: ../src/guestfs-actions.pod:7581
31658 msgid ""
31659 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
31660 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
31661 msgstr ""
31662
31663 #. type: =head2
31664 #: ../src/guestfs-actions.pod:7587
31665 msgid "guestfs_vgscan"
31666 msgstr ""
31667
31668 #. type: verbatim
31669 #: ../src/guestfs-actions.pod:7589
31670 #, no-wrap
31671 msgid ""
31672 " int\n"
31673 " guestfs_vgscan (guestfs_h *g);\n"
31674 "\n"
31675 msgstr ""
31676
31677 #. type: =head2
31678 #: ../src/guestfs-actions.pod:7599
31679 msgid "guestfs_vguuid"
31680 msgstr ""
31681
31682 #. type: verbatim
31683 #: ../src/guestfs-actions.pod:7601
31684 #, no-wrap
31685 msgid ""
31686 " char *\n"
31687 " guestfs_vguuid (guestfs_h *g,\n"
31688 "                 const char *vgname);\n"
31689 "\n"
31690 msgstr ""
31691
31692 #. type: =head2
31693 #: ../src/guestfs-actions.pod:7612
31694 msgid "guestfs_wait_ready"
31695 msgstr ""
31696
31697 #. type: verbatim
31698 #: ../src/guestfs-actions.pod:7614
31699 #, no-wrap
31700 msgid ""
31701 " int\n"
31702 " guestfs_wait_ready (guestfs_h *g);\n"
31703 "\n"
31704 msgstr ""
31705
31706 #. type: textblock
31707 #: ../src/guestfs-actions.pod:7617
31708 msgid ""
31709 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
31710 "instead."
31711 msgstr ""
31712
31713 #. type: textblock
31714 #: ../src/guestfs-actions.pod:7624
31715 msgid "This function is a no op."
31716 msgstr ""
31717
31718 #. type: textblock
31719 #: ../src/guestfs-actions.pod:7626
31720 msgid ""
31721 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
31722 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
31723 "is no longer necessary because C<guestfs_launch> now does the waiting."
31724 msgstr ""
31725
31726 #. type: textblock
31727 #: ../src/guestfs-actions.pod:7631
31728 msgid ""
31729 "If you see any calls to this function in code then you can just remove them, "
31730 "unless you want to retain compatibility with older versions of the API."
31731 msgstr ""
31732
31733 #. type: =head2
31734 #: ../src/guestfs-actions.pod:7639
31735 msgid "guestfs_wc_c"
31736 msgstr ""
31737
31738 #. type: verbatim
31739 #: ../src/guestfs-actions.pod:7641
31740 #, no-wrap
31741 msgid ""
31742 " int\n"
31743 " guestfs_wc_c (guestfs_h *g,\n"
31744 "               const char *path);\n"
31745 "\n"
31746 msgstr ""
31747
31748 #. type: =head2
31749 #: ../src/guestfs-actions.pod:7652
31750 msgid "guestfs_wc_l"
31751 msgstr ""
31752
31753 #. type: verbatim
31754 #: ../src/guestfs-actions.pod:7654
31755 #, no-wrap
31756 msgid ""
31757 " int\n"
31758 " guestfs_wc_l (guestfs_h *g,\n"
31759 "               const char *path);\n"
31760 "\n"
31761 msgstr ""
31762
31763 #. type: =head2
31764 #: ../src/guestfs-actions.pod:7665
31765 msgid "guestfs_wc_w"
31766 msgstr ""
31767
31768 #. type: verbatim
31769 #: ../src/guestfs-actions.pod:7667
31770 #, no-wrap
31771 msgid ""
31772 " int\n"
31773 " guestfs_wc_w (guestfs_h *g,\n"
31774 "               const char *path);\n"
31775 "\n"
31776 msgstr ""
31777
31778 #. type: =head2
31779 #: ../src/guestfs-actions.pod:7678
31780 msgid "guestfs_write"
31781 msgstr ""
31782
31783 #. type: verbatim
31784 #: ../src/guestfs-actions.pod:7680
31785 #, no-wrap
31786 msgid ""
31787 " int\n"
31788 " guestfs_write (guestfs_h *g,\n"
31789 "                const char *path,\n"
31790 "                const char *content,\n"
31791 "                size_t content_size);\n"
31792 "\n"
31793 msgstr ""
31794
31795 #. type: textblock
31796 #: ../src/guestfs-actions.pod:7689
31797 msgid "See also C<guestfs_write_append>."
31798 msgstr ""
31799
31800 #. type: =head2
31801 #: ../src/guestfs-actions.pod:7698
31802 msgid "guestfs_write_append"
31803 msgstr ""
31804
31805 #. type: verbatim
31806 #: ../src/guestfs-actions.pod:7700
31807 #, no-wrap
31808 msgid ""
31809 " int\n"
31810 " guestfs_write_append (guestfs_h *g,\n"
31811 "                       const char *path,\n"
31812 "                       const char *content,\n"
31813 "                       size_t content_size);\n"
31814 "\n"
31815 msgstr ""
31816
31817 #. type: textblock
31818 #: ../src/guestfs-actions.pod:7709
31819 msgid "See also C<guestfs_write>."
31820 msgstr ""
31821
31822 #. type: =head2
31823 #: ../src/guestfs-actions.pod:7718
31824 msgid "guestfs_write_file"
31825 msgstr "guestfs_write_file"
31826
31827 #. type: verbatim
31828 #: ../src/guestfs-actions.pod:7720
31829 #, no-wrap
31830 msgid ""
31831 " int\n"
31832 " guestfs_write_file (guestfs_h *g,\n"
31833 "                     const char *path,\n"
31834 "                     const char *content,\n"
31835 "                     int size);\n"
31836 "\n"
31837 msgstr ""
31838 " int\n"
31839 " guestfs_write_file (guestfs_h *g,\n"
31840 "                     const char *path,\n"
31841 "                     const char *content,\n"
31842 "                     int size);\n"
31843 "\n"
31844
31845 #. type: textblock
31846 #: ../src/guestfs-actions.pod:7726
31847 msgid ""
31848 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
31849 "instead."
31850 msgstr ""
31851
31852 #. type: =head2
31853 #: ../src/guestfs-actions.pod:7751
31854 msgid "guestfs_zegrep"
31855 msgstr "guestfs_zegrep"
31856
31857 #. type: verbatim
31858 #: ../src/guestfs-actions.pod:7753
31859 #, no-wrap
31860 msgid ""
31861 " char **\n"
31862 " guestfs_zegrep (guestfs_h *g,\n"
31863 "                 const char *regex,\n"
31864 "                 const char *path);\n"
31865 "\n"
31866 msgstr ""
31867 " char **\n"
31868 " guestfs_zegrep (guestfs_h *g,\n"
31869 "                 const char *regex,\n"
31870 "                 const char *path);\n"
31871 "\n"
31872
31873 #. type: =head2
31874 #: ../src/guestfs-actions.pod:7770
31875 msgid "guestfs_zegrepi"
31876 msgstr "guestfs_zegrepi"
31877
31878 #. type: verbatim
31879 #: ../src/guestfs-actions.pod:7772
31880 #, no-wrap
31881 msgid ""
31882 " char **\n"
31883 " guestfs_zegrepi (guestfs_h *g,\n"
31884 "                  const char *regex,\n"
31885 "                  const char *path);\n"
31886 "\n"
31887 msgstr ""
31888 " char **\n"
31889 " guestfs_zegrepi (guestfs_h *g,\n"
31890 "                  const char *regex,\n"
31891 "                  const char *path);\n"
31892 "\n"
31893
31894 #. type: =head2
31895 #: ../src/guestfs-actions.pod:7789
31896 msgid "guestfs_zero"
31897 msgstr "guestfs_zero"
31898
31899 #. type: verbatim
31900 #: ../src/guestfs-actions.pod:7791
31901 #, no-wrap
31902 msgid ""
31903 " int\n"
31904 " guestfs_zero (guestfs_h *g,\n"
31905 "               const char *device);\n"
31906 "\n"
31907 msgstr ""
31908 " int\n"
31909 " guestfs_zero (guestfs_h *g,\n"
31910 "               const char *device);\n"
31911 "\n"
31912
31913 #. type: textblock
31914 #: ../src/guestfs-actions.pod:7805
31915 msgid ""
31916 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
31917 "C<guestfs_is_zero_device>"
31918 msgstr ""
31919
31920 #. type: =head2
31921 #: ../src/guestfs-actions.pod:7817
31922 msgid "guestfs_zero_device"
31923 msgstr "guestfs_zero_device"
31924
31925 #. type: verbatim
31926 #: ../src/guestfs-actions.pod:7819
31927 #, no-wrap
31928 msgid ""
31929 " int\n"
31930 " guestfs_zero_device (guestfs_h *g,\n"
31931 "                      const char *device);\n"
31932 "\n"
31933 msgstr ""
31934 " int\n"
31935 " guestfs_zero_device (guestfs_h *g,\n"
31936 "                      const char *device);\n"
31937 "\n"
31938
31939 #. type: textblock
31940 #: ../src/guestfs-actions.pod:7823
31941 msgid ""
31942 "This command writes zeroes over the entire C<device>.  Compare with "
31943 "C<guestfs_zero> which just zeroes the first few blocks of a device."
31944 msgstr ""
31945
31946 #. type: textblock
31947 #: ../src/guestfs-actions.pod:7841
31948 msgid "(Added in 1.3.1)"
31949 msgstr "(Додано у 1.3.1)"
31950
31951 #. type: =head2
31952 #: ../src/guestfs-actions.pod:7843
31953 msgid "guestfs_zerofree"
31954 msgstr "guestfs_zerofree"
31955
31956 #. type: verbatim
31957 #: ../src/guestfs-actions.pod:7845
31958 #, no-wrap
31959 msgid ""
31960 " int\n"
31961 " guestfs_zerofree (guestfs_h *g,\n"
31962 "                   const char *device);\n"
31963 "\n"
31964 msgstr ""
31965 " int\n"
31966 " guestfs_zerofree (guestfs_h *g,\n"
31967 "                   const char *device);\n"
31968 "\n"
31969
31970 #. type: =head2
31971 #: ../src/guestfs-actions.pod:7864
31972 msgid "guestfs_zfgrep"
31973 msgstr "guestfs_zfgrep"
31974
31975 #. type: verbatim
31976 #: ../src/guestfs-actions.pod:7866
31977 #, no-wrap
31978 msgid ""
31979 " char **\n"
31980 " guestfs_zfgrep (guestfs_h *g,\n"
31981 "                 const char *pattern,\n"
31982 "                 const char *path);\n"
31983 "\n"
31984 msgstr ""
31985 " char **\n"
31986 " guestfs_zfgrep (guestfs_h *g,\n"
31987 "                 const char *pattern,\n"
31988 "                 const char *path);\n"
31989 "\n"
31990
31991 #. type: =head2
31992 #: ../src/guestfs-actions.pod:7883
31993 msgid "guestfs_zfgrepi"
31994 msgstr "guestfs_zfgrepi"
31995
31996 #. type: verbatim
31997 #: ../src/guestfs-actions.pod:7885
31998 #, no-wrap
31999 msgid ""
32000 " char **\n"
32001 " guestfs_zfgrepi (guestfs_h *g,\n"
32002 "                  const char *pattern,\n"
32003 "                  const char *path);\n"
32004 "\n"
32005 msgstr ""
32006 " char **\n"
32007 " guestfs_zfgrepi (guestfs_h *g,\n"
32008 "                  const char *pattern,\n"
32009 "                  const char *path);\n"
32010 "\n"
32011
32012 #. type: =head2
32013 #: ../src/guestfs-actions.pod:7902
32014 msgid "guestfs_zfile"
32015 msgstr "guestfs_zfile"
32016
32017 #. type: verbatim
32018 #: ../src/guestfs-actions.pod:7904
32019 #, no-wrap
32020 msgid ""
32021 " char *\n"
32022 " guestfs_zfile (guestfs_h *g,\n"
32023 "                const char *meth,\n"
32024 "                const char *path);\n"
32025 "\n"
32026 msgstr ""
32027 " char *\n"
32028 " guestfs_zfile (guestfs_h *g,\n"
32029 "                const char *meth,\n"
32030 "                const char *path);\n"
32031 "\n"
32032
32033 #. type: textblock
32034 #: ../src/guestfs-actions.pod:7909
32035 msgid ""
32036 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
32037 "instead."
32038 msgstr ""
32039
32040 #. type: textblock
32041 #: ../src/guestfs-actions.pod:7921
32042 msgid ""
32043 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
32044 "files."
32045 msgstr ""
32046
32047 #. type: =head2
32048 #: ../src/guestfs-actions.pod:7929
32049 msgid "guestfs_zgrep"
32050 msgstr "guestfs_zgrep"
32051
32052 #. type: verbatim
32053 #: ../src/guestfs-actions.pod:7931
32054 #, no-wrap
32055 msgid ""
32056 " char **\n"
32057 " guestfs_zgrep (guestfs_h *g,\n"
32058 "                const char *regex,\n"
32059 "                const char *path);\n"
32060 "\n"
32061 msgstr ""
32062 " char **\n"
32063 " guestfs_zgrep (guestfs_h *g,\n"
32064 "                const char *regex,\n"
32065 "                const char *path);\n"
32066 "\n"
32067
32068 #. type: =head2
32069 #: ../src/guestfs-actions.pod:7948
32070 msgid "guestfs_zgrepi"
32071 msgstr "guestfs_zgrepi"
32072
32073 #. type: verbatim
32074 #: ../src/guestfs-actions.pod:7950
32075 #, no-wrap
32076 msgid ""
32077 " char **\n"
32078 " guestfs_zgrepi (guestfs_h *g,\n"
32079 "                 const char *regex,\n"
32080 "                 const char *path);\n"
32081 "\n"
32082 msgstr ""
32083 " char **\n"
32084 " guestfs_zgrepi (guestfs_h *g,\n"
32085 "                 const char *regex,\n"
32086 "                 const char *path);\n"
32087 "\n"
32088
32089 #. type: =item
32090 #: ../src/guestfs-availability.pod:3
32091 msgid "B<augeas>"
32092 msgstr "B<augeas>"
32093
32094 #. type: textblock
32095 #: ../src/guestfs-availability.pod:5
32096 msgid ""
32097 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
32098 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
32099 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
32100 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
32101 "L</guestfs_aug_save> L</guestfs_aug_set>"
32102 msgstr ""
32103
32104 #. type: =item
32105 #: ../src/guestfs-availability.pod:21
32106 msgid "B<btrfs>"
32107 msgstr ""
32108
32109 #. type: textblock
32110 #: ../src/guestfs-availability.pod:23
32111 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
32112 msgstr ""
32113
32114 #. type: =item
32115 #: ../src/guestfs-availability.pod:26
32116 #, fuzzy
32117 #| msgid "B<scrub>"
32118 msgid "B<grub>"
32119 msgstr "B<scrub>"
32120
32121 #. type: textblock
32122 #: ../src/guestfs-availability.pod:28
32123 msgid "The following functions: L</guestfs_grub_install>"
32124 msgstr ""
32125
32126 #. type: =item
32127 #: ../src/guestfs-availability.pod:31
32128 msgid "B<inotify>"
32129 msgstr "B<inotify>"
32130
32131 #. type: textblock
32132 #: ../src/guestfs-availability.pod:33
32133 msgid ""
32134 "The following functions: L</guestfs_inotify_add_watch> L</"
32135 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
32136 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
32137 msgstr ""
32138
32139 #. type: =item
32140 #: ../src/guestfs-availability.pod:41
32141 msgid "B<linuxfsuuid>"
32142 msgstr "B<linuxfsuuid>"
32143
32144 #. type: textblock
32145 #: ../src/guestfs-availability.pod:43
32146 msgid ""
32147 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
32148 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
32149 msgstr ""
32150
32151 #. type: =item
32152 #: ../src/guestfs-availability.pod:50
32153 msgid "B<linuxmodules>"
32154 msgstr "B<linuxmodules>"
32155
32156 #. type: textblock
32157 #: ../src/guestfs-availability.pod:52
32158 msgid "The following functions: L</guestfs_modprobe>"
32159 msgstr ""
32160
32161 #. type: =item
32162 #: ../src/guestfs-availability.pod:55
32163 msgid "B<linuxxattrs>"
32164 msgstr "B<linuxxattrs>"
32165
32166 #. type: textblock
32167 #: ../src/guestfs-availability.pod:57
32168 msgid ""
32169 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
32170 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
32171 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
32172 "guestfs_setxattr>"
32173 msgstr ""
32174
32175 #. type: =item
32176 #: ../src/guestfs-availability.pod:68
32177 msgid "B<luks>"
32178 msgstr "B<luks>"
32179
32180 #. type: textblock
32181 #: ../src/guestfs-availability.pod:70
32182 msgid ""
32183 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
32184 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
32185 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
32186 msgstr ""
32187
32188 #. type: =item
32189 #: ../src/guestfs-availability.pod:79
32190 msgid "B<lvm2>"
32191 msgstr "B<lvm2>"
32192
32193 #. type: textblock
32194 #: ../src/guestfs-availability.pod:81
32195 msgid ""
32196 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
32197 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
32198 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
32199 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
32200 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
32201 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
32202 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
32203 msgstr ""
32204
32205 #. type: =item
32206 #: ../src/guestfs-availability.pod:104
32207 msgid "B<mknod>"
32208 msgstr "B<mknod>"
32209
32210 #. type: textblock
32211 #: ../src/guestfs-availability.pod:106
32212 msgid ""
32213 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
32214 "guestfs_mknod_b> L</guestfs_mknod_c>"
32215 msgstr ""
32216
32217 #. type: =item
32218 #: ../src/guestfs-availability.pod:112
32219 msgid "B<ntfs3g>"
32220 msgstr "B<ntfs3g>"
32221
32222 #. type: textblock
32223 #: ../src/guestfs-availability.pod:114
32224 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
32225 msgstr ""
32226
32227 #. type: =item
32228 #: ../src/guestfs-availability.pod:117
32229 msgid "B<ntfsprogs>"
32230 msgstr "B<ntfsprogs>"
32231
32232 #. type: textblock
32233 #: ../src/guestfs-availability.pod:119
32234 msgid ""
32235 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
32236 "L</guestfs_ntfsresize_size>"
32237 msgstr ""
32238
32239 #. type: =item
32240 #: ../src/guestfs-availability.pod:124
32241 msgid "B<realpath>"
32242 msgstr "B<realpath>"
32243
32244 #. type: textblock
32245 #: ../src/guestfs-availability.pod:126
32246 msgid "The following functions: L</guestfs_realpath>"
32247 msgstr ""
32248
32249 #. type: =item
32250 #: ../src/guestfs-availability.pod:129
32251 msgid "B<scrub>"
32252 msgstr "B<scrub>"
32253
32254 #. type: textblock
32255 #: ../src/guestfs-availability.pod:131
32256 msgid ""
32257 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
32258 "guestfs_scrub_freespace>"
32259 msgstr ""
32260
32261 #. type: =item
32262 #: ../src/guestfs-availability.pod:136
32263 msgid "B<selinux>"
32264 msgstr "B<selinux>"
32265
32266 #. type: textblock
32267 #: ../src/guestfs-availability.pod:138
32268 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
32269 msgstr ""
32270
32271 #. type: =item
32272 #: ../src/guestfs-availability.pod:142
32273 msgid "B<xz>"
32274 msgstr "B<xz>"
32275
32276 #. type: textblock
32277 #: ../src/guestfs-availability.pod:144
32278 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
32279 msgstr ""
32280
32281 #. type: =item
32282 #: ../src/guestfs-availability.pod:148
32283 msgid "B<zerofree>"
32284 msgstr "B<zerofree>"
32285
32286 #. type: textblock
32287 #: ../src/guestfs-availability.pod:150
32288 msgid "The following functions: L</guestfs_zerofree>"
32289 msgstr ""
32290
32291 #. type: =head2
32292 #: ../src/guestfs-structs.pod:1
32293 msgid "guestfs_int_bool"
32294 msgstr ""
32295
32296 #. type: verbatim
32297 #: ../src/guestfs-structs.pod:3
32298 #, no-wrap
32299 msgid ""
32300 " struct guestfs_int_bool {\n"
32301 "   int32_t i;\n"
32302 "   int32_t b;\n"
32303 " };\n"
32304 " \n"
32305 msgstr ""
32306
32307 #. type: verbatim
32308 #: ../src/guestfs-structs.pod:8
32309 #, no-wrap
32310 msgid ""
32311 " struct guestfs_int_bool_list {\n"
32312 "   uint32_t len; /* Number of elements in list. */\n"
32313 "   struct guestfs_int_bool *val; /* Elements. */\n"
32314 " };\n"
32315 " \n"
32316 msgstr ""
32317
32318 #. type: verbatim
32319 #: ../src/guestfs-structs.pod:13
32320 #, no-wrap
32321 msgid ""
32322 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
32323 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
32324 "\n"
32325 msgstr ""
32326
32327 #. type: =head2
32328 #: ../src/guestfs-structs.pod:16
32329 msgid "guestfs_lvm_pv"
32330 msgstr ""
32331
32332 #. type: verbatim
32333 #: ../src/guestfs-structs.pod:18
32334 #, no-wrap
32335 msgid ""
32336 " struct guestfs_lvm_pv {\n"
32337 "   char *pv_name;\n"
32338 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32339 "   char pv_uuid[32];\n"
32340 "   char *pv_fmt;\n"
32341 "   uint64_t pv_size;\n"
32342 "   uint64_t dev_size;\n"
32343 "   uint64_t pv_free;\n"
32344 "   uint64_t pv_used;\n"
32345 "   char *pv_attr;\n"
32346 "   int64_t pv_pe_count;\n"
32347 "   int64_t pv_pe_alloc_count;\n"
32348 "   char *pv_tags;\n"
32349 "   uint64_t pe_start;\n"
32350 "   int64_t pv_mda_count;\n"
32351 "   uint64_t pv_mda_free;\n"
32352 " };\n"
32353 " \n"
32354 msgstr ""
32355
32356 #. type: verbatim
32357 #: ../src/guestfs-structs.pod:36
32358 #, no-wrap
32359 msgid ""
32360 " struct guestfs_lvm_pv_list {\n"
32361 "   uint32_t len; /* Number of elements in list. */\n"
32362 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
32363 " };\n"
32364 " \n"
32365 msgstr ""
32366
32367 #. type: verbatim
32368 #: ../src/guestfs-structs.pod:41
32369 #, no-wrap
32370 msgid ""
32371 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
32372 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
32373 "\n"
32374 msgstr ""
32375
32376 #. type: =head2
32377 #: ../src/guestfs-structs.pod:44
32378 msgid "guestfs_lvm_vg"
32379 msgstr ""
32380
32381 #. type: verbatim
32382 #: ../src/guestfs-structs.pod:46
32383 #, no-wrap
32384 msgid ""
32385 " struct guestfs_lvm_vg {\n"
32386 "   char *vg_name;\n"
32387 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32388 "   char vg_uuid[32];\n"
32389 "   char *vg_fmt;\n"
32390 "   char *vg_attr;\n"
32391 "   uint64_t vg_size;\n"
32392 "   uint64_t vg_free;\n"
32393 "   char *vg_sysid;\n"
32394 "   uint64_t vg_extent_size;\n"
32395 "   int64_t vg_extent_count;\n"
32396 "   int64_t vg_free_count;\n"
32397 "   int64_t max_lv;\n"
32398 "   int64_t max_pv;\n"
32399 "   int64_t pv_count;\n"
32400 "   int64_t lv_count;\n"
32401 "   int64_t snap_count;\n"
32402 "   int64_t vg_seqno;\n"
32403 "   char *vg_tags;\n"
32404 "   int64_t vg_mda_count;\n"
32405 "   uint64_t vg_mda_free;\n"
32406 " };\n"
32407 " \n"
32408 msgstr ""
32409
32410 #. type: verbatim
32411 #: ../src/guestfs-structs.pod:69
32412 #, no-wrap
32413 msgid ""
32414 " struct guestfs_lvm_vg_list {\n"
32415 "   uint32_t len; /* Number of elements in list. */\n"
32416 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
32417 " };\n"
32418 " \n"
32419 msgstr ""
32420
32421 #. type: verbatim
32422 #: ../src/guestfs-structs.pod:74
32423 #, no-wrap
32424 msgid ""
32425 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
32426 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
32427 "\n"
32428 msgstr ""
32429
32430 #. type: =head2
32431 #: ../src/guestfs-structs.pod:77
32432 msgid "guestfs_lvm_lv"
32433 msgstr ""
32434
32435 #. type: verbatim
32436 #: ../src/guestfs-structs.pod:79
32437 #, no-wrap
32438 msgid ""
32439 " struct guestfs_lvm_lv {\n"
32440 "   char *lv_name;\n"
32441 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
32442 "   char lv_uuid[32];\n"
32443 "   char *lv_attr;\n"
32444 "   int64_t lv_major;\n"
32445 "   int64_t lv_minor;\n"
32446 "   int64_t lv_kernel_major;\n"
32447 "   int64_t lv_kernel_minor;\n"
32448 "   uint64_t lv_size;\n"
32449 "   int64_t seg_count;\n"
32450 "   char *origin;\n"
32451 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32452 "   float snap_percent;\n"
32453 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
32454 "   float copy_percent;\n"
32455 "   char *move_pv;\n"
32456 "   char *lv_tags;\n"
32457 "   char *mirror_log;\n"
32458 "   char *modules;\n"
32459 " };\n"
32460 " \n"
32461 msgstr ""
32462
32463 #. type: verbatim
32464 #: ../src/guestfs-structs.pod:101
32465 #, no-wrap
32466 msgid ""
32467 " struct guestfs_lvm_lv_list {\n"
32468 "   uint32_t len; /* Number of elements in list. */\n"
32469 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
32470 " };\n"
32471 " \n"
32472 msgstr ""
32473
32474 #. type: verbatim
32475 #: ../src/guestfs-structs.pod:106
32476 #, no-wrap
32477 msgid ""
32478 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
32479 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
32480 "\n"
32481 msgstr ""
32482
32483 #. type: verbatim
32484 #: ../src/guestfs-structs.pod:111
32485 #, no-wrap
32486 msgid ""
32487 " struct guestfs_stat {\n"
32488 "   int64_t dev;\n"
32489 "   int64_t ino;\n"
32490 "   int64_t mode;\n"
32491 "   int64_t nlink;\n"
32492 "   int64_t uid;\n"
32493 "   int64_t gid;\n"
32494 "   int64_t rdev;\n"
32495 "   int64_t size;\n"
32496 "   int64_t blksize;\n"
32497 "   int64_t blocks;\n"
32498 "   int64_t atime;\n"
32499 "   int64_t mtime;\n"
32500 "   int64_t ctime;\n"
32501 " };\n"
32502 " \n"
32503 msgstr ""
32504
32505 #. type: verbatim
32506 #: ../src/guestfs-structs.pod:127
32507 #, no-wrap
32508 msgid ""
32509 " struct guestfs_stat_list {\n"
32510 "   uint32_t len; /* Number of elements in list. */\n"
32511 "   struct guestfs_stat *val; /* Elements. */\n"
32512 " };\n"
32513 " \n"
32514 msgstr ""
32515
32516 #. type: verbatim
32517 #: ../src/guestfs-structs.pod:132
32518 #, no-wrap
32519 msgid ""
32520 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
32521 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
32522 "\n"
32523 msgstr ""
32524
32525 #. type: verbatim
32526 #: ../src/guestfs-structs.pod:137
32527 #, no-wrap
32528 msgid ""
32529 " struct guestfs_statvfs {\n"
32530 "   int64_t bsize;\n"
32531 "   int64_t frsize;\n"
32532 "   int64_t blocks;\n"
32533 "   int64_t bfree;\n"
32534 "   int64_t bavail;\n"
32535 "   int64_t files;\n"
32536 "   int64_t ffree;\n"
32537 "   int64_t favail;\n"
32538 "   int64_t fsid;\n"
32539 "   int64_t flag;\n"
32540 "   int64_t namemax;\n"
32541 " };\n"
32542 " \n"
32543 msgstr ""
32544
32545 #. type: verbatim
32546 #: ../src/guestfs-structs.pod:151
32547 #, no-wrap
32548 msgid ""
32549 " struct guestfs_statvfs_list {\n"
32550 "   uint32_t len; /* Number of elements in list. */\n"
32551 "   struct guestfs_statvfs *val; /* Elements. */\n"
32552 " };\n"
32553 " \n"
32554 msgstr ""
32555
32556 #. type: verbatim
32557 #: ../src/guestfs-structs.pod:156
32558 #, no-wrap
32559 msgid ""
32560 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
32561 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
32562 "\n"
32563 msgstr ""
32564
32565 #. type: =head2
32566 #: ../src/guestfs-structs.pod:159
32567 msgid "guestfs_dirent"
32568 msgstr ""
32569
32570 #. type: verbatim
32571 #: ../src/guestfs-structs.pod:161
32572 #, no-wrap
32573 msgid ""
32574 " struct guestfs_dirent {\n"
32575 "   int64_t ino;\n"
32576 "   char ftyp;\n"
32577 "   char *name;\n"
32578 " };\n"
32579 " \n"
32580 msgstr ""
32581
32582 #. type: verbatim
32583 #: ../src/guestfs-structs.pod:167
32584 #, no-wrap
32585 msgid ""
32586 " struct guestfs_dirent_list {\n"
32587 "   uint32_t len; /* Number of elements in list. */\n"
32588 "   struct guestfs_dirent *val; /* Elements. */\n"
32589 " };\n"
32590 " \n"
32591 msgstr ""
32592
32593 #. type: verbatim
32594 #: ../src/guestfs-structs.pod:172
32595 #, no-wrap
32596 msgid ""
32597 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
32598 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
32599 "\n"
32600 msgstr ""
32601
32602 #. type: verbatim
32603 #: ../src/guestfs-structs.pod:177
32604 #, no-wrap
32605 msgid ""
32606 " struct guestfs_version {\n"
32607 "   int64_t major;\n"
32608 "   int64_t minor;\n"
32609 "   int64_t release;\n"
32610 "   char *extra;\n"
32611 " };\n"
32612 " \n"
32613 msgstr ""
32614
32615 #. type: verbatim
32616 #: ../src/guestfs-structs.pod:184
32617 #, no-wrap
32618 msgid ""
32619 " struct guestfs_version_list {\n"
32620 "   uint32_t len; /* Number of elements in list. */\n"
32621 "   struct guestfs_version *val; /* Elements. */\n"
32622 " };\n"
32623 " \n"
32624 msgstr ""
32625
32626 #. type: verbatim
32627 #: ../src/guestfs-structs.pod:189
32628 #, no-wrap
32629 msgid ""
32630 " void guestfs_free_version (struct guestfs_free_version *);\n"
32631 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
32632 "\n"
32633 msgstr ""
32634
32635 #. type: =head2
32636 #: ../src/guestfs-structs.pod:192
32637 msgid "guestfs_xattr"
32638 msgstr ""
32639
32640 #. type: verbatim
32641 #: ../src/guestfs-structs.pod:194
32642 #, no-wrap
32643 msgid ""
32644 " struct guestfs_xattr {\n"
32645 "   char *attrname;\n"
32646 "   /* The next two fields describe a byte array. */\n"
32647 "   uint32_t attrval_len;\n"
32648 "   char *attrval;\n"
32649 " };\n"
32650 " \n"
32651 msgstr ""
32652
32653 #. type: verbatim
32654 #: ../src/guestfs-structs.pod:201
32655 #, no-wrap
32656 msgid ""
32657 " struct guestfs_xattr_list {\n"
32658 "   uint32_t len; /* Number of elements in list. */\n"
32659 "   struct guestfs_xattr *val; /* Elements. */\n"
32660 " };\n"
32661 " \n"
32662 msgstr ""
32663
32664 #. type: verbatim
32665 #: ../src/guestfs-structs.pod:206
32666 #, no-wrap
32667 msgid ""
32668 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
32669 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
32670 "\n"
32671 msgstr ""
32672
32673 #. type: =head2
32674 #: ../src/guestfs-structs.pod:209
32675 msgid "guestfs_inotify_event"
32676 msgstr ""
32677
32678 #. type: verbatim
32679 #: ../src/guestfs-structs.pod:211
32680 #, no-wrap
32681 msgid ""
32682 " struct guestfs_inotify_event {\n"
32683 "   int64_t in_wd;\n"
32684 "   uint32_t in_mask;\n"
32685 "   uint32_t in_cookie;\n"
32686 "   char *in_name;\n"
32687 " };\n"
32688 " \n"
32689 msgstr ""
32690
32691 #. type: verbatim
32692 #: ../src/guestfs-structs.pod:218
32693 #, no-wrap
32694 msgid ""
32695 " struct guestfs_inotify_event_list {\n"
32696 "   uint32_t len; /* Number of elements in list. */\n"
32697 "   struct guestfs_inotify_event *val; /* Elements. */\n"
32698 " };\n"
32699 " \n"
32700 msgstr ""
32701
32702 #. type: verbatim
32703 #: ../src/guestfs-structs.pod:223
32704 #, no-wrap
32705 msgid ""
32706 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
32707 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
32708 "\n"
32709 msgstr ""
32710
32711 #. type: =head2
32712 #: ../src/guestfs-structs.pod:226
32713 msgid "guestfs_partition"
32714 msgstr ""
32715
32716 #. type: verbatim
32717 #: ../src/guestfs-structs.pod:228
32718 #, no-wrap
32719 msgid ""
32720 " struct guestfs_partition {\n"
32721 "   int32_t part_num;\n"
32722 "   uint64_t part_start;\n"
32723 "   uint64_t part_end;\n"
32724 "   uint64_t part_size;\n"
32725 " };\n"
32726 " \n"
32727 msgstr ""
32728
32729 #. type: verbatim
32730 #: ../src/guestfs-structs.pod:235
32731 #, no-wrap
32732 msgid ""
32733 " struct guestfs_partition_list {\n"
32734 "   uint32_t len; /* Number of elements in list. */\n"
32735 "   struct guestfs_partition *val; /* Elements. */\n"
32736 " };\n"
32737 " \n"
32738 msgstr ""
32739
32740 #. type: verbatim
32741 #: ../src/guestfs-structs.pod:240
32742 #, no-wrap
32743 msgid ""
32744 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
32745 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
32746 "\n"
32747 msgstr ""
32748
32749 #. type: =head2
32750 #: ../src/guestfs-structs.pod:243
32751 msgid "guestfs_application"
32752 msgstr ""
32753
32754 #. type: verbatim
32755 #: ../src/guestfs-structs.pod:245
32756 #, no-wrap
32757 msgid ""
32758 " struct guestfs_application {\n"
32759 "   char *app_name;\n"
32760 "   char *app_display_name;\n"
32761 "   int32_t app_epoch;\n"
32762 "   char *app_version;\n"
32763 "   char *app_release;\n"
32764 "   char *app_install_path;\n"
32765 "   char *app_trans_path;\n"
32766 "   char *app_publisher;\n"
32767 "   char *app_url;\n"
32768 "   char *app_source_package;\n"
32769 "   char *app_summary;\n"
32770 "   char *app_description;\n"
32771 " };\n"
32772 " \n"
32773 msgstr ""
32774
32775 #. type: verbatim
32776 #: ../src/guestfs-structs.pod:260
32777 #, no-wrap
32778 msgid ""
32779 " struct guestfs_application_list {\n"
32780 "   uint32_t len; /* Number of elements in list. */\n"
32781 "   struct guestfs_application *val; /* Elements. */\n"
32782 " };\n"
32783 " \n"
32784 msgstr ""
32785
32786 #. type: verbatim
32787 #: ../src/guestfs-structs.pod:265
32788 #, no-wrap
32789 msgid ""
32790 " void guestfs_free_application (struct guestfs_free_application *);\n"
32791 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
32792 "\n"
32793 msgstr ""
32794
32795 #. type: textblock
32796 #: ../src/guestfs.pod:5
32797 msgid "guestfs - Library for accessing and modifying virtual machine images"
32798 msgstr ""
32799 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
32800 "машин"
32801
32802 #. type: verbatim
32803 #: ../src/guestfs.pod:11
32804 #, no-wrap
32805 msgid ""
32806 " guestfs_h *g = guestfs_create ();\n"
32807 " guestfs_add_drive (g, \"guest.img\");\n"
32808 " guestfs_launch (g);\n"
32809 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32810 " guestfs_touch (g, \"/hello\");\n"
32811 " guestfs_umount (g, \"/\");\n"
32812 " guestfs_close (g);\n"
32813 "\n"
32814 msgstr ""
32815 " guestfs_h *g = guestfs_create ();\n"
32816 " guestfs_add_drive (g, \"guest.img\");\n"
32817 " guestfs_launch (g);\n"
32818 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32819 " guestfs_touch (g, \"/hello\");\n"
32820 " guestfs_umount (g, \"/\");\n"
32821 " guestfs_close (g);\n"
32822 "\n"
32823
32824 #. type: textblock
32825 #: ../src/guestfs.pod:25
32826 msgid ""
32827 "Libguestfs is a library for accessing and modifying guest disk images.  "
32828 "Amongst the things this is good for: making batch configuration changes to "
32829 "guests, getting disk used/free statistics (see also: virt-df), migrating "
32830 "between virtualization systems (see also: virt-p2v), performing partial "
32831 "backups, performing partial guest clones, cloning guests and changing "
32832 "registry/UUID/hostname info, and much else besides."
32833 msgstr ""
32834
32835 #. type: textblock
32836 #: ../src/guestfs.pod:33
32837 msgid ""
32838 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
32839 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
32840 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
32841 "qcow2, vmdk."
32842 msgstr ""
32843
32844 #. type: textblock
32845 #: ../src/guestfs.pod:38
32846 msgid ""
32847 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
32848 "what filesystem is in each LV, etc.).  It can also run commands in the "
32849 "context of the guest.  Also you can access filesystems over FUSE."
32850 msgstr ""
32851
32852 #. type: textblock
32853 #: ../src/guestfs.pod:43
32854 msgid ""
32855 "Libguestfs is a library that can be linked with C and C++ management "
32856 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
32857 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
32858 "command line."
32859 msgstr ""
32860
32861 #. type: textblock
32862 #: ../src/guestfs.pod:48
32863 msgid ""
32864 "You don't need to be root to use libguestfs, although obviously you do need "
32865 "enough permissions to access the disk images."
32866 msgstr ""
32867
32868 #. type: textblock
32869 #: ../src/guestfs.pod:51
32870 msgid ""
32871 "Libguestfs is a large API because it can do many things.  For a gentle "
32872 "introduction, please read the L</API OVERVIEW> section next."
32873 msgstr ""
32874
32875 #. type: textblock
32876 #: ../src/guestfs.pod:54
32877 msgid ""
32878 "There are also some example programs in the L<guestfs-examples(3)> manual "
32879 "page."
32880 msgstr ""
32881
32882 #. type: =head1
32883 #: ../src/guestfs.pod:57
32884 msgid "API OVERVIEW"
32885 msgstr "ОГЛЯД API"
32886
32887 #. type: textblock
32888 #: ../src/guestfs.pod:59
32889 msgid ""
32890 "This section provides a gentler overview of the libguestfs API.  We also try "
32891 "to group API calls together, where that may not be obvious from reading "
32892 "about the individual calls in the main section of this manual."
32893 msgstr ""
32894
32895 #. type: =head2
32896 #: ../src/guestfs.pod:64
32897 msgid "HANDLES"
32898 msgstr "ОБРОБНИКИ"
32899
32900 #. type: textblock
32901 #: ../src/guestfs.pod:66
32902 msgid ""
32903 "Before you can use libguestfs calls, you have to create a handle.  Then you "
32904 "must add at least one disk image to the handle, followed by launching the "
32905 "handle, then performing whatever operations you want, and finally closing "
32906 "the handle.  By convention we use the single letter C<g> for the name of the "
32907 "handle variable, although of course you can use any name you want."
32908 msgstr ""
32909
32910 #. type: textblock
32911 #: ../src/guestfs.pod:73
32912 msgid "The general structure of all libguestfs-using programs looks like this:"
32913 msgstr ""
32914
32915 #. type: verbatim
32916 #: ../src/guestfs.pod:76
32917 #, no-wrap
32918 msgid ""
32919 " guestfs_h *g = guestfs_create ();\n"
32920 " \n"
32921 msgstr ""
32922 " guestfs_h *g = guestfs_create ();\n"
32923 " \n"
32924
32925 #. type: verbatim
32926 #: ../src/guestfs.pod:78
32927 #, no-wrap
32928 msgid ""
32929 " /* Call guestfs_add_drive additional times if there are\n"
32930 "  * multiple disk images.\n"
32931 "  */\n"
32932 " guestfs_add_drive (g, \"guest.img\");\n"
32933 " \n"
32934 msgstr ""
32935
32936 #. type: verbatim
32937 #: ../src/guestfs.pod:83
32938 #, no-wrap
32939 msgid ""
32940 " /* Most manipulation calls won't work until you've launched\n"
32941 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
32942 "  * and _before_ other commands.\n"
32943 "  */\n"
32944 " guestfs_launch (g);\n"
32945 " \n"
32946 msgstr ""
32947
32948 #. type: verbatim
32949 #: ../src/guestfs.pod:89
32950 #, no-wrap
32951 msgid ""
32952 " /* Now you can examine what partitions, LVs etc are available.\n"
32953 "  */\n"
32954 " char **partitions = guestfs_list_partitions (g);\n"
32955 " char **logvols = guestfs_lvs (g);\n"
32956 " \n"
32957 msgstr ""
32958 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
32959 "  */\n"
32960 " char **partitions = guestfs_list_partitions (g);\n"
32961 " char **logvols = guestfs_lvs (g);\n"
32962 " \n"
32963
32964 #. type: verbatim
32965 #: ../src/guestfs.pod:94
32966 #, no-wrap
32967 msgid ""
32968 " /* To access a filesystem in the image, you must mount it.\n"
32969 "  */\n"
32970 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32971 " \n"
32972 msgstr ""
32973 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
32974 "  */\n"
32975 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
32976 " \n"
32977
32978 #. type: verbatim
32979 #: ../src/guestfs.pod:98
32980 #, no-wrap
32981 msgid ""
32982 " /* Now you can perform filesystem actions on the guest\n"
32983 "  * disk image.\n"
32984 "  */\n"
32985 " guestfs_touch (g, \"/hello\");\n"
32986 " \n"
32987 msgstr ""
32988
32989 #. type: verbatim
32990 #: ../src/guestfs.pod:103
32991 #, no-wrap
32992 msgid ""
32993 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
32994 "  * it is done automatically when you close the handle.  See\n"
32995 "  * discussion of autosync in this page.\n"
32996 "  */\n"
32997 " guestfs_sync (g);\n"
32998 " \n"
32999 msgstr ""
33000
33001 #. type: verbatim
33002 #: ../src/guestfs.pod:109
33003 #, no-wrap
33004 msgid ""
33005 " /* Close the handle 'g'. */\n"
33006 " guestfs_close (g);\n"
33007 "\n"
33008 msgstr ""
33009 " /* Закрити дескриптор 'g'. */\n"
33010 " guestfs_close (g);\n"
33011 "\n"
33012
33013 #. type: textblock
33014 #: ../src/guestfs.pod:112
33015 msgid ""
33016 "The code above doesn't include any error checking.  In real code you should "
33017 "check return values carefully for errors.  In general all functions that "
33018 "return integers return C<-1> on error, and all functions that return "
33019 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
33020 "how to handle errors, and consult the documentation for each function call "
33021 "below to see precisely how they return error indications.  See L<guestfs-"
33022 "examples(3)> for fully worked examples."
33023 msgstr ""
33024
33025 #. type: =head2
33026 #: ../src/guestfs.pod:121
33027 msgid "DISK IMAGES"
33028 msgstr "ОБРАЗИ ДИСКІВ"
33029
33030 #. type: textblock
33031 #: ../src/guestfs.pod:123
33032 msgid ""
33033 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
33034 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
33035 "actual block device, or simply an empty file of zeroes that you have created "
33036 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
33037 "of these."
33038 msgstr ""
33039
33040 #. type: textblock
33041 #: ../src/guestfs.pod:129
33042 msgid ""
33043 "The call you should use in modern code for adding drives is L</"
33044 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
33045 "specifying that the format is raw, do:"
33046 msgstr ""
33047
33048 #. type: verbatim
33049 #: ../src/guestfs.pod:133
33050 #, no-wrap
33051 msgid ""
33052 " guestfs_add_drive_opts (g, filename,\n"
33053 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33054 "                         -1);\n"
33055 "\n"
33056 msgstr ""
33057 " guestfs_add_drive_opts (g, filename,\n"
33058 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33059 "                         -1);\n"
33060 "\n"
33061
33062 #. type: textblock
33063 #: ../src/guestfs.pod:137
33064 msgid "You can add a disk read-only using:"
33065 msgstr "Ви можете додати диск у режимі лише читання:"
33066
33067 #. type: verbatim
33068 #: ../src/guestfs.pod:139
33069 #, no-wrap
33070 msgid ""
33071 " guestfs_add_drive_opts (g, filename,\n"
33072 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33073 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33074 "                         -1);\n"
33075 "\n"
33076 msgstr ""
33077 " guestfs_add_drive_opts (g, filename,\n"
33078 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
33079 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
33080 "                         -1);\n"
33081 "\n"
33082
33083 #. type: textblock
33084 #: ../src/guestfs.pod:144
33085 msgid ""
33086 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
33087 "libguestfs won't modify the file."
33088 msgstr ""
33089
33090 #. type: textblock
33091 #: ../src/guestfs.pod:147
33092 msgid ""
33093 "Be extremely cautious if the disk image is in use, eg. if it is being used "
33094 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
33095 "corruption, but adding it read-only is safe."
33096 msgstr ""
33097
33098 #. type: textblock
33099 #: ../src/guestfs.pod:151
33100 msgid ""
33101 "You must add at least one disk image, and you may add multiple disk images.  "
33102 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
33103 "first one you added), C</dev/sdb> (for the second one you added), etc."
33104 msgstr ""
33105
33106 #. type: textblock
33107 #: ../src/guestfs.pod:156
33108 msgid ""
33109 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
33110 "can call L</guestfs_list_devices> to get a list of the device names, in the "
33111 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
33112 msgstr ""
33113
33114 #. type: =head2
33115 #: ../src/guestfs.pod:161
33116 msgid "MOUNTING"
33117 msgstr "МОНТУВАННЯ"
33118
33119 #. type: textblock
33120 #: ../src/guestfs.pod:163
33121 msgid ""
33122 "Before you can read or write files, create directories and so on in a disk "
33123 "image that contains filesystems, you have to mount those filesystems using "
33124 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
33125 "a disk image contains (for example) one partition with a filesystem on that "
33126 "partition, then you can mount it directly:"
33127 msgstr ""
33128
33129 #. type: verbatim
33130 #: ../src/guestfs.pod:170
33131 #, no-wrap
33132 msgid ""
33133 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33134 "\n"
33135 msgstr ""
33136 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
33137 "\n"
33138
33139 #. type: textblock
33140 #: ../src/guestfs.pod:172
33141 msgid ""
33142 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
33143 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
33144 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
33145 "that these are libguestfs virtual devices, and are nothing to do with host "
33146 "devices."
33147 msgstr ""
33148
33149 #. type: textblock
33150 #: ../src/guestfs.pod:178
33151 msgid ""
33152 "If you are given a disk image and you don't know what it contains then you "
33153 "have to find out.  Libguestfs can do that too: use L</"
33154 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
33155 "LVs, and either try mounting each to see what is mountable, or else examine "
33156 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
33157 "filesystems, use L</guestfs_list_filesystems>."
33158 msgstr ""
33159
33160 #. type: textblock
33161 #: ../src/guestfs.pod:186
33162 msgid ""
33163 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
33164 "L</INSPECTION> below).  But you might find it easier to look at higher level "
33165 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
33166 msgstr ""
33167
33168 #. type: textblock
33169 #: ../src/guestfs.pod:191
33170 msgid ""
33171 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
33172 "several other variations of the C<guestfs_mount_*> call."
33173 msgstr ""
33174
33175 #. type: =head2
33176 #: ../src/guestfs.pod:194
33177 msgid "FILESYSTEM ACCESS AND MODIFICATION"
33178 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
33179
33180 #. type: textblock
33181 #: ../src/guestfs.pod:196
33182 msgid ""
33183 "The majority of the libguestfs API consists of fairly low-level calls for "
33184 "accessing and modifying the files, directories, symlinks etc on mounted "
33185 "filesystems.  There are over a hundred such calls which you can find listed "
33186 "in detail below in this man page, and we don't even pretend to cover them "
33187 "all in this overview."
33188 msgstr ""
33189
33190 #. type: textblock
33191 #: ../src/guestfs.pod:202
33192 msgid ""
33193 "Specify filenames as full paths, starting with C<\"/\"> and including the "
33194 "mount point."
33195 msgstr ""
33196 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
33197 "точкою монтування."
33198
33199 #. type: textblock
33200 #: ../src/guestfs.pod:205
33201 msgid ""
33202 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
33203 "the file called C<\"etc/passwd\"> then you could do:"
33204 msgstr ""
33205 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
33206 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
33207 "таким кодом:"
33208
33209 #. type: verbatim
33210 #: ../src/guestfs.pod:208
33211 #, no-wrap
33212 msgid ""
33213 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
33214 "\n"
33215 msgstr ""
33216 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
33217 "\n"
33218
33219 #. type: textblock
33220 #: ../src/guestfs.pod:210
33221 msgid ""
33222 "This would return C<data> as a newly allocated buffer containing the full "
33223 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
33224 "or C<NULL> if there was an error."
33225 msgstr ""
33226
33227 #. type: textblock
33228 #: ../src/guestfs.pod:214
33229 msgid ""
33230 "As another example, to create a top-level directory on that filesystem "
33231 "called C<\"var\"> you would do:"
33232 msgstr ""
33233
33234 #. type: verbatim
33235 #: ../src/guestfs.pod:217
33236 #, no-wrap
33237 msgid ""
33238 " guestfs_mkdir (g, \"/var\");\n"
33239 "\n"
33240 msgstr ""
33241 " guestfs_mkdir (g, \"/var\");\n"
33242 "\n"
33243
33244 #. type: textblock
33245 #: ../src/guestfs.pod:219
33246 msgid "To create a symlink you could do:"
33247 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
33248
33249 #. type: verbatim
33250 #: ../src/guestfs.pod:221
33251 #, no-wrap
33252 msgid ""
33253 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
33254 "               \"/etc/rc3.d/S30portmap\");\n"
33255 "\n"
33256 msgstr ""
33257 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
33258 "               \"/etc/rc3.d/S30portmap\");\n"
33259 "\n"
33260
33261 #. type: textblock
33262 #: ../src/guestfs.pod:224
33263 msgid ""
33264 "Libguestfs will reject attempts to use relative paths and there is no "
33265 "concept of a current working directory."
33266 msgstr ""
33267
33268 #. type: textblock
33269 #: ../src/guestfs.pod:227
33270 msgid ""
33271 "Libguestfs can return errors in many situations: for example if the "
33272 "filesystem isn't writable, or if a file or directory that you requested "
33273 "doesn't exist.  If you are using the C API (documented here)  you have to "
33274 "check for those error conditions after each call.  (Other language bindings "
33275 "turn these errors into exceptions)."
33276 msgstr ""
33277
33278 #. type: textblock
33279 #: ../src/guestfs.pod:233
33280 msgid ""
33281 "File writes are affected by the per-handle umask, set by calling L</"
33282 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
33283 msgstr ""
33284
33285 #. type: =head2
33286 #: ../src/guestfs.pod:236
33287 msgid "PARTITIONING"
33288 msgstr "ПОДІЛ НА РОЗДІЛИ"
33289
33290 #. type: textblock
33291 #: ../src/guestfs.pod:238
33292 msgid ""
33293 "Libguestfs contains API calls to read, create and modify partition tables on "
33294 "disk images."
33295 msgstr ""
33296
33297 #. type: textblock
33298 #: ../src/guestfs.pod:241
33299 msgid ""
33300 "In the common case where you want to create a single partition covering the "
33301 "whole disk, you should use the L</guestfs_part_disk> call:"
33302 msgstr ""
33303
33304 #. type: verbatim
33305 #: ../src/guestfs.pod:245
33306 #, no-wrap
33307 msgid ""
33308 " const char *parttype = \"mbr\";\n"
33309 " if (disk_is_larger_than_2TB)\n"
33310 "   parttype = \"gpt\";\n"
33311 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33312 "\n"
33313 msgstr ""
33314 " const char *parttype = \"mbr\";\n"
33315 " if (disk_is_larger_than_2TB)\n"
33316 "   parttype = \"gpt\";\n"
33317 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
33318 "\n"
33319
33320 #. type: textblock
33321 #: ../src/guestfs.pod:250
33322 msgid ""
33323 "Obviously this effectively wipes anything that was on that disk image before."
33324 msgstr ""
33325
33326 #. type: =head2
33327 #: ../src/guestfs.pod:253
33328 msgid "LVM2"
33329 msgstr "LVM2"
33330
33331 #. type: textblock
33332 #: ../src/guestfs.pod:255
33333 msgid ""
33334 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
33335 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
33336 "you familiarize yourself with the concepts of physical volumes, volume "
33337 "groups and logical volumes."
33338 msgstr ""
33339
33340 #. type: textblock
33341 #: ../src/guestfs.pod:260
33342 msgid ""
33343 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
33344 "tldp.org/HOWTO/LVM-HOWTO/>."
33345 msgstr ""
33346
33347 #. type: =head2
33348 #: ../src/guestfs.pod:263
33349 msgid "DOWNLOADING"
33350 msgstr "ОТРИМАННЯ ДАНИХ"
33351
33352 #. type: textblock
33353 #: ../src/guestfs.pod:265
33354 msgid ""
33355 "Use L</guestfs_cat> to download small, text only files.  This call is "
33356 "limited to files which are less than 2 MB and which cannot contain any ASCII "
33357 "NUL (C<\\0>) characters.  However the API is very simple to use."
33358 msgstr ""
33359
33360 #. type: textblock
33361 #: ../src/guestfs.pod:269
33362 msgid ""
33363 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
33364 "bit data, since it returns a (pointer, size) pair.  However it is still "
33365 "limited to \"small\" files, less than 2 MB."
33366 msgstr ""
33367
33368 #. type: textblock
33369 #: ../src/guestfs.pod:273
33370 msgid ""
33371 "L</guestfs_download> can be used to download any file, with no limits on "
33372 "content or size (even files larger than 4 GB)."
33373 msgstr ""
33374
33375 #. type: textblock
33376 #: ../src/guestfs.pod:276
33377 msgid ""
33378 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
33379 msgstr ""
33380
33381 #. type: =head2
33382 #: ../src/guestfs.pod:279
33383 msgid "UPLOADING"
33384 msgstr "ВИВАНТАЖЕННЯ"
33385
33386 #. type: textblock
33387 #: ../src/guestfs.pod:281
33388 msgid ""
33389 "It's often the case that you want to write a file or files to the disk image."
33390 msgstr ""
33391
33392 #. type: textblock
33393 #: ../src/guestfs.pod:284
33394 msgid ""
33395 "To write a small file with fixed content, use L</guestfs_write>.  To create "
33396 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
33397 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
33398 "of other functions for creating test files, for example L</guestfs_fill> and "
33399 "L</guestfs_fill_pattern>."
33400 msgstr ""
33401
33402 #. type: textblock
33403 #: ../src/guestfs.pod:290
33404 msgid ""
33405 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
33406 "file content or size (even files larger than 4 GB)."
33407 msgstr ""
33408
33409 #. type: textblock
33410 #: ../src/guestfs.pod:293
33411 msgid ""
33412 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
33413 msgstr ""
33414
33415 #. type: textblock
33416 #: ../src/guestfs.pod:295
33417 msgid ""
33418 "However the fastest way to upload I<large numbers of arbitrary files> is to "
33419 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
33420 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
33421 "in a predictable way (eg. adding it last after all other drives) then you "
33422 "can get the device name from L</guestfs_list_devices> and mount it directly "
33423 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
33424 "portable between kernel versions, and they don't support labels or UUIDs.  "
33425 "If you want to pre-build an image or you need to mount it using a label or "
33426 "UUID, use an ISO image instead."
33427 msgstr ""
33428
33429 #. type: =head2
33430 #: ../src/guestfs.pod:306
33431 msgid "COPYING"
33432 msgstr "КОПІЮВАННЯ"
33433
33434 #. type: textblock
33435 #: ../src/guestfs.pod:308
33436 msgid ""
33437 "There are various different commands for copying between files and devices "
33438 "and in and out of the guest filesystem.  These are summarised in the table "
33439 "below."
33440 msgstr ""
33441
33442 #. type: =item
33443 #: ../src/guestfs.pod:314
33444 msgid "B<file> to B<file>"
33445 msgstr "B<файл> у B<файл>"
33446
33447 #. type: textblock
33448 #: ../src/guestfs.pod:316
33449 msgid ""
33450 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
33451 "directories recursively."
33452 msgstr ""
33453
33454 #. type: =item
33455 #: ../src/guestfs.pod:319
33456 msgid "B<file or device> to B<file or device>"
33457 msgstr "B<файл або пристрій> у B<файл або пристрій>"
33458
33459 #. type: textblock
33460 #: ../src/guestfs.pod:321
33461 msgid ""
33462 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
33463 "devices in the guest."
33464 msgstr ""
33465
33466 #. type: textblock
33467 #: ../src/guestfs.pod:324
33468 msgid "Example: duplicate the contents of an LV:"
33469 msgstr ""
33470
33471 #. type: verbatim
33472 #: ../src/guestfs.pod:326
33473 #, no-wrap
33474 msgid ""
33475 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33476 "\n"
33477 msgstr ""
33478 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
33479 "\n"
33480
33481 #. type: textblock
33482 #: ../src/guestfs.pod:328
33483 msgid ""
33484 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
33485 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
33486 "guestfs_copy_size>."
33487 msgstr ""
33488
33489 #. type: =item
33490 #: ../src/guestfs.pod:332
33491 msgid "B<file on the host> to B<file or device>"
33492 msgstr ""
33493
33494 #. type: textblock
33495 #: ../src/guestfs.pod:334
33496 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
33497 msgstr ""
33498
33499 #. type: =item
33500 #: ../src/guestfs.pod:336
33501 msgid "B<file or device> to B<file on the host>"
33502 msgstr ""
33503
33504 #. type: textblock
33505 #: ../src/guestfs.pod:338
33506 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
33507 msgstr ""
33508
33509 #. type: =head2
33510 #: ../src/guestfs.pod:342
33511 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
33512 msgstr ""
33513
33514 #. type: textblock
33515 #: ../src/guestfs.pod:344
33516 msgid ""
33517 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
33518 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
33519 "appears you can only upload and download to files.  However many Un*x-like "
33520 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
33521 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
33522 "and arbitrary file descriptor N."
33523 msgstr ""
33524
33525 #. type: textblock
33526 #: ../src/guestfs.pod:352
33527 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
33528 msgstr ""
33529
33530 #. type: verbatim
33531 #: ../src/guestfs.pod:355
33532 #, no-wrap
33533 msgid ""
33534 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33535 "\n"
33536 msgstr ""
33537 " guestfs_download (g, filename, \"/dev/stdout\");\n"
33538 "\n"
33539
33540 #. type: textblock
33541 #: ../src/guestfs.pod:357
33542 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
33543 msgstr ""
33544
33545 #. type: verbatim
33546 #: ../src/guestfs.pod:359
33547 #, no-wrap
33548 msgid ""
33549 " char devfd[64];\n"
33550 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33551 " guestfs_tar_out (g, \"/\", devfd);\n"
33552 "\n"
33553 msgstr ""
33554 " char devfd[64];\n"
33555 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
33556 " guestfs_tar_out (g, \"/\", devfd);\n"
33557 "\n"
33558
33559 #. type: =head2
33560 #: ../src/guestfs.pod:363
33561 msgid "LISTING FILES"
33562 msgstr "СПИСКИ ФАЙЛІВ"
33563
33564 #. type: textblock
33565 #: ../src/guestfs.pod:365
33566 msgid ""
33567 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
33568 "L<guestfish(1)>-equivalent command C<ll>)."
33569 msgstr ""
33570
33571 #. type: textblock
33572 #: ../src/guestfs.pod:368
33573 msgid ""
33574 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
33575 "programs, as a flat list of strings."
33576 msgstr ""
33577
33578 #. type: textblock
33579 #: ../src/guestfs.pod:371
33580 msgid ""
33581 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
33582 "directory, plus additional information about each one.  It is more "
33583 "equivalent to using the L<readdir(3)> call on a local filesystem."
33584 msgstr ""
33585
33586 #. type: textblock
33587 #: ../src/guestfs.pod:375
33588 msgid ""
33589 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
33590 msgstr ""
33591
33592 #. type: =head2
33593 #: ../src/guestfs.pod:378
33594 msgid "RUNNING COMMANDS"
33595 msgstr "ВИКОНАННЯ КОМАНД"
33596
33597 #. type: textblock
33598 #: ../src/guestfs.pod:380
33599 msgid ""
33600 "Although libguestfs is primarily an API for manipulating files inside guest "
33601 "images, we also provide some limited facilities for running commands inside "
33602 "guests."
33603 msgstr ""
33604
33605 #. type: textblock
33606 #: ../src/guestfs.pod:384
33607 msgid "There are many limitations to this:"
33608 msgstr ""
33609
33610 #. type: textblock
33611 #: ../src/guestfs.pod:390
33612 msgid ""
33613 "The kernel version that the command runs under will be different from what "
33614 "it expects."
33615 msgstr ""
33616
33617 #. type: textblock
33618 #: ../src/guestfs.pod:395
33619 msgid ""
33620 "If the command needs to communicate with daemons, then most likely they "
33621 "won't be running."
33622 msgstr ""
33623
33624 #. type: textblock
33625 #: ../src/guestfs.pod:400
33626 msgid "The command will be running in limited memory."
33627 msgstr ""
33628
33629 #. type: textblock
33630 #: ../src/guestfs.pod:404
33631 msgid ""
33632 "The network may not be available unless you enable it (see L</"
33633 "guestfs_set_network>)."
33634 msgstr ""
33635
33636 #. type: textblock
33637 #: ../src/guestfs.pod:409
33638 msgid "Only supports Linux guests (not Windows, BSD, etc)."
33639 msgstr ""
33640
33641 #. type: textblock
33642 #: ../src/guestfs.pod:413
33643 msgid ""
33644 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
33645 msgstr ""
33646
33647 #. type: textblock
33648 #: ../src/guestfs.pod:418
33649 msgid ""
33650 "For SELinux guests, you may need to enable SELinux and load policy first.  "
33651 "See L</SELINUX> in this manpage."
33652 msgstr ""
33653
33654 #. type: textblock
33655 #: ../src/guestfs.pod:423
33656 msgid ""
33657 "I<Security:> It is not safe to run commands from untrusted, possibly "
33658 "malicious guests.  These commands may attempt to exploit your program by "
33659 "sending unexpected output.  They could also try to exploit the Linux kernel "
33660 "or qemu provided by the libguestfs appliance.  They could use the network "
33661 "provided by the libguestfs appliance to bypass ordinary network partitions "
33662 "and firewalls.  They could use the elevated privileges or different SELinux "
33663 "context of your program to their advantage."
33664 msgstr ""
33665
33666 #. type: textblock
33667 #: ../src/guestfs.pod:432
33668 msgid ""
33669 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
33670 "(a script which runs when the guest next boots normally), and to have this "
33671 "script run the commands you want in the normal context of the running guest, "
33672 "network security and so on.  For information about other security issues, "
33673 "see L</SECURITY>."
33674 msgstr ""
33675
33676 #. type: textblock
33677 #: ../src/guestfs.pod:440
33678 msgid ""
33679 "The two main API calls to run commands are L</guestfs_command> and L</"
33680 "guestfs_sh> (there are also variations)."
33681 msgstr ""
33682
33683 #. type: textblock
33684 #: ../src/guestfs.pod:443
33685 msgid ""
33686 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
33687 "shell globs, redirections, etc will work."
33688 msgstr ""
33689
33690 #. type: =head2
33691 #: ../src/guestfs.pod:446
33692 msgid "CONFIGURATION FILES"
33693 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
33694
33695 #. type: textblock
33696 #: ../src/guestfs.pod:448
33697 msgid ""
33698 "To read and write configuration files in Linux guest filesystems, we "
33699 "strongly recommend using Augeas.  For example, Augeas understands how to "
33700 "read and write, say, a Linux shadow password file or X.org configuration "
33701 "file, and so avoids you having to write that code."
33702 msgstr ""
33703
33704 #. type: textblock
33705 #: ../src/guestfs.pod:453
33706 msgid ""
33707 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
33708 "document Augeas itself here because there is excellent documentation on the "
33709 "L<http://augeas.net/> website."
33710 msgstr ""
33711
33712 #. type: textblock
33713 #: ../src/guestfs.pod:457
33714 msgid ""
33715 "If you don't want to use Augeas (you fool!) then try calling L</"
33716 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
33717 "over."
33718 msgstr ""
33719
33720 #. type: =head2
33721 #: ../src/guestfs.pod:461
33722 msgid "SELINUX"
33723 msgstr "SELINUX"
33724
33725 #. type: textblock
33726 #: ../src/guestfs.pod:463
33727 msgid ""
33728 "We support SELinux guests.  To ensure that labeling happens correctly in "
33729 "SELinux guests, you need to enable SELinux and load the guest's policy:"
33730 msgstr ""
33731
33732 #. type: textblock
33733 #: ../src/guestfs.pod:471
33734 msgid "Before launching, do:"
33735 msgstr ""
33736
33737 #. type: verbatim
33738 #: ../src/guestfs.pod:473
33739 #, no-wrap
33740 msgid ""
33741 " guestfs_set_selinux (g, 1);\n"
33742 "\n"
33743 msgstr ""
33744 " guestfs_set_selinux (g, 1);\n"
33745 "\n"
33746
33747 #. type: textblock
33748 #: ../src/guestfs.pod:477
33749 msgid ""
33750 "After mounting the guest's filesystem(s), load the policy.  This is best "
33751 "done by running the L<load_policy(8)> command in the guest itself:"
33752 msgstr ""
33753
33754 #. type: verbatim
33755 #: ../src/guestfs.pod:481
33756 #, no-wrap
33757 msgid ""
33758 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33759 "\n"
33760 msgstr ""
33761 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
33762 "\n"
33763
33764 #. type: textblock
33765 #: ../src/guestfs.pod:483
33766 msgid ""
33767 "(Older versions of C<load_policy> require you to specify the name of the "
33768 "policy file)."
33769 msgstr ""
33770
33771 #. type: textblock
33772 #: ../src/guestfs.pod:488
33773 msgid ""
33774 "Optionally, set the security context for the API.  The correct security "
33775 "context to use can only be known by inspecting the guest.  As an example:"
33776 msgstr ""
33777
33778 #. type: verbatim
33779 #: ../src/guestfs.pod:492
33780 #, no-wrap
33781 msgid ""
33782 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33783 "\n"
33784 msgstr ""
33785 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
33786 "\n"
33787
33788 #. type: textblock
33789 #: ../src/guestfs.pod:496
33790 msgid "This will work for running commands and editing existing files."
33791 msgstr ""
33792
33793 #. type: textblock
33794 #: ../src/guestfs.pod:498
33795 msgid ""
33796 "When new files are created, you may need to label them explicitly, for "
33797 "example by running the external command C<restorecon pathname>."
33798 msgstr ""
33799
33800 #. type: =head2
33801 #: ../src/guestfs.pod:502
33802 msgid "UMASK"
33803 msgstr "UMASK"
33804
33805 #. type: textblock
33806 #: ../src/guestfs.pod:504
33807 msgid ""
33808 "Certain calls are affected by the current file mode creation mask (the "
33809 "\"umask\").  In particular ones which create files or directories, such as "
33810 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
33811 "either the default mode that the file is created with or modifies the mode "
33812 "that you supply."
33813 msgstr ""
33814
33815 #. type: textblock
33816 #: ../src/guestfs.pod:510
33817 msgid ""
33818 "The default umask is C<022>, so files are created with modes such as C<0644> "
33819 "and directories with C<0755>."
33820 msgstr ""
33821
33822 #. type: textblock
33823 #: ../src/guestfs.pod:513
33824 msgid ""
33825 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
33826 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
33827 "guestfs_chmod> after creating each file or directory."
33828 msgstr ""
33829
33830 #. type: textblock
33831 #: ../src/guestfs.pod:517
33832 msgid "For more information about umask, see L<umask(2)>."
33833 msgstr ""
33834
33835 #. type: textblock
33836 #: ../src/guestfs.pod:521
33837 msgid ""
33838 "Libguestfs allows you to access Linux guests which have been encrypted using "
33839 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
33840 "standard.  This includes nearly all whole disk encryption systems used by "
33841 "modern Linux guests."
33842 msgstr ""
33843
33844 #. type: textblock
33845 #: ../src/guestfs.pod:527
33846 msgid ""
33847 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
33848 "returns the string C<crypto_LUKS>)."
33849 msgstr ""
33850
33851 #. type: textblock
33852 #: ../src/guestfs.pod:530
33853 msgid ""
33854 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
33855 "will require the passphrase!"
33856 msgstr ""
33857
33858 #. type: textblock
33859 #: ../src/guestfs.pod:533
33860 msgid ""
33861 "Opening a LUKS device creates a new device mapper device called C</dev/"
33862 "mapper/mapname> (where C<mapname> is the string you supply to L</"
33863 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
33864 "from and encrypted to the underlying block device respectively."
33865 msgstr ""
33866
33867 #. type: textblock
33868 #: ../src/guestfs.pod:539
33869 msgid ""
33870 "LVM volume groups on the device can be made visible by calling L</"
33871 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
33872 "(s) can now be mounted in the usual way."
33873 msgstr ""
33874
33875 #. type: textblock
33876 #: ../src/guestfs.pod:543
33877 msgid ""
33878 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
33879 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
33880 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
33881 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
33882 "underlying encrypted block device)."
33883 msgstr ""
33884
33885 #. type: =head2
33886 #: ../src/guestfs.pod:550
33887 msgid "INSPECTION"
33888 msgstr "ПЕРЕВІРКА"
33889
33890 #. type: textblock
33891 #: ../src/guestfs.pod:552
33892 msgid ""
33893 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
33894 "contains operating systems, an install CD or a live CD.  (These APIs used to "
33895 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
33896 "version 1.5.3 the most frequently used part of this library has been "
33897 "rewritten in C and moved into the core code)."
33898 msgstr ""
33899
33900 #. type: textblock
33901 #: ../src/guestfs.pod:559
33902 msgid ""
33903 "Add all disks belonging to the unknown virtual machine and call L</"
33904 "guestfs_launch> in the usual way."
33905 msgstr ""
33906
33907 #. type: textblock
33908 #: ../src/guestfs.pod:562
33909 msgid ""
33910 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
33911 "and certain heuristics, and returns a list of operating systems that were "
33912 "found.  An empty list means none were found.  A single element is the root "
33913 "filesystem of the operating system.  For dual- or multi-boot guests, "
33914 "multiple roots can be returned, each one corresponding to a separate "
33915 "operating system.  (Multi-boot virtual machines are extremely rare in the "
33916 "world of virtualization, but since this scenario can happen, we have built "
33917 "libguestfs to deal with it.)"
33918 msgstr ""
33919
33920 #. type: textblock
33921 #: ../src/guestfs.pod:571
33922 msgid ""
33923 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
33924 "to get additional details about that operating system.  For example, call L</"
33925 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
33926 "Windows and Linux-based operating systems respectively."
33927 msgstr ""
33928
33929 #. type: textblock
33930 #: ../src/guestfs.pod:577
33931 msgid ""
33932 "Un*x-like and Linux-based operating systems usually consist of several "
33933 "filesystems which are mounted at boot time (for example, a separate boot "
33934 "partition mounted on C</boot>).  The inspection rules are able to detect how "
33935 "filesystems correspond to mount points.  Call "
33936 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
33937 "hash table like this example:"
33938 msgstr ""
33939
33940 #. type: verbatim
33941 #: ../src/guestfs.pod:584
33942 #, no-wrap
33943 msgid ""
33944 " /boot => /dev/sda1\n"
33945 " /     => /dev/vg_guest/lv_root\n"
33946 " /usr  => /dev/vg_guest/lv_usr\n"
33947 "\n"
33948 msgstr ""
33949 " /boot => /dev/sda1\n"
33950 " /     => /dev/vg_guest/lv_root\n"
33951 " /usr  => /dev/vg_guest/lv_usr\n"
33952 "\n"
33953
33954 #. type: textblock
33955 #: ../src/guestfs.pod:588
33956 msgid ""
33957 "The caller can then make calls to L</guestfs_mount_options> to mount the "
33958 "filesystems as suggested."
33959 msgstr ""
33960
33961 #. type: textblock
33962 #: ../src/guestfs.pod:591
33963 msgid ""
33964 "Be careful to mount filesystems in the right order (eg. C</> before C</"
33965 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
33966 msgstr ""
33967
33968 #. type: textblock
33969 #: ../src/guestfs.pod:595
33970 msgid ""
33971 "Inspection currently only works for some common operating systems.  "
33972 "Contributors are welcome to send patches for other operating systems that we "
33973 "currently cannot detect."
33974 msgstr ""
33975
33976 #. type: textblock
33977 #: ../src/guestfs.pod:599
33978 msgid ""
33979 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
33980 "for more details.  The L</guestfs_inspect_os> function just ignores any "
33981 "encrypted devices."
33982 msgstr ""
33983
33984 #. type: textblock
33985 #: ../src/guestfs.pod:603
33986 msgid ""
33987 "A note on the implementation: The call L</guestfs_inspect_os> performs "
33988 "inspection and caches the results in the guest handle.  Subsequent calls to "
33989 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
33990 "read the disks.  If you change the content of the guest disks, you can redo "
33991 "inspection by calling L</guestfs_inspect_os> again.  (L</"
33992 "guestfs_inspect_list_applications> works a little differently from the other "
33993 "calls and does read the disks.  See documentation for that function for "
33994 "details)."
33995 msgstr ""
33996
33997 #. type: =head3
33998 #: ../src/guestfs.pod:612
33999 msgid "INSPECTING INSTALL DISKS"
34000 msgstr ""
34001
34002 #. type: textblock
34003 #: ../src/guestfs.pod:614
34004 msgid ""
34005 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
34006 "CDs and more."
34007 msgstr ""
34008
34009 #. type: textblock
34010 #: ../src/guestfs.pod:617
34011 msgid ""
34012 "Call L</guestfs_inspect_get_format> to return the format of the operating "
34013 "system, which currently can be C<installed> (a regular operating system) or "
34014 "C<installer> (some sort of install disk)."
34015 msgstr ""
34016
34017 #. type: textblock
34018 #: ../src/guestfs.pod:621
34019 msgid ""
34020 "Further information is available about the operating system that can be "
34021 "installed using the regular inspection APIs like L</"
34022 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
34023 msgstr ""
34024
34025 #. type: textblock
34026 #: ../src/guestfs.pod:626
34027 msgid ""
34028 "Some additional information specific to installer disks is also available "
34029 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
34030 "guestfs_inspect_is_multipart> calls."
34031 msgstr ""
34032
34033 #. type: =head2
34034 #: ../src/guestfs.pod:631
34035 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
34036 msgstr ""
34037
34038 #. type: textblock
34039 #: ../src/guestfs.pod:633
34040 msgid ""
34041 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
34042 "ntfs-3g.org/> driver."
34043 msgstr ""
34044
34045 #. type: =head3
34046 #: ../src/guestfs.pod:636
34047 msgid "DRIVE LETTERS AND PATHS"
34048 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
34049
34050 #. type: textblock
34051 #: ../src/guestfs.pod:638
34052 msgid ""
34053 "DOS and Windows still use drive letters, and the filesystems are always "
34054 "treated as case insensitive by Windows itself, and therefore you might find "
34055 "a Windows configuration file referring to a path like C<c:\\windows"
34056 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
34057 "might be referred to as C</WINDOWS/System32>."
34058 msgstr ""
34059
34060 #. type: textblock
34061 #: ../src/guestfs.pod:644
34062 msgid ""
34063 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
34064 "L</guestfs_inspect_get_drive_mappings>)"
34065 msgstr ""
34066
34067 #. type: textblock
34068 #: ../src/guestfs.pod:647
34069 msgid ""
34070 "Dealing with separator characters (backslash vs forward slash) is outside "
34071 "the scope of libguestfs, but usually a simple character replacement will "
34072 "work."
34073 msgstr ""
34074
34075 #. type: textblock
34076 #: ../src/guestfs.pod:651
34077 msgid ""
34078 "To resolve the case insensitivity of paths, call L</"
34079 "guestfs_case_sensitive_path>."
34080 msgstr ""
34081
34082 #. type: =head3
34083 #: ../src/guestfs.pod:654
34084 msgid "ACCESSING THE WINDOWS REGISTRY"
34085 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
34086
34087 #. type: textblock
34088 #: ../src/guestfs.pod:656
34089 msgid ""
34090 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
34091 "files, through the library C<hivex> which is part of the libguestfs project "
34092 "although ships as a separate tarball.  You have to locate and download the "
34093 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
34094 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
34095 "reg(1)> for more help on this issue."
34096 msgstr ""
34097
34098 #. type: =head3
34099 #: ../src/guestfs.pod:664
34100 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
34101 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
34102
34103 #. type: textblock
34104 #: ../src/guestfs.pod:666
34105 msgid ""
34106 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
34107 "provide something which looks like a Linux symlink.  The way it tries to do "
34108 "the rewriting is described here:"
34109 msgstr ""
34110
34111 #. type: textblock
34112 #: ../src/guestfs.pod:670
34113 msgid ""
34114 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34115 "symbolic-links/>"
34116 msgstr ""
34117 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
34118 "symbolic-links/>"
34119
34120 #. type: textblock
34121 #: ../src/guestfs.pod:672
34122 msgid ""
34123 "The essential problem is that ntfs-3g simply does not have enough "
34124 "information to do a correct job.  NTFS links can contain drive letters and "
34125 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
34126 "It is almost certainly the case that libguestfs callers should ignore what "
34127 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
34128 msgstr ""
34129
34130 #. type: textblock
34131 #: ../src/guestfs.pod:679
34132 msgid ""
34133 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
34134 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
34135 "attribute, and read the raw reparse data from that (you can find the format "
34136 "documented in various places around the web)."
34137 msgstr ""
34138
34139 #. type: =head3
34140 #: ../src/guestfs.pod:684
34141 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
34142 msgstr ""
34143
34144 #. type: textblock
34145 #: ../src/guestfs.pod:686
34146 msgid ""
34147 "There are other useful extended attributes that can be read from ntfs-3g "
34148 "filesystems (using L</guestfs_getxattr>).  See:"
34149 msgstr ""
34150
34151 #. type: textblock
34152 #: ../src/guestfs.pod:689
34153 msgid ""
34154 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34155 msgstr ""
34156 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
34157
34158 #. type: =head2
34159 #: ../src/guestfs.pod:691
34160 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
34161 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
34162
34163 #. type: textblock
34164 #: ../src/guestfs.pod:693
34165 msgid ""
34166 "Although we don't want to discourage you from using the C API, we will "
34167 "mention here that the same API is also available in other languages."
34168 msgstr ""
34169
34170 #. type: textblock
34171 #: ../src/guestfs.pod:696
34172 msgid ""
34173 "The API is broadly identical in all supported languages.  This means that "
34174 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
34175 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
34176 "OCaml.  In other words, a straightforward, predictable isomorphism between "
34177 "each language."
34178 msgstr ""
34179
34180 #. type: textblock
34181 #: ../src/guestfs.pod:702
34182 msgid ""
34183 "Error messages are automatically transformed into exceptions if the language "
34184 "supports it."
34185 msgstr ""
34186
34187 #. type: textblock
34188 #: ../src/guestfs.pod:705
34189 msgid ""
34190 "We don't try to \"object orientify\" parts of the API in OO languages, "
34191 "although contributors are welcome to write higher level APIs above what we "
34192 "provide in their favourite languages if they wish."
34193 msgstr ""
34194
34195 #. type: =item
34196 #: ../src/guestfs.pod:711
34197 msgid "B<C++>"
34198 msgstr "B<C++>"
34199
34200 #. type: textblock
34201 #: ../src/guestfs.pod:713
34202 msgid ""
34203 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
34204 "identical to the C API.  C++ classes and exceptions are not used."
34205 msgstr ""
34206
34207 #. type: =item
34208 #: ../src/guestfs.pod:717
34209 msgid "B<C#>"
34210 msgstr "B<C#>"
34211
34212 #. type: textblock
34213 #: ../src/guestfs.pod:719
34214 msgid ""
34215 "The C# bindings are highly experimental.  Please read the warnings at the "
34216 "top of C<csharp/Libguestfs.cs>."
34217 msgstr ""
34218
34219 #. type: =item
34220 #: ../src/guestfs.pod:722
34221 msgid "B<Erlang>"
34222 msgstr ""
34223
34224 #. type: textblock
34225 #: ../src/guestfs.pod:724
34226 #, fuzzy
34227 #| msgid "See L<guestfs-ruby(3)>."
34228 msgid "See L<guestfs-erlang(3)>."
34229 msgstr "Див. L<guestfs-ruby(3)>."
34230
34231 #. type: =item
34232 #: ../src/guestfs.pod:726
34233 msgid "B<Haskell>"
34234 msgstr "B<Haskell>"
34235
34236 #. type: textblock
34237 #: ../src/guestfs.pod:728
34238 msgid ""
34239 "This is the only language binding that is working but incomplete.  Only "
34240 "calls which return simple integers have been bound in Haskell, and we are "
34241 "looking for help to complete this binding."
34242 msgstr ""
34243
34244 #. type: =item
34245 #: ../src/guestfs.pod:732
34246 msgid "B<Java>"
34247 msgstr "B<Java>"
34248
34249 #. type: textblock
34250 #: ../src/guestfs.pod:734
34251 msgid ""
34252 "Full documentation is contained in the Javadoc which is distributed with "
34253 "libguestfs.  For examples, see L<guestfs-java(3)>."
34254 msgstr ""
34255
34256 #. type: =item
34257 #: ../src/guestfs.pod:737
34258 msgid "B<OCaml>"
34259 msgstr "B<OCaml>"
34260
34261 #. type: textblock
34262 #: ../src/guestfs.pod:739
34263 msgid "See L<guestfs-ocaml(3)>."
34264 msgstr "Див. L<guestfs-ocaml(3)>."
34265
34266 #. type: =item
34267 #: ../src/guestfs.pod:741
34268 msgid "B<Perl>"
34269 msgstr "B<Perl>"
34270
34271 #. type: textblock
34272 #: ../src/guestfs.pod:743
34273 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
34274 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
34275
34276 #. type: =item
34277 #: ../src/guestfs.pod:745
34278 msgid "B<PHP>"
34279 msgstr "B<PHP>"
34280
34281 #. type: textblock
34282 #: ../src/guestfs.pod:747
34283 msgid ""
34284 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
34285 "the php-libguestfs package for your distribution."
34286 msgstr ""
34287
34288 #. type: textblock
34289 #: ../src/guestfs.pod:750
34290 msgid "The PHP binding only works correctly on 64 bit machines."
34291 msgstr ""
34292
34293 #. type: =item
34294 #: ../src/guestfs.pod:752
34295 msgid "B<Python>"
34296 msgstr "B<Python>"
34297
34298 #. type: textblock
34299 #: ../src/guestfs.pod:754
34300 msgid "See L<guestfs-python(3)>."
34301 msgstr "Див. L<guestfs-python(3)>."
34302
34303 #. type: =item
34304 #: ../src/guestfs.pod:756
34305 msgid "B<Ruby>"
34306 msgstr "B<Ruby>"
34307
34308 #. type: textblock
34309 #: ../src/guestfs.pod:758
34310 msgid "See L<guestfs-ruby(3)>."
34311 msgstr "Див. L<guestfs-ruby(3)>."
34312
34313 #. type: =item
34314 #: ../src/guestfs.pod:760
34315 msgid "B<shell scripts>"
34316 msgstr "B<скрипти оболонки>"
34317
34318 #. type: textblock
34319 #: ../src/guestfs.pod:762
34320 msgid "See L<guestfish(1)>."
34321 msgstr "Див. L<guestfish(1)>."
34322
34323 #. type: =head2
34324 #: ../src/guestfs.pod:766
34325 msgid "LIBGUESTFS GOTCHAS"
34326 msgstr ""
34327
34328 #. type: textblock
34329 #: ../src/guestfs.pod:768
34330 msgid ""
34331 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
34332 "system [...] that works in the way it is documented but is counterintuitive "
34333 "and almost invites mistakes.\""
34334 msgstr ""
34335
34336 #. type: textblock
34337 #: ../src/guestfs.pod:772
34338 msgid ""
34339 "Since we developed libguestfs and the associated tools, there are several "
34340 "things we would have designed differently, but are now stuck with for "
34341 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
34342 "release, you can expect these to change.  Beware of them."
34343 msgstr ""
34344
34345 #. type: =item
34346 #: ../src/guestfs.pod:780
34347 msgid "Autosync / forgetting to sync."
34348 msgstr ""
34349
34350 #. type: textblock
34351 #: ../src/guestfs.pod:782
34352 msgid ""
34353 "I<Update:> Autosync is enabled by default for all API users starting from "
34354 "libguestfs 1.5.24.  This section only applies to older versions."
34355 msgstr ""
34356
34357 #. type: textblock
34358 #: ../src/guestfs.pod:785
34359 msgid ""
34360 "When modifying a filesystem from C or another language, you B<must> unmount "
34361 "all filesystems and call L</guestfs_sync> explicitly before you close the "
34362 "libguestfs handle.  You can also call:"
34363 msgstr ""
34364
34365 #. type: verbatim
34366 #: ../src/guestfs.pod:789
34367 #, no-wrap
34368 msgid ""
34369 " guestfs_set_autosync (g, 1);\n"
34370 "\n"
34371 msgstr ""
34372 " guestfs_set_autosync (g, 1);\n"
34373 "\n"
34374
34375 #. type: textblock
34376 #: ../src/guestfs.pod:791
34377 msgid ""
34378 "to have the unmount/sync done automatically for you when the handle 'g' is "
34379 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
34380 msgstr ""
34381
34382 #. type: textblock
34383 #: ../src/guestfs.pod:795
34384 msgid ""
34385 "If you forget to do this, then it is entirely possible that your changes "
34386 "won't be written out, or will be partially written, or (very rarely) that "
34387 "you'll get disk corruption."
34388 msgstr ""
34389
34390 #. type: textblock
34391 #: ../src/guestfs.pod:799
34392 msgid ""
34393 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
34394 "guestfish scripts that forget to sync will work just fine, which can make "
34395 "this very puzzling if you are trying to debug a problem."
34396 msgstr ""
34397
34398 #. type: =item
34399 #: ../src/guestfs.pod:803
34400 msgid "Mount option C<-o sync> should not be the default."
34401 msgstr ""
34402
34403 #. type: textblock
34404 #: ../src/guestfs.pod:805
34405 msgid ""
34406 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
34407 "However C<-o sync> does not add any reliability benefit, but does have a "
34408 "very large performance impact."
34409 msgstr ""
34410
34411 #. type: textblock
34412 #: ../src/guestfs.pod:809
34413 msgid ""
34414 "The work around is to use L</guestfs_mount_options> and set the mount "
34415 "options that you actually want to use."
34416 msgstr ""
34417
34418 #. type: =item
34419 #: ../src/guestfs.pod:812
34420 msgid "Read-only should be the default."
34421 msgstr ""
34422
34423 #. type: textblock
34424 #: ../src/guestfs.pod:814
34425 msgid ""
34426 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
34427 "specify I<--rw> if you want to make changes to the image."
34428 msgstr ""
34429
34430 #. type: textblock
34431 #: ../src/guestfs.pod:817
34432 msgid "This would reduce the potential to corrupt live VM images."
34433 msgstr ""
34434
34435 #. type: textblock
34436 #: ../src/guestfs.pod:819
34437 msgid ""
34438 "Note that many filesystems change the disk when you just mount and unmount, "
34439 "even if you didn't perform any writes.  You need to use L</"
34440 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
34441 msgstr ""
34442
34443 #. type: =item
34444 #: ../src/guestfs.pod:823
34445 msgid "guestfish command line is hard to use."
34446 msgstr ""
34447
34448 #. type: textblock
34449 #: ../src/guestfs.pod:825
34450 msgid ""
34451 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
34452 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
34453 "exist, so it fails.  In earlier versions of guestfish the error message was "
34454 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
34455 "we should have used C<guestfish -c command> to run commands."
34456 msgstr ""
34457
34458 #. type: =item
34459 #: ../src/guestfs.pod:832
34460 msgid "guestfish megabyte modifiers don't work right on all commands"
34461 msgstr ""
34462
34463 #. type: textblock
34464 #: ../src/guestfs.pod:834
34465 msgid ""
34466 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
34467 "other modifiers).  What guestfish actually does is to multiply the number "
34468 "part by the modifier part and pass the result to the C API.  However this "
34469 "doesn't work for a few APIs which aren't expecting bytes, but are already "
34470 "expecting some other unit (eg. megabytes)."
34471 msgstr ""
34472
34473 #. type: textblock
34474 #: ../src/guestfs.pod:841
34475 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
34476 msgstr ""
34477
34478 #. type: verbatim
34479 #: ../src/guestfs.pod:843
34480 #, no-wrap
34481 msgid ""
34482 " lvcreate LV VG 100M\n"
34483 "\n"
34484 msgstr ""
34485 " lvcreate LV VG 100M\n"
34486 "\n"
34487
34488 #. type: textblock
34489 #: ../src/guestfs.pod:845
34490 msgid ""
34491 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
34492 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
34493 "megabytes * megabytes) logical volume.  The error message you get from this "
34494 "is also a little obscure."
34495 msgstr ""
34496
34497 #. type: textblock
34498 #: ../src/guestfs.pod:850
34499 msgid ""
34500 "This could be fixed in the generator by specially marking parameters and "
34501 "return values which take bytes or other units."
34502 msgstr ""
34503
34504 #. type: =item
34505 #: ../src/guestfs.pod:853
34506 msgid "Ambiguity between devices and paths"
34507 msgstr ""
34508
34509 #. type: textblock
34510 #: ../src/guestfs.pod:855
34511 msgid ""
34512 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
34513 "sdb2>) and a similar pathname.  A file might just happen to be called "
34514 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
34515 msgstr ""
34516
34517 #. type: textblock
34518 #: ../src/guestfs.pod:860
34519 msgid ""
34520 "In the current API we usually resolve this ambiguity by having two separate "
34521 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
34522 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
34523 "detecting if the path supplied begins with C</dev/>."
34524 msgstr ""
34525
34526 #. type: textblock
34527 #: ../src/guestfs.pod:866
34528 msgid ""
34529 "To avoid both the ambiguity and the need to duplicate some calls, we could "
34530 "make paths/devices into structured names.  One way to do this would be to "
34531 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
34532 "aspect of grub.  Another way would be to use a structured type, equivalent "
34533 "to this OCaml type:"
34534 msgstr ""
34535
34536 #. type: verbatim
34537 #: ../src/guestfs.pod:872
34538 #, no-wrap
34539 msgid ""
34540 " type path = Path of string | Device of int | Partition of int * int\n"
34541 "\n"
34542 msgstr ""
34543
34544 #. type: textblock
34545 #: ../src/guestfs.pod:874
34546 msgid "which would allow you to pass arguments like:"
34547 msgstr ""
34548
34549 #. type: verbatim
34550 #: ../src/guestfs.pod:876
34551 #, no-wrap
34552 msgid ""
34553 " Path \"/foo/bar\"\n"
34554 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
34555 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
34556 " Path \"/dev/sdb2\"    (* not a device *)\n"
34557 "\n"
34558 msgstr ""
34559
34560 #. type: textblock
34561 #: ../src/guestfs.pod:881
34562 msgid ""
34563 "As you can see there are still problems to resolve even with this "
34564 "representation.  Also consider how it might work in guestfish."
34565 msgstr ""
34566
34567 #. type: =head2
34568 #: ../src/guestfs.pod:886
34569 msgid "KEYS AND PASSPHRASES"
34570 msgstr "КЛЮЧІ І ПАРОЛІ"
34571
34572 #. type: textblock
34573 #: ../src/guestfs.pod:888
34574 msgid ""
34575 "Certain libguestfs calls take a parameter that contains sensitive key "
34576 "material, passed in as a C string."
34577 msgstr ""
34578
34579 #. type: textblock
34580 #: ../src/guestfs.pod:891
34581 msgid ""
34582 "In the future we would hope to change the libguestfs implementation so that "
34583 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
34584 "swap.  However this is I<not> done at the moment, because of the complexity "
34585 "of such an implementation."
34586 msgstr ""
34587
34588 #. type: textblock
34589 #: ../src/guestfs.pod:896
34590 msgid ""
34591 "Therefore you should be aware that any key parameter you pass to libguestfs "
34592 "might end up being written out to the swap partition.  If this is a concern, "
34593 "scrub the swap partition or don't use libguestfs on encrypted devices."
34594 msgstr ""
34595
34596 #. type: =head2
34597 #: ../src/guestfs.pod:901
34598 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
34599 msgstr ""
34600
34601 #. type: textblock
34602 #: ../src/guestfs.pod:903
34603 msgid ""
34604 "All high-level libguestfs actions are synchronous.  If you want to use "
34605 "libguestfs asynchronously then you must create a thread."
34606 msgstr ""
34607
34608 #. type: textblock
34609 #: ../src/guestfs.pod:906
34610 msgid ""
34611 "Only use the handle from a single thread.  Either use the handle exclusively "
34612 "from one thread, or provide your own mutex so that two threads cannot issue "
34613 "calls on the same handle at the same time."
34614 msgstr ""
34615
34616 #. type: textblock
34617 #: ../src/guestfs.pod:910
34618 msgid ""
34619 "See the graphical program guestfs-browser for one possible architecture for "
34620 "multithreaded programs using libvirt and libguestfs."
34621 msgstr ""
34622
34623 #. type: =head2
34624 #: ../src/guestfs.pod:913
34625 msgid "PATH"
34626 msgstr "ШЛЯХ"
34627
34628 #. type: textblock
34629 #: ../src/guestfs.pod:915
34630 msgid ""
34631 "Libguestfs needs a supermin appliance, which it finds by looking along an "
34632 "internal path."
34633 msgstr ""
34634
34635 #. type: textblock
34636 #: ../src/guestfs.pod:918
34637 msgid ""
34638 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
34639 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
34640 msgstr ""
34641
34642 #. type: textblock
34643 #: ../src/guestfs.pod:921
34644 msgid ""
34645 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
34646 "to change the directories that libguestfs will search in.  The value is a "
34647 "colon-separated list of paths.  The current directory is I<not> searched "
34648 "unless the path contains an empty element or C<.>.  For example "
34649 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
34650 "then C</usr/lib/guestfs>."
34651 msgstr ""
34652
34653 #. type: =head2
34654 #: ../src/guestfs.pod:928
34655 msgid "QEMU WRAPPERS"
34656 msgstr ""
34657
34658 #. type: textblock
34659 #: ../src/guestfs.pod:930
34660 msgid ""
34661 "If you want to compile your own qemu, run qemu from a non-standard location, "
34662 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
34663 "around qemu."
34664 msgstr ""
34665
34666 #. type: textblock
34667 #: ../src/guestfs.pod:934
34668 msgid ""
34669 "There is one important rule to remember: you I<must C<exec qemu>> as the "
34670 "last command in the shell script (so that qemu replaces the shell and "
34671 "becomes the direct child of the libguestfs-using program).  If you don't do "
34672 "this, then the qemu process won't be cleaned up correctly."
34673 msgstr ""
34674
34675 #. type: textblock
34676 #: ../src/guestfs.pod:939
34677 msgid ""
34678 "Here is an example of a wrapper, where I have built my own copy of qemu from "
34679 "source:"
34680 msgstr ""
34681
34682 #. type: verbatim
34683 #: ../src/guestfs.pod:942
34684 #, no-wrap
34685 msgid ""
34686 " #!/bin/sh -\n"
34687 " qemudir=/home/rjones/d/qemu\n"
34688 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34689 "\n"
34690 msgstr ""
34691 " #!/bin/sh -\n"
34692 " qemudir=/home/rjones/d/qemu\n"
34693 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
34694 "\n"
34695
34696 #. type: textblock
34697 #: ../src/guestfs.pod:946
34698 msgid ""
34699 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
34700 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
34701 "example:"
34702 msgstr ""
34703
34704 #. type: verbatim
34705 #: ../src/guestfs.pod:950
34706 #, no-wrap
34707 msgid ""
34708 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34709 "\n"
34710 msgstr ""
34711 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
34712 "\n"
34713
34714 #. type: textblock
34715 #: ../src/guestfs.pod:952
34716 msgid ""
34717 "Note that libguestfs also calls qemu with the -help and -version options in "
34718 "order to determine features."
34719 msgstr ""
34720
34721 #. type: =head2
34722 #: ../src/guestfs.pod:955
34723 msgid "ATTACHING TO RUNNING DAEMONS"
34724 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
34725
34726 #. type: textblock
34727 #: ../src/guestfs.pod:957
34728 msgid ""
34729 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
34730 "babies.  Use with caution."
34731 msgstr ""
34732
34733 #. type: textblock
34734 #: ../src/guestfs.pod:960
34735 msgid ""
34736 "I<Note (2):> This section explains how to attach to a running daemon from a "
34737 "low level perspective.  For most users, simply using virt tools such as "
34738 "L<guestfish(1)> with the I<--live> option will \"just work\"."
34739 msgstr ""
34740
34741 #. type: =head3
34742 #: ../src/guestfs.pod:964
34743 msgid "Using guestfs_set_attach_method"
34744 msgstr "За допомогою guestfs_set_attach_method"
34745
34746 #. type: textblock
34747 #: ../src/guestfs.pod:966
34748 msgid ""
34749 "By calling L</guestfs_set_attach_method> you can change how the library "
34750 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
34751 "ARCHITECTURE> for some background)."
34752 msgstr ""
34753
34754 #. type: textblock
34755 #: ../src/guestfs.pod:970
34756 msgid ""
34757 "The normal attach method is C<appliance>, where a small appliance is created "
34758 "containing the daemon, and then the library connects to this."
34759 msgstr ""
34760
34761 #. type: textblock
34762 #: ../src/guestfs.pod:973
34763 msgid ""
34764 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
34765 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
34766 "daemon over the Unix domain socket."
34767 msgstr ""
34768
34769 #. type: textblock
34770 #: ../src/guestfs.pod:977
34771 msgid ""
34772 "The normal use for this is to connect to a running virtual machine that "
34773 "contains a C<guestfsd> daemon, and send commands so you can read and write "
34774 "files inside the live virtual machine."
34775 msgstr ""
34776
34777 #. type: =head3
34778 #: ../src/guestfs.pod:981
34779 msgid "Using guestfs_add_domain with live flag"
34780 msgstr "За допомогою guestfs_add_domain з прапорцем live"
34781
34782 #. type: textblock
34783 #: ../src/guestfs.pod:983
34784 msgid ""
34785 "L</guestfs_add_domain> provides some help for getting the correct attach "
34786 "method.  If you pass the C<live> option to this function, then (if the "
34787 "virtual machine is running) it will examine the libvirt XML looking for a "
34788 "virtio-serial channel to connect to:"
34789 msgstr ""
34790
34791 #. type: verbatim
34792 #: ../src/guestfs.pod:989
34793 #, no-wrap
34794 msgid ""
34795 " <domain>\n"
34796 "   ...\n"
34797 "   <devices>\n"
34798 "     ...\n"
34799 "     <channel type='unix'>\n"
34800 "       <source mode='bind' path='/path/to/socket'/>\n"
34801 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34802 "     </channel>\n"
34803 "     ...\n"
34804 "   </devices>\n"
34805 " </domain>\n"
34806 "\n"
34807 msgstr ""
34808 " <domain>\n"
34809 "   ...\n"
34810 "   <devices>\n"
34811 "     ...\n"
34812 "     <channel type='unix'>\n"
34813 "       <source mode='bind' path='/path/to/socket'/>\n"
34814 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
34815 "     </channel>\n"
34816 "     ...\n"
34817 "   </devices>\n"
34818 " </domain>\n"
34819 "\n"
34820
34821 #. type: textblock
34822 #: ../src/guestfs.pod:1001
34823 msgid ""
34824 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
34825 "method to C<unix:/path/to/socket>."
34826 msgstr ""
34827
34828 #. type: textblock
34829 #: ../src/guestfs.pod:1004
34830 msgid ""
34831 "Some of the libguestfs tools (including guestfish) support a I<--live> "
34832 "option which is passed through to L</guestfs_add_domain> thus allowing you "
34833 "to attach to and modify live virtual machines."
34834 msgstr ""
34835
34836 #. type: textblock
34837 #: ../src/guestfs.pod:1008
34838 msgid ""
34839 "The virtual machine needs to have been set up beforehand so that it has the "
34840 "virtio-serial channel and so that guestfsd is running inside it."
34841 msgstr ""
34842
34843 #. type: =head2
34844 #: ../src/guestfs.pod:1012
34845 msgid "ABI GUARANTEE"
34846 msgstr "ГАРАНТІЯ ЩОДО ABI"
34847
34848 #. type: textblock
34849 #: ../src/guestfs.pod:1014
34850 msgid ""
34851 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
34852 "actions as outlined in this section.  Although we will deprecate some "
34853 "actions, for example if they get replaced by newer calls, we will keep the "
34854 "old actions forever.  This allows you the developer to program in confidence "
34855 "against the libguestfs API."
34856 msgstr ""
34857
34858 #. type: =head2
34859 #: ../src/guestfs.pod:1020
34860 msgid "BLOCK DEVICE NAMING"
34861 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
34862
34863 #. type: textblock
34864 #: ../src/guestfs.pod:1022
34865 msgid ""
34866 "In the kernel there is now quite a profusion of schemata for naming block "
34867 "devices (in this context, by I<block device> I mean a physical or virtual "
34868 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
34869 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
34870 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
34871 "for the old IDE driver (particularly for SATA devices) those devices also "
34872 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
34873 "paravirtualized drivers.  This has created several different naming systems, "
34874 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
34875 msgstr ""
34876
34877 #. type: textblock
34878 #: ../src/guestfs.pod:1034
34879 msgid ""
34880 "As discussed above, libguestfs uses a qemu appliance running an embedded "
34881 "Linux kernel to access block devices.  We can run a variety of appliances "
34882 "based on a variety of Linux kernels."
34883 msgstr ""
34884
34885 #. type: textblock
34886 #: ../src/guestfs.pod:1038
34887 msgid ""
34888 "This causes a problem for libguestfs because many API calls use device or "
34889 "partition names.  Working scripts and the recipe (example) scripts that we "
34890 "make available over the internet could fail if the naming scheme changes."
34891 msgstr ""
34892
34893 #. type: textblock
34894 #: ../src/guestfs.pod:1043
34895 msgid ""
34896 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
34897 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
34898 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
34899 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
34900 msgstr ""
34901
34902 #. type: textblock
34903 #: ../src/guestfs.pod:1049
34904 msgid ""
34905 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
34906 "L</guestfs_list_partitions> and similar calls return the true names of the "
34907 "devices and partitions as known to the appliance."
34908 msgstr ""
34909
34910 #. type: =head3
34911 #: ../src/guestfs.pod:1054
34912 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
34913 msgstr ""
34914
34915 #. type: textblock
34916 #: ../src/guestfs.pod:1056
34917 msgid ""
34918 "Usually this translation is transparent.  However in some (very rare)  cases "
34919 "you may need to know the exact algorithm.  Such cases include where you use "
34920 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
34921 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
34922 msgstr ""
34923
34924 #. type: textblock
34925 #: ../src/guestfs.pod:1062
34926 msgid ""
34927 "The algorithm is applied only to I<parameters> which are known to be either "
34928 "device or partition names.  Return values from functions such as L</"
34929 "guestfs_list_devices> are never changed."
34930 msgstr ""
34931
34932 #. type: textblock
34933 #: ../src/guestfs.pod:1070
34934 msgid "Is the string a parameter which is a device or partition name?"
34935 msgstr ""
34936
34937 #. type: textblock
34938 #: ../src/guestfs.pod:1074
34939 msgid "Does the string begin with C</dev/sd>?"
34940 msgstr "Чи починається рядок з C</dev/sd>?"
34941
34942 #. type: textblock
34943 #: ../src/guestfs.pod:1078
34944 msgid ""
34945 "Does the named device exist? If so, we use that device.  However if I<not> "
34946 "then we continue with this algorithm."
34947 msgstr ""
34948
34949 #. type: textblock
34950 #: ../src/guestfs.pod:1083
34951 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
34952 msgstr ""
34953
34954 #. type: textblock
34955 #: ../src/guestfs.pod:1085
34956 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
34957 msgstr ""
34958
34959 #. type: textblock
34960 #: ../src/guestfs.pod:1087
34961 msgid "If that named device exists, use it.  If not, continue."
34962 msgstr ""
34963
34964 #. type: textblock
34965 #: ../src/guestfs.pod:1091
34966 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
34967 msgstr ""
34968
34969 #. type: textblock
34970 #: ../src/guestfs.pod:1093
34971 msgid "If that named device exists, use it.  If not, return an error."
34972 msgstr ""
34973
34974 #. type: =head3
34975 #: ../src/guestfs.pod:1097
34976 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
34977 msgstr ""
34978
34979 #. type: textblock
34980 #: ../src/guestfs.pod:1099
34981 msgid ""
34982 "Although the standard naming scheme and automatic translation is useful for "
34983 "simple programs and guestfish scripts, for larger programs it is best not to "
34984 "rely on this mechanism."
34985 msgstr ""
34986
34987 #. type: textblock
34988 #: ../src/guestfs.pod:1103
34989 msgid ""
34990 "Where possible for maximum future portability programs using libguestfs "
34991 "should use these future-proof techniques:"
34992 msgstr ""
34993
34994 #. type: textblock
34995 #: ../src/guestfs.pod:1110
34996 msgid ""
34997 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
34998 "device names, and then use those names directly."
34999 msgstr ""
35000
35001 #. type: textblock
35002 #: ../src/guestfs.pod:1113
35003 msgid ""
35004 "Since those device names exist by definition, they will never be translated."
35005 msgstr ""
35006
35007 #. type: textblock
35008 #: ../src/guestfs.pod:1118
35009 msgid ""
35010 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
35011 "filesystem labels."
35012 msgstr ""
35013
35014 #. type: =head1
35015 #: ../src/guestfs.pod:1123
35016 msgid "SECURITY"
35017 msgstr "БЕЗПЕКА"
35018
35019 #. type: textblock
35020 #: ../src/guestfs.pod:1125
35021 msgid ""
35022 "This section discusses security implications of using libguestfs, "
35023 "particularly with untrusted or malicious guests or disk images."
35024 msgstr ""
35025
35026 #. type: =head2
35027 #: ../src/guestfs.pod:1128
35028 msgid "GENERAL SECURITY CONSIDERATIONS"
35029 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
35030
35031 #. type: textblock
35032 #: ../src/guestfs.pod:1130
35033 msgid ""
35034 "Be careful with any files or data that you download from a guest (by "
35035 "\"download\" we mean not just the L</guestfs_download> command but any "
35036 "command that reads files, filenames, directories or anything else from a "
35037 "disk image).  An attacker could manipulate the data to fool your program "
35038 "into doing the wrong thing.  Consider cases such as:"
35039 msgstr ""
35040
35041 #. type: textblock
35042 #: ../src/guestfs.pod:1140
35043 msgid "the data (file etc) not being present"
35044 msgstr ""
35045
35046 #. type: textblock
35047 #: ../src/guestfs.pod:1144
35048 msgid "being present but empty"
35049 msgstr ""
35050
35051 #. type: textblock
35052 #: ../src/guestfs.pod:1148
35053 msgid "being much larger than normal"
35054 msgstr ""
35055
35056 #. type: textblock
35057 #: ../src/guestfs.pod:1152
35058 msgid "containing arbitrary 8 bit data"
35059 msgstr ""
35060
35061 #. type: textblock
35062 #: ../src/guestfs.pod:1156
35063 msgid "being in an unexpected character encoding"
35064 msgstr ""
35065
35066 #. type: textblock
35067 #: ../src/guestfs.pod:1160
35068 msgid "containing homoglyphs."
35069 msgstr ""
35070
35071 #. type: =head2
35072 #: ../src/guestfs.pod:1164
35073 msgid "SECURITY OF MOUNTING FILESYSTEMS"
35074 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
35075
35076 #. type: textblock
35077 #: ../src/guestfs.pod:1166
35078 msgid ""
35079 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
35080 "(VFS) module can sometimes be escalated into exploits by deliberately "
35081 "creating a malicious, malformed filesystem.  These exploits are very severe "
35082 "for two reasons.  Firstly there are very many filesystem drivers in the "
35083 "kernel, and many of them are infrequently used and not much developer "
35084 "attention has been paid to the code.  Linux userspace helps potential "
35085 "crackers by detecting the filesystem type and automatically choosing the "
35086 "right VFS driver, even if that filesystem type is obscure or unexpected for "
35087 "the administrator.  Secondly, a kernel-level exploit is like a local root "
35088 "exploit (worse in some ways), giving immediate and total access to the "
35089 "system right down to the hardware level."
35090 msgstr ""
35091
35092 #. type: textblock
35093 #: ../src/guestfs.pod:1179
35094 msgid ""
35095 "That explains why you should never mount a filesystem from an untrusted "
35096 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
35097 "inside a qemu virtual machine, usually running as a non-root user.  The "
35098 "attacker would need to write a filesystem which first exploited the kernel, "
35099 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
35100 "the libguestfs protocol, and finally to be as serious as the host kernel "
35101 "exploit it would need to escalate its privileges to root.  This multi-step "
35102 "escalation, performed by a static piece of data, is thought to be extremely "
35103 "hard to do, although we never say 'never' about security issues."
35104 msgstr ""
35105
35106 #. type: textblock
35107 #: ../src/guestfs.pod:1190
35108 msgid ""
35109 "In any case callers can reduce the attack surface by forcing the filesystem "
35110 "type when mounting (use L</guestfs_mount_vfs>)."
35111 msgstr ""
35112
35113 #. type: =head2
35114 #: ../src/guestfs.pod:1193
35115 msgid "PROTOCOL SECURITY"
35116 msgstr "ЗАХИСТ ПРОТОКОЛУ"
35117
35118 #. type: textblock
35119 #: ../src/guestfs.pod:1195
35120 msgid ""
35121 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
35122 "defined upper message size.  However a program that uses libguestfs must "
35123 "also take care - for example you can write a program that downloads a binary "
35124 "from a disk image and executes it locally, and no amount of protocol "
35125 "security will save you from the consequences."
35126 msgstr ""
35127
35128 #. type: =head2
35129 #: ../src/guestfs.pod:1201
35130 msgid "INSPECTION SECURITY"
35131 msgstr ""
35132
35133 #. type: textblock
35134 #: ../src/guestfs.pod:1203
35135 msgid ""
35136 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
35137 "directly from the guest, and these could contain any 8 bit data.  Callers "
35138 "should be careful to escape these before printing them to a structured file "
35139 "(for example, use HTML escaping if creating a web page)."
35140 msgstr ""
35141
35142 #. type: textblock
35143 #: ../src/guestfs.pod:1209
35144 msgid ""
35145 "Guest configuration may be altered in unusual ways by the administrator of "
35146 "the virtual machine, and may not reflect reality (particularly for untrusted "
35147 "or actively malicious guests).  For example we parse the hostname from "
35148 "configuration files like C</etc/sysconfig/network> that we find in the "
35149 "guest, but the guest administrator can easily manipulate these files to "
35150 "provide the wrong hostname."
35151 msgstr ""
35152
35153 #. type: textblock
35154 #: ../src/guestfs.pod:1217
35155 msgid ""
35156 "The inspection API parses guest configuration using two external libraries: "
35157 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
35158 "designed to be robust in the face of malicious data, although denial of "
35159 "service attacks are still possible, for example with oversized configuration "
35160 "files."
35161 msgstr ""
35162
35163 #. type: =head2
35164 #: ../src/guestfs.pod:1223
35165 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
35166 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
35167
35168 #. type: textblock
35169 #: ../src/guestfs.pod:1225
35170 msgid ""
35171 "Be very cautious about running commands from the guest.  By running a "
35172 "command in the guest, you are giving CPU time to a binary that you do not "
35173 "control, under the same user account as the library, albeit wrapped in qemu "
35174 "virtualization.  More information and alternatives can be found in the "
35175 "section L</RUNNING COMMANDS>."
35176 msgstr ""
35177
35178 #. type: =head2
35179 #: ../src/guestfs.pod:1231
35180 msgid "CVE-2010-3851"
35181 msgstr "CVE-2010-3851"
35182
35183 #. type: textblock
35184 #: ../src/guestfs.pod:1233
35185 msgid "https://bugzilla.redhat.com/642934"
35186 msgstr "https://bugzilla.redhat.com/642934"
35187
35188 #. type: textblock
35189 #: ../src/guestfs.pod:1235
35190 msgid ""
35191 "This security bug concerns the automatic disk format detection that qemu "
35192 "does on disk images."
35193 msgstr ""
35194
35195 #. type: textblock
35196 #: ../src/guestfs.pod:1238
35197 msgid ""
35198 "A raw disk image is just the raw bytes, there is no header.  Other disk "
35199 "images like qcow2 contain a special header.  Qemu deals with this by looking "
35200 "for one of the known headers, and if none is found then assuming the disk "
35201 "image must be raw."
35202 msgstr ""
35203
35204 #. type: textblock
35205 #: ../src/guestfs.pod:1243
35206 msgid ""
35207 "This allows a guest which has been given a raw disk image to write some "
35208 "other header.  At next boot (or when the disk image is accessed by "
35209 "libguestfs) qemu would do autodetection and think the disk image format was, "
35210 "say, qcow2 based on the header written by the guest."
35211 msgstr ""
35212
35213 #. type: textblock
35214 #: ../src/guestfs.pod:1248
35215 msgid ""
35216 "This in itself would not be a problem, but qcow2 offers many features, one "
35217 "of which is to allow a disk image to refer to another image (called the "
35218 "\"backing disk\").  It does this by placing the path to the backing disk "
35219 "into the qcow2 header.  This path is not validated and could point to any "
35220 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
35221 "\"holes\" in the qcow2 disk image, which of course is completely under the "
35222 "control of the attacker."
35223 msgstr ""
35224
35225 #. type: textblock
35226 #: ../src/guestfs.pod:1256
35227 msgid ""
35228 "In libguestfs this is rather hard to exploit except under two circumstances:"
35229 msgstr ""
35230
35231 #. type: textblock
35232 #: ../src/guestfs.pod:1263
35233 msgid "You have enabled the network or have opened the disk in write mode."
35234 msgstr ""
35235
35236 #. type: textblock
35237 #: ../src/guestfs.pod:1267
35238 msgid ""
35239 "You are also running untrusted code from the guest (see L</RUNNING "
35240 "COMMANDS>)."
35241 msgstr ""
35242
35243 #. type: textblock
35244 #: ../src/guestfs.pod:1272
35245 msgid ""
35246 "The way to avoid this is to specify the expected disk format when adding "
35247 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
35248 "should always do this if the disk is raw format, and it's a good idea for "
35249 "other cases too."
35250 msgstr ""
35251
35252 #. type: textblock
35253 #: ../src/guestfs.pod:1277
35254 msgid ""
35255 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
35256 "format is fetched from libvirt and passed through."
35257 msgstr ""
35258
35259 #. type: textblock
35260 #: ../src/guestfs.pod:1280
35261 msgid ""
35262 "For libguestfs tools, use the I<--format> command line parameter as "
35263 "appropriate."
35264 msgstr ""
35265
35266 #. type: =head1
35267 #: ../src/guestfs.pod:1283
35268 msgid "CONNECTION MANAGEMENT"
35269 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
35270
35271 #. type: =head2
35272 #: ../src/guestfs.pod:1285
35273 msgid "guestfs_h *"
35274 msgstr "guestfs_h *"
35275
35276 #. type: textblock
35277 #: ../src/guestfs.pod:1287
35278 msgid ""
35279 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
35280 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
35281 "handle and release all resources used."
35282 msgstr ""
35283
35284 #. type: textblock
35285 #: ../src/guestfs.pod:1291
35286 msgid ""
35287 "For information on using multiple handles and threads, see the section L</"
35288 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
35289 msgstr ""
35290
35291 #. type: =head2
35292 #: ../src/guestfs.pod:1294
35293 msgid "guestfs_create"
35294 msgstr "guestfs_create"
35295
35296 #. type: verbatim
35297 #: ../src/guestfs.pod:1296
35298 #, no-wrap
35299 msgid ""
35300 " guestfs_h *guestfs_create (void);\n"
35301 "\n"
35302 msgstr ""
35303 " guestfs_h *guestfs_create (void);\n"
35304 "\n"
35305
35306 #. type: textblock
35307 #: ../src/guestfs.pod:1298
35308 msgid "Create a connection handle."
35309 msgstr "Створити дескриптор з’єднання."
35310
35311 #. type: textblock
35312 #: ../src/guestfs.pod:1300
35313 msgid ""
35314 "On success this returns a non-NULL pointer to a handle.  On error it returns "
35315 "NULL."
35316 msgstr ""
35317
35318 #. type: textblock
35319 #: ../src/guestfs.pod:1303
35320 msgid ""
35321 "You have to \"configure\" the handle after creating it.  This includes "
35322 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
35323 "handle at least once."
35324 msgstr ""
35325
35326 #. type: textblock
35327 #: ../src/guestfs.pod:1307
35328 msgid "After configuring the handle, you have to call L</guestfs_launch>."
35329 msgstr ""
35330
35331 #. type: textblock
35332 #: ../src/guestfs.pod:1309
35333 msgid ""
35334 "You may also want to configure error handling for the handle.  See the L</"
35335 "ERROR HANDLING> section below."
35336 msgstr ""
35337
35338 #. type: =head2
35339 #: ../src/guestfs.pod:1312
35340 msgid "guestfs_close"
35341 msgstr "guestfs_close"
35342
35343 #. type: verbatim
35344 #: ../src/guestfs.pod:1314
35345 #, no-wrap
35346 msgid ""
35347 " void guestfs_close (guestfs_h *g);\n"
35348 "\n"
35349 msgstr ""
35350 " void guestfs_close (guestfs_h *g);\n"
35351 "\n"
35352
35353 #. type: textblock
35354 #: ../src/guestfs.pod:1316
35355 msgid "This closes the connection handle and frees up all resources used."
35356 msgstr ""
35357
35358 #. type: textblock
35359 #: ../src/guestfs.pod:1318
35360 msgid ""
35361 "If autosync was set on the handle and the handle was launched, then this "
35362 "implicitly calls various functions to unmount filesystems and sync the "
35363 "disk.  See L</guestfs_set_autosync> for more details."
35364 msgstr ""
35365
35366 #. type: textblock
35367 #: ../src/guestfs.pod:1322
35368 msgid "If a close callback was set on the handle, then it is called."
35369 msgstr ""
35370
35371 #. type: =head1
35372 #: ../src/guestfs.pod:1324
35373 msgid "ERROR HANDLING"
35374 msgstr "ОБРОБКА ПОМИЛОК"
35375
35376 #. type: textblock
35377 #: ../src/guestfs.pod:1326
35378 msgid ""
35379 "API functions can return errors.  For example, almost all functions that "
35380 "return C<int> will return C<-1> to indicate an error."
35381 msgstr ""
35382
35383 #. type: textblock
35384 #: ../src/guestfs.pod:1329
35385 msgid ""
35386 "Additional information is available for errors: an error message string and "
35387 "optionally an error number (errno) if the thing that failed was a system "
35388 "call."
35389 msgstr ""
35390
35391 #. type: textblock
35392 #: ../src/guestfs.pod:1333
35393 msgid ""
35394 "You can get at the additional information about the last error on the handle "
35395 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
35396 "up an error handler with L</guestfs_set_error_handler>."
35397 msgstr ""
35398
35399 #. type: textblock
35400 #: ../src/guestfs.pod:1338
35401 msgid ""
35402 "When the handle is created, a default error handler is installed which "
35403 "prints the error message string to C<stderr>.  For small short-running "
35404 "command line programs it is sufficient to do:"
35405 msgstr ""
35406
35407 #. type: verbatim
35408 #: ../src/guestfs.pod:1342
35409 #, no-wrap
35410 msgid ""
35411 " if (guestfs_launch (g) == -1)\n"
35412 "   exit (EXIT_FAILURE);\n"
35413 "\n"
35414 msgstr ""
35415 " if (guestfs_launch (g) == -1)\n"
35416 "   exit (EXIT_FAILURE);\n"
35417 "\n"
35418
35419 #. type: textblock
35420 #: ../src/guestfs.pod:1345
35421 msgid ""
35422 "since the default error handler will ensure that an error message has been "
35423 "printed to C<stderr> before the program exits."
35424 msgstr ""
35425
35426 #. type: textblock
35427 #: ../src/guestfs.pod:1348
35428 msgid ""
35429 "For other programs the caller will almost certainly want to install an "
35430 "alternate error handler or do error handling in-line like this:"
35431 msgstr ""
35432
35433 #. type: verbatim
35434 #: ../src/guestfs.pod:1351
35435 #, no-wrap
35436 msgid ""
35437 " /* This disables the default behaviour of printing errors\n"
35438 "    on stderr. */\n"
35439 " guestfs_set_error_handler (g, NULL, NULL);\n"
35440 " \n"
35441 msgstr ""
35442
35443 #. type: verbatim
35444 #: ../src/guestfs.pod:1355
35445 #, fuzzy, no-wrap
35446 #| msgid ""
35447 #| " if (guestfs_launch (g) == -1) {\n"
35448 #| "   /* Examine the error message and print it etc. */\n"
35449 #| "   char *msg = guestfs_last_error (g);\n"
35450 #| "   int errnum = guestfs_last_errno (g);\n"
35451 #| "   fprintf (stderr, \"%s\\n\", msg);\n"
35452 #| "   /* ... */\n"
35453 #| "  }\n"
35454 #| "\n"
35455 msgid ""
35456 " if (guestfs_launch (g) == -1) {\n"
35457 "   /* Examine the error message and print it etc. */\n"
35458 "   char *msg = guestfs_last_error (g);\n"
35459 "   int errnum = guestfs_last_errno (g);\n"
35460 "   fprintf (stderr, \"%s\", msg);\n"
35461 "   if (errnum != 0)\n"
35462 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
35463 "   fprintf (stderr, \"\\n\");\n"
35464 "   /* ... */\n"
35465 " }\n"
35466 "\n"
35467 msgstr ""
35468 " if (guestfs_launch (g) == -1) {\n"
35469 "   /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
35470 "   char *msg = guestfs_last_error (g);\n"
35471 "   int errnum = guestfs_last_errno (g);\n"
35472 "   fprintf (stderr, \"%s\\n\", msg);\n"
35473 "   /* ... */\n"
35474 "  }\n"
35475 "\n"
35476
35477 #. type: textblock
35478 #: ../src/guestfs.pod:1366
35479 msgid ""
35480 "Out of memory errors are handled differently.  The default action is to call "
35481 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
35482 "guestfs_set_out_of_memory_handler>."
35483 msgstr ""
35484
35485 #. type: textblock
35486 #: ../src/guestfs.pod:1370
35487 msgid ""
35488 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
35489 "because there is no handle if this happens there is no way to get additional "
35490 "error information.  However L</guestfs_create> is supposed to be a "
35491 "lightweight operation which can only fail because of insufficient memory (it "
35492 "returns NULL in this case)."
35493 msgstr ""
35494
35495 #. type: =head2
35496 #: ../src/guestfs.pod:1376
35497 msgid "guestfs_last_error"
35498 msgstr "guestfs_last_error"
35499
35500 #. type: verbatim
35501 #: ../src/guestfs.pod:1378
35502 #, no-wrap
35503 msgid ""
35504 " const char *guestfs_last_error (guestfs_h *g);\n"
35505 "\n"
35506 msgstr ""
35507 " const char *guestfs_last_error (guestfs_h *g);\n"
35508 "\n"
35509
35510 #. type: textblock
35511 #: ../src/guestfs.pod:1380
35512 msgid ""
35513 "This returns the last error message that happened on C<g>.  If there has not "
35514 "been an error since the handle was created, then this returns C<NULL>."
35515 msgstr ""
35516
35517 #. type: textblock
35518 #: ../src/guestfs.pod:1384
35519 msgid ""
35520 "The lifetime of the returned string is until the next error occurs, or L</"
35521 "guestfs_close> is called."
35522 msgstr ""
35523
35524 #. type: =head2
35525 #: ../src/guestfs.pod:1387
35526 msgid "guestfs_last_errno"
35527 msgstr "guestfs_last_errno"
35528
35529 #. type: verbatim
35530 #: ../src/guestfs.pod:1389
35531 #, no-wrap
35532 msgid ""
35533 " int guestfs_last_errno (guestfs_h *g);\n"
35534 "\n"
35535 msgstr ""
35536 " int guestfs_last_errno (guestfs_h *g);\n"
35537 "\n"
35538
35539 #. type: textblock
35540 #: ../src/guestfs.pod:1391
35541 msgid "This returns the last error number (errno) that happened on C<g>."
35542 msgstr ""
35543
35544 #. type: textblock
35545 #: ../src/guestfs.pod:1393
35546 msgid "If successful, an errno integer not equal to zero is returned."
35547 msgstr ""
35548
35549 #. type: textblock
35550 #: ../src/guestfs.pod:1395
35551 msgid ""
35552 "If no error, this returns 0.  This call can return 0 in three situations:"
35553 msgstr ""
35554
35555 #. type: textblock
35556 #: ../src/guestfs.pod:1402
35557 msgid "There has not been any error on the handle."
35558 msgstr ""
35559
35560 #. type: textblock
35561 #: ../src/guestfs.pod:1406
35562 msgid ""
35563 "There has been an error but the errno was meaningless.  This corresponds to "
35564 "the case where the error did not come from a failed system call, but for "
35565 "some other reason."
35566 msgstr ""
35567
35568 #. type: textblock
35569 #: ../src/guestfs.pod:1412
35570 msgid ""
35571 "There was an error from a failed system call, but for some reason the errno "
35572 "was not captured and returned.  This usually indicates a bug in libguestfs."
35573 msgstr ""
35574
35575 #. type: textblock
35576 #: ../src/guestfs.pod:1418
35577 msgid ""
35578 "Libguestfs tries to convert the errno from inside the applicance into a "
35579 "corresponding errno for the caller (not entirely trivial: the appliance "
35580 "might be running a completely different operating system from the library "
35581 "and error numbers are not standardized across Un*xen).  If this could not be "
35582 "done, then the error is translated to C<EINVAL>.  In practice this should "
35583 "only happen in very rare circumstances."
35584 msgstr ""
35585
35586 #. type: =head2
35587 #: ../src/guestfs.pod:1426
35588 msgid "guestfs_set_error_handler"
35589 msgstr "guestfs_set_error_handler"
35590
35591 #. type: verbatim
35592 #: ../src/guestfs.pod:1428
35593 #, no-wrap
35594 msgid ""
35595 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35596 "                                           void *opaque,\n"
35597 "                                           const char *msg);\n"
35598 " void guestfs_set_error_handler (guestfs_h *g,\n"
35599 "                                 guestfs_error_handler_cb cb,\n"
35600 "                                 void *opaque);\n"
35601 "\n"
35602 msgstr ""
35603 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
35604 "                                           void *opaque,\n"
35605 "                                           const char *msg);\n"
35606 " void guestfs_set_error_handler (guestfs_h *g,\n"
35607 "                                 guestfs_error_handler_cb cb,\n"
35608 "                                 void *opaque);\n"
35609 "\n"
35610
35611 #. type: textblock
35612 #: ../src/guestfs.pod:1435
35613 msgid ""
35614 "The callback C<cb> will be called if there is an error.  The parameters "
35615 "passed to the callback are an opaque data pointer and the error message "
35616 "string."
35617 msgstr ""
35618
35619 #. type: textblock
35620 #: ../src/guestfs.pod:1439
35621 msgid ""
35622 "C<errno> is not passed to the callback.  To get that the callback must call "
35623 "L</guestfs_last_errno>."
35624 msgstr ""
35625
35626 #. type: textblock
35627 #: ../src/guestfs.pod:1442
35628 msgid ""
35629 "Note that the message string C<msg> is freed as soon as the callback "
35630 "function returns, so if you want to stash it somewhere you must make your "
35631 "own copy."
35632 msgstr ""
35633
35634 #. type: textblock
35635 #: ../src/guestfs.pod:1446
35636 msgid "The default handler prints messages on C<stderr>."
35637 msgstr ""
35638
35639 #. type: textblock
35640 #: ../src/guestfs.pod:1448
35641 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
35642 msgstr ""
35643
35644 #. type: =head2
35645 #: ../src/guestfs.pod:1450
35646 msgid "guestfs_get_error_handler"
35647 msgstr "guestfs_get_error_handler"
35648
35649 #. type: verbatim
35650 #: ../src/guestfs.pod:1452
35651 #, no-wrap
35652 msgid ""
35653 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35654 "                                                     void **opaque_rtn);\n"
35655 "\n"
35656 msgstr ""
35657 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
35658 "                                                     void **opaque_rtn);\n"
35659 "\n"
35660
35661 #. type: textblock
35662 #: ../src/guestfs.pod:1455
35663 msgid "Returns the current error handler callback."
35664 msgstr ""
35665
35666 #. type: =head2
35667 #: ../src/guestfs.pod:1457
35668 msgid "guestfs_set_out_of_memory_handler"
35669 msgstr "guestfs_set_out_of_memory_handler"
35670
35671 #. type: verbatim
35672 #: ../src/guestfs.pod:1459
35673 #, fuzzy, no-wrap
35674 #| msgid ""
35675 #| " typedef void (*guestfs_abort_cb) (void);\n"
35676 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35677 #| "                                        guestfs_abort_cb);\n"
35678 #| "\n"
35679 msgid ""
35680 " typedef void (*guestfs_abort_cb) (void);\n"
35681 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35682 "                                         guestfs_abort_cb);\n"
35683 "\n"
35684 msgstr ""
35685 " typedef void (*guestfs_abort_cb) (void);\n"
35686 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
35687 "                                        guestfs_abort_cb);\n"
35688 "\n"
35689
35690 #. type: textblock
35691 #: ../src/guestfs.pod:1463
35692 msgid ""
35693 "The callback C<cb> will be called if there is an out of memory situation.  "
35694 "I<Note this callback must not return>."
35695 msgstr ""
35696
35697 #. type: textblock
35698 #: ../src/guestfs.pod:1466
35699 msgid "The default is to call L<abort(3)>."
35700 msgstr ""
35701
35702 #. type: textblock
35703 #: ../src/guestfs.pod:1468
35704 msgid ""
35705 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
35706 msgstr ""
35707
35708 #. type: =head2
35709 #: ../src/guestfs.pod:1471
35710 msgid "guestfs_get_out_of_memory_handler"
35711 msgstr "guestfs_get_out_of_memory_handler"
35712
35713 #. type: verbatim
35714 #: ../src/guestfs.pod:1473
35715 #, no-wrap
35716 msgid ""
35717 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35718 "\n"
35719 msgstr ""
35720 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
35721 "\n"
35722
35723 #. type: textblock
35724 #: ../src/guestfs.pod:1475
35725 msgid "This returns the current out of memory handler."
35726 msgstr ""
35727
35728 #. type: =head1
35729 #: ../src/guestfs.pod:1477
35730 msgid "API CALLS"
35731 msgstr "ВИКЛИКИ API"
35732
35733 #. type: =head1
35734 #: ../src/guestfs.pod:1481
35735 msgid "STRUCTURES"
35736 msgstr "СТРУКТУРИ"
35737
35738 #. type: textblock
35739 #: ../src/guestfs.pod:1483
35740 msgid "@STRUCTS@"
35741 msgstr "@STRUCTS@"
35742
35743 #. type: =head1
35744 #: ../src/guestfs.pod:1485
35745 msgid "AVAILABILITY"
35746 msgstr "ДОСТУПНІСТЬ"
35747
35748 #. type: =head2
35749 #: ../src/guestfs.pod:1487
35750 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
35751 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
35752
35753 #. type: textblock
35754 #: ../src/guestfs.pod:1489
35755 msgid ""
35756 "Using L</guestfs_available> you can test availability of the following "
35757 "groups of functions.  This test queries the appliance to see if the "
35758 "appliance you are currently using supports the functionality."
35759 msgstr ""
35760
35761 #. type: textblock
35762 #: ../src/guestfs.pod:1494
35763 msgid "@AVAILABILITY@"
35764 msgstr "@AVAILABILITY@"
35765
35766 #. type: =head2
35767 #: ../src/guestfs.pod:1496
35768 msgid "GUESTFISH supported COMMAND"
35769 msgstr ""
35770
35771 #. type: textblock
35772 #: ../src/guestfs.pod:1498
35773 msgid ""
35774 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
35775 "prints out the available groups and whether they are supported by this build "
35776 "of libguestfs.  Note however that you have to do C<run> first."
35777 msgstr ""
35778
35779 #. type: =head2
35780 #: ../src/guestfs.pod:1503
35781 msgid "SINGLE CALLS AT COMPILE TIME"
35782 msgstr ""
35783
35784 #. type: textblock
35785 #: ../src/guestfs.pod:1505
35786 msgid ""
35787 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
35788 "function, such as:"
35789 msgstr ""
35790
35791 #. type: verbatim
35792 #: ../src/guestfs.pod:1508
35793 #, no-wrap
35794 msgid ""
35795 " #define LIBGUESTFS_HAVE_DD 1\n"
35796 "\n"
35797 msgstr ""
35798 " #define LIBGUESTFS_HAVE_DD 1\n"
35799 "\n"
35800
35801 #. type: textblock
35802 #: ../src/guestfs.pod:1510
35803 msgid "if L</guestfs_dd> is available."
35804 msgstr ""
35805
35806 #. type: textblock
35807 #: ../src/guestfs.pod:1512
35808 msgid ""
35809 "Before version 1.5.8, if you needed to test whether a single libguestfs "
35810 "function is available at compile time, we recommended using build tools such "
35811 "as autoconf or cmake.  For example in autotools you could use:"
35812 msgstr ""
35813
35814 #. type: verbatim
35815 #: ../src/guestfs.pod:1517
35816 #, no-wrap
35817 msgid ""
35818 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35819 " AC_CHECK_FUNCS([guestfs_dd])\n"
35820 "\n"
35821 msgstr ""
35822 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
35823 " AC_CHECK_FUNCS([guestfs_dd])\n"
35824 "\n"
35825
35826 #. type: textblock
35827 #: ../src/guestfs.pod:1520
35828 msgid ""
35829 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
35830 "in your program."
35831 msgstr ""
35832
35833 #. type: =head2
35834 #: ../src/guestfs.pod:1523
35835 msgid "SINGLE CALLS AT RUN TIME"
35836 msgstr ""
35837
35838 #. type: textblock
35839 #: ../src/guestfs.pod:1525
35840 msgid ""
35841 "Testing at compile time doesn't guarantee that a function really exists in "
35842 "the library.  The reason is that you might be dynamically linked against a "
35843 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
35844 "This situation unfortunately results in a segmentation fault, which is a "
35845 "shortcoming of the C dynamic linking system itself."
35846 msgstr ""
35847
35848 #. type: textblock
35849 #: ../src/guestfs.pod:1532
35850 msgid ""
35851 "You can use L<dlopen(3)> to test if a function is available at run time, as "
35852 "in this example program (note that you still need the compile time check as "
35853 "well):"
35854 msgstr ""
35855
35856 #. type: verbatim
35857 #: ../src/guestfs.pod:1536
35858 #, no-wrap
35859 msgid ""
35860 " #include <stdio.h>\n"
35861 " #include <stdlib.h>\n"
35862 " #include <unistd.h>\n"
35863 " #include <dlfcn.h>\n"
35864 " #include <guestfs.h>\n"
35865 " \n"
35866 msgstr ""
35867 " #include <stdio.h>\n"
35868 " #include <stdlib.h>\n"
35869 " #include <unistd.h>\n"
35870 " #include <dlfcn.h>\n"
35871 " #include <guestfs.h>\n"
35872 " \n"
35873
35874 #. type: verbatim
35875 #: ../src/guestfs.pod:1542
35876 #, no-wrap
35877 msgid ""
35878 " main ()\n"
35879 " {\n"
35880 " #ifdef LIBGUESTFS_HAVE_DD\n"
35881 "   void *dl;\n"
35882 "   int has_function;\n"
35883 " \n"
35884 msgstr ""
35885 " main ()\n"
35886 " {\n"
35887 " #ifdef LIBGUESTFS_HAVE_DD\n"
35888 "   void *dl;\n"
35889 "   int has_function;\n"
35890 " \n"
35891
35892 #. type: verbatim
35893 #: ../src/guestfs.pod:1548
35894 #, no-wrap
35895 msgid ""
35896 "   /* Test if the function guestfs_dd is really available. */\n"
35897 "   dl = dlopen (NULL, RTLD_LAZY);\n"
35898 "   if (!dl) {\n"
35899 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
35900 "     exit (EXIT_FAILURE);\n"
35901 "   }\n"
35902 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
35903 "   dlclose (dl);\n"
35904 " \n"
35905 msgstr ""
35906
35907 #. type: verbatim
35908 #: ../src/guestfs.pod:1557
35909 #, no-wrap
35910 msgid ""
35911 "   if (!has_function)\n"
35912 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
35913 "   else {\n"
35914 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
35915 "     /* Now it's safe to call\n"
35916 "     guestfs_dd (g, \"foo\", \"bar\");\n"
35917 "     */\n"
35918 "   }\n"
35919 " #else\n"
35920 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
35921 " #endif\n"
35922 "  }\n"
35923 "\n"
35924 msgstr ""
35925
35926 #. type: textblock
35927 #: ../src/guestfs.pod:1570
35928 msgid ""
35929 "You may think the above is an awful lot of hassle, and it is.  There are "
35930 "other ways outside of the C linking system to ensure that this kind of "
35931 "incompatibility never arises, such as using package versioning:"
35932 msgstr ""
35933
35934 #. type: verbatim
35935 #: ../src/guestfs.pod:1575
35936 #, no-wrap
35937 msgid ""
35938 " Requires: libguestfs >= 1.0.80\n"
35939 "\n"
35940 msgstr ""
35941
35942 #. type: =head1
35943 #: ../src/guestfs.pod:1577
35944 msgid "CALLS WITH OPTIONAL ARGUMENTS"
35945 msgstr ""
35946
35947 #. type: textblock
35948 #: ../src/guestfs.pod:1579
35949 msgid ""
35950 "A recent feature of the API is the introduction of calls which take optional "
35951 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
35952 "takes variable arguments (ie. C<...>), as in this example:"
35953 msgstr ""
35954
35955 #. type: verbatim
35956 #: ../src/guestfs.pod:1584
35957 #, no-wrap
35958 msgid ""
35959 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35960 "\n"
35961 msgstr ""
35962 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
35963 "\n"
35964
35965 #. type: textblock
35966 #: ../src/guestfs.pod:1586
35967 msgid ""
35968 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
35969 "call with no optional arguments specified:"
35970 msgstr ""
35971
35972 #. type: verbatim
35973 #: ../src/guestfs.pod:1589
35974 #, no-wrap
35975 msgid ""
35976 " guestfs_add_drive_opts (g, filename, -1);\n"
35977 "\n"
35978 msgstr ""
35979 " guestfs_add_drive_opts (g, filename, -1);\n"
35980 "\n"
35981
35982 #. type: textblock
35983 #: ../src/guestfs.pod:1591
35984 msgid "With a single optional argument:"
35985 msgstr ""
35986
35987 #. type: verbatim
35988 #: ../src/guestfs.pod:1593
35989 #, no-wrap
35990 msgid ""
35991 " guestfs_add_drive_opts (g, filename,\n"
35992 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35993 "                         -1);\n"
35994 "\n"
35995 msgstr ""
35996 " guestfs_add_drive_opts (g, filename,\n"
35997 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
35998 "                         -1);\n"
35999 "\n"
36000
36001 #. type: textblock
36002 #: ../src/guestfs.pod:1597
36003 msgid "With two:"
36004 msgstr ""
36005
36006 #. type: verbatim
36007 #: ../src/guestfs.pod:1599
36008 #, no-wrap
36009 msgid ""
36010 " guestfs_add_drive_opts (g, filename,\n"
36011 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36012 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36013 "                         -1);\n"
36014 "\n"
36015 msgstr ""
36016 " guestfs_add_drive_opts (g, filename,\n"
36017 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
36018 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
36019 "                         -1);\n"
36020 "\n"
36021
36022 #. type: textblock
36023 #: ../src/guestfs.pod:1604
36024 msgid ""
36025 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
36026 "happen!"
36027 msgstr ""
36028
36029 #. type: =head2
36030 #: ../src/guestfs.pod:1607
36031 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
36032 msgstr ""
36033
36034 #. type: textblock
36035 #: ../src/guestfs.pod:1609
36036 msgid ""
36037 "The second variant has the same name with the suffix C<_va>, which works the "
36038 "same way but takes a C<va_list>.  See the C manual for details.  For the "
36039 "example function, this is declared:"
36040 msgstr ""
36041
36042 #. type: verbatim
36043 #: ../src/guestfs.pod:1613
36044 #, no-wrap
36045 msgid ""
36046 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36047 "                                va_list args);\n"
36048 "\n"
36049 msgstr ""
36050 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
36051 "                                va_list args);\n"
36052 "\n"
36053
36054 #. type: =head2
36055 #: ../src/guestfs.pod:1616
36056 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
36057 msgstr ""
36058
36059 #. type: textblock
36060 #: ../src/guestfs.pod:1618
36061 msgid ""
36062 "The third variant is useful where you need to construct these calls.  You "
36063 "pass in a structure where you fill in the optional fields.  The structure "
36064 "has a bitmask as the first element which you must set to indicate which "
36065 "fields you have filled in.  For our example function the structure and call "
36066 "are declared:"
36067 msgstr ""
36068
36069 #. type: verbatim
36070 #: ../src/guestfs.pod:1624
36071 #, no-wrap
36072 msgid ""
36073 " struct guestfs_add_drive_opts_argv {\n"
36074 "   uint64_t bitmask;\n"
36075 "   int readonly;\n"
36076 "   const char *format;\n"
36077 "   /* ... */\n"
36078 " };\n"
36079 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36080 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
36081 "\n"
36082 msgstr ""
36083 " struct guestfs_add_drive_opts_argv {\n"
36084 "   uint64_t bitmask;\n"
36085 "   int readonly;\n"
36086 "   const char *format;\n"
36087 "   /* ... */\n"
36088 " };\n"
36089 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
36090 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
36091 "\n"
36092
36093 #. type: textblock
36094 #: ../src/guestfs.pod:1633
36095 msgid "You could call it like this:"
36096 msgstr ""
36097
36098 #. type: verbatim
36099 #: ../src/guestfs.pod:1635
36100 #, no-wrap
36101 msgid ""
36102 " struct guestfs_add_drive_opts_argv optargs = {\n"
36103 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36104 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36105 "   .readonly = 1,\n"
36106 "   .format = \"qcow2\"\n"
36107 " };\n"
36108 " \n"
36109 msgstr ""
36110 " struct guestfs_add_drive_opts_argv optargs = {\n"
36111 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
36112 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
36113 "   .readonly = 1,\n"
36114 "   .format = \"qcow2\"\n"
36115 " };\n"
36116 " \n"
36117
36118 #. type: verbatim
36119 #: ../src/guestfs.pod:1642
36120 #, no-wrap
36121 msgid ""
36122 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36123 "\n"
36124 msgstr ""
36125 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
36126 "\n"
36127
36128 #. type: textblock
36129 #: ../src/guestfs.pod:1650
36130 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
36131 msgstr ""
36132
36133 #. type: textblock
36134 #: ../src/guestfs.pod:1655
36135 msgid "You do not need to fill in all fields of the structure."
36136 msgstr ""
36137
36138 #. type: textblock
36139 #: ../src/guestfs.pod:1659
36140 msgid ""
36141 "There must be a one-to-one correspondence between fields of the structure "
36142 "that are filled in, and bits set in the bitmask."
36143 msgstr ""
36144
36145 #. type: =head2
36146 #: ../src/guestfs.pod:1664
36147 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
36148 msgstr ""
36149
36150 #. type: textblock
36151 #: ../src/guestfs.pod:1666
36152 msgid ""
36153 "In other languages, optional arguments are expressed in the way that is "
36154 "natural for that language.  We refer you to the language-specific "
36155 "documentation for more details on that."
36156 msgstr ""
36157
36158 #. type: textblock
36159 #: ../src/guestfs.pod:1670
36160 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
36161 msgstr ""
36162
36163 #. type: =head2
36164 #: ../src/guestfs.pod:1672
36165 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
36166 msgstr ""
36167
36168 #. type: textblock
36169 #: ../src/guestfs.pod:1674
36170 msgid ""
36171 "B<Note:> This section documents the generic event mechanism introduced in "
36172 "libguestfs 1.10, which you should use in new code if possible.  The old "
36173 "functions C<guestfs_set_log_message_callback>, "
36174 "C<guestfs_set_subprocess_quit_callback>, "
36175 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
36176 "C<guestfs_set_progress_callback> are no longer documented in this manual "
36177 "page.  Because of the ABI guarantee, the old functions continue to work."
36178 msgstr ""
36179
36180 #. type: textblock
36181 #: ../src/guestfs.pod:1683
36182 msgid ""
36183 "Handles generate events when certain things happen, such as log messages "
36184 "being generated, progress messages during long-running operations, or the "
36185 "handle being closed.  The API calls described below let you register a "
36186 "callback to be called when events happen.  You can register multiple "
36187 "callbacks (for the same, different or overlapping sets of events), and "
36188 "individually remove callbacks.  If callbacks are not removed, then they "
36189 "remain in force until the handle is closed."
36190 msgstr ""
36191
36192 #. type: textblock
36193 #: ../src/guestfs.pod:1691
36194 msgid ""
36195 "In the current implementation, events are only generated synchronously: that "
36196 "means that events (and hence callbacks) can only happen while you are in the "
36197 "middle of making another libguestfs call.  The callback is called in the "
36198 "same thread."
36199 msgstr ""
36200
36201 #. type: textblock
36202 #: ../src/guestfs.pod:1696
36203 msgid ""
36204 "Events may contain a payload, usually nothing (void), an array of 64 bit "
36205 "unsigned integers, or a message buffer.  Payloads are discussed later on."
36206 msgstr ""
36207
36208 #. type: =head3
36209 #: ../src/guestfs.pod:1700
36210 msgid "CLASSES OF EVENTS"
36211 msgstr ""
36212
36213 #. type: =item
36214 #: ../src/guestfs.pod:1704
36215 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
36216 msgstr ""
36217
36218 #. type: textblock
36219 #: ../src/guestfs.pod:1707
36220 msgid ""
36221 "The callback function will be called while the handle is being closed "
36222 "(synchronously from L</guestfs_close>)."
36223 msgstr ""
36224
36225 #. type: textblock
36226 #: ../src/guestfs.pod:1710
36227 msgid ""
36228 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
36229 "handles that are open when the program exits.  This means that this callback "
36230 "might be called indirectly from L<exit(3)>, which can cause unexpected "
36231 "problems in higher-level languages (eg. if your HLL interpreter has already "
36232 "been cleaned up by the time this is called, and if your callback then jumps "
36233 "into some HLL function)."
36234 msgstr ""
36235
36236 #. type: textblock
36237 #: ../src/guestfs.pod:1717
36238 msgid ""
36239 "If no callback is registered: the handle is closed without any callback "
36240 "being invoked."
36241 msgstr ""
36242
36243 #. type: =item
36244 #: ../src/guestfs.pod:1720
36245 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
36246 msgstr ""
36247
36248 #. type: textblock
36249 #: ../src/guestfs.pod:1723
36250 msgid ""
36251 "The callback function will be called when the child process quits, either "
36252 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
36253 "corresponds to a transition from any state to the CONFIG state)."
36254 msgstr ""
36255
36256 #. type: textblock
36257 #: ../src/guestfs.pod:1727 ../src/guestfs.pod:1736 ../src/guestfs.pod:1853
36258 msgid "If no callback is registered: the event is ignored."
36259 msgstr ""
36260
36261 #. type: =item
36262 #: ../src/guestfs.pod:1729
36263 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
36264 msgstr ""
36265
36266 #. type: textblock
36267 #: ../src/guestfs.pod:1732
36268 msgid ""
36269 "The callback function will be called when the child process becomes ready "
36270 "first time after it has been launched.  (This corresponds to a transition "
36271 "from LAUNCHING to the READY state)."
36272 msgstr ""
36273
36274 #. type: =item
36275 #: ../src/guestfs.pod:1738
36276 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
36277 msgstr ""
36278
36279 #. type: textblock
36280 #: ../src/guestfs.pod:1741
36281 msgid ""
36282 "Some long-running operations can generate progress messages.  If this "
36283 "callback is registered, then it will be called each time a progress message "
36284 "is generated (usually two seconds after the operation started, and three "
36285 "times per second thereafter until it completes, although the frequency may "
36286 "change in future versions)."
36287 msgstr ""
36288
36289 #. type: textblock
36290 #: ../src/guestfs.pod:1747
36291 msgid ""
36292 "The callback receives in the payload four unsigned 64 bit numbers which are "
36293 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
36294 msgstr ""
36295
36296 #. type: textblock
36297 #: ../src/guestfs.pod:1750
36298 msgid ""
36299 "The units of C<total> are not defined, although for some operations C<total> "
36300 "may relate in some way to the amount of data to be transferred (eg. in bytes "
36301 "or megabytes), and C<position> may be the portion which has been transferred."
36302 msgstr ""
36303
36304 #. type: textblock
36305 #: ../src/guestfs.pod:1755
36306 msgid "The only defined and stable parts of the API are:"
36307 msgstr ""
36308
36309 #. type: textblock
36310 #: ../src/guestfs.pod:1761
36311 msgid ""
36312 "The callback can display to the user some type of progress bar or indicator "
36313 "which shows the ratio of C<position>:C<total>."
36314 msgstr ""
36315
36316 #. type: textblock
36317 #: ../src/guestfs.pod:1766
36318 msgid "0 E<lt>= C<position> E<lt>= C<total>"
36319 msgstr ""
36320
36321 #. type: textblock
36322 #: ../src/guestfs.pod:1770
36323 msgid ""
36324 "If any progress notification is sent during a call, then a final progress "
36325 "notification is always sent when C<position> = C<total> (I<unless> the call "
36326 "fails with an error)."
36327 msgstr ""
36328
36329 #. type: textblock
36330 #: ../src/guestfs.pod:1774
36331 msgid ""
36332 "This is to simplify caller code, so callers can easily set the progress "
36333 "indicator to \"100%\" at the end of the operation, without requiring special "
36334 "code to detect this case."
36335 msgstr ""
36336
36337 #. type: textblock
36338 #: ../src/guestfs.pod:1780
36339 msgid ""
36340 "For some calls we are unable to estimate the progress of the call, but we "
36341 "can still generate progress messages to indicate activity.  This is known as "
36342 "\"pulse mode\", and is directly supported by certain progress bar "
36343 "implementations (eg. GtkProgressBar)."
36344 msgstr ""
36345
36346 #. type: textblock
36347 #: ../src/guestfs.pod:1785
36348 msgid ""
36349 "For these calls, zero or more progress messages are generated with "
36350 "C<position = 0> and C<total = 1>, followed by a final message with "
36351 "C<position = total = 1>."
36352 msgstr ""
36353
36354 #. type: textblock
36355 #: ../src/guestfs.pod:1789
36356 msgid ""
36357 "As noted above, if the call fails with an error then the final message may "
36358 "not be generated."
36359 msgstr ""
36360
36361 #. type: textblock
36362 #: ../src/guestfs.pod:1794
36363 msgid ""
36364 "The callback also receives the procedure number (C<proc_nr>) and serial "
36365 "number (C<serial>) of the call.  These are only useful for debugging "
36366 "protocol issues, and the callback can normally ignore them.  The callback "
36367 "may want to print these numbers in error messages or debugging messages."
36368 msgstr ""
36369
36370 #. type: textblock
36371 #: ../src/guestfs.pod:1800
36372 msgid "If no callback is registered: progress messages are discarded."
36373 msgstr ""
36374
36375 #. type: =item
36376 #: ../src/guestfs.pod:1802
36377 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
36378 msgstr ""
36379
36380 #. type: textblock
36381 #: ../src/guestfs.pod:1805
36382 msgid ""
36383 "The callback function is called whenever a log message is generated by qemu, "
36384 "the appliance kernel, guestfsd (daemon), or utility programs."
36385 msgstr ""
36386
36387 #. type: textblock
36388 #: ../src/guestfs.pod:1808
36389 msgid ""
36390 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
36391 "guestfs_launch>) then additional debug messages are generated."
36392 msgstr ""
36393
36394 #. type: textblock
36395 #: ../src/guestfs.pod:1811 ../src/guestfs.pod:1825
36396 msgid ""
36397 "If no callback is registered: the messages are discarded unless the verbose "
36398 "flag is set in which case they are sent to stderr.  You can override the "
36399 "printing of verbose messages to stderr by setting up a callback."
36400 msgstr ""
36401
36402 #. type: =item
36403 #: ../src/guestfs.pod:1816
36404 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
36405 msgstr ""
36406
36407 #. type: textblock
36408 #: ../src/guestfs.pod:1819
36409 msgid ""
36410 "The callback function is called whenever a log message is generated by the "
36411 "library part of libguestfs."
36412 msgstr ""
36413
36414 #. type: textblock
36415 #: ../src/guestfs.pod:1822
36416 msgid ""
36417 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
36418 "messages are generated."
36419 msgstr ""
36420
36421 #. type: =item
36422 #: ../src/guestfs.pod:1830
36423 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
36424 msgstr ""
36425
36426 #. type: textblock
36427 #: ../src/guestfs.pod:1833
36428 msgid ""
36429 "The callback function is called whenever a trace message is generated.  This "
36430 "only applies if the trace flag (L</guestfs_set_trace>) is set."
36431 msgstr ""
36432
36433 #. type: textblock
36434 #: ../src/guestfs.pod:1836
36435 msgid ""
36436 "If no callback is registered: the messages are sent to stderr.  You can "
36437 "override the printing of trace messages to stderr by setting up a callback."
36438 msgstr ""
36439
36440 #. type: =item
36441 #: ../src/guestfs.pod:1840
36442 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
36443 msgstr ""
36444
36445 #. type: textblock
36446 #: ../src/guestfs.pod:1843
36447 msgid ""
36448 "The callback function is called whenever a libguestfs function is entered."
36449 msgstr ""
36450
36451 #. type: textblock
36452 #: ../src/guestfs.pod:1846
36453 msgid ""
36454 "The payload is a string which contains the name of the function that we are "
36455 "entering (not including C<guestfs_> prefix)."
36456 msgstr ""
36457
36458 #. type: textblock
36459 #: ../src/guestfs.pod:1849
36460 msgid ""
36461 "Note that libguestfs functions can call themselves, so you may see many "
36462 "events from a single call.  A few libguestfs functions do not generate this "
36463 "event."
36464 msgstr ""
36465
36466 #. type: =head3
36467 #: ../src/guestfs.pod:1857
36468 msgid "guestfs_set_event_callback"
36469 msgstr ""
36470
36471 #. type: verbatim
36472 #: ../src/guestfs.pod:1859
36473 #, no-wrap
36474 msgid ""
36475 " int guestfs_set_event_callback (guestfs_h *g,\n"
36476 "                                 guestfs_event_callback cb,\n"
36477 "                                 uint64_t event_bitmask,\n"
36478 "                                 int flags,\n"
36479 "                                 void *opaque);\n"
36480 "\n"
36481 msgstr ""
36482
36483 #. type: textblock
36484 #: ../src/guestfs.pod:1865
36485 msgid ""
36486 "This function registers a callback (C<cb>) for all event classes in the "
36487 "C<event_bitmask>."
36488 msgstr ""
36489
36490 #. type: textblock
36491 #: ../src/guestfs.pod:1868
36492 msgid ""
36493 "For example, to register for all log message events, you could call this "
36494 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
36495 "To register a single callback for all possible classes of events, use "
36496 "C<GUESTFS_EVENT_ALL>."
36497 msgstr ""
36498
36499 #. type: textblock
36500 #: ../src/guestfs.pod:1874
36501 msgid "C<flags> should always be passed as 0."
36502 msgstr ""
36503
36504 #. type: textblock
36505 #: ../src/guestfs.pod:1876
36506 msgid ""
36507 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
36508 "it for any purpose."
36509 msgstr ""
36510
36511 #. type: textblock
36512 #: ../src/guestfs.pod:1879
36513 msgid ""
36514 "The return value is the event handle (an integer) which you can use to "
36515 "delete the callback (see below)."
36516 msgstr ""
36517
36518 #. type: textblock
36519 #: ../src/guestfs.pod:1882
36520 msgid ""
36521 "If there is an error, this function returns C<-1>, and sets the error in the "
36522 "handle in the usual way (see L</guestfs_last_error> etc.)"
36523 msgstr ""
36524
36525 #. type: textblock
36526 #: ../src/guestfs.pod:1885
36527 msgid ""
36528 "Callbacks remain in effect until they are deleted, or until the handle is "
36529 "closed."
36530 msgstr ""
36531
36532 #. type: textblock
36533 #: ../src/guestfs.pod:1888
36534 msgid ""
36535 "In the case where multiple callbacks are registered for a particular event "
36536 "class, all of the callbacks are called.  The order in which multiple "
36537 "callbacks are called is not defined."
36538 msgstr ""
36539
36540 #. type: =head3
36541 #: ../src/guestfs.pod:1892
36542 msgid "guestfs_delete_event_callback"
36543 msgstr ""
36544
36545 #. type: verbatim
36546 #: ../src/guestfs.pod:1894
36547 #, no-wrap
36548 msgid ""
36549 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
36550 "\n"
36551 msgstr ""
36552
36553 #. type: textblock
36554 #: ../src/guestfs.pod:1896
36555 msgid ""
36556 "Delete a callback that was previously registered.  C<event_handle> should be "
36557 "the integer that was returned by a previous call to "
36558 "C<guestfs_set_event_callback> on the same handle."
36559 msgstr ""
36560
36561 #. type: =head3
36562 #: ../src/guestfs.pod:1900
36563 msgid "guestfs_event_callback"
36564 msgstr ""
36565
36566 #. type: verbatim
36567 #: ../src/guestfs.pod:1902
36568 #, no-wrap
36569 msgid ""
36570 " typedef void (*guestfs_event_callback) (\n"
36571 "                  guestfs_h *g,\n"
36572 "                  void *opaque,\n"
36573 "                  uint64_t event,\n"
36574 "                  int event_handle,\n"
36575 "                  int flags,\n"
36576 "                  const char *buf, size_t buf_len,\n"
36577 "                  const uint64_t *array, size_t array_len);\n"
36578 "\n"
36579 msgstr ""
36580
36581 #. type: textblock
36582 #: ../src/guestfs.pod:1911
36583 msgid ""
36584 "This is the type of the event callback function that you have to provide."
36585 msgstr ""
36586
36587 #. type: textblock
36588 #: ../src/guestfs.pod:1914
36589 msgid ""
36590 "The basic parameters are: the handle (C<g>), the opaque user pointer "
36591 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
36592 "handle, and C<flags> which in the current API you should ignore."
36593 msgstr ""
36594
36595 #. type: textblock
36596 #: ../src/guestfs.pod:1918
36597 msgid ""
36598 "The remaining parameters contain the event payload (if any).  Each event may "
36599 "contain a payload, which usually relates to the event class, but for future "
36600 "proofing your code should be written to handle any payload for any event "
36601 "class."
36602 msgstr ""
36603
36604 #. type: textblock
36605 #: ../src/guestfs.pod:1923
36606 msgid ""
36607 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
36608 "there is no message buffer).  Note that this message buffer can contain "
36609 "arbitrary 8 bit data, including NUL bytes."
36610 msgstr ""
36611
36612 #. type: textblock
36613 #: ../src/guestfs.pod:1927
36614 msgid ""
36615 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
36616 "moment this is only used for progress messages."
36617 msgstr ""
36618
36619 #. type: =head3
36620 #: ../src/guestfs.pod:1930
36621 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
36622 msgstr ""
36623
36624 #. type: textblock
36625 #: ../src/guestfs.pod:1932
36626 msgid ""
36627 "One motivation for the generic event API was to allow GUI programs to "
36628 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
36629 "unconditionally to C<stderr>."
36630 msgstr ""
36631
36632 #. type: textblock
36633 #: ../src/guestfs.pod:1936
36634 msgid ""
36635 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
36636 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
36637 "messages are not events; you must capture error messages separately)."
36638 msgstr ""
36639
36640 #. type: textblock
36641 #: ../src/guestfs.pod:1941
36642 msgid ""
36643 "Programs have to set up a callback to capture the classes of events of "
36644 "interest:"
36645 msgstr ""
36646
36647 #. type: verbatim
36648 #: ../src/guestfs.pod:1944
36649 #, no-wrap
36650 msgid ""
36651 " int eh =\n"
36652 "   guestfs_set_event_callback\n"
36653 "     (g, message_callback,\n"
36654 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
36655 "      GUESTFS_EVENT_TRACE,\n"
36656 "      0, NULL) == -1)\n"
36657 " if (eh == -1) {\n"
36658 "   // handle error in the usual way\n"
36659 " }\n"
36660 "\n"
36661 msgstr ""
36662
36663 #. type: textblock
36664 #: ../src/guestfs.pod:1954
36665 msgid ""
36666 "The callback can then direct messages to the appropriate place.  In this "
36667 "example, messages are directed to syslog:"
36668 msgstr ""
36669
36670 #. type: verbatim
36671 #: ../src/guestfs.pod:1957
36672 #, no-wrap
36673 msgid ""
36674 " static void\n"
36675 " message_callback (\n"
36676 "         guestfs_h *g,\n"
36677 "         void *opaque,\n"
36678 "         uint64_t event,\n"
36679 "         int event_handle,\n"
36680 "         int flags,\n"
36681 "         const char *buf, size_t buf_len,\n"
36682 "         const uint64_t *array, size_t array_len)\n"
36683 " {\n"
36684 "   const int priority = LOG_USER|LOG_INFO;\n"
36685 "   if (buf_len > 0)\n"
36686 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
36687 " }\n"
36688 "\n"
36689 msgstr ""
36690
36691 #. type: =head1
36692 #: ../src/guestfs.pod:1972
36693 msgid "CANCELLING LONG TRANSFERS"
36694 msgstr ""
36695
36696 #. type: textblock
36697 #: ../src/guestfs.pod:1974
36698 msgid ""
36699 "Some operations can be cancelled by the caller while they are in progress.  "
36700 "Currently only operations that involve uploading or downloading data can be "
36701 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
36702 "parameters in the generator)."
36703 msgstr ""
36704
36705 #. type: =head2
36706 #: ../src/guestfs.pod:1979
36707 msgid "guestfs_user_cancel"
36708 msgstr ""
36709
36710 #. type: verbatim
36711 #: ../src/guestfs.pod:1981
36712 #, no-wrap
36713 msgid ""
36714 " void guestfs_user_cancel (guestfs_h *g);\n"
36715 "\n"
36716 msgstr ""
36717
36718 #. type: textblock
36719 #: ../src/guestfs.pod:1983
36720 msgid ""
36721 "C<guestfs_user_cancel> cancels the current upload or download operation."
36722 msgstr ""
36723
36724 #. type: textblock
36725 #: ../src/guestfs.pod:1986
36726 msgid ""
36727 "Unlike most other libguestfs calls, this function is signal safe and thread "
36728 "safe.  You can call it from a signal handler or from another thread, without "
36729 "needing to do any locking."
36730 msgstr ""
36731
36732 #. type: textblock
36733 #: ../src/guestfs.pod:1990
36734 msgid ""
36735 "The transfer that was in progress (if there is one) will stop shortly "
36736 "afterwards, and will return an error.  The errno (see L</"
36737 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
36738 "out if the operation was cancelled or failed because of another error."
36739 msgstr ""
36740
36741 #. type: textblock
36742 #: ../src/guestfs.pod:1996
36743 msgid ""
36744 "No cleanup is performed: for example, if a file was being uploaded then "
36745 "after cancellation there may be a partially uploaded file.  It is the "
36746 "caller's responsibility to clean up if necessary."
36747 msgstr ""
36748
36749 #. type: textblock
36750 #: ../src/guestfs.pod:2000
36751 msgid "There are two common places that you might call C<guestfs_user_cancel>."
36752 msgstr ""
36753
36754 #. type: textblock
36755 #: ../src/guestfs.pod:2002
36756 msgid ""
36757 "In an interactive text-based program, you might call it from a C<SIGINT> "
36758 "signal handler so that pressing C<^C> cancels the current operation.  (You "
36759 "also need to call L</guestfs_set_pgroup> so that child processes don't "
36760 "receive the C<^C> signal)."
36761 msgstr ""
36762
36763 #. type: textblock
36764 #: ../src/guestfs.pod:2007
36765 msgid ""
36766 "In a graphical program, when the main thread is displaying a progress bar "
36767 "with a cancel button, wire up the cancel button to call this function."
36768 msgstr ""
36769
36770 #. type: =head1
36771 #: ../src/guestfs.pod:2011
36772 msgid "PRIVATE DATA AREA"
36773 msgstr ""
36774
36775 #. type: textblock
36776 #: ../src/guestfs.pod:2013
36777 msgid ""
36778 "You can attach named pieces of private data to the libguestfs handle, fetch "
36779 "them by name, and walk over them, for the lifetime of the handle.  This is "
36780 "called the private data area and is only available from the C API."
36781 msgstr ""
36782
36783 #. type: textblock
36784 #: ../src/guestfs.pod:2018
36785 msgid "To attach a named piece of data, use the following call:"
36786 msgstr ""
36787
36788 #. type: verbatim
36789 #: ../src/guestfs.pod:2020
36790 #, no-wrap
36791 msgid ""
36792 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36793 "\n"
36794 msgstr ""
36795 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
36796 "\n"
36797
36798 #. type: textblock
36799 #: ../src/guestfs.pod:2022
36800 msgid ""
36801 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
36802 "pointer (which can be C<NULL>).  Any previous item with the same key is "
36803 "overwritten."
36804 msgstr ""
36805
36806 #. type: textblock
36807 #: ../src/guestfs.pod:2026
36808 msgid ""
36809 "You can use any C<key> you want, but your key should I<not> start with an "
36810 "underscore character.  Keys beginning with an underscore character are "
36811 "reserved for internal libguestfs purposes (eg. for implementing language "
36812 "bindings).  It is recommended that you prefix the key with some unique "
36813 "string to avoid collisions with other users."
36814 msgstr ""
36815
36816 #. type: textblock
36817 #: ../src/guestfs.pod:2032
36818 msgid "To retrieve the pointer, use:"
36819 msgstr ""
36820
36821 #. type: verbatim
36822 #: ../src/guestfs.pod:2034
36823 #, no-wrap
36824 msgid ""
36825 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36826 "\n"
36827 msgstr ""
36828 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
36829 "\n"
36830
36831 #. type: textblock
36832 #: ../src/guestfs.pod:2036
36833 msgid ""
36834 "This function returns C<NULL> if either no data is found associated with "
36835 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
36836 "C<NULL>."
36837 msgstr ""
36838
36839 #. type: textblock
36840 #: ../src/guestfs.pod:2040
36841 msgid ""
36842 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
36843 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
36844 "all.  In particular, libguestfs does I<not> try to free the data when the "
36845 "handle is closed.  If the data must be freed, then the caller must either "
36846 "free it before calling L</guestfs_close> or must set up a close callback to "
36847 "do it (see L</GUESTFS_EVENT_CLOSE>)."
36848 msgstr ""
36849
36850 #. type: textblock
36851 #: ../src/guestfs.pod:2047
36852 msgid "To walk over all entries, use these two functions:"
36853 msgstr ""
36854
36855 #. type: verbatim
36856 #: ../src/guestfs.pod:2049
36857 #, no-wrap
36858 msgid ""
36859 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
36860 "\n"
36861 msgstr ""
36862
36863 #. type: verbatim
36864 #: ../src/guestfs.pod:2051
36865 #, no-wrap
36866 msgid ""
36867 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
36868 "\n"
36869 msgstr ""
36870
36871 #. type: textblock
36872 #: ../src/guestfs.pod:2053
36873 msgid ""
36874 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
36875 "not have any particular meaning -- keys are not returned in any defined "
36876 "order).  A pointer to the key is returned in C<*key_rtn> and the "
36877 "corresponding data pointer is returned from the function.  C<NULL> is "
36878 "returned if there are no keys stored in the handle."
36879 msgstr ""
36880
36881 #. type: textblock
36882 #: ../src/guestfs.pod:2059
36883 msgid ""
36884 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
36885 "value of this function is also C<NULL> is there are no further entries to "
36886 "return."
36887 msgstr ""
36888
36889 #. type: textblock
36890 #: ../src/guestfs.pod:2063
36891 msgid "Notes about walking over entries:"
36892 msgstr ""
36893
36894 #. type: textblock
36895 #: ../src/guestfs.pod:2069
36896 msgid ""
36897 "You must not call C<guestfs_set_private> while walking over the entries."
36898 msgstr ""
36899
36900 #. type: textblock
36901 #: ../src/guestfs.pod:2074
36902 msgid ""
36903 "The handle maintains an internal iterator which is reset when you call "
36904 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
36905 "call C<guestfs_set_private>."
36906 msgstr ""
36907
36908 #. type: textblock
36909 #: ../src/guestfs.pod:2080
36910 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
36911 msgstr ""
36912
36913 #. type: verbatim
36914 #: ../src/guestfs.pod:2082
36915 #, no-wrap
36916 msgid ""
36917 " guestfs_set_private (g, key, NULL);\n"
36918 "\n"
36919 msgstr ""
36920
36921 #. type: textblock
36922 #: ../src/guestfs.pod:2084
36923 msgid "then that C<key> is not returned when walking."
36924 msgstr ""
36925
36926 #. type: textblock
36927 #: ../src/guestfs.pod:2088
36928 msgid ""
36929 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
36930 "C<guestfs_next_private> or C<guestfs_set_private>."
36931 msgstr ""
36932
36933 #. type: textblock
36934 #: ../src/guestfs.pod:2094
36935 msgid ""
36936 "The following example code shows how to print all keys and data pointers "
36937 "that are associated with the handle C<g>:"
36938 msgstr ""
36939
36940 #. type: verbatim
36941 #: ../src/guestfs.pod:2097
36942 #, no-wrap
36943 msgid ""
36944 " const char *key;\n"
36945 " void *data = guestfs_first_private (g, &key);\n"
36946 " while (data != NULL)\n"
36947 "   {\n"
36948 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
36949 "     data = guestfs_next_private (g, &key);\n"
36950 "   }\n"
36951 "\n"
36952 msgstr ""
36953
36954 #. type: textblock
36955 #: ../src/guestfs.pod:2105
36956 msgid ""
36957 "More commonly you are only interested in keys that begin with an application-"
36958 "specific prefix C<foo_>.  Modify the loop like so:"
36959 msgstr ""
36960
36961 #. type: verbatim
36962 #: ../src/guestfs.pod:2108
36963 #, no-wrap
36964 msgid ""
36965 " const char *key;\n"
36966 " void *data = guestfs_first_private (g, &key);\n"
36967 " while (data != NULL)\n"
36968 "   {\n"
36969 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36970 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
36971 "     data = guestfs_next_private (g, &key);\n"
36972 "   }\n"
36973 "\n"
36974 msgstr ""
36975
36976 #. type: textblock
36977 #: ../src/guestfs.pod:2117
36978 msgid ""
36979 "If you need to modify keys while walking, then you have to jump back to the "
36980 "beginning of the loop.  For example, to delete all keys prefixed with "
36981 "C<foo_>:"
36982 msgstr ""
36983
36984 #. type: verbatim
36985 #: ../src/guestfs.pod:2121
36986 #, no-wrap
36987 msgid ""
36988 "  const char *key;\n"
36989 "  void *data;\n"
36990 " again:\n"
36991 "  data = guestfs_first_private (g, &key);\n"
36992 "  while (data != NULL)\n"
36993 "    {\n"
36994 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
36995 "        {\n"
36996 "          guestfs_set_private (g, key, NULL);\n"
36997 "          /* note that 'key' pointer is now invalid, and so is\n"
36998 "             the internal iterator */\n"
36999 "          goto again;\n"
37000 "        }\n"
37001 "      data = guestfs_next_private (g, &key);\n"
37002 "    }\n"
37003 "\n"
37004 msgstr ""
37005
37006 #. type: textblock
37007 #: ../src/guestfs.pod:2137
37008 msgid ""
37009 "Note that the above loop is guaranteed to terminate because the keys are "
37010 "being deleted, but other manipulations of keys within the loop might not "
37011 "terminate unless you also maintain an indication of which keys have been "
37012 "visited."
37013 msgstr ""
37014
37015 #. type: =end
37016 #: ../src/guestfs.pod:2142 ../src/guestfs.pod:2147
37017 msgid "html"
37018 msgstr "html"
37019
37020 #. type: textblock
37021 #: ../src/guestfs.pod:2144
37022 msgid ""
37023 "<!-- old anchor for the next section --> <a name="
37024 "\"state_machine_and_low_level_event_api\"/>"
37025 msgstr ""
37026 "<!-- old anchor for the next section --> <a name="
37027 "\"state_machine_and_low_level_event_api\"/>"
37028
37029 #. type: =head1
37030 #: ../src/guestfs.pod:2149
37031 msgid "ARCHITECTURE"
37032 msgstr "АРХІТЕКТУРА"
37033
37034 #. type: textblock
37035 #: ../src/guestfs.pod:2151
37036 msgid ""
37037 "Internally, libguestfs is implemented by running an appliance (a special "
37038 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
37039 "process of the main program."
37040 msgstr ""
37041
37042 #. type: verbatim
37043 #: ../src/guestfs.pod:2155
37044 #, no-wrap
37045 msgid ""
37046 "  ___________________\n"
37047 " /                   \\\n"
37048 " | main program      |\n"
37049 " |                   |\n"
37050 " |                   |           child process / appliance\n"
37051 " |                   |           __________________________\n"
37052 " |                   |          / qemu                     \\\n"
37053 " +-------------------+   RPC    |      +-----------------+ |\n"
37054 " | libguestfs     <--------------------> guestfsd        | |\n"
37055 " |                   |          |      +-----------------+ |\n"
37056 " \\___________________/          |      | Linux kernel    | |\n"
37057 "                                |      +--^--------------+ |\n"
37058 "                                \\_________|________________/\n"
37059 "                                          |\n"
37060 "                                   _______v______\n"
37061 "                                  /              \\\n"
37062 "                                  | Device or    |\n"
37063 "                                  | disk image   |\n"
37064 "                                  \\______________/\n"
37065 "\n"
37066 msgstr ""
37067
37068 #. type: textblock
37069 #: ../src/guestfs.pod:2175
37070 msgid ""
37071 "The library, linked to the main program, creates the child process and hence "
37072 "the appliance in the L</guestfs_launch> function."
37073 msgstr ""
37074
37075 #. type: textblock
37076 #: ../src/guestfs.pod:2178
37077 msgid ""
37078 "Inside the appliance is a Linux kernel and a complete stack of userspace "
37079 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
37080 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
37081 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
37082 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
37083 "attached to the qemu process which translates device access by the "
37084 "appliance's Linux kernel into accesses to the image."
37085 msgstr ""
37086
37087 #. type: textblock
37088 #: ../src/guestfs.pod:2187
37089 msgid ""
37090 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
37091 "Although the disk image you are attached to might also be used by some "
37092 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
37093 "care if both libguestfs's qemu process and your virtual machine are trying "
37094 "to update the disk image at the same time, since these usually results in "
37095 "massive disk corruption)."
37096 msgstr ""
37097
37098 #. type: =head1
37099 #: ../src/guestfs.pod:2194
37100 msgid "STATE MACHINE"
37101 msgstr "СКІНЧЕННИЙ АВТОМАТ"
37102
37103 #. type: textblock
37104 #: ../src/guestfs.pod:2196
37105 msgid "libguestfs uses a state machine to model the child process:"
37106 msgstr ""
37107
37108 #. type: verbatim
37109 #: ../src/guestfs.pod:2198
37110 #, no-wrap
37111 msgid ""
37112 "                         |\n"
37113 "                    guestfs_create\n"
37114 "                         |\n"
37115 "                         |\n"
37116 "                     ____V_____\n"
37117 "                    /          \\\n"
37118 "                    |  CONFIG  |\n"
37119 "                    \\__________/\n"
37120 "                     ^ ^   ^  \\\n"
37121 "                    /  |    \\  \\ guestfs_launch\n"
37122 "                   /   |    _\\__V______\n"
37123 "                  /    |   /           \\\n"
37124 "                 /     |   | LAUNCHING |\n"
37125 "                /      |   \\___________/\n"
37126 "               /       |       /\n"
37127 "              /        |  guestfs_launch\n"
37128 "             /         |     /\n"
37129 "    ______  /        __|____V\n"
37130 "   /      \\ ------> /        \\\n"
37131 "   | BUSY |         | READY  |\n"
37132 "   \\______/ <------ \\________/\n"
37133 "\n"
37134 msgstr ""
37135
37136 #. type: textblock
37137 #: ../src/guestfs.pod:2220
37138 msgid ""
37139 "The normal transitions are (1) CONFIG (when the handle is created, but there "
37140 "is no child process), (2) LAUNCHING (when the child process is booting up), "
37141 "(3) alternating between READY and BUSY as commands are issued to, and "
37142 "carried out by, the child process."
37143 msgstr ""
37144
37145 #. type: textblock
37146 #: ../src/guestfs.pod:2225
37147 msgid ""
37148 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
37149 "asynchronously at any time (eg. due to some internal error), and that causes "
37150 "the state to transition back to CONFIG."
37151 msgstr ""
37152
37153 #. type: textblock
37154 #: ../src/guestfs.pod:2229
37155 msgid ""
37156 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
37157 "issued when in the CONFIG state."
37158 msgstr ""
37159
37160 #. type: textblock
37161 #: ../src/guestfs.pod:2232
37162 msgid ""
37163 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
37164 "L</guestfs_launch> blocks until the child process is READY to accept "
37165 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
37166 "moves the state from CONFIG to LAUNCHING while it is running."
37167 msgstr ""
37168
37169 #. type: textblock
37170 #: ../src/guestfs.pod:2238
37171 msgid ""
37172 "API actions such as L</guestfs_mount> can only be issued when in the READY "
37173 "state.  These API calls block waiting for the command to be carried out (ie. "
37174 "the state to transition to BUSY and then back to READY).  There are no non-"
37175 "blocking versions, and no way to issue more than one command per handle at "
37176 "the same time."
37177 msgstr ""
37178
37179 #. type: textblock
37180 #: ../src/guestfs.pod:2244
37181 msgid ""
37182 "Finally, the child process sends asynchronous messages back to the main "
37183 "program, such as kernel log messages.  You can register a callback to "
37184 "receive these messages."
37185 msgstr ""
37186
37187 #. type: =head1
37188 #: ../src/guestfs.pod:2248
37189 msgid "INTERNALS"
37190 msgstr ""
37191
37192 #. type: =head2
37193 #: ../src/guestfs.pod:2250
37194 msgid "APPLIANCE BOOT PROCESS"
37195 msgstr ""
37196
37197 #. type: textblock
37198 #: ../src/guestfs.pod:2252
37199 msgid ""
37200 "This process has evolved and continues to evolve.  The description here "
37201 "corresponds only to the current version of libguestfs and is provided for "
37202 "information only."
37203 msgstr ""
37204
37205 #. type: textblock
37206 #: ../src/guestfs.pod:2256
37207 msgid ""
37208 "In order to follow the stages involved below, enable libguestfs debugging "
37209 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
37210 msgstr ""
37211
37212 #. type: =item
37213 #: ../src/guestfs.pod:2261
37214 #, fuzzy
37215 #| msgid "C<appliance>"
37216 msgid "Create the appliance"
37217 msgstr "C<appliance>"
37218
37219 #. type: textblock
37220 #: ../src/guestfs.pod:2263
37221 msgid ""
37222 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
37223 "initrd and the appliance."
37224 msgstr ""
37225
37226 #. type: textblock
37227 #: ../src/guestfs.pod:2266
37228 msgid ""
37229 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
37230 "directory if C<TMPDIR> is set)."
37231 msgstr ""
37232
37233 #. type: textblock
37234 #: ../src/guestfs.pod:2269
37235 msgid ""
37236 "For a complete description of how the appliance is created and cached, read "
37237 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
37238 msgstr ""
37239
37240 #. type: =item
37241 #: ../src/guestfs.pod:2273
37242 msgid "Start qemu and boot the kernel"
37243 msgstr ""
37244
37245 #. type: textblock
37246 #: ../src/guestfs.pod:2275
37247 msgid "qemu is invoked to boot the kernel."
37248 msgstr ""
37249
37250 #. type: =item
37251 #: ../src/guestfs.pod:2277
37252 msgid "Run the initrd"
37253 msgstr ""
37254
37255 #. type: textblock
37256 #: ../src/guestfs.pod:2279
37257 msgid ""
37258 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
37259 "appliance.  The purpose of the initrd is to load enough kernel modules in "
37260 "order that the appliance itself can be mounted and started."
37261 msgstr ""
37262
37263 #. type: textblock
37264 #: ../src/guestfs.pod:2283
37265 msgid ""
37266 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
37267 "initrd>."
37268 msgstr ""
37269
37270 #. type: textblock
37271 #: ../src/guestfs.pod:2286
37272 msgid ""
37273 "When the initrd has started you will see messages showing that kernel "
37274 "modules are being loaded, similar to this:"
37275 msgstr ""
37276
37277 #. type: verbatim
37278 #: ../src/guestfs.pod:2289
37279 #, no-wrap
37280 msgid ""
37281 " febootstrap: ext2 mini initrd starting up\n"
37282 " febootstrap: mounting /sys\n"
37283 " febootstrap: internal insmod libcrc32c.ko\n"
37284 " febootstrap: internal insmod crc32c-intel.ko\n"
37285 "\n"
37286 msgstr ""
37287
37288 #. type: =item
37289 #: ../src/guestfs.pod:2294
37290 msgid "Find and mount the appliance device"
37291 msgstr ""
37292
37293 #. type: textblock
37294 #: ../src/guestfs.pod:2296
37295 msgid ""
37296 "The appliance is a sparse file containing an ext2 filesystem which contains "
37297 "a familiar (although reduced in size) Linux operating system.  It would "
37298 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
37299 msgstr ""
37300
37301 #. type: textblock
37302 #: ../src/guestfs.pod:2300
37303 msgid ""
37304 "The regular disks being inspected by libguestfs are the first devices "
37305 "exposed by qemu (eg. as C</dev/vda>)."
37306 msgstr ""
37307
37308 #. type: textblock
37309 #: ../src/guestfs.pod:2303
37310 msgid ""
37311 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
37312 "there was only one regular disk)."
37313 msgstr ""
37314
37315 #. type: textblock
37316 #: ../src/guestfs.pod:2306
37317 msgid ""
37318 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
37319 "and switch root into the appliance, and run C</init> from the appliance."
37320 msgstr ""
37321
37322 #. type: textblock
37323 #: ../src/guestfs.pod:2310
37324 msgid "If this works successfully you will see messages such as:"
37325 msgstr ""
37326
37327 #. type: verbatim
37328 #: ../src/guestfs.pod:2312
37329 #, no-wrap
37330 msgid ""
37331 " febootstrap: picked /sys/block/vdb/dev as root device\n"
37332 " febootstrap: creating /dev/root as block special 252:16\n"
37333 " febootstrap: mounting new root on /root\n"
37334 " febootstrap: chroot\n"
37335 " Starting /init script ...\n"
37336 "\n"
37337 msgstr ""
37338
37339 #. type: textblock
37340 #: ../src/guestfs.pod:2318
37341 msgid ""
37342 "Note that C<Starting /init script ...> indicates that the appliance's init "
37343 "script is now running."
37344 msgstr ""
37345
37346 #. type: =item
37347 #: ../src/guestfs.pod:2321
37348 msgid "Initialize the appliance"
37349 msgstr ""
37350
37351 #. type: textblock
37352 #: ../src/guestfs.pod:2323
37353 msgid ""
37354 "The appliance itself now initializes itself.  This involves starting certain "
37355 "processes like C<udev>, possibly printing some debug information, and "
37356 "finally running the daemon (C<guestfsd>)."
37357 msgstr ""
37358
37359 #. type: =item
37360 #: ../src/guestfs.pod:2327
37361 #, fuzzy
37362 #| msgid "C<daemon>"
37363 msgid "The daemon"
37364 msgstr "C<daemon>"
37365
37366 #. type: textblock
37367 #: ../src/guestfs.pod:2329
37368 msgid ""
37369 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
37370 "should see:"
37371 msgstr ""
37372
37373 #. type: verbatim
37374 #: ../src/guestfs.pod:2332
37375 #, fuzzy, no-wrap
37376 #| msgid ""
37377 #| " set-verbose true|false\n"
37378 #| "\n"
37379 msgid ""
37380 " verbose daemon enabled\n"
37381 "\n"
37382 msgstr ""
37383 " set-verbose true|false\n"
37384 "\n"
37385
37386 #. type: textblock
37387 #: ../src/guestfs.pod:2334
37388 msgid ""
37389 "The daemon expects to see a named virtio-serial port exposed by qemu and "
37390 "connected on the other end to the library."
37391 msgstr ""
37392
37393 #. type: textblock
37394 #: ../src/guestfs.pod:2337
37395 msgid ""
37396 "The daemon connects to this port (and hence to the library) and sends a four "
37397 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
37398 "protocol (see below)."
37399 msgstr ""
37400
37401 #. type: =head2
37402 #: ../src/guestfs.pod:2343
37403 msgid "COMMUNICATION PROTOCOL"
37404 msgstr ""
37405
37406 #. type: textblock
37407 #: ../src/guestfs.pod:2345
37408 msgid ""
37409 "Don't rely on using this protocol directly.  This section documents how it "
37410 "currently works, but it may change at any time."
37411 msgstr ""
37412
37413 #. type: textblock
37414 #: ../src/guestfs.pod:2348
37415 msgid ""
37416 "The protocol used to talk between the library and the daemon running inside "
37417 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
37418 "1014, RFC 1832, RFC 4506)."
37419 msgstr ""
37420
37421 #. type: textblock
37422 #: ../src/guestfs.pod:2352
37423 msgid ""
37424 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
37425 "this file is automatically generated)."
37426 msgstr ""
37427
37428 #. type: textblock
37429 #: ../src/guestfs.pod:2355
37430 msgid ""
37431 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
37432 "and C<FileOut> parameters, which are handled with very simple request/reply "
37433 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
37434 "parameters, which use the same request and reply messages, but they may also "
37435 "be followed by files sent using a chunked encoding."
37436 msgstr ""
37437
37438 #. type: =head3
37439 #: ../src/guestfs.pod:2362
37440 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
37441 msgstr ""
37442
37443 #. type: textblock
37444 #: ../src/guestfs.pod:2364
37445 msgid "For ordinary functions, the request message is:"
37446 msgstr ""
37447
37448 #. type: verbatim
37449 #: ../src/guestfs.pod:2366
37450 #, no-wrap
37451 msgid ""
37452 " total length (header + arguments,\n"
37453 "      but not including the length word itself)\n"
37454 " struct guestfs_message_header (encoded as XDR)\n"
37455 " struct guestfs_<foo>_args (encoded as XDR)\n"
37456 "\n"
37457 msgstr ""
37458
37459 #. type: textblock
37460 #: ../src/guestfs.pod:2371
37461 msgid ""
37462 "The total length field allows the daemon to allocate a fixed size buffer "
37463 "into which it slurps the rest of the message.  As a result, the total length "
37464 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
37465 "effective size of any request is limited to somewhere under this size."
37466 msgstr ""
37467
37468 #. type: textblock
37469 #: ../src/guestfs.pod:2377
37470 msgid ""
37471 "Note also that many functions don't take any arguments, in which case the "
37472 "C<guestfs_I<foo>_args> is completely omitted."
37473 msgstr ""
37474
37475 #. type: textblock
37476 #: ../src/guestfs.pod:2380
37477 msgid ""
37478 "The header contains the procedure number (C<guestfs_proc>) which is how the "
37479 "receiver knows what type of args structure to expect, or none at all."
37480 msgstr ""
37481
37482 #. type: textblock
37483 #: ../src/guestfs.pod:2384
37484 msgid ""
37485 "For functions that take optional arguments, the optional arguments are "
37486 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
37487 "arguments.  A bitmask in the header indicates which optional arguments are "
37488 "meaningful.  The bitmask is also checked to see if it contains bits set "
37489 "which the daemon does not know about (eg. if more optional arguments were "
37490 "added in a later version of the library), and this causes the call to be "
37491 "rejected."
37492 msgstr ""
37493
37494 #. type: textblock
37495 #: ../src/guestfs.pod:2392
37496 msgid "The reply message for ordinary functions is:"
37497 msgstr ""
37498
37499 #. type: verbatim
37500 #: ../src/guestfs.pod:2394
37501 #, no-wrap
37502 msgid ""
37503 " total length (header + ret,\n"
37504 "      but not including the length word itself)\n"
37505 " struct guestfs_message_header (encoded as XDR)\n"
37506 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37507 "\n"
37508 msgstr ""
37509
37510 #. type: textblock
37511 #: ../src/guestfs.pod:2399
37512 msgid ""
37513 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
37514 "functions that return no formal return values."
37515 msgstr ""
37516
37517 #. type: textblock
37518 #: ../src/guestfs.pod:2402
37519 msgid ""
37520 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
37521 msgstr ""
37522
37523 #. type: textblock
37524 #: ../src/guestfs.pod:2405
37525 msgid ""
37526 "In the case of an error, a flag is set in the header, and the reply message "
37527 "is slightly changed:"
37528 msgstr ""
37529
37530 #. type: verbatim
37531 #: ../src/guestfs.pod:2408
37532 #, no-wrap
37533 msgid ""
37534 " total length (header + error,\n"
37535 "      but not including the length word itself)\n"
37536 " struct guestfs_message_header (encoded as XDR)\n"
37537 " struct guestfs_message_error (encoded as XDR)\n"
37538 "\n"
37539 msgstr ""
37540
37541 #. type: textblock
37542 #: ../src/guestfs.pod:2413
37543 msgid ""
37544 "The C<guestfs_message_error> structure contains the error message as a "
37545 "string."
37546 msgstr ""
37547
37548 #. type: =head3
37549 #: ../src/guestfs.pod:2416
37550 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
37551 msgstr ""
37552
37553 #. type: textblock
37554 #: ../src/guestfs.pod:2418
37555 msgid ""
37556 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
37557 "The normal request message is sent (see above).  However this is followed by "
37558 "a sequence of file chunks."
37559 msgstr ""
37560
37561 #. type: verbatim
37562 #: ../src/guestfs.pod:2422
37563 #, no-wrap
37564 msgid ""
37565 " total length (header + arguments,\n"
37566 "      but not including the length word itself,\n"
37567 "      and not including the chunks)\n"
37568 " struct guestfs_message_header (encoded as XDR)\n"
37569 " struct guestfs_<foo>_args (encoded as XDR)\n"
37570 " sequence of chunks for FileIn param #0\n"
37571 " sequence of chunks for FileIn param #1 etc.\n"
37572 "\n"
37573 msgstr ""
37574
37575 #. type: textblock
37576 #: ../src/guestfs.pod:2430
37577 msgid "The \"sequence of chunks\" is:"
37578 msgstr ""
37579
37580 #. type: verbatim
37581 #: ../src/guestfs.pod:2432
37582 #, no-wrap
37583 msgid ""
37584 " length of chunk (not including length word itself)\n"
37585 " struct guestfs_chunk (encoded as XDR)\n"
37586 " length of chunk\n"
37587 " struct guestfs_chunk (encoded as XDR)\n"
37588 "   ...\n"
37589 " length of chunk\n"
37590 " struct guestfs_chunk (with data.data_len == 0)\n"
37591 "\n"
37592 msgstr ""
37593
37594 #. type: textblock
37595 #: ../src/guestfs.pod:2440
37596 msgid ""
37597 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
37598 "is set in the final chunk to indicate either successful completion or early "
37599 "cancellation."
37600 msgstr ""
37601
37602 #. type: textblock
37603 #: ../src/guestfs.pod:2444
37604 msgid ""
37605 "At time of writing there are no functions that have more than one FileIn "
37606 "parameter.  However this is (theoretically) supported, by sending the "
37607 "sequence of chunks for each FileIn parameter one after another (from left to "
37608 "right)."
37609 msgstr ""
37610
37611 #. type: textblock
37612 #: ../src/guestfs.pod:2449
37613 msgid ""
37614 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
37615 "transfer.  The library does this by sending a chunk with a special flag set "
37616 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
37617 "RPC, does I<not> send any reply, and goes back to reading the next request."
37618 msgstr ""
37619
37620 #. type: textblock
37621 #: ../src/guestfs.pod:2455
37622 msgid ""
37623 "The daemon may also cancel.  It does this by writing a special word "
37624 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
37625 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
37626 "cancel chunk).  The special word is chosen so that even if cancellation "
37627 "happens right at the end of the transfer (after the library has finished "
37628 "writing and has started listening for the reply), the \"spurious\" cancel "
37629 "flag will not be confused with the reply message."
37630 msgstr ""
37631
37632 #. type: textblock
37633 #: ../src/guestfs.pod:2464
37634 msgid ""
37635 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
37636 "limit), and also files where the size is not known in advance (eg. from "
37637 "pipes or sockets).  However the chunks are rather small "
37638 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
37639 "to keep much in memory."
37640 msgstr ""
37641
37642 #. type: =head3
37643 #: ../src/guestfs.pod:2470
37644 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
37645 msgstr ""
37646
37647 #. type: textblock
37648 #: ../src/guestfs.pod:2472
37649 msgid ""
37650 "The protocol for FileOut parameters is exactly the same as for FileIn "
37651 "parameters, but with the roles of daemon and library reversed."
37652 msgstr ""
37653
37654 #. type: verbatim
37655 #: ../src/guestfs.pod:2475
37656 #, no-wrap
37657 msgid ""
37658 " total length (header + ret,\n"
37659 "      but not including the length word itself,\n"
37660 "      and not including the chunks)\n"
37661 " struct guestfs_message_header (encoded as XDR)\n"
37662 " struct guestfs_<foo>_ret (encoded as XDR)\n"
37663 " sequence of chunks for FileOut param #0\n"
37664 " sequence of chunks for FileOut param #1 etc.\n"
37665 "\n"
37666 msgstr ""
37667
37668 #. type: =head3
37669 #: ../src/guestfs.pod:2483
37670 msgid "INITIAL MESSAGE"
37671 msgstr ""
37672
37673 #. type: textblock
37674 #: ../src/guestfs.pod:2485
37675 msgid ""
37676 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
37677 "which indicates that the guest and daemon is alive.  This is what L</"
37678 "guestfs_launch> waits for."
37679 msgstr ""
37680
37681 #. type: =head3
37682 #: ../src/guestfs.pod:2489
37683 msgid "PROGRESS NOTIFICATION MESSAGES"
37684 msgstr ""
37685
37686 #. type: textblock
37687 #: ../src/guestfs.pod:2491
37688 msgid ""
37689 "The daemon may send progress notification messages at any time.  These are "
37690 "distinguished by the normal length word being replaced by "
37691 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
37692 msgstr ""
37693
37694 #. type: textblock
37695 #: ../src/guestfs.pod:2495
37696 msgid ""
37697 "The library turns them into progress callbacks (see L</"
37698 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
37699 "if not."
37700 msgstr ""
37701
37702 #. type: textblock
37703 #: ../src/guestfs.pod:2499
37704 msgid ""
37705 "The daemon self-limits the frequency of progress messages it sends (see "
37706 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
37707 "messages."
37708 msgstr ""
37709
37710 #. type: =head1
37711 #: ../src/guestfs.pod:2503
37712 msgid "LIBGUESTFS VERSION NUMBERS"
37713 msgstr ""
37714
37715 #. type: textblock
37716 #: ../src/guestfs.pod:2505
37717 msgid ""
37718 "Since April 2010, libguestfs has started to make separate development and "
37719 "stable releases, along with corresponding branches in our git repository.  "
37720 "These separate releases can be identified by version number:"
37721 msgstr ""
37722
37723 #. type: verbatim
37724 #: ../src/guestfs.pod:2510
37725 #, no-wrap
37726 msgid ""
37727 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
37728 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
37729 "       |\n"
37730 "       v\n"
37731 " 1  .  3  .  5\n"
37732 " ^           ^\n"
37733 " |           |\n"
37734 " |           `-------- sub-version\n"
37735 " |\n"
37736 " `------ always '1' because we don't change the ABI\n"
37737 "\n"
37738 msgstr ""
37739
37740 #. type: textblock
37741 #: ../src/guestfs.pod:2521
37742 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
37743 msgstr ""
37744
37745 #. type: textblock
37746 #: ../src/guestfs.pod:2523
37747 msgid ""
37748 "As time passes we cherry pick fixes from the development branch and backport "
37749 "those into the stable branch, the effect being that the stable branch should "
37750 "get more stable and less buggy over time.  So the stable releases are ideal "
37751 "for people who don't need new features but would just like the software to "
37752 "work."
37753 msgstr ""
37754
37755 #. type: textblock
37756 #: ../src/guestfs.pod:2529
37757 msgid "Our criteria for backporting changes are:"
37758 msgstr ""
37759
37760 #. type: textblock
37761 #: ../src/guestfs.pod:2535
37762 msgid ""
37763 "Documentation changes which don't affect any code are backported unless the "
37764 "documentation refers to a future feature which is not in stable."
37765 msgstr ""
37766
37767 #. type: textblock
37768 #: ../src/guestfs.pod:2541
37769 msgid ""
37770 "Bug fixes which are not controversial, fix obvious problems, and have been "
37771 "well tested are backported."
37772 msgstr ""
37773
37774 #. type: textblock
37775 #: ../src/guestfs.pod:2546
37776 msgid ""
37777 "Simple rearrangements of code which shouldn't affect how it works get "
37778 "backported.  This is so that the code in the two branches doesn't get too "
37779 "far out of step, allowing us to backport future fixes more easily."
37780 msgstr ""
37781
37782 #. type: textblock
37783 #: ../src/guestfs.pod:2552
37784 msgid ""
37785 "We I<don't> backport new features, new APIs, new tools etc, except in one "
37786 "exceptional case: the new feature is required in order to implement an "
37787 "important bug fix."
37788 msgstr ""
37789
37790 #. type: textblock
37791 #: ../src/guestfs.pod:2558
37792 msgid ""
37793 "A new stable branch starts when we think the new features in development are "
37794 "substantial and compelling enough over the current stable branch to warrant "
37795 "it.  When that happens we create new stable and development versions 1.N.0 "
37796 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
37797 "stable at this point, but by backporting fixes from development, that branch "
37798 "will stabilize over time."
37799 msgstr ""
37800
37801 #. type: =head1
37802 #: ../src/guestfs.pod:2566
37803 msgid "EXTENDING LIBGUESTFS"
37804 msgstr ""
37805
37806 #. type: =head2
37807 #: ../src/guestfs.pod:2568
37808 msgid "ADDING A NEW API ACTION"
37809 msgstr ""
37810
37811 #. type: textblock
37812 #: ../src/guestfs.pod:2570
37813 msgid ""
37814 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
37815 "documentation) are generated, and this makes it easy to extend the "
37816 "libguestfs API."
37817 msgstr ""
37818
37819 #. type: textblock
37820 #: ../src/guestfs.pod:2574
37821 msgid "To add a new API action there are two changes:"
37822 msgstr ""
37823
37824 #. type: textblock
37825 #: ../src/guestfs.pod:2580
37826 msgid ""
37827 "You need to add a description of the call (name, parameters, return type, "
37828 "tests, documentation) to C<generator/generator_actions.ml>."
37829 msgstr ""
37830
37831 #. type: textblock
37832 #: ../src/guestfs.pod:2583
37833 msgid ""
37834 "There are two sorts of API action, depending on whether the call goes "
37835 "through to the daemon in the appliance, or is serviced entirely by the "
37836 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
37837 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
37838 "an example of the latter, since a trace flag is maintained in the handle and "
37839 "all tracing is done on the library side."
37840 msgstr ""
37841
37842 #. type: textblock
37843 #: ../src/guestfs.pod:2591
37844 msgid ""
37845 "Most new actions are of the first type, and get added to the "
37846 "C<daemon_functions> list.  Each function has a unique procedure number used "
37847 "in the RPC protocol which is assigned to that action when we publish "
37848 "libguestfs and cannot be reused.  Take the latest procedure number and "
37849 "increment it."
37850 msgstr ""
37851
37852 #. type: textblock
37853 #: ../src/guestfs.pod:2597
37854 msgid ""
37855 "For library-only actions of the second type, add to the "
37856 "C<non_daemon_functions> list.  Since these functions are serviced by the "
37857 "library and do not travel over the RPC mechanism to the daemon, these "
37858 "functions do not need a procedure number, and so the procedure number is set "
37859 "to C<-1>."
37860 msgstr ""
37861
37862 #. type: textblock
37863 #: ../src/guestfs.pod:2605
37864 msgid "Implement the action (in C):"
37865 msgstr ""
37866
37867 #. type: textblock
37868 #: ../src/guestfs.pod:2607
37869 msgid ""
37870 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
37871 "C<daemon/> directory."
37872 msgstr ""
37873
37874 #. type: textblock
37875 #: ../src/guestfs.pod:2610
37876 msgid ""
37877 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
37878 "(note: double underscore) in the C<src/> directory."
37879 msgstr ""
37880
37881 #. type: textblock
37882 #: ../src/guestfs.pod:2613
37883 msgid "In either case, use another function as an example of what to do."
37884 msgstr ""
37885
37886 #. type: textblock
37887 #: ../src/guestfs.pod:2617
37888 msgid "After making these changes, use C<make> to compile."
37889 msgstr ""
37890
37891 #. type: textblock
37892 #: ../src/guestfs.pod:2619
37893 msgid ""
37894 "Note that you don't need to implement the RPC, language bindings, manual "
37895 "pages or anything else.  It's all automatically generated from the OCaml "
37896 "description."
37897 msgstr ""
37898
37899 #. type: =head2
37900 #: ../src/guestfs.pod:2623
37901 msgid "ADDING TESTS FOR AN API ACTION"
37902 msgstr ""
37903
37904 #. type: textblock
37905 #: ../src/guestfs.pod:2625
37906 msgid ""
37907 "You can supply zero or as many tests as you want per API call.  The tests "
37908 "can either be added as part of the API description (C<generator/"
37909 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
37910 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
37911 "slower, so if possible use the first method."
37912 msgstr ""
37913
37914 #. type: textblock
37915 #: ../src/guestfs.pod:2631
37916 msgid ""
37917 "The following describes the test environment used when you add an API test "
37918 "in C<generator_actions.ml>."
37919 msgstr ""
37920
37921 #. type: textblock
37922 #: ../src/guestfs.pod:2634
37923 msgid "The test environment has 4 block devices:"
37924 msgstr ""
37925
37926 #. type: =item
37927 #: ../src/guestfs.pod:2638
37928 msgid "C</dev/sda> 500MB"
37929 msgstr "C</dev/sda> 500 МБ"
37930
37931 #. type: textblock
37932 #: ../src/guestfs.pod:2640
37933 msgid "General block device for testing."
37934 msgstr ""
37935
37936 #. type: =item
37937 #: ../src/guestfs.pod:2642
37938 msgid "C</dev/sdb> 50MB"
37939 msgstr "C</dev/sdb> 50 МБ"
37940
37941 #. type: textblock
37942 #: ../src/guestfs.pod:2644
37943 msgid ""
37944 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
37945 "operations."
37946 msgstr ""
37947
37948 #. type: =item
37949 #: ../src/guestfs.pod:2647
37950 msgid "C</dev/sdc> 10MB"
37951 msgstr "C</dev/sdc> 10 МБ"
37952
37953 #. type: textblock
37954 #: ../src/guestfs.pod:2649
37955 msgid "Used in a few tests where two block devices are needed."
37956 msgstr ""
37957
37958 #. type: =item
37959 #: ../src/guestfs.pod:2651
37960 msgid "C</dev/sdd>"
37961 msgstr "C</dev/sdd>"
37962
37963 #. type: textblock
37964 #: ../src/guestfs.pod:2653
37965 msgid "ISO with fixed content (see C<images/test.iso>)."
37966 msgstr ""
37967
37968 #. type: textblock
37969 #: ../src/guestfs.pod:2657
37970 msgid ""
37971 "To be able to run the tests in a reasonable amount of time, the libguestfs "
37972 "appliance and block devices are reused between tests.  So don't try testing "
37973 "L</guestfs_kill_subprocess> :-x"
37974 msgstr ""
37975
37976 #. type: textblock
37977 #: ../src/guestfs.pod:2661
37978 msgid ""
37979 "Each test starts with an initial scenario, selected using one of the "
37980 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
37981 "initialize the disks mentioned above in a particular way as documented in "
37982 "C<generator_types.ml>.  You should not assume anything about the previous "
37983 "contents of other disks that are not initialized."
37984 msgstr ""
37985
37986 #. type: textblock
37987 #: ../src/guestfs.pod:2667
37988 msgid ""
37989 "You can add a prerequisite clause to any individual test.  This is a run-"
37990 "time check, which, if it fails, causes the test to be skipped.  Useful if "
37991 "testing a command which might not work on all variations of libguestfs "
37992 "builds.  A test that has prerequisite of C<Always> means to run "
37993 "unconditionally."
37994 msgstr ""
37995
37996 #. type: textblock
37997 #: ../src/guestfs.pod:2673
37998 msgid ""
37999 "In addition, packagers can skip individual tests by setting environment "
38000 "variables before running C<make check>."
38001 msgstr ""
38002
38003 #. type: verbatim
38004 #: ../src/guestfs.pod:2676
38005 #, no-wrap
38006 msgid ""
38007 " SKIP_TEST_<CMD>_<NUM>=1\n"
38008 "\n"
38009 msgstr ""
38010
38011 #. type: textblock
38012 #: ../src/guestfs.pod:2678
38013 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
38014 msgstr ""
38015
38016 #. type: textblock
38017 #: ../src/guestfs.pod:2680
38018 msgid "or:"
38019 msgstr "або:"
38020
38021 #. type: verbatim
38022 #: ../src/guestfs.pod:2682
38023 #, no-wrap
38024 msgid ""
38025 " SKIP_TEST_<CMD>=1\n"
38026 "\n"
38027 msgstr ""
38028
38029 #. type: textblock
38030 #: ../src/guestfs.pod:2684
38031 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
38032 msgstr ""
38033
38034 #. type: textblock
38035 #: ../src/guestfs.pod:2686
38036 msgid "Packagers can run only certain tests by setting for example:"
38037 msgstr ""
38038
38039 #. type: verbatim
38040 #: ../src/guestfs.pod:2688
38041 #, no-wrap
38042 msgid ""
38043 " TEST_ONLY=\"vfs_type zerofree\"\n"
38044 "\n"
38045 msgstr ""
38046
38047 #. type: textblock
38048 #: ../src/guestfs.pod:2690
38049 msgid ""
38050 "See C<capitests/tests.c> for more details of how these environment variables "
38051 "work."
38052 msgstr ""
38053
38054 #. type: =head2
38055 #: ../src/guestfs.pod:2693
38056 msgid "DEBUGGING NEW API ACTIONS"
38057 msgstr ""
38058
38059 #. type: textblock
38060 #: ../src/guestfs.pod:2695
38061 msgid "Test new actions work before submitting them."
38062 msgstr ""
38063
38064 #. type: textblock
38065 #: ../src/guestfs.pod:2697
38066 msgid "You can use guestfish to try out new commands."
38067 msgstr ""
38068
38069 #. type: textblock
38070 #: ../src/guestfs.pod:2699
38071 msgid ""
38072 "Debugging the daemon is a problem because it runs inside a minimal "
38073 "environment.  However you can fprintf messages in the daemon to stderr, and "
38074 "they will show up if you use C<guestfish -v>."
38075 msgstr ""
38076
38077 #. type: =head2
38078 #: ../src/guestfs.pod:2703
38079 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
38080 msgstr ""
38081
38082 #. type: textblock
38083 #: ../src/guestfs.pod:2705
38084 msgid ""
38085 "Our C source code generally adheres to some basic code-formatting "
38086 "conventions.  The existing code base is not totally consistent on this "
38087 "front, but we do prefer that contributed code be formatted similarly.  In "
38088 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
38089 "indentation level, and other than that, follow the K&R style."
38090 msgstr ""
38091
38092 #. type: textblock
38093 #: ../src/guestfs.pod:2711
38094 msgid ""
38095 "If you use Emacs, add the following to one of one of your start-up files (e."
38096 "g., ~/.emacs), to help ensure that you get indentation right:"
38097 msgstr ""
38098
38099 #. type: verbatim
38100 #: ../src/guestfs.pod:2714
38101 #, no-wrap
38102 msgid ""
38103 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
38104 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
38105 " (add-hook 'find-file-hook\n"
38106 "     '(lambda () (if (and buffer-file-name\n"
38107 "                          (string-match \"/libguestfs\\\\>\"\n"
38108 "                              (buffer-file-name))\n"
38109 "                          (not (string-equal mode-name \"Change Log\"))\n"
38110 "                          (not (string-equal mode-name \"Makefile\")))\n"
38111 "                     (setq indent-tabs-mode nil))))\n"
38112 " \n"
38113 msgstr ""
38114
38115 #. type: verbatim
38116 #: ../src/guestfs.pod:2724
38117 #, no-wrap
38118 msgid ""
38119 " ;;; When editing C sources in libguestfs, use this style.\n"
38120 " (defun libguestfs-c-mode ()\n"
38121 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
38122 "   (interactive)\n"
38123 "   (c-set-style \"K&R\")\n"
38124 "   (setq c-indent-level 2)\n"
38125 "   (setq c-basic-offset 2))\n"
38126 " (add-hook 'c-mode-hook\n"
38127 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
38128 "                               (buffer-file-name))\n"
38129 "                           (libguestfs-c-mode))))\n"
38130 "\n"
38131 msgstr ""
38132
38133 #. type: textblock
38134 #: ../src/guestfs.pod:2736
38135 msgid "Enable warnings when compiling (and fix any problems this finds):"
38136 msgstr ""
38137
38138 #. type: verbatim
38139 #: ../src/guestfs.pod:2739
38140 #, no-wrap
38141 msgid ""
38142 " ./configure --enable-gcc-warnings\n"
38143 "\n"
38144 msgstr ""
38145 " ./configure --enable-gcc-warnings\n"
38146 "\n"
38147
38148 #. type: textblock
38149 #: ../src/guestfs.pod:2741
38150 msgid "Useful targets are:"
38151 msgstr ""
38152
38153 #. type: verbatim
38154 #: ../src/guestfs.pod:2743
38155 #, no-wrap
38156 msgid ""
38157 " make syntax-check  # checks the syntax of the C code\n"
38158 " make check         # runs the test suite\n"
38159 "\n"
38160 msgstr ""
38161
38162 #. type: =head2
38163 #: ../src/guestfs.pod:2746
38164 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
38165 msgstr ""
38166
38167 #. type: textblock
38168 #: ../src/guestfs.pod:2748
38169 msgid ""
38170 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
38171 "which are used to do shell quoting."
38172 msgstr ""
38173
38174 #. type: =item
38175 #: ../src/guestfs.pod:2753
38176 msgid "%Q"
38177 msgstr "%Q"
38178
38179 #. type: textblock
38180 #: ../src/guestfs.pod:2755
38181 msgid ""
38182 "Simple shell quoted string.  Any spaces or other shell characters are "
38183 "escaped for you."
38184 msgstr ""
38185
38186 #. type: =item
38187 #: ../src/guestfs.pod:2758
38188 msgid "%R"
38189 msgstr "%R"
38190
38191 #. type: textblock
38192 #: ../src/guestfs.pod:2760
38193 msgid ""
38194 "Same as C<%Q> except the string is treated as a path which is prefixed by "
38195 "the sysroot."
38196 msgstr ""
38197
38198 #. type: verbatim
38199 #: ../src/guestfs.pod:2767
38200 #, no-wrap
38201 msgid ""
38202 " asprintf (&cmd, \"cat %R\", path);\n"
38203 "\n"
38204 msgstr ""
38205
38206 #. type: textblock
38207 #: ../src/guestfs.pod:2769
38208 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
38209 msgstr ""
38210
38211 #. type: textblock
38212 #: ../src/guestfs.pod:2771
38213 msgid ""
38214 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
38215 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
38216 "they are not passed via the shell (instead, straight to exec).  You probably "
38217 "want to use the C<sysroot_path()> function however."
38218 msgstr ""
38219
38220 #. type: =head2
38221 #: ../src/guestfs.pod:2777
38222 msgid "SUBMITTING YOUR NEW API ACTIONS"
38223 msgstr ""
38224
38225 #. type: textblock
38226 #: ../src/guestfs.pod:2779
38227 msgid ""
38228 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
38229 "libguestfs> and CC to L<rjones@redhat.com>."
38230 msgstr ""
38231
38232 #. type: =head2
38233 #: ../src/guestfs.pod:2783
38234 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
38235 msgstr ""
38236
38237 #. type: textblock
38238 #: ../src/guestfs.pod:2785
38239 msgid "We support i18n (gettext anyhow) in the library."
38240 msgstr ""
38241
38242 #. type: textblock
38243 #: ../src/guestfs.pod:2787
38244 msgid ""
38245 "However many messages come from the daemon, and we don't translate those at "
38246 "the moment.  One reason is that the appliance generally has all locale files "
38247 "removed from it, because they take up a lot of space.  So we'd have to readd "
38248 "some of those, as well as copying our PO files into the appliance."
38249 msgstr ""
38250
38251 #. type: textblock
38252 #: ../src/guestfs.pod:2793
38253 msgid ""
38254 "Debugging messages are never translated, since they are intended for the "
38255 "programmers."
38256 msgstr ""
38257
38258 #. type: =head2
38259 #: ../src/guestfs.pod:2796
38260 msgid "SOURCE CODE SUBDIRECTORIES"
38261 msgstr ""
38262
38263 #. type: textblock
38264 #: ../src/guestfs.pod:2802
38265 msgid "The libguestfs appliance, build scripts and so on."
38266 msgstr ""
38267
38268 #. type: =item
38269 #: ../src/guestfs.pod:2804
38270 msgid "C<capitests>"
38271 msgstr "C<capitests>"
38272
38273 #. type: textblock
38274 #: ../src/guestfs.pod:2806
38275 msgid "Automated tests of the C API."
38276 msgstr ""
38277
38278 #. type: =item
38279 #: ../src/guestfs.pod:2808
38280 msgid "C<cat>"
38281 msgstr "C<cat>"
38282
38283 #. type: textblock
38284 #: ../src/guestfs.pod:2810
38285 msgid ""
38286 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
38287 "documentation."
38288 msgstr ""
38289
38290 #. type: =item
38291 #: ../src/guestfs.pod:2813
38292 msgid "C<caution>"
38293 msgstr ""
38294
38295 #. type: textblock
38296 #: ../src/guestfs.pod:2815
38297 msgid ""
38298 "Safety and liveness tests of components that libguestfs depends upon (not of "
38299 "libguestfs itself).  Mainly this is for qemu and the kernel."
38300 msgstr ""
38301
38302 #. type: =item
38303 #: ../src/guestfs.pod:2818
38304 msgid "C<contrib>"
38305 msgstr "C<contrib>"
38306
38307 #. type: textblock
38308 #: ../src/guestfs.pod:2820
38309 msgid "Outside contributions, experimental parts."
38310 msgstr ""
38311
38312 #. type: =item
38313 #: ../src/guestfs.pod:2822
38314 msgid "C<daemon>"
38315 msgstr "C<daemon>"
38316
38317 #. type: textblock
38318 #: ../src/guestfs.pod:2824
38319 msgid ""
38320 "The daemon that runs inside the libguestfs appliance and carries out actions."
38321 msgstr ""
38322
38323 #. type: =item
38324 #: ../src/guestfs.pod:2827
38325 msgid "C<df>"
38326 msgstr "C<df>"
38327
38328 #. type: textblock
38329 #: ../src/guestfs.pod:2829
38330 msgid "L<virt-df(1)> command and documentation."
38331 msgstr ""
38332
38333 #. type: =item
38334 #: ../src/guestfs.pod:2831
38335 msgid "C<edit>"
38336 msgstr ""
38337
38338 #. type: textblock
38339 #: ../src/guestfs.pod:2833
38340 msgid "L<virt-edit(1)> command and documentation."
38341 msgstr ""
38342
38343 #. type: =item
38344 #: ../src/guestfs.pod:2835
38345 msgid "C<examples>"
38346 msgstr "C<examples>"
38347
38348 #. type: textblock
38349 #: ../src/guestfs.pod:2837
38350 msgid "C API example code."
38351 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
38352
38353 #. type: =item
38354 #: ../src/guestfs.pod:2839
38355 msgid "C<fish>"
38356 msgstr "C<fish>"
38357
38358 #. type: textblock
38359 #: ../src/guestfs.pod:2841
38360 msgid ""
38361 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
38362 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
38363 "L<virt-tar-out(1)>."
38364 msgstr ""
38365
38366 #. type: =item
38367 #: ../src/guestfs.pod:2845
38368 msgid "C<fuse>"
38369 msgstr "C<fuse>"
38370
38371 #. type: textblock
38372 #: ../src/guestfs.pod:2847
38373 msgid ""
38374 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
38375 msgstr ""
38376
38377 #. type: =item
38378 #: ../src/guestfs.pod:2849
38379 msgid "C<generator>"
38380 msgstr "C<generator>"
38381
38382 #. type: textblock
38383 #: ../src/guestfs.pod:2851
38384 msgid ""
38385 "The crucially important generator, used to automatically generate large "
38386 "amounts of boilerplate C code for things like RPC and bindings."
38387 msgstr ""
38388
38389 #. type: =item
38390 #: ../src/guestfs.pod:2854
38391 msgid "C<images>"
38392 msgstr "C<images>"
38393
38394 #. type: textblock
38395 #: ../src/guestfs.pod:2856
38396 msgid "Files used by the test suite."
38397 msgstr ""
38398
38399 #. type: textblock
38400 #: ../src/guestfs.pod:2858
38401 msgid "Some \"phony\" guest images which we test against."
38402 msgstr ""
38403
38404 #. type: =item
38405 #: ../src/guestfs.pod:2860
38406 msgid "C<inspector>"
38407 msgstr "C<inspector>"
38408
38409 #. type: textblock
38410 #: ../src/guestfs.pod:2862
38411 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
38412 msgstr ""
38413
38414 #. type: =item
38415 #: ../src/guestfs.pod:2864
38416 msgid "C<logo>"
38417 msgstr "C<logo>"
38418
38419 #. type: textblock
38420 #: ../src/guestfs.pod:2866
38421 msgid "Logo used on the website.  The fish is called Arthur by the way."
38422 msgstr ""
38423
38424 #. type: =item
38425 #: ../src/guestfs.pod:2868
38426 msgid "C<m4>"
38427 msgstr "C<m4>"
38428
38429 #. type: textblock
38430 #: ../src/guestfs.pod:2870
38431 msgid "M4 macros used by autoconf."
38432 msgstr ""
38433
38434 #. type: =item
38435 #: ../src/guestfs.pod:2872
38436 msgid "C<po>"
38437 msgstr "C<po>"
38438
38439 #. type: textblock
38440 #: ../src/guestfs.pod:2874
38441 msgid "Translations of simple gettext strings."
38442 msgstr "Переклади простих рядків gettext."
38443
38444 #. type: =item
38445 #: ../src/guestfs.pod:2876
38446 msgid "C<po-docs>"
38447 msgstr "C<po-docs>"
38448
38449 #. type: textblock
38450 #: ../src/guestfs.pod:2878
38451 msgid ""
38452 "The build infrastructure and PO files for translations of manpages and POD "
38453 "files.  Eventually this will be combined with the C<po> directory, but that "
38454 "is rather complicated."
38455 msgstr ""
38456
38457 #. type: =item
38458 #: ../src/guestfs.pod:2882
38459 msgid "C<regressions>"
38460 msgstr "C<regressions>"
38461
38462 #. type: textblock
38463 #: ../src/guestfs.pod:2884
38464 msgid "Regression tests."
38465 msgstr "Тести на регресії."
38466
38467 #. type: =item
38468 #: ../src/guestfs.pod:2886
38469 msgid "C<rescue>"
38470 msgstr "C<rescue>"
38471
38472 #. type: textblock
38473 #: ../src/guestfs.pod:2888
38474 msgid "L<virt-rescue(1)> command and documentation."
38475 msgstr ""
38476
38477 #. type: =item
38478 #: ../src/guestfs.pod:2890
38479 msgid "C<src>"
38480 msgstr "C<src>"
38481
38482 #. type: textblock
38483 #: ../src/guestfs.pod:2892
38484 msgid "Source code to the C library."
38485 msgstr ""
38486
38487 #. type: =item
38488 #: ../src/guestfs.pod:2894
38489 msgid "C<tools>"
38490 msgstr "C<tools>"
38491
38492 #. type: textblock
38493 #: ../src/guestfs.pod:2896
38494 msgid "Command line tools written in Perl (L<virt-resize(1)> and many others)."
38495 msgstr ""
38496
38497 #. type: =item
38498 #: ../src/guestfs.pod:2898
38499 msgid "C<test-tool>"
38500 msgstr "C<test-tool>"
38501
38502 #. type: textblock
38503 #: ../src/guestfs.pod:2900
38504 msgid ""
38505 "Test tool for end users to test if their qemu/kernel combination will work "
38506 "with libguestfs."
38507 msgstr ""
38508
38509 #. type: =item
38510 #: ../src/guestfs.pod:2903
38511 msgid "C<csharp>"
38512 msgstr "C<csharp>"
38513
38514 #. type: =item
38515 #: ../src/guestfs.pod:2905
38516 msgid "C<erlang>"
38517 msgstr ""
38518
38519 #. type: =item
38520 #: ../src/guestfs.pod:2907
38521 msgid "C<haskell>"
38522 msgstr "C<haskell>"
38523
38524 #. type: =item
38525 #: ../src/guestfs.pod:2909
38526 msgid "C<java>"
38527 msgstr "C<java>"
38528
38529 #. type: =item
38530 #: ../src/guestfs.pod:2911
38531 msgid "C<ocaml>"
38532 msgstr "C<ocaml>"
38533
38534 #. type: =item
38535 #: ../src/guestfs.pod:2913
38536 msgid "C<php>"
38537 msgstr "C<php>"
38538
38539 #. type: =item
38540 #: ../src/guestfs.pod:2915
38541 msgid "C<perl>"
38542 msgstr "C<perl>"
38543
38544 #. type: =item
38545 #: ../src/guestfs.pod:2917
38546 msgid "C<python>"
38547 msgstr "C<python>"
38548
38549 #. type: =item
38550 #: ../src/guestfs.pod:2919
38551 msgid "C<ruby>"
38552 msgstr "C<ruby>"
38553
38554 #. type: textblock
38555 #: ../src/guestfs.pod:2921
38556 msgid "Language bindings."
38557 msgstr "Прив’язки до мов програмування."
38558
38559 #. type: =head2
38560 #: ../src/guestfs.pod:2925
38561 msgid "MAKING A STABLE RELEASE"
38562 msgstr ""
38563
38564 #. type: textblock
38565 #: ../src/guestfs.pod:2927
38566 msgid ""
38567 "When we make a stable release, there are several steps documented here.  See "
38568 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
38569 "branch policy."
38570 msgstr ""
38571
38572 #. type: textblock
38573 #: ../src/guestfs.pod:2935
38574 msgid ""
38575 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
38576 msgstr ""
38577
38578 #. type: textblock
38579 #: ../src/guestfs.pod:2940
38580 msgid "Finalize RELEASE-NOTES."
38581 msgstr ""
38582
38583 #. type: textblock
38584 #: ../src/guestfs.pod:2944
38585 msgid "Update ROADMAP."
38586 msgstr ""
38587
38588 #. type: textblock
38589 #: ../src/guestfs.pod:2948
38590 msgid "Run C<src/api-support/update-from-tarballs.sh>."
38591 msgstr ""
38592
38593 #. type: textblock
38594 #: ../src/guestfs.pod:2952
38595 msgid "Push and pull from Transifex."
38596 msgstr ""
38597
38598 #. type: textblock
38599 #: ../src/guestfs.pod:2954
38600 msgid "Run:"
38601 msgstr ""
38602
38603 #. type: verbatim
38604 #: ../src/guestfs.pod:2956
38605 #, no-wrap
38606 msgid ""
38607 " tx push -s\n"
38608 "\n"
38609 msgstr ""
38610
38611 #. type: textblock
38612 #: ../src/guestfs.pod:2958
38613 msgid "to push the latest POT files to Transifex.  Then run:"
38614 msgstr ""
38615
38616 #. type: verbatim
38617 #: ../src/guestfs.pod:2960
38618 #, no-wrap
38619 msgid ""
38620 " ./tx-pull.sh\n"
38621 "\n"
38622 msgstr ""
38623
38624 #. type: textblock
38625 #: ../src/guestfs.pod:2962
38626 msgid "which is a wrapper to pull the latest translated C<*.po> files."
38627 msgstr ""
38628
38629 #. type: textblock
38630 #: ../src/guestfs.pod:2966
38631 msgid ""
38632 "Create new stable and development directories under L<http://libguestfs.org/"
38633 "download>."
38634 msgstr ""
38635
38636 #. type: textblock
38637 #: ../src/guestfs.pod:2971
38638 msgid "Create the branch in git:"
38639 msgstr ""
38640
38641 #. type: verbatim
38642 #: ../src/guestfs.pod:2973
38643 #, no-wrap
38644 msgid ""
38645 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
38646 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
38647 " git branch stable-1.XX\n"
38648 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
38649 "\n"
38650 msgstr ""
38651
38652 #. type: =head1
38653 #: ../src/guestfs.pod:2980
38654 msgid "LIMITS"
38655 msgstr ""
38656
38657 #. type: =head2
38658 #: ../src/guestfs.pod:2982
38659 msgid "PROTOCOL LIMITS"
38660 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
38661
38662 #. type: textblock
38663 #: ../src/guestfs.pod:2984
38664 msgid ""
38665 "Internally libguestfs uses a message-based protocol to pass API calls and "
38666 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
38667 "plenty more detail about this).  The maximum message size used by the "
38668 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
38669 "aware of this limit.  The API calls which may be affected are individually "
38670 "documented, with a link back to this section of the documentation."
38671 msgstr ""
38672
38673 #. type: textblock
38674 #: ../src/guestfs.pod:2992
38675 msgid ""
38676 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
38677 "a simple string.  Because this string is at some point internally encoded as "
38678 "a message, the maximum size that it can return is slightly under 4 MB.  If "
38679 "the requested file is larger than this then you will get an error."
38680 msgstr ""
38681
38682 #. type: textblock
38683 #: ../src/guestfs.pod:2998
38684 msgid ""
38685 "In order to transfer large files into and out of the guest filesystem, you "
38686 "need to use particular calls that support this.  The sections L</UPLOADING> "
38687 "and L</DOWNLOADING> document how to do this."
38688 msgstr ""
38689
38690 #. type: textblock
38691 #: ../src/guestfs.pod:3002
38692 msgid ""
38693 "You might also consider mounting the disk image using our FUSE filesystem "
38694 "support (L<guestmount(1)>)."
38695 msgstr ""
38696
38697 #. type: =head2
38698 #: ../src/guestfs.pod:3005
38699 msgid "MAXIMUM NUMBER OF DISKS"
38700 msgstr ""
38701
38702 #. type: textblock
38703 #: ../src/guestfs.pod:3007
38704 msgid "When using virtio disks (the default) the current limit is B<25> disks."
38705 msgstr ""
38706
38707 #. type: textblock
38708 #: ../src/guestfs.pod:3010
38709 msgid ""
38710 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
38711 "slots.  However febootstrap only understands disks with names C</dev/vda> "
38712 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
38713 "purposes."
38714 msgstr ""
38715
38716 #. type: textblock
38717 #: ../src/guestfs.pod:3015
38718 msgid ""
38719 "We are working to substantially raise this limit in future versions but it "
38720 "requires complex changes to qemu."
38721 msgstr ""
38722
38723 #. type: textblock
38724 #: ../src/guestfs.pod:3018
38725 msgid ""
38726 "In future versions of libguestfs it should also be possible to \"hot plug\" "
38727 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
38728 "requires changes to qemu."
38729 msgstr ""
38730
38731 #. type: =head2
38732 #: ../src/guestfs.pod:3022
38733 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
38734 msgstr ""
38735
38736 #. type: textblock
38737 #: ../src/guestfs.pod:3024
38738 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
38739 msgstr ""
38740
38741 #. type: textblock
38742 #: ../src/guestfs.pod:3026
38743 msgid ""
38744 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
38745 "vda>, and C</dev/vda1> through C</dev/vda15>)."
38746 msgstr ""
38747
38748 #. type: textblock
38749 #: ../src/guestfs.pod:3029
38750 msgid ""
38751 "If you attach a disk with more than 15 partitions, the extra partitions are "
38752 "ignored by libguestfs."
38753 msgstr ""
38754
38755 #. type: =head2
38756 #: ../src/guestfs.pod:3032
38757 msgid "MAXIMUM SIZE OF A DISK"
38758 msgstr ""
38759
38760 #. type: textblock
38761 #: ../src/guestfs.pod:3034
38762 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
38763 msgstr ""
38764
38765 #. type: textblock
38766 #: ../src/guestfs.pod:3036
38767 msgid ""
38768 "We have tested block devices up to 1 exabyte (2**60 or "
38769 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
38770 "filesystem."
38771 msgstr ""
38772
38773 #. type: textblock
38774 #: ../src/guestfs.pod:3040
38775 msgid ""
38776 "Although libguestfs probably does not impose any limit, the underlying host "
38777 "storage will.  If you store disk images on a host ext4 filesystem, then the "
38778 "maximum size will be limited by the maximum ext4 file size (currently 16 "
38779 "TB).  If you store disk images as host logical volumes then you are limited "
38780 "by the maximum size of an LV."
38781 msgstr ""
38782
38783 #. type: textblock
38784 #: ../src/guestfs.pod:3046
38785 msgid ""
38786 "For the hugest disk image files, we recommend using XFS on the host for "
38787 "storage."
38788 msgstr ""
38789
38790 #. type: =head2
38791 #: ../src/guestfs.pod:3049
38792 msgid "MAXIMUM SIZE OF A PARTITION"
38793 msgstr ""
38794
38795 #. type: textblock
38796 #: ../src/guestfs.pod:3051
38797 msgid ""
38798 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
38799 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
38800 "address a partition located beyond 2 TB on the disk."
38801 msgstr ""
38802
38803 #. type: textblock
38804 #: ../src/guestfs.pod:3055
38805 msgid ""
38806 "It is recommended that you use GPT partitions on disks which are larger than "
38807 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
38808 "which are theoretically larger than the largest disk we could support."
38809 msgstr ""
38810
38811 #. type: =head2
38812 #: ../src/guestfs.pod:3060
38813 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
38814 msgstr ""
38815
38816 #. type: textblock
38817 #: ../src/guestfs.pod:3062
38818 msgid ""
38819 "This depends on the filesystem type.  libguestfs itself does not impose any "
38820 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
38821 "what these limits are."
38822 msgstr ""
38823
38824 #. type: =head2
38825 #: ../src/guestfs.pod:3066
38826 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
38827 msgstr ""
38828
38829 #. type: textblock
38830 #: ../src/guestfs.pod:3068
38831 msgid ""
38832 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
38833 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
38834 "uploads and downloads."
38835 msgstr ""
38836
38837 #. type: =head2
38838 #: ../src/guestfs.pod:3072
38839 msgid "INSPECTION LIMITS"
38840 msgstr ""
38841
38842 #. type: textblock
38843 #: ../src/guestfs.pod:3074
38844 msgid ""
38845 "The inspection code has several arbitrary limits on things like the size of "
38846 "Windows Registry hive it will read, and the length of product name.  These "
38847 "are intended to stop a malicious guest from consuming arbitrary amounts of "
38848 "memory and disk space on the host, and should not be reached in practice.  "
38849 "See the source code for more information."
38850 msgstr ""
38851
38852 #. type: textblock
38853 #: ../src/guestfs.pod:3100
38854 msgid ""
38855 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
38856 "effect as calling C<guestfs_set_verbose (g, 1)>."
38857 msgstr ""
38858
38859 #. type: textblock
38860 #: ../src/guestfs.pod:3112
38861 msgid ""
38862 "Set the path that libguestfs uses to search for a supermin appliance.  See "
38863 "the discussion of paths in section L</PATH> above."
38864 msgstr ""
38865
38866 #. type: textblock
38867 #: ../src/guestfs.pod:3121
38868 msgid "See also L</QEMU WRAPPERS> above."
38869 msgstr ""
38870
38871 #. type: textblock
38872 #: ../src/guestfs.pod:3125
38873 msgid ""
38874 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
38875 "effect as calling C<guestfs_set_trace (g, 1)>."
38876 msgstr ""
38877
38878 #. type: textblock
38879 #: ../src/guestfs.pod:3143
38880 msgid ""
38881 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
38882 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
38883 "L<guestfish(1)>, L<guestmount(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, "
38884 "L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, L<virt-filesystems(1)>, "
38885 "L<virt-inspector(1)>, L<virt-list-filesystems(1)>, L<virt-list-partitions(1)"
38886 ">, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue(1)>, L<virt-tar(1)>, "
38887 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
38888 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://"
38889 "libguestfs.org/>."
38890 msgstr ""
38891
38892 #. type: textblock
38893 #: ../src/guestfs.pod:3174
38894 msgid ""
38895 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
38896 "(8)>, L<disktype(1)>."
38897 msgstr ""
38898
38899 #. type: =head1
38900 #: ../src/guestfs.pod:3181 ../tools/virt-make-fs.pl:553
38901 #: ../tools/virt-win-reg.pl:761
38902 msgid "BUGS"
38903 msgstr "ВАДИ"
38904
38905 #. type: textblock
38906 #: ../src/guestfs.pod:3183
38907 msgid "To get a list of bugs against libguestfs use this link:"
38908 msgstr ""
38909 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
38910 "посиланням:"
38911
38912 #. type: textblock
38913 #: ../src/guestfs.pod:3185
38914 msgid ""
38915 "L<https://bugzilla.redhat.com/buglist.cgi?"
38916 "component=libguestfs&product=Virtualization+Tools>"
38917 msgstr ""
38918 "L<https://bugzilla.redhat.com/buglist.cgi?"
38919 "component=libguestfs&product=Virtualization+Tools>"
38920
38921 #. type: textblock
38922 #: ../src/guestfs.pod:3187
38923 msgid "To report a new bug against libguestfs use this link:"
38924 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
38925
38926 #. type: textblock
38927 #: ../src/guestfs.pod:3189
38928 msgid ""
38929 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38930 "component=libguestfs&product=Virtualization+Tools>"
38931 msgstr ""
38932 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
38933 "component=libguestfs&product=Virtualization+Tools>"
38934
38935 #. type: textblock
38936 #: ../src/guestfs.pod:3191
38937 msgid "When reporting a bug, please check:"
38938 msgstr ""
38939
38940 #. type: textblock
38941 #: ../src/guestfs.pod:3197
38942 msgid "That the bug hasn't been reported already."
38943 msgstr ""
38944
38945 #. type: textblock
38946 #: ../src/guestfs.pod:3201
38947 msgid "That you are testing a recent version."
38948 msgstr ""
38949
38950 #. type: textblock
38951 #: ../src/guestfs.pod:3205
38952 msgid "Describe the bug accurately, and give a way to reproduce it."
38953 msgstr ""
38954
38955 #. type: textblock
38956 #: ../src/guestfs.pod:3209
38957 msgid ""
38958 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
38959 "bug report."
38960 msgstr ""
38961
38962 #. type: textblock
38963 #: ../test-tool/libguestfs-test-tool.pod:5
38964 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
38965 msgstr ""
38966
38967 #. type: verbatim
38968 #: ../test-tool/libguestfs-test-tool.pod:9
38969 #, no-wrap
38970 msgid ""
38971 " libguestfs-test-tool [--options]\n"
38972 "\n"
38973 msgstr ""
38974
38975 #. type: textblock
38976 #: ../test-tool/libguestfs-test-tool.pod:13
38977 msgid ""
38978 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
38979 "to check basic libguestfs functionality is working.  This is needed because "
38980 "libguestfs occasionally breaks for reasons beyond our control: usually "
38981 "because of changes in the underlying qemu or kernel packages, or the host "
38982 "environment."
38983 msgstr ""
38984
38985 #. type: textblock
38986 #: ../test-tool/libguestfs-test-tool.pod:19
38987 msgid "If you suspect a problem in libguestfs, then just run:"
38988 msgstr ""
38989
38990 #. type: verbatim
38991 #: ../test-tool/libguestfs-test-tool.pod:21
38992 #, no-wrap
38993 msgid ""
38994 " libguestfs-test-tool\n"
38995 "\n"
38996 msgstr ""
38997
38998 #. type: textblock
38999 #: ../test-tool/libguestfs-test-tool.pod:23
39000 msgid "It will print lots of diagnostic messages."
39001 msgstr ""
39002
39003 #. type: textblock
39004 #: ../test-tool/libguestfs-test-tool.pod:25
39005 msgid "If it runs to completion successfully, you will see this near the end:"
39006 msgstr ""
39007
39008 #. type: verbatim
39009 #: ../test-tool/libguestfs-test-tool.pod:27
39010 #, no-wrap
39011 msgid ""
39012 " ===== TEST FINISHED OK =====\n"
39013 "\n"
39014 msgstr ""
39015
39016 #. type: textblock
39017 #: ../test-tool/libguestfs-test-tool.pod:29
39018 msgid "and the test tool will exit with code 0."
39019 msgstr ""
39020
39021 #. type: textblock
39022 #: ../test-tool/libguestfs-test-tool.pod:31
39023 msgid ""
39024 "If it fails (and/or exits with non-zero error code), please paste the "
39025 "I<complete, unedited> output of the test tool into a bug report.  More "
39026 "information about reporting bugs can be found on the L<http://libguestfs.org/"
39027 "> website."
39028 msgstr ""
39029
39030 #. type: textblock
39031 #: ../test-tool/libguestfs-test-tool.pod:42
39032 msgid "Display short usage information and exit."
39033 msgstr ""
39034
39035 #. type: =item
39036 #: ../test-tool/libguestfs-test-tool.pod:44
39037 #, fuzzy
39038 #| msgid "I<--qemu qemu_binary>"
39039 msgid "B<--qemu qemu_binary>"
39040 msgstr "I<--qemu виконуваний_файл_qemu>"
39041
39042 #. type: textblock
39043 #: ../test-tool/libguestfs-test-tool.pod:46
39044 msgid ""
39045 "If you have downloaded another qemu binary, point this option at the full "
39046 "path of the binary to try it."
39047 msgstr ""
39048
39049 #. type: =item
39050 #: ../test-tool/libguestfs-test-tool.pod:49
39051 #, fuzzy
39052 #| msgid "I<--qemu qemu_binary>"
39053 msgid "B<--qemudir qemu_source_dir>"
39054 msgstr "I<--qemu виконуваний_файл_qemu>"
39055
39056 #. type: textblock
39057 #: ../test-tool/libguestfs-test-tool.pod:51
39058 msgid ""
39059 "If you have compiled qemu from source, point this option at the source "
39060 "directory to try it."
39061 msgstr ""
39062
39063 #. type: =item
39064 #: ../test-tool/libguestfs-test-tool.pod:54
39065 msgid "B<-t N>"
39066 msgstr ""
39067
39068 #. type: =item
39069 #: ../test-tool/libguestfs-test-tool.pod:56
39070 #, fuzzy
39071 #| msgid "I<--timeout N>"
39072 msgid "B<--timeout N>"
39073 msgstr "I<--timeout N>"
39074
39075 #. type: textblock
39076 #: ../test-tool/libguestfs-test-tool.pod:58
39077 msgid ""
39078 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
39079 "minutes) which does not usually need to be adjusted."
39080 msgstr ""
39081
39082 #. type: =head1
39083 #: ../test-tool/libguestfs-test-tool.pod:63
39084 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
39085 msgstr ""
39086
39087 #. type: textblock
39088 #: ../test-tool/libguestfs-test-tool.pod:65
39089 msgid ""
39090 "If you have compiled another version of qemu from source and would like to "
39091 "try that, then you can use the I<--qemudir> option to point to the qemu "
39092 "source directory."
39093 msgstr ""
39094
39095 #. type: textblock
39096 #: ../test-tool/libguestfs-test-tool.pod:69
39097 msgid ""
39098 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
39099 "option to point to the binary."
39100 msgstr ""
39101
39102 #. type: textblock
39103 #: ../test-tool/libguestfs-test-tool.pod:72
39104 msgid ""
39105 "Note when using these options, you can ignore the business of qemu wrapper "
39106 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
39107 "wrapper script for you if one is needed."
39108 msgstr ""
39109
39110 #. type: =head1
39111 #: ../test-tool/libguestfs-test-tool.pod:76
39112 msgid "TRYING OUT A DIFFERENT KERNEL"
39113 msgstr ""
39114
39115 #. type: textblock
39116 #: ../test-tool/libguestfs-test-tool.pod:78
39117 msgid ""
39118 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
39119 "libguestfs tries.  You do this by setting the environment variables "
39120 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
39121 msgstr ""
39122
39123 #. type: textblock
39124 #: ../test-tool/libguestfs-test-tool.pod:82
39125 msgid ""
39126 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
39127 "information."
39128 msgstr ""
39129
39130 #. type: =head1
39131 #: ../test-tool/libguestfs-test-tool.pod:85
39132 msgid "SELF-DIAGNOSIS"
39133 msgstr ""
39134
39135 #. type: textblock
39136 #: ../test-tool/libguestfs-test-tool.pod:87
39137 msgid ""
39138 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
39139 "produced by libguestfs-test-tool and/or possible errors."
39140 msgstr ""
39141
39142 #. type: textblock
39143 #: ../test-tool/libguestfs-test-tool.pod:92
39144 msgid ""
39145 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
39146 "I<1> if there was an error."
39147 msgstr ""
39148
39149 #. type: textblock
39150 #: ../test-tool/libguestfs-test-tool.pod:97
39151 msgid ""
39152 "For the full list of environment variables which may affect libguestfs, "
39153 "please see the L<guestfs(3)> manual page."
39154 msgstr ""
39155
39156 #. type: textblock
39157 #: ../test-tool/libguestfs-test-tool.pod:102
39158 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
39159 msgstr ""
39160
39161 #. type: textblock
39162 #: ../tools/virt-list-filesystems.pl:32
39163 msgid ""
39164 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
39165 msgstr ""
39166
39167 #. type: verbatim
39168 #: ../tools/virt-list-filesystems.pl:36
39169 #, no-wrap
39170 msgid ""
39171 " virt-list-filesystems [--options] domname\n"
39172 "\n"
39173 msgstr ""
39174
39175 #. type: verbatim
39176 #: ../tools/virt-list-filesystems.pl:38
39177 #, no-wrap
39178 msgid ""
39179 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
39180 "\n"
39181 msgstr ""
39182
39183 #. type: textblock
39184 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
39185 msgid ""
39186 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
39187 "replacement."
39188 msgstr ""
39189
39190 #. type: textblock
39191 #: ../tools/virt-list-filesystems.pl:45
39192 msgid ""
39193 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
39194 "are contained in a virtual machine or disk image."
39195 msgstr ""
39196
39197 #. type: textblock
39198 #: ../tools/virt-list-filesystems.pl:49
39199 msgid ""
39200 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
39201 "functionality.  For more complex cases you should look at the L<guestfish(1)"
39202 "> tool."
39203 msgstr ""
39204
39205 #. type: textblock
39206 #: ../tools/virt-list-filesystems.pl:112
39207 msgid ""
39208 "With this option, C<virt-list-filesystems> displays the type of each "
39209 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
39210 msgstr ""
39211
39212 #. type: =item
39213 #: ../tools/virt-list-filesystems.pl:119
39214 #, fuzzy
39215 #| msgid "B<-a image>"
39216 msgid "B<-a>"
39217 msgstr "B<-a образ>"
39218
39219 #. type: textblock
39220 #: ../tools/virt-list-filesystems.pl:123
39221 msgid ""
39222 "Normally we only show mountable filesystems.  If this option is given then "
39223 "swap devices are shown too."
39224 msgstr ""
39225
39226 #. type: textblock
39227 #: ../tools/virt-list-filesystems.pl:197
39228 msgid ""
39229 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
39230 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
39231 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39232 msgstr ""
39233 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
39234 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
39235 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39236
39237 #. type: textblock
39238 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
39239 msgid "Copyright (C) 2009 Red Hat Inc."
39240 msgstr "© Red Hat Inc., 2009"
39241
39242 #. type: textblock
39243 #: ../tools/virt-list-partitions.pl:32
39244 msgid ""
39245 "virt-list-partitions - List partitions in a virtual machine or disk image"
39246 msgstr ""
39247
39248 #. type: verbatim
39249 #: ../tools/virt-list-partitions.pl:36
39250 #, no-wrap
39251 msgid ""
39252 " virt-list-partitions [--options] domname\n"
39253 "\n"
39254 msgstr ""
39255 " virt-list-partitions [--параметри] назва_домену\n"
39256 "\n"
39257
39258 #. type: verbatim
39259 #: ../tools/virt-list-partitions.pl:38
39260 #, no-wrap
39261 msgid ""
39262 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
39263 "\n"
39264 msgstr ""
39265 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
39266 "\n"
39267
39268 #. type: textblock
39269 #: ../tools/virt-list-partitions.pl:45
39270 msgid ""
39271 "C<virt-list-partitions> is a command line tool to list the partitions that "
39272 "are contained in a virtual machine or disk image.  It is mainly useful as a "
39273 "first step to using L<virt-resize(1)>."
39274 msgstr ""
39275
39276 #. type: textblock
39277 #: ../tools/virt-list-partitions.pl:50
39278 msgid ""
39279 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
39280 "functionality.  For more complex cases you should look at the L<guestfish(1)"
39281 "> tool."
39282 msgstr ""
39283
39284 #. type: textblock
39285 #: ../tools/virt-list-partitions.pl:113
39286 msgid "Show sizes in human-readable form (eg. \"1G\")."
39287 msgstr ""
39288
39289 #. type: textblock
39290 #: ../tools/virt-list-partitions.pl:123
39291 msgid ""
39292 "With this option, C<virt-list-partitions> displays the type and size of each "
39293 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
39294 msgstr ""
39295
39296 #. type: =item
39297 #: ../tools/virt-list-partitions.pl:130
39298 msgid "B<-t>"
39299 msgstr ""
39300
39301 #. type: =item
39302 #: ../tools/virt-list-partitions.pl:132
39303 #, fuzzy
39304 #| msgid "B<-t> | B<--total>"
39305 msgid "B<--total>"
39306 msgstr "B<-t> | B<--total>"
39307
39308 #. type: textblock
39309 #: ../tools/virt-list-partitions.pl:134
39310 msgid ""
39311 "Display the total size of each block device (as a separate row or rows)."
39312 msgstr ""
39313
39314 #. type: textblock
39315 #: ../tools/virt-list-partitions.pl:267
39316 msgid ""
39317 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39318 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39319 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39320 msgstr ""
39321 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
39322 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
39323 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
39324
39325 #. type: textblock
39326 #: ../tools/virt-list-partitions.pl:283
39327 msgid "Copyright (C) 2009-2010 Red Hat Inc."
39328 msgstr "© Red Hat Inc., 2009–2010"
39329
39330 #. type: textblock
39331 #: ../tools/virt-make-fs.pl:37
39332 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
39333 msgstr ""
39334
39335 #. type: verbatim
39336 #: ../tools/virt-make-fs.pl:41
39337 #, no-wrap
39338 msgid ""
39339 " virt-make-fs [--options] input.tar output.img\n"
39340 "\n"
39341 msgstr ""
39342
39343 #. type: verbatim
39344 #: ../tools/virt-make-fs.pl:43
39345 #, no-wrap
39346 msgid ""
39347 " virt-make-fs [--options] input.tar.gz output.img\n"
39348 "\n"
39349 msgstr ""
39350
39351 #. type: verbatim
39352 #: ../tools/virt-make-fs.pl:45
39353 #, no-wrap
39354 msgid ""
39355 " virt-make-fs [--options] directory output.img\n"
39356 "\n"
39357 msgstr ""
39358
39359 #. type: textblock
39360 #: ../tools/virt-make-fs.pl:49
39361 msgid ""
39362 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
39363 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
39364 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
39365 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
39366 "you want to attach these filesystems to existing virtual machines (eg. to "
39367 "import large amounts of read-only data to a VM)."
39368 msgstr ""
39369
39370 #. type: textblock
39371 #: ../tools/virt-make-fs.pl:57
39372 msgid "Basic usage is:"
39373 msgstr ""
39374
39375 #. type: verbatim
39376 #: ../tools/virt-make-fs.pl:59
39377 #, no-wrap
39378 msgid ""
39379 " virt-make-fs input output\n"
39380 "\n"
39381 msgstr ""
39382
39383 #. type: textblock
39384 #: ../tools/virt-make-fs.pl:61
39385 msgid ""
39386 "where C<input> is either a directory containing files that you want to add, "
39387 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
39388 "C<output> is a disk image.  The input type is detected automatically.  The "
39389 "output disk image defaults to a raw ext2 image unless you specify extra "
39390 "flags (see L</OPTIONS> below)."
39391 msgstr ""
39392
39393 #. type: =head2
39394 #: ../tools/virt-make-fs.pl:67
39395 msgid "EXTRA SPACE"
39396 msgstr ""
39397
39398 #. type: textblock
39399 #: ../tools/virt-make-fs.pl:69
39400 msgid ""
39401 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
39402 "the files that it contains, but might have extra space.  Depending on how "
39403 "you are going to use the output, you might think this extra space is wasted "
39404 "and want to minimize it, or you might want to leave space so that more files "
39405 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
39406 "but you can use the I<--size> flag to leave space in the filesystem if you "
39407 "want it."
39408 msgstr ""
39409
39410 #. type: textblock
39411 #: ../tools/virt-make-fs.pl:77
39412 msgid ""
39413 "An alternative way to leave extra space but not make the output image any "
39414 "bigger is to use an alternative disk image format (instead of the default "
39415 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
39416 "image format (check your hypervisor supports this before using it).  This "
39417 "allows you to choose a large I<--size> but the extra space won't actually be "
39418 "allocated in the image until you try to store something in it."
39419 msgstr ""
39420
39421 #. type: textblock
39422 #: ../tools/virt-make-fs.pl:85
39423 msgid ""
39424 "Don't forget that you can also use local commands including L<resize2fs(8)> "
39425 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
39426 "to build another image from scratch."
39427 msgstr ""
39428
39429 #. type: =head3
39430 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
39431 #: ../tools/virt-make-fs.pl:142
39432 msgid "EXAMPLE"
39433 msgstr "ПРИКЛАД"
39434
39435 #. type: verbatim
39436 #: ../tools/virt-make-fs.pl:91
39437 #, no-wrap
39438 msgid ""
39439 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39440 "\n"
39441 msgstr ""
39442 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
39443 "\n"
39444
39445 #. type: =head2
39446 #: ../tools/virt-make-fs.pl:93
39447 msgid "FILESYSTEM TYPE"
39448 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
39449
39450 #. type: textblock
39451 #: ../tools/virt-make-fs.pl:95
39452 msgid ""
39453 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
39454 "libguestfs supports can be used (but I<not> read-only formats like "
39455 "ISO9660).  Here are some of the more common choices:"
39456 msgstr ""
39457
39458 #. type: =item
39459 #: ../tools/virt-make-fs.pl:101
39460 msgid "I<ext3>"
39461 msgstr "I<ext3>"
39462
39463 #. type: textblock
39464 #: ../tools/virt-make-fs.pl:103
39465 msgid ""
39466 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
39467 "you are not going to use the filesystem in a way that requires the journal, "
39468 "then this is just wasted overhead."
39469 msgstr ""
39470
39471 #. type: =item
39472 #: ../tools/virt-make-fs.pl:107
39473 msgid "I<ntfs> or I<vfat>"
39474 msgstr "I<ntfs> або I<vfat>"
39475
39476 #. type: textblock
39477 #: ../tools/virt-make-fs.pl:109
39478 msgid "Useful if exporting data to a Windows guest."
39479 msgstr ""
39480
39481 #. type: textblock
39482 #: ../tools/virt-make-fs.pl:111
39483 msgid ""
39484 "I<Note for vfat>: The tar archive or local directory must only contain files "
39485 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
39486 "program running within libguestfs is unable to change the ownership of non-"
39487 "root files, since vfat itself does not support this."
39488 msgstr ""
39489
39490 #. type: =item
39491 #: ../tools/virt-make-fs.pl:116
39492 msgid "I<minix>"
39493 msgstr "I<minix>"
39494
39495 #. type: textblock
39496 #: ../tools/virt-make-fs.pl:118
39497 msgid ""
39498 "Lower overhead than C<ext2>, but certain limitations on filename length and "
39499 "total filesystem size."
39500 msgstr ""
39501
39502 #. type: verbatim
39503 #: ../tools/virt-make-fs.pl:125
39504 #, no-wrap
39505 msgid ""
39506 " virt-make-fs --type=minix input minixfs.img\n"
39507 "\n"
39508 msgstr ""
39509
39510 #. type: =head2
39511 #: ../tools/virt-make-fs.pl:127
39512 msgid "TO PARTITION OR NOT TO PARTITION"
39513 msgstr ""
39514
39515 #. type: textblock
39516 #: ../tools/virt-make-fs.pl:129
39517 msgid "Optionally virt-make-fs can add a partition table to the output disk."
39518 msgstr ""
39519
39520 #. type: textblock
39521 #: ../tools/virt-make-fs.pl:131
39522 msgid ""
39523 "Adding a partition can make the disk image more compatible with certain "
39524 "virtualized operating systems which don't expect to see a filesystem "
39525 "directly located on a block device (Linux doesn't care and will happily "
39526 "handle both types)."
39527 msgstr ""
39528
39529 #. type: textblock
39530 #: ../tools/virt-make-fs.pl:136
39531 msgid ""
39532 "On the other hand, if you have a partition table then the output image is no "
39533 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
39534 "directly on a partitioned disk image.  (However libguestfs tools such as "
39535 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
39536 msgstr ""
39537
39538 #. type: textblock
39539 #: ../tools/virt-make-fs.pl:144
39540 msgid "Add an MBR partition:"
39541 msgstr ""
39542
39543 #. type: verbatim
39544 #: ../tools/virt-make-fs.pl:146
39545 #, no-wrap
39546 msgid ""
39547 " virt-make-fs --partition -- input disk.img\n"
39548 "\n"
39549 msgstr ""
39550
39551 #. type: textblock
39552 #: ../tools/virt-make-fs.pl:148
39553 msgid ""
39554 "If the output disk image could be terabyte-sized or larger, it's better to "
39555 "use an EFI/GPT-compatible partition table:"
39556 msgstr ""
39557
39558 #. type: verbatim
39559 #: ../tools/virt-make-fs.pl:151
39560 #, no-wrap
39561 msgid ""
39562 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
39563 "\n"
39564 msgstr ""
39565
39566 #. type: textblock
39567 #: ../tools/virt-make-fs.pl:179
39568 msgid "Enable debugging information."
39569 msgstr "Увімкнути виведення діагностичних даних."
39570
39571 #. type: =item
39572 #: ../tools/virt-make-fs.pl:185
39573 msgid "B<--size=E<lt>NE<gt>>"
39574 msgstr "B<--size=E<lt>NE<gt>>"
39575
39576 #. type: =item
39577 #: ../tools/virt-make-fs.pl:187
39578 msgid "B<--size=+E<lt>NE<gt>>"
39579 msgstr "B<--size=+E<lt>NE<gt>>"
39580
39581 #. type: =item
39582 #: ../tools/virt-make-fs.pl:189
39583 msgid "B<-s E<lt>NE<gt>>"
39584 msgstr "B<-s E<lt>NE<gt>>"
39585
39586 #. type: =item
39587 #: ../tools/virt-make-fs.pl:191
39588 msgid "B<-s +E<lt>NE<gt>>"
39589 msgstr "B<-s +E<lt>NE<gt>>"
39590
39591 #. type: textblock
39592 #: ../tools/virt-make-fs.pl:193
39593 msgid ""
39594 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
39595 msgstr ""
39596
39597 #. type: textblock
39598 #: ../tools/virt-make-fs.pl:196
39599 msgid ""
39600 "If this option is I<not> given, then the output image will be just large "
39601 "enough to contain all the files, with not much wasted space."
39602 msgstr ""
39603
39604 #. type: textblock
39605 #: ../tools/virt-make-fs.pl:199
39606 msgid ""
39607 "To choose a fixed size output disk, specify an absolute number followed by b/"
39608 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39609 "Petabytes or Exabytes.  This must be large enough to contain all the input "
39610 "files, else you will get an error."
39611 msgstr ""
39612
39613 #. type: textblock
39614 #: ../tools/virt-make-fs.pl:204
39615 msgid ""
39616 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
39617 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
39618 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
39619 "the input files, and (approximately) an extra 200 MB free space."
39620 msgstr ""
39621
39622 #. type: textblock
39623 #: ../tools/virt-make-fs.pl:210
39624 msgid ""
39625 "Note that virt-make-fs estimates free space, and therefore will not produce "
39626 "filesystems containing precisely the free space requested.  (It is much more "
39627 "expensive and time-consuming to produce a filesystem which has precisely the "
39628 "desired free space)."
39629 msgstr ""
39630
39631 #. type: =item
39632 #: ../tools/virt-make-fs.pl:219
39633 msgid "B<--format=E<lt>fmtE<gt>>"
39634 msgstr ""
39635
39636 #. type: =item
39637 #: ../tools/virt-make-fs.pl:221
39638 msgid "B<-F E<lt>fmtE<gt>>"
39639 msgstr ""
39640
39641 #. type: textblock
39642 #: ../tools/virt-make-fs.pl:223
39643 msgid "Choose the output disk image format."
39644 msgstr ""
39645
39646 #. type: textblock
39647 #: ../tools/virt-make-fs.pl:225
39648 msgid "The default is C<raw> (raw disk image)."
39649 msgstr ""
39650
39651 #. type: textblock
39652 #: ../tools/virt-make-fs.pl:227
39653 msgid ""
39654 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
39655 "that would really make sense here is C<qcow2>."
39656 msgstr ""
39657
39658 #. type: =item
39659 #: ../tools/virt-make-fs.pl:234
39660 msgid "B<--type=E<lt>fsE<gt>>"
39661 msgstr ""
39662
39663 #. type: =item
39664 #: ../tools/virt-make-fs.pl:236
39665 msgid "B<-t E<lt>fsE<gt>>"
39666 msgstr ""
39667
39668 #. type: textblock
39669 #: ../tools/virt-make-fs.pl:238
39670 msgid "Choose the output filesystem type."
39671 msgstr ""
39672
39673 #. type: textblock
39674 #: ../tools/virt-make-fs.pl:240
39675 msgid "The default is C<ext2>."
39676 msgstr "Типовим значенням є C<ext2>."
39677
39678 #. type: textblock
39679 #: ../tools/virt-make-fs.pl:242
39680 msgid ""
39681 "Any filesystem which is supported read-write by libguestfs can be used here."
39682 msgstr ""
39683
39684 #. type: =item
39685 #: ../tools/virt-make-fs.pl:249
39686 msgid "B<--partition>"
39687 msgstr "B<--partition>"
39688
39689 #. type: =item
39690 #: ../tools/virt-make-fs.pl:251
39691 msgid "B<--partition=E<lt>parttypeE<gt>>"
39692 msgstr ""
39693
39694 #. type: textblock
39695 #: ../tools/virt-make-fs.pl:253
39696 msgid ""
39697 "If specified, this flag adds an MBR partition table to the output disk image."
39698 msgstr ""
39699
39700 #. type: textblock
39701 #: ../tools/virt-make-fs.pl:256
39702 msgid ""
39703 "You can change the partition table type, eg. I<--partition=gpt> for large "
39704 "disks."
39705 msgstr ""
39706
39707 #. type: textblock
39708 #: ../tools/virt-make-fs.pl:259
39709 msgid ""
39710 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
39711 "might consider the next parameter to be the partition type.  For example:"
39712 msgstr ""
39713
39714 #. type: verbatim
39715 #: ../tools/virt-make-fs.pl:263
39716 #, no-wrap
39717 msgid ""
39718 " virt-make-fs --partition input.tar ...\n"
39719 "\n"
39720 msgstr ""
39721
39722 #. type: textblock
39723 #: ../tools/virt-make-fs.pl:265
39724 msgid ""
39725 "would cause virt-make-fs to think you wanted to use a partition type of "
39726 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
39727 "dash) between options and the input file argument:"
39728 msgstr ""
39729
39730 #. type: verbatim
39731 #: ../tools/virt-make-fs.pl:269
39732 #, no-wrap
39733 msgid ""
39734 " virt-make-fs --partition -- input.tar ...\n"
39735 "\n"
39736 msgstr ""
39737 " virt-make-fs --partition -- input.tar ...\n"
39738 "\n"
39739
39740 #. type: textblock
39741 #: ../tools/virt-make-fs.pl:541
39742 msgid ""
39743 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39744 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39745 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39746 msgstr ""
39747 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
39748 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
39749 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
39750
39751 #. type: textblock
39752 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
39753 msgid ""
39754 "When reporting bugs, please enable debugging and capture the I<complete> "
39755 "output:"
39756 msgstr ""
39757
39758 #. type: verbatim
39759 #: ../tools/virt-make-fs.pl:558
39760 #, no-wrap
39761 msgid ""
39762 " export LIBGUESTFS_DEBUG=1\n"
39763 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39764 "\n"
39765 msgstr ""
39766 " export LIBGUESTFS_DEBUG=1\n"
39767 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
39768 "\n"
39769
39770 #. type: textblock
39771 #: ../tools/virt-make-fs.pl:561
39772 msgid ""
39773 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
39774 "redhat.com/>"
39775 msgstr ""
39776
39777 #. type: textblock
39778 #: ../tools/virt-tar.pl:33
39779 msgid "virt-tar - Extract or upload files to a virtual machine"
39780 msgstr ""
39781
39782 #. type: verbatim
39783 #: ../tools/virt-tar.pl:37
39784 #, no-wrap
39785 msgid ""
39786 " virt-tar [--options] -x domname directory tarball\n"
39787 "\n"
39788 msgstr ""
39789
39790 #. type: verbatim
39791 #: ../tools/virt-tar.pl:39
39792 #, no-wrap
39793 msgid ""
39794 " virt-tar [--options] -u domname tarball directory\n"
39795 "\n"
39796 msgstr ""
39797
39798 #. type: verbatim
39799 #: ../tools/virt-tar.pl:41
39800 #, no-wrap
39801 msgid ""
39802 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
39803 "\n"
39804 msgstr ""
39805
39806 #. type: verbatim
39807 #: ../tools/virt-tar.pl:43
39808 #, no-wrap
39809 msgid ""
39810 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
39811 "\n"
39812 msgstr ""
39813
39814 #. type: =head2
39815 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
39816 msgid "NOTE"
39817 msgstr "ПРИМІТКА"
39818
39819 #. type: textblock
39820 #: ../tools/virt-tar.pl:47
39821 msgid ""
39822 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
39823 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
39824 msgstr ""
39825
39826 #. type: textblock
39827 #: ../tools/virt-tar.pl:52
39828 msgid "Download C</home> from the VM into a local tarball:"
39829 msgstr ""
39830
39831 #. type: verbatim
39832 #: ../tools/virt-tar.pl:54
39833 #, no-wrap
39834 msgid ""
39835 " virt-tar -x domname /home home.tar\n"
39836 "\n"
39837 msgstr ""
39838
39839 #. type: verbatim
39840 #: ../tools/virt-tar.pl:56
39841 #, no-wrap
39842 msgid ""
39843 " virt-tar -zx domname /home home.tar.gz\n"
39844 "\n"
39845 msgstr ""
39846
39847 #. type: textblock
39848 #: ../tools/virt-tar.pl:58
39849 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
39850 msgstr ""
39851
39852 #. type: verbatim
39853 #: ../tools/virt-tar.pl:60
39854 #, no-wrap
39855 msgid ""
39856 " virt-tar -u domname uploadstuff.tar /tmp\n"
39857 "\n"
39858 msgstr ""
39859
39860 #. type: verbatim
39861 #: ../tools/virt-tar.pl:62
39862 #, no-wrap
39863 msgid ""
39864 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
39865 "\n"
39866 msgstr ""
39867
39868 #. type: textblock
39869 #: ../tools/virt-tar.pl:66
39870 msgid ""
39871 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
39872 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
39873 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
39874 msgstr ""
39875
39876 #. type: textblock
39877 #: ../tools/virt-tar.pl:71
39878 msgid ""
39879 "You can use I<-x> (extract) on live virtual machines, but you might get "
39880 "inconsistent results or errors if there is filesystem activity inside the "
39881 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
39882 "work, but the only way to guarantee consistent results is if the virtual "
39883 "machine is shut down."
39884 msgstr ""
39885
39886 #. type: textblock
39887 #: ../tools/virt-tar.pl:79
39888 msgid ""
39889 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
39890 "parts of a guest filesystem.  There are many possibilities: making backups, "
39891 "uploading data files, snooping on guest activity, fixing or customizing "
39892 "guests, etc."
39893 msgstr ""
39894
39895 #. type: textblock
39896 #: ../tools/virt-tar.pl:84
39897 msgid ""
39898 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
39899 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
39900 "should look at the L<guestfish(1)> tool."
39901 msgstr ""
39902
39903 #. type: textblock
39904 #: ../tools/virt-tar.pl:88
39905 msgid ""
39906 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
39907 "its contents (recursively) from the virtual machine into a local tarball.  "
39908 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
39909 "virtual machine.  You cannot use these two options together."
39910 msgstr ""
39911
39912 #. type: textblock
39913 #: ../tools/virt-tar.pl:94
39914 msgid ""
39915 "In addition, you may need to use the I<-z> (gZip) option to enable "
39916 "compression.  When uploading, you have to specify I<-z> if the upload file "
39917 "is compressed because virt-tar won't detect this on its own."
39918 msgstr ""
39919
39920 #. type: textblock
39921 #: ../tools/virt-tar.pl:98
39922 msgid ""
39923 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
39924 "example it cannot do PKZip files or bzip2 compression.  If you want that "
39925 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
39926 "the L<libguestfs(3)> API)."
39927 msgstr ""
39928
39929 #. type: =item
39930 #: ../tools/virt-tar.pl:160
39931 #, fuzzy
39932 #| msgid "B<--format>"
39933 msgid "B<--extract>"
39934 msgstr "B<--format>"
39935
39936 #. type: =item
39937 #: ../tools/virt-tar.pl:162
39938 #, fuzzy
39939 #| msgid "download"
39940 msgid "B<--download>"
39941 msgstr "download"
39942
39943 #. type: =item
39944 #: ../tools/virt-tar.pl:164
39945 msgid "B<-u>"
39946 msgstr ""
39947
39948 #. type: =item
39949 #: ../tools/virt-tar.pl:166
39950 #, fuzzy
39951 #| msgid "B<-u> | B<--upload>"
39952 msgid "B<--upload>"
39953 msgstr "B<-u> | B<--upload>"
39954
39955 #. type: textblock
39956 #: ../tools/virt-tar.pl:168
39957 msgid ""
39958 "Use I<-x> to extract (download) a directory from a virtual machine to a "
39959 "local tarball."
39960 msgstr ""
39961
39962 #. type: textblock
39963 #: ../tools/virt-tar.pl:171
39964 msgid ""
39965 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
39966 "Please read the L</WARNING> section above before using this option."
39967 msgstr ""
39968
39969 #. type: textblock
39970 #: ../tools/virt-tar.pl:175
39971 msgid "You must specify exactly one of these options."
39972 msgstr ""
39973
39974 #. type: =item
39975 #: ../tools/virt-tar.pl:181
39976 msgid "B<-z>"
39977 msgstr ""
39978
39979 #. type: =item
39980 #: ../tools/virt-tar.pl:183
39981 #, fuzzy
39982 #| msgid "B<-z> | B<--gzip>"
39983 msgid "B<--gzip>"
39984 msgstr "B<-z> | B<--gzip>"
39985
39986 #. type: textblock
39987 #: ../tools/virt-tar.pl:185
39988 msgid "Specify that the input or output tarball is gzip-compressed."
39989 msgstr ""
39990
39991 #. type: textblock
39992 #: ../tools/virt-tar.pl:298
39993 msgid ""
39994 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
39995 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
39996 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
39997 "org/>."
39998 msgstr ""
39999 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
40000 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
40001 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
40002 "org/>."
40003
40004 #. type: textblock
40005 #: ../tools/virt-win-reg.pl:37
40006 msgid ""
40007 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
40008 msgstr ""
40009
40010 #. type: verbatim
40011 #: ../tools/virt-win-reg.pl:41
40012 #, no-wrap
40013 msgid ""
40014 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
40015 "\n"
40016 msgstr ""
40017
40018 #. type: verbatim
40019 #: ../tools/virt-win-reg.pl:43
40020 #, no-wrap
40021 msgid ""
40022 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
40023 "\n"
40024 msgstr ""
40025
40026 #. type: verbatim
40027 #: ../tools/virt-win-reg.pl:45
40028 #, no-wrap
40029 msgid ""
40030 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
40031 "\n"
40032 msgstr ""
40033
40034 #. type: verbatim
40035 #: ../tools/virt-win-reg.pl:47
40036 #, no-wrap
40037 msgid ""
40038 " virt-win-reg --merge domname [input.reg ...]\n"
40039 "\n"
40040 msgstr ""
40041
40042 #. type: verbatim
40043 #: ../tools/virt-win-reg.pl:49
40044 #, no-wrap
40045 msgid ""
40046 " virt-win-reg [--options] disk.img ... # instead of domname\n"
40047 "\n"
40048 msgstr ""
40049
40050 #. type: textblock
40051 #: ../tools/virt-win-reg.pl:53
40052 msgid ""
40053 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
40054 "virtual machines.  If you do this, you I<will> get irreversible disk "
40055 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
40056 "but doesn't catch all cases."
40057 msgstr ""
40058
40059 #. type: textblock
40060 #: ../tools/virt-win-reg.pl:58
40061 msgid ""
40062 "Modifying the Windows Registry is an inherently risky operation.  The format "
40063 "is deliberately obscure and undocumented, and Registry changes can leave the "
40064 "system unbootable.  Therefore when using the I<--merge> option, make sure "
40065 "you have a reliable backup first."
40066 msgstr ""
40067
40068 #. type: textblock
40069 #: ../tools/virt-win-reg.pl:65
40070 msgid ""
40071 "This program can export and merge Windows Registry entries from a Windows "
40072 "guest."
40073 msgstr ""
40074
40075 #. type: textblock
40076 #: ../tools/virt-win-reg.pl:68
40077 msgid ""
40078 "The first parameter is the libvirt guest name or the raw disk image of a "
40079 "Windows guest."
40080 msgstr ""
40081
40082 #. type: textblock
40083 #: ../tools/virt-win-reg.pl:71
40084 msgid ""
40085 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
40086 "exported (recursively).  For example:"
40087 msgstr ""
40088
40089 #. type: verbatim
40090 #: ../tools/virt-win-reg.pl:74
40091 #, no-wrap
40092 msgid ""
40093 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
40094 "\n"
40095 msgstr ""
40096
40097 #. type: textblock
40098 #: ../tools/virt-win-reg.pl:76
40099 msgid ""
40100 "You can also display single values from within registry keys, for example:"
40101 msgstr ""
40102
40103 #. type: verbatim
40104 #: ../tools/virt-win-reg.pl:79
40105 #, no-wrap
40106 msgid ""
40107 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
40108 " $ virt-win-reg Windows7 $cvkey ProductName\n"
40109 " Windows 7 Enterprise\n"
40110 "\n"
40111 msgstr ""
40112
40113 #. type: textblock
40114 #: ../tools/virt-win-reg.pl:83
40115 msgid ""
40116 "With I<--merge>, you can merge a textual regedit file into the Windows "
40117 "Registry:"
40118 msgstr ""
40119
40120 #. type: verbatim
40121 #: ../tools/virt-win-reg.pl:86
40122 #, no-wrap
40123 msgid ""
40124 " $ virt-win-reg --merge Windows7 changes.reg\n"
40125 "\n"
40126 msgstr ""
40127
40128 #. type: textblock
40129 #: ../tools/virt-win-reg.pl:90
40130 msgid ""
40131 "This program is only meant for simple access to the registry.  If you want "
40132 "to do complicated things with the registry, we suggest you download the "
40133 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
40134 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
40135 "L<hivexregedit(1)>."
40136 msgstr ""
40137
40138 #. type: =item
40139 #: ../tools/virt-win-reg.pl:159
40140 msgid "B<--merge>"
40141 msgstr "B<--merge>"
40142
40143 #. type: textblock
40144 #: ../tools/virt-win-reg.pl:161
40145 msgid ""
40146 "In merge mode, this merges a textual regedit file into the Windows Registry "
40147 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
40148 "displays or exports Registry entries instead."
40149 msgstr ""
40150
40151 #. type: textblock
40152 #: ../tools/virt-win-reg.pl:165
40153 msgid ""
40154 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
40155 "result in disk corruption.  However exporting (without this flag)  is always "
40156 "safe."
40157 msgstr ""
40158
40159 #. type: =item
40160 #: ../tools/virt-win-reg.pl:173
40161 msgid "B<--encoding> UTF-16LE|ASCII"
40162 msgstr ""
40163
40164 #. type: textblock
40165 #: ../tools/virt-win-reg.pl:175
40166 msgid ""
40167 "When merging (only), you may need to specify the encoding for strings to be "
40168 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
40169 "(3)/ENCODING STRINGS>."
40170 msgstr ""
40171
40172 #. type: textblock
40173 #: ../tools/virt-win-reg.pl:179
40174 msgid ""
40175 "The default is to use UTF-16LE, which should work with recent versions of "
40176 "Windows."
40177 msgstr ""
40178
40179 #. type: =item
40180 #: ../tools/virt-win-reg.pl:186
40181 msgid "B<--unsafe-printable-strings>"
40182 msgstr ""
40183
40184 #. type: textblock
40185 #: ../tools/virt-win-reg.pl:188
40186 msgid ""
40187 "When exporting (only), assume strings are UTF-16LE and print them as strings "
40188 "instead of hex sequences.  Remove the final zero codepoint from strings if "
40189 "present."
40190 msgstr ""
40191
40192 #. type: textblock
40193 #: ../tools/virt-win-reg.pl:192
40194 msgid ""
40195 "This is unsafe and does not preserve the fidelity of strings in the original "
40196 "Registry for various reasons:"
40197 msgstr ""
40198
40199 #. type: textblock
40200 #: ../tools/virt-win-reg.pl:199
40201 msgid ""
40202 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
40203 "other encodings will be corrupted by this transformation."
40204 msgstr ""
40205
40206 #. type: textblock
40207 #: ../tools/virt-win-reg.pl:204
40208 msgid ""
40209 "Assumes that everything which has type 1 or 2 is really a string and that "
40210 "everything else is not a string, but the type field in real Registries is "
40211 "not reliable."
40212 msgstr ""
40213
40214 #. type: textblock
40215 #: ../tools/virt-win-reg.pl:210
40216 msgid ""
40217 "Loses information about whether a zero codepoint followed the string in the "
40218 "Registry or not."
40219 msgstr ""
40220
40221 #. type: textblock
40222 #: ../tools/virt-win-reg.pl:215
40223 msgid ""
40224 "This all happens because the Registry itself contains no information about "
40225 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
40226 msgstr ""
40227
40228 #. type: textblock
40229 #: ../tools/virt-win-reg.pl:219
40230 msgid ""
40231 "You should only use this option for quick hacking and debugging of the "
40232 "Registry contents, and I<never> use it if the output is going to be passed "
40233 "into another program or stored in another Registry."
40234 msgstr ""
40235
40236 #. type: =head1
40237 #: ../tools/virt-win-reg.pl:556
40238 msgid "SUPPORTED SYSTEMS"
40239 msgstr ""
40240
40241 #. type: textblock
40242 #: ../tools/virt-win-reg.pl:558
40243 msgid ""
40244 "The program currently supports Windows NT-derived guests starting with "
40245 "Windows XP through to at least Windows 7."
40246 msgstr ""
40247
40248 #. type: textblock
40249 #: ../tools/virt-win-reg.pl:561
40250 msgid "The following Registry keys are supported:"
40251 msgstr ""
40252
40253 #. type: =item
40254 #: ../tools/virt-win-reg.pl:565
40255 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
40256 msgstr ""
40257
40258 #. type: =item
40259 #: ../tools/virt-win-reg.pl:567
40260 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
40261 msgstr ""
40262
40263 #. type: =item
40264 #: ../tools/virt-win-reg.pl:569
40265 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
40266 msgstr ""
40267
40268 #. type: =item
40269 #: ../tools/virt-win-reg.pl:571
40270 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
40271 msgstr ""
40272
40273 #. type: =item
40274 #: ../tools/virt-win-reg.pl:573
40275 msgid "C<HKEY_USERS\\.DEFAULT>"
40276 msgstr ""
40277
40278 #. type: =item
40279 #: ../tools/virt-win-reg.pl:575
40280 msgid "C<HKEY_USERS\\I<SID>>"
40281 msgstr ""
40282
40283 #. type: textblock
40284 #: ../tools/virt-win-reg.pl:577
40285 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
40286 msgstr ""
40287
40288 #. type: =item
40289 #: ../tools/virt-win-reg.pl:579
40290 msgid "C<HKEY_USERS\\I<username>>"
40291 msgstr ""
40292
40293 #. type: textblock
40294 #: ../tools/virt-win-reg.pl:581
40295 msgid ""
40296 "where I<username> is a local user name (this is a libguestfs extension)."
40297 msgstr ""
40298
40299 #. type: textblock
40300 #: ../tools/virt-win-reg.pl:585
40301 msgid ""
40302 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
40303 "C<HKEY_USERS>."
40304 msgstr ""
40305
40306 #. type: textblock
40307 #: ../tools/virt-win-reg.pl:588
40308 msgid ""
40309 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
40310 "supported (there is no \"current user\")."
40311 msgstr ""
40312
40313 #. type: =head1
40314 #: ../tools/virt-win-reg.pl:591
40315 msgid "ENCODING"
40316 msgstr "КОДУВАННЯ"
40317
40318 #. type: textblock
40319 #: ../tools/virt-win-reg.pl:593
40320 msgid ""
40321 "C<virt-win-reg> expects that regedit files have already been reencoded in "
40322 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
40323 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
40324 "Windows-style line endings, you may need to reencode the whole file before "
40325 "or after processing."
40326 msgstr ""
40327
40328 #. type: textblock
40329 #: ../tools/virt-win-reg.pl:599
40330 msgid ""
40331 "To reencode a file from Windows format to Linux (before processing it with "
40332 "the I<--merge> option), you would do something like this:"
40333 msgstr ""
40334
40335 #. type: verbatim
40336 #: ../tools/virt-win-reg.pl:602
40337 #, no-wrap
40338 msgid ""
40339 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
40340 "\n"
40341 msgstr ""
40342
40343 #. type: textblock
40344 #: ../tools/virt-win-reg.pl:604
40345 msgid ""
40346 "To go in the opposite direction, after exporting and before sending the file "
40347 "to a Windows user, do something like this:"
40348 msgstr ""
40349
40350 #. type: verbatim
40351 #: ../tools/virt-win-reg.pl:607
40352 #, no-wrap
40353 msgid ""
40354 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
40355 "\n"
40356 msgstr ""
40357
40358 #. type: textblock
40359 #: ../tools/virt-win-reg.pl:609
40360 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
40361 msgstr ""
40362
40363 #. type: textblock
40364 #: ../tools/virt-win-reg.pl:611
40365 msgid ""
40366 "If you are unsure about the current encoding, use the L<file(1)> command.  "
40367 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
40368 "style (CRLF) line endings, like this:"
40369 msgstr ""
40370
40371 #. type: verbatim
40372 #: ../tools/virt-win-reg.pl:615
40373 #, no-wrap
40374 msgid ""
40375 " $ file software.reg\n"
40376 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
40377 " with CRLF line terminators\n"
40378 "\n"
40379 msgstr ""
40380
40381 #. type: textblock
40382 #: ../tools/virt-win-reg.pl:619
40383 msgid "This file would need conversion before you could I<--merge> it."
40384 msgstr ""
40385
40386 #. type: =head1
40387 #: ../tools/virt-win-reg.pl:621
40388 msgid "CurrentControlSet etc."
40389 msgstr ""
40390
40391 #. type: textblock
40392 #: ../tools/virt-win-reg.pl:623
40393 msgid ""
40394 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
40395 "Registry at the level of the hive file, and therefore you cannot modify "
40396 "these."
40397 msgstr ""
40398
40399 #. type: textblock
40400 #: ../tools/virt-win-reg.pl:627
40401 msgid ""
40402 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
40403 "circumstances it might refer to another control set.  The way to find out is "
40404 "to look at the C<HKLM\\SYSTEM\\Select> key:"
40405 msgstr ""
40406
40407 #. type: verbatim
40408 #: ../tools/virt-win-reg.pl:631
40409 #, no-wrap
40410 msgid ""
40411 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
40412 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
40413 " \"Current\"=dword:00000001\n"
40414 " \"Default\"=dword:00000001\n"
40415 " \"Failed\"=dword:00000000\n"
40416 " \"LastKnownGood\"=dword:00000002\n"
40417 "\n"
40418 msgstr ""
40419
40420 #. type: textblock
40421 #: ../tools/virt-win-reg.pl:638
40422 msgid "\"Current\" is the one which Windows will choose when it boots."
40423 msgstr ""
40424
40425 #. type: textblock
40426 #: ../tools/virt-win-reg.pl:640
40427 msgid ""
40428 "Similarly, other C<Current...> keys in the path may need to be replaced."
40429 msgstr ""
40430
40431 #. type: =head1
40432 #: ../tools/virt-win-reg.pl:643
40433 msgid "WINDOWS TIPS"
40434 msgstr ""
40435
40436 #. type: textblock
40437 #: ../tools/virt-win-reg.pl:645
40438 msgid ""
40439 "Note that some of these tips modify the guest disk image.  The guest I<must> "
40440 "be shut off, else you will get disk corruption."
40441 msgstr ""
40442
40443 #. type: =head2
40444 #: ../tools/virt-win-reg.pl:648
40445 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
40446 msgstr ""
40447
40448 #. type: textblock
40449 #: ../tools/virt-win-reg.pl:650
40450 msgid ""
40451 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
40452 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
40453 "is uploaded into C<C:\\>:"
40454 msgstr ""
40455
40456 #. type: verbatim
40457 #: ../tools/virt-win-reg.pl:654
40458 #, no-wrap
40459 msgid ""
40460 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
40461 "\n"
40462 msgstr ""
40463
40464 #. type: textblock
40465 #: ../tools/virt-win-reg.pl:656
40466 msgid "Prepare a regedit file containing the registry change:"
40467 msgstr ""
40468
40469 #. type: verbatim
40470 #: ../tools/virt-win-reg.pl:658
40471 #, no-wrap
40472 msgid ""
40473 " cat > test.reg <<'EOF'\n"
40474 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
40475 " \"Test\"=\"c:\\\\test.bat\"\n"
40476 " EOF\n"
40477 "\n"
40478 msgstr ""
40479
40480 #. type: textblock
40481 #: ../tools/virt-win-reg.pl:663
40482 msgid ""
40483 "In this example we use the key C<RunOnce> which means that the script will "
40484 "run precisely once when the first user logs in.  If you want it to run every "
40485 "time a user logs in, replace C<RunOnce> with C<Run>."
40486 msgstr ""
40487
40488 #. type: textblock
40489 #: ../tools/virt-win-reg.pl:667
40490 msgid "Now update the registry:"
40491 msgstr ""
40492
40493 #. type: verbatim
40494 #: ../tools/virt-win-reg.pl:669
40495 #, no-wrap
40496 msgid ""
40497 " virt-win-reg --merge WindowsGuest test.reg\n"
40498 "\n"
40499 msgstr ""
40500
40501 #. type: =head2
40502 #: ../tools/virt-win-reg.pl:671
40503 msgid "INSTALLING A SERVICE"
40504 msgstr ""
40505
40506 #. type: textblock
40507 #: ../tools/virt-win-reg.pl:673
40508 msgid ""
40509 "This section assumes you are familiar with Windows services, and you either "
40510 "have a program which handles the Windows Service Control Protocol directly "
40511 "or you want to run any program using a service wrapper like SrvAny or the "
40512 "free RHSrvAny."
40513 msgstr ""
40514
40515 #. type: textblock
40516 #: ../tools/virt-win-reg.pl:678
40517 msgid ""
40518 "First upload the program and optionally the service wrapper.  In this case "
40519 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
40520 msgstr ""
40521
40522 #. type: verbatim
40523 #: ../tools/virt-win-reg.pl:682
40524 #, no-wrap
40525 msgid ""
40526 " guestfish -i -d WindowsGuest <<EOF\n"
40527 "   upload rhsrvany.exe /rhsrvany.exe\n"
40528 "   upload test.exe /test.exe\n"
40529 " EOF\n"
40530 "\n"
40531 msgstr ""
40532
40533 #. type: textblock
40534 #: ../tools/virt-win-reg.pl:687
40535 msgid ""
40536 "Prepare a regedit file containing the registry changes.  In this example, "
40537 "the first registry change is needed for the service itself or the service "
40538 "wrapper (if used).  The second registry change is only needed because I am "
40539 "using the RHSrvAny service wrapper."
40540 msgstr ""
40541
40542 #. type: verbatim
40543 #: ../tools/virt-win-reg.pl:692
40544 #, no-wrap
40545 msgid ""
40546 " cat > service.reg <<'EOF'\n"
40547 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
40548 " \"Type\"=dword:00000010\n"
40549 " \"Start\"=dword:00000002\n"
40550 " \"ErrorControl\"=dword:00000001\n"
40551 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
40552 " \"DisplayName\"=\"RHSrvAny\"\n"
40553 " \"ObjectName\"=\"NetworkService\"\n"
40554 " \n"
40555 msgstr ""
40556
40557 #. type: verbatim
40558 #: ../tools/virt-win-reg.pl:701
40559 #, no-wrap
40560 msgid ""
40561 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
40562 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
40563 " \"PWD\"=\"c:\\\\Temp\"\n"
40564 " EOF\n"
40565 "\n"
40566 msgstr ""
40567
40568 #. type: textblock
40569 #: ../tools/virt-win-reg.pl:712
40570 msgid ""
40571 "For use of C<ControlSet001> see the section above in this manual page.  You "
40572 "may need to adjust this according to the control set that is in use by the "
40573 "guest."
40574 msgstr ""
40575
40576 #. type: textblock
40577 #: ../tools/virt-win-reg.pl:718
40578 msgid ""
40579 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
40580 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
40581 "privileged account."
40582 msgstr ""
40583
40584 #. type: textblock
40585 #: ../tools/virt-win-reg.pl:724
40586 msgid ""
40587 "For the meaning of the magic numbers, see this Microsoft KB article: "
40588 "L<http://support.microsoft.com/kb/103000>."
40589 msgstr ""
40590
40591 #. type: textblock
40592 #: ../tools/virt-win-reg.pl:729
40593 msgid "Update the registry:"
40594 msgstr ""
40595
40596 #. type: verbatim
40597 #: ../tools/virt-win-reg.pl:731
40598 #, no-wrap
40599 msgid ""
40600 " virt-win-reg --merge WindowsGuest service.reg\n"
40601 "\n"
40602 msgstr ""
40603
40604 #. type: textblock
40605 #: ../tools/virt-win-reg.pl:735
40606 msgid ""
40607 "Be careful when passing parameters containing C<\\> (backslash) in the "
40608 "shell.  Usually you will have to use 'single quotes' or double backslashes "
40609 "(but not both) to protect them from the shell."
40610 msgstr ""
40611
40612 #. type: textblock
40613 #: ../tools/virt-win-reg.pl:739
40614 msgid "Paths and value names are case-insensitive."
40615 msgstr ""
40616
40617 #. type: textblock
40618 #: ../tools/virt-win-reg.pl:748
40619 msgid ""
40620 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
40621 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
40622 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40623 msgstr ""
40624
40625 #. type: verbatim
40626 #: ../tools/virt-win-reg.pl:766
40627 #, no-wrap
40628 msgid ""
40629 " export LIBGUESTFS_DEBUG=1\n"
40630 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
40631 "\n"
40632 msgstr ""
40633
40634 #. type: textblock
40635 #: ../tools/virt-win-reg.pl:769
40636 msgid ""
40637 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
40638 "redhat.com/>"
40639 msgstr ""
40640
40641 #~ msgid "I<--help>"
40642 #~ msgstr "I<--help>"
40643
40644 #~ msgid "EXIT CODE"
40645 #~ msgstr "КОД ВИХОДУ"
40646
40647 #~ msgid "B<-a> | B<--all>"
40648 #~ msgstr "B<-a> | B<--all>"
40649
40650 #~ msgid "B<-x> | B<--extract> | B<--download>"
40651 #~ msgstr "B<-x> | B<--extract> | B<--download>"